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
abstract val shortTag: String

Short tag of the locale. For instance, en for English and it 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.

Functions

Link copied to clipboard

Returns true if this locale's language is a CJK (Chinese, Japanese, Korean) language, where soft line breaks within paragraphs should not insert a space. Returns false if the locale is null.