@formatjs/intl-numberformat 8.7.2 → 8.8.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/lib/index.js +4 -1
- package/lib/polyfill-force.js +8 -6
- package/lib/polyfill.js +10 -8
- package/lib/should-polyfill.js +8 -4
- package/lib/src/core.js +56 -52
- package/lib/src/currency-digits.generated.js +5 -1
- package/lib/src/get_internal_slots.js +4 -1
- package/lib/src/numbering-systems.generated.js +4 -1
- package/lib/src/to_locale_string.js +7 -3
- package/lib/src/types.js +2 -1
- package/lib/supported-locales.generated.js +4 -1
- package/locale-data/af-NA.js +2 -919
- package/locale-data/af.js +2 -919
- package/locale-data/agq.js +0 -1242
- package/locale-data/ak.js +0 -1242
- package/locale-data/am.js +0 -946
- package/locale-data/ar-AE.js +7 -315
- package/locale-data/ar-BH.js +9 -317
- package/locale-data/ar-DJ.js +9 -317
- package/locale-data/ar-DZ.js +7 -315
- package/locale-data/ar-EG.js +9 -317
- package/locale-data/ar-EH.js +7 -315
- package/locale-data/ar-ER.js +9 -317
- package/locale-data/ar-IL.js +9 -317
- package/locale-data/ar-IQ.js +9 -317
- package/locale-data/ar-JO.js +9 -317
- package/locale-data/ar-KM.js +9 -317
- package/locale-data/ar-KW.js +9 -317
- package/locale-data/ar-LB.js +9 -317
- package/locale-data/ar-LY.js +7 -315
- package/locale-data/ar-MA.js +7 -315
- package/locale-data/ar-MR.js +9 -317
- package/locale-data/ar-OM.js +9 -317
- package/locale-data/ar-PS.js +9 -317
- package/locale-data/ar-QA.js +9 -317
- package/locale-data/ar-SA.js +16 -320
- package/locale-data/ar-SD.js +9 -317
- package/locale-data/ar-SO.js +9 -317
- package/locale-data/ar-SS.js +9 -317
- package/locale-data/ar-SY.js +9 -317
- package/locale-data/ar-TD.js +9 -317
- package/locale-data/ar-TN.js +7 -315
- package/locale-data/ar-YE.js +9 -317
- package/locale-data/ar.js +9 -317
- package/locale-data/as.js +3 -979
- package/locale-data/asa.js +0 -1235
- package/locale-data/ast.js +0 -14
- package/locale-data/az-Cyrl.js +1 -1498
- package/locale-data/az-Latn.js +0 -238
- package/locale-data/az.js +0 -238
- package/locale-data/bas.js +0 -1235
- package/locale-data/be-tarask.js +4 -980
- package/locale-data/be.js +0 -976
- package/locale-data/bem.js +1 -1498
- package/locale-data/bez.js +0 -1242
- package/locale-data/bg.js +5 -231
- package/locale-data/bm.js +0 -1235
- package/locale-data/bn-IN.js +19 -222
- package/locale-data/bn.js +7 -210
- package/locale-data/bo-IN.js +1 -1494
- package/locale-data/bo.js +1 -1494
- package/locale-data/br.js +3 -53
- package/locale-data/brx.js +369 -555
- package/locale-data/bs-Cyrl.js +0 -147
- package/locale-data/bs-Latn.js +4 -31
- package/locale-data/bs.js +4 -31
- package/locale-data/ca-AD.js +23 -51
- package/locale-data/ca-ES-valencia.js +23 -51
- package/locale-data/ca-FR.js +23 -51
- package/locale-data/ca-IT.js +23 -51
- package/locale-data/ca.js +23 -51
- package/locale-data/ccp-IN.js +0 -253
- package/locale-data/ccp.js +0 -253
- package/locale-data/ce.js +0 -990
- package/locale-data/ceb.js +113 -1110
- package/locale-data/cgg.js +0 -1242
- package/locale-data/chr.js +0 -976
- package/locale-data/ckb-IR.js +4 -1495
- package/locale-data/ckb.js +4 -1495
- package/locale-data/cs.js +12 -17
- package/locale-data/cy.js +0 -193
- package/locale-data/da-GL.js +1 -218
- package/locale-data/da.js +1 -218
- package/locale-data/dav.js +0 -1242
- package/locale-data/de-AT.js +0 -7
- package/locale-data/de-BE.js +0 -7
- package/locale-data/de-CH.js +0 -7
- package/locale-data/de-IT.js +0 -7
- package/locale-data/de-LI.js +0 -7
- package/locale-data/de-LU.js +0 -7
- package/locale-data/de.js +0 -7
- package/locale-data/dje.js +0 -1235
- package/locale-data/doi.js +1 -1489
- package/locale-data/dsb.js +0 -792
- package/locale-data/dua.js +1 -1498
- package/locale-data/dyo.js +4 -1375
- package/locale-data/dz.js +9 -1293
- package/locale-data/ebu.js +0 -1242
- package/locale-data/ee-TG.js +0 -79
- package/locale-data/ee.js +0 -79
- package/locale-data/el-CY.js +0 -231
- package/locale-data/el.js +0 -231
- package/locale-data/en-001.js +20 -4
- package/locale-data/en-150.js +20 -4
- package/locale-data/en-AE.js +21 -5
- package/locale-data/en-AG.js +20 -4
- package/locale-data/en-AI.js +20 -4
- package/locale-data/en-AS.js +21 -5
- package/locale-data/en-AT.js +20 -4
- package/locale-data/en-AU.js +29 -12
- package/locale-data/en-BB.js +20 -4
- package/locale-data/en-BE.js +20 -4
- package/locale-data/en-BI.js +21 -5
- package/locale-data/en-BM.js +20 -4
- package/locale-data/en-BS.js +20 -4
- package/locale-data/en-BW.js +20 -4
- package/locale-data/en-BZ.js +20 -4
- package/locale-data/en-CA.js +36 -17
- package/locale-data/en-CC.js +20 -4
- package/locale-data/en-CH.js +20 -4
- package/locale-data/en-CK.js +20 -4
- package/locale-data/en-CM.js +20 -4
- package/locale-data/en-CX.js +20 -4
- package/locale-data/en-CY.js +20 -4
- package/locale-data/en-DE.js +20 -4
- package/locale-data/en-DG.js +20 -4
- package/locale-data/en-DK.js +20 -4
- package/locale-data/en-DM.js +20 -4
- package/locale-data/en-ER.js +20 -4
- package/locale-data/en-FI.js +20 -4
- package/locale-data/en-FJ.js +20 -4
- package/locale-data/en-FK.js +20 -4
- package/locale-data/en-FM.js +20 -4
- package/locale-data/en-GB.js +20 -4
- package/locale-data/en-GD.js +20 -4
- package/locale-data/en-GG.js +20 -4
- package/locale-data/en-GH.js +20 -4
- package/locale-data/en-GI.js +20 -4
- package/locale-data/en-GM.js +20 -4
- package/locale-data/en-GU.js +21 -5
- package/locale-data/en-GY.js +20 -4
- package/locale-data/en-HK.js +20 -4
- package/locale-data/en-IE.js +20 -4
- package/locale-data/en-IL.js +20 -4
- package/locale-data/en-IM.js +20 -4
- package/locale-data/en-IN.js +20 -4
- package/locale-data/en-IO.js +20 -4
- package/locale-data/en-JE.js +20 -4
- package/locale-data/en-JM.js +20 -4
- package/locale-data/en-KE.js +20 -4
- package/locale-data/en-KI.js +20 -4
- package/locale-data/en-KN.js +20 -4
- package/locale-data/en-KY.js +20 -4
- package/locale-data/en-LC.js +20 -4
- package/locale-data/en-LR.js +20 -4
- package/locale-data/en-LS.js +20 -4
- package/locale-data/en-MG.js +20 -4
- package/locale-data/en-MH.js +21 -5
- package/locale-data/en-MO.js +20 -4
- package/locale-data/en-MP.js +21 -5
- package/locale-data/en-MS.js +20 -4
- package/locale-data/en-MT.js +20 -4
- package/locale-data/en-MU.js +20 -4
- package/locale-data/en-MW.js +20 -4
- package/locale-data/en-MY.js +20 -4
- package/locale-data/en-NA.js +20 -4
- package/locale-data/en-NF.js +20 -4
- package/locale-data/en-NG.js +20 -4
- package/locale-data/en-NL.js +20 -4
- package/locale-data/en-NR.js +20 -4
- package/locale-data/en-NU.js +20 -4
- package/locale-data/en-NZ.js +20 -4
- package/locale-data/en-PG.js +20 -4
- package/locale-data/en-PH.js +21 -5
- package/locale-data/en-PK.js +20 -4
- package/locale-data/en-PN.js +20 -4
- package/locale-data/en-PR.js +21 -5
- package/locale-data/en-PW.js +20 -4
- package/locale-data/en-RW.js +20 -4
- package/locale-data/en-SB.js +20 -4
- package/locale-data/en-SC.js +20 -4
- package/locale-data/en-SD.js +20 -4
- package/locale-data/en-SE.js +20 -4
- package/locale-data/en-SG.js +20 -4
- package/locale-data/en-SH.js +20 -4
- package/locale-data/en-SI.js +20 -4
- package/locale-data/en-SL.js +20 -4
- package/locale-data/en-SS.js +20 -4
- package/locale-data/en-SX.js +20 -4
- package/locale-data/en-SZ.js +20 -4
- package/locale-data/en-TC.js +20 -4
- package/locale-data/en-TK.js +20 -4
- package/locale-data/en-TO.js +20 -4
- package/locale-data/en-TT.js +20 -4
- package/locale-data/en-TV.js +20 -4
- package/locale-data/en-TZ.js +20 -4
- package/locale-data/en-UG.js +20 -4
- package/locale-data/en-UM.js +21 -5
- package/locale-data/en-VC.js +20 -4
- package/locale-data/en-VG.js +20 -4
- package/locale-data/en-VI.js +21 -5
- package/locale-data/en-VU.js +20 -4
- package/locale-data/en-WS.js +20 -4
- package/locale-data/en-ZA.js +22 -6
- package/locale-data/en-ZM.js +20 -4
- package/locale-data/en-ZW.js +20 -4
- package/locale-data/en.js +21 -5
- package/locale-data/eo.js +1 -1498
- package/locale-data/es-419.js +1 -162
- package/locale-data/es-AR.js +1 -162
- package/locale-data/es-BO.js +1 -162
- package/locale-data/es-BR.js +1 -162
- package/locale-data/es-BZ.js +1 -162
- package/locale-data/es-CL.js +1 -162
- package/locale-data/es-CO.js +1 -162
- package/locale-data/es-CR.js +1 -162
- package/locale-data/es-CU.js +1 -162
- package/locale-data/es-DO.js +1 -162
- package/locale-data/es-EA.js +0 -161
- package/locale-data/es-EC.js +1 -162
- package/locale-data/es-GQ.js +0 -161
- package/locale-data/es-GT.js +1 -162
- package/locale-data/es-HN.js +1 -162
- package/locale-data/es-IC.js +0 -161
- package/locale-data/es-MX.js +5 -165
- package/locale-data/es-NI.js +1 -162
- package/locale-data/es-PA.js +1 -162
- package/locale-data/es-PE.js +1 -162
- package/locale-data/es-PH.js +0 -161
- package/locale-data/es-PR.js +1 -162
- package/locale-data/es-PY.js +1 -162
- package/locale-data/es-SV.js +1 -162
- package/locale-data/es-US.js +1 -162
- package/locale-data/es-UY.js +1 -162
- package/locale-data/es-VE.js +1 -162
- package/locale-data/es.js +0 -161
- package/locale-data/et.js +0 -203
- package/locale-data/eu.js +14 -0
- package/locale-data/ewo.js +0 -1235
- package/locale-data/fa-AF.js +3 -487
- package/locale-data/fa.js +3 -487
- package/locale-data/ff-Adlm-BF.js +260 -985
- package/locale-data/ff-Adlm-CM.js +260 -985
- package/locale-data/ff-Adlm-GH.js +260 -985
- package/locale-data/ff-Adlm-GM.js +260 -985
- package/locale-data/ff-Adlm-GW.js +260 -985
- package/locale-data/ff-Adlm-LR.js +260 -985
- package/locale-data/ff-Adlm-MR.js +260 -985
- package/locale-data/ff-Adlm-NE.js +260 -985
- package/locale-data/ff-Adlm-NG.js +260 -985
- package/locale-data/ff-Adlm-SL.js +265 -984
- package/locale-data/ff-Adlm-SN.js +260 -985
- package/locale-data/ff-Adlm.js +260 -985
- package/locale-data/ff-Latn-BF.js +0 -1242
- package/locale-data/ff-Latn-CM.js +0 -1242
- package/locale-data/ff-Latn-GH.js +0 -1242
- package/locale-data/ff-Latn-GM.js +0 -1242
- package/locale-data/ff-Latn-GN.js +0 -1242
- package/locale-data/ff-Latn-GW.js +0 -1242
- package/locale-data/ff-Latn-LR.js +0 -1242
- package/locale-data/ff-Latn-MR.js +0 -1242
- package/locale-data/ff-Latn-NE.js +0 -1242
- package/locale-data/ff-Latn-NG.js +0 -1242
- package/locale-data/ff-Latn-SL.js +5 -1241
- package/locale-data/ff-Latn.js +0 -1242
- package/locale-data/ff.js +0 -1242
- package/locale-data/fi.js +9 -2
- package/locale-data/fil.js +33 -959
- package/locale-data/fo-DK.js +0 -955
- package/locale-data/fo.js +0 -955
- package/locale-data/fr-BE.js +3 -157
- package/locale-data/fr-BF.js +3 -157
- package/locale-data/fr-BI.js +3 -157
- package/locale-data/fr-BJ.js +3 -157
- package/locale-data/fr-BL.js +3 -157
- package/locale-data/fr-CA.js +1 -155
- package/locale-data/fr-CD.js +3 -157
- package/locale-data/fr-CF.js +3 -157
- package/locale-data/fr-CG.js +3 -157
- package/locale-data/fr-CH.js +3 -157
- package/locale-data/fr-CI.js +3 -157
- package/locale-data/fr-CM.js +3 -157
- package/locale-data/fr-DJ.js +3 -157
- package/locale-data/fr-DZ.js +3 -157
- package/locale-data/fr-GA.js +3 -157
- package/locale-data/fr-GF.js +3 -157
- package/locale-data/fr-GN.js +3 -157
- package/locale-data/fr-GP.js +3 -157
- package/locale-data/fr-GQ.js +3 -157
- package/locale-data/fr-HT.js +3 -157
- package/locale-data/fr-KM.js +3 -157
- package/locale-data/fr-LU.js +3 -157
- package/locale-data/fr-MA.js +3 -157
- package/locale-data/fr-MC.js +3 -157
- package/locale-data/fr-MF.js +3 -157
- package/locale-data/fr-MG.js +3 -157
- package/locale-data/fr-ML.js +3 -157
- package/locale-data/fr-MQ.js +3 -157
- package/locale-data/fr-MR.js +3 -157
- package/locale-data/fr-MU.js +3 -157
- package/locale-data/fr-NC.js +3 -157
- package/locale-data/fr-NE.js +3 -157
- package/locale-data/fr-PF.js +3 -157
- package/locale-data/fr-PM.js +3 -157
- package/locale-data/fr-RE.js +3 -157
- package/locale-data/fr-RW.js +3 -157
- package/locale-data/fr-SC.js +3 -157
- package/locale-data/fr-SN.js +3 -157
- package/locale-data/fr-SY.js +3 -157
- package/locale-data/fr-TD.js +3 -157
- package/locale-data/fr-TG.js +3 -157
- package/locale-data/fr-TN.js +3 -157
- package/locale-data/fr-VU.js +3 -157
- package/locale-data/fr-WF.js +3 -157
- package/locale-data/fr-YT.js +3 -157
- package/locale-data/fr.js +3 -157
- package/locale-data/fur.js +0 -1232
- package/locale-data/fy.js +1 -50
- package/locale-data/ga-GB.js +2 -125
- package/locale-data/ga.js +2 -125
- package/locale-data/gd.js +16 -0
- package/locale-data/gl.js +7 -656
- package/locale-data/gsw-FR.js +2 -205
- package/locale-data/gsw-LI.js +2 -205
- package/locale-data/gsw.js +2 -205
- package/locale-data/gu.js +2 -969
- package/locale-data/guz.js +0 -1242
- package/locale-data/gv.js +1 -1498
- package/locale-data/ha-GH.js +12 -970
- package/locale-data/ha-NE.js +12 -970
- package/locale-data/ha.js +12 -970
- package/locale-data/haw.js +1 -1498
- package/locale-data/he.js +19 -532
- package/locale-data/hi.js +20 -810
- package/locale-data/hr-BA.js +1 -10
- package/locale-data/hr.js +1 -10
- package/locale-data/hsb.js +0 -792
- package/locale-data/hu.js +7 -112
- package/locale-data/hy.js +0 -967
- package/locale-data/ia.js +0 -1109
- package/locale-data/id.js +0 -35
- package/locale-data/ig.js +1 -999
- package/locale-data/ii.js +1 -1497
- package/locale-data/is.js +12 -543
- package/locale-data/it-CH.js +8 -212
- package/locale-data/it-SM.js +8 -212
- package/locale-data/it-VA.js +8 -212
- package/locale-data/it.js +8 -212
- package/locale-data/ja.js +3 -10
- package/locale-data/jgo.js +1 -1493
- package/locale-data/jmc.js +0 -1235
- package/locale-data/jv.js +0 -990
- package/locale-data/ka.js +1 -393
- package/locale-data/kab.js +0 -1242
- package/locale-data/kam.js +0 -1242
- package/locale-data/kde.js +0 -1235
- package/locale-data/kea.js +0 -1053
- package/locale-data/kgp.js +0 -28
- package/locale-data/khq.js +0 -1235
- package/locale-data/ki.js +0 -1242
- package/locale-data/kk.js +11 -985
- package/locale-data/kkj.js +1 -1497
- package/locale-data/kl.js +1 -1497
- package/locale-data/kln.js +0 -1242
- package/locale-data/km.js +0 -967
- package/locale-data/kn.js +14 -979
- package/locale-data/ko-KP.js +20 -97
- package/locale-data/ko.js +20 -97
- package/locale-data/kok.js +0 -998
- package/locale-data/ks-Arab.js +24 -345
- package/locale-data/ks.js +24 -345
- package/locale-data/ksb.js +0 -1235
- package/locale-data/ksf.js +0 -1242
- package/locale-data/ksh.js +0 -869
- package/locale-data/ku.js +1 -1497
- package/locale-data/kw.js +1 -1498
- package/locale-data/ky.js +0 -974
- package/locale-data/lag.js +0 -1242
- package/locale-data/lb.js +0 -175
- package/locale-data/lg.js +0 -1235
- package/locale-data/lkt.js +1 -1498
- package/locale-data/ln-AO.js +0 -1235
- package/locale-data/ln-CF.js +0 -1235
- package/locale-data/ln-CG.js +0 -1235
- package/locale-data/ln.js +0 -1235
- package/locale-data/lo.js +0 -56
- package/locale-data/lrc-IQ.js +4 -1487
- package/locale-data/lrc.js +4 -1487
- package/locale-data/lt.js +4 -11
- package/locale-data/lu.js +0 -1235
- package/locale-data/luo.js +0 -1242
- package/locale-data/luy.js +0 -1242
- package/locale-data/lv.js +0 -658
- package/locale-data/mai.js +1 -1489
- package/locale-data/mas-TZ.js +0 -1242
- package/locale-data/mas.js +0 -1242
- package/locale-data/mer.js +0 -1242
- package/locale-data/mfe.js +0 -1235
- package/locale-data/mg.js +0 -1235
- package/locale-data/mgh.js +1 -1492
- package/locale-data/mgo.js +1 -1496
- package/locale-data/mi.js +1 -1488
- package/locale-data/mk.js +1 -519
- package/locale-data/ml.js +0 -175
- package/locale-data/mn.js +0 -967
- package/locale-data/mni-Beng.js +1 -1489
- package/locale-data/mni.js +1 -1489
- package/locale-data/mr.js +12 -979
- package/locale-data/ms-BN.js +3 -908
- package/locale-data/ms-ID.js +3 -908
- package/locale-data/ms-SG.js +3 -908
- package/locale-data/ms.js +3 -908
- package/locale-data/mt.js +12 -1158
- package/locale-data/mua.js +0 -1235
- package/locale-data/my.js +84 -903
- package/locale-data/mzn.js +0 -1018
- package/locale-data/naq.js +0 -1235
- package/locale-data/nb-SJ.js +13 -10
- package/locale-data/nb.js +13 -10
- package/locale-data/nd.js +0 -1235
- package/locale-data/nds-NL.js +1 -1498
- package/locale-data/nds.js +1 -1498
- package/locale-data/ne-IN.js +4 -966
- package/locale-data/ne.js +4 -966
- package/locale-data/nl-AW.js +18 -3
- package/locale-data/nl-BE.js +18 -3
- package/locale-data/nl-BQ.js +18 -3
- package/locale-data/nl-CW.js +18 -3
- package/locale-data/nl-SR.js +18 -3
- package/locale-data/nl-SX.js +18 -3
- package/locale-data/nl.js +18 -3
- package/locale-data/nmg.js +0 -1235
- package/locale-data/nn.js +12 -8
- package/locale-data/nnh.js +1 -1497
- package/locale-data/no.js +13 -10
- package/locale-data/nus.js +1 -1498
- package/locale-data/nyn.js +0 -1235
- package/locale-data/om-KE.js +1 -1477
- package/locale-data/om.js +4 -1486
- package/locale-data/or.js +13 -996
- package/locale-data/os-RU.js +1 -1491
- package/locale-data/os.js +1 -1491
- package/locale-data/pa-Arab.js +1 -1495
- package/locale-data/pa-Guru.js +4 -786
- package/locale-data/pa.js +4 -786
- package/locale-data/pcm.js +1 -999
- package/locale-data/pl.js +0 -252
- package/locale-data/ps-PK.js +7 -1000
- package/locale-data/ps.js +7 -1000
- package/locale-data/pt-AO.js +1 -30
- package/locale-data/pt-CH.js +1 -30
- package/locale-data/pt-CV.js +1 -30
- package/locale-data/pt-GQ.js +1 -30
- package/locale-data/pt-GW.js +1 -30
- package/locale-data/pt-LU.js +1 -30
- package/locale-data/pt-MO.js +1 -30
- package/locale-data/pt-MZ.js +1 -30
- package/locale-data/pt-PT.js +1 -30
- package/locale-data/pt-ST.js +1 -30
- package/locale-data/pt-TL.js +1 -30
- package/locale-data/pt.js +4 -30
- package/locale-data/qu-BO.js +0 -998
- package/locale-data/qu-EC.js +0 -998
- package/locale-data/qu.js +0 -998
- package/locale-data/rm.js +0 -42
- package/locale-data/rn.js +0 -1244
- package/locale-data/ro-MD.js +11 -374
- package/locale-data/ro.js +11 -374
- package/locale-data/rof.js +0 -1242
- package/locale-data/ru-BY.js +1 -169
- package/locale-data/ru-KG.js +0 -168
- package/locale-data/ru-KZ.js +0 -168
- package/locale-data/ru-MD.js +0 -168
- package/locale-data/ru-UA.js +0 -168
- package/locale-data/ru.js +0 -168
- package/locale-data/rw.js +1 -1498
- package/locale-data/rwk.js +0 -1235
- package/locale-data/sa.js +1 -1489
- package/locale-data/sah.js +1 -1496
- package/locale-data/saq.js +0 -1242
- package/locale-data/sat-Olck.js +7 -1493
- package/locale-data/sat.js +7 -1493
- package/locale-data/sbp.js +0 -1242
- package/locale-data/sc.js +16 -0
- package/locale-data/sd-Arab.js +4 -981
- package/locale-data/sd-Deva.js +1 -1489
- package/locale-data/sd.js +4 -981
- package/locale-data/se-FI.js +4 -1477
- package/locale-data/se-SE.js +4 -1477
- package/locale-data/se.js +4 -1477
- package/locale-data/seh.js +0 -1228
- package/locale-data/ses.js +0 -1235
- package/locale-data/sg.js +0 -1242
- package/locale-data/shi-Latn.js +0 -1235
- package/locale-data/shi-Tfng.js +0 -1235
- package/locale-data/shi.js +0 -1235
- package/locale-data/si.js +0 -967
- package/locale-data/sk.js +5 -12
- package/locale-data/sl.js +4 -186
- package/locale-data/smn.js +1 -1472
- package/locale-data/sn.js +0 -1235
- package/locale-data/so-DJ.js +0 -913
- package/locale-data/so-ET.js +0 -913
- package/locale-data/so-KE.js +0 -913
- package/locale-data/so.js +0 -913
- package/locale-data/sq-MK.js +4 -978
- package/locale-data/sq-XK.js +4 -978
- package/locale-data/sq.js +4 -978
- package/locale-data/sr-Cyrl-BA.js +1 -141
- package/locale-data/sr-Cyrl-ME.js +1 -141
- package/locale-data/sr-Cyrl-XK.js +1 -141
- package/locale-data/sr-Cyrl.js +1 -141
- package/locale-data/sr-Latn-BA.js +1 -141
- package/locale-data/sr-Latn-ME.js +1 -141
- package/locale-data/sr-Latn-XK.js +1 -141
- package/locale-data/sr-Latn.js +1 -141
- package/locale-data/sr.js +1 -141
- package/locale-data/su-Latn.js +1 -1488
- package/locale-data/su.js +1 -1488
- package/locale-data/sv-AX.js +56 -51
- package/locale-data/sv-FI.js +56 -51
- package/locale-data/sv.js +56 -51
- package/locale-data/sw-CD.js +5 -937
- package/locale-data/sw-KE.js +5 -937
- package/locale-data/sw-UG.js +5 -937
- package/locale-data/sw.js +5 -937
- package/locale-data/ta-LK.js +7 -971
- package/locale-data/ta-MY.js +6 -970
- package/locale-data/ta-SG.js +6 -970
- package/locale-data/ta.js +7 -971
- package/locale-data/te.js +1 -967
- package/locale-data/teo-KE.js +0 -1242
- package/locale-data/teo.js +0 -1242
- package/locale-data/tg.js +1 -1482
- package/locale-data/th.js +0 -42
- package/locale-data/ti-ER.js +1 -1461
- package/locale-data/ti.js +1 -1461
- package/locale-data/tk.js +0 -976
- package/locale-data/to.js +1 -1469
- package/locale-data/tr-CY.js +0 -7
- package/locale-data/tr.js +0 -7
- package/locale-data/tt.js +1 -1489
- package/locale-data/twq.js +0 -1235
- package/locale-data/tzm.js +0 -1235
- package/locale-data/ug.js +0 -14
- package/locale-data/uk.js +2 -172
- package/locale-data/und.js +1 -1498
- package/locale-data/ur-IN.js +4 -936
- package/locale-data/ur.js +4 -936
- package/locale-data/uz-Arab.js +1 -1497
- package/locale-data/uz-Cyrl.js +1 -1392
- package/locale-data/uz-Latn.js +1 -975
- package/locale-data/uz.js +1 -975
- package/locale-data/vai-Latn.js +0 -1249
- package/locale-data/vai-Vaii.js +0 -1244
- package/locale-data/vai.js +0 -1244
- package/locale-data/vi.js +1 -57
- package/locale-data/vun.js +0 -1235
- package/locale-data/wae.js +1 -1489
- package/locale-data/wo.js +1 -1488
- package/locale-data/xh.js +303 -1160
- package/locale-data/xog.js +0 -1236
- package/locale-data/yav.js +16 -1418
- package/locale-data/yi.js +4 -1469
- package/locale-data/yo-BJ.js +39 -981
- package/locale-data/yo.js +39 -981
- package/locale-data/yrl-CO.js +0 -28
- package/locale-data/yrl-VE.js +0 -28
- package/locale-data/yrl.js +0 -28
- package/locale-data/yue-Hans.js +0 -8
- package/locale-data/yue-Hant.js +0 -8
- package/locale-data/yue.js +0 -8
- package/locale-data/zgh.js +0 -1234
- package/locale-data/zh-Hans-HK.js +35 -21
- package/locale-data/zh-Hans-MO.js +35 -21
- package/locale-data/zh-Hans-SG.js +35 -21
- package/locale-data/zh-Hans.js +35 -21
- package/locale-data/zh-Hant-HK.js +4 -12
- package/locale-data/zh-Hant-MO.js +4 -12
- package/locale-data/zh-Hant.js +4 -12
- package/locale-data/zh.js +35 -21
- package/locale-data/zu.js +0 -967
- package/package.json +7 -7
- package/polyfill.iife.js +7945 -2425
- package/src/currency-digits.generated.js +1 -0
- package/src/numbering-systems.generated.js +1 -1
- package/index.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/polyfill-force.d.ts.map +0 -1
- package/lib/polyfill.d.ts.map +0 -1
- package/lib/should-polyfill.d.ts.map +0 -1
- package/lib/src/core.d.ts.map +0 -1
- package/lib/src/currency-digits.generated.d.ts.map +0 -1
- package/lib/src/get_internal_slots.d.ts.map +0 -1
- package/lib/src/numbering-systems.generated.d.ts.map +0 -1
- package/lib/src/to_locale_string.d.ts.map +0 -1
- package/lib/src/types.d.ts.map +0 -1
- package/lib/supported-locales.generated.d.ts.map +0 -1
- package/polyfill-force.d.ts.map +0 -1
- package/polyfill.d.ts.map +0 -1
- package/should-polyfill.d.ts.map +0 -1
- package/src/core.d.ts.map +0 -1
- package/src/currency-digits.generated.d.ts.map +0 -1
- package/src/get_internal_slots.d.ts.map +0 -1
- package/src/numbering-systems.generated.d.ts.map +0 -1
- package/src/to_locale_string.d.ts.map +0 -1
- package/src/types.d.ts.map +0 -1
- package/supported-locales.generated.d.ts.map +0 -1
package/lib/index.js
CHANGED
package/lib/polyfill-force.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var core_1 = require("./src/core");
|
|
4
|
+
var to_locale_string_1 = require("./src/to_locale_string");
|
|
5
|
+
var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
|
|
6
|
+
(0, ecma402_abstract_1.defineProperty)(Intl, 'NumberFormat', { value: core_1.NumberFormat });
|
|
7
|
+
(0, ecma402_abstract_1.defineProperty)(Number.prototype, 'toLocaleString', {
|
|
6
8
|
value: function toLocaleString(locales, options) {
|
|
7
|
-
return
|
|
9
|
+
return (0, to_locale_string_1.toLocaleString)(this, locales, options);
|
|
8
10
|
},
|
|
9
11
|
});
|
package/lib/polyfill.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var core_1 = require("./src/core");
|
|
4
|
+
var to_locale_string_1 = require("./src/to_locale_string");
|
|
5
|
+
var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
|
|
6
|
+
var should_polyfill_1 = require("./should-polyfill");
|
|
7
|
+
if ((0, should_polyfill_1.shouldPolyfill)()) {
|
|
8
|
+
(0, ecma402_abstract_1.defineProperty)(Intl, 'NumberFormat', { value: core_1.NumberFormat });
|
|
9
|
+
(0, ecma402_abstract_1.defineProperty)(Number.prototype, 'toLocaleString', {
|
|
8
10
|
value: function toLocaleString(locales, options) {
|
|
9
|
-
return
|
|
11
|
+
return (0, to_locale_string_1.toLocaleString)(this, locales, options);
|
|
10
12
|
},
|
|
11
13
|
});
|
|
12
14
|
}
|
package/lib/should-polyfill.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.shouldPolyfill = void 0;
|
|
4
|
+
var intl_localematcher_1 = require("@formatjs/intl-localematcher");
|
|
5
|
+
var supported_locales_generated_1 = require("./supported-locales.generated");
|
|
3
6
|
/**
|
|
4
7
|
* Check if this is old Node that only supports en
|
|
5
8
|
* @returns
|
|
@@ -41,13 +44,14 @@ function supportedLocalesOf(locale) {
|
|
|
41
44
|
var locales = Array.isArray(locale) ? locale : [locale];
|
|
42
45
|
return Intl.NumberFormat.supportedLocalesOf(locales).length === locales.length;
|
|
43
46
|
}
|
|
44
|
-
|
|
47
|
+
function shouldPolyfill(locale) {
|
|
45
48
|
if (locale === void 0) { locale = 'en'; }
|
|
46
49
|
if (typeof Intl === 'undefined' ||
|
|
47
50
|
!('NumberFormat' in Intl) ||
|
|
48
51
|
!supportsES2020() ||
|
|
49
52
|
onlySupportsEn() ||
|
|
50
53
|
!supportedLocalesOf(locale)) {
|
|
51
|
-
return locale ? match([locale], supportedLocales, 'en') : undefined;
|
|
54
|
+
return locale ? (0, intl_localematcher_1.match)([locale], supported_locales_generated_1.supportedLocales, 'en') : undefined;
|
|
52
55
|
}
|
|
53
56
|
}
|
|
57
|
+
exports.shouldPolyfill = shouldPolyfill;
|
package/lib/src/core.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NumberFormat = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
|
|
6
|
+
var currency_digits_generated_1 = require("./currency-digits.generated");
|
|
7
|
+
var numbering_systems_generated_1 = require("./numbering-systems.generated");
|
|
4
8
|
// eslint-disable-next-line import/no-cycle
|
|
5
|
-
|
|
9
|
+
var get_internal_slots_1 = tslib_1.__importDefault(require("./get_internal_slots"));
|
|
6
10
|
var RESOLVED_OPTIONS_KEYS = [
|
|
7
11
|
'locale',
|
|
8
12
|
'numberingSystem',
|
|
@@ -25,23 +29,23 @@ var RESOLVED_OPTIONS_KEYS = [
|
|
|
25
29
|
/**
|
|
26
30
|
* https://tc39.es/ecma402/#sec-intl-numberformat-constructor
|
|
27
31
|
*/
|
|
28
|
-
|
|
32
|
+
exports.NumberFormat = function (locales, options) {
|
|
29
33
|
// Cannot use `new.target` bc of IE11 & TS transpiles it to something else
|
|
30
|
-
if (!this || !OrdinaryHasInstance(NumberFormat, this)) {
|
|
31
|
-
return new NumberFormat(locales, options);
|
|
34
|
+
if (!this || !(0, ecma402_abstract_1.OrdinaryHasInstance)(exports.NumberFormat, this)) {
|
|
35
|
+
return new exports.NumberFormat(locales, options);
|
|
32
36
|
}
|
|
33
|
-
InitializeNumberFormat(this, locales, options, {
|
|
34
|
-
getInternalSlots:
|
|
35
|
-
localeData: NumberFormat.localeData,
|
|
36
|
-
availableLocales: NumberFormat.availableLocales,
|
|
37
|
-
getDefaultLocale: NumberFormat.getDefaultLocale,
|
|
38
|
-
currencyDigitsData: currencyDigitsData,
|
|
39
|
-
numberingSystemNames: numberingSystemNames,
|
|
37
|
+
(0, ecma402_abstract_1.InitializeNumberFormat)(this, locales, options, {
|
|
38
|
+
getInternalSlots: get_internal_slots_1.default,
|
|
39
|
+
localeData: exports.NumberFormat.localeData,
|
|
40
|
+
availableLocales: exports.NumberFormat.availableLocales,
|
|
41
|
+
getDefaultLocale: exports.NumberFormat.getDefaultLocale,
|
|
42
|
+
currencyDigitsData: currency_digits_generated_1.currencyDigitsData,
|
|
43
|
+
numberingSystemNames: numbering_systems_generated_1.numberingSystemNames,
|
|
40
44
|
});
|
|
41
|
-
var internalSlots =
|
|
45
|
+
var internalSlots = (0, get_internal_slots_1.default)(this);
|
|
42
46
|
var dataLocale = internalSlots.dataLocale;
|
|
43
|
-
var dataLocaleData = NumberFormat.localeData[dataLocale];
|
|
44
|
-
invariant(dataLocaleData !== undefined, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
|
|
47
|
+
var dataLocaleData = exports.NumberFormat.localeData[dataLocale];
|
|
48
|
+
(0, ecma402_abstract_1.invariant)(dataLocaleData !== undefined, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
|
|
45
49
|
internalSlots.pl = new Intl.PluralRules(dataLocale, {
|
|
46
50
|
minimumFractionDigits: internalSlots.minimumFractionDigits,
|
|
47
51
|
maximumFractionDigits: internalSlots.maximumFractionDigits,
|
|
@@ -52,15 +56,15 @@ export var NumberFormat = function (locales, options) {
|
|
|
52
56
|
return this;
|
|
53
57
|
};
|
|
54
58
|
function formatToParts(x) {
|
|
55
|
-
return FormatNumericToParts(this, toNumeric(x), {
|
|
56
|
-
getInternalSlots:
|
|
59
|
+
return (0, ecma402_abstract_1.FormatNumericToParts)(this, toNumeric(x), {
|
|
60
|
+
getInternalSlots: get_internal_slots_1.default,
|
|
57
61
|
});
|
|
58
62
|
}
|
|
59
63
|
function formatRange(start, end) {
|
|
60
|
-
return FormatNumericRange(this, start, end, { getInternalSlots:
|
|
64
|
+
return (0, ecma402_abstract_1.FormatNumericRange)(this, start, end, { getInternalSlots: get_internal_slots_1.default });
|
|
61
65
|
}
|
|
62
66
|
function formatRangeToParts(start, end) {
|
|
63
|
-
return FormatNumericRangeToParts(this, start, end, { getInternalSlots:
|
|
67
|
+
return (0, ecma402_abstract_1.FormatNumericRangeToParts)(this, start, end, { getInternalSlots: get_internal_slots_1.default });
|
|
64
68
|
}
|
|
65
69
|
try {
|
|
66
70
|
Object.defineProperty(formatToParts, 'name', {
|
|
@@ -74,21 +78,21 @@ catch (e) {
|
|
|
74
78
|
// In older browser (e.g Chrome 36 like polyfill.io)
|
|
75
79
|
// TypeError: Cannot redefine property: name
|
|
76
80
|
}
|
|
77
|
-
defineProperty(NumberFormat.prototype, 'formatToParts', {
|
|
81
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat.prototype, 'formatToParts', {
|
|
78
82
|
value: formatToParts,
|
|
79
83
|
});
|
|
80
|
-
defineProperty(NumberFormat.prototype, 'formatRange', {
|
|
84
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat.prototype, 'formatRange', {
|
|
81
85
|
value: formatRange,
|
|
82
86
|
});
|
|
83
|
-
defineProperty(NumberFormat.prototype, 'formatRangeToParts', {
|
|
87
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat.prototype, 'formatRangeToParts', {
|
|
84
88
|
value: formatRangeToParts,
|
|
85
89
|
});
|
|
86
|
-
defineProperty(NumberFormat.prototype, 'resolvedOptions', {
|
|
90
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat.prototype, 'resolvedOptions', {
|
|
87
91
|
value: function resolvedOptions() {
|
|
88
|
-
if (typeof this !== 'object' || !OrdinaryHasInstance(NumberFormat, this)) {
|
|
92
|
+
if (typeof this !== 'object' || !(0, ecma402_abstract_1.OrdinaryHasInstance)(exports.NumberFormat, this)) {
|
|
89
93
|
throw TypeError('Method Intl.NumberFormat.prototype.resolvedOptions called on incompatible receiver');
|
|
90
94
|
}
|
|
91
|
-
var internalSlots =
|
|
95
|
+
var internalSlots = (0, get_internal_slots_1.default)(this);
|
|
92
96
|
var ro = {};
|
|
93
97
|
for (var _i = 0, RESOLVED_OPTIONS_KEYS_1 = RESOLVED_OPTIONS_KEYS; _i < RESOLVED_OPTIONS_KEYS_1.length; _i++) {
|
|
94
98
|
var key = RESOLVED_OPTIONS_KEYS_1[_i];
|
|
@@ -113,10 +117,10 @@ var formatDescriptor = {
|
|
|
113
117
|
enumerable: false,
|
|
114
118
|
configurable: true,
|
|
115
119
|
get: function () {
|
|
116
|
-
if (typeof this !== 'object' || !OrdinaryHasInstance(NumberFormat, this)) {
|
|
120
|
+
if (typeof this !== 'object' || !(0, ecma402_abstract_1.OrdinaryHasInstance)(exports.NumberFormat, this)) {
|
|
117
121
|
throw TypeError('Intl.NumberFormat format property accessor called on incompatible receiver');
|
|
118
122
|
}
|
|
119
|
-
var internalSlots =
|
|
123
|
+
var internalSlots = (0, get_internal_slots_1.default)(this);
|
|
120
124
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
121
125
|
var numberFormat = this;
|
|
122
126
|
var boundFormat = internalSlots.boundFormat;
|
|
@@ -161,14 +165,14 @@ catch (e) {
|
|
|
161
165
|
// In older browser (e.g Chrome 36 like polyfill.io)
|
|
162
166
|
// TypeError: Cannot redefine property: name
|
|
163
167
|
}
|
|
164
|
-
Object.defineProperty(NumberFormat.prototype, 'format', formatDescriptor);
|
|
168
|
+
Object.defineProperty(exports.NumberFormat.prototype, 'format', formatDescriptor);
|
|
165
169
|
// Static properties
|
|
166
|
-
defineProperty(NumberFormat, 'supportedLocalesOf', {
|
|
170
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat, 'supportedLocalesOf', {
|
|
167
171
|
value: function supportedLocalesOf(locales, options) {
|
|
168
|
-
return SupportedLocales(NumberFormat.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
172
|
+
return (0, ecma402_abstract_1.SupportedLocales)(exports.NumberFormat.availableLocales, (0, ecma402_abstract_1.CanonicalizeLocaleList)(locales), options);
|
|
169
173
|
},
|
|
170
174
|
});
|
|
171
|
-
NumberFormat.__addLocaleData = function __addLocaleData() {
|
|
175
|
+
exports.NumberFormat.__addLocaleData = function __addLocaleData() {
|
|
172
176
|
var data = [];
|
|
173
177
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
174
178
|
data[_i] = arguments[_i];
|
|
@@ -178,17 +182,17 @@ NumberFormat.__addLocaleData = function __addLocaleData() {
|
|
|
178
182
|
var minimizedLocale = new Intl.Locale(locale)
|
|
179
183
|
.minimize()
|
|
180
184
|
.toString();
|
|
181
|
-
NumberFormat.localeData[locale] = NumberFormat.localeData[minimizedLocale] =
|
|
185
|
+
exports.NumberFormat.localeData[locale] = exports.NumberFormat.localeData[minimizedLocale] =
|
|
182
186
|
d;
|
|
183
|
-
NumberFormat.availableLocales.add(minimizedLocale);
|
|
184
|
-
NumberFormat.availableLocales.add(locale);
|
|
185
|
-
if (!NumberFormat.__defaultLocale) {
|
|
186
|
-
NumberFormat.__defaultLocale = minimizedLocale;
|
|
187
|
+
exports.NumberFormat.availableLocales.add(minimizedLocale);
|
|
188
|
+
exports.NumberFormat.availableLocales.add(locale);
|
|
189
|
+
if (!exports.NumberFormat.__defaultLocale) {
|
|
190
|
+
exports.NumberFormat.__defaultLocale = minimizedLocale;
|
|
187
191
|
}
|
|
188
192
|
}
|
|
189
193
|
};
|
|
190
|
-
NumberFormat.__addUnitData = function __addUnitData(locale, unitsData) {
|
|
191
|
-
var _a = NumberFormat.localeData, _b = locale, existingData = _a[_b];
|
|
194
|
+
exports.NumberFormat.__addUnitData = function __addUnitData(locale, unitsData) {
|
|
195
|
+
var _a = exports.NumberFormat.localeData, _b = locale, existingData = _a[_b];
|
|
192
196
|
if (!existingData) {
|
|
193
197
|
throw new Error("Locale data for \"".concat(locale, "\" has not been loaded in NumberFormat. \nPlease __addLocaleData before adding additional unit data"));
|
|
194
198
|
}
|
|
@@ -199,23 +203,23 @@ NumberFormat.__addUnitData = function __addUnitData(locale, unitsData) {
|
|
|
199
203
|
existingData.units.compound[unit] = unitsData.compound[unit];
|
|
200
204
|
}
|
|
201
205
|
};
|
|
202
|
-
NumberFormat.__defaultLocale = '';
|
|
203
|
-
NumberFormat.localeData = {};
|
|
204
|
-
NumberFormat.availableLocales = new Set();
|
|
205
|
-
NumberFormat.getDefaultLocale = function () {
|
|
206
|
-
return NumberFormat.__defaultLocale;
|
|
206
|
+
exports.NumberFormat.__defaultLocale = '';
|
|
207
|
+
exports.NumberFormat.localeData = {};
|
|
208
|
+
exports.NumberFormat.availableLocales = new Set();
|
|
209
|
+
exports.NumberFormat.getDefaultLocale = function () {
|
|
210
|
+
return exports.NumberFormat.__defaultLocale;
|
|
207
211
|
};
|
|
208
|
-
NumberFormat.polyfilled = true;
|
|
212
|
+
exports.NumberFormat.polyfilled = true;
|
|
209
213
|
function toNumeric(val) {
|
|
210
214
|
if (typeof val === 'bigint') {
|
|
211
215
|
return val;
|
|
212
216
|
}
|
|
213
|
-
return ToNumber(val);
|
|
217
|
+
return (0, ecma402_abstract_1.ToNumber)(val);
|
|
214
218
|
}
|
|
215
219
|
try {
|
|
216
220
|
// IE11 does not have Symbol
|
|
217
221
|
if (typeof Symbol !== 'undefined') {
|
|
218
|
-
Object.defineProperty(NumberFormat.prototype, Symbol.toStringTag, {
|
|
222
|
+
Object.defineProperty(exports.NumberFormat.prototype, Symbol.toStringTag, {
|
|
219
223
|
configurable: true,
|
|
220
224
|
enumerable: false,
|
|
221
225
|
writable: false,
|
|
@@ -223,24 +227,24 @@ try {
|
|
|
223
227
|
});
|
|
224
228
|
}
|
|
225
229
|
// https://github.com/tc39/test262/blob/master/test/intl402/NumberFormat/length.js
|
|
226
|
-
Object.defineProperty(NumberFormat.prototype.constructor, 'length', {
|
|
230
|
+
Object.defineProperty(exports.NumberFormat.prototype.constructor, 'length', {
|
|
227
231
|
configurable: true,
|
|
228
232
|
enumerable: false,
|
|
229
233
|
writable: false,
|
|
230
234
|
value: 0,
|
|
231
235
|
});
|
|
232
236
|
// https://github.com/tc39/test262/blob/master/test/intl402/NumberFormat/supportedLocalesOf/length.js
|
|
233
|
-
Object.defineProperty(NumberFormat.supportedLocalesOf, 'length', {
|
|
237
|
+
Object.defineProperty(exports.NumberFormat.supportedLocalesOf, 'length', {
|
|
234
238
|
configurable: true,
|
|
235
239
|
enumerable: false,
|
|
236
240
|
writable: false,
|
|
237
241
|
value: 1,
|
|
238
242
|
});
|
|
239
|
-
Object.defineProperty(NumberFormat, 'prototype', {
|
|
243
|
+
Object.defineProperty(exports.NumberFormat, 'prototype', {
|
|
240
244
|
configurable: false,
|
|
241
245
|
enumerable: false,
|
|
242
246
|
writable: false,
|
|
243
|
-
value: NumberFormat.prototype,
|
|
247
|
+
value: exports.NumberFormat.prototype,
|
|
244
248
|
});
|
|
245
249
|
}
|
|
246
250
|
catch (e) {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.currencyDigitsData = void 0;
|
|
4
|
+
exports.currencyDigitsData = {
|
|
2
5
|
"ADP": 0,
|
|
3
6
|
"AFN": 0,
|
|
4
7
|
"ALL": 0,
|
|
@@ -49,6 +52,7 @@ export var currencyDigitsData = {
|
|
|
49
52
|
"RSD": 0,
|
|
50
53
|
"RWF": 0,
|
|
51
54
|
"SEK": 2,
|
|
55
|
+
"SLE": 2,
|
|
52
56
|
"SLL": 0,
|
|
53
57
|
"SOS": 0,
|
|
54
58
|
"STD": 0,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Type-only circular import
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
4
|
var internalSlotMap = new WeakMap();
|
|
3
|
-
|
|
5
|
+
function getInternalSlots(x) {
|
|
4
6
|
var internalSlots = internalSlotMap.get(x);
|
|
5
7
|
if (!internalSlots) {
|
|
6
8
|
internalSlots = Object.create(null);
|
|
@@ -8,3 +10,4 @@ export default function getInternalSlots(x) {
|
|
|
8
10
|
}
|
|
9
11
|
return internalSlots;
|
|
10
12
|
}
|
|
13
|
+
exports.default = getInternalSlots;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.numberingSystemNames = void 0;
|
|
4
|
+
exports.numberingSystemNames = ["adlm", "ahom", "arab", "arabext", "armn", "armnlow", "bali", "beng", "bhks", "brah", "cakm", "cham", "cyrl", "deva", "diak", "ethi", "fullwide", "geor", "gong", "gonm", "grek", "greklow", "gujr", "guru", "hanidays", "hanidec", "hans", "hansfin", "hant", "hantfin", "hebr", "hmng", "hmnp", "java", "jpan", "jpanfin", "jpanyear", "kali", "kawi", "khmr", "knda", "lana", "lanatham", "laoo", "latn", "lepc", "limb", "mathbold", "mathdbl", "mathmono", "mathsanb", "mathsans", "mlym", "modi", "mong", "mroo", "mtei", "mymr", "mymrshan", "mymrtlng", "nagm", "newa", "nkoo", "olck", "orya", "osma", "rohg", "roman", "romanlow", "saur", "segment", "shrd", "sind", "sinh", "sora", "sund", "takr", "talu", "taml", "tamldec", "telu", "thai", "tibt", "tirh", "tnsa", "vaii", "wara", "wcho"];
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toLocaleString = void 0;
|
|
1
4
|
// eslint-disable-next-line import/no-cycle
|
|
2
|
-
|
|
5
|
+
var core_1 = require("./core");
|
|
3
6
|
/**
|
|
4
7
|
* Number.prototype.toLocaleString ponyfill
|
|
5
8
|
* https://tc39.es/ecma402/#sup-number.prototype.tolocalestring
|
|
6
9
|
*/
|
|
7
|
-
|
|
8
|
-
var numberFormat = new NumberFormat(locales, options);
|
|
10
|
+
function toLocaleString(x, locales, options) {
|
|
11
|
+
var numberFormat = new core_1.NumberFormat(locales, options);
|
|
9
12
|
return numberFormat.format(x);
|
|
10
13
|
}
|
|
14
|
+
exports.toLocaleString = toLocaleString;
|
package/lib/src/types.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportedLocales = void 0;
|
|
4
|
+
exports.supportedLocales = ["af", "af-NA", "agq", "ak", "am", "ar", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "as", "asa", "ast", "az", "az-Cyrl", "az-Latn", "bas", "be", "be-tarask", "bem", "bez", "bg", "bm", "bn", "bn-IN", "bo", "bo-IN", "br", "brx", "bs", "bs-Cyrl", "bs-Latn", "ca", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ccp", "ccp-IN", "ce", "ceb", "cgg", "chr", "ckb", "ckb-IR", "cs", "cy", "da", "da-GL", "dav", "de", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee", "ee-TG", "el", "el-CY", "en", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "eo", "es", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et", "eu", "ewo", "fa", "fa-AF", "ff", "ff-Adlm", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Latn", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "fi", "fil", "fo", "fo-DK", "fr", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fur", "fy", "ga", "ga-GB", "gd", "gl", "gsw", "gsw-FR", "gsw-LI", "gu", "guz", "gv", "ha", "ha-GH", "ha-NE", "haw", "he", "hi", "hr", "hr-BA", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it", "it-CH", "it-SM", "it-VA", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko", "ko-KP", "kok", "ks", "ks-Arab", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln", "ln-AO", "ln-CF", "ln-CG", "lo", "lrc", "lrc-IQ", "lt", "lu", "luo", "luy", "lv", "mai", "mas", "mas-TZ", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni", "mni-Beng", "mr", "ms", "ms-BN", "ms-ID", "ms-SG", "mt", "mua", "my", "mzn", "naq", "nb", "nb-SJ", "nd", "nds", "nds-NL", "ne", "ne-IN", "nl", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nmg", "nn", "nnh", "no", "nus", "nyn", "om", "om-KE", "or", "os", "os-RU", "pa", "pa-Arab", "pa-Guru", "pcm", "pl", "ps", "ps-PK", "pt", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "qu", "qu-BO", "qu-EC", "rm", "rn", "ro", "ro-MD", "rof", "ru", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "rw", "rwk", "sa", "sah", "saq", "sat", "sat-Olck", "sbp", "sc", "sd", "sd-Arab", "sd-Deva", "se", "se-FI", "se-SE", "seh", "ses", "sg", "shi", "shi-Latn", "shi-Tfng", "si", "sk", "sl", "smn", "sn", "so", "so-DJ", "so-ET", "so-KE", "sq", "sq-MK", "sq-XK", "sr", "sr-Cyrl", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "su", "su-Latn", "sv", "sv-AX", "sv-FI", "sw", "sw-CD", "sw-KE", "sw-UG", "ta", "ta-LK", "ta-MY", "ta-SG", "te", "teo", "teo-KE", "tg", "th", "ti", "ti-ER", "tk", "to", "tr", "tr-CY", "tt", "twq", "tzm", "ug", "uk", "und", "ur", "ur-IN", "uz", "uz-Arab", "uz-Cyrl", "uz-Latn", "vai", "vai-Latn", "vai-Vaii", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo", "yo-BJ", "yrl", "yrl-CO", "yrl-VE", "yue", "yue-Hans", "yue-Hant", "zgh", "zh", "zh-Hans", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hant", "zh-Hant-HK", "zh-Hant-MO", "zu"];
|