Companion

actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard

A list of KalugaLocale available to the user.

A list of KalugaLocale available to the user.

A list of KalugaLocale available to the user.

A list of KalugaLocale available to the user.

A list of KalugaLocale available to the user.

Link copied to clipboard

The default KalugaLocale of the user

The default KalugaLocale of the user

The default KalugaLocale of the user

The default KalugaLocale of the user

The default KalugaLocale of the user

Link copied to clipboard

Locale for English/US in a POSIX format. Useful shortcut when dealing with fixed locale formats.

Functions

Link copied to clipboard
actual fun createLocale(language: String): KalugaLocale

Creates a KalugaLocale based on a language ISO 639 alpha-2 or alpha-3 code

actual fun createLocale(language: String, country: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code and ISO 3166 alpha-2 country code.

actual fun createLocale(language: String, country: String, variant: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code, ISO 3166 alpha-2 country code, and variant code.

expect fun createLocale(language: String): KalugaLocale

Creates a KalugaLocale based on a language ISO 639 alpha-2 or alpha-3 code

expect fun createLocale(language: String, country: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code and ISO 3166 alpha-2 country code.

expect fun createLocale(language: String, country: String, variant: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code, ISO 3166 alpha-2 country code, and variant code.

actual fun createLocale(language: String): KalugaLocale

Creates a KalugaLocale based on a language ISO 639 alpha-2 or alpha-3 code

actual fun createLocale(language: String, country: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code and ISO 3166 alpha-2 country code.

actual fun createLocale(language: String, country: String, variant: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code, ISO 3166 alpha-2 country code, and variant code.

actual fun createLocale(language: String): KalugaLocale

Creates a KalugaLocale based on a language ISO 639 alpha-2 or alpha-3 code

actual fun createLocale(language: String, country: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code and ISO 3166 alpha-2 country code.

actual fun createLocale(language: String, country: String, variant: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code, ISO 3166 alpha-2 country code, and variant code.

actual fun createLocale(language: String): KalugaLocale

Creates a KalugaLocale based on a language ISO 639 alpha-2 or alpha-3 code

actual fun createLocale(language: String, country: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code and ISO 3166 alpha-2 country code.

actual fun createLocale(language: String, country: String, variant: String): KalugaLocale

Creates a KalugaLocale based on a ISO 639 alpha-2 or alpha-3 language code, ISO 3166 alpha-2 country code, and variant code.