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

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

marshmallow/translatable
========================

Add translation to your Nova Resources. The translations will be stored in a translatables table and not in a JSON format in your existing tables as many packages out there do.

5.3.0(3mo ago)214.6k↓40%23MITPHPPHP ^8.0CI failing

Since Oct 7Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (8)Versions (117)Used By (3)

[![alt text](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67 "marshmallow.")](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67)

Nova Translatable
=================

[](#nova-translatable)

[![Version](https://camo.githubusercontent.com/c4c1e7f54bcf90ebe1d6ca0e7a9f1465d904774c10b98bc22c10702dbc4bf8bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617273686d616c6c6f772f7472616e736c617461626c65)](https://github.com/marshmallow-packages/translatable)[![Issues](https://camo.githubusercontent.com/828ab6c48c51e1aaae5e70543c53cc3b962e3f4ae25a48df01638658823276c8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d617273686d616c6c6f772d7061636b616765732f7472616e736c617461626c65)](https://github.com/marshmallow-packages/translatable)[![Code Coverage](https://camo.githubusercontent.com/a47a770765f8c7b5776c024ff602bfc3f3686ba8be5317b3d0c320c715df42c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d73756363657373)](https://github.com/marshmallow-packages/translatable)[![Licence](https://camo.githubusercontent.com/03d1c9842752ffa8c6c39e97da3c0829413524d07bd1119d1ddeb0541981dc1b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d617273686d616c6c6f772d7061636b616765732f7472616e736c617461626c65)](https://github.com/marshmallow-packages/translatable)

Add translation to your Nova Resources. The translations will be stored in a `translatables` table and not in a JSON format in your existing tables as many packages out there do.

[![](https://raw.githubusercontent.com/marshmallow-packages/translatable/main/resources/screenshots/translatable.png)](https://raw.githubusercontent.com/marshmallow-packages/translatable/main/resources/screenshots/translatable.png)

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

[](#installation)

You can install the package via composer:

```
composer require marshmallow/translatable
```

Publish configuration and assets

`php artisan vendor:publish --provider="Marshmallow\Translatable\ServiceProvider"`

Run the install command

`php artisan translatable:install`

Manual Installation
-------------------

[](#manual-installation)

If you prefer to install manually or the automatic installation doesn't work for your setup, follow these steps:

### 1. Add Default Locale Configuration

[](#1-add-default-locale-configuration)

Add the following line to your `config/app.php` file, right after the `'locale'` configuration:

```
'locale' => env('APP_LOCALE', 'en'),

'default_locale' => env('APP_LOCALE'),
```

### 2. Set Environment Variable

[](#2-set-environment-variable)

Make sure you have the `APP_LOCALE` environment variable set in your `.env` file:

```
APP_LOCALE=en
```

### 3. Run Migration and Synchronization Commands

[](#3-run-migration-and-synchronization-commands)

```
# Sync existing translation files to database
php artisan translatable:sync-file-to-database

# Sync missing translations
php artisan translatable:sync-missing

# Generate Nova resources (if using Laravel Nova)
php artisan marshmallow:resource Language Translatable --force
php artisan marshmallow:resource Translation Translatable --force
```

Usage
-----

[](#usage)

Please reference the official documentation at [Marshmallow Documentation](https://mrmallow.notion.site/Translatable-1c76ed0c3dbf8079b010fff1afc71986)

### Use Deepl integration

[](#use-deepl-integration)

This package contains an integration with Deepl. This integration will add a button to the translations index view, that will automaticly translate your text via Deepl. Just add the following ENV variable to use this awesome feature.

```
TRANSLATABLE_DEEPL_API_KEY=
```

This will use the free version of the Deepl API. If you have a paid subscription, you can add the following as well.

```
TRANSLATABLE_DEEPL_API_PATH=https://api.deepl.com
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)
- [joedixon](https://github.com/joedixon/laravel-translation)

License
-------

[](#license)

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

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance84

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 60.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 ~18 days

Total

110

Last Release

103d ago

Major Versions

v1.20.2 → v2.0.02022-05-04

v1.20.4 → v2.0.92022-06-29

v2.13.3 → 5.0.02025-08-07

PHP version history (3 changes)v1.0.0PHP &gt;=7.1.0

v1.7.1PHP ^7.1|^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/be33d2624e24c516e73892b0929447cc762f3622c024ab8d0d2a59042e5d2c7f?d=identicon)[marshmallow](/maintainers/marshmallow)

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (280 commits)")[![LTKort](https://avatars.githubusercontent.com/u/2412670?v=4)](https://github.com/LTKort "LTKort (129 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (50 commits)")[![milan607](https://avatars.githubusercontent.com/u/258212842?v=4)](https://github.com/milan607 "milan607 (1 commits)")

---

Tags

laraveltranslatablenova

### Embed Badge

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

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

Making Nova fields translatable

2231.5M1](/packages/spatie-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)

PHPackages © 2026

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