amgrade/laravel-js-translations is a Laravel package for extract translations into js.
It currently has 0 GitHub stars and 800 downloads on Packagist (latest version 1.2.0).
Install it with composer require amgrade/laravel-js-translations.
Discover more Laravel packages by amgrade
or browse all Laravel packages to compare alternatives.
Last updated
Easy way to export Laravel translations to JavaScript.
composer require amgrade/laravel-js-translations
Then, if you don't use Laravel package autodiscovery feature, you need to add
JsTranslationServiceProvider to the config/app.php.
/*
* Package Service Providers...
*/
AMgrade\JsTranslations\JsTranslationServiceProvider::class,
You can declare as many bundles as you wish with different options.
For example, when you want to split your translations for admin part and client side part.
Then just pass php artisan js-translations:extract --bundle=admin and php artisan js-translations:extract --bundle=client.
For detailed configurations, please review config file.
Just run php artisan js-translations:extract.