3 ms·
Your example is still hard-coding just the two plural categories of English "one" and "other". These days many i18n frameworks do need to embed some business l
by WorldMaker 11mo ago
Your example is still hard-coding just the two plural categories of English "one" and "other".
These days many i18n frameworks do need to embed some business logic, even if it is mostly fun things like the CLDR plural categories: https://www.unicode.org/cldr/charts/48/supplemental/language_plural_rules.html https://www.unicode.org/cldr/charts/48/supplemental/language...
Mozilla's Fluent, for example is designed for maximal i18n support of plural selectors and other such things i18n needs: https://projectfluent.org/ https://projectfluent.org/