afsakar/filament-translate-action

Translate action for FilamentPHP
3,760 38
Install
composer require afsakar/filament-translate-action
Latest Version:v1.2.1
PHP:^8.1
License:MIT
Last Updated:Jun 22, 2026
Links: GitHub  ·  Packagist
Maintainer: afsakar

Translate action for FilamentPHP

Latest Version on Packagist Total Downloads

Screenshot

This package provides a simple action to translate fields in FilamentPHP.

Installation

You can install the package via composer:

composer require afsakar/filament-translate-action

You can publish the config file with:

php artisan vendor:publish --tag="filament-translate-action-config"

This is the contents of the published config file:

return [
    'laravellocalization' => true, // if you use mcamara/laravel-localization package you can set this to true

    // if you don't use mcamara/laravel-localization package you can set your locales here
    'locales' => [
        'tr' => 'Türkçe',
        'en' => 'English',
    ],
];

Usage

...

RichEditor::make('body')
    ->label('Body')
    ->translatable() // add this line to make field translatable. That's it!
    ->required(),
    
...

Screenshot

Screenshot

Testing

composer test

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

License

The MIT License (MIT). Please see License File for more information.

Related Packages

afsakar/filament-leaflet-map-picker

A Filament Forms component that provides an interactive Leaflet map for selectin...

12,204 40
afsakar/filament-otp-login

OTP Login for FilamentPHP

31,490 64
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,315 160
kavenegar/laravel

laravel 4 and 5 kavenegar integration

368,693 86
laravel-ja/laravel

The Laravel Framework.

5,667 17