laravel-translation maintained by datalogix
Description
Laravel translation is a package the power of register paths of translations.
Author
Last update
2025/04/14 21:20
(dev-main)
License
Downloads
4 658
Tags
Laravel Translation
Note: This package has been deprecated as of Laravel v11.39, which now includes native support for the addPath functionality.
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');
});
}