Package io.islandtime.locale

Platform-independent locale.

Types

Locale
Link copied to clipboard

A locale.

On the JVM, this maps to java.util.Locale. On Apple platforms, this maps to NSLocale.

common
class Locale
typealias Locale = <ERROR CLASS>
typealias Locale = Locale

Functions

defaultLocale
Link copied to clipboard

Gets the current Locale.

On the JVM, the Category is not used in order to support older Android versions.

common
fun defaultLocale(): Locale
fun defaultLocale(): Locale
fun defaultLocale(): Locale
toLocale
Link copied to clipboard

Converts an IETF BCP 47 language tag, such as "en-US" or "de-DE", to a Locale.

common
fun String.toLocale(): Locale
fun String.toLocale(): Locale
fun String.toLocale(): Locale