In this repository, you can find the lang files for the framework PHP, Laravel 4&5.
News of 12 March 2016:
- todo list: in todo.md
News of 7 March 2016:
- validation: add in_array
News of 2 March 2016:
- validation: add distinct
News of 27 February 2016:
- validation: add present
- Clone the GitHub repository : git clone https://github.com/caouecs/Laravel-lang.git
- Or download the zip file
- Choose the branch:
laravel4
for Laravel4 projectmaster
for Laravel5 project
- Copy the folders of languages that you want, in app/lang folder of your application Laravel
- For Laravel 4 : add
"caouecs/laravel4-lang": "~1.0"
in yourcomposer.json
in "require" or run composer require caouecs/laravel4-lang - For Laravel 5 : add
"caouecs/laravel4-lang": "~2.0"
in yourcomposer.json
in "require" - Do "composer update"
- Files of languages are in "vendor/caouecs/laravel4-lang" directory
- Copy the folders of languages that you want, in app/lang (resources/lang in laravel 5) folder of your application Laravel
If you have a Laravel5 project, you can use laravel-lang
project of overtrue : composer require "overtrue/laravel-lang:dev-master"
In the file app/config/app.php, change the value of locale by the short name of your language.
- fork this repository
- create a directory with the short name of the language (ex: fr for French) from ISO-639-1 ( see Wikipedia )
- copy these four files of the English version with your translation
- for Laravel
- run PHP-cs-fixer
- if installed to global, run
php-cs-fixer fix
. - if installed to project local, run
vendor/bin/php-cs-fixer fix
.
- if installed to global, run
- add a pull request with the name of the language
- fork this repository
- update the file
- run PHP-cs-fixer
- if installed to global, run
php-cs-fixer fix
. - if installed to project local, run
vendor/bin/php-cs-fixer fix
.
- if installed to global, run
- add a pull request with the name of the language
- todo.md