@formatjs/intl-pluralrules 5.0.1 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. package/BUILD +465 -0
  2. package/CHANGELOG.md +659 -0
  3. package/LICENSE.md +0 -0
  4. package/README.md +0 -0
  5. package/abstract/GetOperands.ts +75 -0
  6. package/abstract/InitializePluralRules.ts +61 -0
  7. package/abstract/ResolvePlural.ts +47 -0
  8. package/get_internal_slots.ts +14 -0
  9. package/index.ts +174 -0
  10. package/package.json +8 -4
  11. package/polyfill-force.ts +8 -0
  12. package/polyfill.ts +11 -0
  13. package/scripts/cldr-raw.ts +70 -0
  14. package/scripts/cldr.ts +29 -0
  15. package/scripts/test262-main-gen.ts +28 -0
  16. package/should-polyfill.ts +21 -0
  17. package/supported-locales.generated.ts +1 -0
  18. package/test262-main.ts +1071 -0
  19. package/tests/index.test.ts +57 -0
  20. package/{locale-data/en.js → tests/locale-data/en.ts} +3 -4
  21. package/{locale-data/fr.js → tests/locale-data/fr.ts} +3 -4
  22. package/tests/locale-data/zh.ts +6 -0
  23. package/tests/supported-locales-of.test.ts +23 -0
  24. package/tsconfig.json +5 -0
  25. package/abstract/GetOperands.d.ts +0 -32
  26. package/abstract/GetOperands.d.ts.map +0 -1
  27. package/abstract/GetOperands.js +0 -50
  28. package/abstract/InitializePluralRules.d.ts +0 -9
  29. package/abstract/InitializePluralRules.d.ts.map +0 -1
  30. package/abstract/InitializePluralRules.js +0 -21
  31. package/abstract/ResolvePlural.d.ts +0 -13
  32. package/abstract/ResolvePlural.d.ts.map +0 -1
  33. package/abstract/ResolvePlural.js +0 -27
  34. package/get_internal_slots.d.ts +0 -3
  35. package/get_internal_slots.d.ts.map +0 -1
  36. package/get_internal_slots.js +0 -12
  37. package/index.d.ts +0 -21
  38. package/index.d.ts.map +0 -1
  39. package/index.js +0 -141
  40. package/lib/abstract/GetOperands.d.ts +0 -32
  41. package/lib/abstract/GetOperands.d.ts.map +0 -1
  42. package/lib/abstract/GetOperands.js +0 -46
  43. package/lib/abstract/InitializePluralRules.d.ts +0 -9
  44. package/lib/abstract/InitializePluralRules.d.ts.map +0 -1
  45. package/lib/abstract/InitializePluralRules.js +0 -17
  46. package/lib/abstract/ResolvePlural.d.ts +0 -13
  47. package/lib/abstract/ResolvePlural.d.ts.map +0 -1
  48. package/lib/abstract/ResolvePlural.js +0 -23
  49. package/lib/get_internal_slots.d.ts +0 -3
  50. package/lib/get_internal_slots.d.ts.map +0 -1
  51. package/lib/get_internal_slots.js +0 -9
  52. package/lib/index.d.ts +0 -21
  53. package/lib/index.d.ts.map +0 -1
  54. package/lib/index.js +0 -138
  55. package/lib/polyfill-force.d.ts +0 -2
  56. package/lib/polyfill-force.d.ts.map +0 -1
  57. package/lib/polyfill-force.js +0 -7
  58. package/lib/polyfill.d.ts +0 -2
  59. package/lib/polyfill.d.ts.map +0 -1
  60. package/lib/polyfill.js +0 -10
  61. package/lib/should-polyfill.d.ts +0 -2
  62. package/lib/should-polyfill.d.ts.map +0 -1
  63. package/lib/should-polyfill.js +0 -18
  64. package/lib/supported-locales.d.ts +0 -2
  65. package/lib/supported-locales.d.ts.map +0 -1
  66. package/lib/supported-locales.js +0 -2
  67. package/locale-data/af.d.ts +0 -1
  68. package/locale-data/af.js +0 -8
  69. package/locale-data/ak.d.ts +0 -1
  70. package/locale-data/ak.js +0 -8
  71. package/locale-data/am.d.ts +0 -1
  72. package/locale-data/am.js +0 -8
  73. package/locale-data/an.d.ts +0 -1
  74. package/locale-data/an.js +0 -8
  75. package/locale-data/ar.d.ts +0 -1
  76. package/locale-data/ar.js +0 -14
  77. package/locale-data/ars.d.ts +0 -1
  78. package/locale-data/ars.js +0 -14
  79. package/locale-data/as.d.ts +0 -1
  80. package/locale-data/as.js +0 -12
  81. package/locale-data/asa.d.ts +0 -1
  82. package/locale-data/asa.js +0 -8
  83. package/locale-data/ast.d.ts +0 -1
  84. package/locale-data/ast.js +0 -9
  85. package/locale-data/az.d.ts +0 -1
  86. package/locale-data/az.js +0 -12
  87. package/locale-data/bal.d.ts +0 -1
  88. package/locale-data/bal.js +0 -7
  89. package/locale-data/be.d.ts +0 -1
  90. package/locale-data/be.js +0 -12
  91. package/locale-data/bem.d.ts +0 -1
  92. package/locale-data/bem.js +0 -8
  93. package/locale-data/bez.d.ts +0 -1
  94. package/locale-data/bez.js +0 -8
  95. package/locale-data/bg.d.ts +0 -1
  96. package/locale-data/bg.js +0 -8
  97. package/locale-data/bho.d.ts +0 -1
  98. package/locale-data/bho.js +0 -8
  99. package/locale-data/bm.d.ts +0 -1
  100. package/locale-data/bm.js +0 -7
  101. package/locale-data/bn.d.ts +0 -1
  102. package/locale-data/bn.js +0 -12
  103. package/locale-data/bo.d.ts +0 -1
  104. package/locale-data/bo.js +0 -7
  105. package/locale-data/br.d.ts +0 -1
  106. package/locale-data/br.js +0 -13
  107. package/locale-data/brx.d.ts +0 -1
  108. package/locale-data/brx.js +0 -8
  109. package/locale-data/bs.d.ts +0 -1
  110. package/locale-data/bs.js +0 -11
  111. package/locale-data/ca.d.ts +0 -1
  112. package/locale-data/ca.js +0 -12
  113. package/locale-data/ce.d.ts +0 -1
  114. package/locale-data/ce.js +0 -8
  115. package/locale-data/ceb.d.ts +0 -1
  116. package/locale-data/ceb.js +0 -9
  117. package/locale-data/cgg.d.ts +0 -1
  118. package/locale-data/cgg.js +0 -8
  119. package/locale-data/chr.d.ts +0 -1
  120. package/locale-data/chr.js +0 -8
  121. package/locale-data/ckb.d.ts +0 -1
  122. package/locale-data/ckb.js +0 -8
  123. package/locale-data/cs.d.ts +0 -1
  124. package/locale-data/cs.js +0 -12
  125. package/locale-data/cy.d.ts +0 -1
  126. package/locale-data/cy.js +0 -18
  127. package/locale-data/da.d.ts +0 -1
  128. package/locale-data/da.js +0 -9
  129. package/locale-data/de.d.ts +0 -1
  130. package/locale-data/de.js +0 -9
  131. package/locale-data/doi.d.ts +0 -1
  132. package/locale-data/doi.js +0 -8
  133. package/locale-data/dsb.d.ts +0 -1
  134. package/locale-data/dsb.js +0 -12
  135. package/locale-data/dv.d.ts +0 -1
  136. package/locale-data/dv.js +0 -8
  137. package/locale-data/dz.d.ts +0 -1
  138. package/locale-data/dz.js +0 -7
  139. package/locale-data/ee.d.ts +0 -1
  140. package/locale-data/ee.js +0 -8
  141. package/locale-data/el.d.ts +0 -1
  142. package/locale-data/el.js +0 -8
  143. package/locale-data/en.d.ts +0 -1
  144. package/locale-data/eo.d.ts +0 -1
  145. package/locale-data/eo.js +0 -8
  146. package/locale-data/es.d.ts +0 -1
  147. package/locale-data/es.js +0 -11
  148. package/locale-data/et.d.ts +0 -1
  149. package/locale-data/et.js +0 -9
  150. package/locale-data/eu.d.ts +0 -1
  151. package/locale-data/eu.js +0 -8
  152. package/locale-data/fa.d.ts +0 -1
  153. package/locale-data/fa.js +0 -8
  154. package/locale-data/ff.d.ts +0 -1
  155. package/locale-data/ff.js +0 -8
  156. package/locale-data/fi.d.ts +0 -1
  157. package/locale-data/fi.js +0 -9
  158. package/locale-data/fil.d.ts +0 -1
  159. package/locale-data/fil.js +0 -9
  160. package/locale-data/fo.d.ts +0 -1
  161. package/locale-data/fo.js +0 -8
  162. package/locale-data/fr.d.ts +0 -1
  163. package/locale-data/fur.d.ts +0 -1
  164. package/locale-data/fur.js +0 -8
  165. package/locale-data/fy.d.ts +0 -1
  166. package/locale-data/fy.js +0 -9
  167. package/locale-data/ga.d.ts +0 -1
  168. package/locale-data/ga.js +0 -13
  169. package/locale-data/gd.d.ts +0 -1
  170. package/locale-data/gd.js +0 -15
  171. package/locale-data/gl.d.ts +0 -1
  172. package/locale-data/gl.js +0 -9
  173. package/locale-data/gsw.d.ts +0 -1
  174. package/locale-data/gsw.js +0 -8
  175. package/locale-data/gu.d.ts +0 -1
  176. package/locale-data/gu.js +0 -12
  177. package/locale-data/guw.d.ts +0 -1
  178. package/locale-data/guw.js +0 -8
  179. package/locale-data/gv.d.ts +0 -1
  180. package/locale-data/gv.js +0 -13
  181. package/locale-data/ha.d.ts +0 -1
  182. package/locale-data/ha.js +0 -8
  183. package/locale-data/haw.d.ts +0 -1
  184. package/locale-data/haw.js +0 -8
  185. package/locale-data/he.d.ts +0 -1
  186. package/locale-data/he.js +0 -12
  187. package/locale-data/hi.d.ts +0 -1
  188. package/locale-data/hi.js +0 -12
  189. package/locale-data/hnj.d.ts +0 -1
  190. package/locale-data/hnj.js +0 -7
  191. package/locale-data/hr.d.ts +0 -1
  192. package/locale-data/hr.js +0 -11
  193. package/locale-data/hsb.d.ts +0 -1
  194. package/locale-data/hsb.js +0 -12
  195. package/locale-data/hu.d.ts +0 -1
  196. package/locale-data/hu.js +0 -8
  197. package/locale-data/hy.d.ts +0 -1
  198. package/locale-data/hy.js +0 -8
  199. package/locale-data/ia.d.ts +0 -1
  200. package/locale-data/ia.js +0 -9
  201. package/locale-data/id.d.ts +0 -1
  202. package/locale-data/id.js +0 -7
  203. package/locale-data/ig.d.ts +0 -1
  204. package/locale-data/ig.js +0 -7
  205. package/locale-data/ii.d.ts +0 -1
  206. package/locale-data/ii.js +0 -7
  207. package/locale-data/io.d.ts +0 -1
  208. package/locale-data/io.js +0 -9
  209. package/locale-data/is.d.ts +0 -1
  210. package/locale-data/is.js +0 -9
  211. package/locale-data/it.d.ts +0 -1
  212. package/locale-data/it.js +0 -11
  213. package/locale-data/iu.d.ts +0 -1
  214. package/locale-data/iu.js +0 -10
  215. package/locale-data/ja.d.ts +0 -1
  216. package/locale-data/ja.js +0 -7
  217. package/locale-data/jbo.d.ts +0 -1
  218. package/locale-data/jbo.js +0 -7
  219. package/locale-data/jgo.d.ts +0 -1
  220. package/locale-data/jgo.js +0 -8
  221. package/locale-data/jmc.d.ts +0 -1
  222. package/locale-data/jmc.js +0 -8
  223. package/locale-data/jv.d.ts +0 -1
  224. package/locale-data/jv.js +0 -7
  225. package/locale-data/jw.d.ts +0 -1
  226. package/locale-data/jw.js +0 -7
  227. package/locale-data/ka.d.ts +0 -1
  228. package/locale-data/ka.js +0 -11
  229. package/locale-data/kab.d.ts +0 -1
  230. package/locale-data/kab.js +0 -8
  231. package/locale-data/kaj.d.ts +0 -1
  232. package/locale-data/kaj.js +0 -8
  233. package/locale-data/kcg.d.ts +0 -1
  234. package/locale-data/kcg.js +0 -8
  235. package/locale-data/kde.d.ts +0 -1
  236. package/locale-data/kde.js +0 -7
  237. package/locale-data/kea.d.ts +0 -1
  238. package/locale-data/kea.js +0 -7
  239. package/locale-data/kk.d.ts +0 -1
  240. package/locale-data/kk.js +0 -9
  241. package/locale-data/kkj.d.ts +0 -1
  242. package/locale-data/kkj.js +0 -8
  243. package/locale-data/kl.d.ts +0 -1
  244. package/locale-data/kl.js +0 -8
  245. package/locale-data/km.d.ts +0 -1
  246. package/locale-data/km.js +0 -7
  247. package/locale-data/kn.d.ts +0 -1
  248. package/locale-data/kn.js +0 -8
  249. package/locale-data/ko.d.ts +0 -1
  250. package/locale-data/ko.js +0 -7
  251. package/locale-data/ks.d.ts +0 -1
  252. package/locale-data/ks.js +0 -8
  253. package/locale-data/ksb.d.ts +0 -1
  254. package/locale-data/ksb.js +0 -8
  255. package/locale-data/ksh.d.ts +0 -1
  256. package/locale-data/ksh.js +0 -10
  257. package/locale-data/ku.d.ts +0 -1
  258. package/locale-data/ku.js +0 -8
  259. package/locale-data/kw.d.ts +0 -1
  260. package/locale-data/kw.js +0 -16
  261. package/locale-data/ky.d.ts +0 -1
  262. package/locale-data/ky.js +0 -8
  263. package/locale-data/lag.d.ts +0 -1
  264. package/locale-data/lag.js +0 -11
  265. package/locale-data/lb.d.ts +0 -1
  266. package/locale-data/lb.js +0 -8
  267. package/locale-data/lg.d.ts +0 -1
  268. package/locale-data/lg.js +0 -8
  269. package/locale-data/lij.d.ts +0 -1
  270. package/locale-data/lij.js +0 -9
  271. package/locale-data/lkt.d.ts +0 -1
  272. package/locale-data/lkt.js +0 -7
  273. package/locale-data/ln.d.ts +0 -1
  274. package/locale-data/ln.js +0 -8
  275. package/locale-data/lo.d.ts +0 -1
  276. package/locale-data/lo.js +0 -8
  277. package/locale-data/lt.d.ts +0 -1
  278. package/locale-data/lt.js +0 -12
  279. package/locale-data/lv.d.ts +0 -1
  280. package/locale-data/lv.js +0 -11
  281. package/locale-data/mas.d.ts +0 -1
  282. package/locale-data/mas.js +0 -8
  283. package/locale-data/mg.d.ts +0 -1
  284. package/locale-data/mg.js +0 -8
  285. package/locale-data/mgo.d.ts +0 -1
  286. package/locale-data/mgo.js +0 -8
  287. package/locale-data/mk.d.ts +0 -1
  288. package/locale-data/mk.js +0 -12
  289. package/locale-data/ml.d.ts +0 -1
  290. package/locale-data/ml.js +0 -8
  291. package/locale-data/mn.d.ts +0 -1
  292. package/locale-data/mn.js +0 -8
  293. package/locale-data/mo.d.ts +0 -1
  294. package/locale-data/mo.js +0 -11
  295. package/locale-data/mr.d.ts +0 -1
  296. package/locale-data/mr.js +0 -11
  297. package/locale-data/ms.d.ts +0 -1
  298. package/locale-data/ms.js +0 -8
  299. package/locale-data/mt.d.ts +0 -1
  300. package/locale-data/mt.js +0 -12
  301. package/locale-data/my.d.ts +0 -1
  302. package/locale-data/my.js +0 -7
  303. package/locale-data/nah.d.ts +0 -1
  304. package/locale-data/nah.js +0 -8
  305. package/locale-data/naq.d.ts +0 -1
  306. package/locale-data/naq.js +0 -10
  307. package/locale-data/nb.d.ts +0 -1
  308. package/locale-data/nb.js +0 -8
  309. package/locale-data/nd.d.ts +0 -1
  310. package/locale-data/nd.js +0 -8
  311. package/locale-data/ne.d.ts +0 -1
  312. package/locale-data/ne.js +0 -9
  313. package/locale-data/nl.d.ts +0 -1
  314. package/locale-data/nl.js +0 -9
  315. package/locale-data/nn.d.ts +0 -1
  316. package/locale-data/nn.js +0 -8
  317. package/locale-data/nnh.d.ts +0 -1
  318. package/locale-data/nnh.js +0 -8
  319. package/locale-data/no.d.ts +0 -1
  320. package/locale-data/no.js +0 -8
  321. package/locale-data/nqo.d.ts +0 -1
  322. package/locale-data/nqo.js +0 -7
  323. package/locale-data/nr.d.ts +0 -1
  324. package/locale-data/nr.js +0 -8
  325. package/locale-data/nso.d.ts +0 -1
  326. package/locale-data/nso.js +0 -8
  327. package/locale-data/ny.d.ts +0 -1
  328. package/locale-data/ny.js +0 -8
  329. package/locale-data/nyn.d.ts +0 -1
  330. package/locale-data/nyn.js +0 -8
  331. package/locale-data/om.d.ts +0 -1
  332. package/locale-data/om.js +0 -8
  333. package/locale-data/or.d.ts +0 -1
  334. package/locale-data/or.js +0 -13
  335. package/locale-data/os.d.ts +0 -1
  336. package/locale-data/os.js +0 -8
  337. package/locale-data/osa.d.ts +0 -1
  338. package/locale-data/osa.js +0 -7
  339. package/locale-data/pa.d.ts +0 -1
  340. package/locale-data/pa.js +0 -8
  341. package/locale-data/pap.d.ts +0 -1
  342. package/locale-data/pap.js +0 -8
  343. package/locale-data/pcm.d.ts +0 -1
  344. package/locale-data/pcm.js +0 -8
  345. package/locale-data/pl.d.ts +0 -1
  346. package/locale-data/pl.js +0 -12
  347. package/locale-data/prg.d.ts +0 -1
  348. package/locale-data/prg.js +0 -11
  349. package/locale-data/ps.d.ts +0 -1
  350. package/locale-data/ps.js +0 -8
  351. package/locale-data/pt-PT.d.ts +0 -1
  352. package/locale-data/pt-PT.js +0 -11
  353. package/locale-data/pt.d.ts +0 -1
  354. package/locale-data/pt.js +0 -11
  355. package/locale-data/rm.d.ts +0 -1
  356. package/locale-data/rm.js +0 -8
  357. package/locale-data/ro.d.ts +0 -1
  358. package/locale-data/ro.js +0 -11
  359. package/locale-data/rof.d.ts +0 -1
  360. package/locale-data/rof.js +0 -8
  361. package/locale-data/ru.d.ts +0 -1
  362. package/locale-data/ru.js +0 -12
  363. package/locale-data/rwk.d.ts +0 -1
  364. package/locale-data/rwk.js +0 -8
  365. package/locale-data/sah.d.ts +0 -1
  366. package/locale-data/sah.js +0 -7
  367. package/locale-data/saq.d.ts +0 -1
  368. package/locale-data/saq.js +0 -8
  369. package/locale-data/sat.d.ts +0 -1
  370. package/locale-data/sat.js +0 -10
  371. package/locale-data/sc.d.ts +0 -1
  372. package/locale-data/sc.js +0 -9
  373. package/locale-data/scn.d.ts +0 -1
  374. package/locale-data/scn.js +0 -9
  375. package/locale-data/sd.d.ts +0 -1
  376. package/locale-data/sd.js +0 -8
  377. package/locale-data/sdh.d.ts +0 -1
  378. package/locale-data/sdh.js +0 -8
  379. package/locale-data/se.d.ts +0 -1
  380. package/locale-data/se.js +0 -10
  381. package/locale-data/seh.d.ts +0 -1
  382. package/locale-data/seh.js +0 -8
  383. package/locale-data/ses.d.ts +0 -1
  384. package/locale-data/ses.js +0 -7
  385. package/locale-data/sg.d.ts +0 -1
  386. package/locale-data/sg.js +0 -7
  387. package/locale-data/sh.d.ts +0 -1
  388. package/locale-data/sh.js +0 -11
  389. package/locale-data/shi.d.ts +0 -1
  390. package/locale-data/shi.js +0 -11
  391. package/locale-data/si.d.ts +0 -1
  392. package/locale-data/si.js +0 -9
  393. package/locale-data/sk.d.ts +0 -1
  394. package/locale-data/sk.js +0 -12
  395. package/locale-data/sl.d.ts +0 -1
  396. package/locale-data/sl.js +0 -12
  397. package/locale-data/sma.d.ts +0 -1
  398. package/locale-data/sma.js +0 -10
  399. package/locale-data/smi.d.ts +0 -1
  400. package/locale-data/smi.js +0 -10
  401. package/locale-data/smj.d.ts +0 -1
  402. package/locale-data/smj.js +0 -10
  403. package/locale-data/smn.d.ts +0 -1
  404. package/locale-data/smn.js +0 -10
  405. package/locale-data/sms.d.ts +0 -1
  406. package/locale-data/sms.js +0 -10
  407. package/locale-data/sn.d.ts +0 -1
  408. package/locale-data/sn.js +0 -8
  409. package/locale-data/so.d.ts +0 -1
  410. package/locale-data/so.js +0 -8
  411. package/locale-data/sq.d.ts +0 -1
  412. package/locale-data/sq.js +0 -11
  413. package/locale-data/sr.d.ts +0 -1
  414. package/locale-data/sr.js +0 -11
  415. package/locale-data/ss.d.ts +0 -1
  416. package/locale-data/ss.js +0 -8
  417. package/locale-data/ssy.d.ts +0 -1
  418. package/locale-data/ssy.js +0 -8
  419. package/locale-data/st.d.ts +0 -1
  420. package/locale-data/st.js +0 -8
  421. package/locale-data/su.d.ts +0 -1
  422. package/locale-data/su.js +0 -7
  423. package/locale-data/sv.d.ts +0 -1
  424. package/locale-data/sv.js +0 -9
  425. package/locale-data/sw.d.ts +0 -1
  426. package/locale-data/sw.js +0 -9
  427. package/locale-data/syr.d.ts +0 -1
  428. package/locale-data/syr.js +0 -8
  429. package/locale-data/ta.d.ts +0 -1
  430. package/locale-data/ta.js +0 -8
  431. package/locale-data/te.d.ts +0 -1
  432. package/locale-data/te.js +0 -8
  433. package/locale-data/teo.d.ts +0 -1
  434. package/locale-data/teo.js +0 -8
  435. package/locale-data/th.d.ts +0 -1
  436. package/locale-data/th.js +0 -7
  437. package/locale-data/ti.d.ts +0 -1
  438. package/locale-data/ti.js +0 -8
  439. package/locale-data/tig.d.ts +0 -1
  440. package/locale-data/tig.js +0 -8
  441. package/locale-data/tk.d.ts +0 -1
  442. package/locale-data/tk.js +0 -9
  443. package/locale-data/tl.d.ts +0 -1
  444. package/locale-data/tl.js +0 -9
  445. package/locale-data/tn.d.ts +0 -1
  446. package/locale-data/tn.js +0 -8
  447. package/locale-data/to.d.ts +0 -1
  448. package/locale-data/to.js +0 -7
  449. package/locale-data/tpi.d.ts +0 -1
  450. package/locale-data/tpi.js +0 -7
  451. package/locale-data/tr.d.ts +0 -1
  452. package/locale-data/tr.js +0 -8
  453. package/locale-data/ts.d.ts +0 -1
  454. package/locale-data/ts.js +0 -8
  455. package/locale-data/tzm.d.ts +0 -1
  456. package/locale-data/tzm.js +0 -9
  457. package/locale-data/ug.d.ts +0 -1
  458. package/locale-data/ug.js +0 -8
  459. package/locale-data/uk.d.ts +0 -1
  460. package/locale-data/uk.js +0 -12
  461. package/locale-data/und.d.ts +0 -1
  462. package/locale-data/und.js +0 -7
  463. package/locale-data/ur.d.ts +0 -1
  464. package/locale-data/ur.js +0 -9
  465. package/locale-data/uz.d.ts +0 -1
  466. package/locale-data/uz.js +0 -8
  467. package/locale-data/ve.d.ts +0 -1
  468. package/locale-data/ve.js +0 -8
  469. package/locale-data/vi.d.ts +0 -1
  470. package/locale-data/vi.js +0 -8
  471. package/locale-data/vo.d.ts +0 -1
  472. package/locale-data/vo.js +0 -8
  473. package/locale-data/vun.d.ts +0 -1
  474. package/locale-data/vun.js +0 -8
  475. package/locale-data/wa.d.ts +0 -1
  476. package/locale-data/wa.js +0 -8
  477. package/locale-data/wae.d.ts +0 -1
  478. package/locale-data/wae.js +0 -8
  479. package/locale-data/wo.d.ts +0 -1
  480. package/locale-data/wo.js +0 -7
  481. package/locale-data/xh.d.ts +0 -1
  482. package/locale-data/xh.js +0 -8
  483. package/locale-data/xog.d.ts +0 -1
  484. package/locale-data/xog.js +0 -8
  485. package/locale-data/yi.d.ts +0 -1
  486. package/locale-data/yi.js +0 -9
  487. package/locale-data/yo.d.ts +0 -1
  488. package/locale-data/yo.js +0 -7
  489. package/locale-data/yue.d.ts +0 -1
  490. package/locale-data/yue.js +0 -7
  491. package/locale-data/zh.d.ts +0 -1
  492. package/locale-data/zh.js +0 -7
  493. package/locale-data/zu.d.ts +0 -1
  494. package/locale-data/zu.js +0 -8
  495. package/polyfill-force.d.ts +0 -2
  496. package/polyfill-force.d.ts.map +0 -1
  497. package/polyfill-force.js +0 -9
  498. package/polyfill.d.ts +0 -2
  499. package/polyfill.d.ts.map +0 -1
  500. package/polyfill.iife.js +0 -2753
  501. package/polyfill.js +0 -12
  502. package/should-polyfill.d.ts +0 -2
  503. package/should-polyfill.d.ts.map +0 -1
  504. package/should-polyfill.js +0 -22
  505. package/supported-locales.d.ts +0 -2
  506. package/supported-locales.d.ts.map +0 -1
  507. package/supported-locales.js +0 -5
@@ -1,23 +0,0 @@
1
- import { Type, invariant, FormatNumericToString, } from '@formatjs/ecma402-abstract';
2
- import { GetOperands } from './GetOperands';
3
- /**
4
- * http://ecma-international.org/ecma-402/7.0/index.html#sec-resolveplural
5
- * @param pl
6
- * @param n
7
- * @param PluralRuleSelect Has to pass in bc it's implementation-specific
8
- */
9
- export function ResolvePlural(pl, n, _a) {
10
- var getInternalSlots = _a.getInternalSlots, PluralRuleSelect = _a.PluralRuleSelect;
11
- var internalSlots = getInternalSlots(pl);
12
- invariant(Type(internalSlots) === 'Object', 'pl has to be an object');
13
- invariant('initializedPluralRules' in internalSlots, 'pluralrules must be initialized');
14
- invariant(Type(n) === 'Number', 'n must be a number');
15
- if (!isFinite(n)) {
16
- return 'other';
17
- }
18
- var locale = internalSlots.locale, type = internalSlots.type;
19
- var res = FormatNumericToString(internalSlots, n);
20
- var s = res.formattedString;
21
- var operands = GetOperands(s);
22
- return PluralRuleSelect(locale, type, n, operands);
23
- }
@@ -1,3 +0,0 @@
1
- import { PluralRules, PluralRulesInternal } from '.';
2
- export default function getInternalSlots(x: PluralRules): PluralRulesInternal;
3
- //# sourceMappingURL=get_internal_slots.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get_internal_slots.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/get_internal_slots.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,GAAG,CAAA;AAIlD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,CAAC,EAAE,WAAW,GAAG,mBAAmB,CAO5E"}
@@ -1,9 +0,0 @@
1
- var internalSlotMap = new WeakMap();
2
- export default function getInternalSlots(x) {
3
- var internalSlots = internalSlotMap.get(x);
4
- if (!internalSlots) {
5
- internalSlots = Object.create(null);
6
- internalSlotMap.set(x, internalSlots);
7
- }
8
- return internalSlots;
9
- }
package/lib/index.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import { LDMLPluralRule, PluralRulesLocaleData, PluralRulesData, NumberFormatDigitInternalSlots } from '@formatjs/ecma402-abstract';
2
- export interface PluralRulesInternal extends NumberFormatDigitInternalSlots {
3
- initializedPluralRules: boolean;
4
- locale: string;
5
- type: 'cardinal' | 'ordinal';
6
- }
7
- export declare class PluralRules implements Intl.PluralRules {
8
- constructor(locales?: string | string[], options?: Intl.PluralRulesOptions);
9
- resolvedOptions(): any;
10
- select(val: number): LDMLPluralRule;
11
- toString(): string;
12
- static supportedLocalesOf(locales?: string | string[], options?: Pick<Intl.PluralRulesOptions, 'localeMatcher'>): string[];
13
- static __addLocaleData(...data: PluralRulesLocaleData[]): void;
14
- static localeData: Record<string, PluralRulesData>;
15
- static availableLocales: Set<string>;
16
- static __defaultLocale: string;
17
- static getDefaultLocale(): string;
18
- static relevantExtensionKeys: never[];
19
- static polyfilled: boolean;
20
- }
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,eAAe,EAEf,8BAA8B,EAG/B,MAAM,4BAA4B,CAAA;AAgBnC,MAAM,WAAW,mBAAoB,SAAQ,8BAA8B;IACzE,sBAAsB,EAAE,OAAO,CAAA;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,UAAU,GAAG,SAAS,CAAA;CAC7B;AAuBD,qBAAa,WAAY,YAAW,IAAI,CAAC,WAAW;gBACtC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,kBAAkB;IAgBnE,eAAe;IA4Bf,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc;IAM1C,QAAQ;WAGM,kBAAkB,CAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,eAAe,CAAC;WAQ5C,eAAe,CAAC,GAAG,IAAI,EAAE,qBAAqB,EAAE;IAS9D,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAK;IACvD,MAAM,CAAC,gBAAgB,cAAoB;IAC3C,MAAM,CAAC,eAAe,SAAK;IAC3B,MAAM,CAAC,gBAAgB;IAGvB,MAAM,CAAC,qBAAqB,UAAK;IACjC,OAAc,UAAU,UAAO;CAChC"}
package/lib/index.js DELETED
@@ -1,138 +0,0 @@
1
- import { __spreadArray } from "tslib";
2
- import { SupportedLocales, ToNumber, CanonicalizeLocaleList, } from '@formatjs/ecma402-abstract';
3
- import { InitializePluralRules } from './abstract/InitializePluralRules';
4
- import { ResolvePlural } from './abstract/ResolvePlural';
5
- import getInternalSlots from './get_internal_slots';
6
- function validateInstance(instance, method) {
7
- if (!(instance instanceof PluralRules)) {
8
- throw new TypeError("Method Intl.PluralRules.prototype.".concat(method, " called on incompatible receiver ").concat(String(instance)));
9
- }
10
- }
11
- /**
12
- * http://ecma-international.org/ecma-402/7.0/index.html#sec-pluralruleselect
13
- * @param locale
14
- * @param type
15
- * @param _n
16
- * @param param3
17
- */
18
- function PluralRuleSelect(locale, type, _n, _a) {
19
- var IntegerDigits = _a.IntegerDigits, NumberOfFractionDigits = _a.NumberOfFractionDigits, FractionDigits = _a.FractionDigits;
20
- return PluralRules.localeData[locale].fn(NumberOfFractionDigits
21
- ? "".concat(IntegerDigits, ".").concat(FractionDigits)
22
- : IntegerDigits, type === 'ordinal');
23
- }
24
- var PluralRules = /** @class */ (function () {
25
- function PluralRules(locales, options) {
26
- // test262/test/intl402/RelativeTimeFormat/constructor/constructor/newtarget-undefined.js
27
- // Cannot use `new.target` bc of IE11 & TS transpiles it to something else
28
- var newTarget = this && this instanceof PluralRules ? this.constructor : void 0;
29
- if (!newTarget) {
30
- throw new TypeError("Intl.PluralRules must be called with 'new'");
31
- }
32
- return InitializePluralRules(this, locales, options, {
33
- availableLocales: PluralRules.availableLocales,
34
- relevantExtensionKeys: PluralRules.relevantExtensionKeys,
35
- localeData: PluralRules.localeData,
36
- getDefaultLocale: PluralRules.getDefaultLocale,
37
- getInternalSlots: getInternalSlots,
38
- });
39
- }
40
- PluralRules.prototype.resolvedOptions = function () {
41
- validateInstance(this, 'resolvedOptions');
42
- var opts = Object.create(null);
43
- var internalSlots = getInternalSlots(this);
44
- opts.locale = internalSlots.locale;
45
- opts.type = internalSlots.type;
46
- [
47
- 'minimumIntegerDigits',
48
- 'minimumFractionDigits',
49
- 'maximumFractionDigits',
50
- 'minimumSignificantDigits',
51
- 'maximumSignificantDigits',
52
- ].forEach(function (field) {
53
- var val = internalSlots[field];
54
- if (val !== undefined) {
55
- opts[field] = val;
56
- }
57
- });
58
- opts.pluralCategories = __spreadArray([], PluralRules.localeData[opts.locale].categories[opts.type], true);
59
- return opts;
60
- };
61
- PluralRules.prototype.select = function (val) {
62
- var pr = this;
63
- validateInstance(pr, 'select');
64
- var n = ToNumber(val);
65
- return ResolvePlural(pr, n, { getInternalSlots: getInternalSlots, PluralRuleSelect: PluralRuleSelect });
66
- };
67
- PluralRules.prototype.toString = function () {
68
- return '[object Intl.PluralRules]';
69
- };
70
- PluralRules.supportedLocalesOf = function (locales, options) {
71
- return SupportedLocales(PluralRules.availableLocales, CanonicalizeLocaleList(locales), options);
72
- };
73
- PluralRules.__addLocaleData = function () {
74
- var data = [];
75
- for (var _i = 0; _i < arguments.length; _i++) {
76
- data[_i] = arguments[_i];
77
- }
78
- for (var _a = 0, data_1 = data; _a < data_1.length; _a++) {
79
- var _b = data_1[_a], d = _b.data, locale = _b.locale;
80
- PluralRules.localeData[locale] = d;
81
- PluralRules.availableLocales.add(locale);
82
- if (!PluralRules.__defaultLocale) {
83
- PluralRules.__defaultLocale = locale;
84
- }
85
- }
86
- };
87
- PluralRules.getDefaultLocale = function () {
88
- return PluralRules.__defaultLocale;
89
- };
90
- PluralRules.localeData = {};
91
- PluralRules.availableLocales = new Set();
92
- PluralRules.__defaultLocale = '';
93
- PluralRules.relevantExtensionKeys = [];
94
- PluralRules.polyfilled = true;
95
- return PluralRules;
96
- }());
97
- export { PluralRules };
98
- try {
99
- // IE11 does not have Symbol
100
- if (typeof Symbol !== 'undefined') {
101
- Object.defineProperty(PluralRules.prototype, Symbol.toStringTag, {
102
- value: 'Intl.PluralRules',
103
- writable: false,
104
- enumerable: false,
105
- configurable: true,
106
- });
107
- }
108
- try {
109
- // https://github.com/tc39/test262/blob/master/test/intl402/PluralRules/length.js
110
- Object.defineProperty(PluralRules, 'length', {
111
- value: 0,
112
- writable: false,
113
- enumerable: false,
114
- configurable: true,
115
- });
116
- }
117
- catch (error) {
118
- // IE 11 sets Function.prototype.length to be non-configurable which will cause the
119
- // above Object.defineProperty to throw an error.
120
- }
121
- // https://github.com/tc39/test262/blob/master/test/intl402/RelativeTimeFormat/constructor/length.js
122
- Object.defineProperty(PluralRules.prototype.constructor, 'length', {
123
- value: 0,
124
- writable: false,
125
- enumerable: false,
126
- configurable: true,
127
- });
128
- // https://github.com/tc39/test262/blob/master/test/intl402/RelativeTimeFormat/constructor/supportedLocalesOf/length.js
129
- Object.defineProperty(PluralRules.supportedLocalesOf, 'length', {
130
- value: 1,
131
- writable: false,
132
- enumerable: false,
133
- configurable: true,
134
- });
135
- }
136
- catch (ex) {
137
- // Meta fixes for test262
138
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=polyfill-force.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polyfill-force.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/polyfill-force.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { PluralRules } from './';
2
- Object.defineProperty(Intl, 'PluralRules', {
3
- value: PluralRules,
4
- writable: true,
5
- enumerable: false,
6
- configurable: true,
7
- });
package/lib/polyfill.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/polyfill.ts"],"names":[],"mappings":""}
package/lib/polyfill.js DELETED
@@ -1,10 +0,0 @@
1
- import { PluralRules } from './';
2
- import { shouldPolyfill } from './should-polyfill';
3
- if (shouldPolyfill()) {
4
- Object.defineProperty(Intl, 'PluralRules', {
5
- value: PluralRules,
6
- writable: true,
7
- enumerable: false,
8
- configurable: true,
9
- });
10
- }
@@ -1,2 +0,0 @@
1
- export declare function shouldPolyfill(locale?: string): string | undefined;
2
- //# sourceMappingURL=should-polyfill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/should-polyfill.ts"],"names":[],"mappings":"AAWA,wBAAgB,cAAc,CAAC,MAAM,SAAO,sBAS3C"}
@@ -1,18 +0,0 @@
1
- import { match } from '@formatjs/intl-localematcher';
2
- import { supportedLocales } from './supported-locales';
3
- function supportedLocalesOf(locale) {
4
- if (!locale) {
5
- return true;
6
- }
7
- var locales = Array.isArray(locale) ? locale : [locale];
8
- return Intl.PluralRules.supportedLocalesOf(locales).length === locales.length;
9
- }
10
- export function shouldPolyfill(locale) {
11
- if (locale === void 0) { locale = 'en'; }
12
- if (!('PluralRules' in Intl) ||
13
- new Intl.PluralRules('en', { minimumFractionDigits: 2 }).select(1) ===
14
- 'one' ||
15
- !supportedLocalesOf(locale)) {
16
- return locale ? match([locale], supportedLocales, 'en') : undefined;
17
- }
18
- }
@@ -1,2 +0,0 @@
1
- export declare const supportedLocales: string[];
2
- //# sourceMappingURL=supported-locales.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAqoC,CAAA"}
@@ -1,2 +0,0 @@
1
- // This file is generated from supported-locales-gen.ts
2
- export var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
@@ -1 +0,0 @@
1
- export {}
package/locale-data/af.js DELETED
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return n == 1 ? 'one' : 'other';
7
- }},"locale":"af"})
8
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/ak.js DELETED
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return (n == 0 || n == 1) ? 'one' : 'other';
7
- }},"locale":"ak"})
8
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/am.js DELETED
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return n >= 0 && n <= 1 ? 'one' : 'other';
7
- }},"locale":"am"})
8
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/an.js DELETED
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return n == 1 ? 'one' : 'other';
7
- }},"locale":"an"})
8
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/ar.js DELETED
@@ -1,14 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["zero","one","two","few","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
6
- if (ord) return 'other';
7
- return n == 0 ? 'zero'
8
- : n == 1 ? 'one'
9
- : n == 2 ? 'two'
10
- : (n100 >= 3 && n100 <= 10) ? 'few'
11
- : (n100 >= 11 && n100 <= 99) ? 'many'
12
- : 'other';
13
- }},"locale":"ar"})
14
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,14 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["zero","one","two","few","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
6
- if (ord) return 'other';
7
- return n == 0 ? 'zero'
8
- : n == 1 ? 'one'
9
- : n == 2 ? 'two'
10
- : (n100 >= 3 && n100 <= 10) ? 'few'
11
- : (n100 >= 11 && n100 <= 99) ? 'many'
12
- : 'other';
13
- }},"locale":"ars"})
14
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/as.js DELETED
@@ -1,12 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","two","few","many","other"]},"fn":function(n, ord) {
5
- if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
6
- : (n == 2 || n == 3) ? 'two'
7
- : n == 4 ? 'few'
8
- : n == 6 ? 'many'
9
- : 'other';
10
- return n >= 0 && n <= 1 ? 'one' : 'other';
11
- }},"locale":"as"})
12
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return n == 1 ? 'one' : 'other';
7
- }},"locale":"asa"})
8
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,9 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), v0 = !s[1];
6
- if (ord) return 'other';
7
- return n == 1 && v0 ? 'one' : 'other';
8
- }},"locale":"ast"})
9
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/az.js DELETED
@@ -1,12 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","few","many","other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
6
- if (ord) return (i10 == 1 || i10 == 2 || i10 == 5 || i10 == 7 || i10 == 8) || (i100 == 20 || i100 == 50 || i100 == 70 || i100 == 80) ? 'one'
7
- : (i10 == 3 || i10 == 4) || (i1000 == 100 || i1000 == 200 || i1000 == 300 || i1000 == 400 || i1000 == 500 || i1000 == 600 || i1000 == 700 || i1000 == 800 || i1000 == 900) ? 'few'
8
- : i == 0 || i10 == 6 || (i100 == 40 || i100 == 60 || i100 == 90) ? 'many'
9
- : 'other';
10
- return n == 1 ? 'one' : 'other';
11
- }},"locale":"az"})
12
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,7 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","other"]},"fn":function(n, ord) {
5
- return n == 1 ? 'one' : 'other';
6
- }},"locale":"bal"})
7
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/be.js DELETED
@@ -1,12 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","few","many","other"],"ordinal":["few","other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
6
- if (ord) return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';
7
- return n10 == 1 && n100 != 11 ? 'one'
8
- : (n10 >= 2 && n10 <= 4) && (n100 < 12 || n100 > 14) ? 'few'
9
- : t0 && n10 == 0 || (n10 >= 5 && n10 <= 9) || (n100 >= 11 && n100 <= 14) ? 'many'
10
- : 'other';
11
- }},"locale":"be"})
12
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return n == 1 ? 'one' : 'other';
7
- }},"locale":"bem"})
8
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return n == 1 ? 'one' : 'other';
7
- }},"locale":"bez"})
8
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/bg.js DELETED
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return n == 1 ? 'one' : 'other';
7
- }},"locale":"bg"})
8
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return (n == 0 || n == 1) ? 'one' : 'other';
7
- }},"locale":"bho"})
8
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/bm.js DELETED
@@ -1,7 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- return 'other';
6
- }},"locale":"bm"})
7
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/bn.js DELETED
@@ -1,12 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","two","few","many","other"]},"fn":function(n, ord) {
5
- if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
6
- : (n == 2 || n == 3) ? 'two'
7
- : n == 4 ? 'few'
8
- : n == 6 ? 'many'
9
- : 'other';
10
- return n >= 0 && n <= 1 ? 'one' : 'other';
11
- }},"locale":"bn"})
12
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/bo.js DELETED
@@ -1,7 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- return 'other';
6
- }},"locale":"bo"})
7
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/br.js DELETED
@@ -1,13 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","two","few","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), n1000000 = t0 && s[0].slice(-6);
6
- if (ord) return 'other';
7
- return n10 == 1 && n100 != 11 && n100 != 71 && n100 != 91 ? 'one'
8
- : n10 == 2 && n100 != 12 && n100 != 72 && n100 != 92 ? 'two'
9
- : ((n10 == 3 || n10 == 4) || n10 == 9) && (n100 < 10 || n100 > 19) && (n100 < 70 || n100 > 79) && (n100 < 90 || n100 > 99) ? 'few'
10
- : n != 0 && t0 && n1000000 == 0 ? 'many'
11
- : 'other';
12
- }},"locale":"br"})
13
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,8 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- if (ord) return 'other';
6
- return n == 1 ? 'one' : 'other';
7
- }},"locale":"brx"})
8
- }
@@ -1 +0,0 @@
1
- export {}
package/locale-data/bs.js DELETED
@@ -1,11 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
4
- Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","few","other"],"ordinal":["other"]},"fn":function(n, ord) {
5
- var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2);
6
- if (ord) return 'other';
7
- return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
8
- : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
9
- : 'other';
10
- }},"locale":"bs"})
11
- }
@@ -1 +0,0 @@
1
- export {}