Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

Latest commit

 

History

History
36 lines (26 loc) · 1.05 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.05 KB

ISC License Build Status

Intl.PluralRules

A polyfill for the upcoming Intl.PluralRules specification.

Installation

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

Usage

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.