laravel-lang-files-translator
laravel-lang-files-translator copied to clipboard
Easiest way to translate lang files to another language in PHP format in Laravel.
Laravel Lang Files Translator
Laravel lang files translator is a package for the Easiest way to translate lang files to other languages in PHP format in Laravel.
Problems solved:
Did you buy a Laravel script and it doesn't have your language in thelangfile?
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?
Requirements
PHP: >=8.0stichoza/google-translate-php: ^5.1Laravel Framework: 9.*|10.*|11.*
Installation
composer require alisalehi/laravel-lang-files-translator
💎Usage
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 ⤵️
https://github.com/alisalehi1380/laravel-lang-files-translator/assets/111766206/748eaba0-29a3-4782-8505-1d8368d44ed2
🙋♂️Contributing
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.
License
The MIT License (MIT). See License File for more information.
❤️Contributing
This project exists thanks to all the people who contribute. CONTRIBUTING