PHPackages                             chipinside/laravel-translation-manager - 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. chipinside/laravel-translation-manager

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

chipinside/laravel-translation-manager
======================================

Manage Laravel Translations

v0.16.1(1y ago)041MITBladePHP &gt;=8.2

Since Jun 1Pushed 1y ago3 watchersCompare

[ Source](https://github.com/chipinside/laravel-translation-manager)[ Packagist](https://packagist.org/packages/chipinside/laravel-translation-manager)[ RSS](/packages/chipinside-laravel-translation-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (65)Used By (0)

Laravel Translation Manager
---------------------------

[](#laravel-translation-manager)

[![Tests](https://github.com/barryvdh/laravel-translation-manager/actions/workflows/run-tests.yml/badge.svg)](https://github.com/barryvdh/laravel-translation-manager/actions)[![Packagist License](https://camo.githubusercontent.com/3d381b81f722d6b9b8a9f0ac19a35c3aa14d5c47e932a72f0783f5517db897c6/68747470733a2f2f706f7365722e707567782e6f72672f62617272797664682f6c61726176656c2d7472616e736c6174696f6e2d6d616e616765722f6c6963656e73652e706e67)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/1d491a617ab97b5b0dd6ddd78e46bfd524bbaa80b395feb7f01e5d2b9cb540fa/68747470733a2f2f706f7365722e707567782e6f72672f62617272797664682f6c61726176656c2d7472616e736c6174696f6e2d6d616e616765722f76657273696f6e2e706e67)](https://packagist.org/packages/barryvdh/laravel-translation-manager)[![Total Downloads](https://camo.githubusercontent.com/c93bf213d0af05e518f769083f4f6e61c8a0874d80722880983504366db50c04/68747470733a2f2f706f7365722e707567782e6f72672f62617272797664682f6c61726176656c2d7472616e736c6174696f6e2d6d616e616765722f642f746f74616c2e706e67)](https://packagist.org/packages/barryvdh/laravel-translation-manager)[![Fruitcake](https://camo.githubusercontent.com/28d7584b52e33d7b4ffb6b1bef8b89b6e598adb45c8c0d5f80349c1c304f385e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f776572656425323042792d467275697463616b652d6232626333352e737667)](https://fruitcake.nl/)

This is a package to manage Laravel translation files. It does not replace the Translation system, only import/export the php files to a database and make them editable through a webinterface. The workflow would be:

```
- Import translations: Read all translation files and save them in the database
- Find all translations in php/twig sources
- Optionally: Listen to missing translation with the custom Translator
- Translate all keys through the webinterface
- Export: Write all translations back to the translation files.

```

This way, translations can be saved in git history and no overhead is introduced in production.

[![Screenshot](https://camo.githubusercontent.com/9837810bffea25c3d6854c960cbcbe9228631439c51f9ba4304c575e0c59ed88/687474703a2f2f692e696d6775722e636f6d2f347468326b72662e706e67)](https://camo.githubusercontent.com/9837810bffea25c3d6854c960cbcbe9228631439c51f9ba4304c575e0c59ed88/687474703a2f2f692e696d6775722e636f6d2f347468326b72662e706e67)

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

[](#installation)

Require this package in your composer.json and run composer update (or run `composer require chipinside/laravel-translation-manager` directly):

```
composer require chipinside/laravel-translation-manager

```

You need to run the migrations for this package.

```
php artisan vendor:publish --provider="Barryvdh\TranslationManager\ManagerServiceProvider" --tag=translations-migrations
php artisan migrate

```

You need to publish the config file for this package. This will add the file `config/translation-manager.php`, where you can configure this package.

```
php artisan vendor:publish --provider="Barryvdh\TranslationManager\ManagerServiceProvider" --tag=translations-config

```

In order to edit the default template, the views must be published as well. The views will then be placed in `resources/views/vendor/translation-manager`.

```
php artisan vendor:publish --provider="Barryvdh\TranslationManager\ManagerServiceProvider" --tag=translations-views

```

Routes are added in the ServiceProvider. You can set the group parameters for the routes in the configuration. You can change the prefix or filter/middleware for the routes. If you want full customisation, you can extend the ServiceProvider and override the `map()` function.

This example will make the translation manager available at `http://yourdomain.com/translations`

If you would like to use auto translation using Google Translate API, install

```
composer require tanmuhittin/laravel-google-translate
php artisan vendor:publish --provider=Tanmuhittin\LaravelGoogleTranslate\LaravelGoogleTranslateServiceProvider

```

Usage
-----

[](#usage)

### Web interface

[](#web-interface)

When you have imported your translation (via buttons or command), you can view them in the webinterface (on the url you defined with the controller). You can click on a translation and an edit field will popup. Just click save and it is saved :) When a translation is not yet created in a different locale, you can also just edit it to create it.

Using the buttons on the webinterface, you can import/export the translations. For publishing translations, make sure your application can write to the language directory.

You can also use the commands below.

### Import command

[](#import-command)

The import command will search through app/lang and load all strings in the database, so you can easily manage them.

```
php artisan translations:import

```

Translation strings from app/lang/locale.json files will be imported to the \_*json* group.

Note: By default, only new strings are added. Translations already in the DB are kept the same. If you want to replace all values with the ones from the files, add the `--replace` (or `-R`) option: `php artisan translations:import --replace`

### Find translations in source

[](#find-translations-in-source)

The Find command/button will look search for all php/twig files in the app directory, to see if they contain translation functions, and will try to extract the group/item names. The found keys will be added to the database, so they can be easily translated. This can be done through the webinterface, or via an Artisan command.

```
php artisan translations:find

```

If your project uses translation strings as keys, these will be stored into then \_*json* group.

### Export command

[](#export-command)

The export command will write the contents of the database back to app/lang php files. This will overwrite existing translations and remove all comments, so make sure to backup your data before using. Supply the group name to define which groups you want to publish.

```
php artisan translations:export

```

For example, `php artisan translations:export reminders` when you have 2 locales (en/nl), will write to `app/lang/en/reminders.php` and `app/lang/nl/reminders.php`

To export translation strings as keys to JSON files , use the `--json` (or `-J`) option: `php artisan translations:export --json`. This will import every entries from the \_*json* group.

### Clean command

[](#clean-command)

The clean command will search for all translation that are NULL and delete them, so your interface is a bit cleaner. Note: empty translations are never exported.

```
php artisan translations:clean

```

### Reset command

[](#reset-command)

The reset command simply clears all translation in the database, so you can start fresh (by a new import). Make sure to export your work if needed before doing this.

```
php artisan translations:reset

```

### Detect missing translations

[](#detect-missing-translations)

Most translations can be found by using the Find command (see above), but in case you have dynamic keys (variables/automatic forms etc), it can be helpful to 'listen' to the missing translations. To detect missing translations, we can swap the Laravel TranslationServiceProvider with a custom provider. In your `config/app.php`, comment out the original TranslationServiceProvider and add the one from this package:

```
//'Illuminate\Translation\TranslationServiceProvider',
'Barryvdh\TranslationManager\TranslationServiceProvider',

```

This will extend the Translator and will create a new database entry, whenever a key is not found, so you have to visit the pages that use them. This way it shows up in the webinterface and can be edited and later exported. You shouldn't use this in production, just in development to translate your views, then just switch back.

TODO
----

[](#todo)

This package is still very alpha. Few things that are on the todo-list:

```
- Add locales/groups via webinterface
- Improve webinterface (more selection/filtering, behavior of popup after save etc)
- Seed existing languages (https://github.com/caouecs/Laravel-lang)
- Suggestions are welcome :)

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 56.3% 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 ~58 days

Recently: every ~135 days

Total

64

Last Release

682d ago

PHP version history (8 changes)v0.1.0PHP &gt;=5.3.0

v0.1.3PHP &gt;=5.4.0

v0.5.0PHP &gt;=7

v0.6.1PHP &gt;=7.2

v0.7.0PHP &gt;=7.4

v0.8.0PHP &gt;=8.0

v0.8.4PHP &gt;=8.1

v0.16.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/442cd299d4ec476168c0d4274a4f2f784573c61d27a0a955067bc05233bbcec5?d=identicon)[emiliopedrollo](/maintainers/emiliopedrollo)

---

Top Contributors

[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (126 commits)")[![emiliopedrollo](https://avatars.githubusercontent.com/u/6577541?v=4)](https://github.com/emiliopedrollo "emiliopedrollo (32 commits)")[![cossou](https://avatars.githubusercontent.com/u/1337112?v=4)](https://github.com/cossou "cossou (7 commits)")[![mihaisolomon](https://avatars.githubusercontent.com/u/17908506?v=4)](https://github.com/mihaisolomon "mihaisolomon (7 commits)")[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (5 commits)")[![tanmuhittin](https://avatars.githubusercontent.com/u/7202383?v=4)](https://github.com/tanmuhittin "tanmuhittin (4 commits)")[![gazben](https://avatars.githubusercontent.com/u/3780285?v=4)](https://github.com/gazben "gazben (3 commits)")[![m-menezes](https://avatars.githubusercontent.com/u/8060905?v=4)](https://github.com/m-menezes "m-menezes (3 commits)")[![sangnguyenplus](https://avatars.githubusercontent.com/u/6972407?v=4)](https://github.com/sangnguyenplus "sangnguyenplus (3 commits)")[![ttomdewit](https://avatars.githubusercontent.com/u/2845400?v=4)](https://github.com/ttomdewit "ttomdewit (3 commits)")[![voicecode-bv](https://avatars.githubusercontent.com/u/4598259?v=4)](https://github.com/voicecode-bv "voicecode-bv (2 commits)")[![anorgan](https://avatars.githubusercontent.com/u/1270389?v=4)](https://github.com/anorgan "anorgan (2 commits)")[![derekmd](https://avatars.githubusercontent.com/u/823566?v=4)](https://github.com/derekmd "derekmd (2 commits)")[![EcoinTest](https://avatars.githubusercontent.com/u/153815470?v=4)](https://github.com/EcoinTest "EcoinTest (2 commits)")[![gilbertorussi](https://avatars.githubusercontent.com/u/33965697?v=4)](https://github.com/gilbertorussi "gilbertorussi (2 commits)")[![honjoya](https://avatars.githubusercontent.com/u/688954?v=4)](https://github.com/honjoya "honjoya (2 commits)")[![JoseVte](https://avatars.githubusercontent.com/u/3540836?v=4)](https://github.com/JoseVte "JoseVte (2 commits)")[![okaufmann](https://avatars.githubusercontent.com/u/4414498?v=4)](https://github.com/okaufmann "okaufmann (2 commits)")[![snipe](https://avatars.githubusercontent.com/u/197404?v=4)](https://github.com/snipe "snipe (2 commits)")[![uusa35](https://avatars.githubusercontent.com/u/3815504?v=4)](https://github.com/uusa35 "uusa35 (2 commits)")

---

Tags

laraveltranslationstranslator

### Embed Badge

![Health badge](/badges/chipinside-laravel-translation-manager/health.svg)

```
[![Health](https://phpackages.com/badges/chipinside-laravel-translation-manager/health.svg)](https://phpackages.com/packages/chipinside-laravel-translation-manager)
```

###  Alternatives

[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)[vsch/laravel-translation-manager

Enhanced Laravel Translation Manager

184190.9k2](/packages/vsch-laravel-translation-manager)[highsolutions/laravel-translation-manager

Manage Laravel Translations

1518.8k](/packages/highsolutions-laravel-translation-manager)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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