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
composer require tomatophp/filament-translations
you can publish the resource to your project
php artisan vendor:publish --tag="filament-translations-migrations"
if you need to publish config
php artisan vendor:publish --tag="filament-translations-config"
Run migration:
php artisan migrate
and now clear cache
php artisan optimize:clear
finally reigster the plugin on /app/Providers/Filament/AdminPanelProvider.php
$panel->plugin(\TomatoPHP\FilamentTranslations\FilamentTranslationsPlugin::make())
you can scan your project to get all the languages tags and save them to the database
php artisan filament-translations:import
on your config file just change the use_queue_on_scan
to true
'use_queue_on_scan' => true,
you can publish config file by use this command
php artisan vendor:publish --tag="filament-translations-config"
you can publish views file by use this command
php artisan vendor:publish --tag="filament-translations-views"
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-translations-lang"
you can publish migrations file by use this command
php artisan vendor:publish --tag="filament-translations-migrations"
you can join our discord server to get support TomatoPHP
you can check docs of this package on Docs
Please see CHANGELOG for more information on what has changed recently.
Please see SECURITY for more information about security.
The MIT License (MIT). Please see License File for more information.