Laravel translation is a package the power of register paths of translations.
- Manipulate the paths of your translations as you like
- Register many paths to translations
You can install the package via composer:
composer require datalogix/laravel-translation
The package will automatically register itself.
// app/Providers/AppServiceProvider.php
public function boot()
{
$this->callAfterResolving('translator', function ($translator) {
$translator->addPath(__DIR__.'/../lang');
});
}