Download the PHP package jegex/filament-translatable without Composer
On this page you can find all versions of the php package jegex/filament-translatable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jegex/filament-translatable
More information about jegex/filament-translatable
Files in jegex/filament-translatable
Package filament-translatable
Short Description Translation component for Filament PHP.
License MIT
Homepage https://github.com/jegex/filament-translatable
Informations about the package filament-translatable
Filament Translatable Spatie & Astrotomic
Filament Translatable is a flexible package that provides a complete solution for managing multilingual content in Filament admin panels. It uses a tabbed interface with Repeater component, allowing you to easily create translatable form fields with an intuitive UI.
Key Features
- Tab-Based UI with Repeater — extends Filament Repeater, leveraging all Repeater features
- Locale Tabs with Flags — horizontal or vertical tabs with 200+ built-in SVG flags
- Clone Locale — duplicate translations between locales
- Multiple Translation Backends — supports both spatie/laravel-translatable and astrotomic/laravel-translatable
- Flexible Locale Configuration — define locales globally or per-component
- Vertical & Horizontal Tabs — choose your preferred layout
- Scrollable Tabs — for managing many languages
Installation
You can install the package via composer:
Publish the assets:
Configuration
With spatie/laravel-translatable
The Spatie package is the default translation backend. Follow the instructions in the Spatie documentation to properly configure your models.
With astrotomic/laravel-translatable
The Astrotomic package is an alternative translation backend.
Follow the Astrotomic documentation to configure your models.
When using the Astrotomic package, configure the plugin to use Astrotomic mode:
Setup
Setting translatable locales
To set up the locales that can be used to translate content, pass an array of locales to the locales() plugin method:
You can set locale labels using key => value array:
Also, you can pass a Closure:
Setting default locale
You can set the default locale using the defaultLocale() method:
Enable or disable flags in locale labels
You can enable or disable flags in locale labels (disabled by default):
Setting flag width
You can set the flag width using:
Usage
Basic Usage
Vertical Tabs
You can display translations as vertical tabs:
Scrollable Tabs
Enable horizontal scroll for tabs when you have many languages:
Clone Locale
The package includes a built-in clone locale feature that allows you to duplicate translations from one locale to another:
Display Flags
Enable flags in locale labels:
Using with Astrotomic Mode
Overriding Plugin Settings per Component
You can override the global plugin settings directly on individual components:
Full Example
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- jegex
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-translatable with dependencies
filament/filament Version ^4.3.1|^5.0
spatie/laravel-package-tools Version ^1.15