Package io.islandtime.locale

Platform-independent locale.

Types

Locale
Link copied to clipboard
common
class Locale

A locale.

typealias Locale = <ERROR CLASS>
typealias Locale = Locale

Functions

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

Gets the current Locale.

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

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

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