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

projectfluent/IntlPluralRules

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Polyfill for Intl.PluralRules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 72.6%
  • Makefile 23.2%
  • HTML 4.2%