Laravel Lang Help

Remove Locales

To delete localizations, you must use php artisan lang:rm <locale> command, passing the letter abbreviations into it:

php artisan lang:rm fr de de_CH vi zh_CN

If you do not specify arguments when passing parameters, then an interactive question will be displayed in the console with a choice of localizations from among the available ones.

php artisan lang:rm

By default, the command will return an error message when trying to remove a protected locale.

Protected locales are the set codes in the locale and fallback_locale parameters of the config/app.php file.

To force the deletion of a protected localization, use the force option:

php artisan lang:rm en --force
Last modified: 18 December 2023