Locale

@Immutable
actual class Locale(languageTag: String)

A Locale object represents a specific geographical, political, or cultural region. An operation that requires a Locale to perform its task is called locale-sensitive and uses the Locale to tailor information for the user. For example, displaying a number is a locale-sensitive operation— the number should be formatted according to the customs and conventions of the user's native country, region, or culture.

See also

TextStyle
SpanStyle
@Immutable
actual class Locale(languageTag: String)

A Locale object represents a specific geographical, political, or cultural region. An operation that requires a Locale to perform its task is called locale-sensitive and uses the Locale to tailor information for the user. For example, displaying a number is a locale-sensitive operation— the number should be formatted according to the customs and conventions of the user's native country, region, or culture.

See also

TextStyle
SpanStyle

Constructors

Link copied to clipboard
actual constructor(languageTag: String)
actual constructor(languageTag: String)

Types

Link copied to clipboard
actual object Companion
actual object Companion

Properties

Link copied to clipboard
actual val language: String

The ISO 639 compliant language code.

actual val language: String

The ISO 639 compliant language code.

Link copied to clipboard
actual val region: String

The ISO 3166 compliant region code.

actual val region: String

The ISO 3166 compliant region code.

Link copied to clipboard
actual val script: String

The ISO 15924 compliant 4-letter script code.

actual val script: String

The ISO 15924 compliant 4-letter script code.

Functions

Link copied to clipboard
actual open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
Link copied to clipboard
actual fun Locale.isRtl(): Boolean
actual fun Locale.isRtl(): Boolean
Link copied to clipboard
actual fun toLanguageTag(): String

Returns a IETF BCP47 compliant language tag representation of this Locale.

actual fun toLanguageTag(): String

Returns a IETF BCP47 compliant language tag representation of this Locale.

Link copied to clipboard
actual open override fun toString(): String
actual open override fun toString(): String