PHPackages                             faelzanin/translatelang - 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. faelzanin/translatelang

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

faelzanin/translatelang
=======================

Translate the language files of your project for any language with a simple command.

1.0.1(10y ago)222MITPHPPHP &gt;= 5.5.0

Since Jul 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/faelzanin/translatelang)[ Packagist](https://packagist.org/packages/faelzanin/translatelang)[ RSS](/packages/faelzanin-translatelang/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

TranslateLang
=============

[](#translatelang)

Translate your language files from a Laravel 5.1+ project with a simple command.

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

[](#installation)

TranslateLang must be installed in the root directory of your app, by composer with command:

```
composer require faelzanin/translatelang

```

Configuration
-------------

[](#configuration)

After the conclusion of installation process, you must configure the provider of TranslateLang. Open the file `config/app.php` and add the following line in the array of providers:

```
Faelzanin\Translatelang\TranslateLangProvider::class

```

It's all done! After this steps, the Artisan command to translate your files will be available.

Usage
-----

[](#usage)

> Before running this command, check the existence of a connection to the Internet, because this package uses a Google translator library, to make the translations.

To translate your language files, open the console and run the command:

```
php artisan translate:lang

```

After running this command will show the following question:

```
What is the name of the language file you want to translate?

```

Enter the name of the language file (example: `passwords`), you want to translate, and press `Enter` to go to the next step:

```
What is the location you want to be translated ? Example : en | es | pt | ru

```

Here, you must report to which location the file is translated. For example, to Portuguese, inform the location pt

If all goes well, it will be shown a success message.

```
The language file has been successfully translated.

```

Also, set the language translated file in the folder below:

```
\
    \
            \
                \
                    Filename.php

```

Done, simple and practical!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Total

2

Last Release

3961d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c6276bc5d6b79ed0707a2a7d8fb75f64f847ccf40903ab9afca1c3c6b61b5ea?d=identicon)[faelzanin](/maintainers/faelzanin)

---

Top Contributors

[![faelzanin](https://avatars.githubusercontent.com/u/12513116?v=4)](https://github.com/faelzanin "faelzanin (12 commits)")

### Embed Badge

![Health badge](/badges/faelzanin-translatelang/health.svg)

```
[![Health](https://phpackages.com/badges/faelzanin-translatelang/health.svg)](https://phpackages.com/packages/faelzanin-translatelang)
```

###  Alternatives

[vemcogroup/laravel-translation

Translation package for Laravel to scan for localisations and up/download to poeditor

135304.0k2](/packages/vemcogroup-laravel-translation)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.3k](/packages/typicms-base)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)

PHPackages © 2026

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