From 97b18b2a5c017d794103b33e18e28c5575c2eb11 Mon Sep 17 00:00:00 2001 From: Olivier Combe Date: Thu, 18 Jan 2018 14:08:50 +0100 Subject: [PATCH] fix(common): extract plural function from i18n locale data files for TS 2.6 (#21626) Fixes #21608 PR Close #21626 --- packages/common/locales/af-NA.ts | 12 +++++----- packages/common/locales/af.ts | 12 +++++----- packages/common/locales/agq.ts | 7 ++++-- packages/common/locales/ak.ts | 12 +++++----- packages/common/locales/am.ts | 14 ++++++------ packages/common/locales/ar-AE.ts | 20 ++++++++-------- packages/common/locales/ar-BH.ts | 20 ++++++++-------- packages/common/locales/ar-DJ.ts | 20 ++++++++-------- packages/common/locales/ar-DZ.ts | 20 ++++++++-------- packages/common/locales/ar-EG.ts | 20 ++++++++-------- packages/common/locales/ar-EH.ts | 20 ++++++++-------- packages/common/locales/ar-ER.ts | 20 ++++++++-------- packages/common/locales/ar-IL.ts | 19 +++++++-------- packages/common/locales/ar-IQ.ts | 20 ++++++++-------- packages/common/locales/ar-JO.ts | 20 ++++++++-------- packages/common/locales/ar-KM.ts | 20 ++++++++-------- packages/common/locales/ar-KW.ts | 20 ++++++++-------- packages/common/locales/ar-LB.ts | 20 ++++++++-------- packages/common/locales/ar-LY.ts | 20 ++++++++-------- packages/common/locales/ar-MA.ts | 20 ++++++++-------- packages/common/locales/ar-MR.ts | 19 +++++++-------- packages/common/locales/ar-OM.ts | 20 ++++++++-------- packages/common/locales/ar-PS.ts | 19 +++++++-------- packages/common/locales/ar-QA.ts | 20 ++++++++-------- packages/common/locales/ar-SA.ts | 20 ++++++++-------- packages/common/locales/ar-SD.ts | 20 ++++++++-------- packages/common/locales/ar-SO.ts | 20 ++++++++-------- packages/common/locales/ar-SS.ts | 20 ++++++++-------- packages/common/locales/ar-SY.ts | 20 ++++++++-------- packages/common/locales/ar-TD.ts | 20 ++++++++-------- packages/common/locales/ar-TN.ts | 20 ++++++++-------- packages/common/locales/ar-YE.ts | 20 ++++++++-------- packages/common/locales/ar.ts | 20 ++++++++-------- packages/common/locales/as.ts | 14 ++++++------ packages/common/locales/asa.ts | 12 +++++----- packages/common/locales/ast.ts | 14 ++++++------ packages/common/locales/az-Cyrl.ts | 7 ++++-- packages/common/locales/az-Latn.ts | 12 +++++----- packages/common/locales/az.ts | 12 +++++----- packages/common/locales/bas.ts | 7 ++++-- packages/common/locales/be.ts | 24 +++++++++---------- packages/common/locales/bem.ts | 11 +++++---- packages/common/locales/bez.ts | 12 +++++----- packages/common/locales/bg.ts | 12 +++++----- packages/common/locales/bm.ts | 7 ++++-- packages/common/locales/bn-IN.ts | 13 ++++++----- packages/common/locales/bn.ts | 13 ++++++----- packages/common/locales/bo-IN.ts | 6 ++++- packages/common/locales/bo.ts | 7 ++++-- packages/common/locales/br.ts | 24 +++++++++---------- packages/common/locales/brx.ts | 12 +++++----- packages/common/locales/bs-Cyrl.ts | 6 ++++- packages/common/locales/bs-Latn.ts | 27 +++++++++++----------- packages/common/locales/bs.ts | 27 +++++++++++----------- packages/common/locales/ca-AD.ts | 14 ++++++------ packages/common/locales/ca-ES-VALENCIA.ts | 14 ++++++------ packages/common/locales/ca-FR.ts | 14 ++++++------ packages/common/locales/ca-IT.ts | 14 ++++++------ packages/common/locales/ca.ts | 14 ++++++------ packages/common/locales/ccp-IN.ts | 6 ++++- packages/common/locales/ccp.ts | 6 ++++- packages/common/locales/ce.ts | 12 +++++----- packages/common/locales/cgg.ts | 12 +++++----- packages/common/locales/chr.ts | 11 +++++---- packages/common/locales/ckb-IR.ts | 11 +++++---- packages/common/locales/ckb.ts | 12 +++++----- packages/common/locales/closure-locale.ts | 2 +- packages/common/locales/cs.ts | 18 +++++++-------- packages/common/locales/cu.ts | 7 ++++-- packages/common/locales/cy.ts | 19 +++++++-------- packages/common/locales/da-GL.ts | 16 ++++++------- packages/common/locales/da.ts | 16 ++++++------- packages/common/locales/dav.ts | 7 ++++-- packages/common/locales/de-AT.ts | 14 ++++++------ packages/common/locales/de-BE.ts | 14 ++++++------ packages/common/locales/de-CH.ts | 14 ++++++------ packages/common/locales/de-IT.ts | 14 ++++++------ packages/common/locales/de-LI.ts | 14 ++++++------ packages/common/locales/de-LU.ts | 14 ++++++------ packages/common/locales/de.ts | 14 ++++++------ packages/common/locales/dje.ts | 7 ++++-- packages/common/locales/dsb.ts | 24 +++++++++---------- packages/common/locales/dua.ts | 7 ++++-- packages/common/locales/dyo.ts | 7 ++++-- packages/common/locales/dz.ts | 7 ++++-- packages/common/locales/ebu.ts | 7 ++++-- packages/common/locales/ee-TG.ts | 12 +++++----- packages/common/locales/ee.ts | 11 +++++---- packages/common/locales/el-CY.ts | 11 +++++---- packages/common/locales/el.ts | 11 +++++---- packages/common/locales/en-001.ts | 14 ++++++------ packages/common/locales/en-150.ts | 14 ++++++------ packages/common/locales/en-AG.ts | 14 ++++++------ packages/common/locales/en-AI.ts | 14 ++++++------ packages/common/locales/en-AS.ts | 14 ++++++------ packages/common/locales/en-AT.ts | 14 ++++++------ packages/common/locales/en-AU.ts | 14 ++++++------ packages/common/locales/en-BB.ts | 14 ++++++------ packages/common/locales/en-BE.ts | 14 ++++++------ packages/common/locales/en-BI.ts | 14 ++++++------ packages/common/locales/en-BM.ts | 14 ++++++------ packages/common/locales/en-BS.ts | 14 ++++++------ packages/common/locales/en-BW.ts | 14 ++++++------ packages/common/locales/en-BZ.ts | 14 ++++++------ packages/common/locales/en-CA.ts | 14 ++++++------ packages/common/locales/en-CC.ts | 14 ++++++------ packages/common/locales/en-CH.ts | 14 ++++++------ packages/common/locales/en-CK.ts | 14 ++++++------ packages/common/locales/en-CM.ts | 14 ++++++------ packages/common/locales/en-CX.ts | 14 ++++++------ packages/common/locales/en-CY.ts | 14 ++++++------ packages/common/locales/en-DE.ts | 14 ++++++------ packages/common/locales/en-DG.ts | 14 ++++++------ packages/common/locales/en-DK.ts | 14 ++++++------ packages/common/locales/en-DM.ts | 14 ++++++------ packages/common/locales/en-ER.ts | 14 ++++++------ packages/common/locales/en-FI.ts | 14 ++++++------ packages/common/locales/en-FJ.ts | 14 ++++++------ packages/common/locales/en-FK.ts | 14 ++++++------ packages/common/locales/en-FM.ts | 14 ++++++------ packages/common/locales/en-GB.ts | 14 ++++++------ packages/common/locales/en-GD.ts | 14 ++++++------ packages/common/locales/en-GG.ts | 14 ++++++------ packages/common/locales/en-GH.ts | 14 ++++++------ packages/common/locales/en-GI.ts | 14 ++++++------ packages/common/locales/en-GM.ts | 14 ++++++------ packages/common/locales/en-GU.ts | 14 ++++++------ packages/common/locales/en-GY.ts | 14 ++++++------ packages/common/locales/en-HK.ts | 14 ++++++------ packages/common/locales/en-IE.ts | 14 ++++++------ packages/common/locales/en-IL.ts | 14 ++++++------ packages/common/locales/en-IM.ts | 14 ++++++------ packages/common/locales/en-IN.ts | 14 ++++++------ packages/common/locales/en-IO.ts | 14 ++++++------ packages/common/locales/en-JE.ts | 14 ++++++------ packages/common/locales/en-JM.ts | 14 ++++++------ packages/common/locales/en-KE.ts | 14 ++++++------ packages/common/locales/en-KI.ts | 14 ++++++------ packages/common/locales/en-KN.ts | 14 ++++++------ packages/common/locales/en-KY.ts | 14 ++++++------ packages/common/locales/en-LC.ts | 14 ++++++------ packages/common/locales/en-LR.ts | 14 ++++++------ packages/common/locales/en-LS.ts | 14 ++++++------ packages/common/locales/en-MG.ts | 14 ++++++------ packages/common/locales/en-MH.ts | 14 ++++++------ packages/common/locales/en-MO.ts | 14 ++++++------ packages/common/locales/en-MP.ts | 14 ++++++------ packages/common/locales/en-MS.ts | 14 ++++++------ packages/common/locales/en-MT.ts | 14 ++++++------ packages/common/locales/en-MU.ts | 14 ++++++------ packages/common/locales/en-MW.ts | 14 ++++++------ packages/common/locales/en-MY.ts | 14 ++++++------ packages/common/locales/en-NA.ts | 14 ++++++------ packages/common/locales/en-NF.ts | 14 ++++++------ packages/common/locales/en-NG.ts | 14 ++++++------ packages/common/locales/en-NL.ts | 14 ++++++------ packages/common/locales/en-NR.ts | 14 ++++++------ packages/common/locales/en-NU.ts | 14 ++++++------ packages/common/locales/en-NZ.ts | 14 ++++++------ packages/common/locales/en-PG.ts | 14 ++++++------ packages/common/locales/en-PH.ts | 14 ++++++------ packages/common/locales/en-PK.ts | 14 ++++++------ packages/common/locales/en-PN.ts | 14 ++++++------ packages/common/locales/en-PR.ts | 14 ++++++------ packages/common/locales/en-PW.ts | 14 ++++++------ packages/common/locales/en-RW.ts | 14 ++++++------ packages/common/locales/en-SB.ts | 14 ++++++------ packages/common/locales/en-SC.ts | 14 ++++++------ packages/common/locales/en-SD.ts | 14 ++++++------ packages/common/locales/en-SE.ts | 14 ++++++------ packages/common/locales/en-SG.ts | 14 ++++++------ packages/common/locales/en-SH.ts | 14 ++++++------ packages/common/locales/en-SI.ts | 14 ++++++------ packages/common/locales/en-SL.ts | 14 ++++++------ packages/common/locales/en-SS.ts | 14 ++++++------ packages/common/locales/en-SX.ts | 14 ++++++------ packages/common/locales/en-SZ.ts | 14 ++++++------ packages/common/locales/en-TC.ts | 14 ++++++------ packages/common/locales/en-TK.ts | 14 ++++++------ packages/common/locales/en-TO.ts | 14 ++++++------ packages/common/locales/en-TT.ts | 14 ++++++------ packages/common/locales/en-TV.ts | 14 ++++++------ packages/common/locales/en-TZ.ts | 14 ++++++------ packages/common/locales/en-UG.ts | 14 ++++++------ packages/common/locales/en-UM.ts | 14 ++++++------ packages/common/locales/en-US-POSIX.ts | 14 ++++++------ packages/common/locales/en-VC.ts | 14 ++++++------ packages/common/locales/en-VG.ts | 14 ++++++------ packages/common/locales/en-VI.ts | 14 ++++++------ packages/common/locales/en-VU.ts | 14 ++++++------ packages/common/locales/en-WS.ts | 14 ++++++------ packages/common/locales/en-ZA.ts | 14 ++++++------ packages/common/locales/en-ZM.ts | 14 ++++++------ packages/common/locales/en-ZW.ts | 14 ++++++------ packages/common/locales/en.ts | 14 ++++++------ packages/common/locales/eo.ts | 11 +++++---- packages/common/locales/es-419.ts | 11 +++++---- packages/common/locales/es-AR.ts | 12 +++++----- packages/common/locales/es-BO.ts | 11 +++++---- packages/common/locales/es-BR.ts | 12 +++++----- packages/common/locales/es-BZ.ts | 12 +++++----- packages/common/locales/es-CL.ts | 12 +++++----- packages/common/locales/es-CO.ts | 12 +++++----- packages/common/locales/es-CR.ts | 12 +++++----- packages/common/locales/es-CU.ts | 11 +++++---- packages/common/locales/es-DO.ts | 12 +++++----- packages/common/locales/es-EA.ts | 11 +++++---- packages/common/locales/es-EC.ts | 12 +++++----- packages/common/locales/es-GQ.ts | 12 +++++----- packages/common/locales/es-GT.ts | 11 +++++---- packages/common/locales/es-HN.ts | 12 +++++----- packages/common/locales/es-IC.ts | 11 +++++---- packages/common/locales/es-MX.ts | 11 +++++---- packages/common/locales/es-NI.ts | 12 +++++----- packages/common/locales/es-PA.ts | 12 +++++----- packages/common/locales/es-PE.ts | 11 +++++---- packages/common/locales/es-PH.ts | 12 +++++----- packages/common/locales/es-PR.ts | 12 +++++----- packages/common/locales/es-PY.ts | 11 +++++---- packages/common/locales/es-SV.ts | 12 +++++----- packages/common/locales/es-US.ts | 12 +++++----- packages/common/locales/es-UY.ts | 12 +++++----- packages/common/locales/es-VE.ts | 12 +++++----- packages/common/locales/es.ts | 11 +++++---- packages/common/locales/et.ts | 14 ++++++------ packages/common/locales/eu.ts | 11 +++++---- packages/common/locales/ewo.ts | 7 ++++-- packages/common/locales/fa-AF.ts | 14 ++++++------ packages/common/locales/fa.ts | 14 ++++++------ packages/common/locales/ff-CM.ts | 14 ++++++------ packages/common/locales/ff-GN.ts | 15 ++++++------ packages/common/locales/ff-MR.ts | 14 ++++++------ packages/common/locales/ff.ts | 14 ++++++------ packages/common/locales/fi.ts | 14 ++++++------ packages/common/locales/fil.ts | 22 +++++++++--------- packages/common/locales/fo-DK.ts | 12 +++++----- packages/common/locales/fo.ts | 12 +++++----- packages/common/locales/fr-BE.ts | 14 ++++++------ packages/common/locales/fr-BF.ts | 14 ++++++------ packages/common/locales/fr-BI.ts | 14 ++++++------ packages/common/locales/fr-BJ.ts | 14 ++++++------ packages/common/locales/fr-BL.ts | 14 ++++++------ packages/common/locales/fr-CA.ts | 14 ++++++------ packages/common/locales/fr-CD.ts | 14 ++++++------ packages/common/locales/fr-CF.ts | 14 ++++++------ packages/common/locales/fr-CG.ts | 14 ++++++------ packages/common/locales/fr-CH.ts | 14 ++++++------ packages/common/locales/fr-CI.ts | 14 ++++++------ packages/common/locales/fr-CM.ts | 14 ++++++------ packages/common/locales/fr-DJ.ts | 14 ++++++------ packages/common/locales/fr-DZ.ts | 14 ++++++------ packages/common/locales/fr-GA.ts | 14 ++++++------ packages/common/locales/fr-GF.ts | 14 ++++++------ packages/common/locales/fr-GN.ts | 14 ++++++------ packages/common/locales/fr-GP.ts | 14 ++++++------ packages/common/locales/fr-GQ.ts | 14 ++++++------ packages/common/locales/fr-HT.ts | 14 ++++++------ packages/common/locales/fr-KM.ts | 14 ++++++------ packages/common/locales/fr-LU.ts | 14 ++++++------ packages/common/locales/fr-MA.ts | 14 ++++++------ packages/common/locales/fr-MC.ts | 14 ++++++------ packages/common/locales/fr-MF.ts | 14 ++++++------ packages/common/locales/fr-MG.ts | 14 ++++++------ packages/common/locales/fr-ML.ts | 14 ++++++------ packages/common/locales/fr-MQ.ts | 14 ++++++------ packages/common/locales/fr-MR.ts | 14 ++++++------ packages/common/locales/fr-MU.ts | 14 ++++++------ packages/common/locales/fr-NC.ts | 14 ++++++------ packages/common/locales/fr-NE.ts | 14 ++++++------ packages/common/locales/fr-PF.ts | 14 ++++++------ packages/common/locales/fr-PM.ts | 14 ++++++------ packages/common/locales/fr-RE.ts | 14 ++++++------ packages/common/locales/fr-RW.ts | 14 ++++++------ packages/common/locales/fr-SC.ts | 14 ++++++------ packages/common/locales/fr-SN.ts | 14 ++++++------ packages/common/locales/fr-SY.ts | 14 ++++++------ packages/common/locales/fr-TD.ts | 14 ++++++------ packages/common/locales/fr-TG.ts | 14 ++++++------ packages/common/locales/fr-TN.ts | 14 ++++++------ packages/common/locales/fr-VU.ts | 14 ++++++------ packages/common/locales/fr-WF.ts | 14 ++++++------ packages/common/locales/fr-YT.ts | 14 ++++++------ packages/common/locales/fr.ts | 14 ++++++------ packages/common/locales/fur.ts | 11 +++++---- packages/common/locales/fy.ts | 14 ++++++------ packages/common/locales/ga.ts | 18 +++++++-------- packages/common/locales/gd.ts | 16 ++++++------- packages/common/locales/gl.ts | 14 ++++++------ packages/common/locales/gsw-FR.ts | 11 +++++---- packages/common/locales/gsw-LI.ts | 12 +++++----- packages/common/locales/gsw.ts | 12 +++++----- packages/common/locales/gu.ts | 13 ++++++----- packages/common/locales/guz.ts | 7 ++++-- packages/common/locales/gv.ts | 24 +++++++++---------- packages/common/locales/ha-GH.ts | 11 +++++---- packages/common/locales/ha-NE.ts | 12 +++++----- packages/common/locales/ha.ts | 11 +++++---- packages/common/locales/haw.ts | 11 +++++---- packages/common/locales/he.ts | 17 +++++++------- packages/common/locales/hi.ts | 13 ++++++----- packages/common/locales/hr-BA.ts | 27 +++++++++++----------- packages/common/locales/hr.ts | 27 +++++++++++----------- packages/common/locales/hsb.ts | 24 +++++++++---------- packages/common/locales/hu.ts | 12 +++++----- packages/common/locales/hy.ts | 14 ++++++------ packages/common/locales/id.ts | 7 ++++-- packages/common/locales/ig.ts | 7 ++++-- packages/common/locales/ii.ts | 7 ++++-- packages/common/locales/is.ts | 16 ++++++------- packages/common/locales/it-CH.ts | 14 ++++++------ packages/common/locales/it-SM.ts | 14 ++++++------ packages/common/locales/it-VA.ts | 14 ++++++------ packages/common/locales/it.ts | 14 ++++++------ packages/common/locales/ja.ts | 7 ++++-- packages/common/locales/jgo.ts | 11 +++++---- packages/common/locales/jmc.ts | 12 +++++----- packages/common/locales/ka.ts | 11 +++++---- packages/common/locales/kab.ts | 14 ++++++------ packages/common/locales/kam.ts | 7 ++++-- packages/common/locales/kde.ts | 7 ++++-- packages/common/locales/kea.ts | 7 ++++-- packages/common/locales/khq.ts | 7 ++++-- packages/common/locales/ki.ts | 7 ++++-- packages/common/locales/kk.ts | 12 +++++----- packages/common/locales/kkj.ts | 11 +++++---- packages/common/locales/kl.ts | 12 +++++----- packages/common/locales/kln.ts | 7 ++++-- packages/common/locales/km.ts | 7 ++++-- packages/common/locales/kn.ts | 13 ++++++----- packages/common/locales/ko-KP.ts | 6 ++++- packages/common/locales/ko.ts | 7 ++++-- packages/common/locales/kok.ts | 7 ++++-- packages/common/locales/ks.ts | 11 +++++---- packages/common/locales/ksb.ts | 12 +++++----- packages/common/locales/ksf.ts | 7 ++++-- packages/common/locales/ksh.ts | 13 ++++++----- packages/common/locales/kw.ts | 13 ++++++----- packages/common/locales/ky.ts | 12 +++++----- packages/common/locales/lag.ts | 16 ++++++------- packages/common/locales/lb.ts | 11 +++++---- packages/common/locales/lg.ts | 12 +++++----- packages/common/locales/lkt.ts | 7 ++++-- packages/common/locales/ln-AO.ts | 12 +++++----- packages/common/locales/ln-CF.ts | 12 +++++----- packages/common/locales/ln-CG.ts | 12 +++++----- packages/common/locales/ln.ts | 12 +++++----- packages/common/locales/lo.ts | 7 ++++-- packages/common/locales/lrc-IQ.ts | 7 ++++-- packages/common/locales/lrc.ts | 7 ++++-- packages/common/locales/lt.ts | 22 +++++++++--------- packages/common/locales/lu.ts | 7 ++++-- packages/common/locales/luo.ts | 7 ++++-- packages/common/locales/luy.ts | 7 ++++-- packages/common/locales/lv.ts | 26 ++++++++++----------- packages/common/locales/mas-TZ.ts | 12 +++++----- packages/common/locales/mas.ts | 12 +++++----- packages/common/locales/mer.ts | 7 ++++-- packages/common/locales/mfe.ts | 7 ++++-- packages/common/locales/mg.ts | 12 +++++----- packages/common/locales/mgh.ts | 7 ++++-- packages/common/locales/mgo.ts | 11 +++++---- packages/common/locales/mk.ts | 15 ++++++------ packages/common/locales/ml.ts | 12 +++++----- packages/common/locales/mn.ts | 12 +++++----- packages/common/locales/mr.ts | 13 ++++++----- packages/common/locales/ms-BN.ts | 7 ++++-- packages/common/locales/ms-SG.ts | 7 ++++-- packages/common/locales/ms.ts | 7 ++++-- packages/common/locales/mt.ts | 16 ++++++------- packages/common/locales/mua.ts | 7 ++++-- packages/common/locales/my.ts | 7 ++++-- packages/common/locales/mzn.ts | 7 ++++-- packages/common/locales/naq.ts | 15 ++++++------ packages/common/locales/nb-SJ.ts | 12 +++++----- packages/common/locales/nb.ts | 12 +++++----- packages/common/locales/nd.ts | 12 +++++----- packages/common/locales/nds-NL.ts | 7 ++++-- packages/common/locales/nds.ts | 7 ++++-- packages/common/locales/ne-IN.ts | 11 +++++---- packages/common/locales/ne.ts | 11 +++++---- packages/common/locales/nl-AW.ts | 14 ++++++------ packages/common/locales/nl-BE.ts | 14 ++++++------ packages/common/locales/nl-BQ.ts | 14 ++++++------ packages/common/locales/nl-CW.ts | 14 ++++++------ packages/common/locales/nl-SR.ts | 14 ++++++------ packages/common/locales/nl-SX.ts | 14 ++++++------ packages/common/locales/nl.ts | 14 ++++++------ packages/common/locales/nmg.ts | 7 ++++-- packages/common/locales/nn.ts | 12 +++++----- packages/common/locales/nnh.ts | 12 +++++----- packages/common/locales/nus.ts | 7 ++++-- packages/common/locales/nyn.ts | 12 +++++----- packages/common/locales/om-KE.ts | 11 +++++---- packages/common/locales/om.ts | 12 +++++----- packages/common/locales/or.ts | 12 +++++----- packages/common/locales/os-RU.ts | 11 +++++---- packages/common/locales/os.ts | 11 +++++---- packages/common/locales/pa-Arab.ts | 7 ++++-- packages/common/locales/pa-Guru.ts | 11 +++++---- packages/common/locales/pa.ts | 11 +++++---- packages/common/locales/pl.ts | 28 +++++++++++------------ packages/common/locales/prg.ts | 26 ++++++++++----------- packages/common/locales/ps.ts | 11 +++++---- packages/common/locales/pt-AO.ts | 14 ++++++------ packages/common/locales/pt-CH.ts | 14 ++++++------ packages/common/locales/pt-CV.ts | 14 ++++++------ packages/common/locales/pt-GQ.ts | 14 ++++++------ packages/common/locales/pt-GW.ts | 14 ++++++------ packages/common/locales/pt-LU.ts | 14 ++++++------ packages/common/locales/pt-MO.ts | 14 ++++++------ packages/common/locales/pt-MZ.ts | 14 ++++++------ packages/common/locales/pt-PT.ts | 14 ++++++------ packages/common/locales/pt-ST.ts | 14 ++++++------ packages/common/locales/pt-TL.ts | 14 ++++++------ packages/common/locales/pt.ts | 14 ++++++------ packages/common/locales/qu-BO.ts | 7 ++++-- packages/common/locales/qu-EC.ts | 7 ++++-- packages/common/locales/qu.ts | 7 ++++-- packages/common/locales/rm.ts | 12 +++++----- packages/common/locales/rn.ts | 7 ++++-- packages/common/locales/ro-MD.ts | 20 ++++++++-------- packages/common/locales/ro.ts | 20 ++++++++-------- packages/common/locales/rof.ts | 12 +++++----- packages/common/locales/root.ts | 7 ++++-- packages/common/locales/ru-BY.ts | 27 +++++++++++----------- packages/common/locales/ru-KG.ts | 28 +++++++++++------------ packages/common/locales/ru-KZ.ts | 28 +++++++++++------------ packages/common/locales/ru-MD.ts | 28 +++++++++++------------ packages/common/locales/ru-UA.ts | 27 +++++++++++----------- packages/common/locales/ru.ts | 28 +++++++++++------------ packages/common/locales/rw.ts | 7 ++++-- packages/common/locales/rwk.ts | 12 +++++----- packages/common/locales/sah.ts | 6 ++++- packages/common/locales/saq.ts | 12 +++++----- packages/common/locales/sbp.ts | 7 ++++-- packages/common/locales/sd.ts | 12 +++++----- packages/common/locales/se-FI.ts | 13 ++++++----- packages/common/locales/se-SE.ts | 15 ++++++------ packages/common/locales/se.ts | 15 ++++++------ packages/common/locales/seh.ts | 12 +++++----- packages/common/locales/ses.ts | 7 ++++-- packages/common/locales/sg.ts | 7 ++++-- packages/common/locales/shi-Latn.ts | 7 ++++-- packages/common/locales/shi-Tfng.ts | 15 ++++++------ packages/common/locales/shi.ts | 15 ++++++------ packages/common/locales/si.ts | 15 ++++++------ packages/common/locales/sk.ts | 18 +++++++-------- packages/common/locales/sl.ts | 21 ++++++++--------- packages/common/locales/smn.ts | 13 ++++++----- packages/common/locales/sn.ts | 12 +++++----- packages/common/locales/so-DJ.ts | 12 +++++----- packages/common/locales/so-ET.ts | 12 +++++----- packages/common/locales/so-KE.ts | 11 +++++---- packages/common/locales/so.ts | 11 +++++---- packages/common/locales/sq-MK.ts | 12 +++++----- packages/common/locales/sq-XK.ts | 11 +++++---- packages/common/locales/sq.ts | 12 +++++----- packages/common/locales/sr-Cyrl-BA.ts | 27 +++++++++++----------- packages/common/locales/sr-Cyrl-ME.ts | 27 +++++++++++----------- packages/common/locales/sr-Cyrl-XK.ts | 27 +++++++++++----------- packages/common/locales/sr-Cyrl.ts | 27 +++++++++++----------- packages/common/locales/sr-Latn-BA.ts | 6 ++++- packages/common/locales/sr-Latn-ME.ts | 7 ++++-- packages/common/locales/sr-Latn-XK.ts | 7 ++++-- packages/common/locales/sr-Latn.ts | 7 ++++-- packages/common/locales/sr.ts | 27 +++++++++++----------- packages/common/locales/sv-AX.ts | 14 ++++++------ packages/common/locales/sv-FI.ts | 14 ++++++------ packages/common/locales/sv.ts | 14 ++++++------ packages/common/locales/sw-CD.ts | 14 ++++++------ packages/common/locales/sw-KE.ts | 14 ++++++------ packages/common/locales/sw-UG.ts | 14 ++++++------ packages/common/locales/sw.ts | 14 ++++++------ packages/common/locales/ta-LK.ts | 11 +++++---- packages/common/locales/ta-MY.ts | 11 +++++---- packages/common/locales/ta-SG.ts | 11 +++++---- packages/common/locales/ta.ts | 11 +++++---- packages/common/locales/te.ts | 12 +++++----- packages/common/locales/teo-KE.ts | 12 +++++----- packages/common/locales/teo.ts | 12 +++++----- packages/common/locales/tg.ts | 7 ++++-- packages/common/locales/th.ts | 7 ++++-- packages/common/locales/ti-ER.ts | 12 +++++----- packages/common/locales/ti.ts | 12 +++++----- packages/common/locales/tk.ts | 12 +++++----- packages/common/locales/to.ts | 7 ++++-- packages/common/locales/tr-CY.ts | 11 +++++---- packages/common/locales/tr.ts | 11 +++++---- packages/common/locales/tt.ts | 7 ++++-- packages/common/locales/twq.ts | 7 ++++-- packages/common/locales/tzm.ts | 14 ++++++------ packages/common/locales/ug.ts | 12 +++++----- packages/common/locales/uk.ts | 28 +++++++++++------------ packages/common/locales/ur-IN.ts | 14 ++++++------ packages/common/locales/ur.ts | 14 ++++++------ packages/common/locales/uz-Arab.ts | 7 ++++-- packages/common/locales/uz-Cyrl.ts | 7 ++++-- packages/common/locales/uz-Latn.ts | 12 +++++----- packages/common/locales/uz.ts | 12 +++++----- packages/common/locales/vai-Latn.ts | 7 ++++-- packages/common/locales/vai-Vaii.ts | 7 ++++-- packages/common/locales/vai.ts | 7 ++++-- packages/common/locales/vi.ts | 7 ++++-- packages/common/locales/vo.ts | 11 +++++---- packages/common/locales/vun.ts | 12 +++++----- packages/common/locales/wae.ts | 11 +++++---- packages/common/locales/wo.ts | 7 ++++-- packages/common/locales/xog.ts | 12 +++++----- packages/common/locales/yav.ts | 7 ++++-- packages/common/locales/yi.ts | 14 ++++++------ packages/common/locales/yo-BJ.ts | 7 ++++-- packages/common/locales/yo.ts | 6 ++++- packages/common/locales/yue-Hans.ts | 7 ++++-- packages/common/locales/yue-Hant.ts | 7 ++++-- packages/common/locales/yue.ts | 7 ++++-- packages/common/locales/zgh.ts | 6 ++++- packages/common/locales/zh-Hans-HK.ts | 7 ++++-- packages/common/locales/zh-Hans-MO.ts | 7 ++++-- packages/common/locales/zh-Hans-SG.ts | 7 ++++-- packages/common/locales/zh-Hans.ts | 7 ++++-- packages/common/locales/zh-Hant-HK.ts | 7 ++++-- packages/common/locales/zh-Hant-MO.ts | 7 ++++-- packages/common/locales/zh-Hant.ts | 7 ++++-- packages/common/locales/zh.ts | 7 ++++-- packages/common/locales/zu.ts | 14 ++++++------ packages/common/src/i18n/locale_en.ts | 14 ++++++------ tools/gulp-tasks/cldr/extract.js | 6 +++-- 527 files changed, 3626 insertions(+), 3274 deletions(-) diff --git a/packages/common/locales/af-NA.ts b/packages/common/locales/af-NA.ts index c6864e1e5c..2a076492db 100644 --- a/packages/common/locales/af-NA.ts +++ b/packages/common/locales/af-NA.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'af-NA', [ @@ -39,10 +44,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'Suid-Afrikaanse rand', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'Suid-Afrikaanse rand', plural ]; diff --git a/packages/common/locales/af.ts b/packages/common/locales/af.ts index 4af78006ce..eebf41976c 100644 --- a/packages/common/locales/af.ts +++ b/packages/common/locales/af.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'af', [ @@ -39,10 +44,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'Suid-Afrikaanse rand', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'Suid-Afrikaanse rand', plural ]; diff --git a/packages/common/locales/agq.ts b/packages/common/locales/agq.ts index 25baa3dcae..88f475c80c 100644 --- a/packages/common/locales/agq.ts +++ b/packages/common/locales/agq.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'agq', [ @@ -44,6 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'FCFA', 'CFA Fàlâŋ BEAC', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'FCFA', 'CFA Fàlâŋ BEAC', plural ]; diff --git a/packages/common/locales/ak.ts b/packages/common/locales/ak.ts index 721721b748..94aaf2fea2 100644 --- a/packages/common/locales/ak.ts +++ b/packages/common/locales/ak.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'ak', [ @@ -40,10 +45,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'GH₵', 'Ghana Sidi', - function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'GH₵', 'Ghana Sidi', plural ]; diff --git a/packages/common/locales/am.ts b/packages/common/locales/am.ts index 603e982d6a..1126bfe516 100644 --- a/packages/common/locales/am.ts +++ b/packages/common/locales/am.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'am', [ @@ -44,11 +50,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'ብር', 'የኢትዮጵያ ብር', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'ብር', 'የኢትዮጵያ ብር', plural ]; diff --git a/packages/common/locales/ar-AE.ts b/packages/common/locales/ar-AE.ts index f669ac4970..f1a556f3f5 100644 --- a/packages/common/locales/ar-AE.ts +++ b/packages/common/locales/ar-AE.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-AE', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.إ.\u200f', 'درهم إماراتي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.إ.\u200f', 'درهم إماراتي', plural ]; diff --git a/packages/common/locales/ar-BH.ts b/packages/common/locales/ar-BH.ts index 7f1c2e6348..33e55c682b 100644 --- a/packages/common/locales/ar-BH.ts +++ b/packages/common/locales/ar-BH.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-BH', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ب.\u200f', 'دينار بحريني', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ب.\u200f', 'دينار بحريني', plural ]; diff --git a/packages/common/locales/ar-DJ.ts b/packages/common/locales/ar-DJ.ts index 76a87068fe..bb13e63277 100644 --- a/packages/common/locales/ar-DJ.ts +++ b/packages/common/locales/ar-DJ.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-DJ', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Fdj', 'فرنك جيبوتي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Fdj', 'فرنك جيبوتي', plural ]; diff --git a/packages/common/locales/ar-DZ.ts b/packages/common/locales/ar-DZ.ts index 937890f961..aac191602a 100644 --- a/packages/common/locales/ar-DZ.ts +++ b/packages/common/locales/ar-DZ.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-DZ', [ @@ -44,14 +53,5 @@ export default [ ',', '.', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ج.\u200f', 'دينار جزائري', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ج.\u200f', 'دينار جزائري', plural ]; diff --git a/packages/common/locales/ar-EG.ts b/packages/common/locales/ar-EG.ts index ef99b8818e..3d8aa8ccdd 100644 --- a/packages/common/locales/ar-EG.ts +++ b/packages/common/locales/ar-EG.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-EG', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ج.م.\u200f', 'جنيه مصري', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ج.م.\u200f', 'جنيه مصري', plural ]; diff --git a/packages/common/locales/ar-EH.ts b/packages/common/locales/ar-EH.ts index bae565402b..35849db168 100644 --- a/packages/common/locales/ar-EH.ts +++ b/packages/common/locales/ar-EH.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-EH', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.م.\u200f', 'درهم مغربي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.م.\u200f', 'درهم مغربي', plural ]; diff --git a/packages/common/locales/ar-ER.ts b/packages/common/locales/ar-ER.ts index c828d1ad48..1df1d457bc 100644 --- a/packages/common/locales/ar-ER.ts +++ b/packages/common/locales/ar-ER.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-ER', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Nfk', 'ناكفا أريتري', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Nfk', 'ناكفا أريتري', plural ]; diff --git a/packages/common/locales/ar-IL.ts b/packages/common/locales/ar-IL.ts index 255ebfa038..5b24f36dfa 100644 --- a/packages/common/locales/ar-IL.ts +++ b/packages/common/locales/ar-IL.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-IL', [ @@ -45,13 +54,5 @@ export default [ 'ليس رقمًا', ':' ], ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₪', 'شيكل إسرائيلي جديد', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + plural ]; diff --git a/packages/common/locales/ar-IQ.ts b/packages/common/locales/ar-IQ.ts index 9fdd7e2937..1be7b4b825 100644 --- a/packages/common/locales/ar-IQ.ts +++ b/packages/common/locales/ar-IQ.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-IQ', [ @@ -58,14 +67,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ع.\u200f', 'دينار عراقي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ع.\u200f', 'دينار عراقي', plural ]; diff --git a/packages/common/locales/ar-JO.ts b/packages/common/locales/ar-JO.ts index c4fdd123e8..142ad04bf8 100644 --- a/packages/common/locales/ar-JO.ts +++ b/packages/common/locales/ar-JO.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-JO', [ @@ -45,14 +54,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.أ.\u200f', 'دينار أردني', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.أ.\u200f', 'دينار أردني', plural ]; diff --git a/packages/common/locales/ar-KM.ts b/packages/common/locales/ar-KM.ts index 84160ae93a..5bb0907814 100644 --- a/packages/common/locales/ar-KM.ts +++ b/packages/common/locales/ar-KM.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-KM', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CF', 'فرنك جزر القمر', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CF', 'فرنك جزر القمر', plural ]; diff --git a/packages/common/locales/ar-KW.ts b/packages/common/locales/ar-KW.ts index d04d3b20e5..483a648dd4 100644 --- a/packages/common/locales/ar-KW.ts +++ b/packages/common/locales/ar-KW.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-KW', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ك.\u200f', 'دينار كويتي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ك.\u200f', 'دينار كويتي', plural ]; diff --git a/packages/common/locales/ar-LB.ts b/packages/common/locales/ar-LB.ts index 9450c6a98d..152bf10e06 100644 --- a/packages/common/locales/ar-LB.ts +++ b/packages/common/locales/ar-LB.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-LB', [ @@ -45,14 +54,5 @@ export default [ ',', '.', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ل.ل.\u200f', 'جنيه لبناني', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ل.ل.\u200f', 'جنيه لبناني', plural ]; diff --git a/packages/common/locales/ar-LY.ts b/packages/common/locales/ar-LY.ts index a48af237cf..d99d384303 100644 --- a/packages/common/locales/ar-LY.ts +++ b/packages/common/locales/ar-LY.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-LY', [ @@ -44,14 +53,5 @@ export default [ ',', '.', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ل.\u200f', 'دينار ليبي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ل.\u200f', 'دينار ليبي', plural ]; diff --git a/packages/common/locales/ar-MA.ts b/packages/common/locales/ar-MA.ts index f8fc4a58e5..0176cc4b20 100644 --- a/packages/common/locales/ar-MA.ts +++ b/packages/common/locales/ar-MA.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-MA', [ @@ -44,14 +53,5 @@ export default [ ',', '.', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.م.\u200f', 'درهم مغربي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.م.\u200f', 'درهم مغربي', plural ]; diff --git a/packages/common/locales/ar-MR.ts b/packages/common/locales/ar-MR.ts index 49e4bf535c..dd76f13e27 100644 --- a/packages/common/locales/ar-MR.ts +++ b/packages/common/locales/ar-MR.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-MR', [ @@ -45,13 +54,5 @@ export default [ 'ليس رقمًا', ':' ], ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'أ.م.\u200f', 'أوقية موريتانية', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + plural ]; diff --git a/packages/common/locales/ar-OM.ts b/packages/common/locales/ar-OM.ts index 03676e8e1f..9c6f5dc9b0 100644 --- a/packages/common/locales/ar-OM.ts +++ b/packages/common/locales/ar-OM.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-OM', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر.ع.\u200f', 'ريال عماني', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر.ع.\u200f', 'ريال عماني', plural ]; diff --git a/packages/common/locales/ar-PS.ts b/packages/common/locales/ar-PS.ts index 93a1b471e3..c5f31ec7d7 100644 --- a/packages/common/locales/ar-PS.ts +++ b/packages/common/locales/ar-PS.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-PS', [ @@ -46,13 +55,5 @@ export default [ 'ليس رقمًا', ':' ], ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₪', 'شيكل إسرائيلي جديد', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + plural ]; diff --git a/packages/common/locales/ar-QA.ts b/packages/common/locales/ar-QA.ts index c4bfb22899..ff2be539f8 100644 --- a/packages/common/locales/ar-QA.ts +++ b/packages/common/locales/ar-QA.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-QA', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر.ق.\u200f', 'ريال قطري', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر.ق.\u200f', 'ريال قطري', plural ]; diff --git a/packages/common/locales/ar-SA.ts b/packages/common/locales/ar-SA.ts index c23d0480a3..33b0df0064 100644 --- a/packages/common/locales/ar-SA.ts +++ b/packages/common/locales/ar-SA.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-SA', [ @@ -41,14 +50,5 @@ export default [ , ], ['.', ',', ';', '٪', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر.س.\u200f', 'ريال سعودي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر.س.\u200f', 'ريال سعودي', plural ]; diff --git a/packages/common/locales/ar-SD.ts b/packages/common/locales/ar-SD.ts index a8ec4cd588..887517943a 100644 --- a/packages/common/locales/ar-SD.ts +++ b/packages/common/locales/ar-SD.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-SD', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ج.س.', 'جنيه سوداني', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ج.س.', 'جنيه سوداني', plural ]; diff --git a/packages/common/locales/ar-SO.ts b/packages/common/locales/ar-SO.ts index febb7b67f3..4a0e71afb4 100644 --- a/packages/common/locales/ar-SO.ts +++ b/packages/common/locales/ar-SO.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-SO', [ @@ -41,14 +50,5 @@ export default [ , ], ['.', ',', ';', '٪', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'S', 'شلن صومالي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'S', 'شلن صومالي', plural ]; diff --git a/packages/common/locales/ar-SS.ts b/packages/common/locales/ar-SS.ts index eba3d35948..15b622f9e8 100644 --- a/packages/common/locales/ar-SS.ts +++ b/packages/common/locales/ar-SS.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-SS', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '£', 'جنيه جنوب السودان', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '£', 'جنيه جنوب السودان', plural ]; diff --git a/packages/common/locales/ar-SY.ts b/packages/common/locales/ar-SY.ts index 05e818fae7..d074cc6e31 100644 --- a/packages/common/locales/ar-SY.ts +++ b/packages/common/locales/ar-SY.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-SY', [ @@ -45,14 +54,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ل.س.\u200f', 'ليرة سورية', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ل.س.\u200f', 'ليرة سورية', plural ]; diff --git a/packages/common/locales/ar-TD.ts b/packages/common/locales/ar-TD.ts index a772b9d8c3..d47c5c6f5d 100644 --- a/packages/common/locales/ar-TD.ts +++ b/packages/common/locales/ar-TD.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-TD', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'فرنك وسط أفريقي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'فرنك وسط أفريقي', plural ]; diff --git a/packages/common/locales/ar-TN.ts b/packages/common/locales/ar-TN.ts index 9cbd09eb3e..9107e3a733 100644 --- a/packages/common/locales/ar-TN.ts +++ b/packages/common/locales/ar-TN.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-TN', [ @@ -44,14 +53,5 @@ export default [ ',', '.', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ت.\u200f', 'دينار تونسي', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ت.\u200f', 'دينار تونسي', plural ]; diff --git a/packages/common/locales/ar-YE.ts b/packages/common/locales/ar-YE.ts index 7b257e76fe..7193e81029 100644 --- a/packages/common/locales/ar-YE.ts +++ b/packages/common/locales/ar-YE.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar-YE', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر.ي.\u200f', 'ريال يمني', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر.ي.\u200f', 'ريال يمني', plural ]; diff --git a/packages/common/locales/ar.ts b/packages/common/locales/ar.ts index 0ceb31eff0..3e655f4a59 100644 --- a/packages/common/locales/ar.ts +++ b/packages/common/locales/ar.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; + return 5; +} + export default [ 'ar', [ @@ -44,14 +53,5 @@ export default [ '.', ',', ';', '\u200e%\u200e', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'ليس رقمًا', ':' ], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ج.م.\u200f', 'جنيه مصري', - function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ج.م.\u200f', 'جنيه مصري', plural ]; diff --git a/packages/common/locales/as.ts b/packages/common/locales/as.ts index a75a930318..f9b5f1c3a5 100644 --- a/packages/common/locales/as.ts +++ b/packages/common/locales/as.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'as', [ @@ -72,11 +78,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'INR', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'INR', plural ]; diff --git a/packages/common/locales/asa.ts b/packages/common/locales/asa.ts index 638ab69963..babd5c9399 100644 --- a/packages/common/locales/asa.ts +++ b/packages/common/locales/asa.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'asa', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'TSh', 'shilingi ya Tandhania', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'TSh', 'shilingi ya Tandhania', plural ]; diff --git a/packages/common/locales/ast.ts b/packages/common/locales/ast.ts index 4c76e083e8..479e3e6970 100644 --- a/packages/common/locales/ast.ts +++ b/packages/common/locales/ast.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'ast', [['a', 'p'], ['AM', 'PM'], ['de la mañana', 'de la tarde']], [['a', 'p'], ['AM', 'PM'], ['mañana', 'tarde']], @@ -43,11 +49,5 @@ export default [ '{1} \'a\' \'les\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'ND', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/az-Cyrl.ts b/packages/common/locales/az-Cyrl.ts index 3ebc808e90..1167bd311c 100644 --- a/packages/common/locales/az-Cyrl.ts +++ b/packages/common/locales/az-Cyrl.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'az-Cyrl', [ @@ -59,6 +63,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₼', 'AZN', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₼', 'AZN', plural ]; diff --git a/packages/common/locales/az-Latn.ts b/packages/common/locales/az-Latn.ts index e6e6671bd5..06e9db865c 100644 --- a/packages/common/locales/az-Latn.ts +++ b/packages/common/locales/az-Latn.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'az-Latn', [ @@ -53,10 +58,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₼', 'Azərbaycan Manatı', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₼', 'Azərbaycan Manatı', plural ]; diff --git a/packages/common/locales/az.ts b/packages/common/locales/az.ts index 0e9a435dd4..2d1e2d65be 100644 --- a/packages/common/locales/az.ts +++ b/packages/common/locales/az.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'az', [ @@ -53,10 +58,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₼', 'Azərbaycan Manatı', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₼', 'Azərbaycan Manatı', plural ]; diff --git a/packages/common/locales/bas.ts b/packages/common/locales/bas.ts index 44e713e1f3..59ffdfd284 100644 --- a/packages/common/locales/bas.ts +++ b/packages/common/locales/bas.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'bas', [ @@ -42,6 +46,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'Frǎŋ CFA (BEAC)', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'Frǎŋ CFA (BEAC)', plural ]; diff --git a/packages/common/locales/be.ts b/packages/common/locales/be.ts index 22ae025ccf..a736381a53 100644 --- a/packages/common/locales/be.ts +++ b/packages/common/locales/be.ts @@ -9,6 +9,17 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n % 10 === 1 && !(n % 100 === 11)) return 1; + if (n % 10 === Math.floor(n % 10) && n % 10 >= 2 && n % 10 <= 4 && + !(n % 100 >= 12 && n % 100 <= 14)) + return 3; + if (n % 10 === 0 || n % 10 === Math.floor(n % 10) && n % 10 >= 5 && n % 10 <= 9 || + n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 14) + return 4; + return 5; +} + export default [ 'be', [ @@ -65,16 +76,5 @@ export default [ '{1} \'у\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Br', 'беларускі рубель', - function(n: number): - number { - if (n % 10 === 1 && !(n % 100 === 11)) return 1; - if (n % 10 === Math.floor(n % 10) && n % 10 >= 2 && n % 10 <= 4 && - !(n % 100 >= 12 && n % 100 <= 14)) - return 3; - if (n % 10 === 0 || n % 10 === Math.floor(n % 10) && n % 10 >= 5 && n % 10 <= 9 || - n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 14) - return 4; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Br', 'беларускі рубель', plural ]; diff --git a/packages/common/locales/bem.ts b/packages/common/locales/bem.ts index 35f3b35663..99bb641477 100644 --- a/packages/common/locales/bem.ts +++ b/packages/common/locales/bem.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'bem', [ @@ -42,9 +47,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'K', 'ZMW', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'K', 'ZMW', plural ]; diff --git a/packages/common/locales/bez.ts b/packages/common/locales/bez.ts index e47d0624df..f8cb2291ea 100644 --- a/packages/common/locales/bez.ts +++ b/packages/common/locales/bez.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'bez', [ @@ -44,10 +49,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'TSh', 'Shilingi ya Hutanzania', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'TSh', 'Shilingi ya Hutanzania', plural ]; diff --git a/packages/common/locales/bg.ts b/packages/common/locales/bg.ts index fd26148d1b..17251ffaba 100644 --- a/packages/common/locales/bg.ts +++ b/packages/common/locales/bg.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'bg', [['am', 'pm'], , ['пр.об.', 'сл.об.']], [ @@ -45,10 +50,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '0.00 ¤', '#E0'], 'лв.', 'Български лев', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '0.00 ¤', '#E0'], 'лв.', 'Български лев', plural ]; diff --git a/packages/common/locales/bm.ts b/packages/common/locales/bm.ts index d283a0a7cf..e6974e2c5d 100644 --- a/packages/common/locales/bm.ts +++ b/packages/common/locales/bm.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'bm', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'CFA', 'sefa Fraŋ (BCEAO)', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'CFA', 'sefa Fraŋ (BCEAO)', plural ]; diff --git a/packages/common/locales/bn-IN.ts b/packages/common/locales/bn-IN.ts index dfb139918f..1abedc3f45 100644 --- a/packages/common/locales/bn-IN.ts +++ b/packages/common/locales/bn-IN.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'bn-IN', [ @@ -82,10 +88,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '#,##,##0.00¤', '#E0'], '₹', - 'ভারতীয় রুপি', function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + 'ভারতীয় রুপি', plural ]; diff --git a/packages/common/locales/bn.ts b/packages/common/locales/bn.ts index 0e714fe08b..7ef05fe072 100644 --- a/packages/common/locales/bn.ts +++ b/packages/common/locales/bn.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'bn', [ @@ -82,10 +88,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '#,##,##0.00¤', '#E0'], '৳', - 'বাংলাদেশী টাকা', function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + 'বাংলাদেশী টাকা', plural ]; diff --git a/packages/common/locales/bo-IN.ts b/packages/common/locales/bo-IN.ts index b9b683780f..b0f145578f 100644 --- a/packages/common/locales/bo-IN.ts +++ b/packages/common/locales/bo-IN.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'bo-IN', [ @@ -85,5 +89,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₹', 'རྒྱ་གར་སྒོར་', - function(n: number): number { return 5;} + plural ]; diff --git a/packages/common/locales/bo.ts b/packages/common/locales/bo.ts index f4e1c7622f..d3a13d4a74 100644 --- a/packages/common/locales/bo.ts +++ b/packages/common/locales/bo.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'bo', [ @@ -84,6 +88,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '¥', 'ཡུ་ཨན་', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '¥', 'ཡུ་ཨན་', plural ]; diff --git a/packages/common/locales/br.ts b/packages/common/locales/br.ts index 46b65c5c71..6982b0ebe6 100644 --- a/packages/common/locales/br.ts +++ b/packages/common/locales/br.ts @@ -9,6 +9,17 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n % 10 === 1 && !(n % 100 === 11 || n % 100 === 71 || n % 100 === 91)) return 1; + if (n % 10 === 2 && !(n % 100 === 12 || n % 100 === 72 || n % 100 === 92)) return 2; + if (n % 10 === Math.floor(n % 10) && (n % 10 >= 3 && n % 10 <= 4 || n % 10 === 9) && + !(n % 100 >= 10 && n % 100 <= 19 || n % 100 >= 70 && n % 100 <= 79 || + n % 100 >= 90 && n % 100 <= 99)) + return 3; + if (!(n === 0) && n % 1e6 === 0) return 4; + return 5; +} + export default [ 'br', [ @@ -56,16 +67,5 @@ export default [ '{1} \'da\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - if (n % 10 === 1 && !(n % 100 === 11 || n % 100 === 71 || n % 100 === 91)) return 1; - if (n % 10 === 2 && !(n % 100 === 12 || n % 100 === 72 || n % 100 === 92)) return 2; - if (n % 10 === Math.floor(n % 10) && (n % 10 >= 3 && n % 10 <= 4 || n % 10 === 9) && - !(n % 100 >= 10 && n % 100 <= 19 || n % 100 >= 70 && n % 100 <= 79 || - n % 100 >= 90 && n % 100 <= 99)) - return 3; - if (!(n === 0) && n % 1e6 === 0) return 4; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/brx.ts b/packages/common/locales/brx.ts index d1ea39fb74..71b9f35bc7 100644 --- a/packages/common/locales/brx.ts +++ b/packages/common/locales/brx.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'brx', [ @@ -57,10 +62,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'रां', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'रां', plural ]; diff --git a/packages/common/locales/bs-Cyrl.ts b/packages/common/locales/bs-Cyrl.ts index cd20eb11ad..1965661b7d 100644 --- a/packages/common/locales/bs-Cyrl.ts +++ b/packages/common/locales/bs-Cyrl.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'bs-Cyrl', [ @@ -51,5 +55,5 @@ export default [ ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'КМ', 'Конвертибилна марка', - function(n: number): number { return 5;} + plural ]; diff --git a/packages/common/locales/bs-Latn.ts b/packages/common/locales/bs-Latn.ts index 44c8c9b3cb..ab4f42a229 100644 --- a/packages/common/locales/bs-Latn.ts +++ b/packages/common/locales/bs-Latn.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14) || + f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && + !(f % 100 >= 12 && f % 100 <= 14)) + return 3; + return 5; +} + export default [ 'bs-Latn', [ @@ -44,18 +56,5 @@ export default [ ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'KM', - 'Bosanskohercegovačka konvertibilna marka', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) - return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14) || - f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && - !(f % 100 >= 12 && f % 100 <= 14)) - return 3; - return 5; - } + 'Bosanskohercegovačka konvertibilna marka', plural ]; diff --git a/packages/common/locales/bs.ts b/packages/common/locales/bs.ts index a2506d21d8..af9490dd97 100644 --- a/packages/common/locales/bs.ts +++ b/packages/common/locales/bs.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14) || + f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && + !(f % 100 >= 12 && f % 100 <= 14)) + return 3; + return 5; +} + export default [ 'bs', [ @@ -44,18 +56,5 @@ export default [ ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'KM', - 'Bosanskohercegovačka konvertibilna marka', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) - return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14) || - f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && - !(f % 100 >= 12 && f % 100 <= 14)) - return 3; - return 5; - } + 'Bosanskohercegovačka konvertibilna marka', plural ]; diff --git a/packages/common/locales/ca-AD.ts b/packages/common/locales/ca-AD.ts index 8c9cb3e047..d8bba4b6f0 100644 --- a/packages/common/locales/ca-AD.ts +++ b/packages/common/locales/ca-AD.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'ca-AD', [ @@ -53,11 +59,5 @@ export default [ '{1} \'a\' \'les\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/ca-ES-VALENCIA.ts b/packages/common/locales/ca-ES-VALENCIA.ts index 7a467549e2..424be2341e 100644 --- a/packages/common/locales/ca-ES-VALENCIA.ts +++ b/packages/common/locales/ca-ES-VALENCIA.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'ca-ES-VALENCIA', [ @@ -53,11 +59,5 @@ export default [ '{1} \'a\' \'les\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/ca-FR.ts b/packages/common/locales/ca-FR.ts index 3834194bb6..0546811959 100644 --- a/packages/common/locales/ca-FR.ts +++ b/packages/common/locales/ca-FR.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'ca-FR', [ @@ -53,11 +59,5 @@ export default [ '{1} \'a\' \'les\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/ca-IT.ts b/packages/common/locales/ca-IT.ts index 3e1640bfbc..141d564246 100644 --- a/packages/common/locales/ca-IT.ts +++ b/packages/common/locales/ca-IT.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'ca-IT', [ @@ -53,11 +59,5 @@ export default [ '{1} \'a\' \'les\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/ca.ts b/packages/common/locales/ca.ts index 83a587f807..2e58cfcca0 100644 --- a/packages/common/locales/ca.ts +++ b/packages/common/locales/ca.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'ca', [ @@ -53,11 +59,5 @@ export default [ '{1} \'a\' \'les\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/ccp-IN.ts b/packages/common/locales/ccp-IN.ts index 5227185288..9f7ad31756 100644 --- a/packages/common/locales/ccp-IN.ts +++ b/packages/common/locales/ccp-IN.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ccp-IN', [ @@ -85,5 +89,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '#,##,##0.00¤', '#E0'], '₹', - '𑄃𑄨𑄚𑄴𑄘𑄨𑄠𑄚𑄴 𑄢𑄪𑄛𑄨', function(n: number): number { return 5;} + '𑄃𑄨𑄚𑄴𑄘𑄨𑄠𑄚𑄴 𑄢𑄪𑄛𑄨', plural ]; diff --git a/packages/common/locales/ccp.ts b/packages/common/locales/ccp.ts index 763bdeff12..b2f1976775 100644 --- a/packages/common/locales/ccp.ts +++ b/packages/common/locales/ccp.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ccp', [ @@ -85,5 +89,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '#,##,##0.00¤', '#E0'], '৳', - '𑄝𑄁𑄣𑄘𑄬𑄥𑄨 𑄑𑄬𑄋', function(n: number): number { return 5;} + '𑄝𑄁𑄣𑄘𑄬𑄥𑄨 𑄑𑄬𑄋', plural ]; diff --git a/packages/common/locales/ce.ts b/packages/common/locales/ce.ts index 061c89c365..cad201c372 100644 --- a/packages/common/locales/ce.ts +++ b/packages/common/locales/ce.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ce', [ @@ -61,10 +66,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'Терхьаш дац', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₽', 'Российн сом', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₽', 'Российн сом', plural ]; diff --git a/packages/common/locales/cgg.ts b/packages/common/locales/cgg.ts index 75806eeb9e..22cb4cece1 100644 --- a/packages/common/locales/cgg.ts +++ b/packages/common/locales/cgg.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'cgg', [ @@ -40,10 +45,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Eshiringi ya Uganda', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Eshiringi ya Uganda', plural ]; diff --git a/packages/common/locales/chr.ts b/packages/common/locales/chr.ts index fbc876a58b..13aa4bd817 100644 --- a/packages/common/locales/chr.ts +++ b/packages/common/locales/chr.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'chr', [ @@ -49,9 +54,5 @@ export default [ '{1} ᎤᎾᎢ {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US ᎠᏕᎳ', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US ᎠᏕᎳ', plural ]; diff --git a/packages/common/locales/ckb-IR.ts b/packages/common/locales/ckb-IR.ts index 5fcc6ff993..e9bf4ec252 100644 --- a/packages/common/locales/ckb-IR.ts +++ b/packages/common/locales/ckb-IR.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ckb-IR', [ @@ -46,9 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '\u200e+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'IRR', 'IRR', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'IRR', 'IRR', plural ]; diff --git a/packages/common/locales/ckb.ts b/packages/common/locales/ckb.ts index f1f74ec8d2..46a067548f 100644 --- a/packages/common/locales/ckb.ts +++ b/packages/common/locales/ckb.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ckb', [ @@ -46,10 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '\u200e+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ع.\u200f', 'IQD', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ع.\u200f', 'IQD', plural ]; diff --git a/packages/common/locales/closure-locale.ts b/packages/common/locales/closure-locale.ts index c4ad1c6b01..261f63d25c 100644 --- a/packages/common/locales/closure-locale.ts +++ b/packages/common/locales/closure-locale.ts @@ -1837,7 +1837,7 @@ export const locale_gsw = [ , , ], - ['.', '’', ';', '%', '+', '�����������������������������', 'E', '×', '‰', '∞', 'NaN', ':'], + ['.', '’', ';', '%', '+', '�������������������������������', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CHF', 'Schwiizer Franke', function(n: number): number { if (n === 1) diff --git a/packages/common/locales/cs.ts b/packages/common/locales/cs.ts index 8e54848b08..65c5a4809a 100644 --- a/packages/common/locales/cs.ts +++ b/packages/common/locales/cs.ts @@ -9,6 +9,14 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + if (i === Math.floor(i) && i >= 2 && i <= 4 && v === 0) return 3; + if (!(v === 0)) return 4; + return 5; +} + export default [ 'cs', [ @@ -50,13 +58,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Kč', 'česká koruna', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - if (i === Math.floor(i) && i >= 2 && i <= 4 && v === 0) return 3; - if (!(v === 0)) return 4; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Kč', 'česká koruna', plural ]; diff --git a/packages/common/locales/cu.ts b/packages/common/locales/cu.ts index d34608bb65..7e827d7d44 100644 --- a/packages/common/locales/cu.ts +++ b/packages/common/locales/cu.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'cu', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₽', 'RUB', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₽', 'RUB', plural ]; diff --git a/packages/common/locales/cy.ts b/packages/common/locales/cy.ts index 624f10f74d..0e5e699177 100644 --- a/packages/common/locales/cy.ts +++ b/packages/common/locales/cy.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + if (n === 2) return 2; + if (n === 3) return 3; + if (n === 6) return 4; + return 5; +} + export default [ 'cy', [ @@ -60,13 +69,5 @@ export default [ '{1} \'am\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'Punt Prydain', function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - if (n === 2) return 2; - if (n === 3) return 3; - if (n === 6) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'Punt Prydain', plural ]; diff --git a/packages/common/locales/da-GL.ts b/packages/common/locales/da-GL.ts index 4175a65669..86c3ab626d 100644 --- a/packages/common/locales/da-GL.ts +++ b/packages/common/locales/da-GL.ts @@ -9,6 +9,13 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), + t = parseInt(n.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0; + if (n === 1 || !(t === 0) && (i === 0 || i === 1)) return 1; + return 5; +} + export default [ 'da-GL', [ @@ -50,12 +57,5 @@ export default [ '{1} \'kl\'. {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', '.'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr.', 'dansk krone', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), - t = parseInt(n.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0; - if (n === 1 || !(t === 0) && (i === 0 || i === 1)) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr.', 'dansk krone', plural ]; diff --git a/packages/common/locales/da.ts b/packages/common/locales/da.ts index 12c0322e3a..fe773f0dde 100644 --- a/packages/common/locales/da.ts +++ b/packages/common/locales/da.ts @@ -9,6 +9,13 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), + t = parseInt(n.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0; + if (n === 1 || !(t === 0) && (i === 0 || i === 1)) return 1; + return 5; +} + export default [ 'da', [ @@ -50,12 +57,5 @@ export default [ '{1} \'kl\'. {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', '.'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr.', 'dansk krone', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), - t = parseInt(n.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0; - if (n === 1 || !(t === 0) && (i === 0 || i === 1)) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr.', 'dansk krone', plural ]; diff --git a/packages/common/locales/dav.ts b/packages/common/locales/dav.ts index e6e0528a2d..207300b320 100644 --- a/packages/common/locales/dav.ts +++ b/packages/common/locales/dav.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'dav', [ @@ -43,6 +47,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', plural ]; diff --git a/packages/common/locales/de-AT.ts b/packages/common/locales/de-AT.ts index eeff7bedf7..55046de557 100644 --- a/packages/common/locales/de-AT.ts +++ b/packages/common/locales/de-AT.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'de-AT', [ @@ -60,11 +66,5 @@ export default [ '{1} \'um\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':', '.'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/de-BE.ts b/packages/common/locales/de-BE.ts index ebe7e3dbba..418089afc6 100644 --- a/packages/common/locales/de-BE.ts +++ b/packages/common/locales/de-BE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'de-BE', [ @@ -59,11 +65,5 @@ export default [ '{1} \'um\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/de-CH.ts b/packages/common/locales/de-CH.ts index 5b5b9bc9fc..b411cbca1e 100644 --- a/packages/common/locales/de-CH.ts +++ b/packages/common/locales/de-CH.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'de-CH', [ @@ -59,11 +65,5 @@ export default [ '{1} \'um\' {0}', ], ['.', '’', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00;¤-#,##0.00', '#E0'], 'CHF', 'Schweizer Franken', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00;¤-#,##0.00', '#E0'], 'CHF', 'Schweizer Franken', plural ]; diff --git a/packages/common/locales/de-IT.ts b/packages/common/locales/de-IT.ts index 4fea62840b..563a63bed0 100644 --- a/packages/common/locales/de-IT.ts +++ b/packages/common/locales/de-IT.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'de-IT', [ @@ -60,11 +66,5 @@ export default [ '{1} \'um\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/de-LI.ts b/packages/common/locales/de-LI.ts index 5b9acb1d1d..a78a5e62ef 100644 --- a/packages/common/locales/de-LI.ts +++ b/packages/common/locales/de-LI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'de-LI', [ @@ -59,11 +65,5 @@ export default [ '{1} \'um\' {0}', ], ['.', '’', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CHF', 'Schweizer Franken', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CHF', 'Schweizer Franken', plural ]; diff --git a/packages/common/locales/de-LU.ts b/packages/common/locales/de-LU.ts index 7dfaa3ddaf..6fd81ef5d2 100644 --- a/packages/common/locales/de-LU.ts +++ b/packages/common/locales/de-LU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'de-LU', [ @@ -59,11 +65,5 @@ export default [ '{1} \'um\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/de.ts b/packages/common/locales/de.ts index c19d472ac0..93cdfdf4f5 100644 --- a/packages/common/locales/de.ts +++ b/packages/common/locales/de.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'de', [ @@ -59,11 +65,5 @@ export default [ '{1} \'um\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/dje.ts b/packages/common/locales/dje.ts index a113d28e79..c1018560f7 100644 --- a/packages/common/locales/dje.ts +++ b/packages/common/locales/dje.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'dje', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'CFA', 'CFA Fraŋ (BCEAO)', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'CFA', 'CFA Fraŋ (BCEAO)', plural ]; diff --git a/packages/common/locales/dsb.ts b/packages/common/locales/dsb.ts index f0cd1c283e..87896cfaca 100644 --- a/packages/common/locales/dsb.ts +++ b/packages/common/locales/dsb.ts @@ -9,6 +9,17 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 100 === 1 || f % 100 === 1) return 1; + if (v === 0 && i % 100 === 2 || f % 100 === 2) return 2; + if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 || + f % 100 === Math.floor(f % 100) && f % 100 >= 3 && f % 100 <= 4) + return 3; + return 5; +} + export default [ 'dsb', [ @@ -53,16 +64,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 100 === 1 || f % 100 === 1) return 1; - if (v === 0 && i % 100 === 2 || f % 100 === 2) return 2; - if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 || - f % 100 === Math.floor(f % 100) && f % 100 >= 3 && f % 100 <= 4) - return 3; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/dua.ts b/packages/common/locales/dua.ts index 58d7678c4b..d45804add7 100644 --- a/packages/common/locales/dua.ts +++ b/packages/common/locales/dua.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'dua', [ @@ -39,6 +43,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'XAF', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'XAF', plural ]; diff --git a/packages/common/locales/dyo.ts b/packages/common/locales/dyo.ts index ca694ca6b9..5705216478 100644 --- a/packages/common/locales/dyo.ts +++ b/packages/common/locales/dyo.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'dyo', [ @@ -39,6 +43,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'CFA', 'seefa yati BCEAO', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'CFA', 'seefa yati BCEAO', plural ]; diff --git a/packages/common/locales/dz.ts b/packages/common/locales/dz.ts index d8326fc914..1305c647f4 100644 --- a/packages/common/locales/dz.ts +++ b/packages/common/locales/dz.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'dz', [ @@ -85,6 +89,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0 %', '¤#,##,##0.00', '#E0'], '₹', - 'རྒྱ་གར་གྱི་དངུལ་ རུ་པི', - function(n: number): number { return 5;} + 'རྒྱ་གར་གྱི་དངུལ་ རུ་པི', plural ]; diff --git a/packages/common/locales/ebu.ts b/packages/common/locales/ebu.ts index 348f3f4b5f..c2443b943c 100644 --- a/packages/common/locales/ebu.ts +++ b/packages/common/locales/ebu.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ebu', [ @@ -40,6 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', plural ]; diff --git a/packages/common/locales/ee-TG.ts b/packages/common/locales/ee-TG.ts index 7951de6bc6..450fefeeaa 100644 --- a/packages/common/locales/ee-TG.ts +++ b/packages/common/locales/ee-TG.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ee-TG', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'mnn', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'CFA', 'ɣetoɖofe afrikaga CFA franc BCEAO', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'CFA', 'ɣetoɖofe afrikaga CFA franc BCEAO', plural ]; diff --git a/packages/common/locales/ee.ts b/packages/common/locales/ee.ts index cc860550e7..86ba5ff02f 100644 --- a/packages/common/locales/ee.ts +++ b/packages/common/locales/ee.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ee', [ @@ -39,9 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'mnn', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'GH₵', 'ghana siɖi', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'GH₵', 'ghana siɖi', plural ]; diff --git a/packages/common/locales/el-CY.ts b/packages/common/locales/el-CY.ts index 9c31377834..82dd95a98d 100644 --- a/packages/common/locales/el-CY.ts +++ b/packages/common/locales/el-CY.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'el-CY', [ @@ -59,9 +64,5 @@ export default [ '{1} - {0}', ], [',', '.', ';', '%', '+', '-', 'e', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Ευρώ', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Ευρώ', plural ]; diff --git a/packages/common/locales/el.ts b/packages/common/locales/el.ts index b9673c6617..6d9b863d82 100644 --- a/packages/common/locales/el.ts +++ b/packages/common/locales/el.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'el', [ @@ -59,9 +64,5 @@ export default [ '{1} - {0}', ], [',', '.', ';', '%', '+', '-', 'e', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Ευρώ', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Ευρώ', plural ]; diff --git a/packages/common/locales/en-001.ts b/packages/common/locales/en-001.ts index 2112b1122d..6ddb57974c 100644 --- a/packages/common/locales/en-001.ts +++ b/packages/common/locales/en-001.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-001', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], , - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], , plural ]; diff --git a/packages/common/locales/en-150.ts b/packages/common/locales/en-150.ts index 9283ab2099..5e7fcfa0d9 100644 --- a/packages/common/locales/en-150.ts +++ b/packages/common/locales/en-150.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-150', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], , - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], , plural ]; diff --git a/packages/common/locales/en-AG.ts b/packages/common/locales/en-AG.ts index 55a01182e6..6e5cf51fc9 100644 --- a/packages/common/locales/en-AG.ts +++ b/packages/common/locales/en-AG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-AG', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', plural ]; diff --git a/packages/common/locales/en-AI.ts b/packages/common/locales/en-AI.ts index 2d9c9ab86d..84b84cd8fb 100644 --- a/packages/common/locales/en-AI.ts +++ b/packages/common/locales/en-AI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-AI', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', plural ]; diff --git a/packages/common/locales/en-AS.ts b/packages/common/locales/en-AS.ts index eac0281a36..d9fe2a3705 100644 --- a/packages/common/locales/en-AS.ts +++ b/packages/common/locales/en-AS.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-AS', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-AT.ts b/packages/common/locales/en-AT.ts index 7d666a9cea..b65d18c907 100644 --- a/packages/common/locales/en-AT.ts +++ b/packages/common/locales/en-AT.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-AT', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/en-AU.ts b/packages/common/locales/en-AU.ts index 7de4368dd5..6bb0c49484 100644 --- a/packages/common/locales/en-AU.ts +++ b/packages/common/locales/en-AU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-AU', [ @@ -40,11 +46,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'e', '×', '‰', '∞', 'NaN', '.'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', plural ]; diff --git a/packages/common/locales/en-BB.ts b/packages/common/locales/en-BB.ts index d8431f6bf6..7cb3a52eaf 100644 --- a/packages/common/locales/en-BB.ts +++ b/packages/common/locales/en-BB.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-BB', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Barbadian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Barbadian Dollar', plural ]; diff --git a/packages/common/locales/en-BE.ts b/packages/common/locales/en-BE.ts index 17b0392c65..df889f78f8 100644 --- a/packages/common/locales/en-BE.ts +++ b/packages/common/locales/en-BE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-BE', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/en-BI.ts b/packages/common/locales/en-BI.ts index 3b189f8b6d..4d47ee3cbf 100644 --- a/packages/common/locales/en-BI.ts +++ b/packages/common/locales/en-BI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-BI', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FBu', 'Burundian Franc', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FBu', 'Burundian Franc', plural ]; diff --git a/packages/common/locales/en-BM.ts b/packages/common/locales/en-BM.ts index b8a2d50cf2..18abc99984 100644 --- a/packages/common/locales/en-BM.ts +++ b/packages/common/locales/en-BM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-BM', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Bermudan Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Bermudan Dollar', plural ]; diff --git a/packages/common/locales/en-BS.ts b/packages/common/locales/en-BS.ts index 71a8f3cf03..8ddcc93362 100644 --- a/packages/common/locales/en-BS.ts +++ b/packages/common/locales/en-BS.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-BS', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Bahamian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Bahamian Dollar', plural ]; diff --git a/packages/common/locales/en-BW.ts b/packages/common/locales/en-BW.ts index 7cbaa17eaa..50eaad17ef 100644 --- a/packages/common/locales/en-BW.ts +++ b/packages/common/locales/en-BW.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-BW', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'P', 'Botswanan Pula', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'P', 'Botswanan Pula', plural ]; diff --git a/packages/common/locales/en-BZ.ts b/packages/common/locales/en-BZ.ts index 26ef855d1a..59bf516282 100644 --- a/packages/common/locales/en-BZ.ts +++ b/packages/common/locales/en-BZ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-BZ', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Belize Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Belize Dollar', plural ]; diff --git a/packages/common/locales/en-CA.ts b/packages/common/locales/en-CA.ts index 8f3d05290f..ce9ed34063 100644 --- a/packages/common/locales/en-CA.ts +++ b/packages/common/locales/en-CA.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-CA', [ @@ -50,11 +56,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'e', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Canadian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Canadian Dollar', plural ]; diff --git a/packages/common/locales/en-CC.ts b/packages/common/locales/en-CC.ts index f1f44e1e55..3aca21c11c 100644 --- a/packages/common/locales/en-CC.ts +++ b/packages/common/locales/en-CC.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-CC', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', plural ]; diff --git a/packages/common/locales/en-CH.ts b/packages/common/locales/en-CH.ts index 7872d4f68a..85689b0b61 100644 --- a/packages/common/locales/en-CH.ts +++ b/packages/common/locales/en-CH.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-CH', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00;¤-#,##0.00', '#E0'], 'CHF', 'Swiss Franc', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00;¤-#,##0.00', '#E0'], 'CHF', 'Swiss Franc', plural ]; diff --git a/packages/common/locales/en-CK.ts b/packages/common/locales/en-CK.ts index d027790dca..3f6bdcd527 100644 --- a/packages/common/locales/en-CK.ts +++ b/packages/common/locales/en-CK.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-CK', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', plural ]; diff --git a/packages/common/locales/en-CM.ts b/packages/common/locales/en-CM.ts index 5ddf95abdf..2eb4e744c6 100644 --- a/packages/common/locales/en-CM.ts +++ b/packages/common/locales/en-CM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-CM', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FCFA', 'Central African CFA Franc', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FCFA', 'Central African CFA Franc', plural ]; diff --git a/packages/common/locales/en-CX.ts b/packages/common/locales/en-CX.ts index bf1dd06289..2b81e018ab 100644 --- a/packages/common/locales/en-CX.ts +++ b/packages/common/locales/en-CX.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-CX', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', plural ]; diff --git a/packages/common/locales/en-CY.ts b/packages/common/locales/en-CY.ts index 224d2a0681..fa40e0fef0 100644 --- a/packages/common/locales/en-CY.ts +++ b/packages/common/locales/en-CY.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-CY', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/en-DE.ts b/packages/common/locales/en-DE.ts index 3162321c14..399925b2ef 100644 --- a/packages/common/locales/en-DE.ts +++ b/packages/common/locales/en-DE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-DE', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/en-DG.ts b/packages/common/locales/en-DG.ts index 34e1d3706a..01c19e022d 100644 --- a/packages/common/locales/en-DG.ts +++ b/packages/common/locales/en-DG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-DG', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-DK.ts b/packages/common/locales/en-DK.ts index 71b5d364d6..d6196ab881 100644 --- a/packages/common/locales/en-DK.ts +++ b/packages/common/locales/en-DK.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-DK', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', '.'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr.', 'Danish Krone', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr.', 'Danish Krone', plural ]; diff --git a/packages/common/locales/en-DM.ts b/packages/common/locales/en-DM.ts index fad404f6e3..3954e35bd7 100644 --- a/packages/common/locales/en-DM.ts +++ b/packages/common/locales/en-DM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-DM', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', plural ]; diff --git a/packages/common/locales/en-ER.ts b/packages/common/locales/en-ER.ts index f0e0bdbffa..1f3fcc2edc 100644 --- a/packages/common/locales/en-ER.ts +++ b/packages/common/locales/en-ER.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-ER', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Nfk', 'Eritrean Nakfa', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Nfk', 'Eritrean Nakfa', plural ]; diff --git a/packages/common/locales/en-FI.ts b/packages/common/locales/en-FI.ts index a9e61e6025..adee8ed4c0 100644 --- a/packages/common/locales/en-FI.ts +++ b/packages/common/locales/en-FI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-FI', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', '.'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/en-FJ.ts b/packages/common/locales/en-FJ.ts index bdb949791e..71a0747cb0 100644 --- a/packages/common/locales/en-FJ.ts +++ b/packages/common/locales/en-FJ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-FJ', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Fijian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Fijian Dollar', plural ]; diff --git a/packages/common/locales/en-FK.ts b/packages/common/locales/en-FK.ts index 0e5f81a826..6ba4929b71 100644 --- a/packages/common/locales/en-FK.ts +++ b/packages/common/locales/en-FK.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-FK', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'Falkland Islands Pound', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'Falkland Islands Pound', plural ]; diff --git a/packages/common/locales/en-FM.ts b/packages/common/locales/en-FM.ts index 8bc91f1227..b921d08ee4 100644 --- a/packages/common/locales/en-FM.ts +++ b/packages/common/locales/en-FM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-FM', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-GB.ts b/packages/common/locales/en-GB.ts index 24f63c6c57..dc9d6d4d11 100644 --- a/packages/common/locales/en-GB.ts +++ b/packages/common/locales/en-GB.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-GB', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'British Pound', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'British Pound', plural ]; diff --git a/packages/common/locales/en-GD.ts b/packages/common/locales/en-GD.ts index aaa84398a9..5adeca6cbf 100644 --- a/packages/common/locales/en-GD.ts +++ b/packages/common/locales/en-GD.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-GD', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', plural ]; diff --git a/packages/common/locales/en-GG.ts b/packages/common/locales/en-GG.ts index 943a6a7e1f..0538895aa6 100644 --- a/packages/common/locales/en-GG.ts +++ b/packages/common/locales/en-GG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-GG', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'UK Pound', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'UK Pound', plural ]; diff --git a/packages/common/locales/en-GH.ts b/packages/common/locales/en-GH.ts index c4d4fcf772..e122aec9d0 100644 --- a/packages/common/locales/en-GH.ts +++ b/packages/common/locales/en-GH.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-GH', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'GH₵', 'Ghanaian Cedi', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'GH₵', 'Ghanaian Cedi', plural ]; diff --git a/packages/common/locales/en-GI.ts b/packages/common/locales/en-GI.ts index 5733fe4b8e..f5c4eab3ed 100644 --- a/packages/common/locales/en-GI.ts +++ b/packages/common/locales/en-GI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-GI', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'Gibraltar Pound', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'Gibraltar Pound', plural ]; diff --git a/packages/common/locales/en-GM.ts b/packages/common/locales/en-GM.ts index 8d1424b778..500022e058 100644 --- a/packages/common/locales/en-GM.ts +++ b/packages/common/locales/en-GM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-GM', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'D', 'Gambian Dalasi', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'D', 'Gambian Dalasi', plural ]; diff --git a/packages/common/locales/en-GU.ts b/packages/common/locales/en-GU.ts index 241412b507..edece0414b 100644 --- a/packages/common/locales/en-GU.ts +++ b/packages/common/locales/en-GU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-GU', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-GY.ts b/packages/common/locales/en-GY.ts index 356bbf9229..1bff835614 100644 --- a/packages/common/locales/en-GY.ts +++ b/packages/common/locales/en-GY.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-GY', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Guyanaese Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Guyanaese Dollar', plural ]; diff --git a/packages/common/locales/en-HK.ts b/packages/common/locales/en-HK.ts index 4bbc221824..4354656f01 100644 --- a/packages/common/locales/en-HK.ts +++ b/packages/common/locales/en-HK.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-HK', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', 'Hong Kong Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', 'Hong Kong Dollar', plural ]; diff --git a/packages/common/locales/en-IE.ts b/packages/common/locales/en-IE.ts index 012a7915ad..15a24e78a0 100644 --- a/packages/common/locales/en-IE.ts +++ b/packages/common/locales/en-IE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-IE', [['a', 'p'], ['AM', 'PM'], ['a.m.', 'p.m.']], [ @@ -38,11 +44,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/en-IL.ts b/packages/common/locales/en-IL.ts index 070c09a161..03512e9e45 100644 --- a/packages/common/locales/en-IL.ts +++ b/packages/common/locales/en-IL.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-IL', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₪', 'Israeli New Shekel', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₪', 'Israeli New Shekel', plural ]; diff --git a/packages/common/locales/en-IM.ts b/packages/common/locales/en-IM.ts index 78b7924691..b186f78511 100644 --- a/packages/common/locales/en-IM.ts +++ b/packages/common/locales/en-IM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-IM', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'UK Pound', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'UK Pound', plural ]; diff --git a/packages/common/locales/en-IN.ts b/packages/common/locales/en-IN.ts index 378e368782..30ed3c2525 100644 --- a/packages/common/locales/en-IN.ts +++ b/packages/common/locales/en-IN.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-IN', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'Indian Rupee', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'Indian Rupee', plural ]; diff --git a/packages/common/locales/en-IO.ts b/packages/common/locales/en-IO.ts index f826ecb300..3405248d0f 100644 --- a/packages/common/locales/en-IO.ts +++ b/packages/common/locales/en-IO.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-IO', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-JE.ts b/packages/common/locales/en-JE.ts index 745f2cda61..7952e62937 100644 --- a/packages/common/locales/en-JE.ts +++ b/packages/common/locales/en-JE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-JE', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'UK Pound', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'UK Pound', plural ]; diff --git a/packages/common/locales/en-JM.ts b/packages/common/locales/en-JM.ts index 8fb123b5b2..87564fd77e 100644 --- a/packages/common/locales/en-JM.ts +++ b/packages/common/locales/en-JM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-JM', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Jamaican Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Jamaican Dollar', plural ]; diff --git a/packages/common/locales/en-KE.ts b/packages/common/locales/en-KE.ts index f13d63b047..e9bb962811 100644 --- a/packages/common/locales/en-KE.ts +++ b/packages/common/locales/en-KE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-KE', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Kenyan Shilling', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Kenyan Shilling', plural ]; diff --git a/packages/common/locales/en-KI.ts b/packages/common/locales/en-KI.ts index 0df2a203dc..8dcd2f749a 100644 --- a/packages/common/locales/en-KI.ts +++ b/packages/common/locales/en-KI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-KI', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', plural ]; diff --git a/packages/common/locales/en-KN.ts b/packages/common/locales/en-KN.ts index eeb6454afe..27a56f1402 100644 --- a/packages/common/locales/en-KN.ts +++ b/packages/common/locales/en-KN.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-KN', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', plural ]; diff --git a/packages/common/locales/en-KY.ts b/packages/common/locales/en-KY.ts index b4b04c7782..ec982567f7 100644 --- a/packages/common/locales/en-KY.ts +++ b/packages/common/locales/en-KY.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-KY', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Cayman Islands Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Cayman Islands Dollar', plural ]; diff --git a/packages/common/locales/en-LC.ts b/packages/common/locales/en-LC.ts index c5aac4f070..a29cafe325 100644 --- a/packages/common/locales/en-LC.ts +++ b/packages/common/locales/en-LC.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-LC', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', plural ]; diff --git a/packages/common/locales/en-LR.ts b/packages/common/locales/en-LR.ts index 0adc5964cb..d7f29899d7 100644 --- a/packages/common/locales/en-LR.ts +++ b/packages/common/locales/en-LR.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-LR', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Liberian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Liberian Dollar', plural ]; diff --git a/packages/common/locales/en-LS.ts b/packages/common/locales/en-LS.ts index b60dcdfe18..2783d079e2 100644 --- a/packages/common/locales/en-LS.ts +++ b/packages/common/locales/en-LS.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-LS', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'South African Rand', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'South African Rand', plural ]; diff --git a/packages/common/locales/en-MG.ts b/packages/common/locales/en-MG.ts index 2725cc3aee..c9cf8fa70f 100644 --- a/packages/common/locales/en-MG.ts +++ b/packages/common/locales/en-MG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-MG', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ar', 'Malagasy Ariary', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ar', 'Malagasy Ariary', plural ]; diff --git a/packages/common/locales/en-MH.ts b/packages/common/locales/en-MH.ts index b38ed8f43f..2624cc1be7 100644 --- a/packages/common/locales/en-MH.ts +++ b/packages/common/locales/en-MH.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-MH', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-MO.ts b/packages/common/locales/en-MO.ts index 5177f7dcd5..d6785e4370 100644 --- a/packages/common/locales/en-MO.ts +++ b/packages/common/locales/en-MO.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-MO', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'MOP$', 'Macanese Pataca', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'MOP$', 'Macanese Pataca', plural ]; diff --git a/packages/common/locales/en-MP.ts b/packages/common/locales/en-MP.ts index 669938acef..742c9ae90a 100644 --- a/packages/common/locales/en-MP.ts +++ b/packages/common/locales/en-MP.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-MP', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-MS.ts b/packages/common/locales/en-MS.ts index 800fb32d97..718c61cdda 100644 --- a/packages/common/locales/en-MS.ts +++ b/packages/common/locales/en-MS.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-MS', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', plural ]; diff --git a/packages/common/locales/en-MT.ts b/packages/common/locales/en-MT.ts index d61f90bb26..085ba9a84a 100644 --- a/packages/common/locales/en-MT.ts +++ b/packages/common/locales/en-MT.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-MT', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/en-MU.ts b/packages/common/locales/en-MU.ts index 5456b2ed58..45fa81d19d 100644 --- a/packages/common/locales/en-MU.ts +++ b/packages/common/locales/en-MU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-MU', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Rs', 'Mauritian Rupee', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Rs', 'Mauritian Rupee', plural ]; diff --git a/packages/common/locales/en-MW.ts b/packages/common/locales/en-MW.ts index 23259da648..5b530895e2 100644 --- a/packages/common/locales/en-MW.ts +++ b/packages/common/locales/en-MW.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-MW', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'MK', 'Malawian Kwacha', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'MK', 'Malawian Kwacha', plural ]; diff --git a/packages/common/locales/en-MY.ts b/packages/common/locales/en-MY.ts index 551ad82da6..07c1673397 100644 --- a/packages/common/locales/en-MY.ts +++ b/packages/common/locales/en-MY.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-MY', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'RM', 'Malaysian Ringgit', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'RM', 'Malaysian Ringgit', plural ]; diff --git a/packages/common/locales/en-NA.ts b/packages/common/locales/en-NA.ts index a51a7e76ba..ef314f0f8b 100644 --- a/packages/common/locales/en-NA.ts +++ b/packages/common/locales/en-NA.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-NA', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'ZAR', 'South African Rand', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'ZAR', 'South African Rand', plural ]; diff --git a/packages/common/locales/en-NF.ts b/packages/common/locales/en-NF.ts index 574f66492a..d520987872 100644 --- a/packages/common/locales/en-NF.ts +++ b/packages/common/locales/en-NF.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-NF', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', plural ]; diff --git a/packages/common/locales/en-NG.ts b/packages/common/locales/en-NG.ts index 5d4cb161f5..9baf704503 100644 --- a/packages/common/locales/en-NG.ts +++ b/packages/common/locales/en-NG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-NG', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₦', 'Nigerian Naira', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₦', 'Nigerian Naira', plural ]; diff --git a/packages/common/locales/en-NL.ts b/packages/common/locales/en-NL.ts index 6d10171335..f877d7f034 100644 --- a/packages/common/locales/en-NL.ts +++ b/packages/common/locales/en-NL.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-NL', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/en-NR.ts b/packages/common/locales/en-NR.ts index 3e146f2c80..dc04c11235 100644 --- a/packages/common/locales/en-NR.ts +++ b/packages/common/locales/en-NR.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-NR', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', plural ]; diff --git a/packages/common/locales/en-NU.ts b/packages/common/locales/en-NU.ts index 0d7dd24ead..acae9af22f 100644 --- a/packages/common/locales/en-NU.ts +++ b/packages/common/locales/en-NU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-NU', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', plural ]; diff --git a/packages/common/locales/en-NZ.ts b/packages/common/locales/en-NZ.ts index e7f70941e0..abf4b3d070 100644 --- a/packages/common/locales/en-NZ.ts +++ b/packages/common/locales/en-NZ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-NZ', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', plural ]; diff --git a/packages/common/locales/en-PG.ts b/packages/common/locales/en-PG.ts index c7cb3f847b..0daff8e6c4 100644 --- a/packages/common/locales/en-PG.ts +++ b/packages/common/locales/en-PG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-PG', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'K', 'Papua New Guinean Kina', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'K', 'Papua New Guinean Kina', plural ]; diff --git a/packages/common/locales/en-PH.ts b/packages/common/locales/en-PH.ts index 3813d98977..614ff8a617 100644 --- a/packages/common/locales/en-PH.ts +++ b/packages/common/locales/en-PH.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-PH', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₱', 'Philippine Piso', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₱', 'Philippine Piso', plural ]; diff --git a/packages/common/locales/en-PK.ts b/packages/common/locales/en-PK.ts index b631a6078a..a2c612a388 100644 --- a/packages/common/locales/en-PK.ts +++ b/packages/common/locales/en-PK.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-PK', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Rs', 'Pakistani Rupee', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Rs', 'Pakistani Rupee', plural ]; diff --git a/packages/common/locales/en-PN.ts b/packages/common/locales/en-PN.ts index be002f7762..25bae9c2c0 100644 --- a/packages/common/locales/en-PN.ts +++ b/packages/common/locales/en-PN.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-PN', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', plural ]; diff --git a/packages/common/locales/en-PR.ts b/packages/common/locales/en-PR.ts index 222cfaee7e..78661e55e1 100644 --- a/packages/common/locales/en-PR.ts +++ b/packages/common/locales/en-PR.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-PR', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-PW.ts b/packages/common/locales/en-PW.ts index 477f38376a..3ac6904c6b 100644 --- a/packages/common/locales/en-PW.ts +++ b/packages/common/locales/en-PW.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-PW', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-RW.ts b/packages/common/locales/en-RW.ts index 0a2baf10a9..1864479882 100644 --- a/packages/common/locales/en-RW.ts +++ b/packages/common/locales/en-RW.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-RW', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'RF', 'Rwandan Franc', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'RF', 'Rwandan Franc', plural ]; diff --git a/packages/common/locales/en-SB.ts b/packages/common/locales/en-SB.ts index 06e83c0008..5d38bf8ab7 100644 --- a/packages/common/locales/en-SB.ts +++ b/packages/common/locales/en-SB.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SB', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Solomon Islands Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Solomon Islands Dollar', plural ]; diff --git a/packages/common/locales/en-SC.ts b/packages/common/locales/en-SC.ts index 194a8272f8..c13b81dc64 100644 --- a/packages/common/locales/en-SC.ts +++ b/packages/common/locales/en-SC.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SC', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'SR', 'Seychellois Rupee', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'SR', 'Seychellois Rupee', plural ]; diff --git a/packages/common/locales/en-SD.ts b/packages/common/locales/en-SD.ts index e2d0a83f54..250b1cc19a 100644 --- a/packages/common/locales/en-SD.ts +++ b/packages/common/locales/en-SD.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SD', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'SDG', 'Sudanese Pound', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'SDG', 'Sudanese Pound', plural ]; diff --git a/packages/common/locales/en-SE.ts b/packages/common/locales/en-SE.ts index beca48f42a..35016e12a8 100644 --- a/packages/common/locales/en-SE.ts +++ b/packages/common/locales/en-SE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SE', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', ' ', ';', '%', '+', '-', '×10^', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'Swedish Krona', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'Swedish Krona', plural ]; diff --git a/packages/common/locales/en-SG.ts b/packages/common/locales/en-SG.ts index a822b2b4e1..3883dd4107 100644 --- a/packages/common/locales/en-SG.ts +++ b/packages/common/locales/en-SG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SG', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Singapore Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Singapore Dollar', plural ]; diff --git a/packages/common/locales/en-SH.ts b/packages/common/locales/en-SH.ts index d40d58e353..7ef4ad5115 100644 --- a/packages/common/locales/en-SH.ts +++ b/packages/common/locales/en-SH.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SH', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'St. Helena Pound', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'St. Helena Pound', plural ]; diff --git a/packages/common/locales/en-SI.ts b/packages/common/locales/en-SI.ts index a9aad82a6e..1bd29a2ba4 100644 --- a/packages/common/locales/en-SI.ts +++ b/packages/common/locales/en-SI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SI', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', '.', ';', '%', '+', '-', 'e', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/en-SL.ts b/packages/common/locales/en-SL.ts index 700996a69b..5673a0c844 100644 --- a/packages/common/locales/en-SL.ts +++ b/packages/common/locales/en-SL.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SL', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Le', 'Sierra Leonean Leone', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Le', 'Sierra Leonean Leone', plural ]; diff --git a/packages/common/locales/en-SS.ts b/packages/common/locales/en-SS.ts index e6cbe6b020..8df8f5dabf 100644 --- a/packages/common/locales/en-SS.ts +++ b/packages/common/locales/en-SS.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SS', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'South Sudanese Pound', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'South Sudanese Pound', plural ]; diff --git a/packages/common/locales/en-SX.ts b/packages/common/locales/en-SX.ts index fa93627d61..419b0b77e2 100644 --- a/packages/common/locales/en-SX.ts +++ b/packages/common/locales/en-SX.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SX', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'NAf.', 'Netherlands Antillean Guilder', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'NAf.', 'Netherlands Antillean Guilder', plural ]; diff --git a/packages/common/locales/en-SZ.ts b/packages/common/locales/en-SZ.ts index df6caf8eed..45a1a45f28 100644 --- a/packages/common/locales/en-SZ.ts +++ b/packages/common/locales/en-SZ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-SZ', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'E', 'Swazi Lilangeni', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'E', 'Swazi Lilangeni', plural ]; diff --git a/packages/common/locales/en-TC.ts b/packages/common/locales/en-TC.ts index 8b68c8fe72..5fffb14286 100644 --- a/packages/common/locales/en-TC.ts +++ b/packages/common/locales/en-TC.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-TC', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-TK.ts b/packages/common/locales/en-TK.ts index de99a2463f..ce3e5b7d0e 100644 --- a/packages/common/locales/en-TK.ts +++ b/packages/common/locales/en-TK.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-TK', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'New Zealand Dollar', plural ]; diff --git a/packages/common/locales/en-TO.ts b/packages/common/locales/en-TO.ts index d6040d244f..c18fe08139 100644 --- a/packages/common/locales/en-TO.ts +++ b/packages/common/locales/en-TO.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-TO', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'T$', 'Tongan Paʻanga', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'T$', 'Tongan Paʻanga', plural ]; diff --git a/packages/common/locales/en-TT.ts b/packages/common/locales/en-TT.ts index fb4f44c9e7..76f1f0e645 100644 --- a/packages/common/locales/en-TT.ts +++ b/packages/common/locales/en-TT.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-TT', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Trinidad & Tobago Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Trinidad & Tobago Dollar', plural ]; diff --git a/packages/common/locales/en-TV.ts b/packages/common/locales/en-TV.ts index 5966e8418d..b1bb267b6d 100644 --- a/packages/common/locales/en-TV.ts +++ b/packages/common/locales/en-TV.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-TV', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Australian Dollar', plural ]; diff --git a/packages/common/locales/en-TZ.ts b/packages/common/locales/en-TZ.ts index 778e6a909b..f3461fa34a 100644 --- a/packages/common/locales/en-TZ.ts +++ b/packages/common/locales/en-TZ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-TZ', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Tanzanian Shilling', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Tanzanian Shilling', plural ]; diff --git a/packages/common/locales/en-UG.ts b/packages/common/locales/en-UG.ts index 3efd34ba0f..bca48e801b 100644 --- a/packages/common/locales/en-UG.ts +++ b/packages/common/locales/en-UG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-UG', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Ugandan Shilling', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Ugandan Shilling', plural ]; diff --git a/packages/common/locales/en-UM.ts b/packages/common/locales/en-UM.ts index 1de626947b..132cb82654 100644 --- a/packages/common/locales/en-UM.ts +++ b/packages/common/locales/en-UM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-UM', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-US-POSIX.ts b/packages/common/locales/en-US-POSIX.ts index 414318153a..5ea114017b 100644 --- a/packages/common/locales/en-US-POSIX.ts +++ b/packages/common/locales/en-US-POSIX.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-US-POSIX', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '0/00', 'INF', 'NaN', ':'], - ['0.######', '0%', '¤ 0.00', '0.000000E+000'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['0.######', '0%', '¤ 0.00', '0.000000E+000'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-VC.ts b/packages/common/locales/en-VC.ts index e1f067b0d2..68f3930e2e 100644 --- a/packages/common/locales/en-VC.ts +++ b/packages/common/locales/en-VC.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-VC', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'East Caribbean Dollar', plural ]; diff --git a/packages/common/locales/en-VG.ts b/packages/common/locales/en-VG.ts index 463c937487..54e693ed71 100644 --- a/packages/common/locales/en-VG.ts +++ b/packages/common/locales/en-VG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-VG', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-VI.ts b/packages/common/locales/en-VI.ts index b7b0b13d56..66e2697a67 100644 --- a/packages/common/locales/en-VI.ts +++ b/packages/common/locales/en-VI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-VI', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en-VU.ts b/packages/common/locales/en-VU.ts index 700d5afca6..0a79f9199d 100644 --- a/packages/common/locales/en-VU.ts +++ b/packages/common/locales/en-VU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-VU', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'VT', 'Vanuatu Vatu', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'VT', 'Vanuatu Vatu', plural ]; diff --git a/packages/common/locales/en-WS.ts b/packages/common/locales/en-WS.ts index d424b0dec5..d84ef5d6d2 100644 --- a/packages/common/locales/en-WS.ts +++ b/packages/common/locales/en-WS.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-WS', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'WS$', 'Samoan Tala', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'WS$', 'Samoan Tala', plural ]; diff --git a/packages/common/locales/en-ZA.ts b/packages/common/locales/en-ZA.ts index b015885af3..b80f71d2fb 100644 --- a/packages/common/locales/en-ZA.ts +++ b/packages/common/locales/en-ZA.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-ZA', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'South African Rand', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'South African Rand', plural ]; diff --git a/packages/common/locales/en-ZM.ts b/packages/common/locales/en-ZM.ts index e431932015..fbf1404305 100644 --- a/packages/common/locales/en-ZM.ts +++ b/packages/common/locales/en-ZM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-ZM', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'K', 'Zambian Kwacha', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'K', 'Zambian Kwacha', plural ]; diff --git a/packages/common/locales/en-ZW.ts b/packages/common/locales/en-ZW.ts index f7871da3c3..674cb90bba 100644 --- a/packages/common/locales/en-ZW.ts +++ b/packages/common/locales/en-ZW.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en-ZW', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'US Dollar', plural ]; diff --git a/packages/common/locales/en.ts b/packages/common/locales/en.ts index ba79d690f9..03337e974c 100644 --- a/packages/common/locales/en.ts +++ b/packages/common/locales/en.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/eo.ts b/packages/common/locales/eo.ts index 9e79296ad9..8e82d35496 100644 --- a/packages/common/locales/eo.ts +++ b/packages/common/locales/eo.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'eo', [ @@ -43,9 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], , function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], , plural ]; diff --git a/packages/common/locales/es-419.ts b/packages/common/locales/es-419.ts index d157deeff3..1299f5d789 100644 --- a/packages/common/locales/es-419.ts +++ b/packages/common/locales/es-419.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-419', [ @@ -48,9 +53,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'EUR', 'euro', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'EUR', 'euro', plural ]; diff --git a/packages/common/locales/es-AR.ts b/packages/common/locales/es-AR.ts index 0751154036..4db971117c 100644 --- a/packages/common/locales/es-AR.ts +++ b/packages/common/locales/es-AR.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-AR', [ @@ -41,10 +46,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '$', 'peso argentino', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '$', 'peso argentino', plural ]; diff --git a/packages/common/locales/es-BO.ts b/packages/common/locales/es-BO.ts index 7d048226d7..e1de233e18 100644 --- a/packages/common/locales/es-BO.ts +++ b/packages/common/locales/es-BO.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-BO', [ @@ -45,9 +50,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'Bs', 'boliviano', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'Bs', 'boliviano', plural ]; diff --git a/packages/common/locales/es-BR.ts b/packages/common/locales/es-BR.ts index 8bf9de13b6..c9e50883db 100644 --- a/packages/common/locales/es-BR.ts +++ b/packages/common/locales/es-BR.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-BR', [ @@ -48,10 +53,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'R$', 'real brasileño', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'R$', 'real brasileño', plural ]; diff --git a/packages/common/locales/es-BZ.ts b/packages/common/locales/es-BZ.ts index 6fb2408197..cb9d4d34cc 100644 --- a/packages/common/locales/es-BZ.ts +++ b/packages/common/locales/es-BZ.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-BZ', [ @@ -48,10 +53,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'dólar beliceño', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'dólar beliceño', plural ]; diff --git a/packages/common/locales/es-CL.ts b/packages/common/locales/es-CL.ts index 5f38e1303e..65e69626eb 100644 --- a/packages/common/locales/es-CL.ts +++ b/packages/common/locales/es-CL.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-CL', [ @@ -56,10 +61,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00;¤-#,##0.00', '#E0'], '$', 'Peso chileno', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00;¤-#,##0.00', '#E0'], '$', 'Peso chileno', plural ]; diff --git a/packages/common/locales/es-CO.ts b/packages/common/locales/es-CO.ts index 46b81cf8db..2afac41062 100644 --- a/packages/common/locales/es-CO.ts +++ b/packages/common/locales/es-CO.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-CO', [ @@ -56,10 +61,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '$', 'peso colombiano', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '$', 'peso colombiano', plural ]; diff --git a/packages/common/locales/es-CR.ts b/packages/common/locales/es-CR.ts index 72304c25c1..1579971d74 100644 --- a/packages/common/locales/es-CR.ts +++ b/packages/common/locales/es-CR.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-CR', [ @@ -45,10 +50,5 @@ export default [ '{1}, {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '₡', 'colón costarricense', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '₡', 'colón costarricense', plural ]; diff --git a/packages/common/locales/es-CU.ts b/packages/common/locales/es-CU.ts index cd21d326cc..0f56953827 100644 --- a/packages/common/locales/es-CU.ts +++ b/packages/common/locales/es-CU.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-CU', [ @@ -48,9 +53,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'peso cubano', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'peso cubano', plural ]; diff --git a/packages/common/locales/es-DO.ts b/packages/common/locales/es-DO.ts index d4e29c5439..dd9f5cb492 100644 --- a/packages/common/locales/es-DO.ts +++ b/packages/common/locales/es-DO.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-DO', [ @@ -41,10 +46,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'RD$', 'peso dominicano', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'RD$', 'peso dominicano', plural ]; diff --git a/packages/common/locales/es-EA.ts b/packages/common/locales/es-EA.ts index 1a8e7ecd46..ac6a8c6f57 100644 --- a/packages/common/locales/es-EA.ts +++ b/packages/common/locales/es-EA.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-EA', [ @@ -42,9 +47,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/es-EC.ts b/packages/common/locales/es-EC.ts index d1494e1a74..6f3bcf4abc 100644 --- a/packages/common/locales/es-EC.ts +++ b/packages/common/locales/es-EC.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-EC', [ @@ -45,10 +50,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00;¤-#,##0.00', '#E0'], '$', 'dólar estadounidense', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00;¤-#,##0.00', '#E0'], '$', 'dólar estadounidense', plural ]; diff --git a/packages/common/locales/es-GQ.ts b/packages/common/locales/es-GQ.ts index c6a1196b1b..fb695a6532 100644 --- a/packages/common/locales/es-GQ.ts +++ b/packages/common/locales/es-GQ.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-GQ', [ @@ -42,10 +47,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'FCFA', 'franco CFA de África Central', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'FCFA', 'franco CFA de África Central', plural ]; diff --git a/packages/common/locales/es-GT.ts b/packages/common/locales/es-GT.ts index a5d5b2439e..4a6ec8f50c 100644 --- a/packages/common/locales/es-GT.ts +++ b/packages/common/locales/es-GT.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-GT', [ @@ -45,9 +50,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'Q', 'quetzal', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'Q', 'quetzal', plural ]; diff --git a/packages/common/locales/es-HN.ts b/packages/common/locales/es-HN.ts index a40a7a988d..eb5b5c4fb9 100644 --- a/packages/common/locales/es-HN.ts +++ b/packages/common/locales/es-HN.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-HN', [ @@ -45,10 +50,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'L', 'lempira hondureño', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'L', 'lempira hondureño', plural ]; diff --git a/packages/common/locales/es-IC.ts b/packages/common/locales/es-IC.ts index 0d6369e540..a5f5c531b2 100644 --- a/packages/common/locales/es-IC.ts +++ b/packages/common/locales/es-IC.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-IC', [ @@ -42,9 +47,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/es-MX.ts b/packages/common/locales/es-MX.ts index 94712cba8f..cba8b4fe51 100644 --- a/packages/common/locales/es-MX.ts +++ b/packages/common/locales/es-MX.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-MX', [ @@ -53,9 +58,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'peso mexicano', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'peso mexicano', plural ]; diff --git a/packages/common/locales/es-NI.ts b/packages/common/locales/es-NI.ts index 9a2ab9e6d6..aafcc4629b 100644 --- a/packages/common/locales/es-NI.ts +++ b/packages/common/locales/es-NI.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-NI', [ @@ -45,10 +50,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'C$', 'córdoba nicaragüense', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'C$', 'córdoba nicaragüense', plural ]; diff --git a/packages/common/locales/es-PA.ts b/packages/common/locales/es-PA.ts index b2853cfc18..02fb190478 100644 --- a/packages/common/locales/es-PA.ts +++ b/packages/common/locales/es-PA.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-PA', [ @@ -45,10 +50,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'B/.', 'balboa panameño', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'B/.', 'balboa panameño', plural ]; diff --git a/packages/common/locales/es-PE.ts b/packages/common/locales/es-PE.ts index 3f6a4a0727..306d858fa6 100644 --- a/packages/common/locales/es-PE.ts +++ b/packages/common/locales/es-PE.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-PE', [ @@ -55,9 +60,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'S/', 'sol peruano', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], 'S/', 'sol peruano', plural ]; diff --git a/packages/common/locales/es-PH.ts b/packages/common/locales/es-PH.ts index 98dc4d6be5..e292733f27 100644 --- a/packages/common/locales/es-PH.ts +++ b/packages/common/locales/es-PH.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-PH', [ @@ -42,10 +47,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₱', 'peso filipino', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₱', 'peso filipino', plural ]; diff --git a/packages/common/locales/es-PR.ts b/packages/common/locales/es-PR.ts index 9fd66d5130..b0a45fbec5 100644 --- a/packages/common/locales/es-PR.ts +++ b/packages/common/locales/es-PR.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-PR', [ @@ -45,10 +50,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'dólar estadounidense', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'dólar estadounidense', plural ]; diff --git a/packages/common/locales/es-PY.ts b/packages/common/locales/es-PY.ts index 003bfea1d6..b554f64adc 100644 --- a/packages/common/locales/es-PY.ts +++ b/packages/common/locales/es-PY.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-PY', [ @@ -47,9 +52,5 @@ export default [ ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0 %', '¤ #,##0.00;¤ -#,##0.00', '#E0'], 'Gs.', 'guaraní paraguayo', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + plural ]; diff --git a/packages/common/locales/es-SV.ts b/packages/common/locales/es-SV.ts index a1e0ebabb2..b2dac83c70 100644 --- a/packages/common/locales/es-SV.ts +++ b/packages/common/locales/es-SV.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-SV', [ @@ -45,10 +50,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'dólar estadounidense', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'dólar estadounidense', plural ]; diff --git a/packages/common/locales/es-US.ts b/packages/common/locales/es-US.ts index 4b376c020f..5e4c64fe1a 100644 --- a/packages/common/locales/es-US.ts +++ b/packages/common/locales/es-US.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-US', [ @@ -41,10 +46,5 @@ export default [ '{1}, {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'dólar estadounidense', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00', '#E0'], '$', 'dólar estadounidense', plural ]; diff --git a/packages/common/locales/es-UY.ts b/packages/common/locales/es-UY.ts index 53dd442eae..45d9a0bbec 100644 --- a/packages/common/locales/es-UY.ts +++ b/packages/common/locales/es-UY.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-UY', [ @@ -55,10 +60,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '$', 'peso uruguayo', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '$', 'peso uruguayo', plural ]; diff --git a/packages/common/locales/es-VE.ts b/packages/common/locales/es-VE.ts index c734d2ec80..d6bcd30bfb 100644 --- a/packages/common/locales/es-VE.ts +++ b/packages/common/locales/es-VE.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es-VE', [ @@ -46,10 +51,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00;¤-#,##0.00', '#E0'], 'Bs.', 'bolívar venezolano', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00;¤-#,##0.00', '#E0'], 'Bs.', 'bolívar venezolano', plural ]; diff --git a/packages/common/locales/es.ts b/packages/common/locales/es.ts index a3a819aa6c..0305802304 100644 --- a/packages/common/locales/es.ts +++ b/packages/common/locales/es.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'es', [ @@ -42,9 +47,5 @@ export default [ '{1}, {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/et.ts b/packages/common/locales/et.ts index 502899d144..bd20772c08 100644 --- a/packages/common/locales/et.ts +++ b/packages/common/locales/et.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'et', [ @@ -41,11 +47,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', '×10^', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/eu.ts b/packages/common/locales/eu.ts index e4db17eb10..fc27b401e6 100644 --- a/packages/common/locales/eu.ts +++ b/packages/common/locales/eu.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'eu', [ @@ -61,9 +66,5 @@ export default [ , ], [',', '.', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '% #,##0', '#,##0.00 ¤', '#E0'], '€', 'euroa', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '% #,##0', '#,##0.00 ¤', '#E0'], '€', 'euroa', plural ]; diff --git a/packages/common/locales/ewo.ts b/packages/common/locales/ewo.ts index 6bd0f5ca14..d27a294723 100644 --- a/packages/common/locales/ewo.ts +++ b/packages/common/locales/ewo.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ewo', [ @@ -43,6 +47,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Fəláŋ CFA (BEAC)', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Fəláŋ CFA (BEAC)', plural ]; diff --git a/packages/common/locales/fa-AF.ts b/packages/common/locales/fa-AF.ts index 83154e1dc5..e8780bdd29 100644 --- a/packages/common/locales/fa-AF.ts +++ b/packages/common/locales/fa-AF.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'fa-AF', [['ق', 'ب'], ['ق.ظ.', 'ب.ظ.'], ['قبل\u200cازظهر', 'بعدازظهر']], [['ق.ظ.', 'ب.ظ.'], , ['قبل\u200cازظهر', 'بعدازظهر']], @@ -48,11 +54,5 @@ export default [ '{1}، ساعت {0}', ], ['.', ',', ';', '%', '\u200e+', '\u200e−', 'E', '×', '‰', '∞', 'ناعدد', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '؋', 'افغانی افغانستان', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '؋', 'افغانی افغانستان', plural ]; diff --git a/packages/common/locales/fa.ts b/packages/common/locales/fa.ts index 45d99665f3..d49b5eb092 100644 --- a/packages/common/locales/fa.ts +++ b/packages/common/locales/fa.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'fa', [['ق', 'ب'], ['ق.ظ.', 'ب.ظ.'], ['قبل\u200cازظهر', 'بعدازظهر']], [['ق.ظ.', 'ب.ظ.'], , ['قبل\u200cازظهر', 'بعدازظهر']], @@ -44,11 +50,5 @@ export default [ '{1}، ساعت {0}', ], ['.', ',', ';', '%', '\u200e+', '\u200e−', 'E', '×', '‰', '∞', 'ناعدد', ':'], - ['#,##0.###', '#,##0%', '\u200e¤ #,##0.00', '#E0'], 'ریال', 'ریال ایران', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '\u200e¤ #,##0.00', '#E0'], 'ریال', 'ریال ایران', plural ]; diff --git a/packages/common/locales/ff-CM.ts b/packages/common/locales/ff-CM.ts index c8fad08b11..b75759235b 100644 --- a/packages/common/locales/ff-CM.ts +++ b/packages/common/locales/ff-CM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'ff-CM', [ @@ -39,11 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Mbuuɗi Seefaa BEAC', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Mbuuɗi Seefaa BEAC', plural ]; diff --git a/packages/common/locales/ff-GN.ts b/packages/common/locales/ff-GN.ts index d4a56bda94..85e8c812ba 100644 --- a/packages/common/locales/ff-GN.ts +++ b/packages/common/locales/ff-GN.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'ff-GN', [ @@ -39,12 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FG', 'GNF', function(n: number): - number { - let i = - Math.floor(Math.abs(n)); - if (i === 0 || i === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FG', 'GNF', plural ]; diff --git a/packages/common/locales/ff-MR.ts b/packages/common/locales/ff-MR.ts index 793f4535da..58abda751f 100644 --- a/packages/common/locales/ff-MR.ts +++ b/packages/common/locales/ff-MR.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'ff-MR', [ @@ -39,11 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'UM', 'Ugiyya Muritani', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'UM', 'Ugiyya Muritani', plural ]; diff --git a/packages/common/locales/ff.ts b/packages/common/locales/ff.ts index 9eb0cd8f23..4c1d24ecf1 100644 --- a/packages/common/locales/ff.ts +++ b/packages/common/locales/ff.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'ff', [ @@ -39,11 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'CFA', 'Mbuuɗu Seefaa BCEAO', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'CFA', 'Mbuuɗu Seefaa BCEAO', plural ]; diff --git a/packages/common/locales/fi.ts b/packages/common/locales/fi.ts index e1bf2862ba..7b2746fb9e 100644 --- a/packages/common/locales/fi.ts +++ b/packages/common/locales/fi.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'fi', [ @@ -63,11 +69,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'epäluku', '.'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fil.ts b/packages/common/locales/fil.ts index 7ee5e62508..bc251de447 100644 --- a/packages/common/locales/fil.ts +++ b/packages/common/locales/fil.ts @@ -9,6 +9,16 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && (i === 1 || i === 2 || i === 3) || + v === 0 && !(i % 10 === 4 || i % 10 === 6 || i % 10 === 9) || + !(v === 0) && !(f % 10 === 4 || f % 10 === 6 || f % 10 === 9)) + return 1; + return 5; +} + export default [ 'fil', [ @@ -49,15 +59,5 @@ export default [ '{1} \'nang\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₱', 'Piso ng Pilipinas', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && (i === 1 || i === 2 || i === 3) || - v === 0 && !(i % 10 === 4 || i % 10 === 6 || i % 10 === 9) || - !(v === 0) && !(f % 10 === 4 || f % 10 === 6 || f % 10 === 9)) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₱', 'Piso ng Pilipinas', plural ]; diff --git a/packages/common/locales/fo-DK.ts b/packages/common/locales/fo-DK.ts index ad3e04e4fc..e0a8431030 100644 --- a/packages/common/locales/fo-DK.ts +++ b/packages/common/locales/fo-DK.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'fo-DK', [ @@ -58,10 +63,5 @@ export default [ '{1} \'kl\'. {0}', ], [',', '.', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr.', 'donsk króna', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr.', 'donsk króna', plural ]; diff --git a/packages/common/locales/fo.ts b/packages/common/locales/fo.ts index ad088ad66c..40360854d7 100644 --- a/packages/common/locales/fo.ts +++ b/packages/common/locales/fo.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'fo', [ @@ -58,10 +63,5 @@ export default [ '{1} \'kl\'. {0}', ], [',', '.', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'donsk króna', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'donsk króna', plural ]; diff --git a/packages/common/locales/fr-BE.ts b/packages/common/locales/fr-BE.ts index ccf2769306..c0baf665db 100644 --- a/packages/common/locales/fr-BE.ts +++ b/packages/common/locales/fr-BE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-BE', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-BF.ts b/packages/common/locales/fr-BF.ts index 03a224d160..02a0086aac 100644 --- a/packages/common/locales/fr-BF.ts +++ b/packages/common/locales/fr-BF.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-BF', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', plural ]; diff --git a/packages/common/locales/fr-BI.ts b/packages/common/locales/fr-BI.ts index a140df3a34..79dcb433bb 100644 --- a/packages/common/locales/fr-BI.ts +++ b/packages/common/locales/fr-BI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-BI', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FBu', 'franc burundais', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FBu', 'franc burundais', plural ]; diff --git a/packages/common/locales/fr-BJ.ts b/packages/common/locales/fr-BJ.ts index 3b79186e6e..03b0efd1c0 100644 --- a/packages/common/locales/fr-BJ.ts +++ b/packages/common/locales/fr-BJ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-BJ', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', plural ]; diff --git a/packages/common/locales/fr-BL.ts b/packages/common/locales/fr-BL.ts index 43519ff7cc..6ff5a9e5ca 100644 --- a/packages/common/locales/fr-BL.ts +++ b/packages/common/locales/fr-BL.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-BL', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-CA.ts b/packages/common/locales/fr-CA.ts index 89f66f6b9c..7fe6036324 100644 --- a/packages/common/locales/fr-CA.ts +++ b/packages/common/locales/fr-CA.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-CA', [ @@ -48,11 +54,5 @@ export default [ '{1} \'à\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '$', 'dollar canadien', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '$', 'dollar canadien', plural ]; diff --git a/packages/common/locales/fr-CD.ts b/packages/common/locales/fr-CD.ts index cd85dc45a4..9d00d18d52 100644 --- a/packages/common/locales/fr-CD.ts +++ b/packages/common/locales/fr-CD.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-CD', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FC', 'franc congolais', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FC', 'franc congolais', plural ]; diff --git a/packages/common/locales/fr-CF.ts b/packages/common/locales/fr-CF.ts index d56183c890..433d666aa4 100644 --- a/packages/common/locales/fr-CF.ts +++ b/packages/common/locales/fr-CF.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-CF', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', plural ]; diff --git a/packages/common/locales/fr-CG.ts b/packages/common/locales/fr-CG.ts index 1559b1c7a2..0172a8f84c 100644 --- a/packages/common/locales/fr-CG.ts +++ b/packages/common/locales/fr-CG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-CG', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', plural ]; diff --git a/packages/common/locales/fr-CH.ts b/packages/common/locales/fr-CH.ts index c430c1f713..57cd0c1307 100644 --- a/packages/common/locales/fr-CH.ts +++ b/packages/common/locales/fr-CH.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-CH', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':', '.'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤ ;-#,##0.00 ¤', '#E0'], 'CHF', 'franc suisse', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤ ;-#,##0.00 ¤', '#E0'], 'CHF', 'franc suisse', plural ]; diff --git a/packages/common/locales/fr-CI.ts b/packages/common/locales/fr-CI.ts index 3730f9c24e..afb9502ccd 100644 --- a/packages/common/locales/fr-CI.ts +++ b/packages/common/locales/fr-CI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-CI', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', plural ]; diff --git a/packages/common/locales/fr-CM.ts b/packages/common/locales/fr-CM.ts index 2fae1923e7..f71cc8b721 100644 --- a/packages/common/locales/fr-CM.ts +++ b/packages/common/locales/fr-CM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-CM', [['mat.', 'soir'], , ['matin', 'soir']], , [ @@ -37,11 +43,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', plural ]; diff --git a/packages/common/locales/fr-DJ.ts b/packages/common/locales/fr-DJ.ts index 2782cab61e..a928b72b91 100644 --- a/packages/common/locales/fr-DJ.ts +++ b/packages/common/locales/fr-DJ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-DJ', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Fdj', 'franc djiboutien', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Fdj', 'franc djiboutien', plural ]; diff --git a/packages/common/locales/fr-DZ.ts b/packages/common/locales/fr-DZ.ts index c562cc6f86..08fe4e7740 100644 --- a/packages/common/locales/fr-DZ.ts +++ b/packages/common/locales/fr-DZ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-DZ', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'DA', 'dinar algérien', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'DA', 'dinar algérien', plural ]; diff --git a/packages/common/locales/fr-GA.ts b/packages/common/locales/fr-GA.ts index d57236810d..b1d92b1288 100644 --- a/packages/common/locales/fr-GA.ts +++ b/packages/common/locales/fr-GA.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-GA', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', plural ]; diff --git a/packages/common/locales/fr-GF.ts b/packages/common/locales/fr-GF.ts index 86db595050..3fcdc3cdfc 100644 --- a/packages/common/locales/fr-GF.ts +++ b/packages/common/locales/fr-GF.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-GF', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-GN.ts b/packages/common/locales/fr-GN.ts index fbb2ceb16e..9f954f6a17 100644 --- a/packages/common/locales/fr-GN.ts +++ b/packages/common/locales/fr-GN.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-GN', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FG', 'franc guinéen', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FG', 'franc guinéen', plural ]; diff --git a/packages/common/locales/fr-GP.ts b/packages/common/locales/fr-GP.ts index 955e18eb77..9978bac96c 100644 --- a/packages/common/locales/fr-GP.ts +++ b/packages/common/locales/fr-GP.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-GP', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-GQ.ts b/packages/common/locales/fr-GQ.ts index 8c4f303fdd..c369bd4e13 100644 --- a/packages/common/locales/fr-GQ.ts +++ b/packages/common/locales/fr-GQ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-GQ', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', plural ]; diff --git a/packages/common/locales/fr-HT.ts b/packages/common/locales/fr-HT.ts index cb610213b9..c758517e6d 100644 --- a/packages/common/locales/fr-HT.ts +++ b/packages/common/locales/fr-HT.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-HT', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'G', 'gourde haïtienne', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'G', 'gourde haïtienne', plural ]; diff --git a/packages/common/locales/fr-KM.ts b/packages/common/locales/fr-KM.ts index 94f13bd337..38328d9044 100644 --- a/packages/common/locales/fr-KM.ts +++ b/packages/common/locales/fr-KM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-KM', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CF', 'franc comorien', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CF', 'franc comorien', plural ]; diff --git a/packages/common/locales/fr-LU.ts b/packages/common/locales/fr-LU.ts index e256de1335..c37aef6660 100644 --- a/packages/common/locales/fr-LU.ts +++ b/packages/common/locales/fr-LU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-LU', [ @@ -42,11 +48,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-MA.ts b/packages/common/locales/fr-MA.ts index 50dae2f547..2991ebd075 100644 --- a/packages/common/locales/fr-MA.ts +++ b/packages/common/locales/fr-MA.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-MA', [['AM', 'PM'], , ['a.m.', 'p.m.']], [ @@ -41,11 +47,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'MAD', 'dirham marocain', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'MAD', 'dirham marocain', plural ]; diff --git a/packages/common/locales/fr-MC.ts b/packages/common/locales/fr-MC.ts index a0ff82b1d6..d78c4b74e7 100644 --- a/packages/common/locales/fr-MC.ts +++ b/packages/common/locales/fr-MC.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-MC', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-MF.ts b/packages/common/locales/fr-MF.ts index 094d4015f2..beadce2ced 100644 --- a/packages/common/locales/fr-MF.ts +++ b/packages/common/locales/fr-MF.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-MF', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-MG.ts b/packages/common/locales/fr-MG.ts index 113d311a7f..0f7f1b69e6 100644 --- a/packages/common/locales/fr-MG.ts +++ b/packages/common/locales/fr-MG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-MG', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Ar', 'ariary malgache', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Ar', 'ariary malgache', plural ]; diff --git a/packages/common/locales/fr-ML.ts b/packages/common/locales/fr-ML.ts index 190c343636..ab485ef8d5 100644 --- a/packages/common/locales/fr-ML.ts +++ b/packages/common/locales/fr-ML.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-ML', [ @@ -42,11 +48,5 @@ export default [ '{1} \'à\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', plural ]; diff --git a/packages/common/locales/fr-MQ.ts b/packages/common/locales/fr-MQ.ts index f6a30ef8ea..0604e08c0e 100644 --- a/packages/common/locales/fr-MQ.ts +++ b/packages/common/locales/fr-MQ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-MQ', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-MR.ts b/packages/common/locales/fr-MR.ts index 44bca3d3a3..7886ce9036 100644 --- a/packages/common/locales/fr-MR.ts +++ b/packages/common/locales/fr-MR.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-MR', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'UM', 'ouguiya mauritanien', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'UM', 'ouguiya mauritanien', plural ]; diff --git a/packages/common/locales/fr-MU.ts b/packages/common/locales/fr-MU.ts index 94de651a36..442a6adcda 100644 --- a/packages/common/locales/fr-MU.ts +++ b/packages/common/locales/fr-MU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-MU', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Rs', 'roupie mauricienne', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Rs', 'roupie mauricienne', plural ]; diff --git a/packages/common/locales/fr-NC.ts b/packages/common/locales/fr-NC.ts index 42bbe923b5..fa92740924 100644 --- a/packages/common/locales/fr-NC.ts +++ b/packages/common/locales/fr-NC.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-NC', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFP', 'franc CFP', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFP', 'franc CFP', plural ]; diff --git a/packages/common/locales/fr-NE.ts b/packages/common/locales/fr-NE.ts index 592f5ee247..da631ecc12 100644 --- a/packages/common/locales/fr-NE.ts +++ b/packages/common/locales/fr-NE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-NE', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', plural ]; diff --git a/packages/common/locales/fr-PF.ts b/packages/common/locales/fr-PF.ts index ca8d172b7b..d82cd7df08 100644 --- a/packages/common/locales/fr-PF.ts +++ b/packages/common/locales/fr-PF.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-PF', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFP', 'franc CFP', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFP', 'franc CFP', plural ]; diff --git a/packages/common/locales/fr-PM.ts b/packages/common/locales/fr-PM.ts index 471e5d1017..99b12ec421 100644 --- a/packages/common/locales/fr-PM.ts +++ b/packages/common/locales/fr-PM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-PM', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-RE.ts b/packages/common/locales/fr-RE.ts index 4ed877bccd..e3d54e6722 100644 --- a/packages/common/locales/fr-RE.ts +++ b/packages/common/locales/fr-RE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-RE', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr-RW.ts b/packages/common/locales/fr-RW.ts index 2e7172d0d5..1300e2f252 100644 --- a/packages/common/locales/fr-RW.ts +++ b/packages/common/locales/fr-RW.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-RW', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'RF', 'franc rwandais', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'RF', 'franc rwandais', plural ]; diff --git a/packages/common/locales/fr-SC.ts b/packages/common/locales/fr-SC.ts index 3c885b575f..db6035cda9 100644 --- a/packages/common/locales/fr-SC.ts +++ b/packages/common/locales/fr-SC.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-SC', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'SR', 'roupie des Seychelles', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'SR', 'roupie des Seychelles', plural ]; diff --git a/packages/common/locales/fr-SN.ts b/packages/common/locales/fr-SN.ts index a361613722..ecc78490b1 100644 --- a/packages/common/locales/fr-SN.ts +++ b/packages/common/locales/fr-SN.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-SN', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', plural ]; diff --git a/packages/common/locales/fr-SY.ts b/packages/common/locales/fr-SY.ts index 929a148260..3f80b48e19 100644 --- a/packages/common/locales/fr-SY.ts +++ b/packages/common/locales/fr-SY.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-SY', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'LS', 'livre syrienne', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'LS', 'livre syrienne', plural ]; diff --git a/packages/common/locales/fr-TD.ts b/packages/common/locales/fr-TD.ts index 22e364337c..2106fd4ec6 100644 --- a/packages/common/locales/fr-TD.ts +++ b/packages/common/locales/fr-TD.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-TD', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFA', 'franc CFA (BEAC)', plural ]; diff --git a/packages/common/locales/fr-TG.ts b/packages/common/locales/fr-TG.ts index 9644f26330..a51281b5b5 100644 --- a/packages/common/locales/fr-TG.ts +++ b/packages/common/locales/fr-TG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-TG', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CFA', 'franc CFA (BCEAO)', plural ]; diff --git a/packages/common/locales/fr-TN.ts b/packages/common/locales/fr-TN.ts index 9653f0084c..d0117aa488 100644 --- a/packages/common/locales/fr-TN.ts +++ b/packages/common/locales/fr-TN.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-TN', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'DT', 'dinar tunisien', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'DT', 'dinar tunisien', plural ]; diff --git a/packages/common/locales/fr-VU.ts b/packages/common/locales/fr-VU.ts index e11bff72cb..5a4bff3843 100644 --- a/packages/common/locales/fr-VU.ts +++ b/packages/common/locales/fr-VU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-VU', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'VT', 'vatu vanuatuan', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'VT', 'vatu vanuatuan', plural ]; diff --git a/packages/common/locales/fr-WF.ts b/packages/common/locales/fr-WF.ts index 4390a251b1..8e68cf38ca 100644 --- a/packages/common/locales/fr-WF.ts +++ b/packages/common/locales/fr-WF.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-WF', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFP', 'franc CFP', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'FCFP', 'franc CFP', plural ]; diff --git a/packages/common/locales/fr-YT.ts b/packages/common/locales/fr-YT.ts index fa8562dba9..c6c37013d5 100644 --- a/packages/common/locales/fr-YT.ts +++ b/packages/common/locales/fr-YT.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr-YT', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fr.ts b/packages/common/locales/fr.ts index 4fdfd5b3aa..0956222889 100644 --- a/packages/common/locales/fr.ts +++ b/packages/common/locales/fr.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'fr', [ @@ -42,11 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fur.ts b/packages/common/locales/fur.ts index adeb735ff1..d270b4d1c8 100644 --- a/packages/common/locales/fur.ts +++ b/packages/common/locales/fur.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'fur', [ @@ -43,9 +48,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '€', 'euro', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/fy.ts b/packages/common/locales/fy.ts index b407ed1697..1c1100ef18 100644 --- a/packages/common/locales/fy.ts +++ b/packages/common/locales/fy.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'fy', [ @@ -39,11 +45,5 @@ export default [ '{1} \'om\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ #,##0.00-', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ #,##0.00-', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/ga.ts b/packages/common/locales/ga.ts index 2363a44aa5..8ff9f3c41f 100644 --- a/packages/common/locales/ga.ts +++ b/packages/common/locales/ga.ts @@ -9,6 +9,14 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + if (n === 2) return 2; + if (n === Math.floor(n) && n >= 3 && n <= 6) return 3; + if (n === Math.floor(n) && n >= 7 && n <= 10) return 4; + return 5; +} + export default [ 'ga', [ @@ -49,13 +57,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'Euro', - function(n: number): - number { - if (n === 1) return 1; - if (n === 2) return 2; - if (n === Math.floor(n) && n >= 3 && n <= 6) return 3; - if (n === Math.floor(n) && n >= 7 && n <= 10) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/gd.ts b/packages/common/locales/gd.ts index a2b0613870..11ab9294a7 100644 --- a/packages/common/locales/gd.ts +++ b/packages/common/locales/gd.ts @@ -9,6 +9,13 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1 || n === 11) return 1; + if (n === 2 || n === 12) return 2; + if (n === Math.floor(n) && (n >= 3 && n <= 10 || n >= 13 && n <= 19)) return 3; + return 5; +} + export default [ 'gd', [ @@ -54,12 +61,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'Punnd Sasannach', - function(n: number): - number { - if (n === 1 || n === 11) return 1; - if (n === 2 || n === 12) return 2; - if (n === Math.floor(n) && (n >= 3 && n <= 10 || n >= 13 && n <= 19)) return 3; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'Punnd Sasannach', plural ]; diff --git a/packages/common/locales/gl.ts b/packages/common/locales/gl.ts index fcdd23c281..37082eb0fb 100644 --- a/packages/common/locales/gl.ts +++ b/packages/common/locales/gl.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'gl', [ @@ -58,11 +64,5 @@ export default [ '{0} \'do\' {1}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/gsw-FR.ts b/packages/common/locales/gsw-FR.ts index e5960e0d7f..2702220b26 100644 --- a/packages/common/locales/gsw-FR.ts +++ b/packages/common/locales/gsw-FR.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'gsw-FR', [['vorm.', 'nam.'], , ['am Vormittag', 'am Namittag']], [['vorm.', 'nam.'], , ['Vormittag', 'Namittag']], @@ -39,9 +44,5 @@ export default [ , ], ['.', '’', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/gsw-LI.ts b/packages/common/locales/gsw-LI.ts index 229f8a3421..b0042385fa 100644 --- a/packages/common/locales/gsw-LI.ts +++ b/packages/common/locales/gsw-LI.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'gsw-LI', [['vorm.', 'nam.'], , ['am Vormittag', 'am Namittag']], [['vorm.', 'nam.'], , ['Vormittag', 'Namittag']], @@ -39,10 +44,5 @@ export default [ , ], ['.', '’', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CHF', 'Schwiizer Franke', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CHF', 'Schwiizer Franke', plural ]; diff --git a/packages/common/locales/gsw.ts b/packages/common/locales/gsw.ts index 4c9a42f6ac..9f09a2ab34 100644 --- a/packages/common/locales/gsw.ts +++ b/packages/common/locales/gsw.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'gsw', [['vorm.', 'nam.'], , ['am Vormittag', 'am Namittag']], [['vorm.', 'nam.'], , ['Vormittag', 'Namittag']], @@ -39,10 +44,5 @@ export default [ , ], ['.', '’', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CHF', 'Schwiizer Franke', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CHF', 'Schwiizer Franke', plural ]; diff --git a/packages/common/locales/gu.ts b/packages/common/locales/gu.ts index dcf78ea53c..8037678b88 100644 --- a/packages/common/locales/gu.ts +++ b/packages/common/locales/gu.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'gu', [ @@ -60,10 +66,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '¤#,##,##0.00', '[#E0]'], '₹', - 'ભારતીય રૂપિયા', function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + 'ભારતીય રૂપિયા', plural ]; diff --git a/packages/common/locales/guz.ts b/packages/common/locales/guz.ts index 37232d3a95..f5c57a971b 100644 --- a/packages/common/locales/guz.ts +++ b/packages/common/locales/guz.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'guz', [['Ma', 'Mo'], , ['Mambia', 'Mog']], [ @@ -38,6 +42,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', plural ]; diff --git a/packages/common/locales/gv.ts b/packages/common/locales/gv.ts index 96422a2c5f..fe69afe674 100644 --- a/packages/common/locales/gv.ts +++ b/packages/common/locales/gv.ts @@ -9,6 +9,17 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (v === 0 && i % 10 === 1) return 1; + if (v === 0 && i % 10 === 2) return 2; + if (v === 0 && + (i % 100 === 0 || i % 100 === 20 || i % 100 === 40 || i % 100 === 60 || i % 100 === 80)) + return 3; + if (!(v === 0)) return 4; + return 5; +} + export default [ 'gv', [ @@ -46,16 +57,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'GBP', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (v === 0 && i % 10 === 1) return 1; - if (v === 0 && i % 10 === 2) return 2; - if (v === 0 && - (i % 100 === 0 || i % 100 === 20 || i % 100 === 40 || i % 100 === 60 || i % 100 === 80)) - return 3; - if (!(v === 0)) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'GBP', plural ]; diff --git a/packages/common/locales/ha-GH.ts b/packages/common/locales/ha-GH.ts index e8d2ba3fa0..8326a20ea9 100644 --- a/packages/common/locales/ha-GH.ts +++ b/packages/common/locales/ha-GH.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ha-GH', [ @@ -39,9 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'GH₵', 'GHS', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'GH₵', 'GHS', plural ]; diff --git a/packages/common/locales/ha-NE.ts b/packages/common/locales/ha-NE.ts index 4657c3a8f3..82fa36325b 100644 --- a/packages/common/locales/ha-NE.ts +++ b/packages/common/locales/ha-NE.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ha-NE', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CFA', 'Kuɗin Sefa na Afirka Ta Yamma', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CFA', 'Kuɗin Sefa na Afirka Ta Yamma', plural ]; diff --git a/packages/common/locales/ha.ts b/packages/common/locales/ha.ts index 24a5de8041..4f2067f04b 100644 --- a/packages/common/locales/ha.ts +++ b/packages/common/locales/ha.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ha', [ @@ -39,9 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₦', 'Naira', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₦', 'Naira', plural ]; diff --git a/packages/common/locales/haw.ts b/packages/common/locales/haw.ts index c1ea5beb8e..00f79c3329 100644 --- a/packages/common/locales/haw.ts +++ b/packages/common/locales/haw.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'haw', [ @@ -46,9 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'USD', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'USD', plural ]; diff --git a/packages/common/locales/he.ts b/packages/common/locales/he.ts index bac170fa9e..e159a6143d 100644 --- a/packages/common/locales/he.ts +++ b/packages/common/locales/he.ts @@ -9,6 +9,14 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + if (i === 2 && v === 0) return 2; + if (v === 0 && !(n >= 0 && n <= 10) && n % 10 === 0) return 4; + return 5; +} + export default [ 'he', [ @@ -53,12 +61,5 @@ export default [ ], ['.', ',', ';', '%', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '\u200f#,##0.00 ¤;\u200f-#,##0.00 ¤', '#E0'], '₪', 'שקל חדש', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - if (i === 2 && v === 0) return 2; - if (v === 0 && !(n >= 0 && n <= 10) && n % 10 === 0) return 4; - return 5; - } + plural ]; diff --git a/packages/common/locales/hi.ts b/packages/common/locales/hi.ts index 33ccd1ed16..fe0f9aafcc 100644 --- a/packages/common/locales/hi.ts +++ b/packages/common/locales/hi.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'hi', [ @@ -58,10 +64,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '¤#,##,##0.00', '[#E0]'], '₹', - 'भारतीय रुपया', function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + 'भारतीय रुपया', plural ]; diff --git a/packages/common/locales/hr-BA.ts b/packages/common/locales/hr-BA.ts index ac11e252ae..f38f231e1c 100644 --- a/packages/common/locales/hr-BA.ts +++ b/packages/common/locales/hr-BA.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14) || + f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && + !(f % 100 >= 12 && f % 100 <= 14)) + return 3; + return 5; +} + export default [ 'hr-BA', [ @@ -47,18 +59,5 @@ export default [ '{1} \'u\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'KM', 'konvertibilna marka', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) - return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14) || - f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && - !(f % 100 >= 12 && f % 100 <= 14)) - return 3; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'KM', 'konvertibilna marka', plural ]; diff --git a/packages/common/locales/hr.ts b/packages/common/locales/hr.ts index 3f6c194d0f..1d869af233 100644 --- a/packages/common/locales/hr.ts +++ b/packages/common/locales/hr.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14) || + f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && + !(f % 100 >= 12 && f % 100 <= 14)) + return 3; + return 5; +} + export default [ 'hr', [ @@ -51,18 +63,5 @@ export default [ '{1} \'u\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'HRK', 'hrvatska kuna', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) - return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14) || - f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && - !(f % 100 >= 12 && f % 100 <= 14)) - return 3; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'HRK', 'hrvatska kuna', plural ]; diff --git a/packages/common/locales/hsb.ts b/packages/common/locales/hsb.ts index 3182511667..987ef9b4c0 100644 --- a/packages/common/locales/hsb.ts +++ b/packages/common/locales/hsb.ts @@ -9,6 +9,17 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 100 === 1 || f % 100 === 1) return 1; + if (v === 0 && i % 100 === 2 || f % 100 === 2) return 2; + if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 || + f % 100 === Math.floor(f % 100) && f % 100 >= 3 && f % 100 <= 4) + return 3; + return 5; +} + export default [ 'hsb', [ @@ -53,16 +64,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '·', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 100 === 1 || f % 100 === 1) return 1; - if (v === 0 && i % 100 === 2 || f % 100 === 2) return 2; - if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 || - f % 100 === Math.floor(f % 100) && f % 100 >= 3 && f % 100 <= 4) - return 3; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/hu.ts b/packages/common/locales/hu.ts index 275cdaf242..69a22a3955 100644 --- a/packages/common/locales/hu.ts +++ b/packages/common/locales/hu.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'hu', [ @@ -42,10 +47,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'Ft', 'magyar forint', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'Ft', 'magyar forint', plural ]; diff --git a/packages/common/locales/hy.ts b/packages/common/locales/hy.ts index c16d1f0dde..f8fbfbd3a7 100644 --- a/packages/common/locales/hy.ts +++ b/packages/common/locales/hy.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'hy', [ @@ -62,11 +68,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'ՈչԹ', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '֏', 'հայկական դրամ', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '֏', 'հայկական դրամ', plural ]; diff --git a/packages/common/locales/id.ts b/packages/common/locales/id.ts index 14a675ea17..d27b848ab6 100644 --- a/packages/common/locales/id.ts +++ b/packages/common/locales/id.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'id', [ @@ -39,6 +43,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', '.'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Rp', 'Rupiah Indonesia', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Rp', 'Rupiah Indonesia', plural ]; diff --git a/packages/common/locales/ig.ts b/packages/common/locales/ig.ts index b9b735b582..aa427b4451 100644 --- a/packages/common/locales/ig.ts +++ b/packages/common/locales/ig.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ig', [ @@ -40,6 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₦', 'Naịra', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₦', 'Naịra', plural ]; diff --git a/packages/common/locales/ii.ts b/packages/common/locales/ii.ts index 2244772cdb..30f1df0790 100644 --- a/packages/common/locales/ii.ts +++ b/packages/common/locales/ii.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ii', [ @@ -43,6 +47,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '¥', 'CNY', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '¥', 'CNY', plural ]; diff --git a/packages/common/locales/is.ts b/packages/common/locales/is.ts index b0c6dd3750..1d4a81ecb2 100644 --- a/packages/common/locales/is.ts +++ b/packages/common/locales/is.ts @@ -9,6 +9,13 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), + t = parseInt(n.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0; + if (t === 0 && i % 10 === 1 && !(i % 100 === 11) || !(t === 0)) return 1; + return 5; +} + export default [ 'is', [ @@ -49,12 +56,5 @@ export default [ '{1} \'kl\'. {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'ISK', 'íslensk króna', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), - t = parseInt(n.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0; - if (t === 0 && i % 10 === 1 && !(i % 100 === 11) || !(t === 0)) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'ISK', 'íslensk króna', plural ]; diff --git a/packages/common/locales/it-CH.ts b/packages/common/locales/it-CH.ts index f05b4709f1..b196c8822d 100644 --- a/packages/common/locales/it-CH.ts +++ b/packages/common/locales/it-CH.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'it-CH', [ @@ -39,11 +45,5 @@ export default [ '{1} {0}', ], ['.', '’', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00;¤-#,##0.00', '#E0'], 'CHF', 'franco svizzero', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00;¤-#,##0.00', '#E0'], 'CHF', 'franco svizzero', plural ]; diff --git a/packages/common/locales/it-SM.ts b/packages/common/locales/it-SM.ts index a0c6513088..a223bcedb1 100644 --- a/packages/common/locales/it-SM.ts +++ b/packages/common/locales/it-SM.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'it-SM', [ @@ -39,11 +45,5 @@ export default [ '{1} {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/it-VA.ts b/packages/common/locales/it-VA.ts index 85f7ee5297..ea5ac1443c 100644 --- a/packages/common/locales/it-VA.ts +++ b/packages/common/locales/it-VA.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'it-VA', [ @@ -39,11 +45,5 @@ export default [ '{1} {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/it.ts b/packages/common/locales/it.ts index a9d3ae5c05..4a18b847f9 100644 --- a/packages/common/locales/it.ts +++ b/packages/common/locales/it.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'it', [ @@ -39,11 +45,5 @@ export default [ '{1} {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/ja.ts b/packages/common/locales/ja.ts index f3ece034ef..5029802a5d 100644 --- a/packages/common/locales/ja.ts +++ b/packages/common/locales/ja.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ja', [ @@ -42,6 +46,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', '日本円', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', '日本円', plural ]; diff --git a/packages/common/locales/jgo.ts b/packages/common/locales/jgo.ts index 9d19380474..7be657c360 100644 --- a/packages/common/locales/jgo.ts +++ b/packages/common/locales/jgo.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'jgo', [ @@ -50,9 +55,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'Fɛlâŋ', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'Fɛlâŋ', plural ]; diff --git a/packages/common/locales/jmc.ts b/packages/common/locales/jmc.ts index 73a0d9e598..f3aa031adb 100644 --- a/packages/common/locales/jmc.ts +++ b/packages/common/locales/jmc.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'jmc', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Shilingi ya Tanzania', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Shilingi ya Tanzania', plural ]; diff --git a/packages/common/locales/ka.ts b/packages/common/locales/ka.ts index 60f832486d..4c9a7a1c5e 100644 --- a/packages/common/locales/ka.ts +++ b/packages/common/locales/ka.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ka', [ @@ -60,9 +65,5 @@ export default [ 'არ არის რიცხვი', ':' ], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '₾', 'ქართული ლარი', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + plural ]; diff --git a/packages/common/locales/kab.ts b/packages/common/locales/kab.ts index a1cda34a3d..5dc4e0cfa8 100644 --- a/packages/common/locales/kab.ts +++ b/packages/common/locales/kab.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || i === 1) return 1; + return 5; +} + export default [ 'kab', [ @@ -39,11 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'DA', 'Adinar Azzayri', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || i === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'DA', 'Adinar Azzayri', plural ]; diff --git a/packages/common/locales/kam.ts b/packages/common/locales/kam.ts index b70186ff94..92329ac41c 100644 --- a/packages/common/locales/kam.ts +++ b/packages/common/locales/kam.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'kam', [ @@ -43,6 +47,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Silingi ya Kenya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Silingi ya Kenya', plural ]; diff --git a/packages/common/locales/kde.ts b/packages/common/locales/kde.ts index dfee0ad69a..624c9d7637 100644 --- a/packages/common/locales/kde.ts +++ b/packages/common/locales/kde.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'kde', [ @@ -44,6 +48,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Shilingi ya Tanzania', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Shilingi ya Tanzania', plural ]; diff --git a/packages/common/locales/kea.ts b/packages/common/locales/kea.ts index 64df5c8ae5..a131814dc9 100644 --- a/packages/common/locales/kea.ts +++ b/packages/common/locales/kea.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'kea', [ @@ -46,6 +50,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '​', 'Skudu Kabuverdianu', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '​', 'Skudu Kabuverdianu', plural ]; diff --git a/packages/common/locales/khq.ts b/packages/common/locales/khq.ts index 2fb515fb89..3e78467a6a 100644 --- a/packages/common/locales/khq.ts +++ b/packages/common/locales/khq.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'khq', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'CFA', 'CFA Fraŋ (BCEAO)', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'CFA', 'CFA Fraŋ (BCEAO)', plural ]; diff --git a/packages/common/locales/ki.ts b/packages/common/locales/ki.ts index 22b5d83247..624fb98d3b 100644 --- a/packages/common/locales/ki.ts +++ b/packages/common/locales/ki.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ki', [ @@ -40,6 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Ciringi ya Kenya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Ciringi ya Kenya', plural ]; diff --git a/packages/common/locales/kk.ts b/packages/common/locales/kk.ts index 9fb95f23a7..02e8885c09 100644 --- a/packages/common/locales/kk.ts +++ b/packages/common/locales/kk.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'kk', [ @@ -70,10 +75,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'сан емес', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '₸', 'Қазақстан теңгесі', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '₸', 'Қазақстан теңгесі', plural ]; diff --git a/packages/common/locales/kkj.ts b/packages/common/locales/kkj.ts index 976245fcfc..cd4bb256b5 100644 --- a/packages/common/locales/kkj.ts +++ b/packages/common/locales/kkj.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'kkj', [ @@ -46,9 +51,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'Franc CFA', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'Franc CFA', plural ]; diff --git a/packages/common/locales/kl.ts b/packages/common/locales/kl.ts index 8358937145..53cc4131c7 100644 --- a/packages/common/locales/kl.ts +++ b/packages/common/locales/kl.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'kl', [ @@ -46,10 +51,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤#,##0.00;¤-#,##0.00', '#E0'], 'kr.', 'DKK', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤#,##0.00;¤-#,##0.00', '#E0'], 'kr.', 'DKK', plural ]; diff --git a/packages/common/locales/kln.ts b/packages/common/locales/kln.ts index b75d0a5645..fb401ae64f 100644 --- a/packages/common/locales/kln.ts +++ b/packages/common/locales/kln.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'kln', [['krn', 'koosk'], , ['karoon', 'kooskoliny']], [ @@ -38,6 +42,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Silingitab ya Kenya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Silingitab ya Kenya', plural ]; diff --git a/packages/common/locales/km.ts b/packages/common/locales/km.ts index 804f6940be..8ffa3bff32 100644 --- a/packages/common/locales/km.ts +++ b/packages/common/locales/km.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'km', [ @@ -49,6 +53,5 @@ export default [ '{1} នៅ​ម៉ោង {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], '៛', 'រៀល​កម្ពុជា', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], '៛', 'រៀល​កម្ពុជា', plural ]; diff --git a/packages/common/locales/kn.ts b/packages/common/locales/kn.ts index f2762417f0..31fc26987e 100644 --- a/packages/common/locales/kn.ts +++ b/packages/common/locales/kn.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'kn', [ @@ -82,10 +88,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₹', 'ಭಾರತೀಯ ರೂಪಾಯಿ', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + plural ]; diff --git a/packages/common/locales/ko-KP.ts b/packages/common/locales/ko-KP.ts index f211d7b07b..f1d2e5c4be 100644 --- a/packages/common/locales/ko-KP.ts +++ b/packages/common/locales/ko-KP.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ko-KP', [['AM', 'PM'], , ['오전', '오후']], , [ @@ -34,5 +38,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'KPW', '조선 민주주의 인민 공화국 원', - function(n: number): number { return 5;} + plural ]; diff --git a/packages/common/locales/ko.ts b/packages/common/locales/ko.ts index 71a5d046c0..6ae53254f6 100644 --- a/packages/common/locales/ko.ts +++ b/packages/common/locales/ko.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ko', [['AM', 'PM'], , ['오전', '오후']], , [ @@ -33,6 +37,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₩', '대한민국 원', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₩', '대한민국 원', plural ]; diff --git a/packages/common/locales/kok.ts b/packages/common/locales/kok.ts index 6068081323..0d06b27281 100644 --- a/packages/common/locales/kok.ts +++ b/packages/common/locales/kok.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'kok', [ @@ -51,6 +55,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'INR', - function(n: number): number { return 5;} + ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'INR', plural ]; diff --git a/packages/common/locales/ks.ts b/packages/common/locales/ks.ts index 03fb75a44a..f878ea0390 100644 --- a/packages/common/locales/ks.ts +++ b/packages/common/locales/ks.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ks', [ @@ -49,9 +54,5 @@ export default [ ], ['.', ',', ';', '%', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'ہِندُستٲنۍ رۄپَے', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + plural ]; diff --git a/packages/common/locales/ksb.ts b/packages/common/locales/ksb.ts index 58eb8c1821..ea49e380d6 100644 --- a/packages/common/locales/ksb.ts +++ b/packages/common/locales/ksb.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ksb', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'TSh', 'shilingi ya Tanzania', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'TSh', 'shilingi ya Tanzania', plural ]; diff --git a/packages/common/locales/ksf.ts b/packages/common/locales/ksf.ts index 8d70a30475..ff78069bd9 100644 --- a/packages/common/locales/ksf.ts +++ b/packages/common/locales/ksf.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ksf', [ @@ -41,6 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'fráŋ', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'fráŋ', plural ]; diff --git a/packages/common/locales/ksh.ts b/packages/common/locales/ksh.ts index 16a172542a..66aae3b81f 100644 --- a/packages/common/locales/ksh.ts +++ b/packages/common/locales/ksh.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 0) return 0; + if (n === 1) return 1; + return 5; +} + export default [ 'ksh', [['v.M.', 'n.M.'], , ['Uhr vörmiddaachs', 'Uhr nommendaachs']], [['v.M.', 'n.M.'], , ['Vörmeddaach', 'Nommendaach']], @@ -46,10 +52,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', '×10^', '×', '‰', '∞', '¤¤¤', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', function(n: number): - number { - if (n === 0) return 0; - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/kw.ts b/packages/common/locales/kw.ts index f5e38dadc5..6c8d12e552 100644 --- a/packages/common/locales/kw.ts +++ b/packages/common/locales/kw.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + if (n === 2) return 2; + return 5; +} + export default [ 'kw', [ @@ -43,10 +49,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'GBP', function(n: number): - number { - if (n === 1) return 1; - if (n === 2) return 2; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'GBP', plural ]; diff --git a/packages/common/locales/ky.ts b/packages/common/locales/ky.ts index acfa3c9cf5..633f88cd18 100644 --- a/packages/common/locales/ky.ts +++ b/packages/common/locales/ky.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ky', [['тң', 'тк'], , ['таңкы', 'түштөн кийинки']], , [ @@ -65,10 +70,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'сан эмес', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'сом', 'Кыргызстан сому', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'сом', 'Кыргызстан сому', plural ]; diff --git a/packages/common/locales/lag.ts b/packages/common/locales/lag.ts index 230001662e..94a856ca1d 100644 --- a/packages/common/locales/lag.ts +++ b/packages/common/locales/lag.ts @@ -9,6 +9,13 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (n === 0) return 0; + if ((i === 0 || i === 1) && !(n === 0)) return 1; + return 5; +} + export default [ 'lag', [ @@ -43,12 +50,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'TSh', 'Shilíingi ya Taansanía', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (n === 0) return 0; - if ((i === 0 || i === 1) && !(n === 0)) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'TSh', 'Shilíingi ya Taansanía', plural ]; diff --git a/packages/common/locales/lb.ts b/packages/common/locales/lb.ts index cce44f3c66..f8209680f4 100644 --- a/packages/common/locales/lb.ts +++ b/packages/common/locales/lb.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'lb', [ @@ -60,9 +65,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/lg.ts b/packages/common/locales/lg.ts index fc2e4cca6a..3c78db2e6d 100644 --- a/packages/common/locales/lg.ts +++ b/packages/common/locales/lg.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'lg', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'USh', 'Silingi eya Yuganda', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'USh', 'Silingi eya Yuganda', plural ]; diff --git a/packages/common/locales/lkt.ts b/packages/common/locales/lkt.ts index 423ce2d7a2..1900596904 100644 --- a/packages/common/locales/lkt.ts +++ b/packages/common/locales/lkt.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'lkt', [ @@ -53,6 +57,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '$', 'USD', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '$', 'USD', plural ]; diff --git a/packages/common/locales/ln-AO.ts b/packages/common/locales/ln-AO.ts index ea0d610932..d6660e156a 100644 --- a/packages/common/locales/ln-AO.ts +++ b/packages/common/locales/ln-AO.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'ln-AO', [ @@ -44,10 +49,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'Kz', 'Kwanza ya Angóla', - function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'Kz', 'Kwanza ya Angóla', plural ]; diff --git a/packages/common/locales/ln-CF.ts b/packages/common/locales/ln-CF.ts index c049b0e22f..47fb6bc303 100644 --- a/packages/common/locales/ln-CF.ts +++ b/packages/common/locales/ln-CF.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'ln-CF', [ @@ -44,10 +49,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Falánga CFA BEAC', - function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Falánga CFA BEAC', plural ]; diff --git a/packages/common/locales/ln-CG.ts b/packages/common/locales/ln-CG.ts index e4c1ddb426..e19fb1cfd7 100644 --- a/packages/common/locales/ln-CG.ts +++ b/packages/common/locales/ln-CG.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'ln-CG', [ @@ -44,10 +49,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Falánga CFA BEAC', - function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Falánga CFA BEAC', plural ]; diff --git a/packages/common/locales/ln.ts b/packages/common/locales/ln.ts index ee7f50ff18..6dd5a59ebe 100644 --- a/packages/common/locales/ln.ts +++ b/packages/common/locales/ln.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'ln', [ @@ -44,10 +49,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FC', 'Falánga ya Kongó', - function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FC', 'Falánga ya Kongó', plural ]; diff --git a/packages/common/locales/lo.ts b/packages/common/locales/lo.ts index 7bbcb2c91e..1195f2560b 100644 --- a/packages/common/locales/lo.ts +++ b/packages/common/locales/lo.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'lo', [ @@ -61,6 +65,5 @@ export default [ ',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'ບໍ່​ແມ່ນ​ໂຕ​ເລກ', ':' ], - ['#,##0.###', '#,##0%', '¤#,##0.00;¤-#,##0.00', '#'], '₭', 'ລາວ ກີບ', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00;¤-#,##0.00', '#'], '₭', 'ລາວ ກີບ', plural ]; diff --git a/packages/common/locales/lrc-IQ.ts b/packages/common/locales/lrc-IQ.ts index 15a1761465..1b4ddb6c8a 100644 --- a/packages/common/locales/lrc-IQ.ts +++ b/packages/common/locales/lrc-IQ.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'lrc-IQ', [ @@ -42,6 +46,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ع.\u200f', 'IQD', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'د.ع.\u200f', 'IQD', plural ]; diff --git a/packages/common/locales/lrc.ts b/packages/common/locales/lrc.ts index 16048a27f5..e1582502b8 100644 --- a/packages/common/locales/lrc.ts +++ b/packages/common/locales/lrc.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'lrc', [ @@ -42,6 +46,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'IRR', 'IRR', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'IRR', 'IRR', plural ]; diff --git a/packages/common/locales/lt.ts b/packages/common/locales/lt.ts index 0b3a2511e0..d507de2b14 100644 --- a/packages/common/locales/lt.ts +++ b/packages/common/locales/lt.ts @@ -9,6 +9,16 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (n % 10 === 1 && !(n % 100 >= 11 && n % 100 <= 19)) return 1; + if (n % 10 === Math.floor(n % 10) && n % 10 >= 2 && n % 10 <= 9 && + !(n % 100 >= 11 && n % 100 <= 19)) + return 3; + if (!(f === 0)) return 4; + return 5; +} + export default [ 'lt', [ @@ -56,15 +66,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', '×10^', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euras', - function(n: number): - number { - let f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (n % 10 === 1 && !(n % 100 >= 11 && n % 100 <= 19)) return 1; - if (n % 10 === Math.floor(n % 10) && n % 10 >= 2 && n % 10 <= 9 && - !(n % 100 >= 11 && n % 100 <= 19)) - return 3; - if (!(f === 0)) return 4; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'Euras', plural ]; diff --git a/packages/common/locales/lu.ts b/packages/common/locales/lu.ts index 46fe7e8ab1..657e38a8e4 100644 --- a/packages/common/locales/lu.ts +++ b/packages/common/locales/lu.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'lu', [ @@ -39,6 +43,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'FC', 'Nfalanga wa Kongu', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'FC', 'Nfalanga wa Kongu', plural ]; diff --git a/packages/common/locales/luo.ts b/packages/common/locales/luo.ts index bab957364f..42da36dbcd 100644 --- a/packages/common/locales/luo.ts +++ b/packages/common/locales/luo.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'luo', [ @@ -40,6 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'Ksh', 'Siling mar Kenya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'Ksh', 'Siling mar Kenya', plural ]; diff --git a/packages/common/locales/luy.ts b/packages/common/locales/luy.ts index 5bf4fef8af..37a14db609 100644 --- a/packages/common/locales/luy.ts +++ b/packages/common/locales/luy.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'luy', [ @@ -41,6 +45,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00;¤- #,##0.00', '#E0'], 'Ksh', 'Sirinji ya Kenya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00;¤- #,##0.00', '#E0'], 'Ksh', 'Sirinji ya Kenya', plural ]; diff --git a/packages/common/locales/lv.ts b/packages/common/locales/lv.ts index 2c571d31a0..e511756580 100644 --- a/packages/common/locales/lv.ts +++ b/packages/common/locales/lv.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (n % 10 === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19 || + v === 2 && f % 100 === Math.floor(f % 100) && f % 100 >= 11 && f % 100 <= 19) + return 0; + if (n % 10 === 1 && !(n % 100 === 11) || v === 2 && f % 10 === 1 && !(f % 100 === 11) || + !(v === 2) && f % 10 === 1) + return 1; + return 5; +} + export default [ 'lv', [['priekšp.', 'pēcp.'], , ['priekšpusdienā', 'pēcpusdienā']], [['priekšp.', 'pēcpusd.'], , ['priekšpusdiena', 'pēcpusdiena']], @@ -44,17 +56,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NS', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'eiro', - function(n: number): - number { - let v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (n % 10 === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19 || - v === 2 && f % 100 === Math.floor(f % 100) && f % 100 >= 11 && f % 100 <= 19) - return 0; - if (n % 10 === 1 && !(n % 100 === 11) || v === 2 && f % 10 === 1 && !(f % 100 === 11) || - !(v === 2) && f % 10 === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'eiro', plural ]; diff --git a/packages/common/locales/mas-TZ.ts b/packages/common/locales/mas-TZ.ts index f52c458d62..57c9c4e67b 100644 --- a/packages/common/locales/mas-TZ.ts +++ b/packages/common/locales/mas-TZ.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'mas-TZ', [ @@ -43,10 +48,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Iropiyianí e Tanzania', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Iropiyianí e Tanzania', plural ]; diff --git a/packages/common/locales/mas.ts b/packages/common/locales/mas.ts index 096f4cf76e..5b7ae799f2 100644 --- a/packages/common/locales/mas.ts +++ b/packages/common/locales/mas.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'mas', [ @@ -43,10 +48,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Iropiyianí e Kenya', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Iropiyianí e Kenya', plural ]; diff --git a/packages/common/locales/mer.ts b/packages/common/locales/mer.ts index 205d68a9d9..940cfb53e7 100644 --- a/packages/common/locales/mer.ts +++ b/packages/common/locales/mer.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'mer', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', plural ]; diff --git a/packages/common/locales/mfe.ts b/packages/common/locales/mfe.ts index 2de9e2a955..8fca2fa628 100644 --- a/packages/common/locales/mfe.ts +++ b/packages/common/locales/mfe.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'mfe', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Rs', 'roupi morisien', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Rs', 'roupi morisien', plural ]; diff --git a/packages/common/locales/mg.ts b/packages/common/locales/mg.ts index 1fd30e70e6..e7cd4505a4 100644 --- a/packages/common/locales/mg.ts +++ b/packages/common/locales/mg.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'mg', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Ar', 'Ariary', - function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Ar', 'Ariary', plural ]; diff --git a/packages/common/locales/mgh.ts b/packages/common/locales/mgh.ts index c0612bbefa..34cf11b036 100644 --- a/packages/common/locales/mgh.ts +++ b/packages/common/locales/mgh.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'mgh', [ @@ -40,6 +44,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'MTn', 'MZN', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'MTn', 'MZN', plural ]; diff --git a/packages/common/locales/mgo.ts b/packages/common/locales/mgo.ts index a17c053797..34ba0b400e 100644 --- a/packages/common/locales/mgo.ts +++ b/packages/common/locales/mgo.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'mgo', [ @@ -48,9 +53,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'shirè', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'shirè', plural ]; diff --git a/packages/common/locales/mk.ts b/packages/common/locales/mk.ts index ffd46700bb..ce7cd32442 100644 --- a/packages/common/locales/mk.ts +++ b/packages/common/locales/mk.ts @@ -9,6 +9,13 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 || f % 10 === 1) return 1; + return 5; +} + export default [ 'mk', [['претпл.', 'попл.'], , ['претпладне', 'попладне']], , [ @@ -51,11 +58,5 @@ export default [ ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'ден', 'Македонски денар', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 || f % 10 === 1) return 1; - return 5; - } + plural ]; diff --git a/packages/common/locales/ml.ts b/packages/common/locales/ml.ts index 4a51c717ef..c781bcbc69 100644 --- a/packages/common/locales/ml.ts +++ b/packages/common/locales/ml.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ml', [ @@ -77,10 +82,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₹', 'ഇന്ത്യൻ രൂപ', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₹', 'ഇന്ത്യൻ രൂപ', plural ]; diff --git a/packages/common/locales/mn.ts b/packages/common/locales/mn.ts index ce07e1a7e5..ea1cd324b6 100644 --- a/packages/common/locales/mn.ts +++ b/packages/common/locales/mn.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'mn', [['үө', 'үх'], ['ҮӨ', 'ҮХ'], ['ү.ө', 'ү.х']], [ @@ -48,10 +53,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₮', 'төгрөг', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₮', 'төгрөг', plural ]; diff --git a/packages/common/locales/mr.ts b/packages/common/locales/mr.ts index 9ee869b097..64c392618f 100644 --- a/packages/common/locales/mr.ts +++ b/packages/common/locales/mr.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'mr', [ @@ -63,10 +69,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##0%', '¤#,##0.00', '[#E0]'], '₹', 'भारतीय रुपया', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + plural ]; diff --git a/packages/common/locales/ms-BN.ts b/packages/common/locales/ms-BN.ts index 298d93df48..aab633ac0f 100644 --- a/packages/common/locales/ms-BN.ts +++ b/packages/common/locales/ms-BN.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ms-BN', [ @@ -43,6 +47,5 @@ export default [ '{1} {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '$', 'Dolar Brunei', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '$', 'Dolar Brunei', plural ]; diff --git a/packages/common/locales/ms-SG.ts b/packages/common/locales/ms-SG.ts index 0fae62b3cf..ca24dffefb 100644 --- a/packages/common/locales/ms-SG.ts +++ b/packages/common/locales/ms-SG.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ms-SG', [ @@ -43,6 +47,5 @@ export default [ '{1} {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Dolar Singapura', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Dolar Singapura', plural ]; diff --git a/packages/common/locales/ms.ts b/packages/common/locales/ms.ts index d49a9190dc..1b5103dd01 100644 --- a/packages/common/locales/ms.ts +++ b/packages/common/locales/ms.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ms', [ @@ -43,6 +47,5 @@ export default [ '{1} {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'RM', 'Ringgit Malaysia', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'RM', 'Ringgit Malaysia', plural ]; diff --git a/packages/common/locales/mt.ts b/packages/common/locales/mt.ts index 7fa1e0d17c..79e01f7c3f 100644 --- a/packages/common/locales/mt.ts +++ b/packages/common/locales/mt.ts @@ -9,6 +9,13 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + if (n === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 2 && n % 100 <= 10) return 3; + if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19) return 4; + return 5; +} + export default [ 'mt', [ @@ -53,12 +60,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'ewro', - function(n: number): - number { - if (n === 1) return 1; - if (n === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 2 && n % 100 <= 10) return 3; - if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19) return 4; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '€', 'ewro', plural ]; diff --git a/packages/common/locales/mua.ts b/packages/common/locales/mua.ts index 3601dfd045..de7c8ace56 100644 --- a/packages/common/locales/mua.ts +++ b/packages/common/locales/mua.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'mua', [ @@ -43,6 +47,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FCFA', 'solai BEAC', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FCFA', 'solai BEAC', plural ]; diff --git a/packages/common/locales/my.ts b/packages/common/locales/my.ts index 6b432c4f67..f033be3a39 100644 --- a/packages/common/locales/my.ts +++ b/packages/common/locales/my.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'my', [ @@ -54,6 +58,5 @@ export default [ '.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'ဂဏန်းမဟုတ်သော', ':' ], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'K', 'မြန်မာ ကျပ်', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'K', 'မြန်မာ ကျပ်', plural ]; diff --git a/packages/common/locales/mzn.ts b/packages/common/locales/mzn.ts index d8884d3308..a54ee648cb 100644 --- a/packages/common/locales/mzn.ts +++ b/packages/common/locales/mzn.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'mzn', [ @@ -38,6 +42,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'IRR', 'ایران ریال', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'IRR', 'ایران ریال', plural ]; diff --git a/packages/common/locales/naq.ts b/packages/common/locales/naq.ts index c0c05e6039..0cc9962e31 100644 --- a/packages/common/locales/naq.ts +++ b/packages/common/locales/naq.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + if (n === 2) return 2; + return 5; +} + export default [ 'naq', [ @@ -43,12 +49,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'ZAR', 'South African Randi', function(n: number): - number { - if (n === 1) - return 1; - if (n === 2) - return 2; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'ZAR', 'South African Randi', plural ]; diff --git a/packages/common/locales/nb-SJ.ts b/packages/common/locales/nb-SJ.ts index 733aea3d1f..44c26b0678 100644 --- a/packages/common/locales/nb-SJ.ts +++ b/packages/common/locales/nb-SJ.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'nb-SJ', [ @@ -46,10 +51,5 @@ export default [ ['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', 'HH:mm:ss zzzz'], ['{1}, {0}', , '{1} \'kl\'. {0}', '{1} {0}'], [',', ' ', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], 'kr', 'norske kroner', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], 'kr', 'norske kroner', plural ]; diff --git a/packages/common/locales/nb.ts b/packages/common/locales/nb.ts index 20cfc7b456..6cc3e78b83 100644 --- a/packages/common/locales/nb.ts +++ b/packages/common/locales/nb.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'nb', [ @@ -46,10 +51,5 @@ export default [ ['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', 'HH:mm:ss zzzz'], ['{1}, {0}', , '{1} \'kl\'. {0}', '{1} {0}'], [',', ' ', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], 'kr', 'norske kroner', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], 'kr', 'norske kroner', plural ]; diff --git a/packages/common/locales/nd.ts b/packages/common/locales/nd.ts index 719522816d..02ccf535a0 100644 --- a/packages/common/locales/nd.ts +++ b/packages/common/locales/nd.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'nd', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'Dola yase Amelika', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'Dola yase Amelika', plural ]; diff --git a/packages/common/locales/nds-NL.ts b/packages/common/locales/nds-NL.ts index 1de25e04ac..8e6fbaeb99 100644 --- a/packages/common/locales/nds-NL.ts +++ b/packages/common/locales/nds-NL.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'nds-NL', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '€', 'EUR', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '€', 'EUR', plural ]; diff --git a/packages/common/locales/nds.ts b/packages/common/locales/nds.ts index 89f66c8037..0a3e5f0d84 100644 --- a/packages/common/locales/nds.ts +++ b/packages/common/locales/nds.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'nds', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '€', 'EUR', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '€', 'EUR', plural ]; diff --git a/packages/common/locales/ne-IN.ts b/packages/common/locales/ne-IN.ts index b7331fa1e0..af116da943 100644 --- a/packages/common/locales/ne-IN.ts +++ b/packages/common/locales/ne-IN.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ne-IN', [ @@ -67,9 +72,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₹', 'भारतीय रूपिँया', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + plural ]; diff --git a/packages/common/locales/ne.ts b/packages/common/locales/ne.ts index c014002baf..7099fe6f64 100644 --- a/packages/common/locales/ne.ts +++ b/packages/common/locales/ne.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ne', [ @@ -67,9 +72,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'नेरू', - 'नेपाली रूपैयाँ', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + 'नेपाली रूपैयाँ', plural ]; diff --git a/packages/common/locales/nl-AW.ts b/packages/common/locales/nl-AW.ts index b2c529dd65..78d975a2da 100644 --- a/packages/common/locales/nl-AW.ts +++ b/packages/common/locales/nl-AW.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'nl-AW', [ @@ -39,11 +45,5 @@ export default [ '{1} \'om\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], 'Afl.', 'Arubaanse gulden', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], 'Afl.', 'Arubaanse gulden', plural ]; diff --git a/packages/common/locales/nl-BE.ts b/packages/common/locales/nl-BE.ts index 6791d829d3..1a9144a41d 100644 --- a/packages/common/locales/nl-BE.ts +++ b/packages/common/locales/nl-BE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'nl-BE', [ @@ -39,11 +45,5 @@ export default [ '{1} \'om\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/nl-BQ.ts b/packages/common/locales/nl-BQ.ts index a90f5c9cf3..739d2a7d30 100644 --- a/packages/common/locales/nl-BQ.ts +++ b/packages/common/locales/nl-BQ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'nl-BQ', [ @@ -39,11 +45,5 @@ export default [ '{1} \'om\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], '$', 'Amerikaanse dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], '$', 'Amerikaanse dollar', plural ]; diff --git a/packages/common/locales/nl-CW.ts b/packages/common/locales/nl-CW.ts index b97b28656e..07aadb8d01 100644 --- a/packages/common/locales/nl-CW.ts +++ b/packages/common/locales/nl-CW.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'nl-CW', [ @@ -40,11 +46,5 @@ export default [ ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], 'NAf.', - 'Nederlands-Antilliaanse gulden', function(n: number): - number { - let i = Math.floor(Math.abs(n)), - v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + 'Nederlands-Antilliaanse gulden', plural ]; diff --git a/packages/common/locales/nl-SR.ts b/packages/common/locales/nl-SR.ts index 3ddaf887df..2b4b55f134 100644 --- a/packages/common/locales/nl-SR.ts +++ b/packages/common/locales/nl-SR.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'nl-SR', [ @@ -39,11 +45,5 @@ export default [ '{1} \'om\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], '$', 'Surinaamse dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], '$', 'Surinaamse dollar', plural ]; diff --git a/packages/common/locales/nl-SX.ts b/packages/common/locales/nl-SX.ts index 8d0a9f8b0e..21d3cc767b 100644 --- a/packages/common/locales/nl-SX.ts +++ b/packages/common/locales/nl-SX.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'nl-SX', [ @@ -40,11 +46,5 @@ export default [ ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], 'NAf.', - 'Nederlands-Antilliaanse gulden', function(n: number): - number { - let i = Math.floor(Math.abs(n)), - v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + 'Nederlands-Antilliaanse gulden', plural ]; diff --git a/packages/common/locales/nl.ts b/packages/common/locales/nl.ts index 9b989ccf80..30d9255e77 100644 --- a/packages/common/locales/nl.ts +++ b/packages/common/locales/nl.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'nl', [ @@ -39,11 +45,5 @@ export default [ '{1} \'om\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], '€', 'Euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00;¤ -#,##0.00', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/nmg.ts b/packages/common/locales/nmg.ts index 67c4cdfd50..d3b35b9be5 100644 --- a/packages/common/locales/nmg.ts +++ b/packages/common/locales/nmg.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'nmg', [ @@ -43,6 +47,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Fraŋ CFA BEAC', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Fraŋ CFA BEAC', plural ]; diff --git a/packages/common/locales/nn.ts b/packages/common/locales/nn.ts index 057bf48844..dda1329a4c 100644 --- a/packages/common/locales/nn.ts +++ b/packages/common/locales/nn.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'nn', [['f.m.', 'e.m.'], , ['formiddag', 'ettermiddag']], [ @@ -49,10 +54,5 @@ export default [ ['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', '\'kl\'. HH:mm:ss zzzz'], ['{1}, {0}', , '{1} \'kl\'. {0}', '{1} {0}'], [',', ' ', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'norske kroner', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'norske kroner', plural ]; diff --git a/packages/common/locales/nnh.ts b/packages/common/locales/nnh.ts index 575a2eccf9..31b608c2c3 100644 --- a/packages/common/locales/nnh.ts +++ b/packages/common/locales/nnh.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'nnh', [ @@ -38,10 +43,5 @@ export default [ ['dd/MM/yy', 'd MMM, y', '\'lyɛ\'̌ʼ d \'na\' MMMM, y', 'EEEE , \'lyɛ\'̌ʼ d \'na\' MMMM, y'], ['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', 'HH:mm:ss zzzz'], ['{1} {0}', , '{1}, {0}', '{1},{0}'], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'feláŋ CFA', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'FCFA', 'feláŋ CFA', plural ]; diff --git a/packages/common/locales/nus.ts b/packages/common/locales/nus.ts index cee107dcb3..b38608fd0b 100644 --- a/packages/common/locales/nus.ts +++ b/packages/common/locales/nus.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'nus', [ @@ -46,6 +50,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'SSP', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '£', 'SSP', plural ]; diff --git a/packages/common/locales/nyn.ts b/packages/common/locales/nyn.ts index a58dfb8376..0a1e377c9a 100644 --- a/packages/common/locales/nyn.ts +++ b/packages/common/locales/nyn.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'nyn', [ @@ -40,10 +45,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Eshiringi ya Uganda', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Eshiringi ya Uganda', plural ]; diff --git a/packages/common/locales/om-KE.ts b/packages/common/locales/om-KE.ts index 1ce71b4b76..491f487e39 100644 --- a/packages/common/locales/om-KE.ts +++ b/packages/common/locales/om-KE.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'om-KE', [ @@ -47,9 +52,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'KES', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'KES', plural ]; diff --git a/packages/common/locales/om.ts b/packages/common/locales/om.ts index 5fa7551970..31c49627bf 100644 --- a/packages/common/locales/om.ts +++ b/packages/common/locales/om.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'om', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Br', 'Itoophiyaa Birrii', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Br', 'Itoophiyaa Birrii', plural ]; diff --git a/packages/common/locales/or.ts b/packages/common/locales/or.ts index 1d9003959f..a90b06d031 100644 --- a/packages/common/locales/or.ts +++ b/packages/common/locales/or.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'or', [['ପୂ', 'ଅ'], ['am', 'pm'], ['AM', 'PM']], [ @@ -52,10 +57,5 @@ export default [ '{0} ଠାରେ {1}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'ଟଙ୍କା', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', 'ଟଙ୍କା', plural ]; diff --git a/packages/common/locales/os-RU.ts b/packages/common/locales/os-RU.ts index 8af3bb52f0..5f0c741a30 100644 --- a/packages/common/locales/os-RU.ts +++ b/packages/common/locales/os-RU.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'os-RU', [['AM', 'PM'], , ['ӕмбисбоны размӕ', 'ӕмбисбоны фӕстӕ']], [ @@ -69,9 +74,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'НН', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₽', 'Сом', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₽', 'Сом', plural ]; diff --git a/packages/common/locales/os.ts b/packages/common/locales/os.ts index 2ffce7971e..0d739080d4 100644 --- a/packages/common/locales/os.ts +++ b/packages/common/locales/os.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'os', [['AM', 'PM'], , ['ӕмбисбоны размӕ', 'ӕмбисбоны фӕстӕ']], [ @@ -69,9 +74,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'НН', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₾', 'Лар', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₾', 'Лар', plural ]; diff --git a/packages/common/locales/pa-Arab.ts b/packages/common/locales/pa-Arab.ts index c7cbb5a630..a0f2107668 100644 --- a/packages/common/locales/pa-Arab.ts +++ b/packages/common/locales/pa-Arab.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'pa-Arab', [ @@ -42,6 +46,5 @@ export default [ , ], ['.', ',', ';', '%', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر', 'روپئیہ', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'ر', 'روپئیہ', plural ]; diff --git a/packages/common/locales/pa-Guru.ts b/packages/common/locales/pa-Guru.ts index fb9a47ff04..6d0d9be960 100644 --- a/packages/common/locales/pa-Guru.ts +++ b/packages/common/locales/pa-Guru.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'pa-Guru', [ @@ -63,9 +68,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '[#E0]'], '₹', - 'ਭਾਰਤੀ ਰੁਪਇਆ', function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + 'ਭਾਰਤੀ ਰੁਪਇਆ', plural ]; diff --git a/packages/common/locales/pa.ts b/packages/common/locales/pa.ts index 0ba3ed8734..c8ce6b644f 100644 --- a/packages/common/locales/pa.ts +++ b/packages/common/locales/pa.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'pa', [ @@ -63,9 +68,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '[#E0]'], '₹', - 'ਭਾਰਤੀ ਰੁਪਇਆ', function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + 'ਭਾਰਤੀ ਰੁਪਇਆ', plural ]; diff --git a/packages/common/locales/pl.ts b/packages/common/locales/pl.ts index 69aa155cab..8e3b7788d9 100644 --- a/packages/common/locales/pl.ts +++ b/packages/common/locales/pl.ts @@ -9,6 +9,19 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14)) + return 3; + if (v === 0 && !(i === 1) && i % 10 === Math.floor(i % 10) && i % 10 >= 0 && i % 10 <= 1 || + v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || + v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 12 && i % 100 <= 14) + return 4; + return 5; +} + export default [ 'pl', [ @@ -51,18 +64,5 @@ export default [ '{1} {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'zł', 'złoty polski', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14)) - return 3; - if (v === 0 && !(i === 1) && i % 10 === Math.floor(i % 10) && i % 10 >= 0 && i % 10 <= 1 || - v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || - v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 12 && i % 100 <= 14) - return 4; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'zł', 'złoty polski', plural ]; diff --git a/packages/common/locales/prg.ts b/packages/common/locales/prg.ts index 104c1dae79..174b6570f4 100644 --- a/packages/common/locales/prg.ts +++ b/packages/common/locales/prg.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (n % 10 === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19 || + v === 2 && f % 100 === Math.floor(f % 100) && f % 100 >= 11 && f % 100 <= 19) + return 0; + if (n % 10 === 1 && !(n % 100 === 11) || v === 2 && f % 10 === 1 && !(f % 100 === 11) || + !(v === 2) && f % 10 === 1) + return 1; + return 5; +} + export default [ 'prg', [ @@ -39,17 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], , - function(n: number): - number { - let v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (n % 10 === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19 || - v === 2 && f % 100 === Math.floor(f % 100) && f % 100 >= 11 && f % 100 <= 19) - return 0; - if (n % 10 === 1 && !(n % 100 === 11) || v === 2 && f % 10 === 1 && !(f % 100 === 11) || - !(v === 2) && f % 10 === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], , plural ]; diff --git a/packages/common/locales/ps.ts b/packages/common/locales/ps.ts index 5c526b87de..20b83e5ecc 100644 --- a/packages/common/locales/ps.ts +++ b/packages/common/locales/ps.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ps', [ @@ -52,9 +57,5 @@ export default [ , ], [',', '.', ';', '%', '\u200e+', '\u200e−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '؋', 'افغانۍ', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '؋', 'افغانۍ', plural ]; diff --git a/packages/common/locales/pt-AO.ts b/packages/common/locales/pt-AO.ts index 20a44c99b1..fc1f17db64 100644 --- a/packages/common/locales/pt-AO.ts +++ b/packages/common/locales/pt-AO.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-AO', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'Kz', 'Kwanza angolano', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'Kz', 'Kwanza angolano', plural ]; diff --git a/packages/common/locales/pt-CH.ts b/packages/common/locales/pt-CH.ts index 02ec99c11a..b13ad6cad2 100644 --- a/packages/common/locales/pt-CH.ts +++ b/packages/common/locales/pt-CH.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-CH', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'CHF', 'franco suíço', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'CHF', 'franco suíço', plural ]; diff --git a/packages/common/locales/pt-CV.ts b/packages/common/locales/pt-CV.ts index 89d1aaac18..f6806db35c 100644 --- a/packages/common/locales/pt-CV.ts +++ b/packages/common/locales/pt-CV.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-CV', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '​', 'escudo cabo-verdiano', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '​', 'escudo cabo-verdiano', plural ]; diff --git a/packages/common/locales/pt-GQ.ts b/packages/common/locales/pt-GQ.ts index 13a88c0793..8a7a404992 100644 --- a/packages/common/locales/pt-GQ.ts +++ b/packages/common/locales/pt-GQ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-GQ', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Franco CFA (BEAC)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Franco CFA (BEAC)', plural ]; diff --git a/packages/common/locales/pt-GW.ts b/packages/common/locales/pt-GW.ts index cfceab47eb..85e9558c16 100644 --- a/packages/common/locales/pt-GW.ts +++ b/packages/common/locales/pt-GW.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-GW', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'CFA', 'franco CFA (BCEAO)', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'CFA', 'franco CFA (BCEAO)', plural ]; diff --git a/packages/common/locales/pt-LU.ts b/packages/common/locales/pt-LU.ts index 8195c46617..4f59cd1623 100644 --- a/packages/common/locales/pt-LU.ts +++ b/packages/common/locales/pt-LU.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-LU', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/pt-MO.ts b/packages/common/locales/pt-MO.ts index cdb971c838..e1022bd8a6 100644 --- a/packages/common/locales/pt-MO.ts +++ b/packages/common/locales/pt-MO.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-MO', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'MOP$', 'Pataca de Macau', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'MOP$', 'Pataca de Macau', plural ]; diff --git a/packages/common/locales/pt-MZ.ts b/packages/common/locales/pt-MZ.ts index 9593e10175..ae2d758c39 100644 --- a/packages/common/locales/pt-MZ.ts +++ b/packages/common/locales/pt-MZ.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-MZ', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'MTn', 'Metical de Moçambique', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'MTn', 'Metical de Moçambique', plural ]; diff --git a/packages/common/locales/pt-PT.ts b/packages/common/locales/pt-PT.ts index 3e0a523e70..2cb1b3fac6 100644 --- a/packages/common/locales/pt-PT.ts +++ b/packages/common/locales/pt-PT.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-PT', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/pt-ST.ts b/packages/common/locales/pt-ST.ts index 157fdfd176..5cc25d0c2d 100644 --- a/packages/common/locales/pt-ST.ts +++ b/packages/common/locales/pt-ST.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-ST', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'STN', 'STN', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'STN', 'STN', plural ]; diff --git a/packages/common/locales/pt-TL.ts b/packages/common/locales/pt-TL.ts index 83160f78c8..6f2da4d8f0 100644 --- a/packages/common/locales/pt-TL.ts +++ b/packages/common/locales/pt-TL.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt-TL', [['a.m.', 'p.m.'], , ['da manhã', 'da tarde']], [['a.m.', 'p.m.'], , ['manhã', 'tarde']], @@ -39,11 +45,5 @@ export default [ '{1} \'às\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'US$', 'dólar dos Estados Unidos', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'US$', 'dólar dos Estados Unidos', plural ]; diff --git a/packages/common/locales/pt.ts b/packages/common/locales/pt.ts index e28230a58a..88a06fd0a5 100644 --- a/packages/common/locales/pt.ts +++ b/packages/common/locales/pt.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; + return 5; +} + export default [ 'pt', [ @@ -42,11 +48,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'R$', 'Real brasileiro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === Math.floor(i) && i >= 0 && i <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'R$', 'Real brasileiro', plural ]; diff --git a/packages/common/locales/qu-BO.ts b/packages/common/locales/qu-BO.ts index 82d88a5d58..41b587fc3d 100644 --- a/packages/common/locales/qu-BO.ts +++ b/packages/common/locales/qu-BO.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'qu-BO', [ @@ -38,6 +42,5 @@ export default [ 1, [6, 0], ['dd/MM/y', 'd MMM y', 'd MMMM y', 'EEEE, d MMMM, y'], ['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', 'HH:mm:ss zzzz'], ['{1} {0}', , '{0} {1}', '{1} {0}'], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], 'Bs', 'BOB', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], 'Bs', 'BOB', plural ]; diff --git a/packages/common/locales/qu-EC.ts b/packages/common/locales/qu-EC.ts index 22e11dc7fd..cc7222b347 100644 --- a/packages/common/locales/qu-EC.ts +++ b/packages/common/locales/qu-EC.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'qu-EC', [ @@ -38,6 +42,5 @@ export default [ 1, [6, 0], ['dd/MM/y', 'd MMM y', 'd MMMM y', 'EEEE, d MMMM, y'], ['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', 'HH:mm:ss zzzz'], ['{1} {0}', , '{0} {1}', '{1} {0}'], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '$', 'USD', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], '$', 'USD', plural ]; diff --git a/packages/common/locales/qu.ts b/packages/common/locales/qu.ts index ea7a698fe8..579533de17 100644 --- a/packages/common/locales/qu.ts +++ b/packages/common/locales/qu.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'qu', [ @@ -38,6 +42,5 @@ export default [ 0, [6, 0], ['dd/MM/y', 'd MMM y', 'd MMMM y', 'EEEE, d MMMM, y'], ['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', 'HH:mm:ss zzzz'], ['{1} {0}', , '{0} {1}', '{1} {0}'], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], 'S/', 'PEN', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0 %', '¤ #,##0.00', '#E0'], 'S/', 'PEN', plural ]; diff --git a/packages/common/locales/rm.ts b/packages/common/locales/rm.ts index 425a805a08..d3f369284e 100644 --- a/packages/common/locales/rm.ts +++ b/packages/common/locales/rm.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'rm', [ @@ -42,10 +47,5 @@ export default [ , ], ['.', '’', ';', '%', '+', '−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CHF', 'franc svizzer', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'CHF', 'franc svizzer', plural ]; diff --git a/packages/common/locales/rn.ts b/packages/common/locales/rn.ts index 9b4b3ca97c..bd590ccebd 100644 --- a/packages/common/locales/rn.ts +++ b/packages/common/locales/rn.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'rn', [ @@ -44,6 +48,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00¤', '#E0'], 'FBu', 'Ifaranga ry’Uburundi', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0 %', '#,##0.00¤', '#E0'], 'FBu', 'Ifaranga ry’Uburundi', plural ]; diff --git a/packages/common/locales/ro-MD.ts b/packages/common/locales/ro-MD.ts index f826b97efb..6d9b8db190 100644 --- a/packages/common/locales/ro-MD.ts +++ b/packages/common/locales/ro-MD.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + if (!(v === 0) || n === 0 || + !(n === 1) && n % 100 === Math.floor(n % 100) && n % 100 >= 1 && n % 100 <= 19) + return 3; + return 5; +} + export default [ 'ro-MD', [ @@ -41,14 +50,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'L', 'leu moldovenesc', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - if (!(v === 0) || n === 0 || - !(n === 1) && n % 100 === Math.floor(n % 100) && n % 100 >= 1 && n % 100 <= 19) - return 3; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'L', 'leu moldovenesc', plural ]; diff --git a/packages/common/locales/ro.ts b/packages/common/locales/ro.ts index dc5f2dc188..6d285424e6 100644 --- a/packages/common/locales/ro.ts +++ b/packages/common/locales/ro.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + if (!(v === 0) || n === 0 || + !(n === 1) && n % 100 === Math.floor(n % 100) && n % 100 >= 1 && n % 100 <= 19) + return 3; + return 5; +} + export default [ 'ro', [ @@ -41,14 +50,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'RON', 'leu românesc', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - if (!(v === 0) || n === 0 || - !(n === 1) && n % 100 === Math.floor(n % 100) && n % 100 >= 1 && n % 100 <= 19) - return 3; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'RON', 'leu românesc', plural ]; diff --git a/packages/common/locales/rof.ts b/packages/common/locales/rof.ts index c3b2f4a792..5b93e6847d 100644 --- a/packages/common/locales/rof.ts +++ b/packages/common/locales/rof.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'rof', [ @@ -40,10 +45,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'heleri sa Tanzania', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'heleri sa Tanzania', plural ]; diff --git a/packages/common/locales/root.ts b/packages/common/locales/root.ts index 0b79368372..fbcf86846d 100644 --- a/packages/common/locales/root.ts +++ b/packages/common/locales/root.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'root', [ @@ -42,6 +46,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/packages/common/locales/ru-BY.ts b/packages/common/locales/ru-BY.ts index 2464c75e31..a63f9f0225 100644 --- a/packages/common/locales/ru-BY.ts +++ b/packages/common/locales/ru-BY.ts @@ -9,6 +9,19 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14)) + return 3; + if (v === 0 && i % 10 === 0 || + v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || + v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) + return 4; + return 5; +} + export default [ 'ru-BY', [ @@ -70,17 +83,5 @@ export default [ ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'не число', ':'], ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'Br', 'белорусский рубль', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14)) - return 3; - if (v === 0 && i % 10 === 0 || - v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || - v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) - return 4; - return 5; - } + plural ]; diff --git a/packages/common/locales/ru-KG.ts b/packages/common/locales/ru-KG.ts index 8a50dfd221..14e5a4f350 100644 --- a/packages/common/locales/ru-KG.ts +++ b/packages/common/locales/ru-KG.ts @@ -9,6 +9,19 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14)) + return 3; + if (v === 0 && i % 10 === 0 || + v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || + v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) + return 4; + return 5; +} + export default [ 'ru-KG', [ @@ -69,18 +82,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'не число', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'сом', 'киргизский сом', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14)) - return 3; - if (v === 0 && i % 10 === 0 || - v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || - v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) - return 4; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'сом', 'киргизский сом', plural ]; diff --git a/packages/common/locales/ru-KZ.ts b/packages/common/locales/ru-KZ.ts index 53dec0a693..eec9b0dc0b 100644 --- a/packages/common/locales/ru-KZ.ts +++ b/packages/common/locales/ru-KZ.ts @@ -9,6 +9,19 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14)) + return 3; + if (v === 0 && i % 10 === 0 || + v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || + v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) + return 4; + return 5; +} + export default [ 'ru-KZ', [ @@ -69,18 +82,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'не число', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₸', 'казахский тенге', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14)) - return 3; - if (v === 0 && i % 10 === 0 || - v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || - v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) - return 4; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₸', 'казахский тенге', plural ]; diff --git a/packages/common/locales/ru-MD.ts b/packages/common/locales/ru-MD.ts index 6d7864045b..5346053ccd 100644 --- a/packages/common/locales/ru-MD.ts +++ b/packages/common/locales/ru-MD.ts @@ -9,6 +9,19 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14)) + return 3; + if (v === 0 && i % 10 === 0 || + v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || + v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) + return 4; + return 5; +} + export default [ 'ru-MD', [ @@ -69,18 +82,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'не число', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'L', 'молдавский лей', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14)) - return 3; - if (v === 0 && i % 10 === 0 || - v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || - v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) - return 4; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'L', 'молдавский лей', plural ]; diff --git a/packages/common/locales/ru-UA.ts b/packages/common/locales/ru-UA.ts index 66ac833f0e..2e1b9df18b 100644 --- a/packages/common/locales/ru-UA.ts +++ b/packages/common/locales/ru-UA.ts @@ -9,6 +9,19 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14)) + return 3; + if (v === 0 && i % 10 === 0 || + v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || + v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) + return 4; + return 5; +} + export default [ 'ru-UA', [ @@ -70,17 +83,5 @@ export default [ ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'не число', ':'], ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₴', 'украинская гривна', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14)) - return 3; - if (v === 0 && i % 10 === 0 || - v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || - v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) - return 4; - return 5; - } + plural ]; diff --git a/packages/common/locales/ru.ts b/packages/common/locales/ru.ts index 87e5ec0f04..f40b7f44aa 100644 --- a/packages/common/locales/ru.ts +++ b/packages/common/locales/ru.ts @@ -9,6 +9,19 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14)) + return 3; + if (v === 0 && i % 10 === 0 || + v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || + v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) + return 4; + return 5; +} + export default [ 'ru', [ @@ -69,18 +82,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'не число', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₽', 'российский рубль', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14)) - return 3; - if (v === 0 && i % 10 === 0 || - v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || - v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) - return 4; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₽', 'российский рубль', plural ]; diff --git a/packages/common/locales/rw.ts b/packages/common/locales/rw.ts index b2172da8b9..61997fe517 100644 --- a/packages/common/locales/rw.ts +++ b/packages/common/locales/rw.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'rw', [ @@ -48,6 +52,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'RF', 'RWF', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'RF', 'RWF', plural ]; diff --git a/packages/common/locales/rwk.ts b/packages/common/locales/rwk.ts index a2ee01e1e9..a4d544e09f 100644 --- a/packages/common/locales/rwk.ts +++ b/packages/common/locales/rwk.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'rwk', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'TSh', 'Shilingi ya Tanzania', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'TSh', 'Shilingi ya Tanzania', plural ]; diff --git a/packages/common/locales/sah.ts b/packages/common/locales/sah.ts index 68ee333c54..58f7d78d6a 100644 --- a/packages/common/locales/sah.ts +++ b/packages/common/locales/sah.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'sah', [ @@ -63,5 +67,5 @@ export default [ ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'чыыһыла буотах', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '₽', 'Арассыыйа солкуобайа', - function(n: number): number { return 5;} + plural ]; diff --git a/packages/common/locales/saq.ts b/packages/common/locales/saq.ts index 2667c73c68..4f10db71d4 100644 --- a/packages/common/locales/saq.ts +++ b/packages/common/locales/saq.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'saq', [ @@ -43,10 +48,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Njilingi eel Kenya', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Njilingi eel Kenya', plural ]; diff --git a/packages/common/locales/sbp.ts b/packages/common/locales/sbp.ts index 9c8c3e59d1..8ed990cfaf 100644 --- a/packages/common/locales/sbp.ts +++ b/packages/common/locales/sbp.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'sbp', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'TSh', 'Ihela ya Tansaniya', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'TSh', 'Ihela ya Tansaniya', plural ]; diff --git a/packages/common/locales/sd.ts b/packages/common/locales/sd.ts index 482771a5d9..24584102e4 100644 --- a/packages/common/locales/sd.ts +++ b/packages/common/locales/sd.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'sd', [ @@ -46,10 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Rs', 'پاڪستاني رپي', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Rs', 'پاڪستاني رپي', plural ]; diff --git a/packages/common/locales/se-FI.ts b/packages/common/locales/se-FI.ts index ef5f040066..54a4e92c15 100644 --- a/packages/common/locales/se-FI.ts +++ b/packages/common/locales/se-FI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + if (n === 2) return 2; + return 5; +} + export default [ 'se-FI', [ @@ -46,10 +52,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', '·10^', '·', '‰', '∞', '¤¤¤', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', function(n: number): - number { - if (n === 1) return 1; - if (n === 2) return 2; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/se-SE.ts b/packages/common/locales/se-SE.ts index 268a7b6dab..e8626c4390 100644 --- a/packages/common/locales/se-SE.ts +++ b/packages/common/locales/se-SE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + if (n === 2) return 2; + return 5; +} + export default [ 'se-SE', [['i.b.', 'e.b.'], , ['iđitbeaivet', 'eahketbeaivet']], [['i.b.', 'e.b.'], , ['iđitbeaivi', 'eahketbeaivi']], @@ -42,12 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', '·10^', '·', '‰', '∞', '¤¤¤', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'ruoŧŧa kruvdno', function(n: number): - number { - if (n === 1) - return 1; - if (n === 2) - return 2; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'ruoŧŧa kruvdno', plural ]; diff --git a/packages/common/locales/se.ts b/packages/common/locales/se.ts index 9b3b3cf88b..d617d220c4 100644 --- a/packages/common/locales/se.ts +++ b/packages/common/locales/se.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + if (n === 2) return 2; + return 5; +} + export default [ 'se', [['i.b.', 'e.b.'], , ['iđitbeaivet', 'eahketbeaivet']], [['i.b.', 'e.b.'], , ['iđitbeaivi', 'eahketbeaivi']], @@ -42,12 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', '·10^', '·', '‰', '∞', '¤¤¤', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'norgga kruvdno', function(n: number): - number { - if (n === 1) - return 1; - if (n === 2) - return 2; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'norgga kruvdno', plural ]; diff --git a/packages/common/locales/seh.ts b/packages/common/locales/seh.ts index 28c681a9ae..006e309902 100644 --- a/packages/common/locales/seh.ts +++ b/packages/common/locales/seh.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'seh', [ @@ -39,10 +44,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'MTn', 'Metical de Moçambique', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'MTn', 'Metical de Moçambique', plural ]; diff --git a/packages/common/locales/ses.ts b/packages/common/locales/ses.ts index 656d18bf3c..eb93610c34 100644 --- a/packages/common/locales/ses.ts +++ b/packages/common/locales/ses.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'ses', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'CFA', 'CFA Fraŋ (BCEAO)', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'CFA', 'CFA Fraŋ (BCEAO)', plural ]; diff --git a/packages/common/locales/sg.ts b/packages/common/locales/sg.ts index df96f92e3c..a28b35b909 100644 --- a/packages/common/locales/sg.ts +++ b/packages/common/locales/sg.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'sg', [ @@ -42,6 +46,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00;¤-#,##0.00', '#E0'], 'FCFA', 'farânga CFA (BEAC)', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00;¤-#,##0.00', '#E0'], 'FCFA', 'farânga CFA (BEAC)', plural ]; diff --git a/packages/common/locales/shi-Latn.ts b/packages/common/locales/shi-Latn.ts index 7026a7838f..d6043802a1 100644 --- a/packages/common/locales/shi-Latn.ts +++ b/packages/common/locales/shi-Latn.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'shi-Latn', [ @@ -39,6 +43,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'MAD', 'adrim n lmɣrib', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'MAD', 'adrim n lmɣrib', plural ]; diff --git a/packages/common/locales/shi-Tfng.ts b/packages/common/locales/shi-Tfng.ts index f938712261..713600dabe 100644 --- a/packages/common/locales/shi-Tfng.ts +++ b/packages/common/locales/shi-Tfng.ts @@ -9,6 +9,13 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + if (n === Math.floor(n) && n >= 2 && n <= 10) return 3; + return 5; +} + export default [ 'shi-Tfng', [ @@ -58,11 +65,5 @@ export default [ ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'MAD', 'ⴰⴷⵔⵉⵎ ⵏ ⵍⵎⵖⵔⵉⴱ', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - if (n === Math.floor(n) && n >= 2 && n <= 10) return 3; - return 5; - } + plural ]; diff --git a/packages/common/locales/shi.ts b/packages/common/locales/shi.ts index 5d4c323d50..3513b7df8f 100644 --- a/packages/common/locales/shi.ts +++ b/packages/common/locales/shi.ts @@ -9,6 +9,13 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + if (n === Math.floor(n) && n >= 2 && n <= 10) return 3; + return 5; +} + export default [ 'shi', [ @@ -58,11 +65,5 @@ export default [ ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'MAD', 'ⴰⴷⵔⵉⵎ ⵏ ⵍⵎⵖⵔⵉⴱ', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - if (n === Math.floor(n) && n >= 2 && n <= 10) return 3; - return 5; - } + plural ]; diff --git a/packages/common/locales/si.ts b/packages/common/locales/si.ts index 5d8c556b23..ff5394fa62 100644 --- a/packages/common/locales/si.ts +++ b/packages/common/locales/si.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (n === 0 || n === 1 || i === 0 && f === 1) return 1; + return 5; +} + export default [ 'si', [ @@ -86,12 +92,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', '.'], ['#,##0.###', '#,##0%', '¤#,##0.00', '#'], 'රු.', - 'ශ්\u200dරී ලංකා රුපියල', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (n === 0 || n === 1 || i === 0 && f === 1) return 1; - return 5; - } + 'ශ්\u200dරී ලංකා රුපියල', plural ]; diff --git a/packages/common/locales/sk.ts b/packages/common/locales/sk.ts index aa17750979..135e3091f8 100644 --- a/packages/common/locales/sk.ts +++ b/packages/common/locales/sk.ts @@ -9,6 +9,14 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + if (i === Math.floor(i) && i >= 2 && i <= 4 && v === 0) return 3; + if (!(v === 0)) return 4; + return 5; +} + export default [ 'sk', [ @@ -46,13 +54,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'e', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - if (i === Math.floor(i) && i >= 2 && i <= 4 && v === 0) return 3; - if (!(v === 0)) return 4; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/sl.ts b/packages/common/locales/sl.ts index d2d2b52bfd..a3700eeb05 100644 --- a/packages/common/locales/sl.ts +++ b/packages/common/locales/sl.ts @@ -9,6 +9,15 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (v === 0 && i % 100 === 1) return 1; + if (v === 0 && i % 100 === 2) return 2; + if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 || !(v === 0)) + return 3; + return 5; +} + export default [ 'sl', [ @@ -39,15 +48,5 @@ export default [ , ], [',', '.', ';', '%', '+', '−', 'e', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'evro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (v === 0 && i % 100 === 1) return 1; - if (v === 0 && i % 100 === 2) return 2; - if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 || - !(v === 0)) - return 3; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'evro', plural ]; diff --git a/packages/common/locales/smn.ts b/packages/common/locales/smn.ts index b6201ad216..ce465e4703 100644 --- a/packages/common/locales/smn.ts +++ b/packages/common/locales/smn.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + if (n === 2) return 2; + return 5; +} + export default [ 'smn', [ @@ -53,10 +59,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'epiloho', '.'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', function(n: number): - number { - if (n === 1) return 1; - if (n === 2) return 2; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/sn.ts b/packages/common/locales/sn.ts index 3d6229ce73..69b6baf845 100644 --- a/packages/common/locales/sn.ts +++ b/packages/common/locales/sn.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'sn', [ @@ -42,10 +47,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'Dora re Amerika', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'US$', 'Dora re Amerika', plural ]; diff --git a/packages/common/locales/so-DJ.ts b/packages/common/locales/so-DJ.ts index e85ce3e1f9..7edc38562c 100644 --- a/packages/common/locales/so-DJ.ts +++ b/packages/common/locales/so-DJ.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'so-DJ', [ @@ -52,10 +57,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Fdj', 'Faran Jabbuuti', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Fdj', 'Faran Jabbuuti', plural ]; diff --git a/packages/common/locales/so-ET.ts b/packages/common/locales/so-ET.ts index 19776e5675..73fc573470 100644 --- a/packages/common/locales/so-ET.ts +++ b/packages/common/locales/so-ET.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'so-ET', [ @@ -52,10 +57,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Br', 'Birta Itoobbiya', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Br', 'Birta Itoobbiya', plural ]; diff --git a/packages/common/locales/so-KE.ts b/packages/common/locales/so-KE.ts index 4551820b09..e8a1999065 100644 --- a/packages/common/locales/so-KE.ts +++ b/packages/common/locales/so-KE.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'so-KE', [ @@ -52,9 +57,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'KES', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'KES', plural ]; diff --git a/packages/common/locales/so.ts b/packages/common/locales/so.ts index c8d17d4732..39b8754d10 100644 --- a/packages/common/locales/so.ts +++ b/packages/common/locales/so.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'so', [ @@ -52,9 +57,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'S', 'Shilin soomaali', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'S', 'Shilin soomaali', plural ]; diff --git a/packages/common/locales/sq-MK.ts b/packages/common/locales/sq-MK.ts index 5cbe20c4da..a39651016d 100644 --- a/packages/common/locales/sq-MK.ts +++ b/packages/common/locales/sq-MK.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'sq-MK', [ @@ -54,10 +59,5 @@ export default [ '{1} \'në\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'den', 'Denari maqedonas', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'den', 'Denari maqedonas', plural ]; diff --git a/packages/common/locales/sq-XK.ts b/packages/common/locales/sq-XK.ts index d8c133c79a..b4e872c075 100644 --- a/packages/common/locales/sq-XK.ts +++ b/packages/common/locales/sq-XK.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'sq-XK', [ @@ -54,9 +59,5 @@ export default [ '{1} \'në\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Euroja', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Euroja', plural ]; diff --git a/packages/common/locales/sq.ts b/packages/common/locales/sq.ts index c010ed6e6b..e5af35a44c 100644 --- a/packages/common/locales/sq.ts +++ b/packages/common/locales/sq.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'sq', [ @@ -54,10 +59,5 @@ export default [ '{1} \'në\' {0}', ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'Lekë', 'Leku shqiptar', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'Lekë', 'Leku shqiptar', plural ]; diff --git a/packages/common/locales/sr-Cyrl-BA.ts b/packages/common/locales/sr-Cyrl-BA.ts index 0eb512a3e9..de6bf2217b 100644 --- a/packages/common/locales/sr-Cyrl-BA.ts +++ b/packages/common/locales/sr-Cyrl-BA.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14) || + f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && + !(f % 100 >= 12 && f % 100 <= 14)) + return 3; + return 5; +} + export default [ 'sr-Cyrl-BA', [ @@ -54,18 +66,5 @@ export default [ ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'КМ', - 'Босанско-херцеговачка конвертибилна марка', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) - return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14) || - f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && - !(f % 100 >= 12 && f % 100 <= 14)) - return 3; - return 5; - } + 'Босанско-херцеговачка конвертибилна марка', plural ]; diff --git a/packages/common/locales/sr-Cyrl-ME.ts b/packages/common/locales/sr-Cyrl-ME.ts index 2289048c98..3e317cfb84 100644 --- a/packages/common/locales/sr-Cyrl-ME.ts +++ b/packages/common/locales/sr-Cyrl-ME.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14) || + f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && + !(f % 100 >= 12 && f % 100 <= 14)) + return 3; + return 5; +} + export default [ 'sr-Cyrl-ME', [ @@ -50,18 +62,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Евро', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) - return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14) || - f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && - !(f % 100 >= 12 && f % 100 <= 14)) - return 3; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Евро', plural ]; diff --git a/packages/common/locales/sr-Cyrl-XK.ts b/packages/common/locales/sr-Cyrl-XK.ts index 85a00ac025..61d9b1db40 100644 --- a/packages/common/locales/sr-Cyrl-XK.ts +++ b/packages/common/locales/sr-Cyrl-XK.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14) || + f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && + !(f % 100 >= 12 && f % 100 <= 14)) + return 3; + return 5; +} + export default [ 'sr-Cyrl-XK', [ @@ -50,18 +62,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Евро', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) - return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14) || - f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && - !(f % 100 >= 12 && f % 100 <= 14)) - return 3; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Евро', plural ]; diff --git a/packages/common/locales/sr-Cyrl.ts b/packages/common/locales/sr-Cyrl.ts index 519dcfb6f3..0202b6ce98 100644 --- a/packages/common/locales/sr-Cyrl.ts +++ b/packages/common/locales/sr-Cyrl.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14) || + f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && + !(f % 100 >= 12 && f % 100 <= 14)) + return 3; + return 5; +} + export default [ 'sr-Cyrl', [ @@ -53,18 +65,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'RSD', 'Српски динар', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) - return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14) || - f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && - !(f % 100 >= 12 && f % 100 <= 14)) - return 3; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'RSD', 'Српски динар', plural ]; diff --git a/packages/common/locales/sr-Latn-BA.ts b/packages/common/locales/sr-Latn-BA.ts index 775c43ed69..2822a06890 100644 --- a/packages/common/locales/sr-Latn-BA.ts +++ b/packages/common/locales/sr-Latn-BA.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'sr-Latn-BA', [ @@ -40,5 +44,5 @@ export default [ ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'KM', - 'Bosansko-hercegovačka konvertibilna marka', function(n: number): number { return 5;} + 'Bosansko-hercegovačka konvertibilna marka', plural ]; diff --git a/packages/common/locales/sr-Latn-ME.ts b/packages/common/locales/sr-Latn-ME.ts index 08adc9e366..21bd7340f2 100644 --- a/packages/common/locales/sr-Latn-ME.ts +++ b/packages/common/locales/sr-Latn-ME.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'sr-Latn-ME', [ @@ -39,6 +43,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Evro', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Evro', plural ]; diff --git a/packages/common/locales/sr-Latn-XK.ts b/packages/common/locales/sr-Latn-XK.ts index 824ce717fb..9b3d7b62ab 100644 --- a/packages/common/locales/sr-Latn-XK.ts +++ b/packages/common/locales/sr-Latn-XK.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'sr-Latn-XK', [ @@ -39,6 +43,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Evro', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '€', 'Evro', plural ]; diff --git a/packages/common/locales/sr-Latn.ts b/packages/common/locales/sr-Latn.ts index c1d55d5f8a..eb7f2cf901 100644 --- a/packages/common/locales/sr-Latn.ts +++ b/packages/common/locales/sr-Latn.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'sr-Latn', [ @@ -42,6 +46,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'RSD', 'Srpski dinar', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'RSD', 'Srpski dinar', plural ]; diff --git a/packages/common/locales/sr.ts b/packages/common/locales/sr.ts index c0e87fbb50..fa6e3bf7ce 100644 --- a/packages/common/locales/sr.ts +++ b/packages/common/locales/sr.ts @@ -9,6 +9,18 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, + f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14) || + f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && + !(f % 100 >= 12 && f % 100 <= 14)) + return 3; + return 5; +} + export default [ 'sr', [ @@ -53,18 +65,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'RSD', 'Српски динар', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length, - f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11)) - return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14) || - f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 && - !(f % 100 >= 12 && f % 100 <= 14)) - return 3; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'RSD', 'Српски динар', plural ]; diff --git a/packages/common/locales/sv-AX.ts b/packages/common/locales/sv-AX.ts index 36adf08f31..03c519a29e 100644 --- a/packages/common/locales/sv-AX.ts +++ b/packages/common/locales/sv-AX.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'sv-AX', [ @@ -39,11 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', '×10^', '×', '‰', '∞', '¤¤¤', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/sv-FI.ts b/packages/common/locales/sv-FI.ts index 4406fa5d37..7a67a35c99 100644 --- a/packages/common/locales/sv-FI.ts +++ b/packages/common/locales/sv-FI.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'sv-FI', [ @@ -39,11 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', '×10^', '×', '‰', '∞', '¤¤¤', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '€', 'euro', plural ]; diff --git a/packages/common/locales/sv.ts b/packages/common/locales/sv.ts index 231c739139..4d27106b5d 100644 --- a/packages/common/locales/sv.ts +++ b/packages/common/locales/sv.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'sv', [ @@ -39,11 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '−', '×10^', '×', '‰', '∞', '¤¤¤', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'svensk krona', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'svensk krona', plural ]; diff --git a/packages/common/locales/sw-CD.ts b/packages/common/locales/sw-CD.ts index 313394ec3e..b55c0dec9a 100644 --- a/packages/common/locales/sw-CD.ts +++ b/packages/common/locales/sw-CD.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'sw-CD', [ @@ -42,11 +48,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FC', 'Faranga ya Kongo', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FC', 'Faranga ya Kongo', plural ]; diff --git a/packages/common/locales/sw-KE.ts b/packages/common/locales/sw-KE.ts index cd9201f819..61fd87bbe5 100644 --- a/packages/common/locales/sw-KE.ts +++ b/packages/common/locales/sw-KE.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'sw-KE', [ @@ -42,11 +48,5 @@ export default [ '{1} \'saa\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Shilingi ya Kenya', plural ]; diff --git a/packages/common/locales/sw-UG.ts b/packages/common/locales/sw-UG.ts index 5e5e957cfc..f22017260b 100644 --- a/packages/common/locales/sw-UG.ts +++ b/packages/common/locales/sw-UG.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'sw-UG', [ @@ -42,11 +48,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Shilingi ya Uganda', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Shilingi ya Uganda', plural ]; diff --git a/packages/common/locales/sw.ts b/packages/common/locales/sw.ts index 7b9e30ca31..035833bed7 100644 --- a/packages/common/locales/sw.ts +++ b/packages/common/locales/sw.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'sw', [ @@ -42,11 +48,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Shilingi ya Tanzania', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Shilingi ya Tanzania', plural ]; diff --git a/packages/common/locales/ta-LK.ts b/packages/common/locales/ta-LK.ts index 827deaa067..d96b69624a 100644 --- a/packages/common/locales/ta-LK.ts +++ b/packages/common/locales/ta-LK.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ta-LK', [ @@ -62,9 +67,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], 'Rs.', - 'இலங்கை ரூபாய்', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + 'இலங்கை ரூபாய்', plural ]; diff --git a/packages/common/locales/ta-MY.ts b/packages/common/locales/ta-MY.ts index 37777f246f..517953c9bc 100644 --- a/packages/common/locales/ta-MY.ts +++ b/packages/common/locales/ta-MY.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ta-MY', [ @@ -62,9 +67,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'RM', - 'மலேஷியன் ரிங்கிட்', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + 'மலேஷியன் ரிங்கிட்', plural ]; diff --git a/packages/common/locales/ta-SG.ts b/packages/common/locales/ta-SG.ts index 79adf15ff1..83577c641e 100644 --- a/packages/common/locales/ta-SG.ts +++ b/packages/common/locales/ta-SG.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ta-SG', [ @@ -62,9 +67,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '$', - 'சிங்கப்பூர் டாலர்', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + 'சிங்கப்பூர் டாலர்', plural ]; diff --git a/packages/common/locales/ta.ts b/packages/common/locales/ta.ts index 7787c31202..5acb361139 100644 --- a/packages/common/locales/ta.ts +++ b/packages/common/locales/ta.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ta', [ @@ -62,9 +67,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##,##0.###', '#,##,##0%', '¤ #,##,##0.00', '#E0'], '₹', - 'இந்திய ரூபாய்', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + 'இந்திய ரூபாய்', plural ]; diff --git a/packages/common/locales/te.ts b/packages/common/locales/te.ts index 0898cea6d1..f1b9cbf246 100644 --- a/packages/common/locales/te.ts +++ b/packages/common/locales/te.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'te', [ @@ -66,10 +71,5 @@ export default [ '{1} {0}కి', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##,##0.###', '#,##0%', '¤#,##,##0.00', '#E0'], '₹', 'రూపాయి', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##,##0.###', '#,##0%', '¤#,##,##0.00', '#E0'], '₹', 'రూపాయి', plural ]; diff --git a/packages/common/locales/teo-KE.ts b/packages/common/locales/teo-KE.ts index b1832393b3..2eaf49d71d 100644 --- a/packages/common/locales/teo-KE.ts +++ b/packages/common/locales/teo-KE.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'teo-KE', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Ango’otol lok’ Kenya', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Ksh', 'Ango’otol lok’ Kenya', plural ]; diff --git a/packages/common/locales/teo.ts b/packages/common/locales/teo.ts index c10f3e3c49..2ccd4b27f5 100644 --- a/packages/common/locales/teo.ts +++ b/packages/common/locales/teo.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'teo', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Ango’otol lok’ Uganda', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USh', 'Ango’otol lok’ Uganda', plural ]; diff --git a/packages/common/locales/tg.ts b/packages/common/locales/tg.ts index b63e4a2d82..5515666545 100644 --- a/packages/common/locales/tg.ts +++ b/packages/common/locales/tg.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'tg', [['AM', 'PM'], , ['пе. чо.', 'па. чо.']], [ @@ -45,6 +49,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'сом.', 'Сомонӣ', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'сом.', 'Сомонӣ', plural ]; diff --git a/packages/common/locales/th.ts b/packages/common/locales/th.ts index aa58414421..74318e952a 100644 --- a/packages/common/locales/th.ts +++ b/packages/common/locales/th.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'th', [ @@ -62,6 +66,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'THB', 'บาท', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'THB', 'บาท', plural ]; diff --git a/packages/common/locales/ti-ER.ts b/packages/common/locales/ti-ER.ts index 8a3a2fdd1a..9ca1a6e98c 100644 --- a/packages/common/locales/ti-ER.ts +++ b/packages/common/locales/ti-ER.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'ti-ER', [ @@ -48,10 +53,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Nfk', 'ERN', - function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Nfk', 'ERN', plural ]; diff --git a/packages/common/locales/ti.ts b/packages/common/locales/ti.ts index e4f8b5cd2f..0b7e70c3d9 100644 --- a/packages/common/locales/ti.ts +++ b/packages/common/locales/ti.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; + return 5; +} + export default [ 'ti', [ @@ -48,10 +53,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Br', 'የኢትዮጵያ ብር', - function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'Br', 'የኢትዮጵያ ብር', plural ]; diff --git a/packages/common/locales/tk.ts b/packages/common/locales/tk.ts index f4f63f7642..51f56167b7 100644 --- a/packages/common/locales/tk.ts +++ b/packages/common/locales/tk.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'tk', [['öň', 'soň'], ['go.öň', 'go.soň'], ['günortadan öň', 'günortadan soň']], [['öň', 'soň'], ['g.öň', 'g.soň'], ['günortadan öň', 'günortadan soň']], @@ -47,10 +52,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'san däl', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'TMT', 'Türkmen manady', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'TMT', 'Türkmen manady', plural ]; diff --git a/packages/common/locales/to.ts b/packages/common/locales/to.ts index c472c37866..7b1df1806a 100644 --- a/packages/common/locales/to.ts +++ b/packages/common/locales/to.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'to', [['AM', 'PM'], , ['hengihengi', 'efiafi']], [['AM', 'PM'], , ['HH', 'EA']], [ @@ -36,6 +40,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'TF', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'T$', 'Paʻanga fakatonga', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'T$', 'Paʻanga fakatonga', plural ]; diff --git a/packages/common/locales/tr-CY.ts b/packages/common/locales/tr-CY.ts index c5e8c4cae4..ba0c8292d8 100644 --- a/packages/common/locales/tr-CY.ts +++ b/packages/common/locales/tr-CY.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'tr-CY', [ @@ -42,9 +47,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '%#,##0', '¤#,##0.00', '#E0'], '€', 'Euro', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '%#,##0', '¤#,##0.00', '#E0'], '€', 'Euro', plural ]; diff --git a/packages/common/locales/tr.ts b/packages/common/locales/tr.ts index 988b938bde..cf1b9eeb58 100644 --- a/packages/common/locales/tr.ts +++ b/packages/common/locales/tr.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'tr', [ @@ -42,9 +47,5 @@ export default [ , ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '%#,##0', '¤#,##0.00', '#E0'], '₺', 'Türk Lirası', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '%#,##0', '¤#,##0.00', '#E0'], '₺', 'Türk Lirası', plural ]; diff --git a/packages/common/locales/tt.ts b/packages/common/locales/tt.ts index 968b95aabc..cd126b2d16 100644 --- a/packages/common/locales/tt.ts +++ b/packages/common/locales/tt.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'tt', [ @@ -47,6 +51,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₽', 'Россия сумы', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], '₽', 'Россия сумы', plural ]; diff --git a/packages/common/locales/twq.ts b/packages/common/locales/twq.ts index 833afa6b1f..09b66f680b 100644 --- a/packages/common/locales/twq.ts +++ b/packages/common/locales/twq.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'twq', [ @@ -39,6 +43,5 @@ export default [ , ], ['.', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'CFA', 'CFA Fraŋ (BCEAO)', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00¤', '#E0'], 'CFA', 'CFA Fraŋ (BCEAO)', plural ]; diff --git a/packages/common/locales/tzm.ts b/packages/common/locales/tzm.ts index 98c301bb6c..45d2578b42 100644 --- a/packages/common/locales/tzm.ts +++ b/packages/common/locales/tzm.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === Math.floor(n) && n >= 0 && n <= 1 || n === Math.floor(n) && n >= 11 && n <= 99) + return 1; + return 5; +} + export default [ 'tzm', [ @@ -39,11 +45,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'MAD', 'Derhem Umeṛṛuki', - function(n: number): - number { - if (n === Math.floor(n) && n >= 0 && n <= 1 || n === Math.floor(n) && n >= 11 && n <= 99) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'MAD', 'Derhem Umeṛṛuki', plural ]; diff --git a/packages/common/locales/ug.ts b/packages/common/locales/ug.ts index e241d85762..d4b10fadff 100644 --- a/packages/common/locales/ug.ts +++ b/packages/common/locales/ug.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'ug', [['ب', 'ك'], ['چ.ب', 'چ.ك'], ['چۈشتىن بۇرۇن', 'چۈشتىن كېيىن']], [ @@ -42,10 +47,5 @@ export default [ '{1} {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', 'جۇڭگو يۈەنى', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', 'جۇڭگو يۈەنى', plural ]; diff --git a/packages/common/locales/uk.ts b/packages/common/locales/uk.ts index 38668c8ff5..6c590b6e75 100644 --- a/packages/common/locales/uk.ts +++ b/packages/common/locales/uk.ts @@ -9,6 +9,19 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; + if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && + !(i % 100 >= 12 && i % 100 <= 14)) + return 3; + if (v === 0 && i % 10 === 0 || + v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || + v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) + return 4; + return 5; +} + export default [ 'uk', [ @@ -62,18 +75,5 @@ export default [ '{1} \'о\' {0}', ], [',', ' ', ';', '%', '+', '-', 'Е', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '₴', 'українська гривня', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (v === 0 && i % 10 === 1 && !(i % 100 === 11)) return 1; - if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 && - !(i % 100 >= 12 && i % 100 <= 14)) - return 3; - if (v === 0 && i % 10 === 0 || - v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 || - v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14) - return 4; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '₴', 'українська гривня', plural ]; diff --git a/packages/common/locales/ur-IN.ts b/packages/common/locales/ur-IN.ts index 90011d4a8e..33f1557fc4 100644 --- a/packages/common/locales/ur-IN.ts +++ b/packages/common/locales/ur-IN.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'ur-IN', [ @@ -45,11 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₹', 'بھارتی روپیہ', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '₹', 'بھارتی روپیہ', plural ]; diff --git a/packages/common/locales/ur.ts b/packages/common/locales/ur.ts index b36f09c133..b12176d3ee 100644 --- a/packages/common/locales/ur.ts +++ b/packages/common/locales/ur.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'ur', [ @@ -45,11 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Rs', 'پاکستانی روپیہ', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'Rs', 'پاکستانی روپیہ', plural ]; diff --git a/packages/common/locales/uz-Arab.ts b/packages/common/locales/uz-Arab.ts index 98b5c496fc..97c51370fb 100644 --- a/packages/common/locales/uz-Arab.ts +++ b/packages/common/locales/uz-Arab.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'uz-Arab', [ @@ -49,6 +53,5 @@ export default [ , ], [',', '.', ';', '%', '\u200e+', '\u200e−', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '؋', 'افغانی', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], '؋', 'افغانی', plural ]; diff --git a/packages/common/locales/uz-Cyrl.ts b/packages/common/locales/uz-Cyrl.ts index a928d8d999..17302af434 100644 --- a/packages/common/locales/uz-Cyrl.ts +++ b/packages/common/locales/uz-Cyrl.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'uz-Cyrl', [ @@ -65,6 +69,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'ҳақиқий сон эмас', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'сўм', 'Ўзбекистон сўм', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'сўм', 'Ўзбекистон сўм', plural ]; diff --git a/packages/common/locales/uz-Latn.ts b/packages/common/locales/uz-Latn.ts index 08eb6c63b4..80f03f987e 100644 --- a/packages/common/locales/uz-Latn.ts +++ b/packages/common/locales/uz-Latn.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'uz-Latn', [ @@ -47,10 +52,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'son emas', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'soʻm', 'O‘zbekiston so‘mi', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'soʻm', 'O‘zbekiston so‘mi', plural ]; diff --git a/packages/common/locales/uz.ts b/packages/common/locales/uz.ts index 3c544cfb43..9f6fcdab81 100644 --- a/packages/common/locales/uz.ts +++ b/packages/common/locales/uz.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'uz', [ @@ -47,10 +52,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'son emas', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'soʻm', 'O‘zbekiston so‘mi', - function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'soʻm', 'O‘zbekiston so‘mi', plural ]; diff --git a/packages/common/locales/vai-Latn.ts b/packages/common/locales/vai-Latn.ts index 7a3e928618..7c5e803488 100644 --- a/packages/common/locales/vai-Latn.ts +++ b/packages/common/locales/vai-Latn.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'vai-Latn', [ @@ -42,6 +46,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Laibhiya Dala', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'Laibhiya Dala', plural ]; diff --git a/packages/common/locales/vai-Vaii.ts b/packages/common/locales/vai-Vaii.ts index 0b75538280..c3fc7f4ae3 100644 --- a/packages/common/locales/vai-Vaii.ts +++ b/packages/common/locales/vai-Vaii.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'vai-Vaii', [ @@ -49,6 +53,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'ꕞꔤꔫꕩ ꕜꕞꕌ', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'ꕞꔤꔫꕩ ꕜꕞꕌ', plural ]; diff --git a/packages/common/locales/vai.ts b/packages/common/locales/vai.ts index dcaf8679db..1ade11a12c 100644 --- a/packages/common/locales/vai.ts +++ b/packages/common/locales/vai.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'vai', [ @@ -49,6 +53,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'ꕞꔤꔫꕩ ꕜꕞꕌ', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'ꕞꔤꔫꕩ ꕜꕞꕌ', plural ]; diff --git a/packages/common/locales/vi.ts b/packages/common/locales/vi.ts index d51d9c0fe1..609cb0270f 100644 --- a/packages/common/locales/vi.ts +++ b/packages/common/locales/vi.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'vi', [ @@ -63,6 +67,5 @@ export default [ '{0} {1}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '₫', 'Đồng Việt Nam', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], '₫', 'Đồng Việt Nam', plural ]; diff --git a/packages/common/locales/vo.ts b/packages/common/locales/vo.ts index fd128d8065..44ca56e63c 100644 --- a/packages/common/locales/vo.ts +++ b/packages/common/locales/vo.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'vo', [ @@ -39,9 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], , function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], , plural ]; diff --git a/packages/common/locales/vun.ts b/packages/common/locales/vun.ts index 05acd526b0..68d951e0e1 100644 --- a/packages/common/locales/vun.ts +++ b/packages/common/locales/vun.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'vun', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Shilingi ya Tanzania', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'TSh', 'Shilingi ya Tanzania', plural ]; diff --git a/packages/common/locales/wae.ts b/packages/common/locales/wae.ts index 6eb7a5c3cf..10bf5131af 100644 --- a/packages/common/locales/wae.ts +++ b/packages/common/locales/wae.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'wae', [ @@ -43,9 +48,5 @@ export default [ , ], [',', '’', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CHF', 'CHF', function(n: number): - number { - if (n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CHF', 'CHF', plural ]; diff --git a/packages/common/locales/wo.ts b/packages/common/locales/wo.ts index dc2407881d..58aa587370 100644 --- a/packages/common/locales/wo.ts +++ b/packages/common/locales/wo.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'wo', [ @@ -39,6 +43,5 @@ export default [ '{1} \'ci\' {0}', ], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CFA', 'Franc CFA bu Afrik Sowwu-jant', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], 'CFA', 'Franc CFA bu Afrik Sowwu-jant', plural ]; diff --git a/packages/common/locales/xog.ts b/packages/common/locales/xog.ts index fbe6c5c1d6..1d64950f2f 100644 --- a/packages/common/locales/xog.ts +++ b/packages/common/locales/xog.ts @@ -9,6 +9,11 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + if (n === 1) return 1; + return 5; +} + export default [ 'xog', [ @@ -39,10 +44,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'USh', 'Silingi eya Yuganda', function(n: number): - number { - if (n === 1) - return 1; - return 5; - } + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'USh', 'Silingi eya Yuganda', plural ]; diff --git a/packages/common/locales/yav.ts b/packages/common/locales/yav.ts index ecdb69f817..13bd5909a4 100644 --- a/packages/common/locales/yav.ts +++ b/packages/common/locales/yav.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'yav', [ @@ -44,6 +48,5 @@ export default [ , ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'XAF', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'XAF', plural ]; diff --git a/packages/common/locales/yi.ts b/packages/common/locales/yi.ts index d5279aa9f9..499d6c284e 100644 --- a/packages/common/locales/yi.ts +++ b/packages/common/locales/yi.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'yi', [ @@ -57,11 +63,5 @@ export default [ '{1} {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], , - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], , plural ]; diff --git a/packages/common/locales/yo-BJ.ts b/packages/common/locales/yo-BJ.ts index 22c8e01245..4fea56869a 100644 --- a/packages/common/locales/yo-BJ.ts +++ b/packages/common/locales/yo-BJ.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'yo-BJ', [ @@ -47,6 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'CFA', 'Faransi ti Orílɛ́ède BIKEAO', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'CFA', 'Faransi ti Orílɛ́ède BIKEAO', plural ]; diff --git a/packages/common/locales/yo.ts b/packages/common/locales/yo.ts index 68b3796fff..8e723e658d 100644 --- a/packages/common/locales/yo.ts +++ b/packages/common/locales/yo.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'yo', [ @@ -48,5 +52,5 @@ export default [ ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '₦', 'Naira ti Orílẹ́ède Nàìjíríà', - function(n: number): number { return 5;} + plural ]; diff --git a/packages/common/locales/yue-Hans.ts b/packages/common/locales/yue-Hans.ts index 16523d3c6d..382bbe3863 100644 --- a/packages/common/locales/yue-Hans.ts +++ b/packages/common/locales/yue-Hans.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'yue-Hans', [ @@ -47,6 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', '非数值', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', '人民币', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', '人民币', plural ]; diff --git a/packages/common/locales/yue-Hant.ts b/packages/common/locales/yue-Hant.ts index d82970e859..77f05e5b43 100644 --- a/packages/common/locales/yue-Hant.ts +++ b/packages/common/locales/yue-Hant.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'yue-Hant', [ @@ -42,6 +46,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', '非數值', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', '港幣', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', '港幣', plural ]; diff --git a/packages/common/locales/yue.ts b/packages/common/locales/yue.ts index acc5b4229e..4d5cbade10 100644 --- a/packages/common/locales/yue.ts +++ b/packages/common/locales/yue.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'yue', [ @@ -42,6 +46,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', '非數值', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', '港幣', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', '港幣', plural ]; diff --git a/packages/common/locales/zgh.ts b/packages/common/locales/zgh.ts index e04fb0f97e..0a743d12a0 100644 --- a/packages/common/locales/zgh.ts +++ b/packages/common/locales/zgh.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'zgh', [ @@ -58,5 +62,5 @@ export default [ ], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0 %', '#,##0.00¤', '#E0'], 'MAD', 'ⴰⴷⵔⵉⵎ ⵏ ⵍⵎⵖⵔⵉⴱ', - function(n: number): number { return 5;} + plural ]; diff --git a/packages/common/locales/zh-Hans-HK.ts b/packages/common/locales/zh-Hans-HK.ts index 353033c82f..0803e9461d 100644 --- a/packages/common/locales/zh-Hans-HK.ts +++ b/packages/common/locales/zh-Hans-HK.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'zh-Hans-HK', [ @@ -47,6 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', '港元', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', '港元', plural ]; diff --git a/packages/common/locales/zh-Hans-MO.ts b/packages/common/locales/zh-Hans-MO.ts index df06bb6459..6505b33615 100644 --- a/packages/common/locales/zh-Hans-MO.ts +++ b/packages/common/locales/zh-Hans-MO.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'zh-Hans-MO', [ @@ -47,6 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'MOP$', '澳门币', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'MOP$', '澳门币', plural ]; diff --git a/packages/common/locales/zh-Hans-SG.ts b/packages/common/locales/zh-Hans-SG.ts index fdfc883f98..571336baa9 100644 --- a/packages/common/locales/zh-Hans-SG.ts +++ b/packages/common/locales/zh-Hans-SG.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'zh-Hans-SG', [ @@ -47,6 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', '新加坡元', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', '新加坡元', plural ]; diff --git a/packages/common/locales/zh-Hans.ts b/packages/common/locales/zh-Hans.ts index a2ab97bd98..0c668519c9 100644 --- a/packages/common/locales/zh-Hans.ts +++ b/packages/common/locales/zh-Hans.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'zh-Hans', [ @@ -47,6 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', '人民币', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', '人民币', plural ]; diff --git a/packages/common/locales/zh-Hant-HK.ts b/packages/common/locales/zh-Hant-HK.ts index b556eb8705..e20765fb94 100644 --- a/packages/common/locales/zh-Hant-HK.ts +++ b/packages/common/locales/zh-Hant-HK.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'zh-Hant-HK', [ @@ -43,6 +47,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', '非數值', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', '港元', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'HK$', '港元', plural ]; diff --git a/packages/common/locales/zh-Hant-MO.ts b/packages/common/locales/zh-Hant-MO.ts index b59f10e62b..2254247ff1 100644 --- a/packages/common/locales/zh-Hant-MO.ts +++ b/packages/common/locales/zh-Hant-MO.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'zh-Hant-MO', [ @@ -43,6 +47,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', '非數值', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'MOP$', '澳門元', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'MOP$', '澳門元', plural ]; diff --git a/packages/common/locales/zh-Hant.ts b/packages/common/locales/zh-Hant.ts index 8e449f45e7..8329a90c4c 100644 --- a/packages/common/locales/zh-Hant.ts +++ b/packages/common/locales/zh-Hant.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'zh-Hant', [ @@ -43,6 +47,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', '非數值', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', '新台幣', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', '新台幣', plural ]; diff --git a/packages/common/locales/zh.ts b/packages/common/locales/zh.ts index 3f8906e61f..3ee1c5f6c2 100644 --- a/packages/common/locales/zh.ts +++ b/packages/common/locales/zh.ts @@ -9,6 +9,10 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + return 5; +} + export default [ 'zh', [ @@ -47,6 +51,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', '人民币', - function(n: number): number { return 5;} + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '¥', '人民币', plural ]; diff --git a/packages/common/locales/zu.ts b/packages/common/locales/zu.ts index c6f0e5db67..39727313d6 100644 --- a/packages/common/locales/zu.ts +++ b/packages/common/locales/zu.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)); + if (i === 0 || n === 1) return 1; + return 5; +} + export default [ 'zu', [ @@ -53,11 +59,5 @@ export default [ , ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'i-South African Rand', - function(n: number): - number { - let i = Math.floor(Math.abs(n)); - if (i === 0 || n === 1) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'R', 'i-South African Rand', plural ]; diff --git a/packages/common/src/i18n/locale_en.ts b/packages/common/src/i18n/locale_en.ts index ba79d690f9..03337e974c 100644 --- a/packages/common/src/i18n/locale_en.ts +++ b/packages/common/src/i18n/locale_en.ts @@ -9,6 +9,12 @@ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js +function plural(n: number): number { + let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; + if (i === 1 && v === 0) return 1; + return 5; +} + export default [ 'en', [ @@ -42,11 +48,5 @@ export default [ '{1} \'at\' {0}', ], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], - ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', - function(n: number): - number { - let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; - if (i === 1 && v === 0) return 1; - return 5; - } + ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar', plural ]; diff --git a/tools/gulp-tasks/cldr/extract.js b/tools/gulp-tasks/cldr/extract.js index 8926f709b7..3f16ba1f1b 100644 --- a/tools/gulp-tasks/cldr/extract.js +++ b/tools/gulp-tasks/cldr/extract.js @@ -101,9 +101,11 @@ function generateLocale(locale, localeData) { .replace(/undefined/g, ''); // adding plural function after, because we don't want it as a string - data = data.substring(0, data.lastIndexOf(']')) + `, ${getPluralFunction(locale)}]`; + data = data.substring(0, data.lastIndexOf(']')) + `, plural]`; return `${HEADER} +${getPluralFunction(locale)} + export default ${data}; `; } @@ -457,7 +459,7 @@ function getPluralFunction(locale) { fn = fn .replace( toRegExp('function anonymous(n\n/*``*/) {\n'), - 'function(n: number): number {\n ') + 'function plural(n: number): number {\n ') .replace(toRegExp('var'), 'let') .replace(toRegExp('if(typeof n==="string")n=parseInt(n,10);'), '') .replace(toRegExp('\n}'), ';\n}');