PHPackages                             jegex/filament-translatable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. jegex/filament-translatable

ActiveLibrary[Localization &amp; i18n](/categories/localization)

jegex/filament-translatable
===========================

Translation component for Filament PHP.

v1.0.6(2mo ago)010[1 PRs](https://github.com/jegex/filament-translatable/pulls)MITPHPPHP ^8.2CI passing

Since Apr 9Pushed 1w agoCompare

[ Source](https://github.com/jegex/filament-translatable)[ Packagist](https://packagist.org/packages/jegex/filament-translatable)[ Docs](https://github.com/jegex/filament-translatable)[ RSS](/packages/jegex-filament-translatable/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (7)Dependencies (9)Versions (8)Used By (0)

Filament Translatable Spatie &amp; Astrotomic
=============================================

[](#filament-translatable-spatie--astrotomic)

[![FILAMENT 4.x](https://camo.githubusercontent.com/7ce6bddf4456680ce729ca483b9a956b68e0660b11a5a803e5ad6e49e5f43e92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46494c414d454e542d342e782d6562313633313f7374796c653d666c61742d737175617265)](https://filamentphp.com/docs/4.x/introduction/overview)[![FILAMENT 5.x](https://camo.githubusercontent.com/a2590e6de05e21b342d085b650f0c41cea7ff156d915526619a123aeba966b18/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46494c414d454e542d352e782d6562313633313f7374796c653d666c61742d737175617265)](https://filamentphp.com/docs/5.x/introduction/overview)[![Packagist](https://camo.githubusercontent.com/536a2d95f80428f105a1bbb4cfa04215b2cd4010fd8a4fbca7e3c4ad950f03e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a656765782f66696c616d656e742d7472616e736c617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jegex/filament-translatable)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0fa03fffc9b539c7b71af9ede396505c52d4a319cceaf1ea3464c78ed6704999/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a656765782f66696c616d656e742d7472616e736c617461626c652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/jegex/filament-translatable/actions?query=workflow%3Arun-tests+branch%3Amain)[![Downloads](https://camo.githubusercontent.com/1b9cbc7e1a6ed4787f2743d716762a1eb133aa6e50438f61fc5cbf616ea86018/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a656765782f66696c616d656e742d7472616e736c617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jegex/filament-translatable)

**Filament Translatable** is a flexible package that provides a complete solution for managing multilingual content in [Filament](https://filamentphp.com) admin panels. It uses a tabbed interface with **Repeater** component, allowing you to easily create translatable form fields with an intuitive UI.

Key Features
------------

[](#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](https://github.com/spatie/laravel-translatable) and [astrotomic/laravel-translatable](https://github.com/astrotomic/laravel-translatable)
- **Flexible Locale Configuration** — define locales globally or per-component
- **Vertical &amp; Horizontal Tabs** — choose your preferred layout
- **Scrollable Tabs** — for managing many languages

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require jegex/filament-translatable
```

Publish the assets:

```
php artisan filament:assets
```

Configuration
-------------

[](#configuration)

### With `spatie/laravel-translatable`

[](#with-spatielaravel-translatable)

The [Spatie](https://github.com/spatie/laravel-translatable) package is the default translation backend. Follow the instructions in the [Spatie documentation](https://github.com/spatie/laravel-translatable/?tab=readme-ov-file#a-trait-to-make-eloquent-models-translatable) to properly configure your models.

### With `astrotomic/laravel-translatable`

[](#with-astrotomiclaravel-translatable)

The [Astrotomic](https://github.com/astrotomic/laravel-translatable) package is an alternative translation backend.

Follow the [Astrotomic documentation](https://docs.astrotomic.info/laravel-translatable/installation#models) to configure your models.

When using the Astrotomic package, configure the plugin to use Astrotomic mode:

```
use Jegex\FilamentTranslatable\Enums\TranslationMode;

FilamentTranslatablePlugin::make()
    ->translationMode(TranslationMode::Astrotomic)
```

Setup
-----

[](#setup)

```
use Jegex\FilamentTranslatable\FilamentTranslatablePlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(FilamentTranslatablePlugin::make());
}
```

### Setting translatable locales

[](#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:

```
FilamentTranslatablePlugin::make()
    ->locales(['en', 'id', 'fr', 'de']),
```

You can set locale labels using key =&gt; value array:

```
FilamentTranslatablePlugin::make()
    ->locales([
        'en' => __('('English'),
        'id' => __('Indonesian'),
        'fr' => __('French'),
    ])
```

Also, you can pass a Closure:

```
FilamentTranslatablePlugin::make()
    ->locales(fn () => Language::pluck('code', 'name'))
```

### Setting default locale

[](#setting-default-locale)

You can set the default locale using the `defaultLocale()` method:

```
FilamentTranslatablePlugin::make()
    ->defaultLocale('en'),
```

### Enable or disable flags in locale labels

[](#enable-or-disable-flags-in-locale-labels)

You can enable or disable flags in locale labels (disabled by default):

```
FilamentTranslatablePlugin::make()
    ->displayFlagsInLocaleLabels(true)
```

### Setting flag width

[](#setting-flag-width)

You can set the flag width using:

```
FilamentTranslatablePlugin::make()
    ->flagWidth('24px')
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
use Jegex\FilamentTranslatable\Forms\Component\Translations;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Textarea;

Translations::make('translations')
    ->schema([
        TextInput::make('title'),
        Textarea::make('content'),
    ])
```

### Vertical Tabs

[](#vertical-tabs)

You can display translations as vertical tabs:

```
use Jegex\FilamentTranslatable\Forms\Component\Translations;

Translations::make('translations')
    ->vertical()
    ->schema([
        TextInput::make('title'),
        Textarea::make('content'),
    ])
```

### Scrollable Tabs

[](#scrollable-tabs)

Enable horizontal scroll for tabs when you have many languages:

```
Translations::make('translations')
    ->scrollable()
    ->locales(['en', 'id', 'fr', 'de', 'es', 'it', 'pt', 'ru', 'zh', 'ja', 'ko', 'ar'])
    ->schema([...])
```

### Clone Locale

[](#clone-locale)

The package includes a built-in clone locale feature that allows you to duplicate translations from one locale to another:

```
use Jegex\FilamentTranslatable\Forms\Component\Translations;

Translations::make('translations')
    ->schema([
        TextInput::make('title'),
    ])
```

### Display Flags

[](#display-flags)

Enable flags in locale labels:

```
use Jegex\FilamentTranslatable\Forms\Component\Translations;

Translations::make('translations')
    ->displayFlagsInLocaleLabels(true)
    ->flagWidth('24px')
    ->schema([...])
```

### Using with Astrotomic Mode

[](#using-with-astrotomic-mode)

```
use Jegex\FilamentTranslatable\Enums\TranslationMode;
use Jegex\FilamentTranslatable\Forms\Component\Translations;

Translations::make('translations')
    ->translationMode(TranslationMode::Astrotomic)
    ->schema([
        TextInput::make('name'),
    ])
```

### Overriding Plugin Settings per Component

[](#overriding-plugin-settings-per-component)

You can override the global plugin settings directly on individual components:

```
use Jegex\FilamentTranslatable\Forms\Component\Translations;

Translations::make()
    ->displayNamesInLocaleLabels(false)
    ->displayFlagsInLocaleLabels(true)
    ->flagWidth('32px')
```

Full Example
------------

[](#full-example)

```
use Jegex\FilamentTranslatable\FilamentTranslatablePlugin;
use Jegex\FilamentTranslatable\Forms\Component\Translations;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\RichEditor;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(
            FilamentTranslatablePlugin::make()
                ->locales(['en', 'id', 'fr', 'de'])
                ->defaultLocale('en')
                ->displayFlagsInLocaleLabels(true)
                ->displayNamesInLocaleLabels(true)
                ->flagWidth('24px')
        );
}

public static function form(Form $form): Form
{
    return $form->schema([
        TextInput::make('slug'),

        Translations::make('translations')
            ->vertical()
            ->displayFlagsInLocaleLabels()
            ->schema([
                TextInput::make('title'),
                RichEditor::make('content'),
            ])
            ->columns(1),
    ]);
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](.github/SECURITY.md) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [jegex](https://github.com/jegex)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance93

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

7

Last Release

70d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/219070132?v=4)[jegex](/maintainers/jegex)[@jegex](https://github.com/jegex)

---

Top Contributors

[![jegex](https://avatars.githubusercontent.com/u/219070132?v=4)](https://github.com/jegex "jegex (47 commits)")

---

Tags

laravelfilamentfilament-pluginfilamentphpfilament-translatablejegex

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jegex-filament-translatable/health.svg)

```
[![Health](https://phpackages.com/badges/jegex-filament-translatable/health.svg)](https://phpackages.com/packages/jegex-filament-translatable)
```

###  Alternatives

[bezhansalleh/filament-language-switch

Zero config Language Switch(Changer/Localizer) plugin for filamentphp admin

3561.2M23](/packages/bezhansalleh-filament-language-switch)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

271298.4k8](/packages/croustibat-filament-jobs-monitor)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

6643.3k1](/packages/marcelweidum-filament-passkeys)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

128173.7k3](/packages/dotswan-filament-map-picker)[relaticle/custom-fields

User Defined Custom Fields for Laravel Filament

16445.8k](/packages/relaticle-custom-fields)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
