lexik / translation-bundle
This bundle allows to import translation files content into the database and provide a GUI to edit translations.
Package info
github.com/lexik/LexikTranslationBundle
Type:symfony-bundle
pkg:composer/lexik/translation-bundle
Requires
- php: ^8.1|^8.2|^8.3|^8.4
- doctrine/orm: ^3
- monolog/monolog: ^3.2
- symfony/asset: ^7.0|^8.0
- symfony/form: ^7.0|^8.0
- symfony/framework-bundle: ^7.0|^8.0
- symfony/security-csrf: ^7.0|^8.0
- symfony/translation: ^7.0|^8.0
- symfony/twig-bundle: ^7.0|^8.0
- symfony/validator: ^7.0|^8.0
- symfony/yaml: ^7.0|^8.0
Requires (Dev)
- ext-mongodb: ^1.21.0 || ^2.0.0
- ext-pdo: *
- doctrine/annotations: ^2
- doctrine/cache: ^1.4|^2.0
- doctrine/data-fixtures: ^1.1|^2.0
- doctrine/doctrine-bundle: ^2.2
- doctrine/mongodb-odm: ^2.7
- doctrine/mongodb-odm-bundle: ^5.0
- mikey179/vfsstream: ^1.6
- mongodb/mongodb: ^1.21.0 || ^2.0.0
- phpunit/phpunit: ^9.5|^10.0
- rector/jack: ^0.2.3
- rector/rector: ^0.14.8|^0.15
- symfony/var-exporter: ^6.4|^7.0
- v8.0.3
- v8.0.2
- v8.0
- v7.3.6
- v7.3.5
- v7.3.4
- v7.3.3
- v7.3.2
- v7.3.1
- v7.3
- v7.1
- v7.0
- 6.0.x-dev
- v6.0
- 5.3.x-dev
- 5.2.x-dev
- v5.2.0
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- 4.4.x-dev
- v4.4.0
- v4.0.14
- v4.0.13
- v4.0.12
- v4.0.11
- v4.0.10
- v4.0.9
- v4.0.8
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- dev-master / 4.x-dev
- 3.4.x-dev
- v3.1.1
- v3.1.0
- v3.0.0
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0.0
- dev-jqgrid_ui / 1.4.x-dev
- v1.4.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.2
- v1.1.1
- dev-support-7
- dev-profiler_file
- dev-fix_empty_file_profiler
- dev-symfony2.0
This package is auto-updated.
Last update: 2026-03-10 20:40:52 UTC
README
This Symfony bundle allows you to:
- import translation files content into the database and provide a GUI to edit translations.
- export translations from the database into files.
- have an overview to check translation domains are completely translated.
- add new translations in the database.
The idea is to:
- write your translations files (xliff, yml or php) as usual for at least one language (the default language of your website for example).
- load translations into the database by using a command line.
- freely edit/add translation through an edition page.
The bundle overrides the translator service and provides a DatabaseLoader. Database translations content is loaded last so it overrides content from xliff, yml and php translations files. You can also export translations from the database into files in case you need to get translations files with the same content as the database.
Documentation
For installation and configuration refer to Resources/doc/index.md
Here is a little screen shot of the edition page :)
Development
The project provides a Makefile for common tasks (tests, static analysis, code style). See docs/development.md for:
- How to use the Makefile (requires GNU Make, usually pre-installed on Linux and macOS).
- Cross-platform: running the same commands on Windows (without Make) using Docker Compose.
- Cache files (e.g.
.php-cs-fixer.cache) are listed in.gitignoreand are not committed; you can remove them locally if needed.
