Package Data | |
---|---|
Maintainer Username: | caouecs |
Package Create Date: | 2013-05-29 |
Package Last Update: | 2024-11-16 |
Home Page: | https://laravel-lang.com/packages-lang.html |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-24 15:06:28 |
Package Statistics | |
---|---|
Total Downloads: | 5,239,632 |
Monthly Downloads: | 188,167 |
Daily Downloads: | 2,161 |
Total Stars: | 7,502 |
Total Watchers: | 158 |
Total Forks: | 3,037 |
Total Open Issues: | 1 |
In this repository, you can find the lang files for the framework PHP, Laravel 4/5/6/7.
validation-inline.php
( see #1268 )Install the Laravel-lang package to your Laravel project with composer using command from the table below based on the version of Laravel you are using:
| Laravel version | Composer command |
|-------------------------------------|---------------------------------------------------|
| Laravel 7.x and new directory names | composer require laravel-lang/lang:~7.0
|
| Laravel 7.x | composer require laravel-lang/lang:~6.1
|
| Laravel 6.x | composer require laravel-lang/lang:~5.0
|
| Laravel 5.8 | composer require laravel-lang/lang:~4.0
|
| Laravel 5.1-5.7 | composer require laravel-lang/lang:~3.0
|
| Laravel 5 | composer require laravel-lang/lang:~2.0
|
| Laravel 4 | composer require laravel-lang/lang:~1.0
|
After adding the dependency using composer (as described above) to your application you can find the language files under the directory vendor/laravel-lang/lang
.
Copy the folders (and JSON files) of languages that you want to use, into the directory resources/lang
of your Laravel application (or app/lang
in Laravel 4).
laravel4
for Laravel 4 projectmaster
for Laravel 5, 6, 7 projectsresources/lang
folder of your Laravel application (or app/lang
in Laravel 4).Run this in your project directory:
# Laravel 5:
svn export https://github.com/Laravel-Lang/lang/trunk/src/[language-code] resources/lang/[language-code]
# Laravel 4:
svn export https://github.com/Laravel-Lang/lang/branches/laravel4/[language-code] app/lang/[language-code]
Replace [language-code]
by any of the languages listed here.
In the file config/app.php, change the value of locale by the short name of your language (app/config/app.php in Laravel 4).
Please see CONTRIBUTING for details.