@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.
Files changed (223) hide show
  1. package/abstract/GetOperands.d.ts +1 -1
  2. package/abstract/ResolvePlural.d.ts +1 -1
  3. package/abstract/ResolvePlural.js +1 -1
  4. package/abstract/ResolvePluralRange.d.ts +1 -1
  5. package/locale-data/af.js +15 -0
  6. package/locale-data/ak.js +15 -0
  7. package/locale-data/am.js +16 -0
  8. package/locale-data/an.js +15 -0
  9. package/locale-data/ar.js +23 -0
  10. package/locale-data/ars.js +23 -0
  11. package/locale-data/as.js +24 -0
  12. package/locale-data/asa.js +15 -0
  13. package/locale-data/ast.js +16 -0
  14. package/locale-data/az.js +22 -0
  15. package/locale-data/bal.js +17 -0
  16. package/locale-data/be.js +21 -0
  17. package/locale-data/bem.js +15 -0
  18. package/locale-data/bez.js +15 -0
  19. package/locale-data/bg.js +15 -0
  20. package/locale-data/bho.js +15 -0
  21. package/locale-data/bm.js +4 -0
  22. package/locale-data/bn.js +24 -0
  23. package/locale-data/bo.js +4 -0
  24. package/locale-data/br.js +21 -0
  25. package/locale-data/brx.js +15 -0
  26. package/locale-data/bs.js +19 -0
  27. package/locale-data/ca.js +26 -0
  28. package/locale-data/ce.js +15 -0
  29. package/locale-data/ceb.js +17 -0
  30. package/locale-data/cgg.js +15 -0
  31. package/locale-data/chr.js +15 -0
  32. package/locale-data/ckb.js +15 -0
  33. package/locale-data/cs.js +20 -0
  34. package/locale-data/cy.js +33 -0
  35. package/locale-data/da.js +18 -0
  36. package/locale-data/de.js +16 -0
  37. package/locale-data/doi.js +16 -0
  38. package/locale-data/dsb.js +21 -0
  39. package/locale-data/dv.js +15 -0
  40. package/locale-data/dz.js +4 -0
  41. package/locale-data/ee.js +15 -0
  42. package/locale-data/el.js +15 -0
  43. package/locale-data/en.js +23 -0
  44. package/locale-data/eo.js +15 -0
  45. package/locale-data/es.js +20 -0
  46. package/locale-data/et.js +16 -0
  47. package/locale-data/eu.js +15 -0
  48. package/locale-data/fa.js +16 -0
  49. package/locale-data/ff.js +15 -0
  50. package/locale-data/fi.js +16 -0
  51. package/locale-data/fil.js +20 -0
  52. package/locale-data/fo.js +15 -0
  53. package/locale-data/fr.js +22 -0
  54. package/locale-data/fur.js +15 -0
  55. package/locale-data/fy.js +16 -0
  56. package/locale-data/ga.js +23 -0
  57. package/locale-data/gd.js +25 -0
  58. package/locale-data/gl.js +16 -0
  59. package/locale-data/gsw.js +15 -0
  60. package/locale-data/gu.js +24 -0
  61. package/locale-data/guw.js +15 -0
  62. package/locale-data/gv.js +22 -0
  63. package/locale-data/ha.js +15 -0
  64. package/locale-data/haw.js +15 -0
  65. package/locale-data/he.js +18 -0
  66. package/locale-data/hi.js +24 -0
  67. package/locale-data/hnj.js +4 -0
  68. package/locale-data/hr.js +19 -0
  69. package/locale-data/hsb.js +21 -0
  70. package/locale-data/hu.js +17 -0
  71. package/locale-data/hy.js +18 -0
  72. package/locale-data/ia.js +16 -0
  73. package/locale-data/id.js +4 -0
  74. package/locale-data/ig.js +4 -0
  75. package/locale-data/ii.js +4 -0
  76. package/locale-data/io.js +16 -0
  77. package/locale-data/is.js +17 -0
  78. package/locale-data/it.js +22 -0
  79. package/locale-data/iu.js +17 -0
  80. package/locale-data/ja.js +4 -0
  81. package/locale-data/jbo.js +4 -0
  82. package/locale-data/jgo.js +15 -0
  83. package/locale-data/jmc.js +15 -0
  84. package/locale-data/jv.js +4 -0
  85. package/locale-data/jw.js +4 -0
  86. package/locale-data/ka.js +20 -0
  87. package/locale-data/kab.js +15 -0
  88. package/locale-data/kaj.js +15 -0
  89. package/locale-data/kcg.js +15 -0
  90. package/locale-data/kde.js +4 -0
  91. package/locale-data/kea.js +4 -0
  92. package/locale-data/kk.js +17 -0
  93. package/locale-data/kkj.js +15 -0
  94. package/locale-data/kl.js +15 -0
  95. package/locale-data/km.js +4 -0
  96. package/locale-data/kn.js +16 -0
  97. package/locale-data/ko.js +4 -0
  98. package/locale-data/ks.js +15 -0
  99. package/locale-data/ksb.js +15 -0
  100. package/locale-data/ksh.js +17 -0
  101. package/locale-data/ku.js +15 -0
  102. package/locale-data/kw.js +27 -0
  103. package/locale-data/ky.js +15 -0
  104. package/locale-data/lag.js +18 -0
  105. package/locale-data/lb.js +15 -0
  106. package/locale-data/lg.js +15 -0
  107. package/locale-data/lij.js +19 -0
  108. package/locale-data/lkt.js +4 -0
  109. package/locale-data/ln.js +15 -0
  110. package/locale-data/lo.js +15 -0
  111. package/locale-data/lt.js +21 -0
  112. package/locale-data/lv.js +19 -0
  113. package/locale-data/mas.js +15 -0
  114. package/locale-data/mg.js +15 -0
  115. package/locale-data/mgo.js +15 -0
  116. package/locale-data/mk.js +23 -0
  117. package/locale-data/ml.js +15 -0
  118. package/locale-data/mn.js +15 -0
  119. package/locale-data/mo.js +21 -0
  120. package/locale-data/mr.js +21 -0
  121. package/locale-data/ms.js +15 -0
  122. package/locale-data/mt.js +21 -0
  123. package/locale-data/my.js +4 -0
  124. package/locale-data/nah.js +15 -0
  125. package/locale-data/naq.js +17 -0
  126. package/locale-data/nb.js +15 -0
  127. package/locale-data/nd.js +15 -0
  128. package/locale-data/ne.js +17 -0
  129. package/locale-data/nl.js +16 -0
  130. package/locale-data/nn.js +15 -0
  131. package/locale-data/nnh.js +15 -0
  132. package/locale-data/no.js +15 -0
  133. package/locale-data/nqo.js +4 -0
  134. package/locale-data/nr.js +15 -0
  135. package/locale-data/nso.js +15 -0
  136. package/locale-data/ny.js +15 -0
  137. package/locale-data/nyn.js +15 -0
  138. package/locale-data/om.js +15 -0
  139. package/locale-data/or.js +23 -0
  140. package/locale-data/os.js +15 -0
  141. package/locale-data/osa.js +4 -0
  142. package/locale-data/pa.js +15 -0
  143. package/locale-data/pap.js +15 -0
  144. package/locale-data/pcm.js +16 -0
  145. package/locale-data/pl.js +20 -0
  146. package/locale-data/prg.js +19 -0
  147. package/locale-data/ps.js +15 -0
  148. package/locale-data/pt-PT.js +19 -0
  149. package/locale-data/pt.js +19 -0
  150. package/locale-data/rm.js +15 -0
  151. package/locale-data/ro.js +21 -0
  152. package/locale-data/rof.js +15 -0
  153. package/locale-data/ru.js +20 -0
  154. package/locale-data/rwk.js +15 -0
  155. package/locale-data/sah.js +4 -0
  156. package/locale-data/saq.js +15 -0
  157. package/locale-data/sat.js +17 -0
  158. package/locale-data/sc.js +19 -0
  159. package/locale-data/scn.js +22 -0
  160. package/locale-data/sd.js +15 -0
  161. package/locale-data/sdh.js +15 -0
  162. package/locale-data/se.js +17 -0
  163. package/locale-data/seh.js +15 -0
  164. package/locale-data/ses.js +4 -0
  165. package/locale-data/sg.js +4 -0
  166. package/locale-data/sh.js +19 -0
  167. package/locale-data/shi.js +18 -0
  168. package/locale-data/si.js +18 -0
  169. package/locale-data/sk.js +20 -0
  170. package/locale-data/sl.js +20 -0
  171. package/locale-data/sma.js +17 -0
  172. package/locale-data/smi.js +17 -0
  173. package/locale-data/smj.js +17 -0
  174. package/locale-data/smn.js +17 -0
  175. package/locale-data/sms.js +17 -0
  176. package/locale-data/sn.js +15 -0
  177. package/locale-data/so.js +15 -0
  178. package/locale-data/sq.js +19 -0
  179. package/locale-data/sr.js +19 -0
  180. package/locale-data/ss.js +15 -0
  181. package/locale-data/ssy.js +15 -0
  182. package/locale-data/st.js +15 -0
  183. package/locale-data/su.js +4 -0
  184. package/locale-data/sv.js +19 -0
  185. package/locale-data/sw.js +16 -0
  186. package/locale-data/syr.js +15 -0
  187. package/locale-data/ta.js +15 -0
  188. package/locale-data/te.js +15 -0
  189. package/locale-data/teo.js +15 -0
  190. package/locale-data/th.js +4 -0
  191. package/locale-data/ti.js +15 -0
  192. package/locale-data/tig.js +15 -0
  193. package/locale-data/tk.js +17 -0
  194. package/locale-data/tl.js +20 -0
  195. package/locale-data/tn.js +15 -0
  196. package/locale-data/to.js +4 -0
  197. package/locale-data/tpi.js +4 -0
  198. package/locale-data/tr.js +15 -0
  199. package/locale-data/ts.js +15 -0
  200. package/locale-data/tzm.js +15 -0
  201. package/locale-data/ug.js +15 -0
  202. package/locale-data/uk.js +23 -0
  203. package/locale-data/und.js +4 -0
  204. package/locale-data/ur.js +16 -0
  205. package/locale-data/uz.js +15 -0
  206. package/locale-data/ve.js +15 -0
  207. package/locale-data/vi.js +15 -0
  208. package/locale-data/vo.js +15 -0
  209. package/locale-data/vun.js +15 -0
  210. package/locale-data/wa.js +15 -0
  211. package/locale-data/wae.js +15 -0
  212. package/locale-data/wo.js +4 -0
  213. package/locale-data/xh.js +15 -0
  214. package/locale-data/xog.js +15 -0
  215. package/locale-data/yi.js +16 -0
  216. package/locale-data/yo.js +4 -0
  217. package/locale-data/yue.js +4 -0
  218. package/locale-data/zh.js +4 -0
  219. package/locale-data/zu.js +16 -0
  220. package/package.json +6 -7
  221. package/polyfill-force.js +6 -0
  222. package/polyfill.iife.js +620 -2356
  223. package/polyfill.js +6 -0
package/locale-data/gl.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":"gl"})
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":"gl"})
19
35
  }
@@ -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":"gsw"})
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":"gsw"})
18
33
  }
package/locale-data/gu.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":"gu"})
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)
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":"gu"})
27
51
  }
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
15
15
  }
16
16
  return "other";
17
17
  }},"locale":"guw"})
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":"guw"})
18
33
  }
package/locale-data/gv.js CHANGED
@@ -22,4 +22,26 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
22
22
  }
23
23
  return "other";
24
24
  }},"locale":"gv"})
25
+ } else {
26
+ (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) {
27
+ const numStr = String(num);
28
+ const parts = numStr.split(".");
29
+ const integerPart = parts[0];
30
+ const decimalPart = parts[1] || "";
31
+ const i = Math.floor(Math.abs(parseFloat(integerPart)));
32
+ const v = decimalPart.length;
33
+ if (isOrdinal) {
34
+ }
35
+ else {
36
+ if (v === 0 && (((((i % 100) === 0 || (i % 100) === 20) || (i % 100) === 40) || (i % 100) === 60) || (i % 100) === 80))
37
+ return "few";
38
+ if (v !== 0)
39
+ return "many";
40
+ if (v === 0 && (i % 10) === 1)
41
+ return "one";
42
+ if (v === 0 && (i % 10) === 2)
43
+ return "two";
44
+ }
45
+ return "other";
46
+ }},"locale":"gv"})
25
47
  }
package/locale-data/ha.js CHANGED
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
15
15
  }
16
16
  return "other";
17
17
  }},"locale":"ha"})
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":"ha"})
18
33
  }
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
15
15
  }
16
16
  return "other";
17
17
  }},"locale":"haw"})
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":"haw"})
18
33
  }
package/locale-data/he.js CHANGED
@@ -18,4 +18,22 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
18
18
  }
19
19
  return "other";
20
20
  },"pluralRanges":{"cardinal":{"one_other":"other","one_two":"other","other_one":"other","other_other":"other","other_two":"other","two_other":"other"},"ordinal":{}}},"locale":"he"})
21
+ } else {
22
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other","two"],"ordinal":["other"]},"fn":function(num, isOrdinal, exponent = 0) {
23
+ const numStr = String(num);
24
+ const parts = numStr.split(".");
25
+ const integerPart = parts[0];
26
+ const decimalPart = parts[1] || "";
27
+ const i = Math.floor(Math.abs(parseFloat(integerPart)));
28
+ const v = decimalPart.length;
29
+ if (isOrdinal) {
30
+ }
31
+ else {
32
+ if (i === 1 && v === 0 || i === 0 && v !== 0)
33
+ return "one";
34
+ if (i === 2 && v === 0)
35
+ return "two";
36
+ }
37
+ return "other";
38
+ },"pluralRanges":{"cardinal":{"one_other":"other","one_two":"other","other_one":"other","other_other":"other","other_two":"other","two_other":"other"},"ordinal":{}}},"locale":"he"})
21
39
  }
package/locale-data/hi.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":"hi"})
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)
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":"hi"})
27
51
  }
@@ -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":"hnj"})
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":"hnj"})
7
11
  }
package/locale-data/hr.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":"hr"})
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":"hr"})
22
41
  }
@@ -21,4 +21,25 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
21
21
  }
22
22
  return "other";
23
23
  }},"locale":"hsb"})
24
+ } else {
25
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["few","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 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
+ }
35
+ else {
36
+ if (v === 0 && ((i % 100) >= 3 && (i % 100) <= 4) || ((f % 100) >= 3 && (f % 100) <= 4))
37
+ return "few";
38
+ if (v === 0 && (i % 100) === 1 || (f % 100) === 1)
39
+ return "one";
40
+ if (v === 0 && (i % 100) === 2 || (f % 100) === 2)
41
+ return "two";
42
+ }
43
+ return "other";
44
+ }},"locale":"hsb"})
24
45
  }
package/locale-data/hu.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":"hu"})
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 || n === 5))
29
+ return "one";
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":"hu"})
20
37
  }
package/locale-data/hy.js CHANGED
@@ -18,4 +18,22 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
18
18
  }
19
19
  return "other";
20
20
  },"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"hy"})
21
+ } else {
22
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","other"]},"fn":function(num, isOrdinal, exponent = 0) {
23
+ const numStr = String(num);
24
+ const parts = numStr.split(".");
25
+ const integerPart = parts[0];
26
+ const decimalPart = parts[1] || "";
27
+ const n = Math.abs(parseFloat(numStr));
28
+ const i = Math.floor(Math.abs(parseFloat(integerPart)));
29
+ if (isOrdinal) {
30
+ if (n === 1)
31
+ return "one";
32
+ }
33
+ else {
34
+ if ((i === 0 || i === 1))
35
+ return "one";
36
+ }
37
+ return "other";
38
+ },"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_other":"other"},"ordinal":{}}},"locale":"hy"})
21
39
  }
package/locale-data/ia.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":"ia"})
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":"ia"})
19
35
  }
package/locale-data/id.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":"id"})
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":"id"})
7
11
  }
package/locale-data/ig.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":"ig"})
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":"ig"})
7
11
  }
package/locale-data/ii.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":"ii"})
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":"ii"})
7
11
  }
package/locale-data/io.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":"io"})
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":"io"})
19
35
  }
package/locale-data/is.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_one":"one","one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"is"})
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 w = decimalPart.replace(/0+$/, "").length;
28
+ const t = w > 0 ? parseInt(decimalPart.replace(/0+$/, ""), 10) : 0;
29
+ if (isOrdinal) {
30
+ }
31
+ else {
32
+ if (t === 0 && (i % 10) === 1 && (i % 100) !== 11 || (t % 10) === 1 && (t % 100) !== 11)
33
+ return "one";
34
+ }
35
+ return "other";
36
+ },"pluralRanges":{"cardinal":{"one_one":"one","one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"is"})
20
37
  }
package/locale-data/it.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":"it"})
25
+ } else {
26
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["many","one","other"],"ordinal":["many","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
+ const v = decimalPart.length;
34
+ const e = exponent;
35
+ if (isOrdinal) {
36
+ if ((((n === 11 || n === 8) || n === 80) || n === 800))
37
+ return "many";
38
+ }
39
+ else {
40
+ if (e === 0 && i !== 0 && (i % 1000000) === 0 && v === 0 || (e < 0 || e > 5))
41
+ return "many";
42
+ if (i === 1 && v === 0)
43
+ return "one";
44
+ }
45
+ return "other";
46
+ },"pluralRanges":{"cardinal":{"one_other":"other","other_one":"one","other_other":"other"},"ordinal":{}}},"locale":"it"})
25
47
  }
package/locale-data/iu.js CHANGED
@@ -17,4 +17,21 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
17
17
  }
18
18
  return "other";
19
19
  }},"locale":"iu"})
20
+ } else {
21
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other","two"],"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 n = Math.abs(parseFloat(numStr));
27
+ if (isOrdinal) {
28
+ }
29
+ else {
30
+ if (n === 1)
31
+ return "one";
32
+ if (n === 2)
33
+ return "two";
34
+ }
35
+ return "other";
36
+ }},"locale":"iu"})
20
37
  }
package/locale-data/ja.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":"ja"})
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":"ja"})
7
11
  }
@@ -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":"jbo"})
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":"jbo"})
7
11
  }
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
15
15
  }
16
16
  return "other";
17
17
  }},"locale":"jgo"})
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":"jgo"})
18
33
  }
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
15
15
  }
16
16
  return "other";
17
17
  }},"locale":"jmc"})
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":"jmc"})
18
33
  }
package/locale-data/jv.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":"jv"})
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":"jv"})
7
11
  }
package/locale-data/jw.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":"jw"})
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":"jw"})
7
11
  }
package/locale-data/ka.js CHANGED
@@ -20,4 +20,24 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
20
20
  }
21
21
  return "other";
22
22
  },"pluralRanges":{"cardinal":{"one_other":"one","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"ka"})
23
+ } else {
24
+ (globalThis.__FORMATJS_PLURALRULES_DATA__ = globalThis.__FORMATJS_PLURALRULES_DATA__ || []).push({"data":{"categories":{"cardinal":["one","other"],"ordinal":["many","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
+ if (isOrdinal) {
32
+ if (i === 0 || (((((i % 100) >= 2 && (i % 100) <= 20) || (i % 100) === 40) || (i % 100) === 60) || (i % 100) === 80))
33
+ return "many";
34
+ if (i === 1)
35
+ return "one";
36
+ }
37
+ else {
38
+ if (n === 1)
39
+ return "one";
40
+ }
41
+ return "other";
42
+ },"pluralRanges":{"cardinal":{"one_other":"one","other_one":"other","other_other":"other"},"ordinal":{}}},"locale":"ka"})
23
43
  }
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
15
15
  }
16
16
  return "other";
17
17
  }},"locale":"kab"})
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 i = Math.floor(Math.abs(parseFloat(integerPart)));
25
+ if (isOrdinal) {
26
+ }
27
+ else {
28
+ if ((i === 0 || i === 1))
29
+ return "one";
30
+ }
31
+ return "other";
32
+ }},"locale":"kab"})
18
33
  }
@@ -15,4 +15,19 @@ if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function')
15
15
  }
16
16
  return "other";
17
17
  }},"locale":"kaj"})
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":"kaj"})
18
33
  }