Many languages have very complicated pluralization rules. For example, Russian has different plural forms for numbers ending in 2.
That doesn't prevent a good translation framework from working properly, but it proves why the sample code in your example & the OP would not work.
https://www.unicode.org/cldr/charts/43/supplemental/language...