@formatjs/intl-pluralrules 7.0.2 → 7.0.4
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/locale-data/af.js +8 -30
- package/locale-data/ak.js +8 -19
- package/locale-data/am.js +8 -20
- package/locale-data/an.js +8 -19
- package/locale-data/ar.js +8 -35
- package/locale-data/ars.js +8 -35
- package/locale-data/as.js +8 -28
- package/locale-data/asa.js +8 -19
- package/locale-data/ast.js +8 -20
- package/locale-data/az.js +8 -34
- package/locale-data/bal.js +8 -21
- package/locale-data/be.js +8 -33
- package/locale-data/bem.js +8 -19
- package/locale-data/bez.js +8 -19
- package/locale-data/bg.js +8 -34
- package/locale-data/bho.js +8 -19
- package/locale-data/blo.js +8 -28
- package/locale-data/bm.js +8 -8
- package/locale-data/bn.js +8 -28
- package/locale-data/bo.js +8 -8
- package/locale-data/br.js +8 -33
- package/locale-data/brx.js +8 -19
- package/locale-data/bs.js +8 -31
- package/locale-data/ca.js +8 -38
- package/locale-data/ce.js +8 -19
- package/locale-data/ceb.js +8 -29
- package/locale-data/cgg.js +8 -19
- package/locale-data/chr.js +8 -19
- package/locale-data/ckb.js +8 -19
- package/locale-data/cs.js +8 -24
- package/locale-data/csw.js +8 -19
- package/locale-data/cv.js +8 -21
- package/locale-data/cy.js +8 -37
- package/locale-data/da.js +8 -22
- package/locale-data/de.js +8 -20
- package/locale-data/doi.js +8 -20
- package/locale-data/dsb.js +8 -33
- package/locale-data/dv.js +8 -19
- package/locale-data/dz.js +8 -8
- package/locale-data/ee.js +8 -19
- package/locale-data/el.js +8 -19
- package/locale-data/en.js +8 -35
- package/locale-data/eo.js +8 -19
- package/locale-data/es.js +8 -34
- package/locale-data/et.js +8 -20
- package/locale-data/eu.js +8 -19
- package/locale-data/fa.js +8 -20
- package/locale-data/ff.js +8 -19
- package/locale-data/fi.js +8 -20
- package/locale-data/fil.js +8 -32
- package/locale-data/fo.js +8 -19
- package/locale-data/fr.js +8 -34
- package/locale-data/fur.js +8 -19
- package/locale-data/fy.js +8 -20
- package/locale-data/ga.js +8 -27
- package/locale-data/gd.js +8 -29
- package/locale-data/gl.js +8 -31
- package/locale-data/gsw.js +8 -19
- package/locale-data/gu.js +8 -28
- package/locale-data/guw.js +8 -19
- package/locale-data/gv.js +8 -34
- package/locale-data/ha.js +8 -19
- package/locale-data/haw.js +8 -19
- package/locale-data/he.js +8 -22
- package/locale-data/hi.js +8 -28
- package/locale-data/hnj.js +8 -8
- package/locale-data/hr.js +8 -31
- package/locale-data/hsb.js +8 -33
- package/locale-data/hu.js +8 -21
- package/locale-data/hy.js +8 -22
- package/locale-data/ia.js +8 -20
- package/locale-data/id.js +8 -8
- package/locale-data/ie.js +8 -20
- package/locale-data/ig.js +8 -8
- package/locale-data/ii.js +8 -8
- package/locale-data/io.js +8 -20
- package/locale-data/is.js +8 -29
- package/locale-data/it.js +8 -34
- package/locale-data/iu.js +8 -21
- package/locale-data/ja.js +8 -8
- package/locale-data/jbo.js +8 -8
- package/locale-data/jgo.js +8 -19
- package/locale-data/jmc.js +8 -19
- package/locale-data/jv.js +8 -8
- package/locale-data/jw.js +8 -8
- package/locale-data/ka.js +8 -32
- package/locale-data/kab.js +8 -19
- package/locale-data/kaj.js +8 -19
- package/locale-data/kcg.js +8 -19
- package/locale-data/kde.js +8 -8
- package/locale-data/kea.js +8 -8
- package/locale-data/kk.js +8 -29
- package/locale-data/kkj.js +8 -19
- package/locale-data/kl.js +8 -19
- package/locale-data/km.js +8 -8
- package/locale-data/kn.js +8 -20
- package/locale-data/ko.js +8 -8
- package/locale-data/kok-Latn.js +8 -26
- package/locale-data/kok.js +8 -26
- package/locale-data/ks.js +8 -19
- package/locale-data/ksb.js +8 -19
- package/locale-data/ksh.js +8 -21
- package/locale-data/ku.js +8 -19
- package/locale-data/kw.js +8 -39
- package/locale-data/ky.js +8 -19
- package/locale-data/lag.js +8 -22
- package/locale-data/lb.js +8 -19
- package/locale-data/lg.js +8 -19
- package/locale-data/lij.js +8 -23
- package/locale-data/lkt.js +8 -8
- package/locale-data/lld.js +8 -34
- package/locale-data/ln.js +8 -19
- package/locale-data/lo.js +8 -19
- package/locale-data/lt.js +8 -33
- package/locale-data/lv.js +8 -31
- package/locale-data/mas.js +8 -19
- package/locale-data/mg.js +8 -19
- package/locale-data/mgo.js +8 -19
- package/locale-data/mk.js +8 -35
- package/locale-data/ml.js +8 -19
- package/locale-data/mn.js +8 -19
- package/locale-data/mo.js +8 -33
- package/locale-data/mr.js +8 -25
- package/locale-data/ms.js +8 -19
- package/locale-data/mt.js +8 -33
- package/locale-data/my.js +8 -8
- package/locale-data/nah.js +8 -19
- package/locale-data/naq.js +8 -21
- package/locale-data/nb.js +8 -19
- package/locale-data/nd.js +8 -19
- package/locale-data/ne.js +8 -21
- package/locale-data/nl.js +8 -20
- package/locale-data/nn.js +8 -19
- package/locale-data/nnh.js +8 -19
- package/locale-data/no.js +8 -19
- package/locale-data/nqo.js +8 -8
- package/locale-data/nr.js +8 -19
- package/locale-data/nso.js +8 -19
- package/locale-data/ny.js +8 -19
- package/locale-data/nyn.js +8 -19
- package/locale-data/om.js +8 -19
- package/locale-data/or.js +8 -27
- package/locale-data/os.js +8 -19
- package/locale-data/osa.js +8 -8
- package/locale-data/pa.js +8 -19
- package/locale-data/pap.js +8 -19
- package/locale-data/pcm.js +8 -20
- package/locale-data/pl.js +8 -32
- package/locale-data/prg.js +8 -31
- package/locale-data/ps.js +8 -19
- package/locale-data/pt-PT.js +8 -31
- package/locale-data/pt.js +8 -31
- package/locale-data/rm.js +8 -19
- package/locale-data/ro.js +8 -33
- package/locale-data/rof.js +8 -19
- package/locale-data/ru.js +8 -32
- package/locale-data/rwk.js +8 -19
- package/locale-data/sah.js +8 -8
- package/locale-data/saq.js +8 -19
- package/locale-data/sat.js +8 -21
- package/locale-data/sc.js +8 -23
- package/locale-data/scn.js +8 -34
- package/locale-data/sd.js +8 -19
- package/locale-data/sdh.js +8 -19
- package/locale-data/se.js +8 -21
- package/locale-data/seh.js +8 -19
- package/locale-data/ses.js +8 -8
- package/locale-data/sg.js +8 -8
- package/locale-data/sgs.js +8 -35
- package/locale-data/sh.js +8 -31
- package/locale-data/shi.js +8 -22
- package/locale-data/si.js +8 -22
- package/locale-data/sk.js +8 -24
- package/locale-data/sl.js +8 -32
- package/locale-data/sma.js +8 -21
- package/locale-data/smi.js +8 -21
- package/locale-data/smj.js +8 -21
- package/locale-data/smn.js +8 -21
- package/locale-data/sms.js +8 -21
- package/locale-data/sn.js +8 -19
- package/locale-data/so.js +8 -19
- package/locale-data/sq.js +8 -31
- package/locale-data/sr.js +8 -31
- package/locale-data/ss.js +8 -19
- package/locale-data/ssy.js +8 -19
- package/locale-data/st.js +8 -19
- package/locale-data/su.js +8 -8
- package/locale-data/sv.js +8 -31
- package/locale-data/sw.js +8 -20
- package/locale-data/syr.js +8 -19
- package/locale-data/ta.js +8 -19
- package/locale-data/te.js +8 -19
- package/locale-data/teo.js +8 -19
- package/locale-data/tg.js +8 -20
- package/locale-data/th.js +8 -8
- package/locale-data/ti.js +8 -19
- package/locale-data/tig.js +8 -19
- package/locale-data/tk.js +8 -29
- package/locale-data/tl.js +8 -32
- package/locale-data/tn.js +8 -19
- package/locale-data/to.js +8 -8
- package/locale-data/tpi.js +8 -8
- package/locale-data/tr.js +8 -19
- package/locale-data/ts.js +8 -19
- package/locale-data/tzm.js +8 -19
- package/locale-data/ug.js +8 -19
- package/locale-data/uk.js +8 -35
- package/locale-data/und.js +8 -8
- package/locale-data/ur.js +8 -20
- package/locale-data/uz.js +8 -19
- package/locale-data/ve.js +8 -19
- package/locale-data/vec.js +8 -34
- package/locale-data/vi.js +8 -22
- package/locale-data/vo.js +8 -19
- package/locale-data/vun.js +8 -19
- package/locale-data/wa.js +8 -19
- package/locale-data/wae.js +8 -19
- package/locale-data/wo.js +8 -8
- package/locale-data/xh.js +8 -19
- package/locale-data/xog.js +8 -19
- package/locale-data/yi.js +8 -20
- package/locale-data/yo.js +8 -8
- package/locale-data/yue.js +8 -8
- package/locale-data/zh.js +8 -8
- package/locale-data/zu.js +8 -20
- package/package.json +7 -1
package/locale-data/bg.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
function modDigits(digits, divisor) {
|
|
6
11
|
let value = 0;
|
|
7
12
|
for (let index = 0; index < digits.length; index++) {
|
|
@@ -29,35 +34,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
29
34
|
return "one";
|
|
30
35
|
}
|
|
31
36
|
return "other";
|
|
32
|
-
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"bg"})
|
|
33
|
-
} else {
|
|
34
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
35
|
-
function modDigits(digits, divisor) {
|
|
36
|
-
let value = 0;
|
|
37
|
-
for (let index = 0; index < digits.length; index++) {
|
|
38
|
-
const digit = digits.charCodeAt(index) - 48;
|
|
39
|
-
if (digit >= 0 && digit <= 9) value = (value * 10 + digit) % divisor;
|
|
40
|
-
}
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
const numStr = String(num);
|
|
44
|
-
const parts = numStr.split(".");
|
|
45
|
-
const integerPart = parts[0];
|
|
46
|
-
const decimalPart = parts[1] || "";
|
|
47
|
-
const n = Math.abs(parseFloat(numStr));
|
|
48
|
-
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
49
|
-
if (isOrdinal) {
|
|
50
|
-
if (modDigits(integerPart, 10) === 1 && modDigits(integerPart, 100) !== 11)
|
|
51
|
-
return "one";
|
|
52
|
-
if (modDigits(integerPart, 10) === 2 && modDigits(integerPart, 100) !== 12)
|
|
53
|
-
return "two";
|
|
54
|
-
if ((modDigits(integerPart, 10) === 3 || modDigits(integerPart, 10) === 4) && (modDigits(integerPart, 100) !== 13 && modDigits(integerPart, 100) !== 14))
|
|
55
|
-
return "few";
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
if ((!/[1-9]/.test(decimalPart) && n === 1))
|
|
59
|
-
return "one";
|
|
60
|
-
}
|
|
61
|
-
return "other";
|
|
62
|
-
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"bg"})
|
|
63
|
-
}
|
|
37
|
+
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"bg"});
|
package/locale-data/bho.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
const numStr = String(num);
|
|
6
11
|
const parts = numStr.split(".");
|
|
7
12
|
const integerPart = parts[0];
|
|
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
14
19
|
return "one";
|
|
15
20
|
}
|
|
16
21
|
return "other";
|
|
17
|
-
}},"locale":"bho"})
|
|
18
|
-
} else {
|
|
19
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
20
|
-
const numStr = String(num);
|
|
21
|
-
const parts = numStr.split(".");
|
|
22
|
-
const integerPart = parts[0];
|
|
23
|
-
const decimalPart = parts[1] || "";
|
|
24
|
-
const n = Math.abs(parseFloat(numStr));
|
|
25
|
-
if (isOrdinal) {
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
if ((!/[1-9]/.test(decimalPart) && (n >= 0 && n <= 1)))
|
|
29
|
-
return "one";
|
|
30
|
-
}
|
|
31
|
-
return "other";
|
|
32
|
-
}},"locale":"bho"})
|
|
33
|
-
}
|
|
22
|
+
}},"locale":"bho"});
|
package/locale-data/blo.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other","zero"],"ordinal":["few","one","other","zero"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
const numStr = String(num);
|
|
6
11
|
const parts = numStr.split(".");
|
|
7
12
|
const integerPart = parts[0];
|
|
@@ -23,29 +28,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
23
28
|
return "one";
|
|
24
29
|
}
|
|
25
30
|
return "other";
|
|
26
|
-
}},"locale":"blo"})
|
|
27
|
-
} else {
|
|
28
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other","zero"],"ordinal":["few","one","other","zero"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
29
|
-
const numStr = String(num);
|
|
30
|
-
const parts = numStr.split(".");
|
|
31
|
-
const integerPart = parts[0];
|
|
32
|
-
const decimalPart = parts[1] || "";
|
|
33
|
-
const n = Math.abs(parseFloat(numStr));
|
|
34
|
-
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
35
|
-
if (isOrdinal) {
|
|
36
|
-
if (i === 0)
|
|
37
|
-
return "zero";
|
|
38
|
-
if (i === 1)
|
|
39
|
-
return "one";
|
|
40
|
-
if (((((i === 2 || i === 3) || i === 4) || i === 5) || i === 6))
|
|
41
|
-
return "few";
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
if ((!/[1-9]/.test(decimalPart) && n === 0))
|
|
45
|
-
return "zero";
|
|
46
|
-
if ((!/[1-9]/.test(decimalPart) && n === 1))
|
|
47
|
-
return "one";
|
|
48
|
-
}
|
|
49
|
-
return "other";
|
|
50
|
-
}},"locale":"blo"})
|
|
51
|
-
}
|
|
31
|
+
}},"locale":"blo"});
|
package/locale-data/bm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
return "other";
|
|
6
|
-
}},"locale":"bm"})
|
|
7
|
-
} else {
|
|
8
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
9
|
-
return "other";
|
|
10
|
-
}},"locale":"bm"})
|
|
11
|
-
}
|
|
11
|
+
}},"locale":"bm"});
|
package/locale-data/bn.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","many","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
const numStr = String(num);
|
|
6
11
|
const parts = numStr.split(".");
|
|
7
12
|
const integerPart = parts[0];
|
|
@@ -23,29 +28,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
23
28
|
return "one";
|
|
24
29
|
}
|
|
25
30
|
return "other";
|
|
26
|
-
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"bn"})
|
|
27
|
-
} else {
|
|
28
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","many","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
29
|
-
const numStr = String(num);
|
|
30
|
-
const parts = numStr.split(".");
|
|
31
|
-
const integerPart = parts[0];
|
|
32
|
-
const decimalPart = parts[1] || "";
|
|
33
|
-
const n = Math.abs(parseFloat(numStr));
|
|
34
|
-
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
35
|
-
if (isOrdinal) {
|
|
36
|
-
if ((!/[1-9]/.test(decimalPart) && (((((n === 1 || n === 5) || n === 7) || n === 8) || n === 9) || n === 10)))
|
|
37
|
-
return "one";
|
|
38
|
-
if ((!/[1-9]/.test(decimalPart) && (n === 2 || n === 3)))
|
|
39
|
-
return "two";
|
|
40
|
-
if ((!/[1-9]/.test(decimalPart) && n === 4))
|
|
41
|
-
return "few";
|
|
42
|
-
if ((!/[1-9]/.test(decimalPart) && n === 6))
|
|
43
|
-
return "many";
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
if (i === 0 || (!/[1-9]/.test(decimalPart) && n === 1))
|
|
47
|
-
return "one";
|
|
48
|
-
}
|
|
49
|
-
return "other";
|
|
50
|
-
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"bn"})
|
|
51
|
-
}
|
|
31
|
+
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"bn"});
|
package/locale-data/bo.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
return "other";
|
|
6
|
-
}},"locale":"bo"})
|
|
7
|
-
} else {
|
|
8
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
9
|
-
return "other";
|
|
10
|
-
}},"locale":"bo"})
|
|
11
|
-
}
|
|
11
|
+
}},"locale":"bo"});
|
package/locale-data/br.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["few","many","one","other","two"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
function modDigits(digits, divisor) {
|
|
6
11
|
let value = 0;
|
|
7
12
|
for (let index = 0; index < digits.length; index++) {
|
|
@@ -28,34 +33,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
28
33
|
return "many";
|
|
29
34
|
}
|
|
30
35
|
return "other";
|
|
31
|
-
}},"locale":"br"})
|
|
32
|
-
} else {
|
|
33
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["few","many","one","other","two"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
34
|
-
function modDigits(digits, divisor) {
|
|
35
|
-
let value = 0;
|
|
36
|
-
for (let index = 0; index < digits.length; index++) {
|
|
37
|
-
const digit = digits.charCodeAt(index) - 48;
|
|
38
|
-
if (digit >= 0 && digit <= 9) value = (value * 10 + digit) % divisor;
|
|
39
|
-
}
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
const numStr = String(num);
|
|
43
|
-
const parts = numStr.split(".");
|
|
44
|
-
const integerPart = parts[0];
|
|
45
|
-
const decimalPart = parts[1] || "";
|
|
46
|
-
const n = Math.abs(parseFloat(numStr));
|
|
47
|
-
if (isOrdinal) {
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
if ((!/[1-9]/.test(decimalPart) && modDigits(integerPart, 10) === 1) && (/[1-9]/.test(decimalPart) || ((modDigits(integerPart, 100) !== 11 && modDigits(integerPart, 100) !== 71) && modDigits(integerPart, 100) !== 91)))
|
|
51
|
-
return "one";
|
|
52
|
-
if ((!/[1-9]/.test(decimalPart) && modDigits(integerPart, 10) === 2) && (/[1-9]/.test(decimalPart) || ((modDigits(integerPart, 100) !== 12 && modDigits(integerPart, 100) !== 72) && modDigits(integerPart, 100) !== 92)))
|
|
53
|
-
return "two";
|
|
54
|
-
if ((!/[1-9]/.test(decimalPart) && ((modDigits(integerPart, 10) >= 3 && modDigits(integerPart, 10) <= 4) || modDigits(integerPart, 10) === 9)) && (/[1-9]/.test(decimalPart) || (((modDigits(integerPart, 100) < 10 || modDigits(integerPart, 100) > 19) && (modDigits(integerPart, 100) < 70 || modDigits(integerPart, 100) > 79)) && (modDigits(integerPart, 100) < 90 || modDigits(integerPart, 100) > 99))))
|
|
55
|
-
return "few";
|
|
56
|
-
if ((/[1-9]/.test(decimalPart) || n !== 0) && (!/[1-9]/.test(decimalPart) && modDigits(integerPart, 1000000) === 0))
|
|
57
|
-
return "many";
|
|
58
|
-
}
|
|
59
|
-
return "other";
|
|
60
|
-
}},"locale":"br"})
|
|
61
|
-
}
|
|
36
|
+
}},"locale":"br"});
|
package/locale-data/brx.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
const numStr = String(num);
|
|
6
11
|
const parts = numStr.split(".");
|
|
7
12
|
const integerPart = parts[0];
|
|
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
14
19
|
return "one";
|
|
15
20
|
}
|
|
16
21
|
return "other";
|
|
17
|
-
}},"locale":"brx"})
|
|
18
|
-
} else {
|
|
19
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
20
|
-
const numStr = String(num);
|
|
21
|
-
const parts = numStr.split(".");
|
|
22
|
-
const integerPart = parts[0];
|
|
23
|
-
const decimalPart = parts[1] || "";
|
|
24
|
-
const n = Math.abs(parseFloat(numStr));
|
|
25
|
-
if (isOrdinal) {
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
if ((!/[1-9]/.test(decimalPart) && n === 1))
|
|
29
|
-
return "one";
|
|
30
|
-
}
|
|
31
|
-
return "other";
|
|
32
|
-
}},"locale":"brx"})
|
|
33
|
-
}
|
|
22
|
+
}},"locale":"brx"});
|
package/locale-data/bs.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["few","one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
function modDigits(digits, divisor) {
|
|
6
11
|
let value = 0;
|
|
7
12
|
for (let index = 0; index < digits.length; index++) {
|
|
@@ -26,32 +31,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
26
31
|
return "few";
|
|
27
32
|
}
|
|
28
33
|
return "other";
|
|
29
|
-
},"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":"bs"})
|
|
30
|
-
} else {
|
|
31
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["few","one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
32
|
-
function modDigits(digits, divisor) {
|
|
33
|
-
let value = 0;
|
|
34
|
-
for (let index = 0; index < digits.length; index++) {
|
|
35
|
-
const digit = digits.charCodeAt(index) - 48;
|
|
36
|
-
if (digit >= 0 && digit <= 9) value = (value * 10 + digit) % divisor;
|
|
37
|
-
}
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
const numStr = String(num);
|
|
41
|
-
const parts = numStr.split(".");
|
|
42
|
-
const integerPart = parts[0];
|
|
43
|
-
const decimalPart = parts[1] || "";
|
|
44
|
-
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
45
|
-
const v = decimalPart.length;
|
|
46
|
-
const f = v > 0 ? parseInt(decimalPart, 10) : 0;
|
|
47
|
-
if (isOrdinal) {
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
if (v === 0 && modDigits(integerPart, 10) === 1 && modDigits(integerPart, 100) !== 11 || modDigits(decimalPart, 10) === 1 && modDigits(decimalPart, 100) !== 11)
|
|
51
|
-
return "one";
|
|
52
|
-
if (v === 0 && (modDigits(integerPart, 10) >= 2 && modDigits(integerPart, 10) <= 4) && (modDigits(integerPart, 100) < 12 || modDigits(integerPart, 100) > 14) || (modDigits(decimalPart, 10) >= 2 && modDigits(decimalPart, 10) <= 4) && (modDigits(decimalPart, 100) < 12 || modDigits(decimalPart, 100) > 14))
|
|
53
|
-
return "few";
|
|
54
|
-
}
|
|
55
|
-
return "other";
|
|
56
|
-
},"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":"bs"})
|
|
57
|
-
}
|
|
34
|
+
},"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":"bs"});
|
package/locale-data/ca.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["many","one","other"],"ordinal":["few","one","other","two"]},"compactExponents":{"short":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":6,"10":9,"11":9,"12":12,"13":12,"14":12},"long":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":9,"10":9,"11":9,"12":12,"13":12,"14":12}},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
function modDigits(digits, divisor) {
|
|
6
11
|
let value = 0;
|
|
7
12
|
for (let index = 0; index < digits.length; index++) {
|
|
@@ -33,39 +38,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
33
38
|
return "many";
|
|
34
39
|
}
|
|
35
40
|
return "other";
|
|
36
|
-
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"ca"})
|
|
37
|
-
} else {
|
|
38
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["many","one","other"],"ordinal":["few","one","other","two"]},"compactExponents":{"short":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":6,"10":9,"11":9,"12":12,"13":12,"14":12},"long":{"3":3,"4":3,"5":3,"6":6,"7":6,"8":6,"9":9,"10":9,"11":9,"12":12,"13":12,"14":12}},"fn":function(num, isOrdinal, exponent = 0) {
|
|
39
|
-
function modDigits(digits, divisor) {
|
|
40
|
-
let value = 0;
|
|
41
|
-
for (let index = 0; index < digits.length; index++) {
|
|
42
|
-
const digit = digits.charCodeAt(index) - 48;
|
|
43
|
-
if (digit >= 0 && digit <= 9) value = (value * 10 + digit) % divisor;
|
|
44
|
-
}
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
const numStr = String(num);
|
|
48
|
-
const parts = numStr.split(".");
|
|
49
|
-
const integerPart = parts[0];
|
|
50
|
-
const decimalPart = parts[1] || "";
|
|
51
|
-
const n = Math.abs(parseFloat(numStr));
|
|
52
|
-
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
53
|
-
const v = decimalPart.length;
|
|
54
|
-
const e = exponent;
|
|
55
|
-
if (isOrdinal) {
|
|
56
|
-
if ((!/[1-9]/.test(decimalPart) && (n === 1 || n === 3)))
|
|
57
|
-
return "one";
|
|
58
|
-
if ((!/[1-9]/.test(decimalPart) && n === 2))
|
|
59
|
-
return "two";
|
|
60
|
-
if ((!/[1-9]/.test(decimalPart) && n === 4))
|
|
61
|
-
return "few";
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
if (i === 1 && v === 0)
|
|
65
|
-
return "one";
|
|
66
|
-
if (e === 0 && i !== 0 && modDigits(integerPart, 1000000) === 0 && v === 0 || (e < 0 || e > 5))
|
|
67
|
-
return "many";
|
|
68
|
-
}
|
|
69
|
-
return "other";
|
|
70
|
-
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"ca"})
|
|
71
|
-
}
|
|
41
|
+
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"ca"});
|
package/locale-data/ce.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
const numStr = String(num);
|
|
6
11
|
const parts = numStr.split(".");
|
|
7
12
|
const integerPart = parts[0];
|
|
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
14
19
|
return "one";
|
|
15
20
|
}
|
|
16
21
|
return "other";
|
|
17
|
-
}},"locale":"ce"})
|
|
18
|
-
} else {
|
|
19
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
20
|
-
const numStr = String(num);
|
|
21
|
-
const parts = numStr.split(".");
|
|
22
|
-
const integerPart = parts[0];
|
|
23
|
-
const decimalPart = parts[1] || "";
|
|
24
|
-
const n = Math.abs(parseFloat(numStr));
|
|
25
|
-
if (isOrdinal) {
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
if ((!/[1-9]/.test(decimalPart) && n === 1))
|
|
29
|
-
return "one";
|
|
30
|
-
}
|
|
31
|
-
return "other";
|
|
32
|
-
}},"locale":"ce"})
|
|
33
|
-
}
|
|
22
|
+
}},"locale":"ce"});
|
package/locale-data/ceb.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
function modDigits(digits, divisor) {
|
|
6
11
|
let value = 0;
|
|
7
12
|
for (let index = 0; index < digits.length; index++) {
|
|
@@ -24,30 +29,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
24
29
|
return "one";
|
|
25
30
|
}
|
|
26
31
|
return "other";
|
|
27
|
-
}},"locale":"ceb"})
|
|
28
|
-
} else {
|
|
29
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
30
|
-
function modDigits(digits, divisor) {
|
|
31
|
-
let value = 0;
|
|
32
|
-
for (let index = 0; index < digits.length; index++) {
|
|
33
|
-
const digit = digits.charCodeAt(index) - 48;
|
|
34
|
-
if (digit >= 0 && digit <= 9) value = (value * 10 + digit) % divisor;
|
|
35
|
-
}
|
|
36
|
-
return value;
|
|
37
|
-
}
|
|
38
|
-
const numStr = String(num);
|
|
39
|
-
const parts = numStr.split(".");
|
|
40
|
-
const integerPart = parts[0];
|
|
41
|
-
const decimalPart = parts[1] || "";
|
|
42
|
-
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
43
|
-
const v = decimalPart.length;
|
|
44
|
-
const f = v > 0 ? parseInt(decimalPart, 10) : 0;
|
|
45
|
-
if (isOrdinal) {
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
if (v === 0 && ((i === 1 || i === 2) || i === 3) || v === 0 && ((modDigits(integerPart, 10) !== 4 && modDigits(integerPart, 10) !== 6) && modDigits(integerPart, 10) !== 9) || v !== 0 && ((modDigits(decimalPart, 10) !== 4 && modDigits(decimalPart, 10) !== 6) && modDigits(decimalPart, 10) !== 9))
|
|
49
|
-
return "one";
|
|
50
|
-
}
|
|
51
|
-
return "other";
|
|
52
|
-
}},"locale":"ceb"})
|
|
53
|
-
}
|
|
32
|
+
}},"locale":"ceb"});
|
package/locale-data/cgg.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
const numStr = String(num);
|
|
6
11
|
const parts = numStr.split(".");
|
|
7
12
|
const integerPart = parts[0];
|
|
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
14
19
|
return "one";
|
|
15
20
|
}
|
|
16
21
|
return "other";
|
|
17
|
-
}},"locale":"cgg"})
|
|
18
|
-
} else {
|
|
19
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
20
|
-
const numStr = String(num);
|
|
21
|
-
const parts = numStr.split(".");
|
|
22
|
-
const integerPart = parts[0];
|
|
23
|
-
const decimalPart = parts[1] || "";
|
|
24
|
-
const n = Math.abs(parseFloat(numStr));
|
|
25
|
-
if (isOrdinal) {
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
if ((!/[1-9]/.test(decimalPart) && n === 1))
|
|
29
|
-
return "one";
|
|
30
|
-
}
|
|
31
|
-
return "other";
|
|
32
|
-
}},"locale":"cgg"})
|
|
33
|
-
}
|
|
22
|
+
}},"locale":"cgg"});
|
package/locale-data/chr.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
const numStr = String(num);
|
|
6
11
|
const parts = numStr.split(".");
|
|
7
12
|
const integerPart = parts[0];
|
|
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
14
19
|
return "one";
|
|
15
20
|
}
|
|
16
21
|
return "other";
|
|
17
|
-
}},"locale":"chr"})
|
|
18
|
-
} else {
|
|
19
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
20
|
-
const numStr = String(num);
|
|
21
|
-
const parts = numStr.split(".");
|
|
22
|
-
const integerPart = parts[0];
|
|
23
|
-
const decimalPart = parts[1] || "";
|
|
24
|
-
const n = Math.abs(parseFloat(numStr));
|
|
25
|
-
if (isOrdinal) {
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
if ((!/[1-9]/.test(decimalPart) && n === 1))
|
|
29
|
-
return "one";
|
|
30
|
-
}
|
|
31
|
-
return "other";
|
|
32
|
-
}},"locale":"chr"})
|
|
33
|
-
}
|
|
22
|
+
}},"locale":"chr"});
|
package/locale-data/ckb.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
|
|
4
|
-
Intl.PluralRules.__addLocaleData
|
|
3
|
+
;(function (data) {
|
|
4
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
5
|
+
Intl.PluralRules.__addLocaleData(data)
|
|
6
|
+
} else {
|
|
7
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push(data)
|
|
8
|
+
}
|
|
9
|
+
})({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
5
10
|
const numStr = String(num);
|
|
6
11
|
const parts = numStr.split(".");
|
|
7
12
|
const integerPart = parts[0];
|
|
@@ -14,20 +19,4 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
14
19
|
return "one";
|
|
15
20
|
}
|
|
16
21
|
return "other";
|
|
17
|
-
}},"locale":"ckb"})
|
|
18
|
-
} else {
|
|
19
|
-
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
20
|
-
const numStr = String(num);
|
|
21
|
-
const parts = numStr.split(".");
|
|
22
|
-
const integerPart = parts[0];
|
|
23
|
-
const decimalPart = parts[1] || "";
|
|
24
|
-
const n = Math.abs(parseFloat(numStr));
|
|
25
|
-
if (isOrdinal) {
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
if ((!/[1-9]/.test(decimalPart) && n === 1))
|
|
29
|
-
return "one";
|
|
30
|
-
}
|
|
31
|
-
return "other";
|
|
32
|
-
}},"locale":"ckb"})
|
|
33
|
-
}
|
|
22
|
+
}},"locale":"ckb"});
|