All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.net.codinux.i18n.Extensions.kt Maven / Gradle / Ivy

Go to download

Localizing language, country, unit and currency names and formatting numbers and dates for Kotlin Multiplatform with the data from Unicode CLDR project

The newest version!
package net.codinux.i18n

fun LanguageDisplayNames.getDisplayName(languageIsoCode: String, language: LanguageTag) =
    LanguageDisplayNames.getDisplayName(languageIsoCode, language.tag)

fun LanguageDisplayNames.getDisplayNamesForLocale(language: LanguageTag) =
    LanguageDisplayNames.getDisplayNamesForLocale(language.tag)


fun RegionDisplayNames.getDisplayName(regionCode: String, language: LanguageTag) =
    RegionDisplayNames.getDisplayName(regionCode, language.tag)

fun RegionDisplayNames.getDisplayNamesForLocale(language: LanguageTag) =
    RegionDisplayNames.getDisplayNamesForLocale(language.tag)


fun CurrencyDisplayNames.getDisplayName(currencyIsoCode: String, language: LanguageTag) =
    CurrencyDisplayNames.getDisplayName(currencyIsoCode, language.tag)

fun CurrencyDisplayNames.getDisplayNamesForLocale(language: LanguageTag) =
    CurrencyDisplayNames.getDisplayNamesForLocale(language.tag)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy