orchestra / translation
Translation Component for Orchestra Platform
Fund package maintenance!
Liberapay
paypal.me/crynobone
Installs: 108 368
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.3
- illuminate/translation: ^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
This package is auto-updated.
Last update: 2024-09-18 01:21:22 UTC
README
Translation Component extends the functionality of Illuminate\Translation
to add support for cascading filesystem replacement for Laravel packages.
Table of Content
Version Compatibility
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.