Localization
HUB Client has built-in support for multiple locales and an easy way to manage translations. All translation keys are being stored insrc/translates folder under appropriate YAML files: {LANG}.yml and should be described in index.yml project configuration file:
- Use the
!tfunction. It can value for any property in any object. - Use
!expressionand call the functiont.
changeLocale, in which the first parameter is target locale name.
Examples:
Markdown and HTML content in translations
Translation key value can have string, HTML or Markdown as a value:!te tag instead of !t: