PHPackages                             alisalehi/laravel-lang-files-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. alisalehi/laravel-lang-files-translator

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

alisalehi/laravel-lang-files-translator
=======================================

easiest way to translate lang files to another language in laravel

v1.0.6(1y ago)474.9k↑23.1%8[2 issues](https://github.com/alisalehi1380/laravel-lang-files-translator/issues)[4 PRs](https://github.com/alisalehi1380/laravel-lang-files-translator/pulls)MITPHPPHP &gt;=8.0

Since Dec 14Pushed 1y ago2 watchersCompare

[ Source](https://github.com/alisalehi1380/laravel-lang-files-translator)[ Packagist](https://packagist.org/packages/alisalehi/laravel-lang-files-translator)[ Docs](https://github.com/alisalehi1380/laravel-lang-files-translator)[ RSS](/packages/alisalehi-laravel-lang-files-translator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

Laravel Lang Files Translator
-----------------------------

[](#laravel-lang-files-translator)

[![Laravel Lang Files Translator](https://camo.githubusercontent.com/81a64dda20b4eef0a65ba081091a0c32217a88a2e8da3b6d43b142be1bdaeee0/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f6c61726176656c2d6c616e672d66696c65732d7472616e736c61746f722532302e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d616c6973616c6568692532466c61726176656c2d6c616e672d66696c65732d7472616e736c61746f72267061747465726e3d666f7572506f696e745374617273267374796c653d7374796c655f31266465736372697074696f6e3d456173696573742b7761792b746f2b7472616e736c6174652b6c616e672b66696c6573266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d7472616e736c617465)](https://camo.githubusercontent.com/81a64dda20b4eef0a65ba081091a0c32217a88a2e8da3b6d43b142be1bdaeee0/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f6c61726176656c2d6c616e672d66696c65732d7472616e736c61746f722532302e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d616c6973616c6568692532466c61726176656c2d6c616e672d66696c65732d7472616e736c61746f72267061747465726e3d666f7572506f696e745374617273267374796c653d7374796c655f31266465736372697074696f6e3d456173696573742b7761792b746f2b7472616e736c6174652b6c616e672b66696c6573266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d7472616e736c617465)[![PHP Version Require](https://camo.githubusercontent.com/e73f0cb89505a63005dfc16ce46f176d8aa23ee47312fe56c86dcf09d4304807/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f616c6973616c6568692f6c61726176656c2d6c616e672d66696c65732d7472616e736c61746f722f7068702e7376673f)](https://packagist.org/packages/alisalehi/laravel-lang-files-translator)[![Required Laravel Version](https://camo.githubusercontent.com/0b7e8f63164b38a6467607da33dd4f69c858b0238f1fca575697e15de2da02ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f616c6973616c6568692f6c61726176656c2d6c616e672d66696c65732d7472616e736c61746f722f6c61726176656c2f6672616d65776f726b2e7376673f636f6c6f723d253233663133633266)](https://packagist.org/packages/alisalehi/laravel-lang-files-translator)[![Total Downloads](https://camo.githubusercontent.com/b0057ba8db9b811c634b0200f4b02f04ad7f490505a7027e84740a2ddb74e01b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c6973616c6568692f6c61726176656c2d6c616e672d66696c65732d7472616e736c61746f722e7376673f636f6c6f723d627269676874677265656e)](https://packagist.org/packages/alisalehi/laravel-lang-files-translator)[![License](https://camo.githubusercontent.com/fade18d5c88740583061fdb50d620951b88dbc56b2f2c55a6cba55d793259cb1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c6973616c6568692f6c61726176656c2d6c616e672d66696c65732d7472616e736c61746f722e7376673f)](https://packagist.org/packages/alisalehi/laravel-lang-files-translator)

---

Laravel lang files translator is a package for the Easiest way to translate lang files to other languages in PHP format in Laravel.

Problems solved:
================

[](#problems-solved)

Did you buy a Laravel script and it doesn't have your language in the`lang`file?
Do you want to make your web application bilingual, but you don't know how to translate all those words?
Do you not have the possibility to use the JSON format that many Laravel language translation packages give you?

Installation
============

[](#installation)

```
composer require alisalehi/laravel-lang-files-translator

```

💎Usage
======

[](#usage)

```
php artisan translate:lang {from} {to}

```

for example, your locale is English and you have en lang files and want to have these files to Persian(fa) lang too. just enough to run:

```
php artisan translate:lang en fa

```

and done! Go to lang/fa and you will see all the translated files from the en folder.

how to use video ⤵️

    291937142-9fdb0342-a045-4a3d-8b76-51c848dce2ec.mp4    🙋‍♂️Contributing
----------------

[](#‍️contributing)

[![laravel-lang-files-translator](https://private-user-images.githubusercontent.com/111766206/288176634-a43389af-2f2e-4f29-8993-0609b94abbe8.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ0MTAyNjksIm5iZiI6MTc3NDQwOTk2OSwicGF0aCI6Ii8xMTE3NjYyMDYvMjg4MTc2NjM0LWE0MzM4OWFmLTJmMmUtNGYyOS04OTkzLTA2MDliOTRhYmJlOC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyNVQwMzM5MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hOGVhODE3Njg1NjM5NzE2NWQ5YTZlNGY4ZTc3YWY1NTVmOGE0ZGM2NGYwYjY0OTFlODIyZWU4YmZhMGIyM2Q4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.bci7BzcJVD3gVO7TGrUsbyui_UiAGgY4QbwUgzRIuv8)](https://private-user-images.githubusercontent.com/111766206/288176634-a43389af-2f2e-4f29-8993-0609b94abbe8.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ0MTAyNjksIm5iZiI6MTc3NDQwOTk2OSwicGF0aCI6Ii8xMTE3NjYyMDYvMjg4MTc2NjM0LWE0MzM4OWFmLTJmMmUtNGYyOS04OTkzLTA2MDliOTRhYmJlOC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyNVQwMzM5MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hOGVhODE3Njg1NjM5NzE2NWQ5YTZlNGY4ZTc3YWY1NTVmOGE0ZGM2NGYwYjY0OTFlODIyZWU4YmZhMGIyM2Q4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.bci7BzcJVD3gVO7TGrUsbyui_UiAGgY4QbwUgzRIuv8)

As Einstein said, **"There's a way to do it better!"** So I welcome any change that makes the code better, more readable, and testable. (Even renaming a variable!)

Just open an issue or pull a request.

License
-------

[](#license)

The MIT License (MIT). See **[License File](https://github.com/alisalehi1380/laravel-lang-files-translator/blob/master/LICENSE)** for more information.

❤️Contributing
--------------

[](#️contributing)

This project exists thanks to all the people who contribute. [CONTRIBUTING](https://github.com/alisalehi/laravel-lang-files-translator/graphs/contributors)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance43

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.1% 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 ~73 days

Recently: every ~66 days

Total

7

Last Release

443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7506707127740c84a6ee0aca52a02045c4d2a6b0adedee8a9de24e550350904b?d=identicon)[alisalehi1380](/maintainers/alisalehi1380)

---

Top Contributors

[![alisalehi1380](https://avatars.githubusercontent.com/u/111766206?v=4)](https://github.com/alisalehi1380 "alisalehi1380 (49 commits)")[![am-mokhtari](https://avatars.githubusercontent.com/u/123626041?v=4)](https://github.com/am-mokhtari "am-mokhtari (2 commits)")

---

Tags

laravel-langlaravel-lang-files-translatorlaravel-translatorlaravel-translatorlaravel lang files translator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alisalehi-laravel-lang-files-translator/health.svg)

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

###  Alternatives

[waavi/translation

A Translation package for Laravel 5 with database and cache support

367437.9k6](/packages/waavi-translation)[elegantly/laravel-translator

All on one translations management for Laravel

6216.9k](/packages/elegantly-laravel-translator)[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)
