Skip to content

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

License

Notifications You must be signed in to change notification settings

walidbtz7/laravel-lang-files-translator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 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

prefix option :

php artisan translate:lang en fa --prefix="path/file"

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%