Skip to main content

Class: TranslatedText

Defined in: src/coreUtils/i18n.tsx:229

Represents a lazily-resolved simple or formatted translation string.

See​

Translation

Methods​

resolve()​

resolve(translation): string

Defined in: src/coreUtils/i18n.tsx:251

Resolves a translation string referenced by the current instance.

Parameters​

ParameterType

translation

Translation<any>

Returns​

string


text()​

static text(key, placeholders?): TranslatedText

Defined in: src/coreUtils/i18n.tsx:241

Constructs a reference to a translation string formatted with the provided placeholders.

Parameters​

ParameterType

key

string

placeholders?

Record<string, string | number | boolean>

Returns​

TranslatedText

See​

Translation.text