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

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

kalimeromk/laravel-translation-manager
======================================

Enhanced Laravel Translation Manager - Fork of barryvdh/laravel-translation-manager with improved Bootstrap 4/5 and Tailwind CSS support

v2.0(7mo ago)02.5k↓50%MITPHPPHP &gt;=7.4

Since Feb 10Pushed 7mo ago1 watchersCompare

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

READMEChangelog (7)Dependencies (9)Versions (9)Used By (0)

Enhanced Laravel Translation Manager
====================================

[](#enhanced-laravel-translation-manager)

[![Tests](https://github.com/KalimeroMK/laravel-translation-manager/actions/workflows/run-tests.yml/badge.svg)](https://github.com/KalimeroMK/laravel-translation-manager/actions)[![Packagist License](https://camo.githubusercontent.com/4635cb8e2b9cec70e2eabb0b94e260ed1d83c6dd670e22d636f007fbd0eeda88/68747470733a2f2f706f7365722e707567782e6f72672f6b616c696d65726f2f6c61726176656c2d7472616e736c6174696f6e2d6d616e616765722f6c6963656e73652e706e67)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/9453149964fc748d23c66236740a903e10c85e34b84496d06d5e11f659c8ac00/68747470733a2f2f706f7365722e707567782e6f72672f6b616c696d65726f2f6c61726176656c2d7472616e736c6174696f6e2d6d616e616765722f76657273696f6e2e706e67)](https://packagist.org/packages/kalimero/laravel-translation-manager)[![Total Downloads](https://camo.githubusercontent.com/19f89389b507ea0b202c247babc970acd47611d3f17040b797a7d691f3be7081/68747470733a2f2f706f7365722e707567782e6f72672f6b616c696d65726f2f6c61726176656c2d7472616e736c6174696f6e2d6d616e616765722f642f746f74616c2e706e67)](https://packagist.org/packages/kalimero/laravel-translation-manager)

> **Fork Notice**: This is an enhanced fork of [barryvdh/laravel-translation-manager](https://github.com/barryvdh/laravel-translation-manager) with improved Bootstrap 4/5 and Tailwind CSS support, updated dependencies, and modern Laravel compatibility.

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)

What's New in This Fork
-----------------------

[](#whats-new-in-this-fork)

- ✅ **Enhanced Bootstrap 4/5 Support**: Updated CSS classes and improved responsive design
- ✅ **Better Tailwind CSS Integration**: Modern Tailwind 3 classes and improved styling
- ✅ **Updated Dependencies**: Compatible with Laravel 9-12
- ✅ **Modern Namespace**: `Kalimero\TranslationManager` namespace
- ✅ **Improved CDN Links**: Updated and reliable CDN resources
- ✅ **Better Error Handling**: Enhanced error handling and validation
- ✅ **Code Quality**: Improved code structure and Laravel best practices

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

[](#installation)

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

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

```

You need to run the migrations for this package.

```
php artisan vendor:publish --provider="Kalimero\TranslationManager\ManagerServiceProvider" --tag=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="Kalimero\TranslationManager\ManagerServiceProvider" --tag=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="Kalimero\TranslationManager\ManagerServiceProvider" --tag=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

```

### Middleware / Auth

[](#middleware--auth)

The configuration file by default only includes the `auth` middleware, but the latests changes in Laravel 5.2 makes it that session variables are only accessible when your route includes the `web` middleware. In order to make this package work on Laravel 5.2, you will have to change the route/middleware setting from the default

```
    'route' => [
        'prefix' => 'translations',
        'middleware' => 'auth',
    ],

```

to

```
    'route' => [
        'prefix' => 'translations',
        'middleware' => [
	        'web',
	        'auth',
		],
    ],

```

**NOTE:** *This is only needed in Laravel 5.2 (and up!)*

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',
'Kalimero\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

41

—

FairBetter than 89% of packages

Maintenance65

Regular maintenance activity

Popularity19

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64% 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 ~192 days

Recently: every ~228 days

Total

8

Last Release

211d ago

Major Versions

v1.7 → v2.02025-10-14

PHP version history (2 changes)1.2PHP &gt;=7

v2.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/472c4da0220f15747dd81d3a27ffbba022a06ab20f64a367ddcaacd790d812d7?d=identicon)[KalimeroMK](/maintainers/KalimeroMK)

---

Top Contributors

[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (112 commits)")[![KalimeroMK](https://avatars.githubusercontent.com/u/24772657?v=4)](https://github.com/KalimeroMK "KalimeroMK (8 commits)")[![cossou](https://avatars.githubusercontent.com/u/1337112?v=4)](https://github.com/cossou "cossou (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 (3 commits)")[![gazben](https://avatars.githubusercontent.com/u/3780285?v=4)](https://github.com/gazben "gazben (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)")[![al0mie](https://avatars.githubusercontent.com/u/5223895?v=4)](https://github.com/al0mie "al0mie (2 commits)")[![okaufmann](https://avatars.githubusercontent.com/u/4414498?v=4)](https://github.com/okaufmann "okaufmann (2 commits)")[![anorgan](https://avatars.githubusercontent.com/u/1270389?v=4)](https://github.com/anorgan "anorgan (2 commits)")[![EcoinTest](https://avatars.githubusercontent.com/u/153815470?v=4)](https://github.com/EcoinTest "EcoinTest (2 commits)")[![snipe](https://avatars.githubusercontent.com/u/197404?v=4)](https://github.com/snipe "snipe (2 commits)")[![honjoya](https://avatars.githubusercontent.com/u/688954?v=4)](https://github.com/honjoya "honjoya (2 commits)")[![uusa35](https://avatars.githubusercontent.com/u/3815504?v=4)](https://github.com/uusa35 "uusa35 (2 commits)")[![voicecode-bv](https://avatars.githubusercontent.com/u/4598259?v=4)](https://github.com/voicecode-bv "voicecode-bv (2 commits)")[![derekmd](https://avatars.githubusercontent.com/u/823566?v=4)](https://github.com/derekmd "derekmd (2 commits)")[![Nowi5](https://avatars.githubusercontent.com/u/27913135?v=4)](https://github.com/Nowi5 "Nowi5 (1 commits)")[![ALTELMA](https://avatars.githubusercontent.com/u/4938568?v=4)](https://github.com/ALTELMA "ALTELMA (1 commits)")[![dexmans](https://avatars.githubusercontent.com/u/254140?v=4)](https://github.com/dexmans "dexmans (1 commits)")

---

Tags

laraveltranslationstailwindtranslatorbootstrapfork

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/kalimeromk-laravel-translation-manager/health.svg)](https://phpackages.com/packages/kalimeromk-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)

PHPackages © 2026

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