PHPackages                             zakafk/filament-translatable-select - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zakafk/filament-translatable-select

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zakafk/filament-translatable-select
===================================

This package adds a way to interact with zakafk/translatable-select in Filament.

v1.0.3(6mo ago)012MITPHPPHP ^8.1

Since Oct 25Pushed 6mo agoCompare

[ Source](https://github.com/zakafk/filament-translatable-select)[ Packagist](https://packagist.org/packages/zakafk/filament-translatable-select)[ Docs](https://github.com/zakafk/filament-translatable-select)[ RSS](/packages/zakafk-filament-translatable-select/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

Filament Translatable Select
============================

[](#filament-translatable-select)

This package adds a way to make all filament inputs translatable. It uses the `spatie/laravel-translatable` package in the back.

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

[](#installation)

First install and configure your model(s) to use the `spatie/laravel-translatable` package.

You can install the package via composer:

```
composer require zakafk/filament-translatable-select
```

Add the plugin to your desired Filament panel:

```
use Zakafk\FilamentTranslatableSelect\Filament\Plugins\FilamentTranslatableSelectPlugin;

class FilamentPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            // ...
            ->plugins([
                FilamentTranslatableSelectPlugin::make(),
            ]);
    }
}
```

You can specify the supported locales:

```
use Zakafk\FilamentTranslatableSelect\Filament\Plugins\FilamentTranslatableSelectPlugin;

class FilamentPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            // ...
            ->plugins([
                FilamentTranslatableSelectPlugin::make()
                    ->supportedLocales([
                        'en' => 'English',
                        'ka' => 'Georgia',
                    ])
                    ->setLocaleHidden(false),
            ]);
    }
}
```

By default, the package will use the `app.locale` if you don't specify the locales.

### Combining with the official [spatie-laravel-translatable-plugin](https://github.com/filamentphp/spatie-laravel-translatable-plugin)?

[](#combining-with-the-official-spatie-laravel-translatable-plugin)

This package is a replacement for the official on the **create** and **edit** pages only. If you are already using the official package, you will have to delete the `use Translatable` trait and the `LocaleSwitcher` header action from those pages:

```
-use Filament\Actions\LocaleSwitcher;
-use Filament\Resources\Pages\EditRecord\Concerns\Translatable;

class EditPage extends EditRecord
{
-    use Translatable;

    protected function getHeaderActions(): array
    {
        return [
-            LocaleSwitcher::make(),
            DeleteAction::make(),
        ];
    }
}
```

Usage
-----

[](#usage)

You can simply add `->translatable()` to any field to make it translatable.

```
use Filament\Forms\Components\TextInput;

TextInput::make('name')
    ->label('Name')
    ->translatable(),
```

Disable translations dynamically
--------------------------------

[](#disable-translations-dynamically)

If you want to disable translations dynamically, you can set the first parameter of the `->translatable()` function to `true` or `false`.

```
use Filament\Forms\Components\TextInput;

TextInput::make('name')
    ->label('Name')
    ->translatable(false),
```

Overwrite locales
-----------------

[](#overwrite-locales)

If you want to overwrite the locales on a specific field you can set the locales through the second parameter of the `->translatable()` function.

```
use Filament\Forms\Components\TextInput;

TextInput::make('name')
    ->label('Name')
    ->translatable(true, ['en' => 'English', 'ka' => 'Georgia', 'fr' => 'French']),
```

Locale specific validation rules
--------------------------------

[](#locale-specific-validation-rules)

You can add locale specific validation rules with the third parameter of the `->translatable()` method.

```
use Filament\Forms\Components\TextInput;

TextInput::make('name')
    ->label('Name')
    ->translatable(true, null, [
        'en' => ['required', 'string', 'max:255'],
        'ka' => ['nullable', 'string', 'max:255'],
    ]);
```

### Good to know

[](#good-to-know)

This package will substitute the original field with a `Filament\Forms\Components\Tabs` component. This component will render the original field for each locale.

All chained methods you add before calling `->translatable()` will be applied to the original field. All chained methods you add after calling `->translatable()` will be applied to the `Filament\Forms\Components\Tabs` component.

Laravel support
---------------

[](#laravel-support)

Laravel VersionPackage version^11.0^1.0.2, ^2.0.0^10.0^1.0.0, ^2.0.0Changelog
---------

[](#changelog)

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

License
-------

[](#license)

MIT License (MIT). Read the [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance67

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

4

Last Release

195d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9512f928d019a19bf8f4c31781c08bf11f2ac4fa37ba0c4289844f49e1143db?d=identicon)[zakafk](/maintainers/zakafk)

---

Top Contributors

[![zakafk](https://avatars.githubusercontent.com/u/140996295?v=4)](https://github.com/zakafk "zakafk (7 commits)")

### Embed Badge

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

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

###  Alternatives

[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

118126.9k](/packages/stephenjude-filament-feature-flags)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[joaopaulolndev/filament-general-settings

Filament package to manage general settings

18129.7k](/packages/joaopaulolndev-filament-general-settings)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[marjose123/filament-webhook-server

Send webhooks from your filament apps

507.3k2](/packages/marjose123-filament-webhook-server)

PHPackages © 2026

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