@formatjs/intl-pluralrules 5.1.0 → 5.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstract/GetOperands.d.ts +32 -0
- package/abstract/GetOperands.d.ts.map +1 -0
- package/abstract/GetOperands.js +50 -0
- package/abstract/InitializePluralRules.d.ts +9 -0
- package/abstract/InitializePluralRules.d.ts.map +1 -0
- package/abstract/InitializePluralRules.js +21 -0
- package/abstract/ResolvePlural.d.ts +13 -0
- package/abstract/ResolvePlural.d.ts.map +1 -0
- package/abstract/ResolvePlural.js +27 -0
- package/get_internal_slots.d.ts +3 -0
- package/get_internal_slots.d.ts.map +1 -0
- package/get_internal_slots.js +12 -0
- package/index.d.ts +21 -0
- package/index.d.ts.map +1 -0
- package/index.js +141 -0
- package/lib/abstract/GetOperands.d.ts +32 -0
- package/lib/abstract/GetOperands.d.ts.map +1 -0
- package/lib/abstract/GetOperands.js +46 -0
- package/lib/abstract/InitializePluralRules.d.ts +9 -0
- package/lib/abstract/InitializePluralRules.d.ts.map +1 -0
- package/lib/abstract/InitializePluralRules.js +17 -0
- package/lib/abstract/ResolvePlural.d.ts +13 -0
- package/lib/abstract/ResolvePlural.d.ts.map +1 -0
- package/lib/abstract/ResolvePlural.js +23 -0
- package/lib/get_internal_slots.d.ts +3 -0
- package/lib/get_internal_slots.d.ts.map +1 -0
- package/lib/get_internal_slots.js +9 -0
- package/lib/index.d.ts +21 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +138 -0
- package/lib/polyfill-force.d.ts +2 -0
- package/lib/polyfill-force.d.ts.map +1 -0
- package/lib/polyfill-force.js +7 -0
- package/lib/polyfill.d.ts +2 -0
- package/lib/polyfill.d.ts.map +1 -0
- package/lib/polyfill.js +10 -0
- package/lib/should-polyfill.d.ts +2 -0
- package/lib/should-polyfill.d.ts.map +1 -0
- package/lib/should-polyfill.js +18 -0
- package/lib/supported-locales.generated.d.ts +2 -0
- package/lib/supported-locales.generated.d.ts.map +1 -0
- package/lib/supported-locales.generated.js +1 -0
- package/locale-data/af.d.ts +1 -0
- package/locale-data/af.js +8 -0
- package/locale-data/ak.d.ts +1 -0
- package/locale-data/ak.js +8 -0
- package/locale-data/am.d.ts +1 -0
- package/locale-data/am.js +8 -0
- package/locale-data/an.d.ts +1 -0
- package/locale-data/an.js +8 -0
- package/locale-data/ar.d.ts +1 -0
- package/locale-data/ar.js +14 -0
- package/locale-data/ars.d.ts +1 -0
- package/locale-data/ars.js +14 -0
- package/locale-data/as.d.ts +1 -0
- package/locale-data/as.js +12 -0
- package/locale-data/asa.d.ts +1 -0
- package/locale-data/asa.js +8 -0
- package/locale-data/ast.d.ts +1 -0
- package/locale-data/ast.js +9 -0
- package/locale-data/az.d.ts +1 -0
- package/locale-data/az.js +12 -0
- package/locale-data/bal.d.ts +1 -0
- package/locale-data/bal.js +7 -0
- package/locale-data/be.d.ts +1 -0
- package/locale-data/be.js +12 -0
- package/locale-data/bem.d.ts +1 -0
- package/locale-data/bem.js +8 -0
- package/locale-data/bez.d.ts +1 -0
- package/locale-data/bez.js +8 -0
- package/locale-data/bg.d.ts +1 -0
- package/locale-data/bg.js +8 -0
- package/locale-data/bho.d.ts +1 -0
- package/locale-data/bho.js +8 -0
- package/locale-data/bm.d.ts +1 -0
- package/locale-data/bm.js +7 -0
- package/locale-data/bn.d.ts +1 -0
- package/locale-data/bn.js +12 -0
- package/locale-data/bo.d.ts +1 -0
- package/locale-data/bo.js +7 -0
- package/locale-data/br.d.ts +1 -0
- package/locale-data/br.js +13 -0
- package/locale-data/brx.d.ts +1 -0
- package/locale-data/brx.js +8 -0
- package/locale-data/bs.d.ts +1 -0
- package/locale-data/bs.js +11 -0
- package/locale-data/ca.d.ts +1 -0
- package/locale-data/ca.js +12 -0
- package/locale-data/ce.d.ts +1 -0
- package/locale-data/ce.js +8 -0
- package/locale-data/ceb.d.ts +1 -0
- package/locale-data/ceb.js +9 -0
- package/locale-data/cgg.d.ts +1 -0
- package/locale-data/cgg.js +8 -0
- package/locale-data/chr.d.ts +1 -0
- package/locale-data/chr.js +8 -0
- package/locale-data/ckb.d.ts +1 -0
- package/locale-data/ckb.js +8 -0
- package/locale-data/cs.d.ts +1 -0
- package/locale-data/cs.js +12 -0
- package/locale-data/cy.d.ts +1 -0
- package/locale-data/cy.js +18 -0
- package/locale-data/da.d.ts +1 -0
- package/locale-data/da.js +9 -0
- package/locale-data/de.d.ts +1 -0
- package/locale-data/de.js +9 -0
- package/locale-data/doi.d.ts +1 -0
- package/locale-data/doi.js +8 -0
- package/locale-data/dsb.d.ts +1 -0
- package/locale-data/dsb.js +12 -0
- package/locale-data/dv.d.ts +1 -0
- package/locale-data/dv.js +8 -0
- package/locale-data/dz.d.ts +1 -0
- package/locale-data/dz.js +7 -0
- package/locale-data/ee.d.ts +1 -0
- package/locale-data/ee.js +8 -0
- package/locale-data/el.d.ts +1 -0
- package/locale-data/el.js +8 -0
- package/locale-data/en.d.ts +1 -0
- package/{tests/locale-data/en.ts → locale-data/en.js} +4 -3
- package/locale-data/eo.d.ts +1 -0
- package/locale-data/eo.js +8 -0
- package/locale-data/es.d.ts +1 -0
- package/locale-data/es.js +11 -0
- package/locale-data/et.d.ts +1 -0
- package/locale-data/et.js +9 -0
- package/locale-data/eu.d.ts +1 -0
- package/locale-data/eu.js +8 -0
- package/locale-data/fa.d.ts +1 -0
- package/locale-data/fa.js +8 -0
- package/locale-data/ff.d.ts +1 -0
- package/locale-data/ff.js +8 -0
- package/locale-data/fi.d.ts +1 -0
- package/locale-data/fi.js +9 -0
- package/locale-data/fil.d.ts +1 -0
- package/locale-data/fil.js +9 -0
- package/locale-data/fo.d.ts +1 -0
- package/locale-data/fo.js +8 -0
- package/locale-data/fr.d.ts +1 -0
- package/{tests/locale-data/fr.ts → locale-data/fr.js} +4 -3
- package/locale-data/fur.d.ts +1 -0
- package/locale-data/fur.js +8 -0
- package/locale-data/fy.d.ts +1 -0
- package/locale-data/fy.js +9 -0
- package/locale-data/ga.d.ts +1 -0
- package/locale-data/ga.js +13 -0
- package/locale-data/gd.d.ts +1 -0
- package/locale-data/gd.js +15 -0
- package/locale-data/gl.d.ts +1 -0
- package/locale-data/gl.js +9 -0
- package/locale-data/gsw.d.ts +1 -0
- package/locale-data/gsw.js +8 -0
- package/locale-data/gu.d.ts +1 -0
- package/locale-data/gu.js +12 -0
- package/locale-data/guw.d.ts +1 -0
- package/locale-data/guw.js +8 -0
- package/locale-data/gv.d.ts +1 -0
- package/locale-data/gv.js +13 -0
- package/locale-data/ha.d.ts +1 -0
- package/locale-data/ha.js +8 -0
- package/locale-data/haw.d.ts +1 -0
- package/locale-data/haw.js +8 -0
- package/locale-data/he.d.ts +1 -0
- package/locale-data/he.js +12 -0
- package/locale-data/hi.d.ts +1 -0
- package/locale-data/hi.js +12 -0
- package/locale-data/hnj.d.ts +1 -0
- package/locale-data/hnj.js +7 -0
- package/locale-data/hr.d.ts +1 -0
- package/locale-data/hr.js +11 -0
- package/locale-data/hsb.d.ts +1 -0
- package/locale-data/hsb.js +12 -0
- package/locale-data/hu.d.ts +1 -0
- package/locale-data/hu.js +8 -0
- package/locale-data/hy.d.ts +1 -0
- package/locale-data/hy.js +8 -0
- package/locale-data/ia.d.ts +1 -0
- package/locale-data/ia.js +9 -0
- package/locale-data/id.d.ts +1 -0
- package/locale-data/id.js +7 -0
- package/locale-data/ig.d.ts +1 -0
- package/locale-data/ig.js +7 -0
- package/locale-data/ii.d.ts +1 -0
- package/locale-data/ii.js +7 -0
- package/locale-data/io.d.ts +1 -0
- package/locale-data/io.js +9 -0
- package/locale-data/is.d.ts +1 -0
- package/locale-data/is.js +9 -0
- package/locale-data/it.d.ts +1 -0
- package/locale-data/it.js +11 -0
- package/locale-data/iu.d.ts +1 -0
- package/locale-data/iu.js +10 -0
- package/locale-data/ja.d.ts +1 -0
- package/locale-data/ja.js +7 -0
- package/locale-data/jbo.d.ts +1 -0
- package/locale-data/jbo.js +7 -0
- package/locale-data/jgo.d.ts +1 -0
- package/locale-data/jgo.js +8 -0
- package/locale-data/jmc.d.ts +1 -0
- package/locale-data/jmc.js +8 -0
- package/locale-data/jv.d.ts +1 -0
- package/locale-data/jv.js +7 -0
- package/locale-data/jw.d.ts +1 -0
- package/locale-data/jw.js +7 -0
- package/locale-data/ka.d.ts +1 -0
- package/locale-data/ka.js +11 -0
- package/locale-data/kab.d.ts +1 -0
- package/locale-data/kab.js +8 -0
- package/locale-data/kaj.d.ts +1 -0
- package/locale-data/kaj.js +8 -0
- package/locale-data/kcg.d.ts +1 -0
- package/locale-data/kcg.js +8 -0
- package/locale-data/kde.d.ts +1 -0
- package/locale-data/kde.js +7 -0
- package/locale-data/kea.d.ts +1 -0
- package/locale-data/kea.js +7 -0
- package/locale-data/kk.d.ts +1 -0
- package/locale-data/kk.js +9 -0
- package/locale-data/kkj.d.ts +1 -0
- package/locale-data/kkj.js +8 -0
- package/locale-data/kl.d.ts +1 -0
- package/locale-data/kl.js +8 -0
- package/locale-data/km.d.ts +1 -0
- package/locale-data/km.js +7 -0
- package/locale-data/kn.d.ts +1 -0
- package/locale-data/kn.js +8 -0
- package/locale-data/ko.d.ts +1 -0
- package/locale-data/ko.js +7 -0
- package/locale-data/ks.d.ts +1 -0
- package/locale-data/ks.js +8 -0
- package/locale-data/ksb.d.ts +1 -0
- package/locale-data/ksb.js +8 -0
- package/locale-data/ksh.d.ts +1 -0
- package/locale-data/ksh.js +10 -0
- package/locale-data/ku.d.ts +1 -0
- package/locale-data/ku.js +8 -0
- package/locale-data/kw.d.ts +1 -0
- package/locale-data/kw.js +16 -0
- package/locale-data/ky.d.ts +1 -0
- package/locale-data/ky.js +8 -0
- package/locale-data/lag.d.ts +1 -0
- package/locale-data/lag.js +11 -0
- package/locale-data/lb.d.ts +1 -0
- package/locale-data/lb.js +8 -0
- package/locale-data/lg.d.ts +1 -0
- package/locale-data/lg.js +8 -0
- package/locale-data/lij.d.ts +1 -0
- package/locale-data/lij.js +9 -0
- package/locale-data/lkt.d.ts +1 -0
- package/locale-data/lkt.js +7 -0
- package/locale-data/ln.d.ts +1 -0
- package/locale-data/ln.js +8 -0
- package/locale-data/lo.d.ts +1 -0
- package/locale-data/lo.js +8 -0
- package/locale-data/lt.d.ts +1 -0
- package/locale-data/lt.js +12 -0
- package/locale-data/lv.d.ts +1 -0
- package/locale-data/lv.js +11 -0
- package/locale-data/mas.d.ts +1 -0
- package/locale-data/mas.js +8 -0
- package/locale-data/mg.d.ts +1 -0
- package/locale-data/mg.js +8 -0
- package/locale-data/mgo.d.ts +1 -0
- package/locale-data/mgo.js +8 -0
- package/locale-data/mk.d.ts +1 -0
- package/locale-data/mk.js +12 -0
- package/locale-data/ml.d.ts +1 -0
- package/locale-data/ml.js +8 -0
- package/locale-data/mn.d.ts +1 -0
- package/locale-data/mn.js +8 -0
- package/locale-data/mo.d.ts +1 -0
- package/locale-data/mo.js +11 -0
- package/locale-data/mr.d.ts +1 -0
- package/locale-data/mr.js +11 -0
- package/locale-data/ms.d.ts +1 -0
- package/locale-data/ms.js +8 -0
- package/locale-data/mt.d.ts +1 -0
- package/locale-data/mt.js +12 -0
- package/locale-data/my.d.ts +1 -0
- package/locale-data/my.js +7 -0
- package/locale-data/nah.d.ts +1 -0
- package/locale-data/nah.js +8 -0
- package/locale-data/naq.d.ts +1 -0
- package/locale-data/naq.js +10 -0
- package/locale-data/nb.d.ts +1 -0
- package/locale-data/nb.js +8 -0
- package/locale-data/nd.d.ts +1 -0
- package/locale-data/nd.js +8 -0
- package/locale-data/ne.d.ts +1 -0
- package/locale-data/ne.js +9 -0
- package/locale-data/nl.d.ts +1 -0
- package/locale-data/nl.js +9 -0
- package/locale-data/nn.d.ts +1 -0
- package/locale-data/nn.js +8 -0
- package/locale-data/nnh.d.ts +1 -0
- package/locale-data/nnh.js +8 -0
- package/locale-data/no.d.ts +1 -0
- package/locale-data/no.js +8 -0
- package/locale-data/nqo.d.ts +1 -0
- package/locale-data/nqo.js +7 -0
- package/locale-data/nr.d.ts +1 -0
- package/locale-data/nr.js +8 -0
- package/locale-data/nso.d.ts +1 -0
- package/locale-data/nso.js +8 -0
- package/locale-data/ny.d.ts +1 -0
- package/locale-data/ny.js +8 -0
- package/locale-data/nyn.d.ts +1 -0
- package/locale-data/nyn.js +8 -0
- package/locale-data/om.d.ts +1 -0
- package/locale-data/om.js +8 -0
- package/locale-data/or.d.ts +1 -0
- package/locale-data/or.js +13 -0
- package/locale-data/os.d.ts +1 -0
- package/locale-data/os.js +8 -0
- package/locale-data/osa.d.ts +1 -0
- package/locale-data/osa.js +7 -0
- package/locale-data/pa.d.ts +1 -0
- package/locale-data/pa.js +8 -0
- package/locale-data/pap.d.ts +1 -0
- package/locale-data/pap.js +8 -0
- package/locale-data/pcm.d.ts +1 -0
- package/locale-data/pcm.js +8 -0
- package/locale-data/pl.d.ts +1 -0
- package/locale-data/pl.js +12 -0
- package/locale-data/prg.d.ts +1 -0
- package/locale-data/prg.js +11 -0
- package/locale-data/ps.d.ts +1 -0
- package/locale-data/ps.js +8 -0
- package/locale-data/pt-PT.d.ts +1 -0
- package/locale-data/pt-PT.js +11 -0
- package/locale-data/pt.d.ts +1 -0
- package/locale-data/pt.js +11 -0
- package/locale-data/rm.d.ts +1 -0
- package/locale-data/rm.js +8 -0
- package/locale-data/ro.d.ts +1 -0
- package/locale-data/ro.js +11 -0
- package/locale-data/rof.d.ts +1 -0
- package/locale-data/rof.js +8 -0
- package/locale-data/ru.d.ts +1 -0
- package/locale-data/ru.js +12 -0
- package/locale-data/rwk.d.ts +1 -0
- package/locale-data/rwk.js +8 -0
- package/locale-data/sah.d.ts +1 -0
- package/locale-data/sah.js +7 -0
- package/locale-data/saq.d.ts +1 -0
- package/locale-data/saq.js +8 -0
- package/locale-data/sat.d.ts +1 -0
- package/locale-data/sat.js +10 -0
- package/locale-data/sc.d.ts +1 -0
- package/locale-data/sc.js +9 -0
- package/locale-data/scn.d.ts +1 -0
- package/locale-data/scn.js +9 -0
- package/locale-data/sd.d.ts +1 -0
- package/locale-data/sd.js +8 -0
- package/locale-data/sdh.d.ts +1 -0
- package/locale-data/sdh.js +8 -0
- package/locale-data/se.d.ts +1 -0
- package/locale-data/se.js +10 -0
- package/locale-data/seh.d.ts +1 -0
- package/locale-data/seh.js +8 -0
- package/locale-data/ses.d.ts +1 -0
- package/locale-data/ses.js +7 -0
- package/locale-data/sg.d.ts +1 -0
- package/locale-data/sg.js +7 -0
- package/locale-data/sh.d.ts +1 -0
- package/locale-data/sh.js +11 -0
- package/locale-data/shi.d.ts +1 -0
- package/locale-data/shi.js +11 -0
- package/locale-data/si.d.ts +1 -0
- package/locale-data/si.js +9 -0
- package/locale-data/sk.d.ts +1 -0
- package/locale-data/sk.js +12 -0
- package/locale-data/sl.d.ts +1 -0
- package/locale-data/sl.js +12 -0
- package/locale-data/sma.d.ts +1 -0
- package/locale-data/sma.js +10 -0
- package/locale-data/smi.d.ts +1 -0
- package/locale-data/smi.js +10 -0
- package/locale-data/smj.d.ts +1 -0
- package/locale-data/smj.js +10 -0
- package/locale-data/smn.d.ts +1 -0
- package/locale-data/smn.js +10 -0
- package/locale-data/sms.d.ts +1 -0
- package/locale-data/sms.js +10 -0
- package/locale-data/sn.d.ts +1 -0
- package/locale-data/sn.js +8 -0
- package/locale-data/so.d.ts +1 -0
- package/locale-data/so.js +8 -0
- package/locale-data/sq.d.ts +1 -0
- package/locale-data/sq.js +11 -0
- package/locale-data/sr.d.ts +1 -0
- package/locale-data/sr.js +11 -0
- package/locale-data/ss.d.ts +1 -0
- package/locale-data/ss.js +8 -0
- package/locale-data/ssy.d.ts +1 -0
- package/locale-data/ssy.js +8 -0
- package/locale-data/st.d.ts +1 -0
- package/locale-data/st.js +8 -0
- package/locale-data/su.d.ts +1 -0
- package/locale-data/su.js +7 -0
- package/locale-data/sv.d.ts +1 -0
- package/locale-data/sv.js +9 -0
- package/locale-data/sw.d.ts +1 -0
- package/locale-data/sw.js +9 -0
- package/locale-data/syr.d.ts +1 -0
- package/locale-data/syr.js +8 -0
- package/locale-data/ta.d.ts +1 -0
- package/locale-data/ta.js +8 -0
- package/locale-data/te.d.ts +1 -0
- package/locale-data/te.js +8 -0
- package/locale-data/teo.d.ts +1 -0
- package/locale-data/teo.js +8 -0
- package/locale-data/th.d.ts +1 -0
- package/locale-data/th.js +7 -0
- package/locale-data/ti.d.ts +1 -0
- package/locale-data/ti.js +8 -0
- package/locale-data/tig.d.ts +1 -0
- package/locale-data/tig.js +8 -0
- package/locale-data/tk.d.ts +1 -0
- package/locale-data/tk.js +9 -0
- package/locale-data/tl.d.ts +1 -0
- package/locale-data/tl.js +9 -0
- package/locale-data/tn.d.ts +1 -0
- package/locale-data/tn.js +8 -0
- package/locale-data/to.d.ts +1 -0
- package/locale-data/to.js +7 -0
- package/locale-data/tpi.d.ts +1 -0
- package/locale-data/tpi.js +7 -0
- package/locale-data/tr.d.ts +1 -0
- package/locale-data/tr.js +8 -0
- package/locale-data/ts.d.ts +1 -0
- package/locale-data/ts.js +8 -0
- package/locale-data/tzm.d.ts +1 -0
- package/locale-data/tzm.js +9 -0
- package/locale-data/ug.d.ts +1 -0
- package/locale-data/ug.js +8 -0
- package/locale-data/uk.d.ts +1 -0
- package/locale-data/uk.js +12 -0
- package/locale-data/und.d.ts +1 -0
- package/locale-data/und.js +7 -0
- package/locale-data/ur.d.ts +1 -0
- package/locale-data/ur.js +9 -0
- package/locale-data/uz.d.ts +1 -0
- package/locale-data/uz.js +8 -0
- package/locale-data/ve.d.ts +1 -0
- package/locale-data/ve.js +8 -0
- package/locale-data/vi.d.ts +1 -0
- package/locale-data/vi.js +8 -0
- package/locale-data/vo.d.ts +1 -0
- package/locale-data/vo.js +8 -0
- package/locale-data/vun.d.ts +1 -0
- package/locale-data/vun.js +8 -0
- package/locale-data/wa.d.ts +1 -0
- package/locale-data/wa.js +8 -0
- package/locale-data/wae.d.ts +1 -0
- package/locale-data/wae.js +8 -0
- package/locale-data/wo.d.ts +1 -0
- package/locale-data/wo.js +7 -0
- package/locale-data/xh.d.ts +1 -0
- package/locale-data/xh.js +8 -0
- package/locale-data/xog.d.ts +1 -0
- package/locale-data/xog.js +8 -0
- package/locale-data/yi.d.ts +1 -0
- package/locale-data/yi.js +9 -0
- package/locale-data/yo.d.ts +1 -0
- package/locale-data/yo.js +7 -0
- package/locale-data/yue.d.ts +1 -0
- package/locale-data/yue.js +7 -0
- package/locale-data/zh.d.ts +1 -0
- package/locale-data/zh.js +7 -0
- package/locale-data/zu.d.ts +1 -0
- package/locale-data/zu.js +8 -0
- package/package.json +5 -5
- package/polyfill-force.d.ts +2 -0
- package/polyfill-force.d.ts.map +1 -0
- package/polyfill-force.js +9 -0
- package/polyfill.d.ts +2 -0
- package/polyfill.d.ts.map +1 -0
- package/polyfill.iife.js +901 -0
- package/polyfill.js +12 -0
- package/should-polyfill.d.ts +2 -0
- package/should-polyfill.d.ts.map +1 -0
- package/should-polyfill.js +22 -0
- package/supported-locales.generated.d.ts +2 -0
- package/supported-locales.generated.d.ts.map +1 -0
- package/supported-locales.generated.js +4 -0
- package/BUILD +0 -465
- package/CHANGELOG.md +0 -659
- package/abstract/GetOperands.ts +0 -75
- package/abstract/InitializePluralRules.ts +0 -61
- package/abstract/ResolvePlural.ts +0 -47
- package/get_internal_slots.ts +0 -14
- package/index.ts +0 -174
- package/polyfill-force.ts +0 -8
- package/polyfill.ts +0 -11
- package/scripts/cldr-raw.ts +0 -70
- package/scripts/cldr.ts +0 -29
- package/scripts/test262-main-gen.ts +0 -28
- package/should-polyfill.ts +0 -21
- package/supported-locales.generated.ts +0 -1
- package/test262-main.ts +0 -1071
- package/tests/index.test.ts +0 -57
- package/tests/locale-data/zh.ts +0 -6
- package/tests/supported-locales-of.test.ts +0 -23
- package/tsconfig.json +0 -5
package/lib/index.js
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { __spreadArray } from "tslib";
|
|
2
|
+
import { SupportedLocales, ToNumber, CanonicalizeLocaleList, } from '@formatjs/ecma402-abstract';
|
|
3
|
+
import { InitializePluralRules } from './abstract/InitializePluralRules';
|
|
4
|
+
import { ResolvePlural } from './abstract/ResolvePlural';
|
|
5
|
+
import getInternalSlots from './get_internal_slots';
|
|
6
|
+
function validateInstance(instance, method) {
|
|
7
|
+
if (!(instance instanceof PluralRules)) {
|
|
8
|
+
throw new TypeError("Method Intl.PluralRules.prototype.".concat(method, " called on incompatible receiver ").concat(String(instance)));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* http://ecma-international.org/ecma-402/7.0/index.html#sec-pluralruleselect
|
|
13
|
+
* @param locale
|
|
14
|
+
* @param type
|
|
15
|
+
* @param _n
|
|
16
|
+
* @param param3
|
|
17
|
+
*/
|
|
18
|
+
function PluralRuleSelect(locale, type, _n, _a) {
|
|
19
|
+
var IntegerDigits = _a.IntegerDigits, NumberOfFractionDigits = _a.NumberOfFractionDigits, FractionDigits = _a.FractionDigits;
|
|
20
|
+
return PluralRules.localeData[locale].fn(NumberOfFractionDigits
|
|
21
|
+
? "".concat(IntegerDigits, ".").concat(FractionDigits)
|
|
22
|
+
: IntegerDigits, type === 'ordinal');
|
|
23
|
+
}
|
|
24
|
+
var PluralRules = /** @class */ (function () {
|
|
25
|
+
function PluralRules(locales, options) {
|
|
26
|
+
// test262/test/intl402/RelativeTimeFormat/constructor/constructor/newtarget-undefined.js
|
|
27
|
+
// Cannot use `new.target` bc of IE11 & TS transpiles it to something else
|
|
28
|
+
var newTarget = this && this instanceof PluralRules ? this.constructor : void 0;
|
|
29
|
+
if (!newTarget) {
|
|
30
|
+
throw new TypeError("Intl.PluralRules must be called with 'new'");
|
|
31
|
+
}
|
|
32
|
+
return InitializePluralRules(this, locales, options, {
|
|
33
|
+
availableLocales: PluralRules.availableLocales,
|
|
34
|
+
relevantExtensionKeys: PluralRules.relevantExtensionKeys,
|
|
35
|
+
localeData: PluralRules.localeData,
|
|
36
|
+
getDefaultLocale: PluralRules.getDefaultLocale,
|
|
37
|
+
getInternalSlots: getInternalSlots,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
PluralRules.prototype.resolvedOptions = function () {
|
|
41
|
+
validateInstance(this, 'resolvedOptions');
|
|
42
|
+
var opts = Object.create(null);
|
|
43
|
+
var internalSlots = getInternalSlots(this);
|
|
44
|
+
opts.locale = internalSlots.locale;
|
|
45
|
+
opts.type = internalSlots.type;
|
|
46
|
+
[
|
|
47
|
+
'minimumIntegerDigits',
|
|
48
|
+
'minimumFractionDigits',
|
|
49
|
+
'maximumFractionDigits',
|
|
50
|
+
'minimumSignificantDigits',
|
|
51
|
+
'maximumSignificantDigits',
|
|
52
|
+
].forEach(function (field) {
|
|
53
|
+
var val = internalSlots[field];
|
|
54
|
+
if (val !== undefined) {
|
|
55
|
+
opts[field] = val;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
opts.pluralCategories = __spreadArray([], PluralRules.localeData[opts.locale].categories[opts.type], true);
|
|
59
|
+
return opts;
|
|
60
|
+
};
|
|
61
|
+
PluralRules.prototype.select = function (val) {
|
|
62
|
+
var pr = this;
|
|
63
|
+
validateInstance(pr, 'select');
|
|
64
|
+
var n = ToNumber(val);
|
|
65
|
+
return ResolvePlural(pr, n, { getInternalSlots: getInternalSlots, PluralRuleSelect: PluralRuleSelect });
|
|
66
|
+
};
|
|
67
|
+
PluralRules.prototype.toString = function () {
|
|
68
|
+
return '[object Intl.PluralRules]';
|
|
69
|
+
};
|
|
70
|
+
PluralRules.supportedLocalesOf = function (locales, options) {
|
|
71
|
+
return SupportedLocales(PluralRules.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
72
|
+
};
|
|
73
|
+
PluralRules.__addLocaleData = function () {
|
|
74
|
+
var data = [];
|
|
75
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
76
|
+
data[_i] = arguments[_i];
|
|
77
|
+
}
|
|
78
|
+
for (var _a = 0, data_1 = data; _a < data_1.length; _a++) {
|
|
79
|
+
var _b = data_1[_a], d = _b.data, locale = _b.locale;
|
|
80
|
+
PluralRules.localeData[locale] = d;
|
|
81
|
+
PluralRules.availableLocales.add(locale);
|
|
82
|
+
if (!PluralRules.__defaultLocale) {
|
|
83
|
+
PluralRules.__defaultLocale = locale;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
PluralRules.getDefaultLocale = function () {
|
|
88
|
+
return PluralRules.__defaultLocale;
|
|
89
|
+
};
|
|
90
|
+
PluralRules.localeData = {};
|
|
91
|
+
PluralRules.availableLocales = new Set();
|
|
92
|
+
PluralRules.__defaultLocale = '';
|
|
93
|
+
PluralRules.relevantExtensionKeys = [];
|
|
94
|
+
PluralRules.polyfilled = true;
|
|
95
|
+
return PluralRules;
|
|
96
|
+
}());
|
|
97
|
+
export { PluralRules };
|
|
98
|
+
try {
|
|
99
|
+
// IE11 does not have Symbol
|
|
100
|
+
if (typeof Symbol !== 'undefined') {
|
|
101
|
+
Object.defineProperty(PluralRules.prototype, Symbol.toStringTag, {
|
|
102
|
+
value: 'Intl.PluralRules',
|
|
103
|
+
writable: false,
|
|
104
|
+
enumerable: false,
|
|
105
|
+
configurable: true,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
try {
|
|
109
|
+
// https://github.com/tc39/test262/blob/master/test/intl402/PluralRules/length.js
|
|
110
|
+
Object.defineProperty(PluralRules, 'length', {
|
|
111
|
+
value: 0,
|
|
112
|
+
writable: false,
|
|
113
|
+
enumerable: false,
|
|
114
|
+
configurable: true,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
// IE 11 sets Function.prototype.length to be non-configurable which will cause the
|
|
119
|
+
// above Object.defineProperty to throw an error.
|
|
120
|
+
}
|
|
121
|
+
// https://github.com/tc39/test262/blob/master/test/intl402/RelativeTimeFormat/constructor/length.js
|
|
122
|
+
Object.defineProperty(PluralRules.prototype.constructor, 'length', {
|
|
123
|
+
value: 0,
|
|
124
|
+
writable: false,
|
|
125
|
+
enumerable: false,
|
|
126
|
+
configurable: true,
|
|
127
|
+
});
|
|
128
|
+
// https://github.com/tc39/test262/blob/master/test/intl402/RelativeTimeFormat/constructor/supportedLocalesOf/length.js
|
|
129
|
+
Object.defineProperty(PluralRules.supportedLocalesOf, 'length', {
|
|
130
|
+
value: 1,
|
|
131
|
+
writable: false,
|
|
132
|
+
enumerable: false,
|
|
133
|
+
configurable: true,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
catch (ex) {
|
|
137
|
+
// Meta fixes for test262
|
|
138
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfill-force.d.ts","sourceRoot":"","sources":["../polyfill-force.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../polyfill.ts"],"names":[],"mappings":""}
|
package/lib/polyfill.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../should-polyfill.ts"],"names":[],"mappings":"AAWA,wBAAgB,cAAc,CAAC,MAAM,SAAO,sBAS3C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { match } from '@formatjs/intl-localematcher';
|
|
2
|
+
import { supportedLocales } from './supported-locales.generated';
|
|
3
|
+
function supportedLocalesOf(locale) {
|
|
4
|
+
if (!locale) {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
var locales = Array.isArray(locale) ? locale : [locale];
|
|
8
|
+
return Intl.PluralRules.supportedLocalesOf(locales).length === locales.length;
|
|
9
|
+
}
|
|
10
|
+
export function shouldPolyfill(locale) {
|
|
11
|
+
if (locale === void 0) { locale = 'en'; }
|
|
12
|
+
if (!('PluralRules' in Intl) ||
|
|
13
|
+
new Intl.PluralRules('en', { minimumFractionDigits: 2 }).select(1) ===
|
|
14
|
+
'one' ||
|
|
15
|
+
!supportedLocalesOf(locale)) {
|
|
16
|
+
return locale ? match([locale], supportedLocales, 'en') : undefined;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-locales.generated.d.ts","sourceRoot":"","sources":["../supported-locales.generated.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAA21C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt", "pt-PT", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"af"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return (n == 0 || n == 1) ? 'one' : 'other';
|
|
7
|
+
}},"locale":"ak"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"am"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"an"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["zero","one","two","few","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
6
|
+
if (ord) return 'other';
|
|
7
|
+
return n == 0 ? 'zero'
|
|
8
|
+
: n == 1 ? 'one'
|
|
9
|
+
: n == 2 ? 'two'
|
|
10
|
+
: (n100 >= 3 && n100 <= 10) ? 'few'
|
|
11
|
+
: (n100 >= 11 && n100 <= 99) ? 'many'
|
|
12
|
+
: 'other';
|
|
13
|
+
}},"locale":"ar"})
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["zero","one","two","few","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
6
|
+
if (ord) return 'other';
|
|
7
|
+
return n == 0 ? 'zero'
|
|
8
|
+
: n == 1 ? 'one'
|
|
9
|
+
: n == 2 ? 'two'
|
|
10
|
+
: (n100 >= 3 && n100 <= 10) ? 'few'
|
|
11
|
+
: (n100 >= 11 && n100 <= 99) ? 'many'
|
|
12
|
+
: 'other';
|
|
13
|
+
}},"locale":"ars"})
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","two","few","many","other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
6
|
+
: (n == 2 || n == 3) ? 'two'
|
|
7
|
+
: n == 4 ? 'few'
|
|
8
|
+
: n == 6 ? 'many'
|
|
9
|
+
: 'other';
|
|
10
|
+
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
11
|
+
}},"locale":"as"})
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"asa"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
var s = String(n).split('.'), v0 = !s[1];
|
|
6
|
+
if (ord) return 'other';
|
|
7
|
+
return n == 1 && v0 ? 'one' : 'other';
|
|
8
|
+
}},"locale":"ast"})
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","few","many","other"]},"fn":function(n, ord) {
|
|
5
|
+
var s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
|
|
6
|
+
if (ord) return (i10 == 1 || i10 == 2 || i10 == 5 || i10 == 7 || i10 == 8) || (i100 == 20 || i100 == 50 || i100 == 70 || i100 == 80) ? 'one'
|
|
7
|
+
: (i10 == 3 || i10 == 4) || (i1000 == 100 || i1000 == 200 || i1000 == 300 || i1000 == 400 || i1000 == 500 || i1000 == 600 || i1000 == 700 || i1000 == 800 || i1000 == 900) ? 'few'
|
|
8
|
+
: i == 0 || i10 == 6 || (i100 == 40 || i100 == 60 || i100 == 90) ? 'many'
|
|
9
|
+
: 'other';
|
|
10
|
+
return n == 1 ? 'one' : 'other';
|
|
11
|
+
}},"locale":"az"})
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","other"]},"fn":function(n, ord) {
|
|
5
|
+
return n == 1 ? 'one' : 'other';
|
|
6
|
+
}},"locale":"bal"})
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","few","many","other"],"ordinal":["few","other"]},"fn":function(n, ord) {
|
|
5
|
+
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
6
|
+
if (ord) return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';
|
|
7
|
+
return n10 == 1 && n100 != 11 ? 'one'
|
|
8
|
+
: (n10 >= 2 && n10 <= 4) && (n100 < 12 || n100 > 14) ? 'few'
|
|
9
|
+
: t0 && n10 == 0 || (n10 >= 5 && n10 <= 9) || (n100 >= 11 && n100 <= 14) ? 'many'
|
|
10
|
+
: 'other';
|
|
11
|
+
}},"locale":"be"})
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"bem"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"bez"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"bg"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return (n == 0 || n == 1) ? 'one' : 'other';
|
|
7
|
+
}},"locale":"bho"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
return 'other';
|
|
6
|
+
}},"locale":"bm"})
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","two","few","many","other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
6
|
+
: (n == 2 || n == 3) ? 'two'
|
|
7
|
+
: n == 4 ? 'few'
|
|
8
|
+
: n == 6 ? 'many'
|
|
9
|
+
: 'other';
|
|
10
|
+
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
11
|
+
}},"locale":"bn"})
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
return 'other';
|
|
6
|
+
}},"locale":"bo"})
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","two","few","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), n1000000 = t0 && s[0].slice(-6);
|
|
6
|
+
if (ord) return 'other';
|
|
7
|
+
return n10 == 1 && n100 != 11 && n100 != 71 && n100 != 91 ? 'one'
|
|
8
|
+
: n10 == 2 && n100 != 12 && n100 != 72 && n100 != 92 ? 'two'
|
|
9
|
+
: ((n10 == 3 || n10 == 4) || n10 == 9) && (n100 < 10 || n100 > 19) && (n100 < 70 || n100 > 79) && (n100 < 90 || n100 > 99) ? 'few'
|
|
10
|
+
: n != 0 && t0 && n1000000 == 0 ? 'many'
|
|
11
|
+
: 'other';
|
|
12
|
+
}},"locale":"br"})
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"brx"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","few","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2);
|
|
6
|
+
if (ord) return 'other';
|
|
7
|
+
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
8
|
+
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
9
|
+
: 'other';
|
|
10
|
+
}},"locale":"bs"})
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","two","few","other"]},"fn":function(n, ord) {
|
|
5
|
+
var s = String(n).split('.'), v0 = !s[1];
|
|
6
|
+
if (ord) return (n == 1 || n == 3) ? 'one'
|
|
7
|
+
: n == 2 ? 'two'
|
|
8
|
+
: n == 4 ? 'few'
|
|
9
|
+
: 'other';
|
|
10
|
+
return n == 1 && v0 ? 'one' : 'other';
|
|
11
|
+
}},"locale":"ca"})
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"ce"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
6
|
+
if (ord) return 'other';
|
|
7
|
+
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
|
|
8
|
+
}},"locale":"ceb"})
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"cgg"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
if (ord) return 'other';
|
|
6
|
+
return n == 1 ? 'one' : 'other';
|
|
7
|
+
}},"locale":"chr"})
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|