make-plural
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -18,2 +18,4 @@ /** | ||
(function (global) { | ||
function parse(cond, symbols) { | ||
@@ -106,5 +108,5 @@ if (cond == 'i = 0 or n = 1') return 'n >= 0 && n <= 1'; | ||
var rules; | ||
var rules, Plurals = {} | ||
exports.set_rules = function(cldr) { | ||
Plurals.set_rules = function(cldr) { | ||
if (!cldr) cldr = require('../data/unicode-cldr-plural-rules.json'); | ||
@@ -115,3 +117,3 @@ else if (typeof cldr == 'string') cldr = require(cldr); | ||
exports.build = function(lc, opt) { | ||
Plurals.build = function(lc, opt) { | ||
var fn, fn_str, lines = [], symbols = {}, tests = {}; | ||
@@ -137,1 +139,10 @@ if (!opt) opt = {}; | ||
}; | ||
if (typeof exports !== 'undefined') { | ||
exports.set_rules = Plurals.set_rules; | ||
exports.build = Plurals.build; | ||
} else { | ||
global.Plurals = Plurals; | ||
} | ||
})(this); |
{ | ||
"name": "make-plural", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Translates Unicode CLDR pluralization rules to executable JavaScript", | ||
@@ -5,0 +5,0 @@ "keywords": ["unicode", "cldr", "i18n", "internationalization", "pluralization"], |
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
72896
970