PHPackages                             luisprmat/laravel-lang-installer - 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. luisprmat/laravel-lang-installer

Abandoned → [laravel-lang/publisher](/?search=laravel-lang%2Fpublisher)ArchivedLibrary[Localization &amp; i18n](/categories/localization)

luisprmat/laravel-lang-installer
================================

Install translations from laravel-lang/lang package for Laravel 7 or higher

1.3.0(4y ago)01361MITPHP

Since Sep 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/luisprmat/laravel-lang-installer)[ Packagist](https://packagist.org/packages/luisprmat/laravel-lang-installer)[ RSS](/packages/luisprmat-laravel-lang-installer/feed)WikiDiscussions 1.x Synced 2d ago

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

Laravel Lang Installer (Archived)
=================================

[](#laravel-lang-installer-archived)

 [ ![Total Downloads](https://camo.githubusercontent.com/25d403a5fc9d721ca8bb462616ac87970353d4655497d912eb837f247f51b154/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c75697370726d61742f6c61726176656c2d6c616e672d696e7374616c6c6572) ](https://packagist.org/packages/luisprmat/laravel-lang-installer) [ ![Latest Stable Version](https://camo.githubusercontent.com/2993034f47100d731b615fb5644ae57fbd4abee1cdcdba95ea58b317fd041602/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c75697370726d61742f6c61726176656c2d6c616e672d696e7374616c6c6572) ](https://packagist.org/packages/luisprmat/laravel-lang-installer) [ ![License](https://camo.githubusercontent.com/f0762c0466e87f9b4d3781c9010970317ecda8feeb8bb858582f5bbbde009ba8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c75697370726d61742f6c61726176656c2d6c616e672d696e7374616c6c6572) ](https://packagist.org/packages/luisprmat/laravel-lang-installer)

*This package is archived*
--------------------------

[](#this-package-is-archived)

The Laravel Lang package has had extreme changes incompatibles with this package. Use Laravel-lang/publisher instead.

This package helps us to quickly install the language files in a preferably fresh Laravel application.

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

[](#installation)

Use the [composer](https://getcomposer.org/) to install the package.

```
composer require luisprmat/laravel-lang-installer --dev
```

Usage
-----

[](#usage)

### Add new language

[](#add-new-language)

After install a new laravel application with `Laravel >= 5.5` the package autodiscover system will register the new command `lang:add` and you can call with

```
php artisan lang:add
```

where `` refers to the short name of any of the [supported languages](README.md#supported-languages)

> ### *Warnings*
>
> [](#warnings)
>
> - **Add lang** action overwrites the language files so that you already had custom translations you could lose them.
> - When adding a language this package first consults the `composer.json` file to copy only the translations of the supported packages that are installed ([Laravel Breeze](https://laravel.com/docs/8.x/starter-kits#laravel-breeze), [Laravel Cashier](https://laravel.com/docs/8.x/billing), [Laravel Fortify](https://laravel.com/docs/8.x/fortify) and [Laravel Jetstream](https://jetstream.laravel.com/2.x/introduction.html) are supported) `resources/lang/.json`. So it is good that you first install the supported packages that you will use and then run the command `php artisan lang:add `
> - If this command does not receive arguments, the Spanish language \[`es`\] will be installed by default.

This command can take a unique argument (or none) that will be the short name of the language according to **ISO 15897**.

This command also modifies the key `locale` in the `config/app.php` file to set the default language as passed through the parameter.

This command can also receive the following options:

- `-I` or `--inline` : Install `validation.php` with generic attributes, i. e no name for attribute (The placeholder `:attribute` is replaced by a generic name as *This field*, etc)
- `-D` or `--no-default` : This option prevents the `config/app.php` file from being modified. Therefore, the default language that appears in `config/app` will remain without changes.

### Examples

[](#examples)

- Install Spanish as default language.

```
php artisan lang:add
```

or

```
php artisan lang:add es
```

- Install French as default language.

```
php artisan lang:add fr
```

- Install Brazilian Portuguese without changes in `config/app.php`.

```
php artisan lang:add pt_BR --no-default
```

- Install Aramaic language with `validation.php` without *attributes*.

```
php artisan lang:add ar --inline
```

Supported languages
-------------------

[](#supported-languages)

`af`, `ar`, `az`, `be`, `bg`, `bn`, `bs`, `ca`, `cs`, `cy`, `da`, `de`, `de_CH`, `el`, `es`, `et`, `eu`, `fa`, `fi`, `fil`, `fr`, `gl`, `gu`, `he`, `hi`, `hr`, `hu`, `hy`, `id`, `is`, `it`, `ja`, `ka`, `kk`, `km`, `kn`, `ko`, `lt`, `lv`, `mk`, `mn`, `mr`, `ms`, `nb`, `ne`, `nl`, `nn`, `oc`, `pl`, `ps`, `pt`, `pt_BR`, `ro`, `ru`, `sc`, `si`, `sk`, `sl`, `sq`, `sr_Cyrl`, `sr_Latn`, `sr_Latn_ME`, `sv`, `sw`, `tg`, `th`, `tk`, `tl`, `tr`, `ug`, `uk`, `ur`, `uz_Cyrl`, `uz_Latn`, `vi`, `zh_CN`, `zh_HK`, `zh_TW`

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

This package does not modify the translations, only copies them from [`laravel-lang/lang`](https://github.com/Laravel-Lang/lang/). So if you want to suggest changes in the translations you can make a PR to the [`laravel-lang/lang` package](https://github.com/Laravel-Lang/lang/blob/master/docs/contributing-to-dev.md)

License
-------

[](#license)

[MIT](LICENSE.md)

Todo
----

[](#todo)

- Allow merge translations instead of overwrite them.
- Add Command `lang:update` to update translations and detect new installed packages to update their translations.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Recently: every ~78 days

Total

10

Last Release

1375d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b522b692856fb1ec8ff485c257c8073bef79d93eb0ad720f8ce0bb0f873f68f?d=identicon)[luisprmat](/maintainers/luisprmat)

---

Top Contributors

[![luisprmat](https://avatars.githubusercontent.com/u/9275870?v=4)](https://github.com/luisprmat "luisprmat (65 commits)")

---

Tags

laravellaravel-langlaraveltranslatorlang

### Embed Badge

![Health badge](/badges/luisprmat-laravel-lang-installer/health.svg)

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

###  Alternatives

[laravel-lang/lang

List of 126 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI

7.8k9.5M40](/packages/laravel-lang-lang)[laravel-lang/common

Easily connect the necessary language packs to the application

1463.1M22](/packages/laravel-lang-common)[arcanedev/laravel-lang

Translations manager and checker for Laravel based on 'Laravel-Lang/lang' package.

7271.4k](/packages/arcanedev-laravel-lang)[zachleigh/laravel-lang-bundler

Create Laravel translations bundles.

2512.5k](/packages/zachleigh-laravel-lang-bundler)

PHPackages © 2026

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