Hi, anyone who could help ? I'm looking for iOS AP...
# ios
j
Hi, anyone who could help ? I'm looking for iOS API similar to PluralRules on android.
what I'm looking for to have something like this
Copy code
val rules = PluralRules.forLocale(locale)
rules.select(0.0)//other
rules.select(1.0)//one
rules.select(2.0)//two
rules.select(100.0)//other

^ or whatever is correct based on locale
by passing a number it will give me back a "number" category based on https://www.unicode.org/cldr/charts/43/supplemental/language_plural_rules.html#en