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 today

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

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

979d 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

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M99](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k38](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)

PHPackages © 2026

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