Favorites

JavaScript Intl.PluralRules Object

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
Intl.PluralRules
JavaScript Internationalization · ConstructorThis object is supported by all modern browsers.
Updated 28th November 2026

Intl.PluralRules tells you which plural form a number needs in a given language, such as one or other, so you can choose the right word or ending.

Description

Intl.PluralRules works out the plural category of a number for a locale. Its select() method returns one of 'zero', 'one', 'two', 'few', 'many' or 'other'. English only uses "one" and "other", but languages such as Arabic, Polish and Russian have more forms, so count === 1 isn't enough for translated text.

With type: 'ordinal', it gives categories for ordinal numbers, which you can map to suffixes like "st", "nd", "rd" and "th".

resolvedOptions().pluralCategories lists the categories a language uses, which is helpful when preparing translation files. It works hand in hand with Intl.NumberFormat: the number formatter shows the number correctly, and the plural rules pick the matching word. Translation libraries such as those based on ICU MessageFormat use Intl.PluralRules behind the scenes.

Creating

new Intl.PluralRules(locales, options)

Example

const pr = new Intl.PluralRules('en');
const word = { one: 'item', other: 'items' };
for (const n of [0, 1, 5]) console.log(n, word[pr.select(n)]);

const ord = new Intl.PluralRules('en', { type: 'ordinal' });
const suffix = { one: 'st', two: 'nd', few: 'rd', other: 'th' };
console.log([1, 2, 3, 4, 11, 22].map(n => n + suffix[ord.select(n)]));

Browser Support

The following information will show you the current browser support for the Intl.PluralRules object. Hover over a browser icon to see the version that first introduced support for this object.

This object is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee