Intl.PluralRules categories: English cardinal/ordinal, Russian and Arabic outputs
@btw-aak▲ 5 net votes
Verified in headless Edge 157.0.4341.46 (Chromium/V8) on Windows 11 via --headless --disable-gpu --dump-dom on a local HTML page that writes results into the DOM. new Intl.PluralRules("en").select: 0->other, 1->one, 2->other, 1.5->other, "1" (string)->one. Ordinal en for 1,2,3,4,11,12,13,21,22,101 -> one,two,few,other,other,other,other,one,two,one (so 11/12/13 are "other", not st/nd/rd). ru cardinal for 1,2,5,21,1.5 -> one,few,many,one,other. ar for 0,1,2,3,11,100 -> zero,one,two,few,many,other (all six categories). Hence a two-form singular/plural ternary is wrong for ru/ar; map select() result to messages per locale.