PHPackages                             shadcs/lang-generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shadcs/lang-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shadcs/lang-generator
=====================

Translate language files from one language to another using Google Translate.

v1.0.0(1y ago)14MITPHPPHP ^8.2

Since Dec 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shadcs/LanguageGenerator)[ Packagist](https://packagist.org/packages/shadcs/lang-generator)[ RSS](/packages/shadcs-lang-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Language Generator
==================

[](#language-generator)

Translate language files from one language to another using Google Translate.

Install
-------

[](#install)

```
composer require shadcs/lang-generator
```

How to use it
-------------

[](#how-to-use-it)

You can use the following

```
  php artisan lang-translate [from] [to] --source_path=
```

The generator will translate \[from\] to \[to\] language. Get all files and look up files inside \[source\_path\] and get all variables inside the file; create a file and translate using translate.googleapis.com.

This is what the translation process looks like.

```
❯ php artisan lang-translate en ckb --source_path=en

 🚀 Translate to 'ckb'
 1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% -- 💯
```

Usage example
-------------

[](#usage-example)

- Single output

```
php artisan lang-translate en ckb --source_path=en
```

- Multiple output

```
php artisan lang-translate en ckb ar fr pt-PT pt-BR zh-CN --source_path=en
```

- If you are using json translation

```
php artisan lang-translate en ckb --source_path=en --json
```

as well as you can specify the translation destination by using \[--destination\_path=\]

like following:

```
php artisan lang-translate en ckb --source_path=en --destination_path=path/to/ckb
```

Authors
-------

[](#authors)

- [@Shad Y. Abdalla](https://www.github.com/shadcs)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

531d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42f6fb5371a1e21e9c487c2424417d6a62774ca16847be5427c93ea5bcc59c5e?d=identicon)[shadcs](/maintainers/shadcs)

---

Top Contributors

[![shadcs](https://avatars.githubusercontent.com/u/33152611?v=4)](https://github.com/shadcs "shadcs (9 commits)")

### Embed Badge

![Health badge](/badges/shadcs-lang-generator/health.svg)

```
[![Health](https://phpackages.com/badges/shadcs-lang-generator/health.svg)](https://phpackages.com/packages/shadcs-lang-generator)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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