PHPackages                             kaantanis/filament-tab-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. kaantanis/filament-tab-translatable

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

kaantanis/filament-tab-translatable
===================================

This is my package filament-tab-translatable

2.0.1(2y ago)221[1 PRs](https://github.com/KaanTanis/filament-tab-translatable/pulls)MITPHPPHP ^8.1

Since Sep 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/KaanTanis/filament-tab-translatable)[ Packagist](https://packagist.org/packages/kaantanis/filament-tab-translatable)[ Docs](https://github.com/kaantanis/filament-tab-translatable)[ GitHub Sponsors](https://github.com/KaanTanis)[ RSS](/packages/kaantanis-filament-tab-translatable/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (9)Versions (6)Used By (0)

filament-tab-translatable
=========================

[](#filament-tab-translatable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/05f87eb4ce9807fe234b022dbb7ab9f9d66630c39e8c895035244b53087f6388/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b61616e74616e69732f66696c616d656e742d7461622d7472616e736c617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaantanis/filament-tab-translatable)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2f40a6315e08376fb5c0cfb8c24db2b075c2e1642b69781461afd88a3c67beeb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b61616e74616e69732f66696c616d656e742d7461622d7472616e736c617461626c652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kaantanis/filament-tab-translatable/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6acc300b9ec230829cb7c0d299cbf1aa6a998cbbfa85b4a494d0ec81d88e0ec8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b61616e74616e69732f66696c616d656e742d7461622d7472616e736c617461626c652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/kaantanis/filament-tab-translatable/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f64453844769dba26b4ded7bf10f7aae87fbfd5bc07b02ec52fd41e47acf8bd2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b61616e74616e69732f66696c616d656e742d7461622d7472616e736c617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaantanis/filament-tab-translatable)

This package may not be as comprehensive and useful as a Spatie package. The purpose of this package is to store array data here if certain database columns are in JSON format. While doing this, the Tab component of Filament is used. A given key automatically gets separated according to languages. So, if the "title" key is sent, it returns with the existing languages as follows via tabs: "title.en, title.tr."

[![Screenshot](https://raw.githubusercontent.com/KaanTanis/filament-tab-translatable/main/art/screen.png)](https://raw.githubusercontent.com/KaanTanis/filament-tab-translatable/main/art/screen.png)

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

[](#installation)

You can install the package via composer:

```
composer require kaantanis/filament-tab-translatable
```

You can publish the config file with: (If not automatically published)

```
php artisan vendor:publish --tag="filament-tab-translatable-config"
```

You can add new languages to the config file

This is the contents of the published config file:

```
return [
    'default' => 'en', // for first tab

    'laravellocalization' => false, // if you use mcamara/laravel-localization package

    'tab-type' => 'code', // code or name (code: tr, en, name: Türkçe, English) default: code

    'list' => [
        'tr' => [
            'name' => 'Turkish',
            'native_name' => 'Türkçe',
            'code_upper' => 'TR',
            'code_lower' => 'tr',
            'flag' => 'tr',
        ],

        'en' => [
            'name' => 'English',
            'native_name' => 'English',
            'code_upper' => 'EN',
            'code_lower' => 'en',
            'flag' => 'gb',
        ],
    ],
];
```

Usage
-----

[](#usage)

```
FilamentTabTranslatable::make()
    ->untranslatable([
        TextInput::make('category')
            ->required(),
        FileUpload::make('image')
            ->image()
            ->directory('posts')
            ->required(),
    ])
    ->translatable([
        TextInput::make('title')
            ->required(),
        TextInput::make('slug')
            ->required(),
        Textarea::make('body')
            ->required(),
    ], 'columnName')
    ->render() // columnName for nested, not required if you want to use same key (columnName->anotherColumnName)

// IMPORTANT: render() method is required for render the component
// untranslatable() method is for non-translated columns
// IMPORTANT: Make sure field type is json in database
// The second parameter 'columnName' is only for translated columns. Not required if the column name is the same as the key.
```

### Render type

[](#render-type)

```
    ->render(:contained: false) // default true
// More details: https://filamentphp.com/docs/3.x/infolists/layout/tabs#removing-the-styled-container
```

Example
-------

[](#example)

```
// Open Your Model and add trait
use KaanTanis\FilamentTabTranslatable\Traits\HasTranslations;

class Post extends Model
{
    use HasTranslations;

    protected $guarded = [];

    public $translatable = ['title', 'body', 'slug']; // for $model->title etc. access
}

// You ready to go
```

```
// You can call directly
$post->title; // returns title of app()->getLocale() language
// IMPORTANT: Not working with nested json fields. Don't forget to define columns for public $translatable = [...]

// if you want to get specific language
$post->translate('columnName.title', 'en'); // returns title of en language
$post->translate('columnName.title', 'tr'); // returns title of tr language
$post->translate('columnName.title'); // returns title of app()->getLocale() language

// if second parameter is not given, it returns directly by key
$post->translate('description'); // not nested

// or shortly
$post->tt('title');
```

Developer notes
===============

[](#developer-notes)

This package, as I mentioned before, is not as comprehensive as Spatie and most likely has some issues. I will continue to develop this package and make it better, and during this process, my friends who would like to support the development of this package can contribute without hesitation. Filament needs a package like this. Thank you.

What need?
==========

[](#what-need)

- Tests
- Better documentation
- Access to nested json fields with attribute. Eg. $post-&gt;fields-&gt;title or $post-&gt;fields\['title\]

Testing
-------

[](#testing)

```
composer test
```

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](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

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

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.1% 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 ~20 days

Total

4

Last Release

963d ago

Major Versions

v1.x-dev → 2.0.02023-11-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/64961969?v=4)[Kaan](/maintainers/kaantanis)[@KaanTanis](https://github.com/KaanTanis)

---

Top Contributors

[![KaanTanis](https://avatars.githubusercontent.com/u/64961969?v=4)](https://github.com/KaanTanis "KaanTanis (30 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![afsakar](https://avatars.githubusercontent.com/u/75483091?v=4)](https://github.com/afsakar "afsakar (1 commits)")

---

Tags

filamentphplaravellocalizationtranslatable-fieldslaravelKaanTanisfilament-tab-translatable

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274327.2k9](/packages/croustibat-filament-jobs-monitor)[finity-labs/fin-mail

A powerful email template manager and composer for Filament with dynamic token replacement, template versioning, and inline email sending.

284.5k1](/packages/finity-labs-fin-mail)

PHPackages © 2026

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