Mainly, there are two ways to split the translation files in symfony.
01)
You can split the translation file into several dictionary files, with a certain name. For example, you can split the messages.si.xml file into these two (or more) files in the application i18n/ directory:- main.si.xml
- sub.si.xml
02)
The other way of organizing translation dictionaries is to split them by module. Instead of writing a single messages.xx.xml file for the whole application, you can write one in each "modules/[module_name]/i18n/" directory.Ex:
- symfony/apps/frontend/modules/NewModule/i18n/messages.si.xml
- symfony/apps/frontend/modules/NewModule/i18n/messages.en.xml
- symfony/apps/frontend/modules/NewModule/i18n/messages.ta.xml
Comments