Translations Manager by Fady Mondy
CommunityManage your translation with DB and cache, you can scan an collect translation strings like `trans()` and `__()`, and translate them using UI
Author:
Fady Mondy
Package health
Automated checks of this plugin's Composer package
15 checks
- Failed: GitHub Actions pinned to SHA — View details on Plumb
- Skipped: GitLab CI includes pinned to SHA
- Passed: Open security advisories
- Passed: Dependabot PR responsiveness — No stale Dependabot PRs.
- Skipped: Renovate MR responsiveness
- Warning: Dependabot or Renovate configured — Updater does not cover Composer, which has a committed lockfile.
-
Failed:
Dependency update cooldown configured
—
No cooldown configured in
.github/dependabot.yml. View details on Plumb - Passed: Provides a security policy
- Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
- Passed: Commit and release recency — Active: last commit 1 days ago; last release 1 days ago.
-
Failed:
composer.lock not committed by library
—
composer.lockis present in the released dist archive. View details on Plumb - Failed: Dist archive is lean — View details on Plumb
-
Passed:
Current Laravel version supported
—
Package dependencies resolve together with current Laravel
13.0. -
Passed:
Current PHP version supported
—
Constraint
^8.2supports current PHP8.5. - Skipped: Current Symfony version supported
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Documentation
- Version Compatibility
- Screenshots
- Installation
- Extensions
- Authorization
- Laravel Octane
- Use Language Switcher
- Scan Using Command Line
- Change Scan to work on Queue
- Custom Import Command
- Custom Excel Import
- Custom Excel Export
- Show or hide buttons in the UI
- Custom Resource Nav Label & Group
- Custom Resource
- Translation Translations Resource Hooks
- Publish Assets
- Testing
- Code Style
- PHPStan
- Other Filament Packages

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
#Version Compatibility
| Plugin | Filament | Laravel | PHP |
|---|---|---|---|
| 1.x / 2.x | 3.x | 10.x / 11.x | 8.1+ |
4.x (v4 branch) |
4.x | 11.x / 12.x | 8.2+ |
| 5.x | 5.x | 12.x / 13.x | 8.2+ |
#Screenshots

#Installation
composer require tomatophp/filament-translations
now run install command, it runs the migrations and imports the translations of your app
php artisan filament-translations:install
Finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
$panel->plugin(\TomatoPHP\FilamentTranslations\FilamentTranslationsPlugin::make())
#Extensions
#Allow Create Button to Create New Language
If you want to allow the user to create a new language, you need to add the following to your panel provider:
$panel->plugin(\TomatoPHP\FilamentTranslations\FilamentTranslationsPlugin::make()->allowCreate())
#Allow Clear All Translations Button
If you want to allow the user to clear all translations, you need to add the following to your panel provider:
$panel->plugin(\TomatoPHP\FilamentTranslations\FilamentTranslationsPlugin::make()->allowClearTranslations())
#Authorization
The translation model lives in this package, so Laravel cannot auto-discover a policy for it. Set the policy in the config file:
'policy' => \App\Policies\TranslationPolicy::class,
When policy is null and your app has App\Policies\TranslationPolicy (for example one generated by Filament Shield), it is registered for you.
The resource pages follow the policy (viewAny, create, update, delete, deleteAny), the scan and import actions require create and the clear action requires deleteAny.
Without a policy everything stays available, as before.
#Laravel Octane
The plugin boots on every request. Actions, columns, filters and form fields registered through the hooks below are keyed by name, so registering them again on the next request replaces them instead of adding duplicates.
#Use Language Switcher
we move language switcher to another package you can check it Filament Language Switcher
#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
The scanner finds __(), trans(), trans_choice(), @lang(), @choice() and Lang::get() calls, with or without parameters (__('Hello :name', ['name' => $name])).
Group keys such as __('messages.welcome') are stored once, under their group, with the text from your language files.
To write the JSON strings of a folder (for example a package) to its resources/lang/en.json:
php artisan filament-translations:scan path/to/folder
#Change Scan to work on Queue
In your config file just change the use_queue_on_scan to true
'use_queue_on_scan' => true,
#Custom Import Command
You can create your own command to import the translations, add your custom import class to the config file like this:
'path_to_custom_import_command' => ImportTranslations::class,
This command will automatically run when you click on the "Scan For New Languages" button in the UI.
#Custom Excel Import
You can create your own Excel import to import the translations, add your custom import class to the config file like this:
'path_to_custom_excel_import' => CustomTranslationImport::class,
The import class is based on the Laravel Excel package. You can check the documentation here. This import will automatically run when you click on the "Import" button in the UI.
The default import reads the file produced by the export (id, key, then one column per locale). Empty cells keep the stored text.
#Custom Excel Export
You can create your own Excel export to export the translations in your own format, add your custom export class to the config file like this:
'path_to_custom_excel_export' => CustomTranslationExport::class,
The export class is based on the Laravel Excel package. You can check the documentation here. This export will automatically run when you click on the "Export" button in the UI.
#Show or hide buttons in the UI
You can show or hide the buttons in the UI by changing the config file. By default, all buttons are shown.
'import_enabled' => true,
'export_enabled' => false,
'scan_enabled' => false,
#Custom Resource Nav Label & Group
you can custom your resource nav from config file
'navigation_group' => 'Settings',
'navigation_icon' => 'heroicon-m-language',
#Custom Resource
You can create your own resource to show the translations in the UI, add your custom resource class to the config file like this:
'translation_resource' => CustomResource::class,
This is especially useful when you want to have complete control over the UI but still want to use the translations package. Think about implementing a check on user roles when using shouldRegisterNavigation in your custom resource.
#Translation Translations Resource Hooks
we have add a lot of hooks to make it easy to attach actions, columns, filters, etc
#Table Columns
use TomatoPHP\FilamentTranslations\Filament\Resources\Translations\Tables\TranslationsTable;
public function boot()
{
TranslationsTable::register([
\Filament\Tables\Columns\TextColumn::make('something')
]);
}
#Table Actions
use TomatoPHP\FilamentTranslations\Filament\Resources\Translations\Tables\TranslationActions;
public function boot()
{
TranslationActions::register([
\Filament\Actions\ReplicateAction::make()
]);
}
#Table Filters
use TomatoPHP\FilamentTranslations\Filament\Resources\Translations\Tables\TranslationFilters;
public function boot()
{
TranslationFilters::register([
\Filament\Tables\Filters\SelectFilter::make('something')
]);
}
#Table Bulk Actions
use TomatoPHP\FilamentTranslations\Filament\Resources\Translations\Tables\TranslationBulkActions;
public function boot()
{
TranslationBulkActions::register([
\Filament\Actions\DeleteBulkAction::make()
]);
}
#Table Header Actions
use TomatoPHP\FilamentTranslations\Filament\Resources\Translations\Tables\TranslationHeaderActions;
public function boot()
{
TranslationHeaderActions::register([
\Filament\Actions\Action::make('something')
]);
}
#Form Components
use TomatoPHP\FilamentTranslations\Filament\Resources\Translations\Schemas\TranslationForm;
public function boot()
{
TranslationForm::register([
\Filament\Forms\Components\TextInput::make('something')
]);
}
#Page Actions
use TomatoPHP\FilamentTranslations\Filament\Resources\Translations\Pages\ManageTranslations;
use TomatoPHP\FilamentTranslations\Facade\FilamentTranslations;
public function boot()
{
FilamentTranslations::register(Action::make(), ManageTranslations::class);
}
#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"
#Testing
if you like to run PEST testing just use this command
composer test
#Code Style
if you like to fix the code style just use this command
composer format
#PHPStan
if you like to check the code by PHPStan just use this command
composer analyse
#Other Filament Packages
Checkout our Awesome TomatoPHP
The author
Applied AI engineer and fractional CTO from Cairo, Egypt. Creator of TomatoPHP, 50+ open-source Filament plugins for building full apps (CMS, e-commerce, accounts, invoices, SaaS panels), and of Laravilt, an admin panel framework for Laravel on Inertia.
From the same author
Menu Generator
Menu view generator using view component
Author:
Fady Mondy
Meta Manager
Convert any model on your app to pluggable model using Meta and get ready to use relation manager on FilamentPHP panel
Author:
Fady Mondy
Sticky Notes
Add Sticky Notes to your dashboard with tons of options and style.
Author:
Fady Mondy
Translation Component
Translation Component as a key/value to use it with Spatie Translatable FilamentPHP Plugin
Author:
Fady Mondy
Featured Plugins
A selection of plugins curated by the Filament team
Soft Theme
A theme that gives panels a warm, approachable look with rounded shapes, gentle colors, and serif headings.
Filament
Spotlight Pro
Browse your Filament Panel with ease. Filament Spotlight Pro adds a Spotlight like Command Palette to your Filament Panel.
Dennis Koch
Compact Theme
A theme that makes data-heavy panels easier to scan by fitting more useful information on each screen.
Filament