caouecs / laravel-lang
Languages for Laravel
Requires
- ext-json: *
Suggests
- andrey-helldar/laravel-lang-publisher: Easy installation and update of translation files for your project
- arcanedev/laravel-lang: Translations manager and checker for Laravel 5
- overtrue/laravel-lang: Command to add languages in your project
- dev-master
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.1.4
- 6.1.3
- 6.1.2
- 6.1.1
- 6.1.0
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.0
- 4.0.11
- 4.0.10
- 4.0.9
- 4.0.8
- 4.0.7
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.62
- 3.0.61
- 3.0.60
- 3.0.59
- 3.0.58
- 3.0.57
- 3.0.56
- 3.0.54
- 3.0.53
- 3.0.52
- 3.0.51
- 3.0.50
- 3.0.49
- 3.0.48
- 3.0.47
- 3.0.46
- 3.0.45
- 3.0.44
- 3.0.43
- 3.0.42
- 3.0.41
- 3.0.40
- 3.0.39
- 3.0.38
- 3.0.37
- 3.0.36
- 3.0.35
- 3.0.34
- 3.0.33
- 3.0.32
- 3.0.31
- 3.0.30
- 3.0.29
- 3.0.28
- 3.0.27
- 3.0.26
- 3.0.25
- 3.0.24
- 3.0.23
- 3.0.22
- 3.0.21
- 3.0.20
- 3.0.19
- 3.0.18
- 3.0.17
- 3.0.16
- 3.0.15
- 3.0.14
- 3.0.13
- 3.0.12
- 3.0.11
- 3.0.10
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- v2.x-dev
- 2.0.43
- 2.0.42
- 2.0.41
- 2.0.40
- 2.0.39
- 2.0.38
- 2.0.37
- 2.0.36
- 2.0.35
- 2.0.34
- 2.0.33
- 2.0.32
- 2.0.31
- 2.0.30
- 2.0.29
- 2.0.28
- 2.0.27
- 2.0.26
- 2.0.25
- 2.0.24
- 2.0.23
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 1.0.2
- dev-whitesource/configure
- dev-laravel58
- dev-laravel4
This package is auto-updated.
Last update: 2020-10-06 21:43:08 UTC
README
In this repository, you can find the lang files for the framework PHP, Laravel 4/5/6/7.
News
- in version 6.1, we propose a new file by language:
validation-inline.php
( see #1268 ) - in version 7, we propose new directory names to follow ISO-15897 ( see #1269 )
Install
Via Composer
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 |
Copy files
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).
Via GitHub
- Clone the GitHub repository : git clone https://github.com/Laravel-Lang/lang.git
- Or download the zip file
- Choose the branch:
laravel4
for Laravel 4 projectmaster
for Laravel 5, 6, 7 projects
- Copy the folders of languages that you want, in
resources/lang
folder of your Laravel application (orapp/lang
in Laravel 4).
Via SVN
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.
Usage [Laravel only]
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).
Contributing
Please see CONTRIBUTING for details.
Status of files
- Check the todo.md file to see the missing translations.
Projects based on this package
- LaravelLang by ARCANEDEV - Translations manager and checker for Laravel.
- Laravel-lang by overtrue - Command to add languages in your project.
- laravel-lang-publisher by Andrey Helldar - Easy installation and update of translation files for your project.