Download the PHP package qsque/filament-translation-helper without Composer
On this page you can find all versions of the php package qsque/filament-translation-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download qsque/filament-translation-helper
More information about qsque/filament-translation-helper
Files in qsque/filament-translation-helper
Package filament-translation-helper
Short Description A Filament plugin that provides automatic translations with fallback support for resources, forms and tables
License MIT
Informations about the package filament-translation-helper
🌐 Filament Translation Helper
✨ Features
- 🔄 Automatic Translation Discovery: Fields, columns, and sections are automatically translated
- 🎯 Smart Fallback System: Local translations → Package translations → Auto-generated labels
- 🌐 Multi-language Support: Built-in language switching with session persistence
- 📝 Zero Configuration: Works out of the box without any setup
- 🎨 Language Switcher: Ready-to-use user menu item for your admin panel
- ⚡ Laravel 11 & 12 Support: Compatible with the latest Laravel versions
- 🎯 Filament 4 Ready: Built for the latest Filament architecture
- 🔧 Highly Configurable: Customize locales, fallbacks, and translation paths
🚀 Installation
Install the package via Composer:
That's it! The package works out of the box with zero configuration. 🎉
⚡ Quick Start
1. Basic Usage (Zero Config)
Just use your forms and tables as usual - translations happen automatically:
Resource:
Form:
Table:
2. Add Translation Files (Optional)
Create translation files for custom labels:
3. Add Language Switcher (Optional)
🎯 How It Works
Translation Lookup Strategy
The plugin automatically translates fields using this intelligent fallback system:
Translation Hierarchy Examples
| Field Name | Translation Lookup Order |
|---|---|
name |
resources.user.fields.name → common.fields.name → "Name" |
email |
resources.user.fields.email → common.fields.email → "Email" |
config.api_key |
resources.user.fields.config.api_key → common.fields.config → "Config" |
📁 Translation File Structure
Resource-Specific Translations
Common Field Translations
🔧 Advanced Configuration
Custom Configuration
Publish the config file to customize behavior:
Custom Resource Keys
Override the resource translation key:
Middleware Setup (Optional)
Add locale persistence across requests:
🛠️ Advanced Usage
Manual Translation Helper
BaseResource Class
Extend BaseResource for automatic resource label translation:
Custom Translation Logic
📦 Package Translations
The package includes pre-built translations for common fields in multiple languages:
- English (en)
- Russian (ru)
Publishing Package Translations
🎨 Language Switcher Customization
Basic Usage
Custom Implementation
🔍 Examples in Action
Form Example
Table Example
📄 License
The MIT License (MIT). Please see License File for more information.
💝 Credits
- Qsque
- All Contributors
All versions of filament-translation-helper with dependencies
filament/filament Version ^4.0
illuminate/support Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.0