Downloads
Stars
Version
This library is used for laravel trans method is use for JS File
Run this command in your terminal
composer require process-drive/laravel-js-translation
To set service provider to config/app.php file
'providers' => [
ProcessDrive\LaravelJSTranslation\TranslateServiceProvider::class,
]
To set view file in your appliction. you will set below code in common blade file
@include("Processdrivepackage::translate")
Run this command in your terminal
php artisan trans:json
Your javascript file you can use this
Trans :
trans('about.name')
MIT