Hierarchy

Properties

baseName: string

A string containing the language, and the script and region if available.

calendar?: string

The part of the Locale that indicates the locale's calendar era.

Flag that defines whether case is taken into account for the locale's collation rules.

collation?: string

The collation type used for sorting

hourCycle?: LocaleHourCycleKey

The time keeping format convention used by the locale.

language: string

The primary language subtag associated with the locale.

numberingSystem?: string

The numeral system used by the locale.

numeric?: boolean

Flag that defines whether the locale has special collation handling for numeric characters.

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.

script?: string

The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924.

Methods

  • Gets the most likely values for the language, script, and region of the locale based on existing values.

    Returns Locale

  • Attempts to remove information about the locale that would be added by calling Locale.maximize().

    Returns Locale

  • Returns the locale's full locale identifier string.

    Returns string

Generated using TypeDoc