gTranslator
Installation
Run the command below to install via Composer, (*1)
composer require chaibi/gtranslator
Then add this line to your providers in config/app.php :, (*2)
Chaibi\gTranslator\ServiceProvider::class,
And finally :, (*3)
php artisan translate
You will be prompted to choose the source language (Default: app.locale config value) then you will
be prompted again to enter the destination language (Default: app.fallback_locale config value), and that's it !, (*4)
gTranslator will create a new folder with the destination language, and copy the source files to be translated
there but with new translated values., (*5)
gTranslator detects :params and don't translate them. For example : "Welcome to :site !" with :site = home will give you in french "Bienvenue à home"., (*6)
If you have extra directories where you have translations, different than resources/lang folder, please run, (*7)
php artisan vendor:publish
and add your directories paths in the gTranslator newly created config file., (*8)
Please feel free to share with me your thoughts and suggestions., (*9)