@formatjs/intl-displaynames 5.2.5 → 5.4.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.
- package/abstract/CanonicalCodeForDisplayNames.js +4 -4
- package/index.js +21 -21
- package/lib/abstract/CanonicalCodeForDisplayNames.js +1 -1
- package/lib/index.js +3 -3
- package/lib/should-polyfill.d.ts +2 -1
- package/lib/should-polyfill.d.ts.map +1 -1
- package/lib/should-polyfill.js +9 -4
- package/lib/supported-locales.d.ts +2 -0
- package/lib/supported-locales.d.ts.map +1 -0
- package/lib/supported-locales.js +2 -0
- package/locale-data/af-NA.js +1 -1
- package/locale-data/af.js +1 -1
- package/locale-data/agq.js +1 -1
- package/locale-data/ak.js +1 -1
- package/locale-data/am.js +1 -1
- package/locale-data/ar-AE.js +1 -1
- package/locale-data/ar-BH.js +1 -1
- package/locale-data/ar-DJ.js +1 -1
- package/locale-data/ar-DZ.js +1 -1
- package/locale-data/ar-EG.js +1 -1
- package/locale-data/ar-EH.js +1 -1
- package/locale-data/ar-ER.js +1 -1
- package/locale-data/ar-IL.js +1 -1
- package/locale-data/ar-IQ.js +1 -1
- package/locale-data/ar-JO.js +1 -1
- package/locale-data/ar-KM.js +1 -1
- package/locale-data/ar-KW.js +1 -1
- package/locale-data/ar-LB.js +1 -1
- package/locale-data/ar-LY.js +1 -1
- package/locale-data/ar-MA.js +1 -1
- package/locale-data/ar-MR.js +1 -1
- package/locale-data/ar-OM.js +1 -1
- package/locale-data/ar-PS.js +1 -1
- package/locale-data/ar-QA.js +1 -1
- package/locale-data/ar-SA.js +1 -1
- package/locale-data/ar-SD.js +1 -1
- package/locale-data/ar-SO.js +1 -1
- package/locale-data/ar-SS.js +1 -1
- package/locale-data/ar-SY.js +1 -1
- package/locale-data/ar-TD.js +1 -1
- package/locale-data/ar-TN.js +1 -1
- package/locale-data/ar-YE.js +1 -1
- package/locale-data/ar.js +1 -1
- package/locale-data/as.js +1 -1
- package/locale-data/asa.js +1 -1
- package/locale-data/ast.js +1 -1
- package/locale-data/az-Cyrl.js +1 -1
- package/locale-data/az-Latn.js +1 -1
- package/locale-data/az.js +1 -1
- package/locale-data/bas.js +1 -1
- package/locale-data/{ca-ES-VALENCIA.d.ts → be-tarask.d.ts} +0 -0
- package/locale-data/be-tarask.js +6 -0
- package/locale-data/be.js +1 -1
- package/locale-data/bem.js +1 -1
- package/locale-data/bez.js +1 -1
- package/locale-data/bg.js +1 -1
- package/locale-data/bm.js +1 -1
- package/locale-data/bn-IN.js +1 -1
- package/locale-data/bn.js +1 -1
- package/locale-data/bo-IN.js +1 -1
- package/locale-data/bo.js +1 -1
- package/locale-data/br.js +1 -1
- package/locale-data/brx.js +1 -1
- package/locale-data/bs-Cyrl.js +1 -1
- package/locale-data/bs-Latn.js +1 -1
- package/locale-data/bs.js +1 -1
- package/locale-data/ca-AD.js +1 -1
- package/locale-data/{en-US-POSIX.d.ts → ca-ES-valencia.d.ts} +0 -0
- package/locale-data/ca-ES-valencia.js +6 -0
- package/locale-data/ca-FR.js +1 -1
- package/locale-data/ca-IT.js +1 -1
- package/locale-data/ca.js +1 -1
- package/locale-data/ccp-IN.js +1 -1
- package/locale-data/ccp.js +1 -1
- package/locale-data/ce.js +1 -1
- package/locale-data/ceb.js +1 -1
- package/locale-data/cgg.js +1 -1
- package/locale-data/chr.js +1 -1
- package/locale-data/ckb-IR.js +1 -1
- package/locale-data/ckb.js +1 -1
- package/locale-data/cs.js +1 -1
- package/locale-data/cy.js +1 -1
- package/locale-data/da-GL.js +1 -1
- package/locale-data/da.js +1 -1
- package/locale-data/dav.js +1 -1
- package/locale-data/de-AT.js +1 -1
- package/locale-data/de-BE.js +1 -1
- package/locale-data/de-CH.js +1 -1
- package/locale-data/de-IT.js +1 -1
- package/locale-data/de-LI.js +1 -1
- package/locale-data/de-LU.js +1 -1
- package/locale-data/de.js +1 -1
- package/locale-data/dje.js +1 -1
- package/locale-data/doi.js +1 -1
- package/locale-data/dsb.js +1 -1
- package/locale-data/dua.js +1 -1
- package/locale-data/dyo.js +1 -1
- package/locale-data/dz.js +1 -1
- package/locale-data/ebu.js +1 -1
- package/locale-data/ee-TG.js +1 -1
- package/locale-data/ee.js +1 -1
- package/locale-data/el-CY.js +1 -1
- package/locale-data/el.js +1 -1
- package/locale-data/en-001.js +1 -1
- package/locale-data/en-150.js +1 -1
- package/locale-data/en-AE.js +1 -1
- package/locale-data/en-AG.js +1 -1
- package/locale-data/en-AI.js +1 -1
- package/locale-data/en-AS.js +1 -1
- package/locale-data/en-AT.js +1 -1
- package/locale-data/en-AU.js +1 -1
- package/locale-data/en-BB.js +1 -1
- package/locale-data/en-BE.js +1 -1
- package/locale-data/en-BI.js +1 -1
- package/locale-data/en-BM.js +1 -1
- package/locale-data/en-BS.js +1 -1
- package/locale-data/en-BW.js +1 -1
- package/locale-data/en-BZ.js +1 -1
- package/locale-data/en-CA.js +1 -1
- package/locale-data/en-CC.js +1 -1
- package/locale-data/en-CH.js +1 -1
- package/locale-data/en-CK.js +1 -1
- package/locale-data/en-CM.js +1 -1
- package/locale-data/en-CX.js +1 -1
- package/locale-data/en-CY.js +1 -1
- package/locale-data/en-DE.js +1 -1
- package/locale-data/en-DG.js +1 -1
- package/locale-data/en-DK.js +1 -1
- package/locale-data/en-DM.js +1 -1
- package/locale-data/en-ER.js +1 -1
- package/locale-data/en-FI.js +1 -1
- package/locale-data/en-FJ.js +1 -1
- package/locale-data/en-FK.js +1 -1
- package/locale-data/en-FM.js +1 -1
- package/locale-data/en-GB.js +1 -1
- package/locale-data/en-GD.js +1 -1
- package/locale-data/en-GG.js +1 -1
- package/locale-data/en-GH.js +1 -1
- package/locale-data/en-GI.js +1 -1
- package/locale-data/en-GM.js +1 -1
- package/locale-data/en-GU.js +1 -1
- package/locale-data/en-GY.js +1 -1
- package/locale-data/en-HK.js +1 -1
- package/locale-data/en-IE.js +1 -1
- package/locale-data/en-IL.js +1 -1
- package/locale-data/en-IM.js +1 -1
- package/locale-data/en-IN.js +1 -1
- package/locale-data/en-IO.js +1 -1
- package/locale-data/en-JE.js +1 -1
- package/locale-data/en-JM.js +1 -1
- package/locale-data/en-KE.js +1 -1
- package/locale-data/en-KI.js +1 -1
- package/locale-data/en-KN.js +1 -1
- package/locale-data/en-KY.js +1 -1
- package/locale-data/en-LC.js +1 -1
- package/locale-data/en-LR.js +1 -1
- package/locale-data/en-LS.js +1 -1
- package/locale-data/en-MG.js +1 -1
- package/locale-data/en-MH.js +1 -1
- package/locale-data/en-MO.js +1 -1
- package/locale-data/en-MP.js +1 -1
- package/locale-data/en-MS.js +1 -1
- package/locale-data/en-MT.js +1 -1
- package/locale-data/en-MU.js +1 -1
- package/locale-data/en-MW.js +1 -1
- package/locale-data/en-MY.js +1 -1
- package/locale-data/en-NA.js +1 -1
- package/locale-data/en-NF.js +1 -1
- package/locale-data/en-NG.js +1 -1
- package/locale-data/en-NL.js +1 -1
- package/locale-data/en-NR.js +1 -1
- package/locale-data/en-NU.js +1 -1
- package/locale-data/en-NZ.js +1 -1
- package/locale-data/en-PG.js +1 -1
- package/locale-data/en-PH.js +1 -1
- package/locale-data/en-PK.js +1 -1
- package/locale-data/en-PN.js +1 -1
- package/locale-data/en-PR.js +1 -1
- package/locale-data/en-PW.js +1 -1
- package/locale-data/en-RW.js +1 -1
- package/locale-data/en-SB.js +1 -1
- package/locale-data/en-SC.js +1 -1
- package/locale-data/en-SD.js +1 -1
- package/locale-data/en-SE.js +1 -1
- package/locale-data/en-SG.js +1 -1
- package/locale-data/en-SH.js +1 -1
- package/locale-data/en-SI.js +1 -1
- package/locale-data/en-SL.js +1 -1
- package/locale-data/en-SS.js +1 -1
- package/locale-data/en-SX.js +1 -1
- package/locale-data/en-SZ.js +1 -1
- package/locale-data/en-TC.js +1 -1
- package/locale-data/en-TK.js +1 -1
- package/locale-data/en-TO.js +1 -1
- package/locale-data/en-TT.js +1 -1
- package/locale-data/en-TV.js +1 -1
- package/locale-data/en-TZ.js +1 -1
- package/locale-data/en-UG.js +1 -1
- package/locale-data/en-UM.js +1 -1
- package/locale-data/en-VC.js +1 -1
- package/locale-data/en-VG.js +1 -1
- package/locale-data/en-VI.js +1 -1
- package/locale-data/en-VU.js +1 -1
- package/locale-data/en-WS.js +1 -1
- package/locale-data/en-ZA.js +1 -1
- package/locale-data/en-ZM.js +1 -1
- package/locale-data/en-ZW.js +1 -1
- package/locale-data/en.js +1 -1
- package/locale-data/eo.js +1 -1
- package/locale-data/es-419.js +1 -1
- package/locale-data/es-AR.js +1 -1
- package/locale-data/es-BO.js +1 -1
- package/locale-data/es-BR.js +1 -1
- package/locale-data/es-BZ.js +1 -1
- package/locale-data/es-CL.js +1 -1
- package/locale-data/es-CO.js +1 -1
- package/locale-data/es-CR.js +1 -1
- package/locale-data/es-CU.js +1 -1
- package/locale-data/es-DO.js +1 -1
- package/locale-data/es-EA.js +1 -1
- package/locale-data/es-EC.js +1 -1
- package/locale-data/es-GQ.js +1 -1
- package/locale-data/es-GT.js +1 -1
- package/locale-data/es-HN.js +1 -1
- package/locale-data/es-IC.js +1 -1
- package/locale-data/es-MX.js +1 -1
- package/locale-data/es-NI.js +1 -1
- package/locale-data/es-PA.js +1 -1
- package/locale-data/es-PE.js +1 -1
- package/locale-data/es-PH.js +1 -1
- package/locale-data/es-PR.js +1 -1
- package/locale-data/es-PY.js +1 -1
- package/locale-data/es-SV.js +1 -1
- package/locale-data/es-US.js +1 -1
- package/locale-data/es-UY.js +1 -1
- package/locale-data/es-VE.js +1 -1
- package/locale-data/es.js +1 -1
- package/locale-data/et.js +1 -1
- package/locale-data/eu.js +1 -1
- package/locale-data/ewo.js +1 -1
- package/locale-data/fa-AF.js +1 -1
- package/locale-data/fa.js +1 -1
- package/locale-data/ff-Adlm-BF.js +1 -1
- package/locale-data/ff-Adlm-CM.js +1 -1
- package/locale-data/ff-Adlm-GH.js +1 -1
- package/locale-data/ff-Adlm-GM.js +1 -1
- package/locale-data/ff-Adlm-GW.js +1 -1
- package/locale-data/ff-Adlm-LR.js +1 -1
- package/locale-data/ff-Adlm-MR.js +1 -1
- package/locale-data/ff-Adlm-NE.js +1 -1
- package/locale-data/ff-Adlm-NG.js +1 -1
- package/locale-data/ff-Adlm-SL.js +1 -1
- package/locale-data/ff-Adlm-SN.js +1 -1
- package/locale-data/ff-Adlm.js +1 -1
- package/locale-data/ff-Latn-BF.js +1 -1
- package/locale-data/ff-Latn-CM.js +1 -1
- package/locale-data/ff-Latn-GH.js +1 -1
- package/locale-data/ff-Latn-GM.js +1 -1
- package/locale-data/ff-Latn-GN.js +1 -1
- package/locale-data/ff-Latn-GW.js +1 -1
- package/locale-data/ff-Latn-LR.js +1 -1
- package/locale-data/ff-Latn-MR.js +1 -1
- package/locale-data/ff-Latn-NE.js +1 -1
- package/locale-data/ff-Latn-NG.js +1 -1
- package/locale-data/ff-Latn-SL.js +1 -1
- package/locale-data/ff-Latn.js +1 -1
- package/locale-data/ff.js +1 -1
- package/locale-data/fi.js +1 -1
- package/locale-data/fil.js +1 -1
- package/locale-data/fo-DK.js +1 -1
- package/locale-data/fo.js +1 -1
- package/locale-data/fr-BE.js +1 -1
- package/locale-data/fr-BF.js +1 -1
- package/locale-data/fr-BI.js +1 -1
- package/locale-data/fr-BJ.js +1 -1
- package/locale-data/fr-BL.js +1 -1
- package/locale-data/fr-CA.js +1 -1
- package/locale-data/fr-CD.js +1 -1
- package/locale-data/fr-CF.js +1 -1
- package/locale-data/fr-CG.js +1 -1
- package/locale-data/fr-CH.js +1 -1
- package/locale-data/fr-CI.js +1 -1
- package/locale-data/fr-CM.js +1 -1
- package/locale-data/fr-DJ.js +1 -1
- package/locale-data/fr-DZ.js +1 -1
- package/locale-data/fr-GA.js +1 -1
- package/locale-data/fr-GF.js +1 -1
- package/locale-data/fr-GN.js +1 -1
- package/locale-data/fr-GP.js +1 -1
- package/locale-data/fr-GQ.js +1 -1
- package/locale-data/fr-HT.js +1 -1
- package/locale-data/fr-KM.js +1 -1
- package/locale-data/fr-LU.js +1 -1
- package/locale-data/fr-MA.js +1 -1
- package/locale-data/fr-MC.js +1 -1
- package/locale-data/fr-MF.js +1 -1
- package/locale-data/fr-MG.js +1 -1
- package/locale-data/fr-ML.js +1 -1
- package/locale-data/fr-MQ.js +1 -1
- package/locale-data/fr-MR.js +1 -1
- package/locale-data/fr-MU.js +1 -1
- package/locale-data/fr-NC.js +1 -1
- package/locale-data/fr-NE.js +1 -1
- package/locale-data/fr-PF.js +1 -1
- package/locale-data/fr-PM.js +1 -1
- package/locale-data/fr-RE.js +1 -1
- package/locale-data/fr-RW.js +1 -1
- package/locale-data/fr-SC.js +1 -1
- package/locale-data/fr-SN.js +1 -1
- package/locale-data/fr-SY.js +1 -1
- package/locale-data/fr-TD.js +1 -1
- package/locale-data/fr-TG.js +1 -1
- package/locale-data/fr-TN.js +1 -1
- package/locale-data/fr-VU.js +1 -1
- package/locale-data/fr-WF.js +1 -1
- package/locale-data/fr-YT.js +1 -1
- package/locale-data/fr.js +1 -1
- package/locale-data/fur.js +1 -1
- package/locale-data/fy.js +1 -1
- package/locale-data/ga-GB.js +1 -1
- package/locale-data/ga.js +1 -1
- package/locale-data/gd.js +1 -1
- package/locale-data/gl.js +1 -1
- package/locale-data/gsw-FR.js +1 -1
- package/locale-data/gsw-LI.js +1 -1
- package/locale-data/gsw.js +1 -1
- package/locale-data/gu.js +1 -1
- package/locale-data/guz.js +1 -1
- package/locale-data/gv.js +1 -1
- package/locale-data/ha-GH.js +1 -1
- package/locale-data/ha-NE.js +1 -1
- package/locale-data/ha.js +1 -1
- package/locale-data/haw.js +1 -1
- package/locale-data/he.js +1 -1
- package/locale-data/hi.js +1 -1
- package/locale-data/hr-BA.js +1 -1
- package/locale-data/hr.js +1 -1
- package/locale-data/hsb.js +1 -1
- package/locale-data/hu.js +1 -1
- package/locale-data/hy.js +1 -1
- package/locale-data/ia.js +1 -1
- package/locale-data/id.js +1 -1
- package/locale-data/ig.js +1 -1
- package/locale-data/ii.js +1 -1
- package/locale-data/is.js +1 -1
- package/locale-data/it-CH.js +1 -1
- package/locale-data/it-SM.js +1 -1
- package/locale-data/it-VA.js +1 -1
- package/locale-data/it.js +1 -1
- package/locale-data/ja.js +1 -1
- package/locale-data/jgo.js +1 -1
- package/locale-data/jmc.js +1 -1
- package/locale-data/jv.js +1 -1
- package/locale-data/ka.js +1 -1
- package/locale-data/kab.js +1 -1
- package/locale-data/kam.js +1 -1
- package/locale-data/kde.js +1 -1
- package/locale-data/kea.js +1 -1
- package/locale-data/kgp.d.ts +1 -0
- package/locale-data/kgp.js +6 -0
- package/locale-data/khq.js +1 -1
- package/locale-data/ki.js +1 -1
- package/locale-data/kk.js +1 -1
- package/locale-data/kkj.js +1 -1
- package/locale-data/kl.js +1 -1
- package/locale-data/kln.js +1 -1
- package/locale-data/km.js +1 -1
- package/locale-data/kn.js +1 -1
- package/locale-data/ko-KP.js +1 -1
- package/locale-data/ko.js +1 -1
- package/locale-data/kok.js +1 -1
- package/locale-data/ks-Arab.js +1 -1
- package/locale-data/ks.js +1 -1
- package/locale-data/ksb.js +1 -1
- package/locale-data/ksf.js +1 -1
- package/locale-data/ksh.js +1 -1
- package/locale-data/ku.js +1 -1
- package/locale-data/kw.js +1 -1
- package/locale-data/ky.js +1 -1
- package/locale-data/lag.js +1 -1
- package/locale-data/lb.js +1 -1
- package/locale-data/lg.js +1 -1
- package/locale-data/lkt.js +1 -1
- package/locale-data/ln-AO.js +1 -1
- package/locale-data/ln-CF.js +1 -1
- package/locale-data/ln-CG.js +1 -1
- package/locale-data/ln.js +1 -1
- package/locale-data/lo.js +1 -1
- package/locale-data/lrc-IQ.js +1 -1
- package/locale-data/lrc.js +1 -1
- package/locale-data/lt.js +1 -1
- package/locale-data/lu.js +1 -1
- package/locale-data/luo.js +1 -1
- package/locale-data/luy.js +1 -1
- package/locale-data/lv.js +1 -1
- package/locale-data/mai.js +1 -1
- package/locale-data/mas-TZ.js +1 -1
- package/locale-data/mas.js +1 -1
- package/locale-data/mer.js +1 -1
- package/locale-data/mfe.js +1 -1
- package/locale-data/mg.js +1 -1
- package/locale-data/mgh.js +1 -1
- package/locale-data/mgo.js +1 -1
- package/locale-data/mi.js +1 -1
- package/locale-data/mk.js +1 -1
- package/locale-data/ml.js +1 -1
- package/locale-data/mn.js +1 -1
- package/locale-data/mni-Beng.js +1 -1
- package/locale-data/mni.js +1 -1
- package/locale-data/mr.js +1 -1
- package/locale-data/ms-BN.js +1 -1
- package/locale-data/ms-ID.js +1 -1
- package/locale-data/ms-SG.js +1 -1
- package/locale-data/ms.js +1 -1
- package/locale-data/mt.js +1 -1
- package/locale-data/mua.js +1 -1
- package/locale-data/my.js +1 -1
- package/locale-data/mzn.js +1 -1
- package/locale-data/naq.js +1 -1
- package/locale-data/nb-SJ.js +1 -1
- package/locale-data/nb.js +1 -1
- package/locale-data/nd.js +1 -1
- package/locale-data/nds-NL.js +1 -1
- package/locale-data/nds.js +1 -1
- package/locale-data/ne-IN.js +1 -1
- package/locale-data/ne.js +1 -1
- package/locale-data/nl-AW.js +1 -1
- package/locale-data/nl-BE.js +1 -1
- package/locale-data/nl-BQ.js +1 -1
- package/locale-data/nl-CW.js +1 -1
- package/locale-data/nl-SR.js +1 -1
- package/locale-data/nl-SX.js +1 -1
- package/locale-data/nl.js +1 -1
- package/locale-data/nmg.js +1 -1
- package/locale-data/nn.js +1 -1
- package/locale-data/nnh.js +1 -1
- package/locale-data/no.js +1 -1
- package/locale-data/nus.js +1 -1
- package/locale-data/nyn.js +1 -1
- package/locale-data/om-KE.js +1 -1
- package/locale-data/om.js +1 -1
- package/locale-data/or.js +1 -1
- package/locale-data/os-RU.js +1 -1
- package/locale-data/os.js +1 -1
- package/locale-data/pa-Arab.js +1 -1
- package/locale-data/pa-Guru.js +1 -1
- package/locale-data/pa.js +1 -1
- package/locale-data/pcm.js +1 -1
- package/locale-data/pl.js +1 -1
- package/locale-data/ps-PK.js +1 -1
- package/locale-data/ps.js +1 -1
- package/locale-data/pt-AO.js +1 -1
- package/locale-data/pt-CH.js +1 -1
- package/locale-data/pt-CV.js +1 -1
- package/locale-data/pt-GQ.js +1 -1
- package/locale-data/pt-GW.js +1 -1
- package/locale-data/pt-LU.js +1 -1
- package/locale-data/pt-MO.js +1 -1
- package/locale-data/pt-MZ.js +1 -1
- package/locale-data/pt-PT.js +1 -1
- package/locale-data/pt-ST.js +1 -1
- package/locale-data/pt-TL.js +1 -1
- package/locale-data/pt.js +1 -1
- package/locale-data/qu-BO.js +1 -1
- package/locale-data/qu-EC.js +1 -1
- package/locale-data/qu.js +1 -1
- package/locale-data/rm.js +1 -1
- package/locale-data/rn.js +1 -1
- package/locale-data/ro-MD.js +1 -1
- package/locale-data/ro.js +1 -1
- package/locale-data/rof.js +1 -1
- package/locale-data/ru-BY.js +1 -1
- package/locale-data/ru-KG.js +1 -1
- package/locale-data/ru-KZ.js +1 -1
- package/locale-data/ru-MD.js +1 -1
- package/locale-data/ru-UA.js +1 -1
- package/locale-data/ru.js +1 -1
- package/locale-data/rw.js +1 -1
- package/locale-data/rwk.js +1 -1
- package/locale-data/sa.js +1 -1
- package/locale-data/sah.js +1 -1
- package/locale-data/saq.js +1 -1
- package/locale-data/sat-Olck.js +1 -1
- package/locale-data/sat.js +1 -1
- package/locale-data/sbp.js +1 -1
- package/locale-data/sc.d.ts +1 -0
- package/locale-data/sc.js +6 -0
- package/locale-data/sd-Arab.js +1 -1
- package/locale-data/sd-Deva.js +1 -1
- package/locale-data/sd.js +1 -1
- package/locale-data/se-FI.js +1 -1
- package/locale-data/se-SE.js +1 -1
- package/locale-data/se.js +1 -1
- package/locale-data/seh.js +1 -1
- package/locale-data/ses.js +1 -1
- package/locale-data/sg.js +1 -1
- package/locale-data/shi-Latn.js +1 -1
- package/locale-data/shi-Tfng.js +1 -1
- package/locale-data/shi.js +1 -1
- package/locale-data/si.js +1 -1
- package/locale-data/sk.js +1 -1
- package/locale-data/sl.js +1 -1
- package/locale-data/smn.js +1 -1
- package/locale-data/sn.js +1 -1
- package/locale-data/so-DJ.js +1 -1
- package/locale-data/so-ET.js +1 -1
- package/locale-data/so-KE.js +1 -1
- package/locale-data/so.js +1 -1
- package/locale-data/sq-MK.js +1 -1
- package/locale-data/sq-XK.js +1 -1
- package/locale-data/sq.js +1 -1
- package/locale-data/sr-Cyrl-BA.js +1 -1
- package/locale-data/sr-Cyrl-ME.js +1 -1
- package/locale-data/sr-Cyrl-XK.js +1 -1
- package/locale-data/sr-Cyrl.js +1 -1
- package/locale-data/sr-Latn-BA.js +1 -1
- package/locale-data/sr-Latn-ME.js +1 -1
- package/locale-data/sr-Latn-XK.js +1 -1
- package/locale-data/sr-Latn.js +1 -1
- package/locale-data/sr.js +1 -1
- package/locale-data/su-Latn.js +1 -1
- package/locale-data/su.js +1 -1
- package/locale-data/sv-AX.js +1 -1
- package/locale-data/sv-FI.js +1 -1
- package/locale-data/sv.js +1 -1
- package/locale-data/sw-CD.js +1 -1
- package/locale-data/sw-KE.js +1 -1
- package/locale-data/sw-UG.js +1 -1
- package/locale-data/sw.js +1 -1
- package/locale-data/ta-LK.js +1 -1
- package/locale-data/ta-MY.js +1 -1
- package/locale-data/ta-SG.js +1 -1
- package/locale-data/ta.js +1 -1
- package/locale-data/te.js +1 -1
- package/locale-data/teo-KE.js +1 -1
- package/locale-data/teo.js +1 -1
- package/locale-data/tg.js +1 -1
- package/locale-data/th.js +1 -1
- package/locale-data/ti-ER.js +1 -1
- package/locale-data/ti.js +1 -1
- package/locale-data/tk.js +1 -1
- package/locale-data/to.js +1 -1
- package/locale-data/tr-CY.js +1 -1
- package/locale-data/tr.js +1 -1
- package/locale-data/tt.js +1 -1
- package/locale-data/twq.js +1 -1
- package/locale-data/tzm.js +1 -1
- package/locale-data/ug.js +1 -1
- package/locale-data/uk.js +1 -1
- package/locale-data/und.d.ts +1 -0
- package/locale-data/und.js +6 -0
- package/locale-data/ur-IN.js +1 -1
- package/locale-data/ur.js +1 -1
- package/locale-data/uz-Arab.js +1 -1
- package/locale-data/uz-Cyrl.js +1 -1
- package/locale-data/uz-Latn.js +1 -1
- package/locale-data/uz.js +1 -1
- package/locale-data/vai-Latn.js +1 -1
- package/locale-data/vai-Vaii.js +1 -1
- package/locale-data/vai.js +1 -1
- package/locale-data/vi.js +1 -1
- package/locale-data/vun.js +1 -1
- package/locale-data/wae.js +1 -1
- package/locale-data/wo.js +1 -1
- package/locale-data/xh.js +1 -1
- package/locale-data/xog.js +1 -1
- package/locale-data/yav.js +1 -1
- package/locale-data/yi.js +1 -1
- package/locale-data/yo-BJ.js +1 -1
- package/locale-data/yo.js +1 -1
- package/locale-data/yrl-CO.d.ts +1 -0
- package/locale-data/yrl-CO.js +6 -0
- package/locale-data/yrl-VE.d.ts +1 -0
- package/locale-data/yrl-VE.js +6 -0
- package/locale-data/yrl.d.ts +1 -0
- package/locale-data/yrl.js +6 -0
- package/locale-data/yue-Hans.js +1 -1
- package/locale-data/yue-Hant.js +1 -1
- package/locale-data/yue.js +1 -1
- package/locale-data/zgh.js +1 -1
- package/locale-data/zh-Hans-HK.js +1 -1
- package/locale-data/zh-Hans-MO.js +1 -1
- package/locale-data/zh-Hans-SG.js +1 -1
- package/locale-data/zh-Hans.js +1 -1
- package/locale-data/zh-Hant-HK.js +1 -1
- package/locale-data/zh-Hant-MO.js +1 -1
- package/locale-data/zh-Hant.js +1 -1
- package/locale-data/zh.js +1 -1
- package/locale-data/zu.js +1 -1
- package/package.json +3 -3
- package/polyfill.iife.js +61 -149
- package/polyfill.js +1 -1
- package/should-polyfill.d.ts +2 -1
- package/should-polyfill.d.ts.map +1 -1
- package/should-polyfill.js +11 -5
- package/supported-locales.d.ts +2 -0
- package/supported-locales.d.ts.map +1 -0
- package/supported-locales.js +5 -0
- package/locale-data/ca-ES-VALENCIA.js +0 -6
- package/locale-data/en-US-POSIX.js +0 -6
package/polyfill.iife.js
CHANGED
|
@@ -8,27 +8,24 @@
|
|
|
8
8
|
var __markAsModule = function(target) {
|
|
9
9
|
return __defProp(target, "__esModule", { value: true });
|
|
10
10
|
};
|
|
11
|
-
var __require = typeof require !== "undefined" ? require : function(x) {
|
|
12
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
-
};
|
|
14
11
|
var __commonJS = function(cb, mod) {
|
|
15
|
-
return function
|
|
16
|
-
return mod || (0, cb[
|
|
12
|
+
return function __require() {
|
|
13
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
|
-
var __reExport = function(target, module, desc) {
|
|
16
|
+
var __reExport = function(target, module, copyDefault, desc) {
|
|
20
17
|
if (module && typeof module === "object" || typeof module === "function")
|
|
21
18
|
for (var keys = __getOwnPropNames(module), i = 0, n = keys.length, key; i < n; i++) {
|
|
22
19
|
key = keys[i];
|
|
23
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
20
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
24
21
|
__defProp(target, key, { get: function(k) {
|
|
25
22
|
return module[k];
|
|
26
23
|
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
|
27
24
|
}
|
|
28
25
|
return target;
|
|
29
26
|
};
|
|
30
|
-
var
|
|
31
|
-
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default",
|
|
27
|
+
var __toESM = function(module, isNodeMode) {
|
|
28
|
+
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: function() {
|
|
32
29
|
return module.default;
|
|
33
30
|
}, enumerable: true } : { value: module, enumerable: true })), module);
|
|
34
31
|
};
|
|
@@ -91,7 +88,7 @@
|
|
|
91
88
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
92
89
|
var locale = requestedLocales_1[_i];
|
|
93
90
|
var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
94
|
-
var availableLocale = BestAvailableLocale_1.BestAvailableLocale(availableLocales, noExtensionLocale);
|
|
91
|
+
var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
|
|
95
92
|
if (availableLocale) {
|
|
96
93
|
result.locale = availableLocale;
|
|
97
94
|
if (locale !== noExtensionLocale) {
|
|
@@ -116,11 +113,11 @@
|
|
|
116
113
|
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
117
114
|
var utils_1 = require_utils();
|
|
118
115
|
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
119
|
-
var minimizedAvailableLocaleMap =
|
|
120
|
-
|
|
121
|
-
return
|
|
122
|
-
}
|
|
123
|
-
var minimizedAvailableLocales = new Set();
|
|
116
|
+
var minimizedAvailableLocaleMap = {};
|
|
117
|
+
availableLocales.forEach(function(l2) {
|
|
118
|
+
return minimizedAvailableLocaleMap[l2] = l2;
|
|
119
|
+
});
|
|
120
|
+
var minimizedAvailableLocales = /* @__PURE__ */ new Set();
|
|
124
121
|
availableLocales.forEach(function(locale2) {
|
|
125
122
|
var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
|
|
126
123
|
minimizedAvailableLocaleMap[minimizedLocale] = locale2;
|
|
@@ -148,7 +145,7 @@
|
|
|
148
145
|
foundLocale = minimizedRequestedLocale;
|
|
149
146
|
break;
|
|
150
147
|
}
|
|
151
|
-
foundLocale = BestAvailableLocale_1.BestAvailableLocale(minimizedAvailableLocales, maximizedRequestedLocale);
|
|
148
|
+
foundLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(minimizedAvailableLocales, maximizedRequestedLocale);
|
|
152
149
|
}
|
|
153
150
|
return {
|
|
154
151
|
locale: foundLocale && minimizedAvailableLocaleMap[foundLocale] || getDefaultLocale()
|
|
@@ -166,9 +163,9 @@
|
|
|
166
163
|
exports.UnicodeExtensionValue = void 0;
|
|
167
164
|
var utils_1 = require_utils();
|
|
168
165
|
function UnicodeExtensionValue(extension, key) {
|
|
169
|
-
utils_1.invariant(key.length === 2, "key must have 2 elements");
|
|
166
|
+
(0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
|
|
170
167
|
var size = extension.length;
|
|
171
|
-
var searchValue = "-"
|
|
168
|
+
var searchValue = "-".concat(key, "-");
|
|
172
169
|
var pos = extension.indexOf(searchValue);
|
|
173
170
|
if (pos !== -1) {
|
|
174
171
|
var start = pos + 4;
|
|
@@ -195,7 +192,7 @@
|
|
|
195
192
|
}
|
|
196
193
|
return extension.slice(start, end);
|
|
197
194
|
}
|
|
198
|
-
searchValue = "-"
|
|
195
|
+
searchValue = "-".concat(key);
|
|
199
196
|
pos = extension.indexOf(searchValue);
|
|
200
197
|
if (pos !== -1 && pos + 3 === size) {
|
|
201
198
|
return "";
|
|
@@ -216,44 +213,44 @@
|
|
|
216
213
|
var BestFitMatcher_1 = require_BestFitMatcher();
|
|
217
214
|
var utils_1 = require_utils();
|
|
218
215
|
var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
|
|
219
|
-
function
|
|
216
|
+
function ResolveLocale2(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
220
217
|
var matcher = options.localeMatcher;
|
|
221
218
|
var r;
|
|
222
219
|
if (matcher === "lookup") {
|
|
223
|
-
r = LookupMatcher_1.LookupMatcher(availableLocales, requestedLocales, getDefaultLocale);
|
|
220
|
+
r = (0, LookupMatcher_1.LookupMatcher)(availableLocales, requestedLocales, getDefaultLocale);
|
|
224
221
|
} else {
|
|
225
|
-
r = BestFitMatcher_1.BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale);
|
|
222
|
+
r = (0, BestFitMatcher_1.BestFitMatcher)(availableLocales, requestedLocales, getDefaultLocale);
|
|
226
223
|
}
|
|
227
224
|
var foundLocale = r.locale;
|
|
228
225
|
var result = { locale: "", dataLocale: foundLocale };
|
|
229
226
|
var supportedExtension = "-u";
|
|
230
227
|
for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _i < relevantExtensionKeys_1.length; _i++) {
|
|
231
228
|
var key = relevantExtensionKeys_1[_i];
|
|
232
|
-
utils_1.invariant(foundLocale in localeData, "Missing locale data for "
|
|
229
|
+
(0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
|
|
233
230
|
var foundLocaleData = localeData[foundLocale];
|
|
234
|
-
utils_1.invariant(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data "
|
|
231
|
+
(0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
|
|
235
232
|
var keyLocaleData = foundLocaleData[key];
|
|
236
|
-
utils_1.invariant(Array.isArray(keyLocaleData), "keyLocaleData for "
|
|
233
|
+
(0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
|
|
237
234
|
var value = keyLocaleData[0];
|
|
238
|
-
utils_1.invariant(typeof value === "string" || value === null, "value must be string or null but got "
|
|
235
|
+
(0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
|
|
239
236
|
var supportedExtensionAddition = "";
|
|
240
237
|
if (r.extension) {
|
|
241
|
-
var requestedValue = UnicodeExtensionValue_1.UnicodeExtensionValue(r.extension, key);
|
|
238
|
+
var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r.extension, key);
|
|
242
239
|
if (requestedValue !== void 0) {
|
|
243
240
|
if (requestedValue !== "") {
|
|
244
241
|
if (~keyLocaleData.indexOf(requestedValue)) {
|
|
245
242
|
value = requestedValue;
|
|
246
|
-
supportedExtensionAddition = "-"
|
|
243
|
+
supportedExtensionAddition = "-".concat(key, "-").concat(value);
|
|
247
244
|
}
|
|
248
245
|
} else if (~requestedValue.indexOf("true")) {
|
|
249
246
|
value = "true";
|
|
250
|
-
supportedExtensionAddition = "-"
|
|
247
|
+
supportedExtensionAddition = "-".concat(key);
|
|
251
248
|
}
|
|
252
249
|
}
|
|
253
250
|
}
|
|
254
251
|
if (key in options) {
|
|
255
252
|
var optionsValue = options[key];
|
|
256
|
-
utils_1.invariant(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
|
|
253
|
+
(0, utils_1.invariant)(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
|
|
257
254
|
if (~keyLocaleData.indexOf(optionsValue)) {
|
|
258
255
|
if (optionsValue !== value) {
|
|
259
256
|
value = optionsValue;
|
|
@@ -278,7 +275,7 @@
|
|
|
278
275
|
result.locale = foundLocale;
|
|
279
276
|
return result;
|
|
280
277
|
}
|
|
281
|
-
exports.ResolveLocale =
|
|
278
|
+
exports.ResolveLocale = ResolveLocale2;
|
|
282
279
|
}
|
|
283
280
|
});
|
|
284
281
|
|
|
@@ -295,7 +292,7 @@
|
|
|
295
292
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
296
293
|
var locale = requestedLocales_1[_i];
|
|
297
294
|
var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
298
|
-
var availableLocale = BestAvailableLocale_1.BestAvailableLocale(availableLocales, noExtensionLocale);
|
|
295
|
+
var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
|
|
299
296
|
if (availableLocale) {
|
|
300
297
|
subset.push(availableLocale);
|
|
301
298
|
}
|
|
@@ -313,18 +310,18 @@
|
|
|
313
310
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
314
311
|
exports.ResolveLocale = exports.LookupSupportedLocales = exports.match = void 0;
|
|
315
312
|
var ResolveLocale_1 = require_ResolveLocale();
|
|
316
|
-
function
|
|
313
|
+
function match2(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
317
314
|
var locales = availableLocales.reduce(function(all, l) {
|
|
318
315
|
all.add(l);
|
|
319
316
|
return all;
|
|
320
|
-
}, new Set());
|
|
321
|
-
return ResolveLocale_1.ResolveLocale(locales, requestedLocales, {
|
|
317
|
+
}, /* @__PURE__ */ new Set());
|
|
318
|
+
return (0, ResolveLocale_1.ResolveLocale)(locales, requestedLocales, {
|
|
322
319
|
localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
|
|
323
320
|
}, [], {}, function() {
|
|
324
321
|
return defaultLocale;
|
|
325
322
|
}).locale;
|
|
326
323
|
}
|
|
327
|
-
exports.match =
|
|
324
|
+
exports.match = match2;
|
|
328
325
|
var LookupSupportedLocales_1 = require_LookupSupportedLocales();
|
|
329
326
|
Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function() {
|
|
330
327
|
return LookupSupportedLocales_1.LookupSupportedLocales;
|
|
@@ -337,25 +334,6 @@
|
|
|
337
334
|
});
|
|
338
335
|
|
|
339
336
|
// node_modules/tslib/tslib.es6.js
|
|
340
|
-
var extendStatics = function(d, b) {
|
|
341
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
342
|
-
d2.__proto__ = b2;
|
|
343
|
-
} || function(d2, b2) {
|
|
344
|
-
for (var p in b2)
|
|
345
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
346
|
-
d2[p] = b2[p];
|
|
347
|
-
};
|
|
348
|
-
return extendStatics(d, b);
|
|
349
|
-
};
|
|
350
|
-
function __extends(d, b) {
|
|
351
|
-
if (typeof b !== "function" && b !== null)
|
|
352
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
353
|
-
extendStatics(d, b);
|
|
354
|
-
function __() {
|
|
355
|
-
this.constructor = d;
|
|
356
|
-
}
|
|
357
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
358
|
-
}
|
|
359
337
|
var __assign = function() {
|
|
360
338
|
__assign = Object.assign || function __assign2(t) {
|
|
361
339
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -412,7 +390,7 @@
|
|
|
412
390
|
if (values !== void 0 && !values.filter(function(val) {
|
|
413
391
|
return val == value;
|
|
414
392
|
}).length) {
|
|
415
|
-
throw new RangeError(value
|
|
393
|
+
throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
|
|
416
394
|
}
|
|
417
395
|
return value;
|
|
418
396
|
}
|
|
@@ -430,57 +408,6 @@
|
|
|
430
408
|
throw new TypeError("Options must be an object");
|
|
431
409
|
}
|
|
432
410
|
|
|
433
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
434
|
-
var SANCTIONED_UNITS = [
|
|
435
|
-
"angle-degree",
|
|
436
|
-
"area-acre",
|
|
437
|
-
"area-hectare",
|
|
438
|
-
"concentr-percent",
|
|
439
|
-
"digital-bit",
|
|
440
|
-
"digital-byte",
|
|
441
|
-
"digital-gigabit",
|
|
442
|
-
"digital-gigabyte",
|
|
443
|
-
"digital-kilobit",
|
|
444
|
-
"digital-kilobyte",
|
|
445
|
-
"digital-megabit",
|
|
446
|
-
"digital-megabyte",
|
|
447
|
-
"digital-petabyte",
|
|
448
|
-
"digital-terabit",
|
|
449
|
-
"digital-terabyte",
|
|
450
|
-
"duration-day",
|
|
451
|
-
"duration-hour",
|
|
452
|
-
"duration-millisecond",
|
|
453
|
-
"duration-minute",
|
|
454
|
-
"duration-month",
|
|
455
|
-
"duration-second",
|
|
456
|
-
"duration-week",
|
|
457
|
-
"duration-year",
|
|
458
|
-
"length-centimeter",
|
|
459
|
-
"length-foot",
|
|
460
|
-
"length-inch",
|
|
461
|
-
"length-kilometer",
|
|
462
|
-
"length-meter",
|
|
463
|
-
"length-mile-scandinavian",
|
|
464
|
-
"length-mile",
|
|
465
|
-
"length-millimeter",
|
|
466
|
-
"length-yard",
|
|
467
|
-
"mass-gram",
|
|
468
|
-
"mass-kilogram",
|
|
469
|
-
"mass-ounce",
|
|
470
|
-
"mass-pound",
|
|
471
|
-
"mass-stone",
|
|
472
|
-
"temperature-celsius",
|
|
473
|
-
"temperature-fahrenheit",
|
|
474
|
-
"volume-fluid-ounce",
|
|
475
|
-
"volume-gallon",
|
|
476
|
-
"volume-liter",
|
|
477
|
-
"volume-milliliter"
|
|
478
|
-
];
|
|
479
|
-
function removeUnitNamespace(unit) {
|
|
480
|
-
return unit.slice(unit.indexOf("-") + 1);
|
|
481
|
-
}
|
|
482
|
-
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
483
|
-
|
|
484
411
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/IsWellFormedCurrencyCode.js
|
|
485
412
|
function toUpperCase(str) {
|
|
486
413
|
return str.replace(/([a-z])/g, function(_, c) {
|
|
@@ -517,7 +444,7 @@
|
|
|
517
444
|
}
|
|
518
445
|
var slots = map.get(pl);
|
|
519
446
|
if (!slots) {
|
|
520
|
-
throw new TypeError(pl
|
|
447
|
+
throw new TypeError("".concat(pl, " InternalSlot has not been initialized"));
|
|
521
448
|
}
|
|
522
449
|
return fields.reduce(function(all, f) {
|
|
523
450
|
all[f] = slots[f];
|
|
@@ -533,18 +460,8 @@
|
|
|
533
460
|
}
|
|
534
461
|
}
|
|
535
462
|
|
|
536
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/regex.generated.js
|
|
537
|
-
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
538
|
-
|
|
539
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
540
|
-
var CARET_S_UNICODE_REGEX = new RegExp("^" + S_UNICODE_REGEX.source);
|
|
541
|
-
var S_DOLLAR_UNICODE_REGEX = new RegExp(S_UNICODE_REGEX.source + "$");
|
|
542
|
-
|
|
543
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/InitializeNumberFormat.js
|
|
544
|
-
var import_intl_localematcher = __toModule(require_intl_localematcher());
|
|
545
|
-
|
|
546
463
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js
|
|
547
|
-
var
|
|
464
|
+
var import_intl_localematcher = __toESM(require_intl_localematcher());
|
|
548
465
|
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
549
466
|
var matcher = "best fit";
|
|
550
467
|
if (options !== void 0) {
|
|
@@ -552,30 +469,11 @@
|
|
|
552
469
|
matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
553
470
|
}
|
|
554
471
|
if (matcher === "best fit") {
|
|
555
|
-
return (0,
|
|
472
|
+
return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
|
|
556
473
|
}
|
|
557
|
-
return (0,
|
|
474
|
+
return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
|
|
558
475
|
}
|
|
559
476
|
|
|
560
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/data.js
|
|
561
|
-
var MissingLocaleDataError = function(_super) {
|
|
562
|
-
__extends(MissingLocaleDataError2, _super);
|
|
563
|
-
function MissingLocaleDataError2() {
|
|
564
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
565
|
-
_this.type = "MISSING_LOCALE_DATA";
|
|
566
|
-
return _this;
|
|
567
|
-
}
|
|
568
|
-
return MissingLocaleDataError2;
|
|
569
|
-
}(Error);
|
|
570
|
-
|
|
571
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
|
|
572
|
-
var RangePatternType;
|
|
573
|
-
(function(RangePatternType2) {
|
|
574
|
-
RangePatternType2["startRange"] = "startRange";
|
|
575
|
-
RangePatternType2["shared"] = "shared";
|
|
576
|
-
RangePatternType2["endRange"] = "endRange";
|
|
577
|
-
})(RangePatternType || (RangePatternType = {}));
|
|
578
|
-
|
|
579
477
|
// bazel-out/darwin-fastbuild/bin/packages/intl-displaynames/lib/abstract/CanonicalCodeForDisplayNames.js
|
|
580
478
|
var UNICODE_REGION_SUBTAG_REGEX = /^([a-z]{2}|[0-9]{3})$/i;
|
|
581
479
|
var ALPHA_4 = /^[a-z]{4}$/i;
|
|
@@ -599,7 +497,7 @@
|
|
|
599
497
|
if (!isUnicodeScriptSubtag(code)) {
|
|
600
498
|
throw RangeError("invalid script");
|
|
601
499
|
}
|
|
602
|
-
return ""
|
|
500
|
+
return "".concat(code[0].toUpperCase()).concat(code.slice(1).toLowerCase());
|
|
603
501
|
}
|
|
604
502
|
invariant(type === "currency", "invalid type");
|
|
605
503
|
if (!IsWellFormedCurrencyCode(code)) {
|
|
@@ -609,7 +507,7 @@
|
|
|
609
507
|
}
|
|
610
508
|
|
|
611
509
|
// bazel-out/darwin-fastbuild/bin/packages/intl-displaynames/lib/index.js
|
|
612
|
-
var
|
|
510
|
+
var import_intl_localematcher2 = __toESM(require_intl_localematcher());
|
|
613
511
|
var DisplayNames = function() {
|
|
614
512
|
function DisplayNames2(locales, options) {
|
|
615
513
|
var _newTarget = this.constructor;
|
|
@@ -622,7 +520,7 @@
|
|
|
622
520
|
var localeData = DisplayNames2.localeData;
|
|
623
521
|
var matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
624
522
|
opt.localeMatcher = matcher;
|
|
625
|
-
var r = (0,
|
|
523
|
+
var r = (0, import_intl_localematcher2.ResolveLocale)(DisplayNames2.availableLocales, requestedLocales, opt, [], DisplayNames2.localeData, DisplayNames2.getDefaultLocale);
|
|
626
524
|
var style = GetOption(options, "style", "string", ["narrow", "short", "long"], "long");
|
|
627
525
|
setSlot(this, "style", style);
|
|
628
526
|
var type = GetOption(options, "type", "string", ["language", "currency", "region", "script"], void 0);
|
|
@@ -635,9 +533,9 @@
|
|
|
635
533
|
setSlot(this, "locale", r.locale);
|
|
636
534
|
var dataLocale = r.dataLocale;
|
|
637
535
|
var dataLocaleData = localeData[dataLocale];
|
|
638
|
-
invariant(!!dataLocaleData, "Missing locale data for "
|
|
536
|
+
invariant(!!dataLocaleData, "Missing locale data for ".concat(dataLocale));
|
|
639
537
|
setSlot(this, "localeData", dataLocaleData);
|
|
640
|
-
invariant(dataLocaleData !== void 0, "locale data for "
|
|
538
|
+
invariant(dataLocaleData !== void 0, "locale data for ".concat(r.locale, " does not exist."));
|
|
641
539
|
var types = dataLocaleData.types;
|
|
642
540
|
invariant(typeof types === "object" && types != null, "invalid types data");
|
|
643
541
|
var typeFields = types[type];
|
|
@@ -708,7 +606,7 @@
|
|
|
708
606
|
return DisplayNames2.__defaultLocale;
|
|
709
607
|
};
|
|
710
608
|
DisplayNames2.localeData = {};
|
|
711
|
-
DisplayNames2.availableLocales = new Set();
|
|
609
|
+
DisplayNames2.availableLocales = /* @__PURE__ */ new Set();
|
|
712
610
|
DisplayNames2.__defaultLocale = "";
|
|
713
611
|
DisplayNames2.polyfilled = true;
|
|
714
612
|
return DisplayNames2;
|
|
@@ -742,7 +640,7 @@
|
|
|
742
640
|
});
|
|
743
641
|
} catch (e) {
|
|
744
642
|
}
|
|
745
|
-
var __INTERNAL_SLOT_MAP__ = new WeakMap();
|
|
643
|
+
var __INTERNAL_SLOT_MAP__ = /* @__PURE__ */ new WeakMap();
|
|
746
644
|
function getSlot(instance, key) {
|
|
747
645
|
return getInternalSlot(__INTERNAL_SLOT_MAP__, instance, key);
|
|
748
646
|
}
|
|
@@ -751,10 +649,16 @@
|
|
|
751
649
|
}
|
|
752
650
|
function checkReceiver(receiver, methodName) {
|
|
753
651
|
if (!(receiver instanceof DisplayNames)) {
|
|
754
|
-
throw TypeError("Method Intl.DisplayNames.prototype."
|
|
652
|
+
throw TypeError("Method Intl.DisplayNames.prototype.".concat(methodName, " called on incompatible receiver"));
|
|
755
653
|
}
|
|
756
654
|
}
|
|
757
655
|
|
|
656
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-displaynames/lib/should-polyfill.js
|
|
657
|
+
var import_intl_localematcher3 = __toESM(require_intl_localematcher());
|
|
658
|
+
|
|
659
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-displaynames/lib/supported-locales.js
|
|
660
|
+
var supportedLocales = ["af-NA", "af", "agq", "ak", "am", "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", "ar", "as", "asa", "ast", "az-Cyrl", "az-Latn", "az", "bas", "be-tarask", "be", "bem", "bez", "bg", "bm", "bn-IN", "bn", "bo-IN", "bo", "br", "brx", "bs-Cyrl", "bs-Latn", "bs", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ca", "ccp-IN", "ccp", "ce", "ceb", "cgg", "chr", "ckb-IR", "ckb", "cs", "cy", "da-GL", "da", "dav", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "de", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee-TG", "ee", "el-CY", "el", "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", "en", "eo", "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", "es", "et", "eu", "ewo", "fa-AF", "fa", "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-Adlm", "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", "ff-Latn", "ff", "fi", "fil", "fo-DK", "fo", "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", "fr", "fur", "fy", "ga-GB", "ga", "gd", "gl", "gsw-FR", "gsw-LI", "gsw", "gu", "guz", "gv", "ha-GH", "ha-NE", "ha", "haw", "he", "hi", "hr-BA", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it-CH", "it-SM", "it-VA", "it", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko-KP", "ko", "kok", "ks-Arab", "ks", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln-AO", "ln-CF", "ln-CG", "ln", "lo", "lrc-IQ", "lrc", "lt", "lu", "luo", "luy", "lv", "mai", "mas-TZ", "mas", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni-Beng", "mni", "mr", "ms-BN", "ms-ID", "ms-SG", "ms", "mt", "mua", "my", "mzn", "naq", "nb-SJ", "nb", "nd", "nds-NL", "nds", "ne-IN", "ne", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nl", "nmg", "nn", "nnh", "no", "nus", "nyn", "om-KE", "om", "or", "os-RU", "os", "pa-Arab", "pa-Guru", "pa", "pcm", "pl", "ps-PK", "ps", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "pt", "qu-BO", "qu-EC", "qu", "rm", "rn", "ro-MD", "ro", "rof", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "ru", "rw", "rwk", "sa", "sah", "saq", "sat-Olck", "sat", "sbp", "sc", "sd-Arab", "sd-Deva", "sd", "se-FI", "se-SE", "se", "seh", "ses", "sg", "shi-Latn", "shi-Tfng", "shi", "si", "sk", "sl", "smn", "sn", "so-DJ", "so-ET", "so-KE", "so", "sq-MK", "sq-XK", "sq", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Cyrl", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sr-Latn", "sr", "su-Latn", "su", "sv-AX", "sv-FI", "sv", "sw-CD", "sw-KE", "sw-UG", "sw", "ta-LK", "ta-MY", "ta-SG", "ta", "te", "teo-KE", "teo", "tg", "th", "ti-ER", "ti", "tk", "to", "tr-CY", "tr", "tt", "twq", "tzm", "ug", "uk", "und", "ur-IN", "ur", "uz-Arab", "uz-Cyrl", "uz-Latn", "uz", "vai-Latn", "vai-Vaii", "vai", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo-BJ", "yo", "yrl-CO", "yrl-VE", "yrl", "yue-Hans", "yue-Hant", "yue", "zgh", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hans", "zh-Hant-HK", "zh-Hant-MO", "zh-Hant", "zh", "zu"];
|
|
661
|
+
|
|
758
662
|
// bazel-out/darwin-fastbuild/bin/packages/intl-displaynames/lib/should-polyfill.js
|
|
759
663
|
function hasMissingICUBug() {
|
|
760
664
|
var DisplayNames2 = Intl.DisplayNames;
|
|
@@ -781,8 +685,16 @@
|
|
|
781
685
|
var locales = Array.isArray(locale) ? locale : [locale];
|
|
782
686
|
return Intl.DisplayNames.supportedLocalesOf(locales).length === locales.length;
|
|
783
687
|
}
|
|
688
|
+
function _shouldPolyfillWithoutLocale() {
|
|
689
|
+
return !Intl.DisplayNames || hasMissingICUBug() || hasScriptBug();
|
|
690
|
+
}
|
|
784
691
|
function shouldPolyfill(locale) {
|
|
785
|
-
|
|
692
|
+
if (locale === void 0) {
|
|
693
|
+
locale = "en";
|
|
694
|
+
}
|
|
695
|
+
if (_shouldPolyfillWithoutLocale() || !supportedLocalesOf(locale)) {
|
|
696
|
+
return (0, import_intl_localematcher3.match)([locale], supportedLocales, "en");
|
|
697
|
+
}
|
|
786
698
|
}
|
|
787
699
|
|
|
788
700
|
// bazel-out/darwin-fastbuild/bin/packages/intl-displaynames/lib/polyfill.js
|
package/polyfill.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var _1 = require("./");
|
|
4
4
|
var should_polyfill_1 = require("./should-polyfill");
|
|
5
|
-
if (should_polyfill_1.shouldPolyfill()) {
|
|
5
|
+
if ((0, should_polyfill_1.shouldPolyfill)()) {
|
|
6
6
|
Object.defineProperty(Intl, 'DisplayNames', {
|
|
7
7
|
value: _1.DisplayNames,
|
|
8
8
|
enumerable: false,
|
package/should-polyfill.d.ts
CHANGED
package/should-polyfill.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-displaynames/should-polyfill.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-displaynames/should-polyfill.ts"],"names":[],"mappings":"AA4CA,wBAAgB,4BAA4B,YAE3C;AAED,wBAAgB,cAAc,CAAC,MAAM,SAAO,sBAI3C"}
|
package/should-polyfill.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.shouldPolyfill = void 0;
|
|
3
|
+
exports.shouldPolyfill = exports._shouldPolyfillWithoutLocale = void 0;
|
|
4
|
+
var intl_localematcher_1 = require("@formatjs/intl-localematcher");
|
|
5
|
+
var supported_locales_1 = require("./supported-locales");
|
|
4
6
|
/**
|
|
5
7
|
* https://bugs.chromium.org/p/chromium/issues/detail?id=1097432
|
|
6
8
|
*/
|
|
@@ -33,10 +35,14 @@ function supportedLocalesOf(locale) {
|
|
|
33
35
|
return (Intl.DisplayNames.supportedLocalesOf(locales).length ===
|
|
34
36
|
locales.length);
|
|
35
37
|
}
|
|
38
|
+
function _shouldPolyfillWithoutLocale() {
|
|
39
|
+
return !Intl.DisplayNames || hasMissingICUBug() || hasScriptBug();
|
|
40
|
+
}
|
|
41
|
+
exports._shouldPolyfillWithoutLocale = _shouldPolyfillWithoutLocale;
|
|
36
42
|
function shouldPolyfill(locale) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
if (locale === void 0) { locale = 'en'; }
|
|
44
|
+
if (_shouldPolyfillWithoutLocale() || !supportedLocalesOf(locale)) {
|
|
45
|
+
return (0, intl_localematcher_1.match)([locale], supported_locales_1.supportedLocales, 'en');
|
|
46
|
+
}
|
|
41
47
|
}
|
|
42
48
|
exports.shouldPolyfill = shouldPolyfill;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-displaynames/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAsqI,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportedLocales = void 0;
|
|
4
|
+
// This file is generated from supported-locales-gen.ts
|
|
5
|
+
exports.supportedLocales = ["af-NA", "af", "agq", "ak", "am", "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", "ar", "as", "asa", "ast", "az-Cyrl", "az-Latn", "az", "bas", "be-tarask", "be", "bem", "bez", "bg", "bm", "bn-IN", "bn", "bo-IN", "bo", "br", "brx", "bs-Cyrl", "bs-Latn", "bs", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ca", "ccp-IN", "ccp", "ce", "ceb", "cgg", "chr", "ckb-IR", "ckb", "cs", "cy", "da-GL", "da", "dav", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "de", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee-TG", "ee", "el-CY", "el", "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", "en", "eo", "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", "es", "et", "eu", "ewo", "fa-AF", "fa", "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-Adlm", "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", "ff-Latn", "ff", "fi", "fil", "fo-DK", "fo", "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", "fr", "fur", "fy", "ga-GB", "ga", "gd", "gl", "gsw-FR", "gsw-LI", "gsw", "gu", "guz", "gv", "ha-GH", "ha-NE", "ha", "haw", "he", "hi", "hr-BA", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it-CH", "it-SM", "it-VA", "it", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko-KP", "ko", "kok", "ks-Arab", "ks", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln-AO", "ln-CF", "ln-CG", "ln", "lo", "lrc-IQ", "lrc", "lt", "lu", "luo", "luy", "lv", "mai", "mas-TZ", "mas", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni-Beng", "mni", "mr", "ms-BN", "ms-ID", "ms-SG", "ms", "mt", "mua", "my", "mzn", "naq", "nb-SJ", "nb", "nd", "nds-NL", "nds", "ne-IN", "ne", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nl", "nmg", "nn", "nnh", "no", "nus", "nyn", "om-KE", "om", "or", "os-RU", "os", "pa-Arab", "pa-Guru", "pa", "pcm", "pl", "ps-PK", "ps", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "pt", "qu-BO", "qu-EC", "qu", "rm", "rn", "ro-MD", "ro", "rof", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "ru", "rw", "rwk", "sa", "sah", "saq", "sat-Olck", "sat", "sbp", "sc", "sd-Arab", "sd-Deva", "sd", "se-FI", "se-SE", "se", "seh", "ses", "sg", "shi-Latn", "shi-Tfng", "shi", "si", "sk", "sl", "smn", "sn", "so-DJ", "so-ET", "so-KE", "so", "sq-MK", "sq-XK", "sq", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Cyrl", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sr-Latn", "sr", "su-Latn", "su", "sv-AX", "sv-FI", "sv", "sw-CD", "sw-KE", "sw-UG", "sw", "ta-LK", "ta-MY", "ta-SG", "ta", "te", "teo-KE", "teo", "tg", "th", "ti-ER", "ti", "tk", "to", "tr-CY", "tr", "tt", "twq", "tzm", "ug", "uk", "und", "ur-IN", "ur", "uz-Arab", "uz-Cyrl", "uz-Latn", "uz", "vai-Latn", "vai-Vaii", "vai", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo-BJ", "yo", "yrl-CO", "yrl-VE", "yrl", "yue-Hans", "yue-Hant", "yue", "zgh", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hans", "zh-Hant-HK", "zh-Hant-MO", "zh-Hant", "zh", "zu"];
|