PHPackages                             uretral/multi-language - 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. uretral/multi-language

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

uretral/multi-language
======================

multi-language

09Blade

Since Nov 4Pushed 2y agoCompare

[ Source](https://github.com/uretral/multi-language)[ Packagist](https://packagist.org/packages/uretral/multi-language)[ RSS](/packages/uretral-multi-language/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-admin Multi Language
============================

[](#laravel-admin-multi-language)

Install
-------

[](#install)

```
composer require uretral/multi-language

```

Config
------

[](#config)

First, add extension config

In `config/admin.php`

```
        'multi-language' => [
            'enable' => true,

            'cookie-locale' => 'locale',
            'default_locale' => 'ru',
            'languages' => [
                'en' => 'English',
                'ru' => 'Русский',
            ],

            'cookie-country' => 'country',
            'default_country' => 'ru',
            'countries' => [
                'ru' => [
                    'title_ru' => 'Россия',
                    'title_en' => 'Russia',
                    'flag' => 'assets/admin/img/flags/ru.svg'
                ],
                'ae' => [
                    'title_ru' => 'Эмираты',
                    'title_en' => 'Emirates',
                    'flag' => 'assets/admin/img/flags/ae.svg'
                ],
                'tr' => [
                    'title_ru' => 'Турция',
                    'title_en' => 'Turkey',
                    'flag' => 'assets/admin/img/flags/tr.svg'
                ],
            ],

            'cookie-module' => 'module',
            'default_module' => 'tenant',
            'modules' => [
                'tenant' => [
                    'ru' => 'Жилец',
                    'en' => 'Tenant',
                ],
                'my' => [
                    'ru' => 'Собственник',
                    'en' => 'Landlord',
                ]
            ],

            'show-navbar' => true,
            'show-login-page' => true,

        ],

```

Then, add except route to auth

In `config/admin.php`, add `locale` to `auth.excepts`

```
    'auth' => [
        ...
        // The URIs that should be excluded from authorization.
        'excepts' => [
            'auth/login',
            'auth/logout',
            // add this line !
            'locale',
        ],
    ],

```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27734113?v=4)[Uretral](/maintainers/uretral)[@uretral](https://github.com/uretral)

---

Top Contributors

[![kevin1018](https://avatars.githubusercontent.com/u/20313390?v=4)](https://github.com/kevin1018 "kevin1018 (15 commits)")[![uretral](https://avatars.githubusercontent.com/u/27734113?v=4)](https://github.com/uretral "uretral (12 commits)")[![ame1973](https://avatars.githubusercontent.com/u/32356815?v=4)](https://github.com/ame1973 "ame1973 (1 commits)")[![keoy7am](https://avatars.githubusercontent.com/u/20974778?v=4)](https://github.com/keoy7am "keoy7am (1 commits)")[![koshkoshka](https://avatars.githubusercontent.com/u/5415499?v=4)](https://github.com/koshkoshka "koshkoshka (1 commits)")

### Embed Badge

![Health badge](/badges/uretral-multi-language/health.svg)

```
[![Health](https://phpackages.com/badges/uretral-multi-language/health.svg)](https://phpackages.com/packages/uretral-multi-language)
```

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1927.0k1](/packages/smmoosavi-php-gettext)

PHPackages © 2026

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