Interface Locale
interface Locale {
baseName: string;
calendar?: string;
caseFirst?: LocaleCollationCaseFirst;
collation?: string;
hourCycle?: LocaleHourCycleKey;
language: string;
numberingSystem?: string;
numeric?: boolean;
region?: string;
script?: string;
maximize(): Intl.Locale;
minimize(): Intl.Locale;
toString(): string;
}
baseName: string;
calendar?: string;
caseFirst?: LocaleCollationCaseFirst;
collation?: string;
hourCycle?: LocaleHourCycleKey;
language: string;
numberingSystem?: string;
numeric?: boolean;
region?: string;
script?: string;
maximize(): Intl.Locale;
minimize(): Intl.Locale;
toString(): string;
}
Hierarchy
- LocaleOptions
- Locale (view full)
Index
Properties
baseName
baseName : string
Optional
calendar
calendar?: string
The part of the Locale that indicates the locale's calendar era.
Optional
caseFirst
Flag that defines whether case is taken into account for the locale's collation rules.
Optional
collation
collation?: string
The collation type used for sorting
Optional
hourCycle
The time keeping format convention used by the locale.
language
language: string
The primary language subtag associated with the locale.
Optional
numberingSystem
numberingSystem ?: string
The numeral system used by the locale.
Optional
numeric
numeric?: boolean
Flag that defines whether the locale has special collation handling for numeric characters.
Optional
region
region?: string
The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1.
Optional
script
script?: string
The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924.
A string containing the language, and the script and region if available.