Generate default languages files for Laravel
novius/laravel-caouecs-lang-extended is a Laravel package for generate default languages files for laravel.
It currently has 1 GitHub stars and 4.742 downloads on Packagist (latest version 0.4.0).
Install it with composer require novius/laravel-caouecs-lang-extended.
Discover more Laravel packages by novius
or browse all Laravel packages to compare alternatives.
Last updated
This package gives an artisan command to publish native laravel translations in the desired language. The native translations are made by the caouecs/laravel-lang package.
You can install the package via Composer:
composer install novius/caouecs-lang-extended
Then, if you are on Laravel 5.4 (no need for Laravel 5.5 and higher), register the service provider to your config/app.php file:
'providers' => [
...
Novius\Caouecs\Lang\LangGeneratorServiceProvider::class,
];
This command put languages files into resources/lang/{local} folder.
php artisan lang:install {local}
Example for publishing FR files :
php artisan lang:install fr
By default the command does not overwrite existing files. You can use --force parameters to force overriding.
php artisan lang:install fr --force
Run the tests with:
./test.sh
Run php-cs with:
./cs.sh
Contributions are welcome!
This package is under GNU Affero General Public License v3 or (at your option) any later version.