This package gives you an artisan command to manage translations in Laravel 5.4+ json files.
You can install the package via composer:
composer require typidesign/laravel-artisan-translations
Now add the service provider in config/app.php
file:
'providers' => [
// ...
Typidesign\Translations\ArtisanTranslationsServiceProvider::class,
];
php artisan translations:add vendor/typicms/pages/src/lang/fr.json
Every translations present in this file will be added to /lang/fr.json
.
php artisan translations:add vendor/typicms/pages/src/lang
Every translations found in this directory will be added to /lang
By default, translation keys will not be overwritten. You can use the --force
option to overwrite existing keys:
php artisan translations:remove vendor/typicms/pages/src/lang[/lg.json]
Every translations found in this file/directory will be removed from /lang
php artisan translations:add vendor/typicms/pages/src/lang --force
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Typi Design is a webdesign agency based in Brussels, Belgium.
The MIT License (MIT). Please see License File for more information.