make-plural
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -1,2 +0,17 @@ | ||
(function () { | ||
/** | ||
* make-plural.js -- https://github.com/eemeli/make-plural.js/ | ||
* Copyright (c) 2014 by Eemeli Aro <eemeli@gmail.com> | ||
* | ||
* Permission to use, copy, modify, and/or distribute this software for any | ||
* purpose with or without fee is hereby granted, provided that the above | ||
* copyright notice and this permission notice appear in all copies. | ||
* | ||
* The software is provided "as is" and the author disclaims all warranties | ||
* with regard to this software including all implied warranties of | ||
* merchantability and fitness. In no event shall the author be liable for | ||
* any special, direct, indirect, or consequential damages or any damages | ||
* whatsoever resulting from loss of use, data or profits, whether in an | ||
* action of contract, negligence or other tortious action, arising out of | ||
* or in connection with the use or performance of this software. | ||
*/ | ||
@@ -90,3 +105,3 @@ function parse(cond, symbols) { | ||
var rules; | ||
var rules; | ||
@@ -100,3 +115,3 @@ exports.set_rules = function(cldr) { | ||
exports.build = function(lc, opt) { | ||
var fn, fn_str, lines = [], symbols = {}, tests = {}; | ||
var fn, fn_str, lines = [], symbols = {}, tests = {}; | ||
if (!opt) opt = {}; | ||
@@ -121,3 +136,1 @@ if (!rules) exports.set_rules(); | ||
}; | ||
})(); |
{ | ||
"name": "make-plural", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Translates Unicode CLDR pluralization rules to executable JavaScript", | ||
@@ -5,0 +5,0 @@ "keywords": ["unicode", "CLDR", "i18n", "internationalization", "pluralization"], |
@@ -1,3 +0,3 @@ | ||
make-plural.js | ||
============== | ||
make-plural | ||
=========== | ||
@@ -11,3 +11,2 @@ A JavaScript module that translates [Unicode CLDR](http://cldr.unicode.org/) | ||
Using npm: | ||
``` | ||
@@ -67,4 +66,4 @@ npm install make-plural | ||
### set_rules(cldr) | ||
Sets the used CLDR rules to `cldr`, which may be an object or the path to a | ||
JSON file formatted like [this](http://www.unicode.org/repos/cldr-aux/json/25/supplemental/plurals.json). | ||
Sets the used CLDR rules to `cldr`, which may be an object or the path to a JSON | ||
file formatted like [this](http://www.unicode.org/repos/cldr-aux/json/25/supplemental/plurals.json). | ||
By default, the included rules in `data/unicode-cldr-plural-rules.json` are | ||
@@ -76,2 +75,4 @@ used. | ||
None. | ||
None. CLDR plural rule data is included in JSON format; make-plural supports the | ||
[LDML Language Plural Rules](http://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules) | ||
as used in CLDR release 24 and later. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72365
962
76