Module beamui.core.i18n

Contains UI localization support.

Supports fallback to another translation file (e.g. default language).

Set interface language using platform.uiLanguage in UIAppMain during initialization of application settings:

platform.uiLanguage = "en";

Import line

import beamui.core.i18n;

Functions

NameDescription
loadTranslator(lang) Load translations for language from .mo file
tr(singular, plural, n) Translate a singular or a plural form of the message by the number
tr(original) Translate a message into current application language