getText()
Translates the provided text to the current locale, if necessary.
getText(text: string): string;
Notes
- This method is used by DeferredString to translate strings, and is part of the DeferredString.I18nProvider interface.
- If a translation dictionary is set using setText(), it is used to translate the text. Any text not found is returned as is.
Parameters
- text — The text to translate
Return value
The translated text
Related
class I18nContext
An object that provides internationalization functionality for the current locale.
