Skip to content

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

Localizer , LocaleCode

Type Parameters

Type ParameterDefault typeDescription
TstringThe type of the localized value. Defaults to string.

Properties

PropertyModifierType
localizereadonly(locale) => T