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

ActiveLibrary

barnacode/nova-translatable
===========================

A Laravel Nova field for astrotomic/laravel-translatable.

0.2.6(3y ago)026MITVuePHP &gt;=7.3.0

Since Feb 18Pushed 3y agoCompare

[ Source](https://github.com/Twister3x/nova-translatable)[ Packagist](https://packagist.org/packages/barnacode/nova-translatable)[ RSS](/packages/barnacode-nova-translatable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (12)Used By (0)

[![](https://camo.githubusercontent.com/6ff29543710f544c707ede348dcaaad81fdc80329f611adc85bbdace4fb34804/68747470733a2f2f726963636172646f736c616e7a692e636f6d2f696d672f6e6f76612d7472616e736c617461626c652e706e67)](https://camo.githubusercontent.com/6ff29543710f544c707ede348dcaaad81fdc80329f611adc85bbdace4fb34804/68747470733a2f2f726963636172646f736c616e7a692e636f6d2f696d672f6e6f76612d7472616e736c617461626c652e706e67)

Laravel Nova Translatable
=========================

[](#laravel-nova-translatable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/fdc3fa8f99e671fa74cb6bf7367b2dee17bc837c7600470b151d04b33979c93a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72736c616e7a692f6e6f76612d7472616e736c617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rslanzi/nova-translatable)![Packagist](https://camo.githubusercontent.com/f0e4e572ed6eaf262477b5622a69ca006b0012dd98e1d8255d843328a2f37ded/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72736c616e7a692f6e6f76612d7472616e736c617461626c652e737667)[![StyleCI](https://camo.githubusercontent.com/b2ab70151e46ceae597bc86f79bcd1999d89a4b69912f2d3f25bc94fff825b35/68747470733a2f2f7374796c6563692e696f2f7265706f732f3333393939303738322f736869656c643f6272616e63683d6d61696e)](https://styleci.io/repos/339990782)

This [Laravel Nova](https://nova.laravel.com/) field allows you to manage translated fields with [astrotomic/laravel-translatable](https://github.com/Astrotomic/laravel-translatable).

Requirements
------------

[](#requirements)

```
laravel/nova: ^2.9 || ^3.0
astrotomic/laravel-translatable: ^11.0
waynestate/nova-ckeditor4-field: ^0.6.0
```

Features
--------

[](#features)

- Supports almost all Nova fields
- Supports default validation automatically
- Simple to implement with minimal code changes (after astrotomic/laravel-translatable support)
- Locale tabs to switch between different locale values of the same field

Supported fields
----------------

[](#supported-fields)

- Code
- Counted text (with max char and warning treshold)
- CKEditor
- Json
- Sluggable
- Text (also single line)
- Textarea
- Trix

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

[](#installation)

Firstly, set up [astrotomic/laravel-translatable](https://github.com/astrotomic/laravel-translatable).

Install the package in a Laravel Nova project via Composer:

```
# Install nova-translatable
composer require rslanzi/nova-translatable

# Publish configuration (optional, but useful for setting default locales)
php artisan vendor:publish --tag="nova-translatable-config"
```

Usage
-----

[](#usage)

### Text Field

[](#text-field)

Single line text field

```
NovaTranslatable::make('Title')
    ->singleLine()
```

### Textarea Field:

[](#textarea-field)

Multi line text field

```
NovaTranslatable::make('Text')
    ->hideFromIndex()
```

### Counted Text Field:

[](#counted-text-field)

Text field with chars counter

```
NovaTranslatable::make('Title')
    ->singleLine()
    ->counted()
```

#### Counted with max chars threshold.

[](#counted-with-max-chars-threshold)

Exceeded the threshold, the counter turns red.

```
NovaTranslatable::make('Title')
    ->singleLine()
    ->counted()
    ->maxChars(60)
    ->warningAt(50),
```

#### Counted with max chars and warning thresholds.

[](#counted-with-max-chars-and-warning-thresholds)

Exceeded the warning threshold, the counter turns orange, exceeded the max chars threshold, the counter turns red.

```
NovaTranslatable::make('Title')
    ->singleLine()
    ->counted()
    ->maxChars(60)
    ->warningAt(50),
```

### CKEditor Field

[](#ckeditor-field)

CKEditor WYSIWYG editor. Usefull to manage HTML fields.

```
NovaTranslatable::make('Text')
    ->ckeditor()
```

### Trix Field

[](#trix-field)

Trix field

```
NovaTranslatable::make('Text')
    ->trix()
```

### Sluggable Field

[](#sluggable-field)

Automatically populate a slug field based on another field. Title in this case.

```
NovaTranslatable::make('Title')
    ->sluggable('Slug'),
NovaTranslatableSlug::make('Slug')
    ->hideFromIndex(),
```

### Code Field

[](#code-field)

Code field. Use a syntax highlighted text area.

```
NovaTranslatable::make('Text')
    ->code()
```

#### Code Field with custom language

[](#code-field-with-custom-language)

Code field. Use a syntax highlighted text area.

```
NovaTranslatable::make('Text')
    ->code()
    ->language('php')
```

**The Code field's currently supported languages are:**dockerfile, javascript, markdown, nginx, php, ruby, sass, shell, vue, xml, yaml

### Json Field

[](#json-field)

```
NovaTranslatable::make('Text')
    ->json()
```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Support the development
-----------------------

[](#support-the-development)

**Do you like this project? Support it by donating**

- PayPal: [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=rslanzi%40gmail%2ecom&lc=CY&item_name=NovaTranslatable&no_note=0&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest)

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

[](#security-vulnerabilities)

If you discover a security vulnerability within Nova Translatable, please send an e-mail to Riccardo Slanzi at . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

Nova Translatable is free software distributed under the terme of the [MIT license](LICENSE.md).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.6% 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 ~96 days

Recently: every ~184 days

Total

9

Last Release

1135d ago

PHP version history (2 changes)0.1.0PHP ^7.2.0|^8.0

0.2.0PHP &gt;=7.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d67c617692798dfef880f95a051f3d1a305f8676efeeabc99ffb8800d3ca2d0?d=identicon)[Twister3x](/maintainers/Twister3x)

---

Top Contributors

[![alright](https://avatars.githubusercontent.com/u/154148?v=4)](https://github.com/alright "alright (16 commits)")[![rslanzi](https://avatars.githubusercontent.com/u/7341598?v=4)](https://github.com/rslanzi "rslanzi (14 commits)")[![Twister3x](https://avatars.githubusercontent.com/u/38492314?v=4)](https://github.com/Twister3x "Twister3x (1 commits)")

---

Tags

laraveltranslatableCKEditornova

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/barnacode-nova-translatable/health.svg)](https://phpackages.com/packages/barnacode-nova-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)[waynestate/nova-ckeditor4-field

This nova package allows you to use CKEditor 4 for text areas.

62739.1k8](/packages/waynestate-nova-ckeditor4-field)[mostafaznv/nova-ckeditor

CkEditor for Laravel Nova

57327.2k1](/packages/mostafaznv-nova-ckeditor)

PHPackages © 2026

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