commonMain.com.vanniktech.locale.Territory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multiplatform-locale Show documentation
Show all versions of multiplatform-locale Show documentation
Type Safe Kotlin Multiplatform Locale implementation
The newest version!
package com.vanniktech.locale
sealed interface Territory {
/** ISO 3166-1 alpha-2 code - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
val code: String
/** ISO 3166-1 alpha-3 code - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3 */
val code3: String
/** The [Continent]s it belongs to. Sometimes there can be more than one. */
val continents: List
/** Optional emoji. */
val emoji: String?
}
/** Returns the display name of [Territory] in the current language. */
expect fun Territory.displayName(): String