A polyfill for the upcoming Intl.PluralRules specification.
npm install intl-pluralrules
or
git clone https://github.com/eemeli/IntlPluralRules.git
cd IntlPluralRules
npm install
make
or download the latest release from here
The package's polyfill.js
contains an UMD wrapper, so you can include or
require it pretty much anywhere. When included, it'll set Intl.PluralRules
according to the spec.
This version follows the Sept 2015 spec, with fixes for the problems raised in
issue #1: input is
not forced to Number, and available locales take into account options.style
.