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

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

christiandarnell/laravel-translation-editor
===========================================

Allow translation edition through the browser

040PHP

Since Dec 29Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#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 christiandarnell/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)

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/9608763dbbff49b075d9dd3345bf60fb1c7511f56b4ab3e6e34157239233061d?d=identicon)[christiandarnell](/maintainers/christiandarnell)

---

Top Contributors

[![xel1045](https://avatars.githubusercontent.com/u/1497697?v=4)](https://github.com/xel1045 "xel1045 (91 commits)")[![ChristopheTremblay](https://avatars.githubusercontent.com/u/61481239?v=4)](https://github.com/ChristopheTremblay "ChristopheTremblay (15 commits)")[![christiandarnell](https://avatars.githubusercontent.com/u/97120700?v=4)](https://github.com/christiandarnell "christiandarnell (8 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)")

### Embed Badge

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

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

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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