PHPackages                             exolnet/laravel-translation-editor - 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. exolnet/laravel-translation-editor

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

exolnet/laravel-translation-editor
==================================

Allow translation edition through the browser

v1.11.0(3mo ago)634.4k↓44.4%2[3 issues](https://github.com/eXolnet/laravel-translation-editor/issues)MITPHPPHP ^8.2CI passing

Since Sep 20Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/eXolnet/laravel-translation-editor)[ Packagist](https://packagist.org/packages/exolnet/laravel-translation-editor)[ Docs](https://github.com/eXolnet/laravel-translation-editor)[ RSS](/packages/exolnet-laravel-translation-editor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (16)Used By (0)

Laravel Translation Editor
==========================

[](#laravel-translation-editor)

[![Latest Stable Version](https://camo.githubusercontent.com/1bca0be0ae44463462ed64bc1fd69d9136550aada0cffb072bac5fb6941e4b24/68747470733a2f2f706f7365722e707567782e6f72672f65586f6c6e65742f6c61726176656c2d7472616e736c6174696f6e2d656469746f722f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-translation-editor)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/3b9d51cd733816cb583e5a154418a043d6a7a7429c1ed01f6abfbdbb548f0d3d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f65586f6c6e65742f6c61726176656c2d7472616e736c6174696f6e2d656469746f722f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/eXolnet/laravel-translation-editor/actions?query=workflow%3Atests)[![Total Downloads](https://camo.githubusercontent.com/86aa8a6fc91874000fddc41bab955d946873d1303e83c0ab51c957106cb3f02e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65586f6c6e65742f6c61726176656c2d7472616e736c6174696f6e2d656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-translation-editor)

This project allow you to edit your translations directly through the browser and the command line.

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

[](#installation)

Require this package with composer:

```
composer require exolnet/laravel-translation-editor

```

The translation editor will be enabled when the environment variable `TRANSLATION_EDITOR_ENABLED` is `true`.

If you don't use package auto-discovery, add the service provider to the `providers` array in `config/app.php`:

```
Exolnet\Translation\Editor\TranslationEditorServiceProvider::class

```

Usage
-----

[](#usage)

### In-app translating

[](#in-app-translating)

In your development environment, you can enable in-app translation by adding to your `.env` the following environment variable:

```
TRANSLATION_EDITOR_ENABLED=true

```

You'll then be able to open the editor with `alt + click` on all translations using `te` or `@te` helpers:

```
@te('home.title')

{{ te('home.title') }}
```

And the editor looks like this:

[![Editor example](example.jpg)](example.jpg)

Once saved, you can commit the edited translation files in `resources/lang/**/*.php` if you're satisfied.

### Detect potential translations

[](#detect-potential-translations)

You can detect most of your potential variable string with the `i18n:detect` command. To do so, simply run

```
php artisan i18n:detect
```

By default this command will go through all your `.php` files in the views directory and look for potential variables. Every time a string is detected, it will ask you if you want to save it and you will have to provide a name for your variable.

Additionally, you can provide the `--locale` or `-l` option if you want to save the detected variable in another language than the default one in your Laravel configuration.

Testing
-------

[](#testing)

To run the phpUnit tests, please use:

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Alexandre D'Eschambeault](https://github.com/xel1045)
- [Maxime Mongeau](https://github.com/maxador)
- [All Contributors](../../contributors)

License
-------

[](#license)

Copyright © [eXolnet](https://www.exolnet.com). All rights reserved.

This code is licensed under the [MIT license](http://choosealicense.com/licenses/mit/). Please see the [license file](LICENSE) for more information.

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance70

Regular maintenance activity

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 79% 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 ~166 days

Recently: every ~305 days

Total

15

Last Release

103d ago

PHP version history (6 changes)v1.0.0PHP ^7.2

v1.4.0PHP &gt;=7.3

v1.4.1PHP ^7.3|^8.0

v1.7.0PHP ^8.0

v1.9.0PHP ^8.1

v1.10.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4064055?v=4)[eXolnet](/maintainers/exolnet)[@eXolnet](https://github.com/eXolnet)

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

---

Top Contributors

[![xel1045](https://avatars.githubusercontent.com/u/1497697?v=4)](https://github.com/xel1045 "xel1045 (113 commits)")[![ChristopheTremblay](https://avatars.githubusercontent.com/u/61481239?v=4)](https://github.com/ChristopheTremblay "ChristopheTremblay (15 commits)")[![Gandhi11](https://avatars.githubusercontent.com/u/4001049?v=4)](https://github.com/Gandhi11 "Gandhi11 (7 commits)")[![Maxador](https://avatars.githubusercontent.com/u/1437036?v=4)](https://github.com/Maxador "Maxador (6 commits)")[![clablancherie-exo](https://avatars.githubusercontent.com/u/214526504?v=4)](https://github.com/clablancherie-exo "clablancherie-exo (2 commits)")

---

Tags

editorhacktoberfestlaravellaravel-packagelocalizationphptranslationlaraveltranslationexolnet

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/exolnet-laravel-translation-editor/health.svg)

```
[![Health](https://phpackages.com/badges/exolnet-laravel-translation-editor/health.svg)](https://phpackages.com/packages/exolnet-laravel-translation-editor)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

74310.9M66](/packages/laravel-mcp)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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