Install translation files for any language with a command in your laravel projects. The language files will be downloaded from the awesome caouecs languages repository.
- PHP 5.5 or higher.
- Laravel >= 5.1
Add the package to your composer.json:
composer require ablunier/laravel-lang-installer
Add the service provider in app.php:
Ablunier\Laravel\Translation\LanguageInstallerServiceProvider::class,
Publish the package's assets:
php artisan vendor:publish
Edit the 'lang-installer.php' file in your config folder to add your required languages and files.
Execute the command:
php artisan lang:install