Laravel lang files translator is a package for the Easiest way to translate lang files to other languages in PHP format in Laravel.
Did you buy a Laravel script and it doesn't have your language in thelang
file?
Do you want to make your web application bilingual, but you don't know how to translate all those words?
Do you not have the possibility to use the JSON format that many Laravel language translation packages give you?
PHP: >=8.0
stichoza/google-translate-php: ^5.1
Laravel Framework: 9.*|10.*|11.*
composer require alisalehi/laravel-lang-files-translator
php artisan translate:lang {from} {to}
for example, your locale is English and you have en lang files and want to have these files to Persian(fa) lang too. just enough to run:
php artisan translate:lang en fa
and done! Go to lang/fa and you will see all the translated files from the en folder.
how to use video
291937142-9fdb0342-a045-4a3d-8b76-51c848dce2ec.mp4
As Einstein said, "There's a way to do it better!" So I welcome any change that makes the code better, more readable, and testable. (Even renaming a variable!)
Just open an issue or pull a request.
The MIT License (MIT). See License File for more information.
This project exists thanks to all the people who contribute. CONTRIBUTING