Overview of LexikTranslationBundle
masterLexikTranslationBundle is a Symfony bundle designed to manage translations via a database. It allows you to bridge the gap between static translation files and a dynamic database-driven approach.
Key capabilities include:
- Importing: Load content from translation files (XLIFF, YAML, or PHP) into the database.
- Editing: Use a provided GUI to edit or add new translations directly in the database.
- Exporting: Export database translations back into files to synchronize them with your codebase.
- Auditing: Check translation domains to ensure they are completely translated.
Workflow Model:
- Write your standard translation files (XLIFF, YAML, or PHP) for your default language.
- Use the command line to load these translations into the database.
- Use the web interface to edit or add translations dynamically.
Note on Precedence: The bundle overrides the standard Symfony translator service. Database translations are loaded last, meaning they take precedence over and override content found in your XLIFF, YAML, or PHP files.