Locale

interface Locale

Represents a locale, which defines the document language.

Properties

Link copied to clipboard
abstract val code: String

Language code of the locale. For instance, en for English and it for Italian.

Link copied to clipboard
abstract val countryCode: String?

Country code of the locale.

Link copied to clipboard
abstract val displayName: String

Name of the locale, localized in English. For instance, English for English and Italian for Italian.

Link copied to clipboard

Name of the country of the locale, possibly in the locale's language itself. For instance, United States for en-US and Italia for it.

Link copied to clipboard
abstract val localizedName: String

Name of the locale, possibly in the locale's language itself. For instance, English for English and italiano for Italian.

Link copied to clipboard
abstract val tag: String

Tag of the locale. For instance, en-US for US English and it for Italian.