PHPackages                             deployteam/laravel-polytranslate - 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. deployteam/laravel-polytranslate

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

deployteam/laravel-polytranslate
================================

Add multiple locations for Laravel localization namespace

v0.2.0(6y ago)313MITPHPPHP &gt;=7.1

Since Apr 27Pushed 2y agoCompare

[ Source](https://github.com/deployteam/laravel-polytranslate)[ Packagist](https://packagist.org/packages/deployteam/laravel-polytranslate)[ Docs](http://deploy.com.ro)[ RSS](/packages/deployteam-laravel-polytranslate/feed)WikiDiscussions master Synced 5d ago

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

Laravel PolyTranslate
---------------------

[](#laravel-polytranslate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b34d7de426e1fa529b8d9c3cbd53328df720accd18dc7b0a680f6cc239f9c620/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465706c6f797465616d2f6c61726176656c2d706f6c797472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deployteam/laravel-polytranslate)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/aac7d7d96448ba6e4c5068b613c2c1e7aa3dc91f342a03836540c89b14077a62/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465706c6f797465616d2f6c61726176656c2d706f6c797472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deployteam/laravel-polytranslate)[![Build Status](https://github.com/deployteam/laravel-polytranslate/workflows/Build/badge.svg)](https://github.com/deployteam/laravel-polytranslate/actions?query=workflow%3ABuild)

### Install

[](#install)

Require this package with composer using the following command:

```
composer require deployteam/laravel-polytranslate
```

After updating composer, add the service provider to the `providers` array in `config/app.php`

```
DeployTeam\PolyTranslate\ServiceProvider::class,
```

If you want to use the facade, add this to your facades in app.php:

```
'PolyTranslate' => DeployTeam\PolyTranslate\Facade::class,
```

**&gt;= Laravel 5.5** uses Package Auto-Discovery, so it's not required to manually add the ServiceProvider and the Facade.

### Usage

[](#usage)

Using PolyTranslate you can add multiple paths for language loading:

```
PolyTranslate::addPath(['themes/base/lang', 'themes/child/lang']); // without namespace
PolyTranslate::addNamespace('theme', ['themes/base/lang', 'themes/child/lang']); // with namespace
```

Laravel will start searching the directories for languages, and will merge anything it finds.

```
// themes/base/lang/en/header.php
return [
    'greetings' => 'Hello',
    'login' => 'Login'
];
```

```
// themes/child/lang/en/header.php
return [
    'login' => 'Authenticate',
    'register' => 'Register'
];
```

The final result will be:

```
[
    'greetings' => 'Hello',
    'login' => 'Authenticate',
    'register' => 'Register'
]
```

To use the translation, you just use the built-in Laravel functionality:

```
@lang('header.greetings')
@lang('theme::header.greetings')
```

### License

[](#license)

The Laravel PolyTranslate is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

2210d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6ce5659688c21e41125563e01e73cb9d1715b01f850b414e77a50137a9a2ca6?d=identicon)[alexhampu](/maintainers/alexhampu)

---

Top Contributors

[![alexhampu](https://avatars.githubusercontent.com/u/21214654?v=4)](https://github.com/alexhampu "alexhampu (25 commits)")

---

Tags

laravelphplaravel

### Embed Badge

![Health badge](/badges/deployteam-laravel-polytranslate/health.svg)

```
[![Health](https://phpackages.com/badges/deployteam-laravel-polytranslate/health.svg)](https://phpackages.com/packages/deployteam-laravel-polytranslate)
```

###  Alternatives

[monarobase/country-list

List of all countries with names and ISO 3166-1 codes in all languages and data formats for Laravel

2672.7M7](/packages/monarobase-country-list)[stevegrunwell/lost-in-translation

Uncover missing translations and localization strings in Laravel applications

3635.7k](/packages/stevegrunwell-lost-in-translation)[zachleigh/laravel-lang-bundler

Create Laravel translations bundles.

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

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)

PHPackages © 2026

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