@formatjs/intl-pluralrules 6.2.3 → 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 -7
- package/polyfill-force.js +6 -0
- package/polyfill.iife.js +620 -2356
- package/polyfill.js +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type Decimal from "
|
|
1
|
+
import type Decimal from "@formatjs/bigdecimal";
|
|
2
2
|
/**
|
|
3
3
|
* CLDR Spec: Operands as defined in https://unicode.org/reports/tr35/tr35-numbers.html#Operands
|
|
4
4
|
* ECMA-402 Spec: GetOperands abstract operation (https://tc39.es/ecma402/#sec-getoperands)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type LDMLPluralRule, type PluralRulesInternal } from "@formatjs/ecma402-abstract";
|
|
2
|
-
import Decimal from "
|
|
2
|
+
import Decimal from "@formatjs/bigdecimal";
|
|
3
3
|
import { type OperandsRecord } from "./GetOperands.js";
|
|
4
4
|
/**
|
|
5
5
|
* Result of ResolvePluralInternal containing both the formatted string and plural category.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputeExponentForMagnitude, FormatNumericToString, invariant, Type } from "@formatjs/ecma402-abstract";
|
|
2
|
-
import Decimal from "
|
|
2
|
+
import Decimal from "@formatjs/bigdecimal";
|
|
3
3
|
import { GetOperands } from "./GetOperands.js";
|
|
4
4
|
/**
|
|
5
5
|
* ResolvePluralInternal ( pluralRules, n )
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type LDMLPluralRule, type PluralRulesInternal } from "@formatjs/ecma402-abstract";
|
|
2
|
-
import type Decimal from "
|
|
2
|
+
import type Decimal from "@formatjs/bigdecimal";
|
|
3
3
|
import { type OperandsRecord } from "./GetOperands.js";
|
|
4
4
|
/**
|
|
5
5
|
* ResolvePluralRange ( pluralRules, x, y )
|
package/locale-data/af.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":"other","other_other":"other"},"ordinal":{}}},"locale":"af"})
|
|
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":"other","other_other":"other"},"ordinal":{}}},"locale":"af"})
|
|
18
33
|
}
|
package/locale-data/ak.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_one":"other","one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"ak"})
|
|
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
|
+
},"pluralRanges":{"cardinal":{"one_one":"other","one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"ak"})
|
|
18
33
|
}
|
package/locale-data/am.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_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"am"})
|
|
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 n = Math.abs(parseFloat(numStr));
|
|
26
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
27
|
+
if (isOrdinal) {
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
if (i === 0 || n === 1)
|
|
31
|
+
return "one";
|
|
32
|
+
}
|
|
33
|
+
return "other";
|
|
34
|
+
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"am"})
|
|
19
35
|
}
|
package/locale-data/an.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":"other","other_other":"other"},"ordinal":{}}},"locale":"an"})
|
|
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":"other","other_other":"other"},"ordinal":{}}},"locale":"an"})
|
|
18
33
|
}
|
package/locale-data/ar.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_other":"other","many_few":"few","many_many":"many","many_other":"other","one_few":"few","one_many":"many","one_other":"other","one_two":"other","other_few":"few","other_many":"many","other_one":"other","other_other":"other","other_two":"other","two_few":"few","two_many":"many","two_other":"other","zero_few":"few","zero_many":"many","zero_one":"zero","zero_other":"other","zero_two":"zero"},"ordinal":{}}},"locale":"ar"})
|
|
26
|
+
} else {
|
|
27
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["few","many","one","other","two","zero"],"ordinal":["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
|
+
if (isOrdinal) {
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
if (((n % 100) >= 3 && (n % 100) <= 10))
|
|
37
|
+
return "few";
|
|
38
|
+
if (((n % 100) >= 11 && (n % 100) <= 99))
|
|
39
|
+
return "many";
|
|
40
|
+
if (n === 1)
|
|
41
|
+
return "one";
|
|
42
|
+
if (n === 2)
|
|
43
|
+
return "two";
|
|
44
|
+
if (n === 0)
|
|
45
|
+
return "zero";
|
|
46
|
+
}
|
|
47
|
+
return "other";
|
|
48
|
+
},"pluralRanges":{"cardinal":{"few_few":"few","few_many":"many","few_other":"other","many_few":"few","many_many":"many","many_other":"other","one_few":"few","one_many":"many","one_other":"other","one_two":"other","other_few":"few","other_many":"many","other_one":"other","other_other":"other","other_two":"other","two_few":"few","two_many":"many","two_other":"other","zero_few":"few","zero_many":"many","zero_one":"zero","zero_other":"other","zero_two":"zero"},"ordinal":{}}},"locale":"ar"})
|
|
26
49
|
}
|
package/locale-data/ars.js
CHANGED
|
@@ -23,4 +23,27 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
23
23
|
}
|
|
24
24
|
return "other";
|
|
25
25
|
}},"locale":"ars"})
|
|
26
|
+
} else {
|
|
27
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["few","many","one","other","two","zero"],"ordinal":["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
|
+
if (isOrdinal) {
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
if (((n % 100) >= 3 && (n % 100) <= 10))
|
|
37
|
+
return "few";
|
|
38
|
+
if (((n % 100) >= 11 && (n % 100) <= 99))
|
|
39
|
+
return "many";
|
|
40
|
+
if (n === 1)
|
|
41
|
+
return "one";
|
|
42
|
+
if (n === 2)
|
|
43
|
+
return "two";
|
|
44
|
+
if (n === 0)
|
|
45
|
+
return "zero";
|
|
46
|
+
}
|
|
47
|
+
return "other";
|
|
48
|
+
}},"locale":"ars"})
|
|
26
49
|
}
|
package/locale-data/as.js
CHANGED
|
@@ -24,4 +24,28 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
24
24
|
}
|
|
25
25
|
return "other";
|
|
26
26
|
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"as"})
|
|
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 (n === 4)
|
|
37
|
+
return "few";
|
|
38
|
+
if (n === 6)
|
|
39
|
+
return "many";
|
|
40
|
+
if ((((((n === 1 || n === 5) || n === 7) || n === 8) || n === 9) || n === 10))
|
|
41
|
+
return "one";
|
|
42
|
+
if ((n === 2 || n === 3))
|
|
43
|
+
return "two";
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
if (i === 0 || n === 1)
|
|
47
|
+
return "one";
|
|
48
|
+
}
|
|
49
|
+
return "other";
|
|
50
|
+
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"as"})
|
|
27
51
|
}
|
package/locale-data/asa.js
CHANGED
|
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
15
15
|
}
|
|
16
16
|
return "other";
|
|
17
17
|
}},"locale":"asa"})
|
|
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":"asa"})
|
|
18
33
|
}
|
package/locale-data/ast.js
CHANGED
|
@@ -16,4 +16,20 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
16
16
|
}
|
|
17
17
|
return "other";
|
|
18
18
|
}},"locale":"ast"})
|
|
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
|
+
}},"locale":"ast"})
|
|
19
35
|
}
|
package/locale-data/az.js
CHANGED
|
@@ -22,4 +22,26 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
22
22
|
}
|
|
23
23
|
return "other";
|
|
24
24
|
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"az"})
|
|
25
|
+
} else {
|
|
26
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["few","many","one","other"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
27
|
+
const numStr = String(num);
|
|
28
|
+
const parts = numStr.split(".");
|
|
29
|
+
const integerPart = parts[0];
|
|
30
|
+
const decimalPart = parts[1] || "";
|
|
31
|
+
const n = Math.abs(parseFloat(numStr));
|
|
32
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
33
|
+
if (isOrdinal) {
|
|
34
|
+
if (((i % 10) === 3 || (i % 10) === 4) || (((((((((i % 1000) === 100 || (i % 1000) === 200) || (i % 1000) === 300) || (i % 1000) === 400) || (i % 1000) === 500) || (i % 1000) === 600) || (i % 1000) === 700) || (i % 1000) === 800) || (i % 1000) === 900))
|
|
35
|
+
return "few";
|
|
36
|
+
if (i === 0 || (i % 10) === 6 || (((i % 100) === 40 || (i % 100) === 60) || (i % 100) === 90))
|
|
37
|
+
return "many";
|
|
38
|
+
if ((((((i % 10) === 1 || (i % 10) === 2) || (i % 10) === 5) || (i % 10) === 7) || (i % 10) === 8) || ((((i % 100) === 20 || (i % 100) === 50) || (i % 100) === 70) || (i % 100) === 80))
|
|
39
|
+
return "one";
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
if (n === 1)
|
|
43
|
+
return "one";
|
|
44
|
+
}
|
|
45
|
+
return "other";
|
|
46
|
+
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"az"})
|
|
25
47
|
}
|
package/locale-data/bal.js
CHANGED
|
@@ -17,4 +17,21 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
17
17
|
}
|
|
18
18
|
return "other";
|
|
19
19
|
}},"locale":"bal"})
|
|
20
|
+
} else {
|
|
21
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","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 === 1)
|
|
29
|
+
return "one";
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
if (n === 1)
|
|
33
|
+
return "one";
|
|
34
|
+
}
|
|
35
|
+
return "other";
|
|
36
|
+
}},"locale":"bal"})
|
|
20
37
|
}
|
package/locale-data/be.js
CHANGED
|
@@ -21,4 +21,25 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
21
21
|
}
|
|
22
22
|
return "other";
|
|
23
23
|
},"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":"be"})
|
|
24
|
+
} else {
|
|
25
|
+
(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) {
|
|
26
|
+
const numStr = String(num);
|
|
27
|
+
const parts = numStr.split(".");
|
|
28
|
+
const integerPart = parts[0];
|
|
29
|
+
const decimalPart = parts[1] || "";
|
|
30
|
+
const n = Math.abs(parseFloat(numStr));
|
|
31
|
+
if (isOrdinal) {
|
|
32
|
+
if (((n % 10) === 2 || (n % 10) === 3) && ((n % 100) !== 12 && (n % 100) !== 13))
|
|
33
|
+
return "few";
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
if (((n % 10) >= 2 && (n % 10) <= 4) && ((n % 100) < 12 || (n % 100) > 14))
|
|
37
|
+
return "few";
|
|
38
|
+
if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) || ((n % 100) >= 11 && (n % 100) <= 14))
|
|
39
|
+
return "many";
|
|
40
|
+
if ((n % 10) === 1 && (n % 100) !== 11)
|
|
41
|
+
return "one";
|
|
42
|
+
}
|
|
43
|
+
return "other";
|
|
44
|
+
},"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":"be"})
|
|
24
45
|
}
|
package/locale-data/bem.js
CHANGED
|
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
15
15
|
}
|
|
16
16
|
return "other";
|
|
17
17
|
}},"locale":"bem"})
|
|
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":"bem"})
|
|
18
33
|
}
|
package/locale-data/bez.js
CHANGED
|
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
15
15
|
}
|
|
16
16
|
return "other";
|
|
17
17
|
}},"locale":"bez"})
|
|
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":"bez"})
|
|
18
33
|
}
|
package/locale-data/bg.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":"other","other_other":"other"},"ordinal":{}}},"locale":"bg"})
|
|
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":"other","other_other":"other"},"ordinal":{}}},"locale":"bg"})
|
|
18
33
|
}
|
package/locale-data/bho.js
CHANGED
|
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
15
15
|
}
|
|
16
16
|
return "other";
|
|
17
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 ((n >= 0 && n <= 1))
|
|
29
|
+
return "one";
|
|
30
|
+
}
|
|
31
|
+
return "other";
|
|
32
|
+
}},"locale":"bho"})
|
|
18
33
|
}
|
package/locale-data/bm.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":"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"})
|
|
7
11
|
}
|
package/locale-data/bn.js
CHANGED
|
@@ -24,4 +24,28 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
24
24
|
}
|
|
25
25
|
return "other";
|
|
26
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 (n === 4)
|
|
37
|
+
return "few";
|
|
38
|
+
if (n === 6)
|
|
39
|
+
return "many";
|
|
40
|
+
if ((((((n === 1 || n === 5) || n === 7) || n === 8) || n === 9) || n === 10))
|
|
41
|
+
return "one";
|
|
42
|
+
if ((n === 2 || n === 3))
|
|
43
|
+
return "two";
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
if (i === 0 || n === 1)
|
|
47
|
+
return "one";
|
|
48
|
+
}
|
|
49
|
+
return "other";
|
|
50
|
+
},"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"bn"})
|
|
27
51
|
}
|
package/locale-data/bo.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":"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"})
|
|
7
11
|
}
|
package/locale-data/br.js
CHANGED
|
@@ -21,4 +21,25 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
21
21
|
}
|
|
22
22
|
return "other";
|
|
23
23
|
}},"locale":"br"})
|
|
24
|
+
} else {
|
|
25
|
+
(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) {
|
|
26
|
+
const numStr = String(num);
|
|
27
|
+
const parts = numStr.split(".");
|
|
28
|
+
const integerPart = parts[0];
|
|
29
|
+
const decimalPart = parts[1] || "";
|
|
30
|
+
const n = Math.abs(parseFloat(numStr));
|
|
31
|
+
if (isOrdinal) {
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
if ((((n % 10) >= 3 && (n % 10) <= 4) || (n % 10) === 9) && ((((n % 100) < 10 || (n % 100) > 19) && ((n % 100) < 70 || (n % 100) > 79)) && ((n % 100) < 90 || (n % 100) > 99)))
|
|
35
|
+
return "few";
|
|
36
|
+
if (n !== 0 && (n % 1000000) === 0)
|
|
37
|
+
return "many";
|
|
38
|
+
if ((n % 10) === 1 && (((n % 100) !== 11 && (n % 100) !== 71) && (n % 100) !== 91))
|
|
39
|
+
return "one";
|
|
40
|
+
if ((n % 10) === 2 && (((n % 100) !== 12 && (n % 100) !== 72) && (n % 100) !== 92))
|
|
41
|
+
return "two";
|
|
42
|
+
}
|
|
43
|
+
return "other";
|
|
44
|
+
}},"locale":"br"})
|
|
24
45
|
}
|
package/locale-data/brx.js
CHANGED
|
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
15
15
|
}
|
|
16
16
|
return "other";
|
|
17
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 (n === 1)
|
|
29
|
+
return "one";
|
|
30
|
+
}
|
|
31
|
+
return "other";
|
|
32
|
+
}},"locale":"brx"})
|
|
18
33
|
}
|
package/locale-data/bs.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":"bs"})
|
|
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":"bs"})
|
|
22
41
|
}
|
package/locale-data/ca.js
CHANGED
|
@@ -26,4 +26,30 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
26
26
|
}
|
|
27
27
|
return "other";
|
|
28
28
|
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"ca"})
|
|
29
|
+
} else {
|
|
30
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["many","one","other"],"ordinal":["few","one","other","two"]},"fn":function(num, isOrdinal, exponent = 0) {
|
|
31
|
+
const numStr = String(num);
|
|
32
|
+
const parts = numStr.split(".");
|
|
33
|
+
const integerPart = parts[0];
|
|
34
|
+
const decimalPart = parts[1] || "";
|
|
35
|
+
const n = Math.abs(parseFloat(numStr));
|
|
36
|
+
const i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
37
|
+
const v = decimalPart.length;
|
|
38
|
+
const e = exponent;
|
|
39
|
+
if (isOrdinal) {
|
|
40
|
+
if (n === 4)
|
|
41
|
+
return "few";
|
|
42
|
+
if ((n === 1 || n === 3))
|
|
43
|
+
return "one";
|
|
44
|
+
if (n === 2)
|
|
45
|
+
return "two";
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
if (e === 0 && i !== 0 && (i % 1000000) === 0 && v === 0 || (e < 0 || e > 5))
|
|
49
|
+
return "many";
|
|
50
|
+
if (i === 1 && v === 0)
|
|
51
|
+
return "one";
|
|
52
|
+
}
|
|
53
|
+
return "other";
|
|
54
|
+
},"pluralRanges":{"cardinal":{"one_other":"other","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"ca"})
|
|
29
55
|
}
|
package/locale-data/ce.js
CHANGED
|
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
15
15
|
}
|
|
16
16
|
return "other";
|
|
17
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 (n === 1)
|
|
29
|
+
return "one";
|
|
30
|
+
}
|
|
31
|
+
return "other";
|
|
32
|
+
}},"locale":"ce"})
|
|
18
33
|
}
|
package/locale-data/ceb.js
CHANGED
|
@@ -17,4 +17,21 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
17
17
|
}
|
|
18
18
|
return "other";
|
|
19
19
|
}},"locale":"ceb"})
|
|
20
|
+
} else {
|
|
21
|
+
(globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["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 i = Math.floor(Math.abs(parseFloat(integerPart)));
|
|
27
|
+
const v = decimalPart.length;
|
|
28
|
+
const f = v > 0 ? parseInt(decimalPart, 10) : 0;
|
|
29
|
+
if (isOrdinal) {
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
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))
|
|
33
|
+
return "one";
|
|
34
|
+
}
|
|
35
|
+
return "other";
|
|
36
|
+
}},"locale":"ceb"})
|
|
20
37
|
}
|
package/locale-data/cgg.js
CHANGED
|
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
|
|
|
15
15
|
}
|
|
16
16
|
return "other";
|
|
17
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 (n === 1)
|
|
29
|
+
return "one";
|
|
30
|
+
}
|
|
31
|
+
return "other";
|
|
32
|
+
}},"locale":"cgg"})
|
|
18
33
|
}
|