novius / laravel-caouecs-lang-extended
Generate default languages files for Laravel
Installs: 4 742
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 3
Open Issues: 0
Requires
- php: >=7.3
- caouecs/laravel-lang: ~3.0
- laravel/framework: ~5.6
- mockery/mockery: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.16.0
- orchestra/testbench: ~3.5
- phpunit/phpunit: ~7.0
README
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.
Installation
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,
];
Usage
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
Testing
Run the tests with:
./test.sh
Lint
Run php-cs with:
./cs.sh
Contributing
Contributions are welcome!
Licence
This package is under GNU Affero General Public License v3 or (at your option) any later version.