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

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

novius/laravel-nova-translatable
================================

A Laravel Nova package for translatable fields

2.0.2(2mo ago)08.0k↓38.2%2AGPL-3.0-or-laterPHPPHP &gt;=8.2CI passing

Since Jul 17Pushed 2mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (13)Versions (16)Used By (2)

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

[](#laravel-nova-translatable)

[![License: AGPL v3](https://camo.githubusercontent.com/c61341f63648cdd5aba4f7a073b513106a63778c27b15f96c56157642bc943b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4147504c25323076332d626c75652e737667)](http://www.gnu.org/licenses/agpl-3.0)

Introduction
------------

[](#introduction)

This package allows you to manage Laravel Models which use [Laravel Translatable](https://github.com/novius/laravel-translatable) in [Laravel Nova](https://nova.laravel.com/).

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

[](#requirements)

- Laravel Nova &gt;= 4.0
- Laravel &gt;= 10.0
- PHP &gt;= 8.2
- Laravel Translatable &gt;= 2.0

> **NOTE**: These instructions are for Laravel &gt;= 10.0 and PHP &gt;= 8.2 If you are using prior version, please see the [previous version's docs](https://github.com/novius/laravel-nova-translatable/tree/0.x).

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

[](#installation)

You can install the package via composer:

```
composer require novius/laravel-nova-translatable
```

Assets
------

[](#assets)

Next, we need to publish the package's assets. We do this by running the following command:

```
php artisan vendor:publish --provider="Novius\LaravelNovaTranslatable\LaravelNovaTranslatableServiceProvider" --tag="public"
```

Fields, Action, Filter, Card
----------------------------

[](#fields-action-filter-card)

- Add `Locale` field on your Nova Resource.
- Add `Translations` field on your Nova Resource. Don't forget to add relation `translations` in the eager loading of your resource. You can translate item from the list of flags displayed.
- You can add the `LocaleFilter` filter on your Nova Resource.
- You can add the `Locales` card on your Nova Resource, if you've added the `LocaleFilter`.

```
use Laravel\Nova\Resource;
use Novius\LaravelNovaTranslatable\Nova\Actions\Translate;

class Post extends Resource
{
    // If your model uses the SoftDelete trait
    // public static $with = ['translationsWithDeleted'];
    // Otherwise
    public static $with = ['translations'];

    public function fields(NovaRequest $request): array
    {
        return [
            Locale::make(),
            Translations::make(),
        ];
    }

    // Optional, if you want to have a bar to switch locale of the items displayed on the index, more accessible than the filters
    // work with the filter LocaleFilter
    public function cards(NovaRequest $request): array
    {
        return [
            new Locales(),
        ];
    }

    public function filters(NovaRequest $request): array
    {
        return [
            new LocaleFilter(),
        ];
    }

    // Optional, if you want to implement custom translation on your model
    public function translate(): void
    {
         $model = $this->model();
         $model->attribute_to_translate = 'Translation';
    }
```

Lang files
----------

[](#lang-files)

If you want to customize the lang files, you can publish them with:

```
php artisan vendor:publish --provider="Novius\LaravelNovaTranslatable\LaravelNovaTranslatableServiceProvider" --tag="lang"
```

Lint
----

[](#lint)

Lint your code with Laravel Pint using:

```
composer run-script lint
```

Licence
-------

[](#licence)

This package is under [GNU Affero General Public License v3](http://www.gnu.org/licenses/agpl-3.0.html) or (at your option) any later version.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance85

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 91.9% 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 ~68 days

Recently: every ~90 days

Total

15

Last Release

77d ago

Major Versions

0.x-dev → 1.0.02024-07-10

1.x-dev → 2.0.02026-02-19

PHP version history (2 changes)0.0.1PHP ^8.1

1.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/341860?v=4)[Novius](/maintainers/novius)[@novius](https://github.com/novius)

---

Top Contributors

[![felixgilles](https://avatars.githubusercontent.com/u/900854?v=4)](https://github.com/felixgilles "felixgilles (34 commits)")[![tony-novius](https://avatars.githubusercontent.com/u/243603340?v=4)](https://github.com/tony-novius "tony-novius (2 commits)")[![tonyyb](https://avatars.githubusercontent.com/u/11064382?v=4)](https://github.com/tonyyb "tonyyb (1 commits)")

---

Tags

laraveltranslatablenova

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/novius-laravel-nova-translatable/health.svg)](https://phpackages.com/packages/novius-laravel-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)[outl1ne/nova-translations-loader

This Laravel Nova package helps developers load translations into their packages.

395.1M42](/packages/outl1ne-nova-translations-loader)[optimistdigital/nova-locale-manager

Laravel Nova tool to manage locales.

167.0k](/packages/optimistdigital-nova-locale-manager)[outl1ne/nova-locale-manager

Laravel Nova tool to manage locales.

161.9k](/packages/outl1ne-nova-locale-manager)

PHPackages © 2026

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