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

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

tarantella110/laravel-lang
==========================

List of 75 languages for Laravel.

6.0.3(2y ago)07MITPHP

Since May 22Pushed 2y agoCompare

[ Source](https://github.com/tarantella110/laravel-lang)[ Packagist](https://packagist.org/packages/tarantella110/laravel-lang)[ GitHub Sponsors](https://github.com/overtrue)[ RSS](/packages/tarantella110-laravel-lang/feed)WikiDiscussions master Synced 1mo ago

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

Laravel-lang
============

[](#laravel-lang)

75 languages support for Laravel application based on [Laravel-Lang/lang](https://github.com/Laravel-Lang/lang).

[![For Laravel 5](https://camo.githubusercontent.com/082f1fd289cf55b7838ac420fe4654e37df7b67c877b28cb5043b273e066e7ca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d72656164792d677265656e2e737667)](https://github.com/overtrue/laravel-lang)[![For Lumen 5](https://camo.githubusercontent.com/fee21411e4cc738781b8c5fd5f5447d72b0dbff20d2c6d1049177879b29aa511/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c756d656e2d72656164792d677265656e2e737667)](https://github.com/overtrue/laravel-lang)[![Latest Stable Version](https://camo.githubusercontent.com/1ffdc6e0cb81c6b672ef41f43fbb32993a774830545758b6f359a0dfc9297215/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f766572747275652f6c61726176656c2d6c616e672e737667)](https://packagist.org/packages/overtrue/laravel-lang)[![Latest Unstable Version](https://camo.githubusercontent.com/461550e72fc718c74bdf5827591a7e45aae47b564a27701748f3621c0f88a1db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f6f766572747275652f6c61726176656c2d6c616e672e737667)](https://packagist.org/packages/overtrue/laravel-lang)[![Total Downloads](https://camo.githubusercontent.com/c02b5be4e425174db2a9d177e2a42ebfc1d20ae22b2c3f1e267b36b15311fe9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f766572747275652f6c61726176656c2d6c616e672e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/overtrue/laravel-lang)[![License](https://camo.githubusercontent.com/4844cbfa44d55949c3893b1282af463f5ccd1bd310f3e4f6ecb66fab8ee981c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f766572747275652f6c61726176656c2d6c616e672e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/overtrue/laravel-lang)

> **Warning**
>
> There is already a better solution to use [our official Laravel-Lang publisher](https://publisher.laravel-lang.com/). This project will be discontinued, thank you for your support.

Features
========

[](#features)

- Laravel 5+ &amp;&amp; Lumen support.
- Translations Publisher.
- Made with 💖.

Install
=======

[](#install)

Laravel versionComposer commandLaravel 9.x`composer require overtrue/laravel-lang:~6.0`Laravel 7.x-8.x`composer require overtrue/laravel-lang:~5.0`Laravel 6.x`composer require overtrue/laravel-lang:~4.0`Laravel 5.8`composer require overtrue/laravel-lang:~3.0`Laravel 5.1-5.7`composer require overtrue/laravel-lang:~2.0`Laravel 5`composer require overtrue/laravel-lang:~1.0````
composer require "overtrue/laravel-lang:~6.0"
```

#### Lumen

[](#lumen)

Add the following line to `bootstrap/app.php`:

```
$app->register(Overtrue\LaravelLang\TranslationServiceProvider::class);
```

Configuration
=============

[](#configuration)

### Laravel

[](#laravel)

you can change the locale at `config/app.php`:

```
'locale' => 'zh_CN',
```

### Lumen

[](#lumen-1)

set locale in `.env` file:

```
APP_LOCALE=zh_CN

```

Usage
=====

[](#usage)

There is no difference with the usual usage.

If you need to add additional language content, Please create a file in the `resources/lang/{LANGUAGE}` directory.

### Add custom language items

[](#add-custom-language-items)

Here, for example in Chinese:

`resources/lang/zh_CN/demo.php`:

```
