datalogix / laravel-translation
Laravel translation is a package the power of register paths of translations.
Installs: 1 089
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^7.4|^8.0
- illuminate/contracts: ^8.0|^9.0|^10.0|^11.0
- illuminate/translation: ^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- graham-campbell/testbench: ^6.1
- illuminate/filesystem: ^8.0|^9.0|^10.0|^11.0
- mockery/mockery: ^1.6
- phpunit/phpunit: ^9.5|^10.5
README
Laravel translation is a package the power of register paths of translations.
Features
- Manipulate the paths of your translations as you like
- Register many paths to translations
Installation
You can install the package via composer:
composer require datalogix/laravel-translation
The package will automatically register itself.
Usage
// app/Providers/AppServiceProvider.php public function boot() { $this->callAfterResolving('translator', function ($translator) { $translator->addPath(__DIR__.'/../lang'); }); }