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
Parameter | Type |
---|---|
|
Returns
string
Defined in
text()
static
text(key
,placeholders
?):TranslatedText
Constructs a reference to a translation string formatted with the provided placeholders.
Parameters
Parameter | Type |
---|---|
| `${string}.${string}` |
|
|