orchestra/translation
Orchestra Platform Translation Component
Translation Component extends the functionality of Illuminate\Translation to add support for cascading filesystem replacement for Laravel packages.
Table of Content
Version Compatibility
| Laravel | Translation |
|---|---|
| 5.5.x | 3.5.x |
| 5.6.x | 3.6.x |
| 5.7.x | 3.7.x |
| 5.8.x | 3.8.x |
| 6.x | 4.x |
| 7.x | 5.x |
| 8.x | 6.x |
Installation
To install through composer, run the following command from terminal:
composer require "orchestra/translation"
Configuration
Next replace Illuminate\Translation\TranslationServiceProvider with the following service provider in config/app.php.
'providers' => [
// ...
Orchestra\Translation\TranslationServiceProvider::class,
],
Usage
Translation Component make it easier to have redistribute packages language files, instead of relying on resources/lang/en/package/name/title.php you can now publish it under resources/lang/vendor/name/en/title.php making it easier to create repository (and publish it under Github) for a single packages or extension to handle multiple languages.
Related Packages
orchestra/support-providers
Support (Providers) Component for Laravel and Orchestra Platform
185,996
3
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v6.0.0 | >=7.3 | ^8.0 | MIT | |
| v5.0.0 | >=7.2 | ^7.0 | MIT | |
| v4.0.0 | >=7.2 | ^6.0 | MIT | |
| v3.8.0 | >=7.1 | ~5.8.0 | MIT | |
| v3.7.1 | >=7.1 | ~5.7.0 | MIT | |
| v3.7.0 | >=7.1 | ~5.7.0 | MIT | |
| v3.6.0 | >=7.1 | ~5.6.0 | MIT | |
| v3.5.0 | >=7.0 | ~5.5.0 | MIT | |
| v3.4.0 | >=5.6.0 | ~5.4.0 | MIT | |
| v3.3.0 | >=5.6.0 | ~5.3.0 | MIT | |
| v3.2.0 | >=5.5.0 | ~5.2.0 | MIT | |
| v3.1.2 | >=5.5.0 | MIT | ||
| v3.1.1 | >=5.5.0 | MIT | ||
| v3.1.0 | >=5.4.0 | MIT | ||
| v3.0.1 | >=5.4.0 | MIT | ||
| v3.0.0 | >=5.4.0 | MIT | ||
| v2.2.0 | >=5.4.0 | MIT | ||
| v2.1.1 | >=5.3.3 | MIT | ||
| v2.1.0 | >=5.3.3 | MIT | ||
| v2.0.1 | >=5.3.3 | MIT | ||
| v2.0.0 | >=5.3.3 | MIT |