Skip to content

API reference / @localizer/translate / TranslationMap

Type Alias: TranslationMap
experimental

TranslationMap = { readonly [K in LocaleCode]?: string | Localizable }

Defined in: translate.ts:37

Type definition for a translation map.

Represents a mapping of locale codes to their corresponding translations. Each locale code can be associated with either a string or a localizable value.

Type Param

The locale code type.