Remove Locales
To delete localizations, you must use the 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 returns an error message when it attempts to remove a protected locale.
Protected locales are the codes set in the locale
and fallback_locale
parameters of the config/app.php
file.
To force the deletion of a protected locale, use the force
option:
php artisan lang:rm en --force
Last modified: 30 June 2024