AppLocale
Represents a locale in the application.
This expect class is mapped to target-specific platform types:
JVM:
java.util.LocaleAndroid:
android.icu.util.ULocaleiOS/macOS (Apple):
platform.Foundation.NSLocaleWeb/JS:
String(representing language/locale tag)
Example:
val locale = localeForLanguageTag("en-US")
val tag = locale.languageTagRepresents a locale in the application.
This expect class is mapped to target-specific platform types:
JVM:
java.util.LocaleAndroid:
android.icu.util.ULocaleiOS/macOS (Apple):
platform.Foundation.NSLocaleWeb/JS:
String(representing language/locale tag)
Example:
val locale = localeForLanguageTag("en-US")
val tag = locale.languageTagRepresents a locale in the application.
This expect class is mapped to target-specific platform types:
JVM:
java.util.LocaleAndroid:
android.icu.util.ULocaleiOS/macOS (Apple):
platform.Foundation.NSLocaleWeb/JS:
String(representing language/locale tag)
Example:
val locale = localeForLanguageTag("en-US")
val tag = locale.languageTagRepresents a locale in the application.
This expect class is mapped to target-specific platform types:
JVM:
java.util.LocaleAndroid:
android.icu.util.ULocaleiOS/macOS (Apple):
platform.Foundation.NSLocaleWeb/JS:
String(representing language/locale tag)
Example:
val locale = localeForLanguageTag("en-US")
val tag = locale.languageTagRepresents a locale in the application.
This expect class is mapped to target-specific platform types:
JVM:
java.util.LocaleAndroid:
android.icu.util.ULocaleiOS/macOS (Apple):
platform.Foundation.NSLocaleWeb/JS:
String(representing language/locale tag)
Example:
val locale = localeForLanguageTag("en-US")
val tag = locale.languageTagProperties
The display name of this AppLocale, formatted for display to users.
The display name of this AppLocale, formatted for display to users.
The display name of this AppLocale, formatted for display to users.
The display name of this AppLocale, formatted for display to users.
The display name of this AppLocale, formatted for display to users.
The language code representing the primary language of this AppLocale.
The language code representing the primary language of this AppLocale.
The language code representing the primary language of this AppLocale.
The language code representing the primary language of this AppLocale.
The language code representing the primary language of this AppLocale.