PHPackages                             visual-ideas/moonshine-spatie-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. visual-ideas/moonshine-spatie-translatable

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

visual-ideas/moonshine-spatie-translatable
==========================================

Spatie\\Translatable field for MoonShine Laravel admin panel

3.0.1(1y ago)75.2k↓27.3%3[2 issues](https://github.com/visual-ideas/moonshine-spatie-translatable/issues)[1 PRs](https://github.com/visual-ideas/moonshine-spatie-translatable/pulls)1MITPHPPHP ^8.0|^8.1|^8.2|^8.3|^8.4

Since Apr 12Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/visual-ideas/moonshine-spatie-translatable)[ Packagist](https://packagist.org/packages/visual-ideas/moonshine-spatie-translatable)[ Docs](https://moonshine.cutcode.dev/section/fields-spatie-translatable)[ RSS](/packages/visual-ideas-moonshine-spatie-translatable/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)DependenciesVersions (25)Used By (1)

Spatie\\Translatable field for [MoonShine Laravel admin panel](https://moonshine-laravel.com)
=============================================================================================

[](#spatietranslatable-field-for-moonshine-laravel-admin-panel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/809f39706b52c2e5984d88de845416856416cb975cbe6e82d387e3fdadeb204c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76697375616c2d69646561732f6d6f6f6e7368696e652d7370617469652d7472616e736c617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/visual-ideas/moonshine-spatie-translatable)[![Total Downloads](https://camo.githubusercontent.com/66bfd6fdee92c2f22ea802295b606a26bae9936aac49c1a459d47138ff49c798/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76697375616c2d69646561732f6d6f6f6e7368696e652d7370617469652d7472616e736c617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/visual-ideas/moonshine-spatie-translatable)

Extend [JSON](https://moonshine-laravel.com/ru/docs/3.x/fields/json) field.

Compatibility
-------------

[](#compatibility)

MoonShineMoonshine Spatie TranslatableCurrently supported&gt;= v1.0^1.0no&gt;= v2.0^2.0yes&gt;= v3.0^3.0yes&gt;= v4.0^3.0yesInstallation
------------

[](#installation)

**This field belongs to a separate package, you have to complete the installation before using it**

For MoonShine 2.\*:

```
composer require "visual-ideas/moonshine-spatie-translatable:^2.0"
```

For MoonShine 3.*, 4.* (current version):

```
composer require "visual-ideas/moonshine-spatie-translatable:^3.0"
```

The field is purposed for work with the [Laravel-translatable](https://github.com/spatie/laravel-translatable) package made by [Spatie](https://spatie.be/open-source). Before using the Spatie\\Translatable field, make sure that:

- The [spatie/laravel-translatable](https://github.com/spatie/laravel-translatable) package is installed and configured.
- The field passed to the Spatie\\Translatable is added to the $translatable array of the model.

```
use VI\MoonShineSpatieTranslatable\Fields\Translatable;
//...
Translatable::make('Title', 'name')
//...
```

Mandatory translations
----------------------

[](#mandatory-translations)

The `->requiredLanguages(array $languages)` method is used to specify the languages required by the validator for creating/saving a record. It is recommended to pass the config('app.fallback\_locale') value to this method

```
use VI\MoonShineSpatieTranslatable\Fields\Translatable;
//...
Translatable::make('Title', 'name')
    ->requiredLanguages([config('app.fallback_locale'), 'ru'])
//...
```

Recommended translations
------------------------

[](#recommended-translations)

If you specify this array, the language codes in the forms for adding/modifying a specific translation will be placed at the beginning of the list of all possible languages.

```
use VI\MoonShineSpatieTranslatable\Fields\Translatable;
//...
Translatable::make('Title', 'name')
    ->priorityLanguages([config('app.fallback_locale'), config('app.locale'), 'de', 'fr', 'uk'])
//...
```

Deleting
--------

[](#deleting)

You can delete specific translations from out of the entered ones

```
Translatable::make('Field', 'field')
    ->removable()
```

If you leave the translation text blank, it will be deleted! If there are two translations into the same language, the translation that comes first will be deleted (replaced)!

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance52

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~44 days

Recently: every ~79 days

Total

23

Last Release

167d ago

Major Versions

0.0.1 → 1.0.02023-04-12

1.x-dev → 2.0.02023-11-22

2.2.1 → 3.0.02025-01-19

2.x-dev → 3.0.12025-02-01

PHP version history (2 changes)0.0.0PHP ^8.0|^8.1|^8.2

3.0.1PHP ^8.0|^8.1|^8.2|^8.3|^8.4

### Community

Maintainers

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

---

Top Contributors

[![alexvenga](https://avatars.githubusercontent.com/u/12836836?v=4)](https://github.com/alexvenga "alexvenga (32 commits)")[![SWEET1S](https://avatars.githubusercontent.com/u/84906111?v=4)](https://github.com/SWEET1S "SWEET1S (6 commits)")[![Ge1i0N](https://avatars.githubusercontent.com/u/6265043?v=4)](https://github.com/Ge1i0N "Ge1i0N (5 commits)")[![lee-to](https://avatars.githubusercontent.com/u/1861327?v=4)](https://github.com/lee-to "lee-to (1 commits)")

---

Tags

laravelmoonshinephpspatiespatie-laravel-translatablespatie-translatabletranslatetranslationvivisualideasphpspatielaraveltranslatetranslatabledictionarymoonshineviVisualIdeasspatie-translatableSpatie Laravel Translatable

### Embed Badge

![Health badge](/badges/visual-ideas-moonshine-spatie-translatable/health.svg)

```
[![Health](https://phpackages.com/badges/visual-ideas-moonshine-spatie-translatable/health.svg)](https://phpackages.com/packages/visual-ideas-moonshine-spatie-translatable)
```

###  Alternatives

[optimistdigital/nova-translatable

A laravel-translatable extension for Laravel Nova.

202427.4k5](/packages/optimistdigital-nova-translatable)[outl1ne/nova-translatable

A laravel-translatable extension for Laravel Nova.

203416.9k8](/packages/outl1ne-nova-translatable)[visual-ideas/moonshine-spatie-medialibrary

Spatie\\MediaLibrary field for MoonShine Laravel admin panel

2014.1k](/packages/visual-ideas-moonshine-spatie-medialibrary)[mvenghaus/filament-plugin-translatable-inline

An alternative to https://github.com/filamentphp/spatie-laravel-translatable-plugin. The difference is that all translations occur directly under each field.

2045.5k](/packages/mvenghaus-filament-plugin-translatable-inline)[tomatophp/filament-translations

Manage your translation with DB and cache, you can scan your languages tags like trans(), \_\_(), and get the string inside and translate them use UI.

6230.1k3](/packages/tomatophp-filament-translations)

PHPackages © 2026

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