PHPackages                             jbtronics/translation-editor-bundle - 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. jbtronics/translation-editor-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

jbtronics/translation-editor-bundle
===================================

A symfony bundle to allow editing translations in the symfony profiler

v1.1.3(5mo ago)823.9k—4.8%3[2 PRs](https://github.com/jbtronics/translation-editor-bundle/pulls)MITPHPPHP ^8.1CI passing

Since Sep 3Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/jbtronics/translation-editor-bundle)[ Packagist](https://packagist.org/packages/jbtronics/translation-editor-bundle)[ Fund](https://www.paypal.me/do9jhb)[ GitHub Sponsors](https://github.com/jbtronics)[ RSS](/packages/jbtronics-translation-editor-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (11)Versions (8)Used By (0)

[![GitHub License](https://camo.githubusercontent.com/21faa0616a51e6336195bbc26a3a69c44ccb98728ebb8e52f58016946ac9bf99/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6274726f6e6963732f73657474696e67732d62756e646c65)](https://camo.githubusercontent.com/21faa0616a51e6336195bbc26a3a69c44ccb98728ebb8e52f58016946ac9bf99/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6274726f6e6963732f73657474696e67732d62756e646c65)

Profiler Translation Editor Bundle
==================================

[](#profiler-translation-editor-bundle)

This bundle provides a way to edit the translations of your Symfony application directly from the Symfony profiler.

[![Animated Showcase](./docs/showcase.gif)](./docs/showcase.gif)

This bundle is inspired by the [php-translation/symfony-bundle](https://github.com/php-translation/symfony-bundle), which offers a similar feature, but has more dependencies and is more complex to use. This bundle provides a simpler and more modern alternative to this, which supports the latest Symfony versions and slightly faster.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Symfony 6.4 or higher (compatible with Symfony 7)

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

[](#installation)

You can install this bundle using composer:

```
composer require --dev jbtronics/translation-editor-bundle
```

Note the `--dev` flag, as this bundle is only intended for development and debugging purposes.

If you are using Symfony Flex, the bundle will be automatically enabled. If not, you have to enable it manually in your `config/bundles.php`:

```
return [
    // ...
    Jbtronics\TranslationEditorBundle\JbtronicsTranslationEditorBundle::class => ['dev' => true],
];
```

Please note that this bundle should only be enabled in the `dev` environment.

You also need to enable the required routes for your bundle. You can do this by creating a new file in your `config/routes`directory (e.g. `config/routes/jbtronics_translation_editor.yaml`):

```
# config/routes/jbtronics_translation_editor.yaml

when@dev:
    translation_editor:
      resource: '@JbtronicsTranslationEditorBundle/config/routes.php'
```

Configuration
-------------

[](#configuration)

If you do not use the standard paths for your translation files, or not the XLF format, you have to configure the bundle to generate the right files. If you just use the standard paths and XLF format, the defaults should be fine for you, and you can skip this step and you do not need to create a configuration file.

Otherwise create a new file in your `config/packages` directory (e.g. `config/packages/jbtronics_translation_editor.yaml`) and configure the options you need (here the default values are shown):

```
# config/packages/jbtronics_translation_editor.yaml

jbtronics_translation_editor:

  # The path where the translation files are stored (normally %kernel.project_dir%/translations)
  translations_path: "%translator.default_path%"

  # The format in which the translation files should be outputted
  format: yaml

  # The version of the XLIFF format to use
  xliff_version: 2.0

  # Any additional options that should be passed to the translation writer. This depends on the format you use.
  writer_options:
    #as_tree: true

  # Use Intl message format
  use_intl_icu_format: false
```

Usage
-----

[](#usage)

After you have installed and configured the bundle, just open the Symfony profiler for the request you want the translations to edit. In the table with the messages, you will see a new column with an edit button. Click on this button to open a editor for the message and click save to save the changes.

After submission the field is colored blue, while the changes are saved. If the changes were saved sucessfully, the field will turn green for a short time, otherwise red if an error occurred.

Security
--------

[](#security)

The endpoint for the translation editor is not protected. Anybody who can access the web application and the profiler can edit the translations, with all consequences. As translations are not necessarily translated, this could allow attackers to inject malicious code as an XSS attack.

However, this bundle, similar to the Symfony profiler itself, is only intended for development and debugging purposes and should only run in a dedicated development environment, where only trusted users have access (and could modify the code directly anyway). Therefore, the security risk should be minimal in the intended use case.

This bundle enforces the `dev` environment, so it should not be possible to use it in a production environment. Anyway, you should make sure that the bundle and especially the translation editor endpoint must not be accessible in a production environment.

License
-------

[](#license)

SettingsBundle is licensed under the MIT License. This mostly means that you can use this bundle for whatever you want (even use it commercially) as long as you retain the copyright/license information.

See [LICENSE](https://github.com/jbtronics/translation-editor-bundle/blob/master/LICENSE) for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance71

Regular maintenance activity

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.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 ~113 days

Total

5

Last Release

169d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/966f0c4a6fd593c7a9e3e0c950f4e44dfa6caaf09609500cdce765b1eba7a855?d=identicon)[jbtronics](/maintainers/jbtronics)

---

Top Contributors

[![jbtronics](https://avatars.githubusercontent.com/u/5410681?v=4)](https://github.com/jbtronics "jbtronics (28 commits)")[![Tilotiti](https://avatars.githubusercontent.com/u/932380?v=4)](https://github.com/Tilotiti "Tilotiti (4 commits)")[![magdev](https://avatars.githubusercontent.com/u/179837?v=4)](https://github.com/magdev "magdev (3 commits)")[![ImgBotApp](https://avatars.githubusercontent.com/u/31427850?v=4)](https://github.com/ImgBotApp "ImgBotApp (1 commits)")[![Nowwis](https://avatars.githubusercontent.com/u/1506118?v=4)](https://github.com/Nowwis "Nowwis (1 commits)")

---

Tags

phpsymfonysymfony-bundlesymfony-profilertranslationssymfonytranslationsprofilerSymfony Bundle

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jbtronics-translation-editor-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[willdurand/js-translation-bundle

A pretty nice way to expose your translation messages to your JavaScript.

58917.1M55](/packages/willdurand-js-translation-bundle)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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