This interface defines methods to convert values to localized strings.
interface LocalizeContext {
number( value: number, options: string ): string;
percent( value: number, options: string ): string;
currency( value: CurrencyValue, options: string ): string;
ccy( value: number, currencyCode: string, options: string ): string;
datetime( value: Date | number | string, options: string ): string;
}
Transforms a number value to a localized text of the number in the active language.
Returns the localized number string.
Transforms a number value to a localized text of percent in the active language.
Returns the localized percent string.
Transforms a currency value to a localized text of the currency in the active language.
Returns the localized currency string.
Transforms a number and a currency code to a localized text of the currency in the active language.
Returns the localized currency string.
Transforms a date value to a localized text of the date in the active language.
Returns the localized date-time string.