API reference / @localizer/core / Localizable
Type Alias: Localizable<T>
Localizable<
T> =object
Defined in: types/localizable.ts:31
Represents a type that can be localized based on a given locale.
The Localizable type is used to define objects or values that can be localized to different languages or regions. It provides a localize method that takes a locale code and returns the localized value.
See
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | string | The type of the localized value. Defaults to string. |
Properties
| Property | Modifier | Type |
|---|---|---|
localize | readonly | (locale) => T |