Skip to content

alisalehi1380/laravel-lang-files-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Lang Files Translator

Laravel Lang Files Translator PHP Version Require Required Laravel Version Total Downloads License


Laravel lang files translator is a package for the Easiest way to translate lang files to other languages in PHP format in Laravel.

problems:

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.0
  • stichoza/google-translate-php: ^5.1
  • Laravel Framework: 9.*|10.*

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 ⤵️

🙋‍♂️Contributing

laravel-lang-files-translator

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

About

Easiest way to translate lang files to another language in PHP format in Laravel.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages