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

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

bartjansen1989/laravel-lang
===========================

List of 75 languages for Laravel 4, 5, 6 and 7

4.2.1(5y ago)01.5kMITPHP

Since Mar 15Pushed 5y agoCompare

[ Source](https://github.com/bartjansen1989/laravel-lang)[ Packagist](https://packagist.org/packages/bartjansen1989/laravel-lang)[ Patreon](https://www.patreon.com/overtrue)[ RSS](/packages/bartjansen1989-laravel-lang/feed)WikiDiscussions master Synced 2d ago

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

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

[](#laravel-lang)

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

[![For Laravel 5](https://camo.githubusercontent.com/170e1265e3c21a9e5511d70afb176fade80c4b63f8b29cd5d5bc109adcc1a3a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d352e2a2d677265656e2e737667)](https://github.com/overtrue/laravel-lang)[![For Lumen 5](https://camo.githubusercontent.com/18833b6e86cb7e2abb4a1991622488e5e344e3cfcf47c78f2e63d638ddbb58f3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c756d656e2d352e2a2d677265656e2e737667)](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)

Features
========

[](#features)

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

Install
=======

[](#install)

```
$ composer require "overtrue/laravel-lang:~3.0"
```

#### Laravel 5.\*

[](#laravel-5)

After completion of the above, Replace the `config/app.php` content

```
Illuminate\Translation\TranslationServiceProvider::class,
```

with:

```
Overtrue\LaravelLang\TranslationServiceProvider::class,
```

#### 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`:

```
