@phensley/cldr-ext-rbnf
Advanced tools
Comparing version 0.21.2 to 0.22.0
@@ -337,4 +337,4 @@ import { Decimal, DecimalConstants } from '@phensley/decimal'; | ||
RBNFEngine.prototype.plural = function (n, cardinal) { | ||
var o = n.operands(); | ||
var cat = cardinal ? pluralRules.cardinal(this.language, o) : pluralRules.ordinal(this.language, o); | ||
var cat = cardinal ? | ||
pluralRules.cardinal(this.language, n) : pluralRules.ordinal(this.language, n); | ||
return PLURALS[cat]; | ||
@@ -341,0 +341,0 @@ }; |
@@ -339,4 +339,4 @@ "use strict"; | ||
RBNFEngine.prototype.plural = function (n, cardinal) { | ||
var o = n.operands(); | ||
var cat = cardinal ? plurals_1.pluralRules.cardinal(this.language, o) : plurals_1.pluralRules.ordinal(this.language, o); | ||
var cat = cardinal ? | ||
plurals_1.pluralRules.cardinal(this.language, n) : plurals_1.pluralRules.ordinal(this.language, n); | ||
return rbnftypes_1.PLURALS[cat]; | ||
@@ -343,0 +343,0 @@ }; |
{ | ||
"name": "@phensley/cldr-ext-rbnf", | ||
"version": "0.21.2", | ||
"version": "0.22.0", | ||
"description": "Extension for rule-based number formatting", | ||
@@ -37,5 +37,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@phensley/cldr-types": "0.21.2", | ||
"@phensley/decimal": "0.21.2", | ||
"@phensley/plurals": "0.21.2", | ||
"@phensley/cldr-types": "0.22.0", | ||
"@phensley/decimal": "0.22.0", | ||
"@phensley/plurals": "0.22.0", | ||
"tslib": "1.10.x" | ||
@@ -69,3 +69,3 @@ }, | ||
}, | ||
"gitHead": "addab8991700dcf4be622cae7b8a3fd01f9d35bd" | ||
"gitHead": "84248f89037d075e80bc54c97f896767558ad1ca" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
423954
+ Added@phensley/cldr-types@0.22.0(transitive)
+ Added@phensley/decimal@0.22.0(transitive)
+ Added@phensley/plurals@0.22.0(transitive)
- Removed@phensley/cldr-types@0.21.2(transitive)
- Removed@phensley/decimal@0.21.2(transitive)
- Removed@phensley/plurals@0.21.2(transitive)
Updated@phensley/cldr-types@0.22.0
Updated@phensley/decimal@0.22.0
Updated@phensley/plurals@0.22.0