StaticgetStaticsetSets the active language for all translation lookups.
Language code to activate.
StaticisReturns true when translations are active (DEFAULT_LANGUAGE is set).
StaticgetReturns the currently selected language. Returns undefined when translations are disabled (DEFAULT_LANGUAGE not set).
StaticgetReturns all distinct language codes available across all translations.
StaticgetReturns the default language from the environment, or undefined if not set.
StaticgetReturns all registered translations as a record of translation key → language → text.
StaticgetOptionallanguage: stringStaticaddRegisters multiple translations at once.
Object mapping translation keys to language→text records.
StaticaddRegisters a single translation.
Translation key (e.g., "plugin.menu.question").
Language code (e.g., "en", "it").
Translated text string.
Returns the active language, or undefined if translations are disabled (i.e. DEFAULT_LANGUAGE is not set in the environment).