Skip to main content

Class: TranslatedText

Defined in: coreUtils/i18n.tsx:202

Represents a lazily-resolved simple or formatted translation string.

See

Translation

Methods

resolve()

resolve(translation): string

Defined in: coreUtils/i18n.tsx:224

Resolves a translation string referenced by the current instance.

Parameters

ParameterType

translation

Translation

Returns

string


text()

static text(key, placeholders?): TranslatedText

Defined in: coreUtils/i18n.tsx:214

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

Parameters

ParameterType

key

`${string}.${string}`

placeholders?

Record<string, string | number | boolean>

Returns

TranslatedText

See

Translation.text