Interface FormatLocaleDefinition

Specification of locale to use when creating a new FormatLocaleObject

interface FormatLocaleDefinition {
    currency: [string, string];
    decimal: string;
    grouping: number[];
    minus?: string;
    nan?: string;
    numerals?: string[];
    percent?: string;
    thousands: string;
}

Properties

currency: [string, string]

The currency prefix and suffix (e.g., ["$", ""]).

decimal: string

The decimal point (e.g., ".")

grouping: number[]

The array of group sizes (e.g., [3]), cycled as needed.

minus?: string

Optional; the minus sign (defaults to "−").

nan?: string

Optional; the not-a-number value (defaults "NaN").

numerals?: string[]

An optional array of ten strings to replace the numerals 0-9.

percent?: string

An optional symbol to replace the percent suffix; the percent suffix (defaults to "%").

thousands: string

The group separator (e.g., ","). Note that the thousands property is a misnomer, as the grouping definition allows groups other than thousands.