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

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

pezhvak/laravel-translator
==========================

A package to finally be able to localize projects without worrying about updating strings.

1.3(2y ago)0355MITPHPPHP ^8.1

Since Jul 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Pezhvak/laravel-translator)[ Packagist](https://packagist.org/packages/pezhvak/laravel-translator)[ Docs](https://github.com/pezhvak/laraveltranslator)[ RSS](/packages/pezhvak-laravel-translator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

laravel-translator
==================

[](#laravel-translator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d5d87c230819a7d4bf6e68b6837c5491932034174cb3e391e3b5f33cabdce384/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70657a6876616b2f6c61726176656c2d7472616e736c61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pezhvak/laravel-translator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/1c4d3363fbbaf76da8ec3c29c9bd5418b09ae372285c4ba7dfe8c9f11dafc0b1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f70657a6876616b2f6c61726176656c2d7472616e736c61746f722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/pezhvak/laravel-translator/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/70584820f083f1df37537079861490bfcacf4f19dc6f7ddb0ff1e858ffeb95c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f70657a6876616b2f6c61726176656c2d7472616e736c61746f722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/pezhvak/laravel-translator/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/a71a51716f4a49bdbb1f325f54b9cb9b6235f3a1bdd0f94d2df26f6bebaf24ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70657a6876616b2f6c61726176656c2d7472616e736c61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pezhvak/laravel-translator)

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

[](#installation)

You can install the package via composer:

```
composer require pezhvak/laravel-translator
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-translator-config"
```

make sure you add these environment variables to your `.env` file.

```
DEEPL_AUTH_KEY=
```

Usage
-----

[](#usage)

First migrate the database:

```
php artisan migrate
```

Now you can run the following command to detect changes and translate strings:

```
php artisan translator:translate
```

Sometimes you want to translate only few locales, you can do this by providing them in the first parameter (separate them by comma if you want to provide multiple locales):

```
php artisan translator:translate en,fa
```

If you add a new locale, it won't get translated since there is no changed string in the default language, to do this force the translation:

```
php artisan translator:translate [new_locale] --force
```

Changelog
---------

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/Pezhvak/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Pezhvak](https://github.com/Pezhvak)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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 ~159 days

Total

4

Last Release

929d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80fe63a037c64484387e591145783fe2ca80c0ce8229d9dec92b1a1c2157ef62?d=identicon)[Pezhvak](/maintainers/Pezhvak)

---

Top Contributors

[![Pezhvak](https://avatars.githubusercontent.com/u/3134479?v=4)](https://github.com/Pezhvak "Pezhvak (5 commits)")

---

Tags

laravelPezhvaklaraveltranslator

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[askdkc/breezejp

Laravel Starter Kit (Livewire+Breeze+Laravel UI+Jetstream)や標準のバリデーションメッセージを全て一瞬で日本語化し、言語切替機能も提供するパッケージです / This package provides all-in-one Japanese translation for Laravel StarterKit (Livewire StarterKit, Breeze, Laravel UI and Jetstream) packages and validation messages with language switching feature.

590244.8k1](/packages/askdkc-breezejp)[statikbe/laravel-filament-chained-translation-manager

A translation manager tool for Laravel Filament, that makes use of the Laravel Chained Translator.

92108.7k](/packages/statikbe-laravel-filament-chained-translation-manager)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[elegantly/laravel-translator

All on one translations management for Laravel

6216.9k](/packages/elegantly-laravel-translator)[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2266.3k](/packages/smousss-laravel-globalize)

PHPackages © 2026

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