PHPackages                             slaveofgod/laravel-translator - 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. slaveofgod/laravel-translator

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

slaveofgod/laravel-translator
=============================

PHP Laravel artisan command that extracting translation contents and updating translation files automatically

v1.2(6y ago)091MITPHPPHP &gt;=7.0.0

Since Jan 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/slaveofgod/laravel-translator)[ Packagist](https://packagist.org/packages/slaveofgod/laravel-translator)[ Docs](https://github.com/slaveofgod/laravel-translator)[ RSS](/packages/slaveofgod-laravel-translator/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (1)

Laravel Translations
====================

[](#laravel-translations)

The most time-consuming tasks when translating an application is to extract all the template contents to be translated and to keep all the translation files in sync. This package includes a command called `translation:update` that helps you with these tasks.

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

[](#installation)

```
$ composer require slaveofgod/laravel-translator dev-master
```

Commands:
---------

[](#commands)

### Update Command:

[](#update-command)

Update translations from source code.

```
$ php artisan translation:update {locale} {--force} {--dump-messages}
```

Arguments:

NameDescriptionDefaultlocaleThe locale-pathDirectory where to extract the messagesviewsOptions:

NameDescriptionDefaultforceShould the update be donefalsedump-messagesShould the messages be dumped in the consolefalseno-backupShould backup not be donefalsecleanShould clean not found messages. But we will ignore next files: 'validation', 'auth', 'passwords', 'pagination'falseprefixOverride the default prefix.\_\_,@lang,trans\_choice,@choice,\_\_ab,@lang\_ab,trans\_choice\_ab,@choice\_ab### Update Untracked Command:

[](#update-untracked-command)

Update translations with untracked messages.

If you want to be able to tracked untracked messages please use `__ab` and `trans_choice_ab`.

What is **untracked** message: `{{ __($message) }}` or `{{ trans_choice($message, 5, ['value' => 5]) }}`.

When you use `__ab`, `trans_choice_ab`, `@lang_ab` or `@choice_ab` function they will work the same way as `__`, `trans_choice``@lang` or `@choice` plus loging all messages to the special log file.

```
$ php artisan translation:untracked {locale} {--force} {--dump-messages}
```

Arguments:

NameDescriptionDefaultlocaleThe locale-Options:

NameDescriptionDefaultforceShould the update be donefalsedump-messagesShould the messages be dumped in the consolefalseno-backupShould backup not be donefalse### Diff Command:

[](#diff-command)

Difference between translation files and source code messages.

```
php artisan translation:diff en
```

Arguments:

NameDescriptionDefaultlocaleThe locale-pathDirectory where to extract the messagesviewsOptions:

NameDescriptionDefaultprefixOverride the default prefix.\_\_,@lang,trans\_choice,@choice,\_\_ab,@lang\_ab,trans\_choice\_ab,@choice\_ab---

if for any reason artisan can't find commands, you can register the provider manually on your `config/app.php` file:

```
return [
    ...
    'providers' => [
        ...
        AB\Laravel\Translator\ServiceProvider::class,
        ...
    ]
]
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

2296d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/071c7498c1edaed0a6ad9bd8593dcc9095d9eb6f806f2fb4c2b4dd082d76f630?d=identicon)[slaveofgod](/maintainers/slaveofgod)

---

Top Contributors

[![alexeybob](https://avatars.githubusercontent.com/u/1011566?v=4)](https://github.com/alexeybob "alexeybob (52 commits)")

---

Tags

laravellocalizationtranslationtranslatorcommandlaravel-translator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/slaveofgod-laravel-translator/health.svg)

```
[![Health](https://phpackages.com/badges/slaveofgod-laravel-translator/health.svg)](https://phpackages.com/packages/slaveofgod-laravel-translator)
```

###  Alternatives

[waavi/translation

A Translation package for Laravel 5 with database and cache support

367437.9k6](/packages/waavi-translation)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)[jayesh/laravel-gemini-translator

An interactive command to extract and generate Laravel translations using Gemini AI.

691.7k1](/packages/jayesh-laravel-gemini-translator)

PHPackages © 2026

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