@formatjs/intl-pluralrules 6.1.2 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstract/GetOperands.d.ts +37 -10
- package/abstract/GetOperands.js +11 -5
- package/abstract/InitializePluralRules.js +15 -0
- package/abstract/ResolvePlural.d.ts +31 -1
- package/abstract/ResolvePlural.js +64 -10
- package/abstract/ResolvePluralRange.d.ts +23 -0
- package/abstract/ResolvePluralRange.js +59 -0
- package/get_internal_slots.d.ts +0 -2
- package/index.d.ts +60 -2
- package/index.js +98 -4
- package/locale-data/af.js +14 -4
- package/locale-data/ak.js +14 -4
- package/locale-data/am.js +15 -4
- package/locale-data/an.js +14 -4
- package/locale-data/ar.js +22 -10
- package/locale-data/ars.js +21 -9
- package/locale-data/as.js +23 -8
- package/locale-data/asa.js +13 -3
- package/locale-data/ast.js +14 -4
- package/locale-data/az.js +21 -8
- package/locale-data/bal.js +15 -2
- package/locale-data/be.js +20 -8
- package/locale-data/bem.js +13 -3
- package/locale-data/bez.js +13 -3
- package/locale-data/bg.js +14 -4
- package/locale-data/bho.js +13 -3
- package/locale-data/bm.js +2 -2
- package/locale-data/bn.js +23 -8
- package/locale-data/bo.js +2 -2
- package/locale-data/br.js +19 -8
- package/locale-data/brx.js +13 -3
- package/locale-data/bs.js +18 -7
- package/locale-data/ca.js +25 -10
- package/locale-data/ce.js +13 -3
- package/locale-data/ceb.js +15 -4
- package/locale-data/cgg.js +13 -3
- package/locale-data/chr.js +13 -3
- package/locale-data/ckb.js +13 -3
- package/locale-data/cs.js +19 -8
- package/locale-data/cy.js +32 -14
- package/locale-data/da.js +17 -5
- package/locale-data/de.js +15 -5
- package/locale-data/doi.js +14 -3
- package/locale-data/dsb.js +19 -7
- package/locale-data/dv.js +13 -3
- package/locale-data/dz.js +2 -2
- package/locale-data/ee.js +13 -3
- package/locale-data/el.js +14 -4
- package/locale-data/en.js +22 -8
- package/locale-data/eo.js +13 -3
- package/locale-data/es.js +19 -7
- package/locale-data/et.js +15 -5
- package/locale-data/eu.js +14 -4
- package/locale-data/fa.js +15 -4
- package/locale-data/ff.js +13 -3
- package/locale-data/fi.js +15 -5
- package/locale-data/fil.js +19 -5
- package/locale-data/fo.js +13 -3
- package/locale-data/fr.js +21 -7
- package/locale-data/fur.js +13 -3
- package/locale-data/fy.js +14 -4
- package/locale-data/ga.js +22 -9
- package/locale-data/gd.js +23 -10
- package/locale-data/gl.js +15 -5
- package/locale-data/gsw.js +14 -4
- package/locale-data/gu.js +23 -8
- package/locale-data/guw.js +13 -3
- package/locale-data/gv.js +20 -8
- package/locale-data/ha.js +13 -3
- package/locale-data/haw.js +13 -3
- package/locale-data/he.js +17 -7
- package/locale-data/hi.js +23 -8
- package/locale-data/hnj.js +2 -2
- package/locale-data/hr.js +18 -7
- package/locale-data/hsb.js +19 -7
- package/locale-data/hu.js +16 -4
- package/locale-data/hy.js +17 -4
- package/locale-data/ia.js +15 -5
- package/locale-data/id.js +3 -3
- package/locale-data/ig.js +2 -2
- package/locale-data/ii.js +2 -2
- package/locale-data/io.js +15 -5
- package/locale-data/is.js +16 -5
- package/locale-data/it.js +21 -7
- package/locale-data/iu.js +15 -5
- package/locale-data/ja.js +3 -3
- package/locale-data/jbo.js +2 -2
- package/locale-data/jgo.js +13 -3
- package/locale-data/jmc.js +13 -3
- package/locale-data/jv.js +2 -2
- package/locale-data/jw.js +2 -2
- package/locale-data/ka.js +19 -7
- package/locale-data/kab.js +13 -3
- package/locale-data/kaj.js +13 -3
- package/locale-data/kcg.js +13 -3
- package/locale-data/kde.js +2 -2
- package/locale-data/kea.js +2 -2
- package/locale-data/kk.js +16 -5
- package/locale-data/kkj.js +13 -3
- package/locale-data/kl.js +13 -3
- package/locale-data/km.js +3 -3
- package/locale-data/kn.js +15 -4
- package/locale-data/ko.js +3 -3
- package/locale-data/ks.js +13 -3
- package/locale-data/ksb.js +13 -3
- package/locale-data/ksh.js +15 -5
- package/locale-data/ku.js +13 -3
- package/locale-data/kw.js +25 -11
- package/locale-data/ky.js +14 -4
- package/locale-data/lag.js +16 -6
- package/locale-data/lb.js +13 -3
- package/locale-data/lg.js +13 -3
- package/locale-data/lij.js +18 -5
- package/locale-data/lkt.js +2 -2
- package/locale-data/ln.js +13 -3
- package/locale-data/lo.js +14 -4
- package/locale-data/lt.js +20 -8
- package/locale-data/lv.js +18 -7
- package/locale-data/mas.js +13 -3
- package/locale-data/mg.js +13 -3
- package/locale-data/mgo.js +13 -3
- package/locale-data/mk.js +22 -8
- package/locale-data/ml.js +14 -4
- package/locale-data/mn.js +14 -4
- package/locale-data/mo.js +19 -6
- package/locale-data/mr.js +20 -7
- package/locale-data/ms.js +14 -4
- package/locale-data/mt.js +19 -8
- package/locale-data/my.js +3 -3
- package/locale-data/nah.js +13 -3
- package/locale-data/naq.js +15 -5
- package/locale-data/nb.js +14 -4
- package/locale-data/nd.js +13 -3
- package/locale-data/ne.js +16 -5
- package/locale-data/nl.js +15 -5
- package/locale-data/nn.js +13 -3
- package/locale-data/nnh.js +13 -3
- package/locale-data/no.js +14 -4
- package/locale-data/nqo.js +2 -2
- package/locale-data/nr.js +13 -3
- package/locale-data/nso.js +13 -3
- package/locale-data/ny.js +13 -3
- package/locale-data/nyn.js +13 -3
- package/locale-data/om.js +13 -3
- package/locale-data/or.js +22 -9
- package/locale-data/os.js +13 -3
- package/locale-data/osa.js +2 -2
- package/locale-data/pa.js +14 -4
- package/locale-data/pap.js +13 -3
- package/locale-data/pcm.js +15 -4
- package/locale-data/pl.js +19 -8
- package/locale-data/prg.js +17 -6
- package/locale-data/ps.js +14 -4
- package/locale-data/pt-PT.js +17 -6
- package/locale-data/pt.js +18 -7
- package/locale-data/rm.js +13 -3
- package/locale-data/ro.js +20 -7
- package/locale-data/rof.js +13 -3
- package/locale-data/ru.js +19 -8
- package/locale-data/rwk.js +13 -3
- package/locale-data/sah.js +2 -2
- package/locale-data/saq.js +13 -3
- package/locale-data/sat.js +15 -5
- package/locale-data/sc.js +18 -5
- package/locale-data/scn.js +21 -7
- package/locale-data/sd.js +14 -4
- package/locale-data/sdh.js +13 -3
- package/locale-data/se.js +15 -5
- package/locale-data/seh.js +13 -3
- package/locale-data/ses.js +2 -2
- package/locale-data/sg.js +2 -2
- package/locale-data/sh.js +17 -6
- package/locale-data/shi.js +16 -6
- package/locale-data/si.js +17 -5
- package/locale-data/sk.js +19 -8
- package/locale-data/sl.js +19 -8
- package/locale-data/sma.js +15 -5
- package/locale-data/smi.js +15 -5
- package/locale-data/smj.js +15 -5
- package/locale-data/smn.js +15 -5
- package/locale-data/sms.js +15 -5
- package/locale-data/sn.js +13 -3
- package/locale-data/so.js +13 -3
- package/locale-data/sq.js +18 -7
- package/locale-data/sr.js +18 -7
- package/locale-data/ss.js +13 -3
- package/locale-data/ssy.js +13 -3
- package/locale-data/st.js +13 -3
- package/locale-data/su.js +2 -2
- package/locale-data/sv.js +18 -5
- package/locale-data/sw.js +15 -5
- package/locale-data/syr.js +13 -3
- package/locale-data/ta.js +14 -4
- package/locale-data/te.js +14 -4
- package/locale-data/teo.js +13 -3
- package/locale-data/th.js +3 -3
- package/locale-data/ti.js +13 -3
- package/locale-data/tig.js +13 -3
- package/locale-data/tk.js +16 -5
- package/locale-data/tl.js +18 -4
- package/locale-data/tn.js +13 -3
- package/locale-data/to.js +2 -2
- package/locale-data/tpi.js +2 -2
- package/locale-data/tr.js +14 -4
- package/locale-data/ts.js +13 -3
- package/locale-data/tzm.js +13 -4
- package/locale-data/ug.js +14 -4
- package/locale-data/uk.js +22 -8
- package/locale-data/und.js +2 -2
- package/locale-data/ur.js +15 -5
- package/locale-data/uz.js +14 -4
- package/locale-data/ve.js +13 -3
- package/locale-data/vi.js +14 -4
- package/locale-data/vo.js +13 -3
- package/locale-data/vun.js +13 -3
- package/locale-data/wa.js +13 -3
- package/locale-data/wae.js +13 -3
- package/locale-data/wo.js +2 -2
- package/locale-data/xh.js +13 -3
- package/locale-data/xog.js +13 -3
- package/locale-data/yi.js +14 -4
- package/locale-data/yo.js +2 -2
- package/locale-data/yue.js +3 -3
- package/locale-data/zh.js +3 -3
- package/locale-data/zu.js +15 -4
- package/package.json +7 -7
- package/polyfill.iife.js +238 -16
package/locale-data/fr.js
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["many","one","other"],"ordinal":["one","other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
11
|
+
const v = decimalPart.length;
|
|
12
|
+
const e = exponent;
|
|
13
|
+
if (isOrdinal) {
|
|
14
|
+
if (n === 1)
|
|
15
|
+
return "one";
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
if (e === 0 && i !== 0 && (i % 1000000) === 0 && v === 0 || (e < 0 || e > 5))
|
|
19
|
+
return "many";
|
|
20
|
+
if ((i === 0 || i === 1))
|
|
21
|
+
return "one";
|
|
22
|
+
}
|
|
23
|
+
return "other";
|
|
24
|
+
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"fr"})
|
|
11
25
|
}
|
package/locale-data/fur.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
if (isOrdinal) {
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if (n === 1)
|
|
14
|
+
return "one";
|
|
15
|
+
}
|
|
16
|
+
return "other";
|
|
7
17
|
}},"locale":"fur"})
|
|
8
18
|
}
|
package/locale-data/fy.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
10
|
+
const v = decimalPart.length;
|
|
11
|
+
if (isOrdinal) {
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
if (i === 1 && v === 0)
|
|
15
|
+
return "one";
|
|
16
|
+
}
|
|
17
|
+
return "other";
|
|
8
18
|
}},"locale":"fy"})
|
|
9
19
|
}
|
package/locale-data/ga.js
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["few","many","one","other","two"],"ordinal":["one","other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
if (isOrdinal) {
|
|
11
|
+
if (n === 1)
|
|
12
|
+
return "one";
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
if ((n >= 3 && n <= 6))
|
|
16
|
+
return "few";
|
|
17
|
+
if ((n >= 7 && n <= 10))
|
|
18
|
+
return "many";
|
|
19
|
+
if (n === 1)
|
|
20
|
+
return "one";
|
|
21
|
+
if (n === 2)
|
|
22
|
+
return "two";
|
|
23
|
+
}
|
|
24
|
+
return "other";
|
|
25
|
+
},"pluralRanges":{"cardinal":{"few_few":"few","few_many":"many","few_other":"other","many_many":"many","many_other":"other","one_few":"few","one_many":"many","one_other":"other","one_two":"two","other_few":"few","other_many":"many","other_one":"one","other_other":"other","other_two":"two","two_few":"few","two_many":"many","two_other":"other"},"ordinal":{}}},"locale":"ga"})
|
|
13
26
|
}
|
package/locale-data/gd.js
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["few","one","other","two"],"ordinal":["few","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
if (isOrdinal) {
|
|
11
|
+
if ((n === 3 || n === 13))
|
|
12
|
+
return "few";
|
|
13
|
+
if ((n === 1 || n === 11))
|
|
14
|
+
return "one";
|
|
15
|
+
if ((n === 2 || n === 12))
|
|
16
|
+
return "two";
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
if (((n >= 3 && n <= 10) || (n >= 13 && n <= 19)))
|
|
20
|
+
return "few";
|
|
21
|
+
if ((n === 1 || n === 11))
|
|
22
|
+
return "one";
|
|
23
|
+
if ((n === 2 || n === 12))
|
|
24
|
+
return "two";
|
|
25
|
+
}
|
|
26
|
+
return "other";
|
|
14
27
|
}},"locale":"gd"})
|
|
15
28
|
}
|
package/locale-data/gl.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
10
|
+
const v = decimalPart.length;
|
|
11
|
+
if (isOrdinal) {
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
if (i === 1 && v === 0)
|
|
15
|
+
return "one";
|
|
16
|
+
}
|
|
17
|
+
return "other";
|
|
18
|
+
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"gl"})
|
|
9
19
|
}
|
package/locale-data/gsw.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
if (isOrdinal) {
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if (n === 1)
|
|
14
|
+
return "one";
|
|
15
|
+
}
|
|
16
|
+
return "other";
|
|
17
|
+
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"gsw"})
|
|
8
18
|
}
|
package/locale-data/gu.js
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","many","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
11
|
+
if (isOrdinal) {
|
|
12
|
+
if (n === 4)
|
|
13
|
+
return "few";
|
|
14
|
+
if (n === 6)
|
|
15
|
+
return "many";
|
|
16
|
+
if (n === 1)
|
|
17
|
+
return "one";
|
|
18
|
+
if ((n === 2 || n === 3))
|
|
19
|
+
return "two";
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
if (i === 0 || n === 1)
|
|
23
|
+
return "one";
|
|
24
|
+
}
|
|
25
|
+
return "other";
|
|
26
|
+
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"gu"})
|
|
12
27
|
}
|
package/locale-data/guw.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
if (isOrdinal) {
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if ((n >= 0 && n <= 1))
|
|
14
|
+
return "one";
|
|
15
|
+
}
|
|
16
|
+
return "other";
|
|
7
17
|
}},"locale":"guw"})
|
|
8
18
|
}
|
package/locale-data/gv.js
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["few","many","one","other","two"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
10
|
+
const v = decimalPart.length;
|
|
11
|
+
if (isOrdinal) {
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
if (v === 0 && (((((i % 100) === 0 || (i % 100) === 20) || (i % 100) === 40) || (i % 100) === 60) || (i % 100) === 80))
|
|
15
|
+
return "few";
|
|
16
|
+
if (v !== 0)
|
|
17
|
+
return "many";
|
|
18
|
+
if (v === 0 && (i % 10) === 1)
|
|
19
|
+
return "one";
|
|
20
|
+
if (v === 0 && (i % 10) === 2)
|
|
21
|
+
return "two";
|
|
22
|
+
}
|
|
23
|
+
return "other";
|
|
12
24
|
}},"locale":"gv"})
|
|
13
25
|
}
|
package/locale-data/ha.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
if (isOrdinal) {
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if (n === 1)
|
|
14
|
+
return "one";
|
|
15
|
+
}
|
|
16
|
+
return "other";
|
|
7
17
|
}},"locale":"ha"})
|
|
8
18
|
}
|
package/locale-data/haw.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
if (isOrdinal) {
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if (n === 1)
|
|
14
|
+
return "one";
|
|
15
|
+
}
|
|
16
|
+
return "other";
|
|
7
17
|
}},"locale":"haw"})
|
|
8
18
|
}
|
package/locale-data/he.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other","two"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
10
|
+
const v = decimalPart.length;
|
|
11
|
+
if (isOrdinal) {
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
if (i === 1 && v === 0 || i === 0 && v !== 0)
|
|
15
|
+
return "one";
|
|
16
|
+
if (i === 2 && v === 0)
|
|
17
|
+
return "two";
|
|
18
|
+
}
|
|
19
|
+
return "other";
|
|
20
|
+
},"pluralRanges":{"cardinal":{"one_other":"other","one_two":"other","other_one":"other","other_other":"other","other_two":"other","two_other":"other"},"ordinal":{}}},"locale":"he"})
|
|
11
21
|
}
|
package/locale-data/hi.js
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","many","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
11
|
+
if (isOrdinal) {
|
|
12
|
+
if (n === 4)
|
|
13
|
+
return "few";
|
|
14
|
+
if (n === 6)
|
|
15
|
+
return "many";
|
|
16
|
+
if (n === 1)
|
|
17
|
+
return "one";
|
|
18
|
+
if ((n === 2 || n === 3))
|
|
19
|
+
return "two";
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
if (i === 0 || n === 1)
|
|
23
|
+
return "one";
|
|
24
|
+
}
|
|
25
|
+
return "other";
|
|
26
|
+
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"hi"})
|
|
12
27
|
}
|
package/locale-data/hnj.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
return "other";
|
|
6
6
|
}},"locale":"hnj"})
|
|
7
7
|
}
|
package/locale-data/hr.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["few","one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
10
|
+
const v = decimalPart.length;
|
|
11
|
+
const f = v > 0 ? parseInt(decimalPart, 10) : 0;
|
|
12
|
+
if (isOrdinal) {
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
if (v === 0 && ((i % 10) >= 2 && (i % 10) <= 4) && ((i % 100) < 12 || (i % 100) > 14) || ((f % 10) >= 2 && (f % 10) <= 4) && ((f % 100) < 12 || (f % 100) > 14))
|
|
16
|
+
return "few";
|
|
17
|
+
if (v === 0 && (i % 10) === 1 && (i % 100) !== 11 || (f % 10) === 1 && (f % 100) !== 11)
|
|
18
|
+
return "one";
|
|
19
|
+
}
|
|
20
|
+
return "other";
|
|
21
|
+
},"pluralRanges":{"cardinal":{"few_few":"few","few_one":"one","few_other":"other","one_few":"few","one_one":"one","one_other":"other","other_few":"few","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"hr"})
|
|
11
22
|
}
|
package/locale-data/hsb.js
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["few","one","other","two"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
10
|
+
const v = decimalPart.length;
|
|
11
|
+
const f = v > 0 ? parseInt(decimalPart, 10) : 0;
|
|
12
|
+
if (isOrdinal) {
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
if (v === 0 && ((i % 100) >= 3 && (i % 100) <= 4) || ((f % 100) >= 3 && (f % 100) <= 4))
|
|
16
|
+
return "few";
|
|
17
|
+
if (v === 0 && (i % 100) === 1 || (f % 100) === 1)
|
|
18
|
+
return "one";
|
|
19
|
+
if (v === 0 && (i % 100) === 2 || (f % 100) === 2)
|
|
20
|
+
return "two";
|
|
21
|
+
}
|
|
22
|
+
return "other";
|
|
11
23
|
}},"locale":"hsb"})
|
|
12
24
|
}
|
package/locale-data/hu.js
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
if (isOrdinal) {
|
|
11
|
+
if ((n === 1 || n === 5))
|
|
12
|
+
return "one";
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
if (n === 1)
|
|
16
|
+
return "one";
|
|
17
|
+
}
|
|
18
|
+
return "other";
|
|
19
|
+
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"hu"})
|
|
8
20
|
}
|
package/locale-data/hy.js
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const n = Math.abs(parseFloat(numStr));
|
|
10
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
11
|
+
if (isOrdinal) {
|
|
12
|
+
if (n === 1)
|
|
13
|
+
return "one";
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
if ((i === 0 || i === 1))
|
|
17
|
+
return "one";
|
|
18
|
+
}
|
|
19
|
+
return "other";
|
|
20
|
+
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"hy"})
|
|
8
21
|
}
|
package/locale-data/ia.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
const numStr = String(num);
|
|
6
|
+
const parts = numStr.split(".");
|
|
7
|
+
const integerPart = parts[0];
|
|
8
|
+
const decimalPart = parts[1] || "";
|
|
9
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
10
|
+
const v = decimalPart.length;
|
|
11
|
+
if (isOrdinal) {
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
if (i === 1 && v === 0)
|
|
15
|
+
return "one";
|
|
16
|
+
}
|
|
17
|
+
return "other";
|
|
18
|
+
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"ia"})
|
|
9
19
|
}
|
package/locale-data/id.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
6
|
-
}},"locale":"id"})
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
return "other";
|
|
6
|
+
},"pluralRanges":{"cardinal":{"other_other":"other"},"ordinal":{}}},"locale":"id"})
|
|
7
7
|
}
|
package/locale-data/ig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
return "other";
|
|
6
6
|
}},"locale":"ig"})
|
|
7
7
|
}
|
package/locale-data/ii.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(
|
|
5
|
-
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
|
+
return "other";
|
|
6
6
|
}},"locale":"ii"})
|
|
7
7
|
}
|