Common
Installation
You can install the package using Composer:
Usage
Now you can update existing localizations using the lang:update
console command:
We also recommend adding the call code to the post-update-cmd
section of the scripts
block in the composer.json
file:
This allows localization files to be automatically updated after dependency updates, rather than manually running the php artisan lang:update
console command.
Compatibility
Laravel | PHP | Package | Dependencies | Status |
---|---|---|---|---|
10*, 11 | 8.1, 8.2, 8.3 |
| Models 1, Routes 1, Locales 2, Publisher 16, Lang 13-15, Actions 1, Attributes 2, HTTP Statuses 3, Locales 2, JSON Fallback 2 | * When used in Laravel 10, you need to manually specify the lang package version to install: composer require --dev laravel-lang/lang:^14.0 |
10 | 8.1, 8.2, 8.3 |
| Publisher 15, Lang 13, Actions 1, Attributes 2, HTTP Statuses 3, Locales 1 | |
10 | 8.1, 8.2 |
| Publisher 14, Lang 13, Attributes 2, HTTP Statuses 3, Locales 1 | |
8, 9, 10 | 8.1, 8.2 |
| Publisher 14, Lang 12, Attributes 2, HTTP Statuses 3 | |
7, 8, 9 | 8.0, 8.1 |
| Publisher 13, Lang 10, Attributes 1, HTTP Statuses 2 | |
7, 8, 9 | 7.3, 7.4, 8.0, 8.1 |
| Publisher 12, Lang 10, Attributes 1, HTTP Statuses 2 |