Manage your translation with DB and cache, you can scan your languages tags like trans(), __(), and get the string inside and translate them use UI.
this plugin is build in spatie/laravel-translation-loader
You can install the package via composer:
composer require 3x1io/filament-translationsRun migration:
php artisan vendor:publish --tag="filament-translations"
php artisan vendor:publish --tag="filament-translations-config"
php artisan migrateIn config/app.php (Laravel) or bootstrap/app.php (Lumen) you should replace Laravel's translation service provider
Illuminate\Translation\TranslationServiceProvider::class,by the one included in this package:
Spatie\TranslationLoader\TranslationServiceProvider::class,go to app/Http/Kernel.php and add new middleware to $middlewareGroups
'web' => [
//...
\io3x1\FilamentTranslations\Http\Middleware\LanguageMiddleware::class,
],go to config/filament.php and add middleware to middleware auth array
'middleware' => [
'auth' => [
//...
\io3x1\FilamentTranslations\Http\Middleware\LanguageMiddleware::class
],
//...
];and now clear cache
php artisan optimize:clearPlease see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.



