make-plural
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -13,2 +13,3 @@ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other"; | ||
export const az: (n: number | string) => "one" | "other"; | ||
export const bal: (n: number | string) => "one" | "other"; | ||
export const be: (n: number | string) => "one" | "few" | "many" | "other"; | ||
@@ -43,3 +44,3 @@ export const bem: (n: number | string) => "one" | "other"; | ||
export const eo: (n: number | string) => "one" | "other"; | ||
export const es: (n: number | string) => "one" | "other"; | ||
export const es: (n: number | string) => "one" | "many" | "other"; | ||
export const et: (n: number | string) => "one" | "other"; | ||
@@ -66,2 +67,3 @@ export const eu: (n: number | string) => "one" | "other"; | ||
export const hi: (n: number | string) => "one" | "other"; | ||
export const hnj: (n: number | string) => "other"; | ||
export const hr: (n: number | string) => "one" | "few" | "other"; | ||
@@ -75,12 +77,9 @@ export const hsb: (n: number | string) => "one" | "two" | "few" | "other"; | ||
export const ii: (n: number | string) => "other"; | ||
export const _in: (n: number | string) => "other"; | ||
export const io: (n: number | string) => "one" | "other"; | ||
export const is: (n: number | string) => "one" | "other"; | ||
export const it: (n: number | string) => "one" | "other"; | ||
export const it: (n: number | string) => "one" | "many" | "other"; | ||
export const iu: (n: number | string) => "one" | "two" | "other"; | ||
export const iw: (n: number | string) => "one" | "two" | "many" | "other"; | ||
export const ja: (n: number | string) => "other"; | ||
export const jbo: (n: number | string) => "other"; | ||
export const jgo: (n: number | string) => "one" | "other"; | ||
export const ji: (n: number | string) => "one" | "other"; | ||
export const jmc: (n: number | string) => "one" | "other"; | ||
@@ -151,8 +150,7 @@ export const jv: (n: number | string) => "other"; | ||
export const ps: (n: number | string) => "one" | "other"; | ||
export const pt: (n: number | string) => "one" | "other"; | ||
export const pt_PT: (n: number | string) => "one" | "other"; | ||
export const pt: (n: number | string) => "one" | "many" | "other"; | ||
export const pt_PT: (n: number | string) => "one" | "many" | "other"; | ||
export const rm: (n: number | string) => "one" | "other"; | ||
export const ro: (n: number | string) => "one" | "few" | "other"; | ||
export const rof: (n: number | string) => "one" | "other"; | ||
export const root: (n: number | string) => "other"; | ||
export const ru: (n: number | string) => "one" | "few" | "many" | "other"; | ||
@@ -202,2 +200,3 @@ export const rwk: (n: number | string) => "one" | "other"; | ||
export const to: (n: number | string) => "other"; | ||
export const tpi: (n: number | string) => "other"; | ||
export const tr: (n: number | string) => "one" | "other"; | ||
@@ -208,2 +207,3 @@ export const ts: (n: number | string) => "one" | "other"; | ||
export const uk: (n: number | string) => "one" | "few" | "many" | "other"; | ||
export const und: (n: number | string) => "other"; | ||
export const ur: (n: number | string) => "one" | "other"; | ||
@@ -210,0 +210,0 @@ export const uz: (n: number | string) => "one" | "other"; |
@@ -19,4 +19,2 @@ const a = (n) => n == 1 ? 'one' : 'other'; | ||
}(this, { | ||
_in: e, | ||
af: a, | ||
@@ -58,2 +56,4 @@ | ||
bal: a, | ||
be: (n) => { | ||
@@ -158,3 +158,8 @@ const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2); | ||
es: a, | ||
es: (n) => { | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6); | ||
return n == 1 ? 'one' | ||
: i != 0 && i1000000 == 0 && v0 ? 'many' | ||
: 'other'; | ||
}, | ||
@@ -237,2 +242,4 @@ et: d, | ||
hnj: e, | ||
hr: (n) => { | ||
@@ -272,14 +279,11 @@ const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2); | ||
it: d, | ||
iu: f, | ||
iw: (n) => { | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1); | ||
it: (n) => { | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6); | ||
return n == 1 && v0 ? 'one' | ||
: i == 2 && v0 ? 'two' | ||
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many' | ||
: i != 0 && i1000000 == 0 && v0 ? 'many' | ||
: 'other'; | ||
}, | ||
iu: f, | ||
ja: e, | ||
@@ -291,4 +295,2 @@ | ||
ji: d, | ||
jmc: a, | ||
@@ -476,7 +478,14 @@ | ||
pt: (n) => { | ||
const s = String(n).split('.'), i = s[0]; | ||
return (i == 0 || i == 1) ? 'one' : 'other'; | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6); | ||
return (i == 0 || i == 1) ? 'one' | ||
: i != 0 && i1000000 == 0 && v0 ? 'many' | ||
: 'other'; | ||
}, | ||
pt_PT: d, | ||
pt_PT: (n) => { | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6); | ||
return n == 1 && v0 ? 'one' | ||
: i != 0 && i1000000 == 0 && v0 ? 'many' | ||
: 'other'; | ||
}, | ||
@@ -494,4 +503,2 @@ rm: a, | ||
root: e, | ||
ru: (n) => { | ||
@@ -624,2 +631,4 @@ const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2); | ||
tpi: e, | ||
tr: a, | ||
@@ -644,2 +653,4 @@ | ||
und: e, | ||
ur: d, | ||
@@ -646,0 +657,0 @@ |
@@ -1,2 +0,1 @@ | ||
export const _in: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const af: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
@@ -12,2 +11,3 @@ export const ak: {"cardinal":{"one":["0","1","0.0","1.0","0.00","1.00","0.000","1.000","0.0000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const az: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","2","5","7","8","11","12","15","17","18","20","22","25","101","1001"],"few":["3","4","13","14","23","24","33","34","43","44","53","54","63","64","73","74","100","1003"],"many":["0","6","16","26","36","40","46","56","106","1006"],"other":["9","10","19","29","30","39","49","59","69","79","109","1000","10000","100000","1000000"]}}; | ||
export const bal: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}}; | ||
export const be: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","1.0","21.0","31.0","41.0","51.0","61.0","71.0","81.0","101.0","1001.0"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","2.0","3.0","4.0","22.0","23.0","24.0","32.0","33.0","102.0","1002.0"],"many":["0","5","19","100","1000","10000","100000","1000000","0.0","5.0","6.0","7.0","8.0","9.0","10.0","11.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["0.1","0.9","1.1","1.7","10.1","100.1","1000.1"]},"ordinal":{"few":["2","3","22","23","32","33","42","43","52","53","62","63","72","73","82","83","102","1002"],"other":["0","1","4","17","100","1000","10000","100000","1000000"]}}; | ||
@@ -42,3 +42,3 @@ export const bem: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const eo: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const es: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const es: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const et: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
@@ -65,2 +65,3 @@ export const eu: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const hi: {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"many":["6"],"other":["0","5","7","20","100","1000","10000","100000","1000000"]}}; | ||
export const hnj: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const hr: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","0.2","0.4","1.2","1.4","2.2","2.4","3.2","3.4","4.2","4.4","5.2","10.2","100.2","1000.2"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
@@ -76,9 +77,7 @@ export const hsb: {"cardinal":{"one":["1","101","201","301","401","501","601","701","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"two":["2","102","202","302","402","502","602","702","1002","0.2","1.2","2.2","3.2","4.2","5.2","6.2","7.2","10.2","100.2","1000.2"],"few":["3","4","103","104","203","204","303","304","403","404","503","504","603","604","703","704","1003","0.3","0.4","1.3","1.4","2.3","2.4","3.3","3.4","4.3","4.4","5.3","5.4","6.3","6.4","7.3","7.4","10.3","100.3","1000.3"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const is: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.0","1.6","10.1","100.1","1000.1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","2.0","3.0","4.0","5.0","6.0","7.0","8.0","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const it: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}}; | ||
export const it: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}}; | ||
export const iu: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"other":["0","3","17","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const iw: {"cardinal":{"one":["1"],"two":["2"],"many":["20","30","40","50","60","70","80","90","100","1000","10000","100000","1000000"],"other":["0","3","17","101","1001","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const ja: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const jbo: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const jgo: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const ji: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const jmc: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
@@ -149,8 +148,7 @@ export const jv: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const ps: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const pt: {"cardinal":{"one":["0","1","0.0","1.0","1.5"],"other":["2","17","100","1000","10000","100000","1000000","2.0","3.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const pt_PT: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const pt: {"cardinal":{"one":["0","1","0.0","1.0","1.5"],"many":["1000000"],"other":["2","17","100","1000","10000","100000","2.0","3.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const pt_PT: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const rm: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const ro: {"cardinal":{"one":["1"],"few":["0","2","16","102","1002","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}}; | ||
export const rof: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const root: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const ru: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002"],"many":["0","5","19","100","1000","10000","100000","1000000"],"other":["0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
@@ -200,2 +198,3 @@ export const rwk: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const to: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const tpi: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const tr: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
@@ -206,2 +205,3 @@ export const ts: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}; | ||
export const uk: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002"],"many":["0","5","19","100","1000","10000","100000","1000000"],"other":["0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"few":["3","23","33","43","53","63","73","83","103","1003"],"other":["0","2","4","16","100","1000","10000","100000","1000000"]}}; | ||
export const und: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
export const ur: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
@@ -208,0 +208,0 @@ export const uz: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; |
@@ -15,3 +15,2 @@ const a = {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}; | ||
}(this, { | ||
_in: f, | ||
af: a, | ||
@@ -27,2 +26,3 @@ ak: b, | ||
az: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","2","5","7","8","11","12","15","17","18","20","22","25","101","1001"],"few":["3","4","13","14","23","24","33","34","43","44","53","54","63","64","73","74","100","1003"],"many":["0","6","16","26","36","40","46","56","106","1006"],"other":["9","10","19","29","30","39","49","59","69","79","109","1000","10000","100000","1000000"]}}, | ||
bal: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}}, | ||
be: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","1.0","21.0","31.0","41.0","51.0","61.0","71.0","81.0","101.0","1001.0"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","2.0","3.0","4.0","22.0","23.0","24.0","32.0","33.0","102.0","1002.0"],"many":["0","5","19","100","1000","10000","100000","1000000","0.0","5.0","6.0","7.0","8.0","9.0","10.0","11.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["0.1","0.9","1.1","1.7","10.1","100.1","1000.1"]},"ordinal":{"few":["2","3","22","23","32","33","42","43","52","53","62","63","72","73","82","83","102","1002"],"other":["0","1","4","17","100","1000","10000","100000","1000000"]}}, | ||
@@ -57,3 +57,3 @@ bem: c, | ||
eo: c, | ||
es: a, | ||
es: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}, | ||
et: e, | ||
@@ -80,2 +80,3 @@ eu: a, | ||
hi: {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"many":["6"],"other":["0","5","7","20","100","1000","10000","100000","1000000"]}}, | ||
hnj: d, | ||
hr: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","0.2","0.4","1.2","1.4","2.2","2.4","3.2","3.4","4.2","4.4","5.2","10.2","100.2","1000.2"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}, | ||
@@ -91,9 +92,7 @@ hsb: {"cardinal":{"one":["1","101","201","301","401","501","601","701","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"two":["2","102","202","302","402","502","602","702","1002","0.2","1.2","2.2","3.2","4.2","5.2","6.2","7.2","10.2","100.2","1000.2"],"few":["3","4","103","104","203","204","303","304","403","404","503","504","603","604","703","704","1003","0.3","0.4","1.3","1.4","2.3","2.4","3.3","3.4","4.3","4.4","5.3","5.4","6.3","6.4","7.3","7.4","10.3","100.3","1000.3"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}, | ||
is: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.0","1.6","10.1","100.1","1000.1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","2.0","3.0","4.0","5.0","6.0","7.0","8.0","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}, | ||
it: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}}, | ||
it: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}}, | ||
iu: g, | ||
iw: {"cardinal":{"one":["1"],"two":["2"],"many":["20","30","40","50","60","70","80","90","100","1000","10000","100000","1000000"],"other":["0","3","17","101","1001","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}, | ||
ja: f, | ||
jbo: d, | ||
jgo: c, | ||
ji: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}, | ||
jmc: c, | ||
@@ -164,8 +163,7 @@ jv: d, | ||
ps: a, | ||
pt: {"cardinal":{"one":["0","1","0.0","1.0","1.5"],"other":["2","17","100","1000","10000","100000","1000000","2.0","3.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}, | ||
pt_PT: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}, | ||
pt: {"cardinal":{"one":["0","1","0.0","1.0","1.5"],"many":["1000000"],"other":["2","17","100","1000","10000","100000","2.0","3.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}, | ||
pt_PT: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}}, | ||
rm: c, | ||
ro: {"cardinal":{"one":["1"],"few":["0","2","16","102","1002","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}}, | ||
rof: c, | ||
root: f, | ||
ru: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002"],"many":["0","5","19","100","1000","10000","100000","1000000"],"other":["0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}}, | ||
@@ -215,2 +213,3 @@ rwk: c, | ||
to: d, | ||
tpi: f, | ||
tr: a, | ||
@@ -221,2 +220,3 @@ ts: c, | ||
uk: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002"],"many":["0","5","19","100","1000","10000","100000","1000000"],"other":["0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"few":["3","23","33","43","53","63","73","83","103","1003"],"other":["0","2","4","16","100","1000","10000","100000","1000000"]}}, | ||
und: f, | ||
ur: e, | ||
@@ -223,0 +223,0 @@ uz: a, |
@@ -9,2 +9,3 @@ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other"; | ||
export const az: (n: number | string) => "one" | "few" | "many" | "other"; | ||
export const bal: (n: number | string) => "one" | "other"; | ||
export const be: (n: number | string) => "few" | "other"; | ||
@@ -44,6 +45,4 @@ export const bg: (n: number | string) => "other"; | ||
export const id: (n: number | string) => "other"; | ||
export const _in: (n: number | string) => "other"; | ||
export const is: (n: number | string) => "other"; | ||
export const it: (n: number | string) => "many" | "other"; | ||
export const iw: (n: number | string) => "other"; | ||
export const ja: (n: number | string) => "other"; | ||
@@ -79,3 +78,2 @@ export const ka: (n: number | string) => "one" | "many" | "other"; | ||
export const ro: (n: number | string) => "one" | "other"; | ||
export const root: (n: number | string) => "other"; | ||
export const ru: (n: number | string) => "other"; | ||
@@ -98,4 +96,6 @@ export const sc: (n: number | string) => "many" | "other"; | ||
export const tl: (n: number | string) => "one" | "other"; | ||
export const tpi: (n: number | string) => "other"; | ||
export const tr: (n: number | string) => "other"; | ||
export const uk: (n: number | string) => "few" | "other"; | ||
export const und: (n: number | string) => "other"; | ||
export const ur: (n: number | string) => "other"; | ||
@@ -102,0 +102,0 @@ export const uz: (n: number | string) => "other"; |
@@ -10,4 +10,2 @@ const a = (n) => 'other'; | ||
}(this, { | ||
_in: a, | ||
af: a, | ||
@@ -35,2 +33,4 @@ | ||
bal: b, | ||
be: (n) => { | ||
@@ -140,4 +140,2 @@ const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2); | ||
iw: a, | ||
ja: a, | ||
@@ -238,4 +236,2 @@ | ||
root: a, | ||
ru: a, | ||
@@ -286,2 +282,4 @@ | ||
tpi: a, | ||
tr: a, | ||
@@ -294,2 +292,4 @@ | ||
und: a, | ||
ur: a, | ||
@@ -296,0 +296,0 @@ |
{ | ||
"name": "make-plural", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"description": "Unicode CLDR pluralization rules as JavaScript functions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other"; | ||
export const _in: {cardinal:["other"],ordinal:["other"]}; | ||
export const af: {cardinal:["one","other"],ordinal:["other"]}; | ||
@@ -14,2 +13,3 @@ export const ak: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const az: {cardinal:["one","other"],ordinal:["one","few","many","other"]}; | ||
export const bal: {cardinal:["one","other"],ordinal:["one","other"]}; | ||
export const be: {cardinal:["one","few","many","other"],ordinal:["few","other"]}; | ||
@@ -44,3 +44,3 @@ export const bem: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const eo: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const es: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const es: {cardinal:["one","many","other"],ordinal:["other"]}; | ||
export const et: {cardinal:["one","other"],ordinal:["other"]}; | ||
@@ -67,2 +67,3 @@ export const eu: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const hi: {cardinal:["one","other"],ordinal:["one","two","few","many","other"]}; | ||
export const hnj: {cardinal:["other"],ordinal:["other"]}; | ||
export const hr: {cardinal:["one","few","other"],ordinal:["other"]}; | ||
@@ -78,9 +79,7 @@ export const hsb: {cardinal:["one","two","few","other"],ordinal:["other"]}; | ||
export const is: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const it: {cardinal:["one","other"],ordinal:["many","other"]}; | ||
export const it: {cardinal:["one","many","other"],ordinal:["many","other"]}; | ||
export const iu: {cardinal:["one","two","other"],ordinal:["other"]}; | ||
export const iw: {cardinal:["one","two","many","other"],ordinal:["other"]}; | ||
export const ja: {cardinal:["other"],ordinal:["other"]}; | ||
export const jbo: {cardinal:["other"],ordinal:["other"]}; | ||
export const jgo: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const ji: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const jmc: {cardinal:["one","other"],ordinal:["other"]}; | ||
@@ -151,8 +150,7 @@ export const jv: {cardinal:["other"],ordinal:["other"]}; | ||
export const ps: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const pt: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const pt_PT: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const pt: {cardinal:["one","many","other"],ordinal:["other"]}; | ||
export const pt_PT: {cardinal:["one","many","other"],ordinal:["other"]}; | ||
export const rm: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const ro: {cardinal:["one","few","other"],ordinal:["one","other"]}; | ||
export const rof: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const root: {cardinal:["other"],ordinal:["other"]}; | ||
export const ru: {cardinal:["one","few","many","other"],ordinal:["other"]}; | ||
@@ -202,2 +200,3 @@ export const rwk: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const to: {cardinal:["other"],ordinal:["other"]}; | ||
export const tpi: {cardinal:["other"],ordinal:["other"]}; | ||
export const tr: {cardinal:["one","other"],ordinal:["other"]}; | ||
@@ -208,2 +207,3 @@ export const ts: {cardinal:["one","other"],ordinal:["other"]}; | ||
export const uk: {cardinal:["one","few","many","other"],ordinal:["few","other"]}; | ||
export const und: {cardinal:["other"],ordinal:["other"]}; | ||
export const ur: {cardinal:["one","other"],ordinal:["other"]}; | ||
@@ -210,0 +210,0 @@ export const uz: {cardinal:["one","other"],ordinal:["other"]}; |
var z = "zero", o = "one", t = "two", f = "few", m = "many", x = "other"; | ||
var a = {cardinal:[o,x],ordinal:[x]}; | ||
var b = {cardinal:[x],ordinal:[x]}; | ||
var c = {cardinal:[o,f,m,x],ordinal:[x]}; | ||
var d = {cardinal:[o,x],ordinal:[o,x]}; | ||
var b = {cardinal:[o,x],ordinal:[o,x]}; | ||
var c = {cardinal:[x],ordinal:[x]}; | ||
var d = {cardinal:[o,f,m,x],ordinal:[x]}; | ||
var e = {cardinal:[o,t,x],ordinal:[x]}; | ||
@@ -14,3 +14,2 @@ | ||
}(this, { | ||
_in: b, | ||
af: a, | ||
@@ -26,2 +25,3 @@ ak: a, | ||
az: {cardinal:[o,x],ordinal:[o,f,m,x]}, | ||
bal: b, | ||
be: {cardinal:[o,f,m,x],ordinal:[f,x]}, | ||
@@ -32,5 +32,5 @@ bem: a, | ||
bho: a, | ||
bm: b, | ||
bm: c, | ||
bn: {cardinal:[o,x],ordinal:[o,t,f,m,x]}, | ||
bo: b, | ||
bo: c, | ||
br: {cardinal:[o,t,f,m,x],ordinal:[x]}, | ||
@@ -45,3 +45,3 @@ brx: a, | ||
ckb: a, | ||
cs: c, | ||
cs: d, | ||
cy: {cardinal:[z,o,t,f,m,x],ordinal:[z,o,t,f,m,x]}, | ||
@@ -53,3 +53,3 @@ da: a, | ||
dv: a, | ||
dz: b, | ||
dz: c, | ||
ee: a, | ||
@@ -59,3 +59,3 @@ el: a, | ||
eo: a, | ||
es: a, | ||
es: {cardinal:[o,m,x],ordinal:[x]}, | ||
et: a, | ||
@@ -66,3 +66,3 @@ eu: a, | ||
fi: a, | ||
fil: d, | ||
fil: b, | ||
fo: a, | ||
@@ -83,22 +83,21 @@ fr: {cardinal:[o,m,x],ordinal:[o,x]}, | ||
hi: {cardinal:[o,x],ordinal:[o,t,f,m,x]}, | ||
hnj: c, | ||
hr: {cardinal:[o,f,x],ordinal:[x]}, | ||
hsb: {cardinal:[o,t,f,x],ordinal:[x]}, | ||
hu: d, | ||
hy: d, | ||
hu: b, | ||
hy: b, | ||
ia: a, | ||
id: b, | ||
ig: b, | ||
ii: b, | ||
id: c, | ||
ig: c, | ||
ii: c, | ||
io: a, | ||
is: a, | ||
it: {cardinal:[o,x],ordinal:[m,x]}, | ||
it: {cardinal:[o,m,x],ordinal:[m,x]}, | ||
iu: e, | ||
iw: {cardinal:[o,t,m,x],ordinal:[x]}, | ||
ja: b, | ||
jbo: b, | ||
ja: c, | ||
jbo: c, | ||
jgo: a, | ||
ji: a, | ||
jmc: a, | ||
jv: b, | ||
jw: b, | ||
jv: c, | ||
jw: c, | ||
ka: {cardinal:[o,x],ordinal:[o,m,x]}, | ||
@@ -108,10 +107,10 @@ kab: a, | ||
kcg: a, | ||
kde: b, | ||
kea: b, | ||
kde: c, | ||
kea: c, | ||
kk: {cardinal:[o,x],ordinal:[m,x]}, | ||
kkj: a, | ||
kl: a, | ||
km: b, | ||
km: c, | ||
kn: a, | ||
ko: b, | ||
ko: c, | ||
ks: a, | ||
@@ -127,6 +126,6 @@ ksb: a, | ||
lij: {cardinal:[o,x],ordinal:[m,x]}, | ||
lkt: b, | ||
lkt: c, | ||
ln: a, | ||
lo: {cardinal:[x],ordinal:[o,x]}, | ||
lt: c, | ||
lt: d, | ||
lv: {cardinal:[z,o,x],ordinal:[x]}, | ||
@@ -142,4 +141,4 @@ mas: a, | ||
ms: {cardinal:[x],ordinal:[o,x]}, | ||
mt: c, | ||
my: b, | ||
mt: d, | ||
my: c, | ||
nah: a, | ||
@@ -149,3 +148,3 @@ naq: e, | ||
nd: a, | ||
ne: d, | ||
ne: b, | ||
nl: a, | ||
@@ -155,3 +154,3 @@ nn: a, | ||
no: a, | ||
nqo: b, | ||
nqo: c, | ||
nr: a, | ||
@@ -164,18 +163,17 @@ nso: a, | ||
os: a, | ||
osa: b, | ||
osa: c, | ||
pa: a, | ||
pap: a, | ||
pcm: a, | ||
pl: c, | ||
pl: d, | ||
prg: {cardinal:[z,o,x],ordinal:[x]}, | ||
ps: a, | ||
pt: a, | ||
pt_PT: a, | ||
pt: {cardinal:[o,m,x],ordinal:[x]}, | ||
pt_PT: {cardinal:[o,m,x],ordinal:[x]}, | ||
rm: a, | ||
ro: {cardinal:[o,f,x],ordinal:[o,x]}, | ||
rof: a, | ||
root: b, | ||
ru: c, | ||
ru: d, | ||
rwk: a, | ||
sah: b, | ||
sah: c, | ||
saq: a, | ||
@@ -189,8 +187,8 @@ sat: e, | ||
seh: a, | ||
ses: b, | ||
sg: b, | ||
ses: c, | ||
sg: c, | ||
sh: {cardinal:[o,f,x],ordinal:[x]}, | ||
shi: {cardinal:[o,f,x],ordinal:[x]}, | ||
si: a, | ||
sk: c, | ||
sk: d, | ||
sl: {cardinal:[o,t,f,x],ordinal:[x]}, | ||
@@ -209,4 +207,4 @@ sma: e, | ||
st: a, | ||
su: b, | ||
sv: d, | ||
su: c, | ||
sv: b, | ||
sw: a, | ||
@@ -217,9 +215,10 @@ syr: a, | ||
teo: a, | ||
th: b, | ||
th: c, | ||
ti: a, | ||
tig: a, | ||
tk: {cardinal:[o,x],ordinal:[f,x]}, | ||
tl: d, | ||
tl: b, | ||
tn: a, | ||
to: b, | ||
to: c, | ||
tpi: c, | ||
tr: a, | ||
@@ -230,2 +229,3 @@ ts: a, | ||
uk: {cardinal:[o,f,m,x],ordinal:[f,x]}, | ||
und: c, | ||
ur: a, | ||
@@ -239,10 +239,10 @@ uz: a, | ||
wae: a, | ||
wo: b, | ||
wo: c, | ||
xh: a, | ||
xog: a, | ||
yi: a, | ||
yo: b, | ||
yue: b, | ||
zh: b, | ||
yo: c, | ||
yue: c, | ||
zh: c, | ||
zu: a | ||
})); |
@@ -13,2 +13,3 @@ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other"; | ||
export const az: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other"; | ||
export const bal: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const be: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other"; | ||
@@ -43,3 +44,3 @@ export const bem: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const eo: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const es: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const es: (n: number | string, ord?: boolean) => "one" | "many" | "other"; | ||
export const et: (n: number | string, ord?: boolean) => "one" | "other"; | ||
@@ -66,2 +67,3 @@ export const eu: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const hi: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other"; | ||
export const hnj: (n: number | string, ord?: boolean) => "other"; | ||
export const hr: (n: number | string, ord?: boolean) => "one" | "few" | "other"; | ||
@@ -75,3 +77,2 @@ export const hsb: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other"; | ||
export const ii: (n: number | string, ord?: boolean) => "other"; | ||
export const _in: (n: number | string, ord?: boolean) => "other"; | ||
export const io: (n: number | string, ord?: boolean) => "one" | "other"; | ||
@@ -81,7 +82,5 @@ export const is: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const iu: (n: number | string, ord?: boolean) => "one" | "two" | "other"; | ||
export const iw: (n: number | string, ord?: boolean) => "one" | "two" | "many" | "other"; | ||
export const ja: (n: number | string, ord?: boolean) => "other"; | ||
export const jbo: (n: number | string, ord?: boolean) => "other"; | ||
export const jgo: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const ji: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const jmc: (n: number | string, ord?: boolean) => "one" | "other"; | ||
@@ -152,8 +151,7 @@ export const jv: (n: number | string, ord?: boolean) => "other"; | ||
export const ps: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const pt: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const pt_PT: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const pt: (n: number | string, ord?: boolean) => "one" | "many" | "other"; | ||
export const pt_PT: (n: number | string, ord?: boolean) => "one" | "many" | "other"; | ||
export const rm: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const ro: (n: number | string, ord?: boolean) => "one" | "few" | "other"; | ||
export const rof: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const root: (n: number | string, ord?: boolean) => "other"; | ||
export const ru: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other"; | ||
@@ -203,2 +201,3 @@ export const rwk: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const to: (n: number | string, ord?: boolean) => "other"; | ||
export const tpi: (n: number | string, ord?: boolean) => "other"; | ||
export const tr: (n: number | string, ord?: boolean) => "one" | "other"; | ||
@@ -209,2 +208,3 @@ export const ts: (n: number | string, ord?: boolean) => "one" | "other"; | ||
export const uk: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other"; | ||
export const und: (n: number | string, ord?: boolean) => "other"; | ||
export const ur: (n: number | string, ord?: boolean) => "one" | "other"; | ||
@@ -211,0 +211,0 @@ export const uz: (n: number | string, ord?: boolean) => "one" | "other"; |
@@ -32,4 +32,2 @@ const a = (n, ord) => { | ||
}(this, { | ||
_in: e, | ||
af: a, | ||
@@ -87,2 +85,4 @@ | ||
bal: (n, ord) => n == 1 ? 'one' : 'other', | ||
be: (n, ord) => { | ||
@@ -223,3 +223,9 @@ const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2); | ||
es: a, | ||
es: (n, ord) => { | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6); | ||
if (ord) return 'other'; | ||
return n == 1 ? 'one' | ||
: i != 0 && i1000000 == 0 && v0 ? 'many' | ||
: 'other'; | ||
}, | ||
@@ -328,2 +334,4 @@ et: d, | ||
hnj: e, | ||
hr: (n, ord) => { | ||
@@ -373,5 +381,7 @@ const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2); | ||
it: (n, ord) => { | ||
const s = String(n).split('.'), v0 = !s[1]; | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6); | ||
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other'; | ||
return n == 1 && v0 ? 'one' : 'other'; | ||
return n == 1 && v0 ? 'one' | ||
: i != 0 && i1000000 == 0 && v0 ? 'many' | ||
: 'other'; | ||
}, | ||
@@ -381,11 +391,2 @@ | ||
iw: (n, ord) => { | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1); | ||
if (ord) return 'other'; | ||
return n == 1 && v0 ? 'one' | ||
: i == 2 && v0 ? 'two' | ||
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many' | ||
: 'other'; | ||
}, | ||
ja: e, | ||
@@ -397,4 +398,2 @@ | ||
ji: d, | ||
jmc: a, | ||
@@ -640,8 +639,16 @@ | ||
pt: (n, ord) => { | ||
const s = String(n).split('.'), i = s[0]; | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6); | ||
if (ord) return 'other'; | ||
return (i == 0 || i == 1) ? 'one' : 'other'; | ||
return (i == 0 || i == 1) ? 'one' | ||
: i != 0 && i1000000 == 0 && v0 ? 'many' | ||
: 'other'; | ||
}, | ||
pt_PT: d, | ||
pt_PT: (n, ord) => { | ||
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6); | ||
if (ord) return 'other'; | ||
return n == 1 && v0 ? 'one' | ||
: i != 0 && i1000000 == 0 && v0 ? 'many' | ||
: 'other'; | ||
}, | ||
@@ -660,4 +667,2 @@ rm: a, | ||
root: e, | ||
ru: (n, ord) => { | ||
@@ -820,2 +825,4 @@ const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2); | ||
tpi: e, | ||
tr: a, | ||
@@ -842,2 +849,4 @@ | ||
und: e, | ||
ur: d, | ||
@@ -844,0 +853,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
300757
5109