PHPackages                             itsimplycom/nova-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. itsimplycom/nova-translatable

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

itsimplycom/nova-translatable
=============================

A Laravel Nova field for dimsav/laravel-translatable.

4184[1 issues](https://github.com/itsimplycom/nova-translatable/issues)Vue

Since Oct 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/itsimplycom/nova-translatable)[ Packagist](https://packagist.org/packages/itsimplycom/nova-translatable)[ RSS](/packages/itsimplycom-nova-translatable/feed)WikiDiscussions develop Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Nova Translatable Field
=======================

[](#nova-translatable-field)

[![Latest Stable Version](https://camo.githubusercontent.com/be05159d0911168f648bd031b0eec4eac73de38a222f839a87fbec9591e2a485/68747470733a2f2f706f7365722e707567782e6f72672f697473696d706c79636f6d2f6e6f76612d7472616e736c617461626c652f762f737461626c65)](https://packagist.org/packages/itsimplycom/nova-translatable)[![Total Downloads](https://camo.githubusercontent.com/009127160850db98130ef64d2d036c71238d299999947d233c61e05063b75722/68747470733a2f2f706f7365722e707567782e6f72672f697473696d706c79636f6d2f6e6f76612d7472616e736c617461626c652f646f776e6c6f616473)](https://packagist.org/packages/itsimplycom/nova-translatable)[![Latest Unstable Version](https://camo.githubusercontent.com/a094d479de49215d4e02ac20cee2c06dcbe98361251a190fb8a4aab2e71be602/68747470733a2f2f706f7365722e707567782e6f72672f697473696d706c79636f6d2f6e6f76612d7472616e736c617461626c652f762f756e737461626c65)](https://packagist.org/packages/itsimplycom/nova-translatable)[![License](https://camo.githubusercontent.com/843d1b6f5ae3c9413b4c266ece9917cdac365aab39bc85735c6ffa6aa4a69b12/68747470733a2f2f706f7365722e707567782e6f72672f697473696d706c79636f6d2f6e6f76612d7472616e736c617461626c652f6c6963656e7365)](https://packagist.org/packages/itsimplycom/nova-translatable)[![composer.lock](https://camo.githubusercontent.com/e4e67a85adb3d8c92a047ef294eb14d9dd62b2288645f8f95cc0e43ee0c35440/68747470733a2f2f706f7365722e707567782e6f72672f697473696d706c79636f6d2f6e6f76612d7472616e736c617461626c652f636f6d706f7365726c6f636b)](https://packagist.org/packages/itsimplycom/nova-translatable)[![StyleCI](https://camo.githubusercontent.com/3af064d887fcc5fd47c776a7236fcb494e8062d81957c933b6141a36a7e05521/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135333738303139342f736869656c643f6272616e63683d646576656c6f70)](https://github.styleci.io/repos/153780194)

This package is based on [mrmonat/nova-translatable](https://github.com/mrmonat/nova-translatable) and on [yeswedev/nova-translatable](https://framagit.org/yeswedev/ywd_nova-translatable) .

Adds the ability to show and edit translated fields created with [dimsav/laravel-translatable](https://github.com/dimsav/laravel-translatable) package.

It will show up in the detail view like this:

[![](https://camo.githubusercontent.com/be3f959a21736e249433ae4c0d3317bcc539a4f69cf97a06f3ddf48d9f3e895b/68747470733a2f2f6d726d6f6e61742e64652f6769746875622f696d616765732f6e6f76612d7370617469652d7472616e736c617461626c652d64657461696c732e706e67)](https://camo.githubusercontent.com/be3f959a21736e249433ae4c0d3317bcc539a4f69cf97a06f3ddf48d9f3e895b/68747470733a2f2f6d726d6f6e61742e64652f6769746875622f696d616765732f6e6f76612d7370617469652d7472616e736c617461626c652d64657461696c732e706e67)

And in the edit view like this:

[![](https://camo.githubusercontent.com/4c76c89e71e2de0b8922d8d075f711204d6595815fa8baaba9ecc1cab111b588/68747470733a2f2f6d726d6f6e61742e64652f6769746875622f696d616765732f6e6f76612d7370617469652d7472616e736c617461626c652d656469742e706e67)](https://camo.githubusercontent.com/4c76c89e71e2de0b8922d8d075f711204d6595815fa8baaba9ecc1cab111b588/68747470733a2f2f6d726d6f6e61742e64652f6769746875622f696d616765732f6e6f76612d7370617469652d7472616e736c617461626c652d656469742e706e67)

Installation and usage
----------------------

[](#installation-and-usage)

You can require this package using composer:

```
composer require yeswedev/nova-translatable

```

You can add the field follows:

```
use Its\Nova\Translatable\Translatable;

Translatable::make('Description'),
```

Make sure, that you have your Eloquent model setup correct:

- First, you need to add the `Dimsav\Translatable\Translatable`-trait.
- Next, you should create a public property `$translatedAttributes` which holds an array with all the names of attributes you wish to make translatable.
- Finally, you should make sure that all translatable attributes are set to the `text`-datatype in your database. If your database supports `json`-columns, use that.

Here's an example of a prepared model:

```
use Illuminate\Database\Eloquent\Model;
use Dimsav\Translatable\Translatable;

class NewsItem extends Model
{
    use Translatable;

    public $translatedAttributes = ['name'];
}
```

### Defining Locales

[](#defining-locales)

Locales can be defined via config file `config/translatable.php` by adding a `locales` array:

```
// config/translatable.php
return [
    ...
    'locales' => [
        'en' => 'English',
        'de' => 'German',
        'fr' => 'French',
    ],
];
```

Alternatively you can "override" the config locales with the `locales(...)` method:

```
Translatable::make('Description')->locales([
    'en' => 'English',
    'de' => 'German',
]),
```

### Single Line Option

[](#single-line-option)

By default the input field on the edit view is a textarea. If you want to change it to a single line input field you can add the `singleLine()` option:

```
Translatable::make('Description')->locales([...])->singleLine(),
```

### Trix Editor

[](#trix-editor)

You can use the trix editor for your translated fields by using the `trix()` option:

```
Translatable::make('Description')->trix(),
```

### Index View

[](#index-view)

By default the locale used when displaying the field on the index view is determined by `app()->getLocale()`. To override this you can use the `indexLocale($locale)` option:

```
Translatable::make('Description')->indexLocale('de'),
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.2% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1949129?v=4)[Angelo Alfano](/maintainers/ngi)[@ngi](https://github.com/ngi)

---

Top Contributors

[![mrmonat](https://avatars.githubusercontent.com/u/17597850?v=4)](https://github.com/mrmonat "mrmonat (24 commits)")[![ngi](https://avatars.githubusercontent.com/u/1949129?v=4)](https://github.com/ngi "ngi (11 commits)")[![andypa](https://avatars.githubusercontent.com/u/148700?v=4)](https://github.com/andypa "andypa (1 commits)")[![benjamincrozat](https://avatars.githubusercontent.com/u/3613731?v=4)](https://github.com/benjamincrozat "benjamincrozat (1 commits)")[![vmitchell85](https://avatars.githubusercontent.com/u/1248035?v=4)](https://github.com/vmitchell85 "vmitchell85 (1 commits)")

### Embed Badge

![Health badge](/badges/itsimplycom-nova-translatable/health.svg)

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

###  Alternatives

[php-translation/translator

Translator services

25224.8k5](/packages/php-translation-translator)[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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