Skip to main content

Class: TranslatedText

Represents a lazily-resolved simple or formatted translation string.

See

Translation

Methods

resolve()

resolve(translation): string

Resolves a translation string referenced by the current instance.

Parameters

ParameterType

translation

Translation

Returns

string

Defined in

coreUtils/i18n.tsx:222


text()

static text(key, placeholders?): TranslatedText

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

Defined in

coreUtils/i18n.tsx:212