You are browsing upcoming documentation for version 6.0 of OroCommerce, OroCRM, and OroPlatform, scheduled for release in 2024. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
Add Translations to Source Code
Out-of-the-box, only base English translations (
en language code) are loaded from the translation files.
As described in translation files, these files are located in the Resources/translations directory of any bundle and the translations directory of the application, e.g., Resources/translations/messages.en.yml, Resources/translations/validators.en.yml, etc.
You can download translations for other languages from Crowdin or added manually in the Back-Office. These translations are loaded from the database to the application cache, and getting them is slower than from the Symfony translation catalogs. To minimize performance issues, consider adding them to the source code, as described below:
- Use oro:translation:dump-files to dump translations to the translations directory of the application.
- When you have updated the existing translations, use a file comparison tool of your choice to verify the dumped files.
- Push the files to the version control system (git).
To rebuild Symfony translation catalogs with new translations and remove them from the database, use the
Please take into account that languages loaded from the dumped files will be disabled from management via Crowdin in the UI and the data should be managed by a developer.