fluid-i18n
Kotlin multiplatform internationalization support backed by Unicode CLDR data.
Highly experimental. Feel free to contribute!
Installation
build.gradle.kts
:
dependencies {
implementation("io.fluidsonic.i18n:fluid-i18n:0.9.0")
}
Usage
Country names
val usa = Country.byCode("US")
println(usa.name)
println(usa.shortName)
println(usa.variantName)
val locale = Locale.forLanguage("de")
println(usa.name(locale))
println(usa.shortName(locale))
println(usa.variantName(locale))
val ivoryCoast = Country.forCode("CI")
println(usa.name)
println(usa.shortName)
println(usa.variantName)
License
Apache 2.0