Add Locales
You can install the required locales by calling the console command php artisan lang:add <locale>
, passing it one or more locale codes, separated by a space:
php artisan lang:add fr de de_CH vi zh_CN
php artisan lang:add fr
If the target files exist, you will be asked what to do in this case - skip installing the files or replace them.
If these files contain keys that you added, it is recommended to skip them, since the php artisan lang:update
command will be able to update the files without deleting your code.
Last modified: 30 December 2023