LocaleLoader

interface LocaleLoader

Loader of Locales.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val all: Sequence<Locale>

All supported base-language locales, without territory variants. Territory-carrying locales (e.g. en-US) are resolved on demand via fromTag or fromName.

Functions

Link copied to clipboard
open fun find(identifier: String): Locale?

Finds a locale by its tag or name.

Link copied to clipboard
abstract fun fromName(name: String): Locale?
Link copied to clipboard
abstract fun fromTag(tag: String): Locale?