js-simple-plurals
Just a set of plural functions for different languages
Installation
Install with Bower
$ bower install js-simple-plurals
Install with NPM
$ npm install js-simple-plurals
Examples
Node.js
var plural = ; { var rules = one many; var position = ; return rulesposition;} console; // prints '2 days'
Web
Number
About
Plural rules follow the guideline found in the Unicode CLDR Charts on Language Plural Rules. This plural rules are based on rules generated by universal-i18n.