tomatophp / filament-translations
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.
Fund package maintenance!
3x1io
Requires
- php: ^8.1|^8.2
- filament/filament: ^3.0.0
- filament/notifications: ^3.0.0
- maatwebsite/excel: ^3.1
- spatie/laravel-translation-loader: ^2.7
- tomatophp/console-helpers: ^1.1
- tomatophp/filament-developer-gate: ^1.0
This package is auto-updated.
Last update: 2024-05-22 09:09:28 UTC
README
Filament translations
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
Screenshots
Installation
composer require tomatophp/filament-translations
Publish Resource
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())
Scan Using Command Line
you can scan your project to get all the languages tags and save them to the database
php artisan filament-translations:import
Change Scan to work on Queue
on your config file just change the use_queue_on_scan
to true
'use_queue_on_scan' => true,
Publish Assets
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"
Support
you can join our discord server to get support TomatoPHP
Docs
you can check docs of this package on Docs
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
Please see SECURITY for more information about security.
Credits
License
The MIT License (MIT). Please see License File for more information.