commonMain.de.comahe.i18n4k.messages.formatter.MessagePluralCardinalFormatter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of i18n4k-cldr-plural-rules-jvm Show documentation
Show all versions of i18n4k-cldr-plural-rules-jvm Show documentation
i18n4k is a multiplatform (JVM, JS, native) library and code generator for Kotlin to handle internationalisation (i18n) in your program.
package de.comahe.i18n4k.messages.formatter
import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.cldr.plurals.PluralRule
import de.comahe.i18n4k.cldr.plurals.PluralRuleType
/** See [MessagePluralFormatter] for type "plural"/"cardinal" */
object MessagePluralCardinalFormatter : MessagePluralFormatter() {
override val typeId: String
get() = "plural"
override fun getPluralRule(locale: Locale): PluralRule? {
return PluralRule.create(locale, PluralRuleType.CARDINAL)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy