Skip to main content

Type Alias: I18nText

I18nText = object

Defined in: types.ts:40

A translation key resolved at read time, with its interpolation values frozen at delivery time.

Remarks

This is the form to prefer in a localized game: the message re-translates when the player switches language, while params stay exactly as they were when the message arrived - so "you have 100 gold" never becomes "you have 20 gold" retroactively.

Properties

key

key: string

Defined in: types.ts:42


kind

kind: "i18n"

Defined in: types.ts:41


params?

optional params: Params

Defined in: types.ts:43