Store your language lines in the database, yaml or other sources
sandj/laravel-translation-loader is a Laravel package for store your language lines in the database, yaml or other sources.
It currently has 0 GitHub stars and 3.300 downloads on Packagist (latest version 3.2.4).
Install it with composer require sandj/laravel-translation-loader.
Discover more Laravel packages by sandj
or browse all Laravel packages to compare alternatives.
Last updated
This package is an adaptation of spatie/laravel-translation-loader
WARNING: this package is currently in development.
NOTE: These instructions are for Laravel >= 9.0. If you are using prior version, please see the previous version's docs.
composer require novius/laravel-translation-loader:dev-master
In config/app.php (Laravel) you should replace Laravel's translation service provider
Illuminate\Translation\TranslationServiceProvider::class,
by the one included in this package:
Novius\TranslationLoader\TranslationServiceProvider::class,
You must publish and run the migrations to create the language_lines table:
php artisan vendor:publish --provider="Novius\TranslationLoader\TranslationServiceProvider" --tag="migrations"
php artisan migrate
Publish languages files:
php artisan vendor:publish --provider="Novius\TranslationLoader\TranslationServiceProvider" --tag="lang"
Optionally you could publish the config file using this command.
php artisan vendor:publish --provider="Novius\TranslationLoader\TranslationServiceProvider" --tag="config"
# Synchronise translations from files to DB
php artisan translations:sync
# Clear DB translations + re-import them
php artisan translations:reset
Run php-cs with:
composer run-script lint
Contributions are welcome! Leave an issue on Github, or create a Pull Request.
This package is under MIT Licence.