Intl.PluralRules Playground

The rice-sack stock sign in five languages: the real Intl.PluralRules picks one, few, many or other for your number, including "1.0" and the 22nd in the queue…

Why it matters

Once your app is multilingual, plurals become a trap: Polish needs 4 forms, Arabic 6, Indonesian 1. English rules written into the code make sentences ungrammatical. PluralRules gives the right category, the base of every i18n library.

The key idea

"Add -s for the plural" is right in only a few languages

Common mistakes

Try it in this playground