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