i18n [@since 2024.04.2]
i18n bundles are stored in the /i18n directory using a JSON format. The name of the file decides the language. A RESTApp inherits locale from the context, i.e the website.
Bundle
Retrieving the translations
Using i18n
to retrieve the localized value.
i18n.get(key [, varSubstitution...])
i18n.forLocale(language) [@since 2024.04.2]
Retrieves a new i18n instance for a specific locale/language.
Did you find the content on this page useful?