tomatophp/filament-translations
Filament plugin to manage Laravel translations in the database with caching. Scan your code for trans()/__() keys, import strings, and edit translations via a UI. Built on spatie/laravel-translation-loader, with install command and panel plugin registration.
.json file management by auto-scanning PHP code for translation keys (trans(), __()), reducing onboarding time for new developers.filament-translations-gpt) to reduce manual effort.Adopt If:
.json files for easier collaboration (e.g., Git conflicts, deployment overhead).Look Elsewhere If:
"This package lets us ship multi-language features faster without hiring localization specialists. By storing translations in our database (not static files), our marketing team can update copy in real-time—no more waiting for dev deployments. For example, if we launch in Spain tomorrow, they can translate product pages overnight via a simple UI. The AI extensions (like ChatGPT integration) could cut translation costs by 30% for initial drafts. It’s a low-code, scalable way to compete globally without the overhead of third-party tools."
Key Metrics to Track:
*"This solves three pain points:
- No more manual
.jsonfile management: The package auto-scans PHP code fortrans()calls and generates missing keys in the DB.- Filament-native UI: Translators get a dedicated admin panel with bulk edit, import/export (Excel), and scanning—no need to build a custom solution.
- Extensible architecture: We can:
- Hook into the resource to add role-based access (e.g., only admins edit translations).
- Queue scans for large codebases (
use_queue_on_scan).- Integrate AI (e.g., auto-translate with ChatGPT/Google via extensions). It’s lightweight (MIT license), actively maintained (released Sept 2025), and built on Spatie’s translation loader—a battle-tested library."*
Migration Path:
auth.php) with DB storage.*"This gives non-technical teams direct control over translations without touching code. For example:
- Marketing: Can bulk-edit all ‘Call-to-Action’ strings across languages in one click.
- Support: Can flag untranslated keys in the UI and assign them to translators.
- Design: The Filament UI matches our admin panel’s look, so no learning curve. The scan feature also surfaces missing translations automatically—no more ‘oops, we forgot to translate this’ moments in production."*
Stakeholder Wins:
| Role | Benefit |
|---|---|
| Product Managers | Faster iteration on localized features. |
| Developers | Less boilerplate, no .json file hell. |
| Designers | Consistent UI for all content management. |
| Translators | Dedicated workspace with search/filter for keys. |
| Executives | Reduced dependency on external translation agencies for initial drafts. |
How can I help you explore Laravel packages today?