Laravel Lang Help

Management

Almost all console commands accept an array of localizations as a parameter.

For example:

php artisan lang:<command> fr de de_CH vi zh_CN php artisan lang:<command> fr php artisan lang:<command>

Where:

  • fr de de_CH vi zh_CN it's a list of locales separated by a space;

  • fr it's also possible to specify a single localization name;

  • if the parameter is not passed during the call, the script will ask two questions:

  • Do you want to %s all localizations?, when %s is install, remove or reset;

  • If no, then next question is Select localizations to add (specify the necessary localizations separated by commas).

Last modified: 18 December 2023