All text that is displayed can be customized. The default locale file contains standard translations and can be changed and extended by future updates. Use the overlay method to override the default locale file with a custom file. The default file will be merged with the custom file, with the keys in the custom file taking precedence.
Default provided languages are English and Swedish. Language files must be present in <overlay_dir>
/assets/locales/
E.g. assets/locales/en.json
To add more languages add to the array in supportedLanguages
and place file (using overlay method) in locales folder. E.g. add the following to the supportedLanguages
array {code: 'de', name: 'Deutsch'}
and add a file called assets/locales/de.json
To customise translations use localesMergePath
to extend and merge with the provided default files.
Default language file contains the translations keys
The overlay_dir
contains a ui_config_overrides.json
with localesMergePath: "assets/custom_locales/" (See
Overlay)
A file is placed in <overlay_dir>/assets/custom_locales/en.json
containing the following:
The resulting merged language file used in the application will contain the following:
For each language that will be customised, add language files <overlay_dir>/assets/custom_locales/<lang>.json