Locale

external class Locale(tag: UnicodeBCP47LocaleIdentifier, options: LocaleOptions = definedExternally) : LocaleOptions(source)

Constructors

Link copied to clipboard
constructor(tag: Locale, options: LocaleOptions = definedExternally)
constructor(tag: UnicodeBCP47LocaleIdentifier, options: LocaleOptions = definedExternally)

Properties

Link copied to clipboard
override var baseName: String

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

Link copied to clipboard
open var calendar: String?

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

Link copied to clipboard
open var caseFirst: CaseFirst?

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

Link copied to clipboard
open var collation: String?

The collation type used for sorting

Link copied to clipboard
open var hourCycle: HourCycle?

The time keeping format convention used by the locale.

Link copied to clipboard
override var language: String

The primary language subtag associated with the locale.

Link copied to clipboard

The numeral system used by the locale.

Link copied to clipboard
open var numeric: Boolean?

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

Link copied to clipboard
open var 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.

Link copied to clipboard
open var script: String?

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

Functions

Link copied to clipboard

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

Link copied to clipboard

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