PHPackages                             laravel-enso/localisation - 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. laravel-enso/localisation

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

laravel-enso/localisation
=========================

Language and translation management for Laravel Enso

5.7.0(1mo ago)1362.8k↓13.9%1710MITPHPPHP ^8.0

Since Mar 20Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/laravel-enso/localisation)[ Packagist](https://packagist.org/packages/laravel-enso/localisation)[ Docs](https://github.com/laravel-enso/localisation)[ RSS](/packages/laravel-enso-localisation/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (33)Versions (388)Used By (10)

Localisation
============

[](#localisation)

[![License](https://camo.githubusercontent.com/90a46fe641bc8c188ee9dd50d07547fb6f21801740be98ab6f431087917fe44b/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f6c6f63616c69736174696f6e2f6c6963656e7365)](LICENSE)[![Stable](https://camo.githubusercontent.com/a9d6a5deca6b8bdc7d09e59d42c2e3ea856e781b5a29e83842a514cf56151a1d/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f6c6f63616c69736174696f6e2f76657273696f6e)](https://packagist.org/packages/laravel-enso/localisation)[![Downloads](https://camo.githubusercontent.com/efaf98be781680099be961d1f3597e5156416eb46a458c4499dd970f3fd44bc7/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f6c6f63616c69736174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/laravel-enso/localisation)[![PHP](https://camo.githubusercontent.com/ef6afd4ccdaa708a9b1a0a353d6d03a13ca1f03887b8db701d4118dc30a6735a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302532422d3737376262342e737667)](composer.json)[![Issues](https://camo.githubusercontent.com/eb8588f1e1c663c1923e98c893ca6979ab94cb5e2051b804066633b323d959aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d656e736f2f6c6f63616c69736174696f6e2e737667)](https://github.com/laravel-enso/localisation/issues)[![Merge Requests](https://camo.githubusercontent.com/c828bc5f91ac9c5454fd8c447ea9a8622e5663042fdae4ed58787a285cb57703/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6c61726176656c2d656e736f2f6c6f63616c69736174696f6e2e737667)](https://github.com/laravel-enso/localisation/pulls)

Description
-----------

[](#description)

Localisation manages Enso languages, JSON translation files, and request-time language selection.

The package exposes language CRUD and translation-file editing endpoints, registers the `set-language` middleware alias, and ships commands for publishing locale files and scanning the codebase for missing translation keys.

It is intended for Enso applications that maintain multiple UI languages and JSON translation stores.

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

[](#installation)

Install the package:

```
composer require laravel-enso/localisation
```

Run the package migrations:

```
php artisan migrate
```

Optional publishes:

```
php artisan vendor:publish --tag=localisation-config
php artisan vendor:publish --tag=localisation-factory
php artisan vendor:publish --tag=localisation-seeder
```

Features
--------

[](#features)

- Language CRUD, options, table init, table data, and Excel export endpoints.
- JSON translation editing, saving, and key-creation endpoints.
- `set-language` middleware alias for per-request locale switching.
- `enso:localisation:publish` command for generating locale folders and JSON files.
- `enso:localisation:scan` command for finding missing keys, frontend and selectable enum labels, registered model values, and duplicate translations.

Usage
-----

[](#usage)

Main route groups:

- `system.localisation.*`
- `system.localisation.editTexts`
- `system.localisation.getLangFile`
- `system.localisation.saveLangFile`
- `system.localisation.addKey`

Artisan commands:

```
php artisan enso:localisation:publish --locale=ro
php artisan enso:localisation:scan --dry-run
```

The scan command reads the configured source paths and also collects labels from frontend enums and native enums implementing `LaravelEnso\Enums\Contracts\Select` by default. Disable enum label collection through the published config when needed:

```
'scan' => [
    'enums' => false,
],
```

Packages may expose database-backed translation keys by extending `LaravelEnso\Localisation\TranslatableModelServiceProvider` and listing models that implement `LaravelEnso\Localisation\Contracts\TranslatableAttributes`. The provider registers models only while `enso:localisation:scan` is running.

API
---

[](#api)

### HTTP routes

[](#http-routes)

- `GET api/system/localisation/create`
- `POST api/system/localisation`
- `GET api/system/localisation/{language}/edit`
- `PATCH api/system/localisation/{language}`
- `DELETE api/system/localisation/{language}`
- `GET api/system/localisation/initTable`
- `GET api/system/localisation/tableData`
- `GET api/system/localisation/exportExcel`
- `GET api/system/localisation/options`
- `GET api/system/localisation/editTexts`
- `GET api/system/localisation/getLangFile/{language}`
- `PATCH api/system/localisation/saveLangFile/{language}`
- `PATCH api/system/localisation/addKey`

### Middleware

[](#middleware)

- `set-language`

### Artisan commands

[](#artisan-commands)

- `enso:localisation:publish`
- `enso:localisation:scan`

Depends On
----------

[](#depends-on)

Required Enso packages:

- [`laravel-enso/core`](https://docs.laravel-enso.com/backend/core.html) [↗](https://github.com/laravel-enso/core)
- [`laravel-enso/forms`](https://docs.laravel-enso.com/backend/forms.html) [↗](https://github.com/laravel-enso/forms)
- [`laravel-enso/helpers`](https://docs.laravel-enso.com/backend/helpers.html) [↗](https://github.com/laravel-enso/helpers)
- [`laravel-enso/migrator`](https://docs.laravel-enso.com/backend/migrator.html) [↗](https://github.com/laravel-enso/migrator)
- [`laravel-enso/select`](https://docs.laravel-enso.com/backend/select.html) [↗](https://github.com/laravel-enso/select)
- [`laravel-enso/tables`](https://docs.laravel-enso.com/backend/tables.html) [↗](https://github.com/laravel-enso/tables)
- [`laravel-enso/users`](https://docs.laravel-enso.com/backend/users.html) [↗](https://github.com/laravel-enso/users)

Companion frontend package:

- [`@enso-ui/localisation`](https://docs.laravel-enso.com/frontend/localisation.html) [↗](https://github.com/enso-ui/localisation)

Contributions
-------------

[](#contributions)

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance91

Actively maintained with recent releases

Popularity39

Limited adoption so far

Community33

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 60.7% 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 ~9 days

Total

375

Last Release

41d ago

Major Versions

1.3.7 → 2.1.212018-02-01

1.3.8 → 2.1.262018-02-13

2.4.19 → 3.0.02019-03-08

3.5.16 → 4.0.02020-06-26

4.4.8 → 5.0.02022-02-25

PHP version history (4 changes)1.0.1PHP &gt;=5.6.4

1.1.18PHP &gt;=7.1.0

4.3.86PHP &gt;=8.0

5.1.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16073274?v=4)[Adrian Ocneanu](/maintainers/aocneanu)[@aocneanu](https://github.com/aocneanu)

---

Top Contributors

[![aocneanu](https://avatars.githubusercontent.com/u/16073274?v=4)](https://github.com/aocneanu "aocneanu (354 commits)")[![gandesc](https://avatars.githubusercontent.com/u/14071925?v=4)](https://github.com/gandesc "gandesc (120 commits)")[![mauthi](https://avatars.githubusercontent.com/u/7204559?v=4)](https://github.com/mauthi "mauthi (39 commits)")[![vmcvlad](https://avatars.githubusercontent.com/u/37445394?v=4)](https://github.com/vmcvlad "vmcvlad (15 commits)")[![GITmanuela](https://avatars.githubusercontent.com/u/44998004?v=4)](https://github.com/GITmanuela "GITmanuela (12 commits)")[![raftx24](https://avatars.githubusercontent.com/u/10864136?v=4)](https://github.com/raftx24 "raftx24 (9 commits)")[![DevIonut](https://avatars.githubusercontent.com/u/19207797?v=4)](https://github.com/DevIonut "DevIonut (6 commits)")[![AbdullahiAbdulkabir](https://avatars.githubusercontent.com/u/33360580?v=4)](https://github.com/AbdullahiAbdulkabir "AbdullahiAbdulkabir (5 commits)")[![pongraczi](https://avatars.githubusercontent.com/u/5891983?v=4)](https://github.com/pongraczi "pongraczi (5 commits)")[![FranLMSP](https://avatars.githubusercontent.com/u/32037942?v=4)](https://github.com/FranLMSP "FranLMSP (4 commits)")[![shonhor22](https://avatars.githubusercontent.com/u/8970793?v=4)](https://github.com/shonhor22 "shonhor22 (3 commits)")[![guastallaigor](https://avatars.githubusercontent.com/u/22016005?v=4)](https://github.com/guastallaigor "guastallaigor (2 commits)")[![jlsjonas](https://avatars.githubusercontent.com/u/932193?v=4)](https://github.com/jlsjonas "jlsjonas (2 commits)")[![shapito27](https://avatars.githubusercontent.com/u/9530168?v=4)](https://github.com/shapito27 "shapito27 (2 commits)")[![b-stavitskiy](https://avatars.githubusercontent.com/u/39275809?v=4)](https://github.com/b-stavitskiy "b-stavitskiy (1 commits)")[![llevering](https://avatars.githubusercontent.com/u/2834866?v=4)](https://github.com/llevering "llevering (1 commits)")[![dahabit](https://avatars.githubusercontent.com/u/284535?v=4)](https://github.com/dahabit "dahabit (1 commits)")[![tedipop16](https://avatars.githubusercontent.com/u/71398467?v=4)](https://github.com/tedipop16 "tedipop16 (1 commits)")[![aiv-damian](https://avatars.githubusercontent.com/u/132932727?v=4)](https://github.com/aiv-damian "aiv-damian (1 commits)")

---

Tags

json-localizationlaravellaravel-ensolaravel-localizationlaravel-packagelocalisationlocalisation-managerlocalisationlaravel-enso

### Embed Badge

![Health badge](/badges/laravel-enso-localisation/health.svg)

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

###  Alternatives

[laravel-enso/roles

Role management for Laravel Enso

1044.9k32](/packages/laravel-enso-roles)[laravel-enso/permissions

Permission management for Laravel Enso

1244.2k52](/packages/laravel-enso-permissions)[laravel-enso/core

The backend shell of a Laravel Enso application

3465.3k206](/packages/laravel-enso-core)[laravel-enso/data-import

Excel Importer dependency for Laravel Enso

2044.0k6](/packages/laravel-enso-data-import)[laravel-enso/tutorials

Tutorial management backend for Laravel Enso

1140.7k](/packages/laravel-enso-tutorials)[laravel-enso/menus

Menu management for Laravel Enso

1644.0k25](/packages/laravel-enso-menus)

PHPackages © 2026

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