_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/common/locales/closure-locale.ts_16281_20632
y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} 'da' {0}",u],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{"AUD":["$A","$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":["$CA","$"],"CNY":[u,"¥"],"EGP":[u,"£ E"],"GBP":["£ RU","£"],"HKD":["$ HK","$"],"ILS":[u,"₪"],"JPY":[u,"¥"],"KRW":[u,"₩"],"LBP":[u,"£L"],"NZD":["$ ZN","$"],"PHP":[u,"₱"],"RUR":[u,"р."],"TOP":[u,"$ T"],"TWD":[u,"$"],"USD":["$ SU","$"],"VND":[u,"₫"],"XCD":[u,"$"],"XXX":[]},"ltr", plural_locale_br]; export const locale_extra_br = []; function plural_locale_bs(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, f = parseInt(val.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 const locale_bs = ["bs",[["prijepodne","popodne"],["AM","PM"],["prijepodne","popodne"]],u,[["N","P","U","S","Č","P","S"],["ned","pon","uto","sri","čet","pet","sub"],["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["ned","pon","uto","sri","čet","pet","sub"]],[["n","p","u","s","č","p","s"],["ned","pon","uto","sri","čet","pet","sub"],["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["ned","pon","uto","sri","čet","pet","sub"]],[["j","f","m","a","m","j","j","a","s","o","n","d"],["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],["januar","februar","mart","april","maj","juni","juli","august","septembar","oktobar","novembar","decembar"]],u,[["p.n.e.","n. e."],["p. n. e.","n. e."],["prije nove ere","nove ere"]],1,[6,0],["d. M. 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}",u,"{1} 'u' {0}",u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"BAM","KM","Bosanskohercegovačka konvertibilna marka",{"AUD":[u,"$"],"BAM":["KM"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"GBP":[u,"£"],"HKD":[u,"$"],"HRK":["kn"],"ILS":[u,"₪"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"RSD":["din."],"THB":["฿"],"TWD":["NT$"],"USD":[u,"$"],"XCD":[u,"$"],"XPF":[]},"ltr", plural_locale_bs]; export const locale_extra_bs = [[["ponoć","podne","ujutro","poslijepodne","navečer","po noći"],u,u],u,["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","04:00"]]]; function plural_locale_ca(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_ca = ["ca",[["a. m.","p. m."],u,u],u,[["dg","dl","dt","dc","dj","dv","ds"],["dg.","dl.","dt.","dc.","dj.","dv.","ds."],["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],["dg.","dl.","dt.","dc.","dj.","dv.","ds."]],u,[["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],["de gen.","de febr.","de març","d’abr.","de maig","de juny","de jul.","d’ag.","de set.","d’oct.","de nov.","de des."],["de gener","de febrer","de març","d’abril","de maig","de juny","de juliol","d’agost","de setembre","d’octubre","de novembre","de desembre"]],[["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]],[["aC","dC"],u,["abans de Crist","després de Crist"]],1,[6,0],["d/M/yy","d MMM y","d MMMM 'de' y","EEEE, d MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}","{1}, {0}","{1}, 'a' 'les' {0}",u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"EUR","€","euro",{"AUD":["AU$","$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"ESP":["₧"],"MXN":[u,"$"],"PHP":[u,"₱"],"THB":["฿"],"USD":[u,"$"],"VEF":[u,"Bs F"],"XCD":[u,"$"],"XXX":[]},"ltr", plural_locale_ca]; export const locale_extra_ca = [[["mitj
{ "end_byte": 20632, "start_byte": 16281, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_20637_22998
,"mat.","matí","md","tarda","vespre","nit"],["mitjanit","matinada","matí","migdia","tarda","vespre","nit"],u],[["mitjanit","matinada","matí","migdia","tarda","vespre","nit"],u,u],["00:00",["00:00","06:00"],["06:00","12:00"],["12:00","13:00"],["13:00","19:00"],["19:00","21:00"],["21:00","24:00"]]]; function plural_locale_chr(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_chr = ["chr",[["Ꮜ","Ꮢ"],["ᏌᎾᎴ","ᏒᎯᏱᎢ"],["ᏌᎾᎴ","ᏒᎯᏱᎢᏗᏢ"]],[["ᏌᎾᎴ","ᏒᎯᏱᎢ"],u,["ᏌᎾᎴ","ᏒᎯᏱᎢᏗᏢ"]],[["Ꮖ","Ꮙ","Ꮤ","Ꮶ","Ꮕ","Ꮷ","Ꭴ"],["ᏆᏍᎬ","ᏉᏅᎯ","ᏔᎵᏁ","ᏦᎢᏁ","ᏅᎩᏁ","ᏧᎾᎩ","ᏈᏕᎾ"],["ᎤᎾᏙᏓᏆᏍᎬ","ᎤᎾᏙᏓᏉᏅᎯ","ᏔᎵᏁᎢᎦ","ᏦᎢᏁᎢᎦ","ᏅᎩᏁᎢᎦ","ᏧᎾᎩᎶᏍᏗ","ᎤᎾᏙᏓᏈᏕᎾ"],["ᏍᎬ","ᏅᎯ","ᏔᎵ","ᏦᎢ","ᏅᎩ","ᏧᎾ","ᏕᎾ"]],u,[["Ꭴ","Ꭷ","Ꭰ","Ꭷ","Ꭰ","Ꮥ","Ꭻ","Ꭶ","Ꮪ","Ꮪ","Ꮕ","Ꭵ"],["ᎤᏃ","ᎧᎦ","ᎠᏅ","ᎧᏬ","ᎠᏂ","ᏕᎭ","ᎫᏰ","ᎦᎶ","ᏚᎵ","ᏚᏂ","ᏅᏓ","ᎥᏍ"],["ᎤᏃᎸᏔᏅ","ᎧᎦᎵ","ᎠᏅᏱ","ᎧᏬᏂ","ᎠᏂᏍᎬᏘ","ᏕᎭᎷᏱ","ᎫᏰᏉᏂ","ᎦᎶᏂ","ᏚᎵᏍᏗ","ᏚᏂᏅᏗ","ᏅᏓᏕᏆ","ᎥᏍᎩᏱ"]],u,[["BC","AD"],u,["ᏧᏓᎷᎸ ᎤᎷᎯᏍᏗ ᎦᎶᏁᏛ","ᎠᏃ ᏙᎻᏂ"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} ᎤᎾᎢ {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US ᎠᏕᎳ",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"]},"ltr", plural_locale_chr]; export const locale_extra_chr = [[["Ꭲ","ᏌᎾᎴ","ᏒᎯᏱᎢᏗᏢ"],["ᎢᎦ","ᏌᎾᎴ","ᏒᎯᏱᎢᏗᏢ"],u],[["ᎢᎦ","ᏌᎾᎴ","ᏒᎯᏱᎢᏗᏢ"],u,u],["12:00",["00:00","12:00"],["12:00","24:00"]]]; function plural_locale_cs(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.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 const locale_cs = ["cs",[["dop.","odp."],u,u],u,[["N","P","Ú","S","Č","P","S"],["ne","po","út","st","čt","pá","so"],["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],["ne","po","út","st","čt","pá","so"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]],[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],["leden","únor","březen",
{ "end_byte": 22998, "start_byte": 20637, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_23000_26727
uben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]],[["př.n.l.","n.l."],["př. n. l.","n. l."],["před naším letopočtem","našeho letopočtu"]],1,[6,0],["dd.MM.yy","d. M. y","d. MMMM y","EEEE d. MMMM y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}",u,u,u],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"CZK","Kč","česká koruna",{"AUD":["AU$","$"],"BYN":[u,"р."],"CSK":["Kčs"],"CZK":["Kč"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"RON":[u,"L"],"RUR":[u,"р."],"TWD":["NT$"],"USD":["US$","$"],"VND":[u,"₫"],"XEU":["ECU"],"XXX":[]},"ltr", plural_locale_cs]; export const locale_extra_cs = [[["půl.","pol.","r.","d.","o.","v.","n."],["půln.","pol.","r.","dop.","odp.","več.","v n."],["půlnoc","poledne","ráno","dopoledne","odpoledne","večer","v noci"]],[["půl.","pol.","ráno","dop.","odp.","več.","noc"],["půlnoc","poledne","ráno","dopoledne","odpoledne","večer","noc"],u],["00:00","12:00",["04:00","09:00"],["09:00","12:00"],["12:00","18:00"],["18:00","22:00"],["22:00","04:00"]]]; function plural_locale_cy(val: number): number { const n = val; 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 const locale_cy = ["cy",[["b","h"],["AM","PM"],["yb","yh"]],[["AM","PM"],u,u],[["S","Ll","M","M","I","G","S"],["Sul","Llun","Maw","Mer","Iau","Gwen","Sad"],["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"],["Su","Ll","Ma","Me","Ia","Gw","Sa"]],[["S","Ll","M","M","I","G","S"],["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"],["Su","Ll","Ma","Me","Ia","Gw","Sa"]],[["I","Ch","M","E","M","M","G","A","M","H","T","Rh"],["Ion","Chwef","Maw","Ebr","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag"],["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]],[["I","Ch","M","E","M","M","G","A","M","H","T","Rh"],["Ion","Chw","Maw","Ebr","Mai","Meh","Gor","Awst","Medi","Hyd","Tach","Rhag"],["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]],[["C","O"],["CC","OC"],["Cyn Crist","Oed Crist"]],1,[6,0],["dd/MM/yy","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}",u,"{1} 'am' {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"GBP","£","Punt Prydain",{"BDT":[u,"TK"],"BWP":[],"BYN":[u,"р."],"HKD":["HK$"],"JPY":["JP¥","¥"],"KRW":[u,"₩"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"],"XXX":[],"ZAR":[],"ZMW":[]},"ltr", plural_locale_cy]; export const locale_extra_cy = [[["canol nos","canol dydd","yn y bore","yn y prynhawn","min nos"],["canol nos","canol dydd","y bore","y prynhawn","yr hwyr"],u],[["canol nos","canol dydd","bore","prynhawn","min nos"],["canol nos","canol dydd","bore","prynhawn","yr hwyr"],["canol nos","canol dydd","y bore","y prynhawn","yr hwyr"]],["00:00","12:00",["00:00","12:00"],["12:00","18:00"],["18:00","24:00"]]]; function plural_locale_da(val: number): number { const n = val, i = Math.floor(Math.abs(val)), t = parseInt(val.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0; if (n === 1 || !(t === 0) && (i === 0 || i === 1)) return 1; return 5; } export const locale_da = ["da",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["S","M","T","O","T","F","L"],["søn.","man.","tir.","ons.","tor.","fre.","lør."],["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["sø","ma","ti","on","to","fr","lø"]],[["S","M"
{ "end_byte": 26727, "start_byte": 23000, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_26729_30921
T","O","T","F","L"],["søn","man","tir","ons","tor","fre","lør"],["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["sø","ma","ti","on","to","fr","lø"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]],u,[["fKr","eKr"],["f.Kr.","e.Kr."],u],1,[6,0],["dd.MM.y","d. MMM y","d. MMMM y","EEEE 'den' d. MMMM y"],["HH.mm","HH.mm.ss","HH.mm.ss z","HH.mm.ss zzzz"],["{1} {0}",u,"{1} 'kl'. {0}",u],[",",".",";","%","+","-","E","×","‰","∞","NaN","."],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"DKK","kr.","dansk krone",{"AUD":["AU$","$"],"BYN":[u,"Br."],"DKK":["kr."],"ISK":[u,"kr."],"JPY":["JP¥","¥"],"NOK":[u,"kr."],"PHP":[u,"₱"],"RON":[u,"L"],"SEK":[u,"kr."],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"]},"ltr", plural_locale_da]; export const locale_extra_da = [[["midnat","om morgenen","om formiddagen","om eftermiddagen","om aftenen","om natten"],u,u],[["midnat","morgen","formiddag","eftermiddag","aften","nat"],u,u],["00:00",["05:00","10:00"],["10:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","05:00"]]]; function plural_locale_de(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_de = ["de",[["AM","PM"],u,u],u,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],u,u],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",u,"{1} 'um' {0}",u],[",",".",";","%","+","-","E","·","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","Euro",{"ATS":["öS"],"AUD":["AU$","$"],"BGM":["BGK"],"BGO":["BGJ"],"BYN":[u,"р."],"CUC":[u,"Cub$"],"DEM":["DM"],"FKP":[u,"Fl£"],"GHS":[u,"₵"],"GNF":[u,"F.G."],"KMF":[u,"FC"],"PHP":[u,"₱"],"RON":[u,"L"],"RUR":[u,"р."],"RWF":[u,"F.Rw"],"SYP":[],"THB":["฿"],"TWD":["NT$"],"XXX":[],"ZMW":[u,"K"]},"ltr", plural_locale_de]; export const locale_extra_de = [[["Mitternacht","morgens","vorm.","mittags","nachm.","abends","nachts"],u,["Mitternacht","morgens","vormittags","mittags","nachmittags","abends","nachts"]],[["Mitternacht","Morgen","Vorm.","Mittag","Nachm.","Abend","Nacht"],u,["Mitternacht","Morgen","Vormittag","Mittag","Nachmittag","Abend","Nacht"]],["00:00",["05:00","10:00"],["10:00","12:00"],["12:00","13:00"],["13:00","18:00"],["18:00","24:00"],["00:00","05:00"]]]; function plural_locale_de_AT(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_de_AT = ["de-AT",[["AM","PM"],u,u],[["vm.","nm."],["AM","PM"],u],[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jän.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Ok
{ "end_byte": 30921, "start_byte": 26729, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_30923_34849
","Nov.","Dez."],["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],u,u],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",u,"{1} 'um' {0}",u],[","," ",";","%","+","-","E","·","‰","∞","NaN",":",u,"."],["#,##0.###","#,##0 %","¤ #,##0.00","#E0"],"EUR","€","Euro",{"ATS":["öS"],"AUD":["AU$","$"],"BGM":["BGK"],"BGO":["BGJ"],"BYN":[u,"р."],"CUC":[u,"Cub$"],"DEM":["DM"],"FKP":[u,"Fl£"],"GHS":[u,"₵"],"GNF":[u,"F.G."],"KMF":[u,"FC"],"PHP":[u,"₱"],"RON":[u,"L"],"RUR":[u,"р."],"RWF":[u,"F.Rw"],"SYP":[],"THB":["฿"],"TWD":["NT$"],"XXX":[],"ZMW":[u,"K"]},"ltr", plural_locale_de_AT]; export const locale_extra_de_AT = [[["Mitternacht","morgens","vorm.","mittags","nachm.","abends","nachts"],u,["Mitternacht","morgens","vormittags","mittags","nachmittags","abends","nachts"]],[["Mitternacht","Morgen","Vorm.","Mittag","Nachm.","Abend","Nacht"],u,["Mitternacht","Morgen","Vormittag","Mittag","Nachmittag","Abend","Nacht"]],["00:00",["05:00","10:00"],["10:00","12:00"],["12:00","13:00"],["13:00","18:00"],["18:00","24:00"],["00:00","05:00"]]]; function plural_locale_de_CH(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_de_CH = ["de-CH",[["AM","PM"],u,u],u,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So","Mo","Di","Mi","Do","Fr","Sa"]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],u,u],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",u,"{1} 'um' {0}",u],[".","’",";","%","+","-","E","·","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00;¤-#,##0.00","#E0"],"CHF","CHF","Schweizer Franken",{"ATS":["öS"],"AUD":["AU$","$"],"BGM":["BGK"],"BGO":["BGJ"],"BYN":[u,"р."],"CUC":[u,"Cub$"],"DEM":["DM"],"EUR":[],"FKP":[u,"Fl£"],"GHS":[u,"₵"],"GNF":[u,"F.G."],"KMF":[u,"FC"],"PHP":[u,"₱"],"RON":[u,"L"],"RUR":[u,"р."],"RWF":[u,"F.Rw"],"SYP":[],"THB":["฿"],"TWD":["NT$"],"XXX":[],"ZMW":[u,"K"]},"ltr", plural_locale_de_CH]; export const locale_extra_de_CH = [[["Mitternacht","morgens","vorm.","mittags","nachm.","abends","nachts"],u,["Mitternacht","morgens","vormittags","mittags","nachmittags","abends","nachts"]],[["Mitternacht","Morgen","Vorm.","Mittag","Nachm.","Abend","Nacht"],u,["Mitternacht","Morgen","Vormittag","Mittag","Nachmittag","Abend","Nacht"]],["00:00",["05:00","10:00"],["10:00","12:00"],["12:00","13:00"],["13:00","18:00"],["18:00","24:00"],["00:00","05:00"]]]; function plural_locale_el(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_el = ["el",[["πμ","μμ"],["π.μ.","μ.μ."],u],u,[["Κ","Δ","Τ","Τ","Π","Π","Σ"],["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέ
{ "end_byte": 34849, "start_byte": 30923, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_34851_39127
τη","Παρασκευή","Σάββατο"],["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"]],u,[["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]],[["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]],[["π.Χ.","μ.Χ."],u,["προ Χριστού","μετά Χριστόν"]],1,[6,0],["d/M/yy","d MMM y","d MMMM y","EEEE d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} - {0}",u],[",",".",";","%","+","-","e","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"EUR","€","Ευρώ",{"BYN":[u,"р."],"GRD":["Δρχ"],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"THB":["฿"]},"ltr", plural_locale_el]; export const locale_extra_el = [[["πρωί","μεσημ.","απόγ.","βράδυ"],u,["το πρωί","το μεσημέρι","το απόγευμα","το βράδυ"]],[["πρωί","μεσημ.","απόγ.","βράδυ"],u,["πρωί","μεσημέρι","απόγευμα","βράδυ"]],[["04:00","12:00"],["12:00","17:00"],["17:00","20:00"],["20:00","04:00"]]]; function plural_locale_en_AU(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_en_AU = ["en-AU",[["am","pm"],u,u],u,[["Su.","M.","Tu.","W.","Th.","F.","Sa."],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mon","Tu","Wed","Th","Fri","Sat"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],1,[6,0],["d/M/yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","e","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"AUD","$","Australian Dollar",{"AUD":["$"],"BDT":[u,"Tk"],"BRL":[u,"R$"],"CAD":[u,"$"],"CNY":[u,"¥"],"CUP":[u,"₱"],"EGP":[u,"£"],"EUR":[u,"€"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"ISK":[u,"Kr"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"PYG":[u,"Gs"],"SCR":["Rs"],"SEK":[u,"Kr"],"TWD":[u,"$"],"USD":[u,"$"],"UYU":[u,"$U"],"VND":[u,"₫"],"XAF":[],"XCD":[u,"$"],"XOF":[],"XPF":["CFP"]},"ltr", plural_locale_en_AU]; export const locale_extra_en_AU = [[["midnight","midday","morning","afternoon","evening","night"],u,["midnight","midday","in the morning","in the afternoon","in the evening","at night"]],[["midnight","midday","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_en_CA(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_en_CA = ["en-CA",[["am","pm"],["a.m.","p.m."],u],[["a.m.","pm"],["a.m.","p.m."],u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["y-MM-dd","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[".",",","
{ "end_byte": 39127, "start_byte": 34851, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_39132_44822
","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"CAD","$","Canadian Dollar",{"CAD":["$"],"JPY":["JP¥","¥"],"USD":["US$","$"]},"ltr", plural_locale_en_CA]; export const locale_extra_en_CA = [[["mid","n","mor","aft","eve","night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["mid","noon","mor","aft","eve","night"],["midnight","noon","morning","afternoon","evening","night"],u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_en_GB(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_en_GB = ["en-GB",[["a","p"],["am","pm"],u],[["am","pm"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],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}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"GBP","£","British Pound",{"JPY":["JP¥","¥"],"USD":["US$","$"]},"ltr", plural_locale_en_GB]; export const locale_extra_en_GB = [[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_en_IE(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_en_IE = ["en-IE",[["a","p"],["am","pm"],["a.m.","p.m."]],[["am","pm"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],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}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"EUR","€","Euro",{"JPY":["JP¥","¥"],"USD":["US$","$"]},"ltr", plural_locale_en_IE]; export const locale_extra_en_IE = [[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_en_IN(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_en_IN = ["en-IN",[["a","p"],["am","pm"],u],[["am","pm"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[0,0],["dd/MM/yy","dd-MMM-y","d MMMM y","EEEE, d MMMM, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##,##0%","¤#,##,##0.00","#E0"],"INR","₹","Indian Rupee",{"JPY":["JP¥","¥"]},"ltr", plural_locale_en_IN]; export const locale_extra_en_IN = [[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_en_SG(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_en_SG = ["en-SG",[["a","p"],["am","pm"],u],[["am","pm"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["d/
{ "end_byte": 44822, "start_byte": 39132, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_44827_49419
,"d MMM y","d MMMM y","EEEE, d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"SGD","$","Singapore Dollar",{"JPY":["JP¥","¥"],"SGD":["$"],"USD":["US$","$"]},"ltr", plural_locale_en_SG]; export const locale_extra_en_SG = [[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_en_ZA(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_en_ZA = ["en-ZA",[["a","p"],["am","pm"],u],[["am","pm"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["y/MM/dd","dd MMM y","dd MMMM y","EEEE, dd MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"ZAR","R","South African Rand",{"JPY":["JP¥","¥"],"USD":["US$","$"],"ZAR":["R"]},"ltr", plural_locale_en_ZA]; export const locale_extra_en_ZA = [[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_es(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, '$2')) || 0; if (n === 1) return 1; if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5)) return 4; return 5; } export const locale_es = ["es",[["a. m.","p. m."],u,u],u,[["D","L","M","X","J","V","S"],["dom","lun","mar","mié","jue","vie","sáb"],["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["DO","LU","MA","MI","JU","VI","SA"]],u,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],u,[["a. C.","d. C."],u,["antes de Cristo","después de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1}, {0}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"EGP":[],"ESP":["₧"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"RON":[u,"L"],"THB":["฿"],"TWD":[u,"NT$"],"USD":["US$","$"],"XAF":[],"XCD":[u,"$"],"XOF":[]},"ltr", plural_locale_es]; export const locale_extra_es = [[["del mediodía","de la madrugada","de la mañana","de la tarde","de la noche"],u,u],[["mediodía","madrugada","mañana","tarde","noche"],u,u],["12:00",["00:00","06:00"],["06:00","12:00"],["12:00","20:00"],["20:00","24:00"]]]; function plural_locale_es_419(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, '$2')) || 0; if (n === 1) return 1; if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5)) return 4; return 5; } export const locale_es_419 = ["es-419",[["a. m.","p. m."],u,u],u,[["d","l","m","m","j","v","s"],["dom","lun","mar","mié","jue","vie","sáb"],["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["DO","LU","MA","MI","JU","VI","SA"]],[["D","L","M","M","J","V","S"],["dom","lun","mar","mié",
{ "end_byte": 49419, "start_byte": 44827, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_49421_53977
ue","vie","sáb"],["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["DO","LU","MA","MI","JU","VI","SA"]],[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],u,[["a. C.","d. C."],u,["antes de Cristo","después de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}","{1} {0}","{1}, {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","¤#,##0.00","#E0"],"EUR","EUR","euro",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"ESP":["₧"],"EUR":[u,"€"],"FKP":[u,"FK£"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"RON":[u,"L"],"SSP":[u,"SD£"],"SYP":[u,"S£"],"TWD":[u,"NT$"],"USD":[u,"$"],"VEF":[u,"BsF"],"VND":[u,"₫"],"XAF":[],"XCD":[u,"$"],"XOF":[]},"ltr", plural_locale_es_419]; export const locale_extra_es_419 = [[["del mediodía","de la madrugada","de la mañana","de la tarde","de la noche"],u,u],[["mediodía","madrugada","mañana","tarde","noche"],u,u],["12:00",["00:00","06:00"],["06:00","12:00"],["12:00","20:00"],["20:00","24:00"]]]; function plural_locale_es_MX(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, '$2')) || 0; if (n === 1) return 1; if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5)) return 4; return 5; } export const locale_es_MX = ["es-MX",[["a. m.","p. m."],u,u],u,[["D","L","M","M","J","V","S"],["dom","lun","mar","mié","jue","vie","sáb"],["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["DO","LU","MA","MI","JU","VI","SA"]],u,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],u,[["a. C.","d. C."],u,["antes de Cristo","después de Cristo"]],0,[6,0],["dd/MM/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}","{1} {0}","{1}, {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","¤#,##0.00","#E0"],"MXN","$","peso mexicano",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"p."],"CAD":[u,"$"],"CNY":[u,"¥"],"ESP":["₧"],"EUR":[u,"€"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MRO":["MRU"],"MRU":["UM"],"MXN":["$"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"],"XAF":[],"XCD":[u,"$"],"XOF":[]},"ltr", plural_locale_es_MX]; export const locale_extra_es_MX = [[["del mediodía","de la madrugada","mañana","de la tarde","de la noche"],["del mediodía","de la madrugada","de la mañana","de la tarde","de la noche"],u],[["mediodía","madrugada","mañana","tarde","noche"],u,u],["12:00",["00:00","06:00"],["06:00","12:00"],["12:00","20:00"],["20:00","24:00"]]]; function plural_locale_es_US(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, '$2')) || 0; if (n === 1) return 1; if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5)) return 4; return 5; } export const locale_es_US = ["es-US",[["a. m.","p. m."],u,u],u,[["D","L","M","M","J","V","S"],["dom","lun","mar","mié","jue","vie","sáb"],["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["DO","LU","MA","MI","JU","VI","SA"]],u,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],u,[["a. C.","d. C."],u,["antes de Cristo","después de Cristo"]],0,[6,0],["d/M/y","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","¤#,##0.00","#E0"],"USD","$","dólar estadounidense",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"ESP":["₧"],"EUR":[u
{ "end_byte": 53977, "start_byte": 49421, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_53982_58364
,"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":[u,"NT$"],"VND":[u,"₫"],"XAF":[],"XCD":[u,"$"],"XOF":[]},"ltr", plural_locale_es_US]; export const locale_extra_es_US = [[["del mediodía","de la madrugada","de la mañana","de la tarde","de la noche"],u,u],[["mediodía","madrugada","mañana","tarde","noche"],u,u],["12:00",["00:00","06:00"],["06:00","12:00"],["12:00","20:00"],["20:00","24:00"]]]; function plural_locale_et(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_et = ["et",[["AM","PM"],u,u],u,[["P","E","T","K","N","R","L"],u,["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"],["P","E","T","K","N","R","L"]],u,[["J","V","M","A","M","J","J","A","S","O","N","D"],["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]],u,[["eKr","pKr"],u,["enne Kristust","pärast Kristust"]],1,[6,0],["dd.MM.yy","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}",u,u,u],[","," ",";","%","+","−","×10^","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"EUR","€","euro",{"AUD":["AU$","$"],"EEK":["kr"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_et]; export const locale_extra_et = [[["keskööl","keskpäeval","hommikul","pärastlõunal","õhtul","öösel"],u,u],[["kesköö","keskpäev","hommik","pärastlõuna","õhtu","öö"],u,u],["00:00","12:00",["05:00","12:00"],["12:00","18:00"],["18:00","23:00"],["23:00","05:00"]]]; function plural_locale_eu(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_eu = ["eu",[["g","a"],["AM","PM"],u],[["AM","PM"],u,u],[["I","A","A","A","O","O","L"],["ig.","al.","ar.","az.","og.","or.","lr."],["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],["ig.","al.","ar.","az.","og.","or.","lr."]],u,[["U","O","M","A","M","E","U","A","I","U","A","A"],["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe."],["urtarrilak","otsailak","martxoak","apirilak","maiatzak","ekainak","uztailak","abuztuak","irailak","urriak","azaroak","abenduak"]],[["U","O","M","A","M","E","U","A","I","U","A","A"],["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe."],["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"]],[["a","o"],["K.a.","K.o."],["K.a.","Kristo ondoren"]],1,[6,0],["yy/M/d","y('e')'ko' MMM d('a')","y('e')'ko' MMMM'ren' d('a')","y('e')'ko' MMMM'ren' d('a'), EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss (z)","HH:mm:ss (zzzz)"],["{1} {0}",u,u,u],[",",".",";","%","+","−","E","×","‰","∞","NaN",":"],["#,##0.###","% #,##0","#,##0.00 ¤","#E0"],"EUR","€","euroa",{"BYN":[u,"р."],"ESP":["₧"],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"]},"ltr", plural_locale_eu]; export const locale_extra_eu = [[["gauerdia","goizald.","goizeko","eguerd.","arrats.","iluntz.","gaueko"],u,["gauerdia","goizaldeko","goizeko","eguerdiko","arratsaldeko","iluntzeko","gaueko"]],[["gauerdia","goizald.","goiza","eguerd.","arrats.","iluntz.","gaua"],["gauerdia","goiz.","goiza","eguerd.","arrats.","iluntz.","gaua"],["gauerdia","goizaldea","goiza","eguerdia","arratsaldea","iluntzea","gaua"]],["00:00",["00:00","06:00"],["06:00","12:00"],["12:00","14:00"],["14:00","19:00"],["19:00","21:00"],["21:00","24:00"]]]; function plural_locale_fa(val: number): number { const n = val, i = Math.floor(Math.abs(val)); if (i === 0 || n === 1) return 1; return 5; } export const locale_fa = ["fa",[["ق","ب"],["ق.ظ.","ب.ظ."],["قبل‌ازظهر","بعدازظهر"]],u,[["ی","د","س","چ","پ","ج","ش"],["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],u,["۱ش","۲ش","۳ش","۴ش","۵ش","ج","ش"]],u,[["ژ","ف","م","آ","م","ژ","ژ","ا","س","ا","ن","د"],["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],["ژانویهٔ","فوریهٔ","مارس","آوریل","مهٔ","ژوئن","ژوئیهٔ","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"]],[["ژ","ف","م","آ","م","ژ","ژ","ا","س","ا","ن","د"],["ژانویه","فو
{ "end_byte": 58364, "start_byte": 53982, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_58366_62563
ه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],u],[["ق","م"],["ق.م.","م."],["قبل از میلاد","میلادی"]],6,[5,5],["y/M/d","d MMM y","d MMMM y","EEEE d MMMM y"],["H:mm","H:mm:ss","H:mm:ss (z)","H:mm:ss (zzzz)"],["{1}،‏ {0}",u,"{1}، ساعت {0}",u],[".",",",";","%","‎+","‎−","E","×","‰","∞","ناعدد",":"],["#,##0.###","#,##0%","‎¤ #,##0.00","#E0"],"IRR","ریال","ریال ایران",{"AFN":["؋"],"BYN":[u,"р."],"CAD":["$CA","$"],"CNY":["¥CN","¥"],"HKD":["$HK","$"],"IRR":["ریال"],"MXN":["$MX","$"],"NZD":["$NZ","$"],"PHP":[u,"₱"],"THB":["฿"],"XCD":["$EC","$"],"XOF":["فرانک CFA"]},"rtl", plural_locale_fa]; export const locale_extra_fa = [[["ب","ص","ظ","ع","ش","ن"],["بامداد","صبح","ظهر","عصر","شب","نیمه‌شب"],["بامداد","صبح","بعدازظهر","عصر","شب","نیمه‌شب"]],[["ب","ص","ظ","ع","ش","ن"],["بامداد","صبح","ظهر","عصر","شب","نیمه‌شب"],u],[["01:00","04:00"],["04:00","12:00"],["12:00","13:00"],["13:00","19:00"],["19:00","24:00"],["00:00","01:00"]]]; function plural_locale_fi(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_fi = ["fi",[["ap.","ip."],u,u],u,[["S","M","T","K","T","P","L"],["su","ma","ti","ke","to","pe","la"],["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"],["su","ma","ti","ke","to","pe","la"]],[["S","M","T","K","T","P","L"],["su","ma","ti","ke","to","pe","la"],["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],["su","ma","ti","ke","to","pe","la"]],[["T","H","M","H","T","K","H","E","S","L","M","J"],["tammik.","helmik.","maalisk.","huhtik.","toukok.","kesäk.","heinäk.","elok.","syysk.","lokak.","marrask.","jouluk."],["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]],[["T","H","M","H","T","K","H","E","S","L","M","J"],["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]],[["eKr","jKr"],["eKr.","jKr."],["ennen Kristuksen syntymää","jälkeen Kristuksen syntymän"]],1,[6,0],["d.M.y",u,"d. MMMM y","cccc d. MMMM y"],["H.mm","H.mm.ss","H.mm.ss z","H.mm.ss zzzz"],["{1} {0}","{1} 'klo' {0}",u,u],[","," ",";","%","+","−","E","×","‰","∞","epäluku","."],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{"AOA":[],"ARS":[],"AUD":[],"BAM":[],"BBD":[],"BDT":[],"BMD":[],"BND":[],"BOB":[],"BRL":[],"BSD":[],"BWP":[],"BZD":[],"CAD":[],"CLP":[],"CNY":[],"COP":[],"CRC":[],"CUC":[],"CUP":[],"CZK":[],"DKK":[],"DOP":[],"EGP":[],"ESP":[],"FIM":["mk"],"FJD":[],"FKP":[],"GEL":[],"GIP":[],"GNF":[],"GTQ":[],"GYD":[],"HKD":[],"HNL":[],"HRK":[],"HUF":[],"IDR":[],"ILS":[],"INR":[],"ISK":[],"JMD":[],"KHR":[],"KMF":[],"KPW":[],"KRW":[],"KYD":[],"KZT":[],"LAK":[],"LBP":[],"LKR":[],"LRD":[],"LTL":[],"LVL":[],"MGA":[],"MMK":[],"MNT":[],"MUR":[],"MXN":[],"MYR":[],"NAD":[],"NGN":[],"NIO":[],"NOK":[],"NPR":[],"NZD":[],"PHP":[],"PKR":[],"PLN":[],"PYG":[],"RON":[],"RWF":[],"SBD":[],"SEK":[],"SGD":[],"SHP":[],"SRD":[],"SSP":[],"STN":[u,"STD"],"SYP":[],"THB":[],"TOP":[],"TRY":[],"TTD":[],"TWD":[],"UAH":[],"UYU":[],"VEF":[],"VND":[],"XCD":[],"XPF":[],"XXX":[],"ZAR":[],"ZMW":[]},"ltr", plural_locale_fi]; export const locale_extra_fi = [[["ky.","kp.","aamulla","ap.","ip.","illalla","yöllä"],["keskiyöllä","keskip.","aamulla","aamup.","iltap.","illalla","yöllä"],["keskiyöllä","keskipäivällä","aamulla","aamupäivällä","iltapäivällä","illalla","yöllä"]],[["ky.","kp.","aamu","ap.","ip.","ilta","yö"],["keskiyö","keskip.","aamu","aamup.","iltap.","ilta","yö"],["keskiyö","keskipäivä","aamu","aamupäivä","iltapäivä","ilta","yö"]],["00:00","12:00",["05:00","10:00"],["10:00","12:00"],["12:00","18:00"],["18:00","23:00"],["23:00","05:00"]]]; function plural_locale_fr(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, '$2')) || 0; if (i
{ "end_byte": 62563, "start_byte": 58366, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_62564_65402
=== 0 || i === 1) return 1; if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5)) return 4; return 5; } export const locale_fr = ["fr",[["AM","PM"],u,u],u,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]],u,[["av. J.-C.","ap. J.-C."],u,["avant Jésus-Christ","après Jésus-Christ"]],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}","{1}, {0}","{1} 'à' {0}",u],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{"ARS":["$AR","$"],"AUD":["$AU","$"],"BEF":["FB"],"BMD":["$BM","$"],"BND":["$BN","$"],"BYN":[u,"р."],"BZD":["$BZ","$"],"CAD":["$CA","$"],"CLP":["$CL","$"],"CNY":[u,"¥"],"COP":["$CO","$"],"CYP":["£CY"],"EGP":[u,"£E"],"FJD":["$FJ","$"],"FKP":["£FK","£"],"FRF":["F"],"GBP":["£GB","£"],"GIP":["£GI","£"],"HKD":[u,"$"],"IEP":["£IE"],"ILP":["£IL"],"ITL":["₤IT"],"JPY":[u,"¥"],"KMF":[u,"FC"],"LBP":["£LB","£L"],"MTP":["£MT"],"MXN":["$MX","$"],"NAD":["$NA","$"],"NIO":[u,"$C"],"NZD":["$NZ","$"],"PHP":[u,"₱"],"RHD":["$RH"],"RON":[u,"L"],"RWF":[u,"FR"],"SBD":["$SB","$"],"SGD":["$SG","$"],"SRD":["$SR","$"],"TOP":[u,"$T"],"TTD":["$TT","$"],"TWD":[u,"NT$"],"USD":["$US","$"],"UYU":["$UY","$"],"WST":["$WS"],"XCD":[u,"$"],"XPF":["FCFP"],"ZMW":[u,"Kw"]},"ltr", plural_locale_fr]; export const locale_extra_fr = [[["minuit","midi","mat.","ap.m.","soir","nuit"],u,["minuit","midi","du matin","de l’après-midi","du soir","du matin"]],[["minuit","midi","mat.","ap.m.","soir","nuit"],u,["minuit","midi","matin","après-midi","soir","nuit"]],["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","04:00"]]]; function plural_locale_fr_CA(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, '$2')) || 0; if (i === 0 || i === 1) return 1; if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5)) return 4; return 5; } export const locale_fr_CA = ["fr-CA",[["a","p"],["a.m.","p.m."],u],[["a.m.","p.m."],u,u],[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","févr.","mars","avr.","mai","juin
{ "end_byte": 65402, "start_byte": 62564, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_65404_68635
"juill.","août","sept.","oct.","nov.","déc."],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]],u,[["av. J.-C.","ap. J.-C."],u,["avant Jésus-Christ","après Jésus-Christ"]],0,[6,0],["y-MM-dd","d MMM y","d MMMM y","EEEE d MMMM y"],["HH 'h' mm","HH 'h' mm 'min' ss 's'","HH 'h' mm 'min' ss 's' z","HH 'h' mm 'min' ss 's' zzzz"],["{1} {0}","{1}, {0}","{1} 'à' {0}",u],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"CAD","$","dollar canadien",{"AUD":["$ AU","$"],"BEF":["FB"],"BYN":[u,"Br"],"CAD":["$"],"CYP":["£CY"],"EGP":[u,"£E"],"FRF":["F"],"GEL":[],"HKD":["$ HK","$"],"IEP":["£IE"],"ILP":["£IL"],"ILS":[u,"₪"],"INR":[u,"₹"],"ITL":["₤IT"],"KRW":[u,"₩"],"LBP":[u,"£L"],"MTP":["£MT"],"MXN":[u,"$"],"NZD":["$ NZ","$"],"PHP":[u,"₱"],"RHD":["$RH"],"RON":[u,"L"],"RWF":[u,"FR"],"SGD":["$ SG","$"],"TOP":[u,"$T"],"TWD":[u,"NT$"],"USD":["$ US","$"],"VND":[u,"₫"],"XAF":[],"XCD":[u,"$"],"XOF":[],"XPF":[]},"ltr", plural_locale_fr_CA]; export const locale_extra_fr_CA = [[["minuit","midi","mat.","après-midi","soir","mat."],["minuit","midi","du mat.","après-midi","du soir","du mat."],["minuit","midi","du matin","de l’après-midi","du soir","du matin"]],[["minuit","midi","mat.","après-midi","soir","mat."],["minuit","midi","mat.","après-midi","soir","nuit"],["minuit","midi","matin","après-midi","soir","nuit"]],["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","04:00"]]]; function plural_locale_ga(val: number): number { const n = val; 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 const locale_ga = ["ga",[["r.n.","i.n."],u,u],u,[["D","L","M","C","D","A","S"],["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],["Do","Lu","Má","Cé","Dé","Ao","Sa"]],u,[["E","F","M","A","B","M","I","L","M","D","S","N"],["Ean","Feabh","Márta","Aib","Beal","Meith","Iúil","Lún","MFómh","DFómh","Samh","Noll"],["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"]],u,[["RC","AD"],u,["Roimh Chríost","Anno Domini"]],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}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","Nuimh",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"EUR","€","Euro",{"RUR":[u,"р."],"THB":["฿"],"TWD":["NT$"],"XXX":[]},"ltr", plural_locale_ga]; export const locale_extra_ga = []; function plural_locale_gl(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_gl = ["gl",[["a.m.","p.m."],u,u],u,[["d.","l.","m.","m.","x.","v.","s."],["dom.","luns","mar.","mér.","xov.","ven.","sáb."],["domingo","luns","martes","mércores","xoves","venres","sábado"],["do.","lu.","ma.","mé.","xo.","ve.","sá."]],[["D","L","M","M","X","V","S"],["Dom.","Luns","Mar.","Mér.","Xov.","
{ "end_byte": 68635, "start_byte": 65404, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_68637_71002
n.","Sáb."],["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"],["Do","Lu","Ma","Mé","Xo","Ve","Sá"]],[["x.","f.","m.","a.","m.","x.","x.","a.","s.","o.","n.","d."],["xan.","feb.","mar.","abr.","maio","xuño","xul.","ago.","set.","out.","nov.","dec."],["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro"]],[["X","F","M","A","M","X","X","A","S","O","N","D"],["Xan.","Feb.","Mar.","Abr.","Maio","Xuño","Xul.","Ago.","Set.","Out.","Nov.","Dec."],["Xaneiro","Febreiro","Marzo","Abril","Maio","Xuño","Xullo","Agosto","Setembro","Outubro","Novembro","Decembro"]],[["a.C.","d.C."],u,["antes de Cristo","despois de Cristo"]],1,[6,0],["dd/MM/yy","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{0}, {1}",u,"{0} 'do' {1}",u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{"BYN":[u,"Br"],"ESP":["₧"],"JPY":["JP¥","¥"],"KMF":[u,"FC"],"MXN":["$MX","$"],"PHP":[u,"₱"],"RUB":[u,"руб"],"THB":["฿"],"TWD":["NT$"],"XCD":[u,"$"]},"ltr", plural_locale_gl]; export const locale_extra_gl = [[["da noite","da madrugada","da mañá","do mediodía","da tarde","da noite"],u,u],[["medianoite","madrugada","mañá","mediodía","tarde","noite"],u,u],["00:00",["00:00","06:00"],["06:00","12:00"],["12:00","13:00"],["13:00","21:00"],["21:00","24:00"]]]; function plural_locale_gsw(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_gsw = ["gsw",[["vorm.","nam."],u,["am Vormittag","am Namittag"]],[["vorm.","nam."],u,["Vormittag","Namittag"]],[["S","M","D","M","D","F","S"],["Su.","Mä.","Zi.","Mi.","Du.","Fr.","Sa."],["Sunntig","Määntig","Ziischtig","Mittwuch","Dunschtig","Friitig","Samschtig"],["Su.","Mä.","Zi.","Mi.","Du.","Fr.","Sa."]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","März","April","Mai","Juni","Juli","Auguscht","Septämber","Oktoober","Novämber","Dezämber"]],u,[["v. Chr.","n. Chr."],u,u],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[".","’",";","%","+","−","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"C
{ "end_byte": 71002, "start_byte": 68637, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_71004_73189
","CHF","Schwiizer Franke",{"ATS":["öS"]},"ltr", plural_locale_gsw]; export const locale_extra_gsw = [[["Mitternacht","am Morge","zmittag","am Namittag","zaabig","znacht"],u,u],[["Mitternacht","am Morge","zmittag","am Namittag","zaabig","znacht"],u,["Mitternacht","Morge","Mittag","Namittag","Aabig","Nacht"]],["00:00",["05:00","12:00"],["12:00","14:00"],["14:00","18:00"],["18:00","24:00"],["00:00","05:00"]]]; function plural_locale_gu(val: number): number { const n = val, i = Math.floor(Math.abs(val)); if (i === 0 || n === 1) return 1; return 5; } export const locale_gu = ["gu",[["AM","PM"],u,u],u,[["ર","સો","મં","બુ","ગુ","શુ","શ"],["રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ"],["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"],["ર","સો","મં","બુ","ગુ","શુ","શ"]],u,[["જા","ફે","મા","એ","મે","જૂ","જુ","ઑ","સ","ઑ","ન","ડિ"],["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઑક્ટો","નવે","ડિસે"],["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટેમ્બર","ઑક્ટોબર","નવેમ્બર","ડિસેમ્બર"]],u,[["ઇ સ પુ","ઇસ"],["ઈ.સ.પૂર્વે","ઈ.સ."],["ઈસવીસન પૂર્વે","ઇસવીસન"]],0,[0,0],["d/M/yy","d MMM, y","d MMMM, y","EEEE, d MMMM, y"],["hh:mm a","hh:mm:ss a","hh:mm:ss a z","hh:mm:ss a zzzz"],["{1} {0}",u,"{1} એ {0} વાગ્યે",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##,##0%","¤#,##,##0.00","[#E0]"],"INR","₹","ભારતીય રૂપિયા",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"MUR":[u,"રૂ."],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"]},"ltr", plural_locale_gu]; export const locale_extra_gu = [[["મ.રાત્રિ","સવારે","બપોરે","સાંજે","રાત્રે"],["મધ્યરાત્રિ","સવારે","બપોરે","સાંજે","રાત્રે"],u],[["મધ્યરાત્રિ","સવારે","બપોરે","સાંજે","રાત્રે"],u,["મધ્યરાત્રિ","સવાર","બપોર","સાંજ","રાત્રિ"]],["00:00",["04:00","12:00"],["12:00","16:00"],["16:00","20:00"],["20:00","04:00"]]]; function plural_locale_haw(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_haw = ["haw",[["AM","PM"],u,u],u,[["S","M","T","W","T","F","S"],["LP","P1","P2","P3","P4","P5","P6"],["Lāpule","Poʻakahi","Poʻalua","Poʻakolu","Poʻahā","Poʻalima","Poʻaono"],["LP","P1","P
{ "end_byte": 73189, "start_byte": 71004, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_73191_76281
,"P3","P4","P5","P6"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["Ian.","Pep.","Mal.","ʻAp.","Mei","Iun.","Iul.","ʻAu.","Kep.","ʻOk.","Now.","Kek."],["Ianuali","Pepeluali","Malaki","ʻApelila","Mei","Iune","Iulai","ʻAukake","Kepakemapa","ʻOkakopa","Nowemapa","Kekemapa"]],u,[["BCE","CE"],u,u],0,[6,0],["d/M/yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","USD",{"JPY":["JP¥","¥"]},"ltr", plural_locale_haw]; export const locale_extra_haw = []; function plural_locale_hi(val: number): number { const n = val, i = Math.floor(Math.abs(val)); if (i === 0 || n === 1) return 1; return 5; } export const locale_hi = ["hi",[["am","pm"],u,u],u,[["र","सो","मं","बु","गु","शु","श"],["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],["र","सो","मं","बु","गु","शु","श"]],u,[["ज","फ़","मा","अ","म","जू","जु","अ","सि","अ","न","दि"],["जन॰","फ़र॰","मार्च","अप्रैल","मई","जून","जुल॰","अग॰","सित॰","अक्तू॰","नव॰","दिस॰"],["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्तूबर","नवंबर","दिसंबर"]],u,[["ईसा-पूर्व","ईस्वी"],u,["ईसा-पूर्व","ईसवी सन"]],0,[0,0],["d/M/yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} को {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##,##0%","¤#,##,##0.00","[#E0]"],"INR","₹","भारतीय रुपया",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"RON":[u,"लेई"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_hi]; export const locale_extra_hi = [[["मध्यरात्रि","सुबह","दोपहर","शाम","रात"],u,u],[["आधी रात","सुबह","दोपहर","शाम","रात"],["मध्यरात्रि","सुबह","दोपहर","शाम","रात"],u],["00:00",["04:00","12:00"],["12:00","16:00"],["16:00","20:00"],["20:00","04:00"]]]; function plural_locale_hr(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, f = parseInt(val.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 const locale_hr = ["hr",[["AM","PM"],u,u],u,[["N","P","U","S","Č","P","S"],["ned","pon","uto","sri","čet","pet","sub"],["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["ned","pon","uto","sri","čet","pet","sub"]],[["n","p","u","s","č","p","s"],["ned","pon","uto","sri","čet","pet","sub"],["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["ned","pon","uto","sri","čet","pet","sub"]],[["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","
{ "end_byte": 76281, "start_byte": 73191, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_76283_79849
o"],["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenoga","prosinca"]],[["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]],[["pr.n.e.","AD"],["pr. Kr.","po. Kr."],["prije Krista","poslije Krista"]],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}",u,"{1} 'u' {0}",u],[",",".",";","%","+","−","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"HRK","kn","hrvatska kuna",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"EUR":[u,"€"],"GBP":[u,"£"],"HKD":[u,"$"],"HRK":["kn"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"RUR":[u,"р."],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"],"XCD":[u,"$"],"XPF":[],"XXX":[]},"ltr", plural_locale_hr]; export const locale_extra_hr = [[["ponoć","podne","ujutro","popodne","navečer","noću"],u,["ponoć","podne","ujutro","poslije podne","navečer","noću"]],[["ponoć","podne","ujutro","popodne","navečer","noću"],u,u],["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","04:00"]]]; function plural_locale_hu(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_hu = ["hu",[["de.","du."],u,u],u,[["V","H","K","Sz","Cs","P","Sz"],["V","H","K","Sze","Cs","P","Szo"],["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],["V","H","K","Sze","Cs","P","Szo"]],u,[["J","F","M","Á","M","J","J","A","Sz","O","N","D"],["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]],u,[["ie.","isz."],["i. e.","i. sz."],["Krisztus előtt","időszámításunk szerint"]],1,[6,0],["y. MM. dd.","y. MMM d.","y. MMMM d.","y. MMMM d., EEEE"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}",u,u,u],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"HUF","Ft","magyar forint",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"EUR":[u,"€"],"GBP":[u,"£"],"HKD":[u,"$"],"HUF":["Ft"],"ILS":[u,"₪"],"INR":[u,"₹"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"],"XCD":[u,"$"]},"ltr", plural_locale_hu]; export const locale_extra_hu = [[["éjfél","dél","reggel","de.","du.","este","éjjel","hajnal"],u,["éjfél","dél","reggel","délelőtt","délután","este","éjjel","hajnal"]],u,["00:00","12:00",["06:00","09:00"],["09:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","04:00"],["04:00","06:00"]]]; function plural_locale_hy(val: number): number { const n = val, i = Math.floor(Math.abs(val)); if (i === 0 || i === 1) return 1; return 5; } export const locale_hy = ["hy",[["ա","հ"],["AM","PM"],u],[["AM","PM"],u,u],[["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],["կիր","երկ","երք","չրք","հնգ","ուր","շբթ"],["կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"],["կր","եկ","եք","չք","հգ","ու","շբ"]],u,[["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],["հնվ","փտվ","մրտ","ապր","մյս","հնս","հլս","օգս","սեպ","հոկ","նոյ","դեկ"],["հունվարի","փետրվարի","մարտի","ապրիլի","մայիսի","հունիսի","հուլիսի","օգոստոսի","սեպտեմբերի","հոկտեմբերի","
{ "end_byte": 79849, "start_byte": 76283, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_79854_82826
բերի","դեկտեմբերի"]],[["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],["հնվ","փտվ","մրտ","ապր","մյս","հնս","հլս","օգս","սեպ","հոկ","նոյ","դեկ"],["հունվար","փետրվար","մարտ","ապրիլ","մայիս","հունիս","հուլիս","օգոստոս","սեպտեմբեր","հոկտեմբեր","նոյեմբեր","դեկտեմբեր"]],[["մ.թ.ա.","մ.թ."],u,["Քրիստոսից առաջ","Քրիստոսից հետո"]],1,[6,0],["dd.MM.yy","dd MMM, y թ.","dd MMMM, y թ.","y թ. MMMM d, EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",u,u,u],[","," ",";","%","+","-","E","×","‰","∞","ՈչԹ",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"AMD","֏","հայկական դրամ",{"AMD":["֏"],"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_hy]; export const locale_extra_hy = [[["կգ․","կօ․","առվ","ցրկ","երկ","գշր"],["կեսգիշեր","կեսօր","առավոտյան","ցերեկը","երեկոյան","գիշերը"],["կեսգիշերին","կեսօրին","առավոտյան","ցերեկվա","երեկոյան","գիշերվա"]],[["կեսգիշեր","կեսօր","առավոտ","ցերեկ","երեկո","գիշեր"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","06:00"]]]; function plural_locale_id(val: number): number { const n = val; return 5; } export const locale_id = ["id",[["AM","PM"],u,u],u,[["M","S","S","R","K","J","S"],["Min","Sen","Sel","Rab","Kam","Jum","Sab"],["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],["Min","Sen","Sel","Rab","Kam","Jum","Sab"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]],u,[["SM","M"],u,["Sebelum Masehi","Masehi"]],0,[6,0],["dd/MM/yy","d MMM y","d MMMM y","EEEE, dd MMMM y"],["HH.mm","HH.mm.ss","HH.mm.ss z","HH.mm.ss zzzz"],["{1} {0}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN","."],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"IDR","Rp","Rupiah Indonesia",{"AUD":["AU$","$"],"BYN":[u,"р."],"IDR":["Rp"],"INR":["Rs","₹"],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"],"XXX":[]},"ltr", plural_locale_id]; export const locale_extra_id = [[["tengah malam","tengah hari","pagi","siang","sore","malam"],u,u],u,["00:00","12:00",["00:00","10:00"],["10:00","15:00"],["15:00","18:00"],["18:00","24:00"]]]; export const locale_in = locale_id; export const locale_extra_in = locale_extra_id; function plural_locale_is(val: number): number { const n = val, i = Math.floor(Math.abs(val)), t = parseInt(val.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0; if (t === 0 && (i % 10 === 1 && !(i % 100 === 11)) || !(t === 0)) return 1; return 5; } export const locale_is = ["is",[["f.","e."],["f.h.","e.h."],u],[["f.h.","e.h."],u,u],[["S","M","Þ","M","F","F","L"],["sun.","mán.","þri.","mið.","fim.","fös.","lau."],["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"],["su.","má.","þr.","mi.","fi.","fö.","la."]],u,[["J","F","M","A","M","J","J","Á","S","O","N",
{ "end_byte": 82826, "start_byte": 79854, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_82831_86686
["jan.","feb.","mar.","apr.","maí","jún.","júl.","ágú.","sep.","okt.","nóv.","des."],["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"]],u,[["f.k.","e.k."],["f.Kr.","e.Kr."],["fyrir Krist","eftir Krist"]],1,[6,0],["d.M.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}",u,"{1} 'kl'. {0}",u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"ISK","ISK","íslensk króna",{"AUD":[u,"$"],"BRL":[u,"R$"],"CAD":[u,"$"],"EUR":[u,"€"],"GBP":[u,"£"],"INR":[u,"₹"],"JPY":["JP¥","¥"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"]},"ltr", plural_locale_is]; export const locale_extra_is = [[["mn.","h.","mrg.","sd.","kv.","n."],["miðnætti","hádegi","að morgni","síðdegis","að kvöldi","að nóttu"],u],[["mn.","hd.","mrg.","sd.","kv.","n."],["miðnætti","hádegi","morgunn","síðdegis","kvöld","nótt"],["miðnætti","hádegi","morgunn","eftir hádegi","kvöld","nótt"]],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","06:00"]]]; function plural_locale_it(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, '$2')) || 0; if (i === 1 && v === 0) return 1; if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5)) return 4; return 5; } export const locale_it = ["it",[["m.","p."],["AM","PM"],u],u,[["D","L","M","M","G","V","S"],["dom","lun","mar","mer","gio","ven","sab"],["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],["dom","lun","mar","mer","gio","ven","sab"]],u,[["G","F","M","A","M","G","L","A","S","O","N","D"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]],u,[["aC","dC"],["a.C.","d.C."],["avanti Cristo","dopo Cristo"]],1,[6,0],["dd/MM/yy","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}",u,"{1} {0}",u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"EUR","€","euro",{"BRL":[u,"R$"],"BYN":[u,"Br"],"EGP":[u,"£E"],"HKD":[u,"$"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MXN":[u,"$"],"NOK":[u,"NKr"],"THB":["฿"],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"]},"ltr", plural_locale_it]; export const locale_extra_it = [[["mezzanotte","mezzogiorno","di mattina","di pomeriggio","di sera","di notte"],u,["mezzanotte","mezzogiorno","di mattina","del pomeriggio","di sera","di notte"]],[["mezzanotte","mezzogiorno","mattina","pomeriggio","sera","notte"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","06:00"]]]; function plural_locale_he(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.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 const locale_he = ["he",[["לפנה״צ","אחה״צ"],u,u],[["לפנה״צ","אחה״צ"],["AM","PM"],u],[["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"],["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]],u,[["לפני","אחריי"],["לפנה״ס","לספירה"],["לפני הספירה","לספירה"]],0,[5,6],["d.M.y",
{ "end_byte": 86686, "start_byte": 82831, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_86687_89366
d בMMM y","d בMMMM y","EEEE, d בMMMM y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1}, {0}",u,"{1} בשעה {0}",u],[".",",",";","%","‎+","‎-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","‏#,##0.00 ¤;‏-#,##0.00 ¤","#E0"],"ILS","₪","שקל חדש",{"BYN":[u,"р"],"CNY":["‎CN¥‎","¥"],"ILP":["ל״י"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"]},"rtl", plural_locale_he]; export const locale_extra_he = [[["חצות","בבוקר","בצהריים","אחה״צ","בערב","בלילה","לפנות בוקר"],["חצות","בוקר","צהריים","אחר הצהריים","ערב","לילה","לפנות בוקר"],["חצות","בבוקר","בצהריים","אחר הצהריים","בערב","בלילה","לפנות בוקר"]],[["חצות","בוקר","צהריים","אחה״צ","ערב","לילה","לפנות בוקר"],u,["חצות","בוקר","צהריים","אחר הצהריים","ערב","לילה","לפנות בוקר"]],["00:00",["06:00","12:00"],["12:00","16:00"],["16:00","18:00"],["18:00","22:00"],["22:00","03:00"],["03:00","06:00"]]]; export const locale_iw = locale_he; export const locale_extra_iw = locale_extra_he; function plural_locale_ja(val: number): number { const n = val; return 5; } export const locale_ja = ["ja",[["午前","午後"],u,u],u,[["日","月","火","水","木","金","土"],u,["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],["日","月","火","水","木","金","土"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],u],u,[["BC","AD"],["紀元前","西暦"],u],0,[6,0],["y/MM/dd",u,"y年M月d日","y年M月d日EEEE"],["H:mm","H:mm:ss","H:mm:ss z","H時mm分ss秒 zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"JPY","¥","日本円",{"BYN":[u,"р."],"CNY":["元","¥"],"JPY":["¥"],"PHP":[u,"₱"],"RON":[u,"レイ"],"XXX":[]},"ltr", plural_locale_ja]; export const locale_extra_ja = [[["真夜中","正午","朝","昼","夕方","夜","夜中"],u,u],u,["00:00","12:00",["04:00","12:00"],["12:00","16:00"],["16:00","19:00"],["19:00","23:00"],["23:00","04:00"]]]; function plural_locale_ka(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_ka = ["ka",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["კ","ო","ს","ო","ხ","პ","შ"],["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"],["კვ","ორ","სმ","ოთ","ხთ","პრ","შბ"]],u,[["ი","თ","მ","ა","მ","ი","ი","ა","ს","ო","ნ","დ"],["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]],u,[["ძვ. წ.","ახ. წ."],u,["ძველი წელთაღრიცხვით","ახალი წელთაღრიცხვით"]],1,[6,0],["dd.MM.yy","d MMM. y","d MMMM, y","EEEE, dd MMMM, y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",u,u,u],[","," ",";",
{ "end_byte": 89366, "start_byte": 86687, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_89368_92035
","+","-","E","×","‰","∞","არ არის რიცხვი",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"GEL","₾","ქართული ლარი",{"AUD":[u,"$"],"BYN":[u,"р."],"CNY":[u,"¥"],"GEL":["₾"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":["NT$"],"USD":["US$","$"],"VND":[u,"₫"]},"ltr", plural_locale_ka]; export const locale_extra_ka = [[["შუაღამეს","შუადღ.","დილ.","ნაშუადღ.","საღ.","ღამ."],u,["შუაღამეს","შუადღეს","დილით","ნაშუადღევს","საღამოს","ღამით"]],[["შუაღამე","შუადღე","დილა","ნაშუადღევი","საღამო","ღამე"],u,u],["00:00","12:00",["05:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","05:00"]]]; function plural_locale_kk(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_kk = ["kk",[["AM","PM"],u,u],u,[["Ж","Д","С","С","Б","Ж","С"],["жс","дс","сс","ср","бс","жм","сб"],["жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі"],["жс","дс","сс","ср","бс","жм","сб"]],u,[["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],["қаң.","ақп.","нау.","сәу.","мам.","мау.","шіл.","там.","қыр.","қаз.","қар.","жел."],["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]],[["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],["қаң.","ақп.","нау.","сәу.","мам.","мау.","шіл.","там.","қыр.","қаз.","қар.","жел."],["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"]],[["б.з.д.","б.з."],u,["Біздің заманымызға дейін","біздің заманымыз"]],1,[6,0],["dd.MM.yy","y 'ж'. dd MMM","y 'ж'. d MMMM","y 'ж'. d MMMM, EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",u,u,u],[","," ",";","%","+","-","E","×","‰","∞","сан емес",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"KZT","₸","Қазақстан теңгесі",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"KZT":["₸"],"LSL":["ЛСЛ"],"PHP":[u,"₱"],"RUB":["₽"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_kk]; export const locale_extra_kk = [[["түнгі","түскі","таңғы","түстен кейінгі","кешкі","түнгі"],["түн жарымы","түскі","таңғы","түстен кейінгі","кешкі","түнгі"],u],[["түн жарымы","талтүс","таң","түстен кейін","кеш","түн"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_km(val: number): number { const n = val; return 5; } export const locale_km = ["km",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["អ","ច","អ","ព","ព","ស","ស"],["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហ","សុក្រ","សៅរ៍"],["អាទិត្យ","ច័ន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"],["អា","ច","អ","ពុ","ព្រ","សុ","ស"]],[["អ","ច","អ","ព","ព","ស","ស"],["អាទិត្យ","ចន
{ "end_byte": 92035, "start_byte": 89368, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_92036_93878
ទ","អង្គារ","ពុធ","ព្រហ","សុក្រ","សៅរ៍"],["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"],["អា","ច","អ","ពុ","ព្រ","សុ","ស"]],[["ម","ក","ម","ម","ឧ","ម","ក","ស","ក","ត","វ","ធ"],["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],u],u,[["មុន គ.ស.","គ.ស."],u,["មុន​គ្រិស្តសករាជ","គ្រិស្តសករាជ"]],0,[6,0],["d/M/yy","d MMM y","d MMMM y","EEEE d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} នៅ​ម៉ោង {0}",u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00¤","#E0"],"KHR","៛","រៀល​កម្ពុជា",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"KHR":["៛"],"LSL":["ឡូទី"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_km]; export const locale_extra_km = [[["អធ្រាត្រ","ថ្ងៃត្រង់","នៅពេល​ព្រឹក","នៅពេលរសៀល","នៅពេល​ល្ងាច","នៅពេល​យប់"],u,u],[["អធ្រាត្រ","ថ្ងៃ​ត្រង់","ព្រឹក","រសៀល","ល្ងាច","យប់"],u,u],["00:00","12:00",["00:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","24:00"]]]; function plural_locale_kn(val: number): number { const n = val, i = Math.floor(Math.abs(val)); if (i === 0 || n === 1) return 1; return 5; } export const locale_kn = ["kn",[["ಪೂ","ಅ"],["ಪೂರ್ವಾಹ್ನ","ಅಪರಾಹ್ನ"],u],[["ಪೂರ್ವಾಹ್ನ","ಅಪರಾಹ್ನ"],u,u],[["ಭಾ","ಸೋ","ಮಂ","ಬು","ಗು","ಶು","ಶ"],["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"],["ಭಾನುವಾರ","ಸೋಮವಾರ","ಮಂಗಳವಾರ","ಬುಧವಾರ","ಗುರುವಾರ","ಶುಕ್ರವಾರ","ಶನಿವಾರ"],["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"]],u,[["ಜ","ಫೆ","ಮಾ","ಏ","ಮೇ","ಜೂ","ಜು","ಆ","ಸೆ","ಅ","ನ","ಡಿ"],["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಏಪ್ರಿ","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗ","ಸೆಪ್ಟೆಂ","ಅಕ್ಟೋ","ನವೆಂ","ಡಿಸೆಂ"],["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಏಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟೆಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್"]],[["ಜ","ಫೆ","ಮಾ","ಏ","ಮೇ","ಜೂ","ಜು","ಆ","ಸೆ","ಅ","ನ","ಡಿ"],["ಜನ","ಫೆಬ್ರ","ಮಾರ್ಚ್","ಏಪ್ರಿ","ಮೇ","ಜೂನ್","ಜುಲೈ
{ "end_byte": 93878, "start_byte": 92036, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_93879_96709
,"ಆಗ","ಸೆಪ್ಟೆಂ","ಅಕ್ಟೋ","ನವೆಂ","ಡಿಸೆಂ"],["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಏಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟೆಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್"]],[["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"],u,["ಕ್ರಿಸ್ತ ಪೂರ್ವ","ಕ್ರಿಸ್ತ ಶಕ"]],0,[0,0],["d/M/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["hh:mm a","hh:mm:ss a","hh:mm:ss a z","hh:mm:ss a zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"INR","₹","ಭಾರತೀಯ ರೂಪಾಯಿ",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"RON":[u,"ಲೀ"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_kn]; export const locale_extra_kn = [[["ಮಧ್ಯರಾತ್ರಿ","ಬೆಳಗ್ಗೆ","ಮಧ್ಯಾಹ್ನ","ಸಂಜೆ","ರಾತ್ರಿ"],["ಮಧ್ಯ ರಾತ್ರಿ","ಬೆಳಗ್ಗೆ","ಮಧ್ಯಾಹ್ನ","ಸಂಜೆ","ರಾತ್ರಿ"],u],[["ಮಧ್ಯರಾತ್ರಿ","ಬೆಳಗ್ಗೆ","ಮಧ್ಯಾಹ್ನ","ಸಂಜೆ","ರಾತ್ರಿ"],u,u],["00:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_ko(val: number): number { const n = val; return 5; } export const locale_ko = ["ko",[["AM","PM"],u,["오전","오후"]],u,[["일","월","화","수","목","금","토"],u,["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],["일","월","화","수","목","금","토"]],u,[["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],u,u],u,[["BC","AD"],u,["기원전","서기"]],0,[6,0],["yy. M. d.","y. M. d.","y년 M월 d일","y년 M월 d일 EEEE"],["a h:mm","a h:mm:ss","a h시 m분 s초 z","a h시 m분 s초 zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"KRW","₩","대한민국 원",{"AUD":["AU$","$"],"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"RON":[u,"L"],"TWD":["NT$"],"USD":["US$","$"]},"ltr", plural_locale_ko]; export const locale_extra_ko = [[["자정","정오","새벽","오전","오후","저녁","밤"],u,u],u,["00:00","12:00",["03:00","06:00"],["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","03:00"]]]; function plural_locale_ky(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_ky = ["ky",[["тң","тк"],u,["таңкы","түштөн кийинки"]],u,[["Ж","Д","Ш","Ш","Б","Ж","И"],["жек.","дүй.","шейш.","шарш.","бейш.","жума","ишм."],["жекшемби","дүйшөмбү","шейшемби","шаршемби","бейшемби","жума","ишемби"],["жш.","дш.","шш.","шр.","бш.","жм.","иш."]],u,[["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],["янв.","фев.","мар.","апр.","май","июн.","июл.","авг.","сен.","окт.","ноя.","дек."],["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]],[["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]],[["б.з.ч.","б.з."],u,["биздин заманга чейин","биздин заман"]],1,[6,0],["d/M/yy","y-'ж'., d-MMM","y-'ж'., d-MMMM","y-'ж'., d-MMMM, EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:m
{ "end_byte": 96709, "start_byte": 93879, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_96711_99527
ss zzzz"],["{1} {0}",u,u,u],[","," ",";","%","+","-","E","×","‰","∞","сан эмес",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"KGS","сом","Кыргызстан сому",{"AUD":[u,"$"],"BMD":[u,"BD$"],"BRL":[u,"R$"],"BSD":[u,"B$"],"BYN":[u,"р."],"BZD":[u,"BZ$"],"CAD":[u,"C$"],"DOP":[u,"RD$"],"EGP":[u,"LE"],"GBP":[u,"£"],"HKD":[u,"HK$"],"HRK":[u,"Kn"],"ILS":[u,"₪"],"INR":[u,"₹"],"JMD":[u,"J$"],"JPY":["JP¥","¥"],"KGS":["сом"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"THB":["฿"],"TTD":[u,"TT$"],"TWD":[u,"NT$"],"USD":[u,"$"],"XCD":[u,"$"]},"ltr", plural_locale_ky]; export const locale_extra_ky = [[["түн орт","чт","эртң мн","түшт кйн","кечк","түн"],["түн ортосу","чак түш","эртең менен","түштөн кийин","кечинде","түн ичинде"],u],[["түн ортосу","чак түш","эртең менен","түштөн кийин","кечкурун","түн"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_ln(val: number): number { const n = val; if (n === Math.floor(n) && (n >= 0 && n <= 1)) return 1; return 5; } export const locale_ln = ["ln",[["ntɔ́ngɔ́","mpókwa"],u,u],u,[["e","y","m","m","m","m","p"],["eye","ybo","mbl","mst","min","mtn","mps"],["eyenga","mokɔlɔ mwa yambo","mokɔlɔ mwa míbalé","mokɔlɔ mwa mísáto","mokɔlɔ ya mínéi","mokɔlɔ ya mítáno","mpɔ́sɔ"],["eye","ybo","mbl","mst","min","mtn","mps"]],u,[["y","f","m","a","m","y","y","a","s","ɔ","n","d"],["yan","fbl","msi","apl","mai","yun","yul","agt","stb","ɔtb","nvb","dsb"],["sánzá ya yambo","sánzá ya míbalé","sánzá ya mísáto","sánzá ya mínei","sánzá ya mítáno","sánzá ya motóbá","sánzá ya nsambo","sánzá ya mwambe","sánzá ya libwa","sánzá ya zómi","sánzá ya zómi na mɔ̌kɔ́","sánzá ya zómi na míbalé"]],u,[["libóso ya","nsima ya Y"],u,["Yambo ya Yézu Krís","Nsima ya Yézu Krís"]],1,[6,0],["d/M/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}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"CDF","FC","Falánga ya Kongó",{"CDF":["FC"],"JPY":["JP¥","¥"],"USD":["US$","$"]},"ltr", plural_locale_ln]; export const locale_extra_ln = []; function plural_locale_lo(val: number): number { const n = val; return 5; } export const locale_lo = ["lo",[["ກ່ອນທ່ຽງ","ຫຼັງທ່ຽງ"],u,u],u,[["ອາ","ຈ","ອ","ພ","ພຫ","ສຸ","ສ"],["ອາທິດ","ຈັນ","ອັງຄານ","ພຸດ","ພະຫັດ","ສຸກ","ເສົາ"],["ວັນອາທິດ","ວັນຈັນ","ວັນອັງຄານ","ວັນພຸດ","ວັນພະຫັດ","ວັນສຸກ","ວັນເສົາ"],["ອາ.","ຈ.","ອ.","ພ.","ພຫ.","ສຸ.","ສ."]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["ມ.ກ.","ກ.ພ.","ມ.ນ.","ມ.ສ.","ພ.ພ.","ມິ.ຖ.","ກ.ລ.","ສ.ຫ.","ກ.ຍ.","ຕ.ລ.","ພ.ຈ.","ທ.ວ."],["ມັງກອນ","ກຸມພາ","ມີນາ","ເມສາ","ພຶດສະພາ","ມິຖຸນາ","ກໍລະກົດ","ສິງຫາ","ກັນຍາ","ຕຸລາ","ພະຈິກ","ທັນວາ"]],u,[["ກ່ອນ ຄ.ສ.","ຄ.ສ."],u,["ກ່ອນຄຣິດສັກກະລາດ","ຄຣິດສັກກະລາດ"]],0,[6,0],["d/M/y","d MMM y",
{ "end_byte": 99527, "start_byte": 96711, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_99528_102291
d MMMM y","EEEE ທີ d MMMM G y"],["H:mm","H:mm:ss","H ໂມງ m ນາທີ ss ວິນາທີ z","H ໂມງ m ນາທີ ss ວິນາທີ zzzz"],["{1}, {0}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","ບໍ່​ແມ່ນ​ໂຕ​ເລກ",":"],["#,##0.###","#,##0%","¤#,##0.00;¤-#,##0.00","#"],"LAK","₭","ລາວ ກີບ",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"LAK":["₭"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"]},"ltr", plural_locale_lo]; export const locale_extra_lo = [[["ທ່ຽງຄືນ","ຕອນທ່ຽງ","ຕອນເຊົ້າ","ຕອນທ່ຽງ","ຕອນແລງ","ກາງຄືນ"],["ທ່ຽງຄືນ","ຕອນທ່ຽງ","ຕອນເຊົ້າ","ຕອນບ່າຍ","ຕອນແລງ","ກາງຄືນ"],["ທ່ຽງຄືນ","ຕອນທ່ຽງ","ຕອນເຊົ້າ","ຕອນບ່າຍ","ຕອນແລງ","ຕອນກາງຄືນ"]],[["ທ່ຽງ​ຄືນ","ຕອນທ່ຽງ","​ເຊົ້າ","ສ","ແລງ","​ກາງ​ຄືນ"],["ທ່ຽງ​ຄືນ","ທ່ຽງ","​ເຊົ້າ","ສວຍ","ແລງ","​ກາງ​ຄືນ"],["ທ່ຽງຄືນ","ຕອນທ່ຽງ","​ເຊົ້າ","ສວຍ","ແລງ","​ກາງ​ຄືນ"]],["00:00","12:00",["05:00","12:00"],["12:00","16:00"],["16:00","20:00"],["20:00","05:00"]]]; function plural_locale_lt(val: number): number { const n = val, f = parseInt(val.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 const locale_lt = ["lt",[["pr. p.","pop."],["priešpiet","popiet"],u],u,[["S","P","A","T","K","P","Š"],["sk","pr","an","tr","kt","pn","št"],["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"],["Sk","Pr","An","Tr","Kt","Pn","Št"]],u,[["S","V","K","B","G","B","L","R","R","S","L","G"],["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio"]],[["S","V","K","B","G","B","L","R","R","S","L","G"],["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"]],[["pr. Kr.","po Kr."],u,["prieš Kristų","po Kristaus"]],1,[6,0],["y-MM-dd",u,"y 'm'. MMMM d 'd'.","y 'm'. MMMM d 'd'., EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[","," ",";","%","+","−","×10^","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","Euras",{"AUD":[u,"$"],"BDT":[],"BRL":[u,"R$"],"BYN":[u,"Br"],"CAD":[u,"$"],"CNY":[u,"¥"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[],"INR":[],"JPY":[u,"¥"],"KHR":[],"KRW":[u,"₩"],"LAK":[],"MNT":[],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"PLN":[u,"zl"],"PYG":[u,"Gs"],"RUB":[u,"rb"],"TWD":[u,"$"],"USD":[u,"$"],"VND":[],"XAF":[],"XCD":[u,"$"],"XOF":[],"XPF":[]},"ltr", plural_locale_lt]; export const loca
{ "end_byte": 102291, "start_byte": 99528, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_102293_104582
_extra_lt = [[["vidurnaktis","perpiet","rytas","popietė","vakaras","naktis"],u,u],[["vidurnaktis","vidurdienis","rytas","diena","vakaras","naktis"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","06:00"]]]; function plural_locale_lv(val: number): number { const n = val, v = val.toString().replace(/^[^.]*\.?/, '').length, f = parseInt(val.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 const locale_lv = ["lv",[["priekšp.","pēcp."],u,["priekšpusdienā","pēcpusdienā"]],[["priekšp.","pēcpusd."],u,["priekšpusdiena","pēcpusdiena"]],[["S","P","O","T","C","P","S"],["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"],["Sv","Pr","Ot","Tr","Ce","Pk","Se"]],[["S","P","O","T","C","P","S"],["Svētd.","Pirmd.","Otrd.","Trešd.","Ceturtd.","Piektd.","Sestd."],["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"],["Sv","Pr","Ot","Tr","Ce","Pk","Se"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","febr.","marts","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"]],u,[["p.m.ē.","m.ē."],u,["pirms mūsu ēras","mūsu ērā"]],1,[6,0],["dd.MM.yy","y. 'gada' d. MMM","y. 'gada' d. MMMM","EEEE, y. 'gada' d. MMMM"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[","," ",";","%","+","-","E","×","‰","∞","NS",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"EUR","€","eiro",{"AUD":["AU$","$"],"BYN":[u,"р."],"GHS":[],"LVL":["Ls"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_lv]; export const locale_extra_lv = [[["pusnaktī","pusd.","no rīta","pēcpusd.","vakarā","naktī"],u,["pusnaktī","pusdienlaikā","no rīta","pēcpusdienā","vakarā","naktī"]],[["pusnakts","pusd.","rīts","pēcpusd.","vakars",
{ "end_byte": 104582, "start_byte": 102293, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_104584_107413
akts"],u,["pusnakts","pusdienlaiks","rīts","pēcpusdiena","vakars","nakts"]],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","23:00"],["23:00","06:00"]]]; function plural_locale_mk(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, f = parseInt(val.toString().replace(/^[^.]*\.?/, ''), 10) || 0; if (v === 0 && (i % 10 === 1 && !(i % 100 === 11)) || f % 10 === 1 && !(f % 100 === 11)) return 1; return 5; } export const locale_mk = ["mk",[["претпл.","попл."],u,["претпладне","попладне"]],u,[["н","п","в","с","ч","п","с"],["нед.","пон.","вто.","сре.","чет.","пет.","саб."],["недела","понеделник","вторник","среда","четврток","петок","сабота"],["нед.","пон.","вто.","сре.","чет.","пет.","саб."]],u,[["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],["јан.","фев.","мар.","апр.","мај","јун.","јул.","авг.","септ.","окт.","ноем.","дек."],["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"]],u,[["п.н.е.","н.е."],u,["пред нашата ера","од нашата ера"]],1,[6,0],["d.M.yy","d.M.y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, 'во' {0}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"MKD","ден.","Македонски денар",{"AUD":[u,"$"],"BYN":[u,"р."],"CNY":[u,"¥"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MKD":["ден."],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":[u,"NT$"],"USD":["US$","$"],"VND":[u,"₫"]},"ltr", plural_locale_mk]; export const locale_extra_mk = [[["полн.","напл.","утро","претпл.","попл.","веч.","ноќе"],["полноќ","напладне","наутро","претпладне","попладне","навечер","ноќе"],["полноќ","напладне","наутро","претпладне","попладне","навечер","по полноќ"]],[["полноќ","пладне","наутро","претпл.","попл.","навечер","по полноќ"],["полноќ","напладне","наутро","претпл.","попл.","навечер","по полноќ"],["на полноќ","напладне","наутро","претпладне","попладне","навечер","по полноќ"]],["00:00","12:00",["04:00","10:00"],["10:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","04:00"]]]; function plural_locale_ml(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_ml = ["ml",[["AM","PM"],u,u],u,[["ഞ","തി","ചൊ","ബു","വ്യാ","വെ","ശ"],["ഞായർ","തിങ്കൾ","ചൊവ്വ","ബുധൻ","വ്യാഴം","വെള്ളി","ശനി"],["ഞായറാഴ്‌ച","തിങ്കളാഴ്‌ച","ചൊവ്വാഴ്ച","ബുധനാഴ്‌ച","വ്യാഴാഴ്‌ച","വെള്ളിയാഴ്‌ച","ശനിയാഴ്‌ച"],["ഞാ","തി","ചൊ","ബു","വ്യാ","വെ","ശ"]],[["ഞാ","തി","ചൊ","ബു","വ്യാ","വെ","ശ"],["ഞായർ","തിങ്കൾ","ചൊവ്വ","ബുധൻ","വ്യാഴം","വെള്ളി","ശനി"],["ഞായറാഴ്‌ച","തിങ്കളാഴ്‌ച","ചൊവ്വാഴ്‌ച","ബുധനാഴ്‌ച","വ്യാഴാഴ്‌ച","വെള്ളിയാഴ്‌ച","ശനിയാഴ്‌ച"],["ഞാ","തി","ചൊ","ബു","വ്യാ","വെ","ശ"]],[["ജ","ഫെ","മാ","ഏ","മെ","ജൂൺ","ജൂ","ഓ","സ
{ "end_byte": 107413, "start_byte": 104584, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_107415_108551
,"ഒ","ന","ഡി"],["ജനു","ഫെബ്രു","മാർ","ഏപ്രി","മേയ്","ജൂൺ","ജൂലൈ","ഓഗ","സെപ്റ്റം","ഒക്ടോ","നവം","ഡിസം"],["ജനുവരി","ഫെബ്രുവരി","മാർച്ച്","ഏപ്രിൽ","മേയ്","ജൂൺ","ജൂലൈ","ഓഗസ്റ്റ്","സെപ്റ്റംബർ","ഒക്‌ടോബർ","നവംബർ","ഡിസംബർ"]],u,[["ക്രി.മു.","എഡി"],u,["ക്രിസ്‌തുവിന് മുമ്പ്","ആന്നോ ഡൊമിനി"]],0,[0,0],["d/M/yy","y, MMM d","y, MMMM d","y, MMMM d, EEEE"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##0%","¤#,##0.00","#E0"],"INR","₹","ഇന്ത്യൻ രൂപ",{"BYN":[u,"р."],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_ml]; export const locale_extra_ml = [[["അ","ഉച്ച","പുലർച്ചെ","രാവിലെ","ഉച്ചയ്ക്ക്","ഉച്ചതിരിഞ്ഞ്","വൈകുന്നേരം","സന്ധ്യ","രാത്രി"],["അർദ്ധരാത്രി","ഉച്ച","പുലർച്ചെ","രാവിലെ","ഉച്ചയ്ക്ക്","ഉച്ചതിരിഞ്ഞ്","വൈകുന്നേരം","സന്ധ്യ","രാത്രി"],u],[["അർദ്ധരാത്രി","ഉച്ച","പുലർച്ചെ","രാവിലെ","ഉച്ചയ്ക്ക്","ഉച്ചതിരിഞ്ഞ്","വൈകുന്നേരം","സന്ധ്യ","രാത്രി"],u,u],["00:00","12:00",["03:00","06:00"],["06:00","12:00"],["12:00","14:00"],["14:00","15:00"],["15:00","18:00"],["18:00","19:00"],["19:00","03:00"]]]; function plural_locale_mn(val:
{ "end_byte": 108551, "start_byte": 107415, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_108553_112352
umber): number { const n = val; if (n === 1) return 1; return 5; } export const locale_mn = ["mn",[["ү.ө.","ү.х."],u,u],u,[["Ня","Да","Мя","Лх","Пү","Ба","Бя"],u,["ням","даваа","мягмар","лхагва","пүрэв","баасан","бямба"],["Ня","Да","Мя","Лх","Пү","Ба","Бя"]],[["Ня","Да","Мя","Лх","Пү","Ба","Бя"],u,["Ням","Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба"],["Ня","Да","Мя","Лх","Пү","Ба","Бя"]],[["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],["нэгдүгээр сар","хоёрдугаар сар","гуравдугаар сар","дөрөвдүгээр сар","тавдугаар сар","зургаадугаар сар","долоодугаар сар","наймдугаар сар","есдүгээр сар","аравдугаар сар","арван нэгдүгээр сар","арван хоёрдугаар сар"]],[["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],["Нэгдүгээр сар","Хоёрдугаар сар","Гуравдугаар сар","Дөрөвдүгээр сар","Тавдугаар сар","Зургаадугаар сар","Долоодугаар сар","Наймдугаар сар","Есдүгээр сар","Аравдугаар сар","Арван нэгдүгээр сар","Арван хоёрдугаар сар"]],[["МЭӨ","МЭ"],u,["манай эриний өмнөх","манай эриний"]],1,[6,0],["y.MM.dd","y 'оны' MMM'ын' d","y 'оны' MMMM'ын' d","y 'оны' MMMM'ын' d, EEEE 'гараг'"],["HH:mm","HH:mm:ss","HH:mm:ss (z)","HH:mm:ss (zzzz)"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00","#E0"],"MNT","₮","Монгол төгрөг",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"MNT":["₮"],"PHP":[u,"₱"],"SEK":[u,"кр"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_mn]; export const locale_extra_mn = [[["шөнө дунд","үд дунд","өглөө","өдөр","орой","шөнө"],u,u],u,["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_ro_MD(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; if (!(v === 0) || (n === 0 || n % 100 === Math.floor(n % 100) && (n % 100 >= 2 && n % 100 <= 19))) return 3; return 5; } export const locale_ro_MD = ["ro-MD",[["a.m.","p.m."],u,u],u,[["D","L","Ma","Mi","J","V","S"],["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"],["Du","Lu","Ma","Mi","Jo","Vi","Sâ"]],u,[["I","F","M","A","M","I","I","A","S","O","N","D"],["ian.","feb.","mar.","apr.","mai","iun.","iul.","aug.","sept.","oct.","nov.","dec."],["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]],u,[["î.Hr.","d.Hr."],u,["înainte de Hristos","după Hristos"]],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}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"MDL","L","leu moldovenesc",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"EUR":[u,"€"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MDL":["L"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"],"XCD":[u,"$"]},"ltr", plural_locale_ro_MD]; export const locale_extra_ro_MD = [[["miezul nopții","amiază","dimineață","după-amiază","seară","noapte"],["miezul nopții","amiază","dimineața","după-amiaza","seara","noaptea"],u],u,["00:00","12:00",["05:00","12:00"],["12:00","18:00"],["18:00","22:00"],["22:00","05:00"]]]; export const locale_mo = locale_ro_MD; export const locale_extra_mo = locale_extra_ro_MD; function plural_locale_mr(val: number): number { const n = val; if (n === 1) return 1; return 5; } expo
{ "end_byte": 112352, "start_byte": 108553, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_112354_115223
const locale_mr = ["mr",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["र","सो","मं","बु","गु","शु","श"],["रवि","सोम","मंगळ","बुध","गुरु","शुक्र","शनि"],["रविवार","सोमवार","मंगळवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],["र","सो","मं","बु","गु","शु","श"]],u,[["जा","फे","मा","ए","मे","जू","जु","ऑ","स","ऑ","नो","डि"],["जाने","फेब्रु","मार्च","एप्रि","मे","जून","जुलै","ऑग","सप्टें","ऑक्टो","नोव्हें","डिसें"],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोव्हेंबर","डिसेंबर"]],u,[["इ. स. पू.","इ. स."],u,["ईसवीसनपूर्व","ईसवीसन"]],0,[0,0],["d/M/yy","d MMM, y","d MMMM, y","EEEE, d MMMM, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} रोजी {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##0%","¤#,##0.00","[#E0]"],"INR","₹","भारतीय रुपया",{"JPY":["JP¥","¥"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_mr]; export const locale_extra_mr = [[["म.रा.","दु","प","स","दु","सं","सा","रा"],["मध्यरात्र","मध्यान्ह","पहाट","सकाळ","दुपार","संध्याकाळ","सायंकाळ","रात्र"],u],[["म.रा.","म","प","स","दु","सं","सा","रात्र"],["मध्यरात्र","मध्यान्ह","पहाट","सकाळ","दुपार","संध्याकाळ","सायंकाळ","रात्र"],u],["00:00","12:00",["04:00","06:00"],["06:00","12:00"],["12:00","16:00"],["16:00","18:00"],["18:00","21:00"],["21:00","04:00"]]]; function plural_locale_ms(val: number): number { const n = val; return 5; } export const locale_ms = ["ms",[["a","p"],["PG","PTG"],u],u,[["A","I","S","R","K","J","S"],["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],["Ah","Is","Se","Ra","Kh","Ju","Sa"]],u,[["J","F","M","A","M","J","J","O","S","O","N","D"],["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]],u,[["S.M.","TM"],u,u],1,[6,0],["d/MM/yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"MYR","RM","Ringgit Malaysia",{"BYN":[u,"р."],"CAD":[u,"$"],"JPY":["JP¥","¥"],"MXN":[u,"$"],"MYR":["RM"],"PHP":[u,"₱"],"TWD":["NT$"],"USD":[u,"$"]},"ltr", plural_locale_ms]; export const locale_extra_ms = [[["pagi","pagi","tengah hari","petang","malam"],u,["tengah malam","pagi","tengah hari","petang","malam"]],[["pagi","pagi","tengah hari","petang","malam"],["tengah malam","pagi","tengah hari","petang","malam"],u],[["00:00","01:00"],["01:00","12:00"],["12:00","14:00"],["14:00","19:00"],["19:00","24:00"]]]; function plural_locale_mt(val: number): number { const n = val; 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 === Ma
{ "end_byte": 115223, "start_byte": 112354, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_115225_117575
.floor(n % 100) && (n % 100 >= 11 && n % 100 <= 19)) return 4; return 5; } export const locale_mt = ["mt",[["am","pm"],["AM","PM"],u],u,[["Ħd","T","Tl","Er","Ħm","Ġm","Sb"],["Ħad","Tne","Tli","Erb","Ħam","Ġim","Sib"],["Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt"],["Ħad","Tne","Tli","Erb","Ħam","Ġim","Sib"]],[["Ħd","Tn","Tl","Er","Ħm","Ġm","Sb"],["Ħad","Tne","Tli","Erb","Ħam","Ġim","Sib"],["Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt"],["Ħad","Tne","Tli","Erb","Ħam","Ġim","Sib"]],[["J","F","M","A","M","Ġ","L","A","S","O","N","D"],["Jan","Fra","Mar","Apr","Mej","Ġun","Lul","Aww","Set","Ott","Nov","Diċ"],["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"]],[["Jn","Fr","Mz","Ap","Mj","Ġn","Lj","Aw","St","Ob","Nv","Dċ"],["Jan","Fra","Mar","Apr","Mej","Ġun","Lul","Aww","Set","Ott","Nov","Diċ"],["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"]],[["QK","WK"],u,["Qabel Kristu","Wara Kristu"]],0,[6,0],["dd/MM/y","dd MMM y","d 'ta'’ MMMM y","EEEE, d 'ta'’ MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"EUR","€","ewro",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"USD":["US$","$"]},"ltr", plural_locale_mt]; export const locale_extra_mt = []; function plural_locale_my(val: number): number { const n = val; return 5; } export const locale_my = ["my",[["နံနက်","ညနေ"],u,u],u,[["တ","တ","အ","ဗ","က","သ","စ"],["တနင်္ဂနွေ","တနင်္လာ","အင်္ဂါ","ဗုဒ္ဓဟူး","ကြာသပတေး","သောကြာ","စနေ"],u,u],u,[["ဇ","ဖ","မ","ဧ","မ","ဇ","ဇ","ဩ","စ","အ","န","ဒ"],["ဇန်","ဖေ","မတ်","ဧ","မေ","ဇွန်","ဇူ","ဩ","စက်","အောက်","နို","ဒီ"],["ဇန်နဝါရီ","ဖေဖော်ဝါရီ","မတ်","ဧပြီ","မေ","ဇွန်","ဇူလိုင်","ဩဂုတ်","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"]],u,[["ဘီစီ","အဒေီ"],u,["ခရစ်တော် မပေါ်မီနှစ်","ခရစ်နှစ်"]],0,[6,0],["dd-MM-yy","y- MMM d","y- MMMM d","y- MMMM d- EEEE"],["H:mm","H:mm:ss","z HH:mm:ss","zzzz HH:mm:ss"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","ဂဏန်းမဟုတ်သော",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"MMK","K","မြန်မာ ကျပ်",{"ANG":["NAf"],"AWG":["Afl"],"BBD":[u,"Bds$"],"BSD":[u,"B$"],"BYN":[u,"р."],"HTG":["G"],"JPY
{ "end_byte": 117575, "start_byte": 115225, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_117577_121085
["JP¥","¥"],"MMK":["K"],"PAB":["B/."],"PHP":[u,"₱"],"THB":["฿"],"TTD":["TT$","$"],"USD":["US$","$"]},"ltr", plural_locale_my]; export const locale_extra_my = [[["သန်းခေါင်ယံ","မွန်းတည့်","နံနက်","နေ့လယ်","ညနေ","ည"],u,u],u,["00:00","12:00",["00:00","12:00"],["12:00","16:00"],["16:00","19:00"],["19:00","24:00"]]]; function plural_locale_ne(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_ne = ["ne",[["पूर्वाह्न","अपराह्न"],u,u],u,[["आ","सो","म","बु","बि","शु","श"],["आइत","सोम","मङ्गल","बुध","बिहि","शुक्र","शनि"],["आइतबार","सोमबार","मङ्गलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार"],["आइत","सोम","मङ्गल","बुध","बिहि","शुक्र","शनि"]],u,[["जन","फेब","मार्च","अप्र","मे","जुन","जुल","अग","सेप","अक्टो","नोभे","डिसे"],["जनवरी","फेब्रुअरी","मार्च","अप्रिल","मे","जुन","जुलाई","अगस्ट","सेप्टेम्बर","अक्टोबर","नोभेम्बर","डिसेम्बर"],u],[["जन","फेेब","मार्च","अप्र","मे","जुन","जुल","अग","सेप","अक्टो","नोभे","डिसे"],["जनवरी","फेब्रुअरी","मार्च","अप्रिल","मे","जुन","जुलाई","अगस्ट","सेप्टेम्बर","अक्टोबर","नोभेम्बर","डिसेम्बर"],u],[["ईसा पूर्व","सन्"],u,u],0,[6,0],["yy/M/d","y MMM d","y MMMM d","y MMMM d, EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",u,"{1} {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##,##0%","¤ #,##,##0.00","#E0"],"NPR","नेरू","नेपाली रूपैयाँ",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"NPR":["नेरू","रू"],"PHP":[u,"₱"],"THB":["฿"],"USD":["US$","$"]},"ltr", plural_locale_ne]; export const locale_extra_ne = [[["मध्यरात","मध्यान्ह","बिहान","अपरान्ह","साँझ","बेलुकी","रात"],u,u],u,["00:00","12:00",["04:00","12:00"],["12:00","16:00"],["16:00","19:00"],["19:00","22:00"],["22:00","04:00"]]]; function plural_locale_nl(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_nl = ["nl",[["a.m.","p.m."],u,u],u,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],u,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],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}",u,"{1} 'om' {0}",u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00;¤ -#,##0.00","#E0"],"EUR","€","Euro",{"AUD":["AU$","$"],"BYN":[u,"р."],"CAD":["C$","$"],"FJD":["FJ$","$"],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"RUR":[u,"р."],"SBD":["SI$","$"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"],"XPF":[],"XXX":[]},"ltr", plural_locale_nl]; export const locale_extra_nl = [[["middernacht","’s ochtends","’s middags","’s avonds","’s nachts"],u,u],[["middernacht","ochtend","middag","avond","nacht"],u,u],["00:00",["06:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","06:00"]]]; function plural_locale_nb(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_nb = ["nb",[["a","p"],["a.m.","p.m."],u],[["a.m.","p.m."],u,u],[["S","M","T","O","T","F","L"],["søn.","man.","tir.","ons.","tor.","fre.","lør."],["søndag","mandag","tirsdag","
{ "end_byte": 121085, "start_byte": 117577, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_121086_124142
nsdag","torsdag","fredag","lørdag"],["sø.","ma.","ti.","on.","to.","fr.","lø."]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mar.","apr.","mai","jun.","jul.","aug.","sep.","okt.","nov.","des."],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]],[["f.Kr.","e.Kr."],u,["før Kristus","etter Kristus"]],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}",u,"{1} 'kl'. {0}",u],[","," ",";","%","+","−","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","¤ #,##0.00;¤ -#,##0.00","#E0"],"NOK","kr","norske kroner",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MXN":[u,"$"],"NOK":["kr"],"NZD":[u,"$"],"PHP":[u,"₱"],"RON":[u,"L"],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"],"XAF":[],"XCD":[u,"$"],"XPF":[],"XXX":[]},"ltr", plural_locale_nb]; export const locale_extra_nb = [[["mn.","mg.","fm.","em.","kv.","nt."],["midn.","morg.","form.","etterm.","kveld","natt"],["midnatt","på morgenen","på formiddagen","på ettermiddagen","på kvelden","på natten"]],[["mn.","mg.","fm.","em.","kv.","nt."],["midn.","morg.","form.","etterm.","kveld","natt"],["midnatt","morgen","formiddag","ettermiddag","kveld","natt"]],["00:00",["06:00","10:00"],["10:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","06:00"]]]; export const locale_no = locale_nb; export const locale_no_NO = locale_nb; export const locale_extra_no = locale_extra_nb; export const locale_extra_no_NO = locale_extra_nb; function plural_locale_or(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_or = ["or",[["ପୂ","ଅ"],["AM","PM"],u],[["AM","ଅପରାହ୍ନ"],["ପୂର୍ବାହ୍ନ","ଅପରାହ୍ନ"],u],[["ର","ସୋ","ମ","ବୁ","ଗୁ","ଶୁ","ଶ"],["ରବି","ସୋମ","ମଙ୍ଗଳ","ବୁଧ","ଗୁରୁ","ଶୁକ୍ର","ଶନି"],["ରବିବାର","ସୋମବାର","ମଙ୍ଗଳବାର","ବୁଧବାର","ଗୁରୁବାର","ଶୁକ୍ରବାର","ଶନିବାର"],["ରବି","ସୋମ","ମଙ୍ଗଳ","ବୁଧ","ଗୁରୁ","ଶୁକ୍ର","ଶନି"]],u,[["ଜା","ଫେ","ମା","ଅ","ମଇ","ଜୁ","ଜୁ","ଅ","ସେ","ଅ","ନ","ଡି"],["ଜାନୁଆରୀ","ଫେବୃଆରୀ","ମାର୍ଚ୍ଚ","ଅପ୍ରେଲ","ମଇ","ଜୁନ","ଜୁଲାଇ","ଅଗଷ୍ଟ","ସେପ୍ଟେମ୍ବର","ଅକ୍ଟୋବର","ନଭେମ୍ବର","ଡିସେମ୍ବର"],u],u,[["BC","AD"],u,["ଖ୍ରୀଷ୍ଟପୂର୍ବ","ଖ୍ରୀଷ୍ଟାବ୍ଦ"]],0,[0,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{0} ଠାରେ {1}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##0%","¤#,##0.00","#E0"],"INR","₹","ଭାରତୀୟ ଟଙ୍କା",{"BYN":[u,"р."],"PHP":[u,"₱"]},"ltr", plural_locale_or]; export const locale_extra_or = []; function plural_locale_pa(val: number): number { const n = val; if (n === Math.floor(n) && (n >= 0 && n <= 1)) return 1; return 5; } export const locale_pa = ["pa",[["ਸ.","ਸ਼."],["ਪੂ.ਦੁ.","ਬ
{ "end_byte": 124142, "start_byte": 121086, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_124143_127415
.ਦੁ."],u],[["ਪੂ.ਦੁ.","ਬਾ.ਦੁ."],u,u],[["ਐ","ਸੋ","ਮੰ","ਬੁੱ","ਵੀ","ਸ਼ੁੱ","ਸ਼"],["ਐਤ","ਸੋਮ","ਮੰਗਲ","ਬੁੱਧ","ਵੀਰ","ਸ਼ੁੱਕਰ","ਸ਼ਨਿੱਚਰ"],["ਐਤਵਾਰ","ਸੋਮਵਾਰ","ਮੰਗਲਵਾਰ","ਬੁੱਧਵਾਰ","ਵੀਰਵਾਰ","ਸ਼ੁੱਕਰਵਾਰ","ਸ਼ਨਿੱਚਰਵਾਰ"],["ਐਤ","ਸੋਮ","ਮੰਗ","ਬੁੱਧ","ਵੀਰ","ਸ਼ੁੱਕ","ਸ਼ਨਿੱ"]],u,[["ਜ","ਫ਼","ਮਾ","ਅ","ਮ","ਜੂ","ਜੁ","ਅ","ਸ","ਅ","ਨ","ਦ"],["ਜਨ","ਫ਼ਰ","ਮਾਰਚ","ਅਪ੍ਰੈ","ਮਈ","ਜੂਨ","ਜੁਲਾ","ਅਗ","ਸਤੰ","ਅਕਤੂ","ਨਵੰ","ਦਸੰ"],["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ"]],u,[["ਈ.ਪੂ.","ਸੰਨ"],["ਈ. ਪੂ.","ਸੰਨ"],["ਈਸਵੀ ਪੂਰਵ","ਈਸਵੀ ਸੰਨ"]],0,[0,0],["d/M/yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##,##0%","¤ #,##,##0.00","[#E0]"],"INR","₹","ਭਾਰਤੀ ਰੁਪਇਆ",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"],"XXX":[]},"ltr", plural_locale_pa]; export const locale_extra_pa = [[["ਅੱਧੀ ਰਾਤ","ਸਵੇਰੇ","ਦੁਪਹਿਰੇ","ਸ਼ਾਮੀਂ","ਰਾਤੀਂ"],u,u],[["ਅੱਧੀ ਰਾਤ","ਸਵੇਰੇ","ਦੁਪਹਿਰੇ","ਸ਼ਾਮੀਂ","ਰਾਤੀਂ"],u,["ਅੱਧੀ ਰਾਤ","ਸਵੇਰੇ","ਦੁਪਹਿਰੇ","ਸ਼ਾਮ","ਰਾਤ"]],["00:00",["04:00","12:00"],["12:00","16:00"],["16:00","21:00"],["21:00","04:00"]]]; function plural_locale_pl(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.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 const locale_pl = ["pl",[["a","p"],["AM","PM"],u],u,[["n","p","w","ś","c","p","s"],["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],["nie","pon","wto","śro","czw","pią","sob"]],[["N","P","W","Ś","C","P","S"],["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],["nie","pon","wto","śro","czw","pią","sob"]],[["s","l","m","k","m","c","l","s","w","p","l","g"],["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]],[["S","L","M","K","M","C","L","S","W","P","L","G"],["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]],[["p.n.e.","n.e."],u,["przed naszą erą","naszej ery"]],1,[6,0],["d.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}",u,"{1} {0}",u],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"PLN","zł","złoty polski",{"AUD":[u,"$"],"CAD":[u,"$"],"CNY":[u,"¥"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"PLN":["zł"],"RON":[u,"l
{ "end_byte": 127415, "start_byte": 124143, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_127416_131868
j"],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"]},"ltr", plural_locale_pl]; export const locale_extra_pl = [[["o półn.","w poł.","rano","przed poł.","po poł.","wiecz.","w nocy"],["o północy","w południe","rano","przed południem","po południu","wieczorem","w nocy"],u],[["półn.","poł.","rano","przedpoł.","popoł.","wiecz.","noc"],["północ","południe","rano","przedpołudnie","popołudnie","wieczór","noc"],u],["00:00","12:00",["06:00","10:00"],["10:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_pt(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, '$2')) || 0; if (i === Math.floor(i) && (i >= 0 && i <= 1)) return 1; if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5)) return 4; return 5; } export const locale_pt = ["pt",[["AM","PM"],u,u],u,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","sáb."],["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],["dom.","seg.","ter.","qua.","qui.","sex.","sáb."]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],u,[["a.C.","d.C."],u,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00","#E0"],"BRL","R$","Real brasileiro",{"AUD":["AU$","$"],"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"PTE":["Esc."],"RON":[u,"L"],"SYP":[u,"S£"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"]},"ltr", plural_locale_pt]; export const locale_extra_pt = [[["meia-noite","meio-dia","da manhã","da tarde","da noite","da madrugada"],u,u],[["meia-noite","meio-dia","manhã","tarde","noite","madrugada"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","19:00"],["19:00","24:00"],["00:00","06:00"]]]; export const locale_pt_BR = locale_pt; export const locale_extra_pt_BR = locale_extra_pt; function plural_locale_pt_PT(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, '$2')) || 0; if (i === Math.floor(i) && (i >= 0 && i <= 1)) return 1; if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5)) return 4; return 5; } export const locale_pt_PT = ["pt-PT",[["a.m.","p.m."],u,["da manhã","da tarde"]],[["a.m.","p.m."],u,["manhã","tarde"]],[["D","S","T","Q","Q","S","S"],["domingo","segunda","terça","quarta","quinta","sexta","sábado"],["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],["dom.","seg.","ter.","qua.","qui.","sex.","sáb."]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],u,[["a.C.","d.C."],u,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/yy","dd/MM/y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",u,"{1} 'às' {0}",u],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"EUR","€","euro",{"AUD":["AU$","$"],"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"PTE":["​"],"RON":[u,"L"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"]},"ltr", plural_locale_pt_PT]; export const locale_extra_pt_PT = [[["meia-noite","meio-dia","manhã","tarde","noite","madrugada"],["meia-noite","meio-dia","da manhã","da tarde","da noite","da madrugada"],u],[["meia-noite","meio-dia","manhã","tarde","noite","madrugada"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","19:00"],["19:00","24:00"],["00:00","06:00"]]]; function plural_locale_ro(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; if (!(v === 0) || (n === 0 || n % 100 === Math.floor(n % 100) && (n % 100 >= 2
{ "end_byte": 131868, "start_byte": 127416, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_131870_134928
n % 100 <= 19))) return 3; return 5; } export const locale_ro = ["ro",[["a.m.","p.m."],u,u],u,[["D","L","M","M","J","V","S"],["dum.","lun.","mar.","mie.","joi","vin.","sâm."],["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"],["du.","lu.","ma.","mi.","joi","vi.","sâ."]],u,[["I","F","M","A","M","I","I","A","S","O","N","D"],["ian.","feb.","mar.","apr.","mai","iun.","iul.","aug.","sept.","oct.","nov.","dec."],["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]],u,[["î.Hr.","d.Hr."],u,["înainte de Hristos","după Hristos"]],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}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"RON","RON","leu românesc",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"EUR":[u,"€"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"],"XCD":[u,"$"]},"ltr", plural_locale_ro]; export const locale_extra_ro = [[["miezul nopții","la amiază","dimineața","după-amiaza","seara","noaptea"],["miezul nopții","amiază","dimineața","după-amiaza","seara","noaptea"],["la miezul nopții","la amiază","dimineața","după-amiaza","seara","noaptea"]],[["miezul nopții","amiază","dimineața","după-amiaza","seara","noaptea"],u,["la miezul nopții","la amiază","dimineața","după-amiaza","seara","noaptea"]],["00:00","12:00",["05:00","12:00"],["12:00","18:00"],["18:00","22:00"],["22:00","05:00"]]]; function plural_locale_ru(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.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 const locale_ru = ["ru",[["AM","PM"],u,u],u,[["В","П","В","С","Ч","П","С"],["вс","пн","вт","ср","чт","пт","сб"],["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],["вс","пн","вт","ср","чт","пт","сб"]],u,[["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],["янв.","февр.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]],[["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],["янв.","февр.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]],[["до н.э.","н.э."],["до н. э.","н. э."],["до Рождества Христова","от Рождества Христова"]],1,[
{ "end_byte": 134928, "start_byte": 131870, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_134930_136719
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}",u,u,u],[","," ",";","%","+","-","E","×","‰","∞","не число",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"RUB","₽","российский рубль",{"BYN":[u,"р."],"GEL":[u,"ლ"],"PHP":[u,"₱"],"RON":[u,"L"],"RUB":["₽"],"RUR":["р."],"THB":["฿"],"TMT":["ТМТ"],"TWD":["NT$"],"UAH":["₴"],"XXX":["XXXX"]},"ltr", plural_locale_ru]; export const locale_extra_ru = [[["полн.","полд.","утра","дня","веч.","ночи"],["полн.","полд.","утра","дня","вечера","ночи"],["полночь","полдень","утра","дня","вечера","ночи"]],[["полн.","полд.","утро","день","веч.","ночь"],u,["полночь","полдень","утро","день","вечер","ночь"]],["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","22:00"],["22:00","04:00"]]]; function plural_locale_sr_Latn(val: number): number { const n = val; return 5; } export const locale_sr_Latn = ["sr-Latn",[["AM","PM"],u,u],[["pre podne","po podne"],["AM","PM"],u],[["n","p","u","s","č","p","s"],["ned","pon","uto","sre","čet","pet","sub"],["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],["ne","po","ut","sr","če","pe","su"]],u,[["j","f","m","a","m","j","j","a","s","o","n","d"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]],u,[["p.n.e.","n.e."],["p. n. e.","n. e."],["pre nove ere","nove ere"]],1,[6,0],["d.M.yy.","d. M. y.","d. MMMM y.","EEEE, d. MMMM y."],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"RSD","RSD","srpski dinar",{"AUD":[u,"$"],"BAM":["KM"],"BYN":[u,"r."],"GEL"
{ "end_byte": 136719, "start_byte": 134930, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_136721_139077
u,"ლ"],"KRW":[u,"₩"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":["NT$"],"USD":["US$","$"],"VND":[u,"₫"]},"ltr", plural_locale_sr_Latn]; export const locale_extra_sr_Latn = [[["ponoć","podne","ujutru","po podne","uveče","noću"],["ponoć","podne","ujutro","po podne","uveče","noću"],u],[["ponoć","podne","jutro","popodne","veče","noć"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; export const locale_sh = locale_sr_Latn; export const locale_extra_sh = locale_extra_sr_Latn; function plural_locale_si(val: number): number { const n = val, i = Math.floor(Math.abs(val)), f = parseInt(val.toString().replace(/^[^.]*\.?/, ''), 10) || 0; if (n === 0 || n === 1 || i === 0 && f === 1) return 1; return 5; } export const locale_si = ["si",[["පෙ","ප"],["පෙ.ව.","ප.ව."],u],[["පෙ.ව.","ප.ව."],u,u],[["ඉ","ස","අ","බ","බ්‍ර","සි","සෙ"],["ඉරිදා","සඳුදා","අඟහ","බදාදා","බ්‍රහස්","සිකු","සෙන"],["ඉරිදා","සඳුදා","අඟහරුවාදා","බදාදා","බ්‍රහස්පතින්දා","සිකුරාදා","සෙනසුරාදා"],["ඉරි","සඳු","අඟ","බදා","බ්‍රහ","සිකු","සෙන"]],u,[["ජ","පෙ","මා","අ","මැ","ජූ","ජූ","අ","සැ","ඔ","නෙ","දෙ"],["ජන","පෙබ","මාර්තු","අප්‍රේල්","මැයි","ජූනි","ජූලි","අගෝ","සැප්","ඔක්","නොවැ","දෙසැ"],["ජනවාරි","පෙබරවාරි","මාර්තු","අප්‍රේල්","මැයි","ජූනි","ජූලි","අගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්"]],[["ජ","පෙ","මා","අ","මැ","ජූ","ජූ","අ","සැ","ඔ","නෙ","දෙ"],["ජන","පෙබ","මාර්","අප්‍රේල්","මැයි","ජූනි","ජූලි","අගෝ","සැප්","ඔක්","නොවැ","දෙසැ"],["ජනවාරි","පෙබරවාරි","මාර්තු","අප්‍රේල්","මැයි","ජූනි","ජූලි","අගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්"]],[["ක්‍රි.පූ.","ක්‍රි.ව."],u,["ක්‍රිස්තු පූර්ව","ක්‍රිස්තු වර්ෂ"]],1,[6,0],["y-MM-dd","y MMM d","y MMMM d","y MMMM d, EEEE"],["HH.mm","HH.mm.ss","HH.mm.ss z","HH.mm.ss zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN","."],["#,##0.###","#,##0%","¤#,##0.00","#"],"LKR","රු.","ශ්‍රී ලංකා රුපියල",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"LKR":["රු."],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"],"XOF":["සිෆ්එ"]},"ltr", plural_locale_si]; export const locale_extra_si = [[["මැ","ම","පා","උ","ද","හ","රෑ","මැ"],["මැදියම","මධ්‍යාහ්නය","පාන්දර","උදේ","දවල්","හවස","රෑ","මැදියමට පසු"],u],[["මැදියම","මධ්‍යාහ්නය","පාන්දර","උදේ","දවල්","හවස","රෑ","මැදියමට පසු"],u,u],["00:00","12:00",["01:00","06:00"],["06:00","12:00"],["12:00","14:00"],["14:00",
{ "end_byte": 139077, "start_byte": 136721, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_139079_142703
8:00"],["18:00","24:00"],["00:00","01:00"]]]; function plural_locale_sk(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.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 const locale_sk = ["sk",[["AM","PM"],u,u],u,[["n","p","u","s","š","p","s"],["ne","po","ut","st","št","pi","so"],["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],["ne","po","ut","st","št","pi","so"]],u,[["j","f","m","a","m","j","j","a","s","o","n","d"],["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]],[["j","f","m","a","m","j","j","a","s","o","n","d"],["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]],[["pred Kr.","po Kr."],u,["pred Kristom","po Kristovi"]],1,[6,0],["d. M. y",u,"d. MMMM y","EEEE d. MMMM y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}","{1}, {0}",u,u],[","," ",";","%","+","-","e","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":["NIS","₪"],"INR":[u,"₹"],"JPY":[u,"¥"],"KRW":[u,"₩"],"NZD":[u,"$"],"PHP":[u,"₱"],"RUR":[u,"р."],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"₫"],"XXX":[]},"ltr", plural_locale_sk]; export const locale_extra_sk = [[["o poln.","nap.","ráno","dop.","pop.","več.","v n."],["o poln.","napol.","ráno","dopol.","popol.","večer","v noci"],["o polnoci","napoludnie","ráno","dopoludnia","popoludní","večer","v noci"]],[["poln.","pol.","ráno","dop.","pop.","več.","noc"],["poln.","pol.","ráno","dopol.","popol.","večer","noc"],["polnoc","poludnie","ráno","dopoludnie","popoludnie","večer","noc"]],["00:00","12:00",["04:00","09:00"],["09:00","12:00"],["12:00","18:00"],["18:00","22:00"],["22:00","04:00"]]]; function plural_locale_sl(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.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 const locale_sl = ["sl",[["d","p"],["dop.","pop."],u],[["d","p"],["dop.","pop."],["dopoldne","popoldne"]],[["n","p","t","s","č","p","s"],["ned.","pon.","tor.","sre.","čet.","pet.","sob."],["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"],["ned.","pon.","tor.","sre.","čet.","pet.","sob."]],u,[["j","f","m","a","m","j","j","a","s","o","n","d"],["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]],u,[["pr. Kr.","po Kr."],u,["pred Kristusom","po Kristusu"]],1,[6,0],["d. MM. yy","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}",u,"{1} {0}",u],[",",".",";","%","+","−","e","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","evro",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"GBP":[u,"£"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":[u,"NT$"],"XCD":[u,"$"]},"ltr", plural_locale_sl]; export const locale_extra_sl = [[["24.00","12.00","zj","d","p","
{ "end_byte": 142703, "start_byte": 139079, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_142705_146911
","po"],["opoln.","opold.","zjut.","dop.","pop.","zveč.","ponoči"],["opolnoči","opoldne","zjutraj","dopoldan","popoldan","zvečer","ponoči"]],[["24.00","12.00","j","d","p","v","n"],["poln.","pold.","jut.","dop.","pop.","zveč.","noč"],["polnoč","poldne","jutro","dopoldne","popoldne","večer","noč"]],["00:00","12:00",["06:00","10:00"],["10:00","12:00"],["12:00","18:00"],["18:00","22:00"],["22:00","06:00"]]]; function plural_locale_sq(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_sq = ["sq",[["p.d.","m.d."],u,["e paradites","e pasdites"]],[["p.d.","m.d."],u,["paradite","pasdite"]],[["d","h","m","m","e","p","sh"],["Die","Hën","Mar","Mër","Enj","Pre","Sht"],["e diel","e hënë","e martë","e mërkurë","e enjte","e premte","e shtunë"],["die","hën","mar","mër","enj","pre","sht"]],[["d","h","m","m","e","p","sh"],["die","hën","mar","mër","enj","pre","sht"],["e diel","e hënë","e martë","e mërkurë","e enjte","e premte","e shtunë"],["die","hën","mar","mër","enj","pre","sht"]],[["j","sh","m","p","m","q","k","g","sh","t","n","dh"],["jan","shk","mar","pri","maj","qer","korr","gush","sht","tet","nën","dhj"],["janar","shkurt","mars","prill","maj","qershor","korrik","gusht","shtator","tetor","nëntor","dhjetor"]],u,[["p.K.","mb.K."],u,["para Krishtit","mbas Krishtit"]],1,[6,0],["d.M.yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a, z","h:mm:ss a, zzzz"],["{1}, {0}",u,"{1} 'në' {0}",u],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"ALL","Lekë","Leku shqiptar",{"AFN":[],"ALL":["Lekë"],"AMD":[],"AOA":[],"ARS":[],"AUD":["A$","AUD"],"AZN":[],"BAM":[],"BBD":[],"BDT":[],"BMD":[],"BND":[],"BOB":[],"BRL":[],"BSD":[],"BWP":[],"BZD":[],"CAD":["CA$","CAD"],"CLP":[],"CNY":["CN¥","CNY"],"COP":[],"CRC":[],"CUC":[],"CUP":[],"CZK":[],"DKK":[],"DOP":[],"EGP":[],"FJD":[],"FKP":[],"GBP":["£","GBP"],"GEL":[],"GIP":[],"GNF":[],"GTQ":[],"GYD":[],"HKD":["HK$","HKS"],"HNL":[],"HRK":[],"HUF":[],"IDR":[],"ILS":["₪","ILS"],"INR":["₹","INR"],"ISK":[],"JMD":[],"JPY":["JP¥","JPY"],"KHR":[],"KMF":[],"KPW":[],"KRW":["₩","KRW"],"KYD":[],"KZT":[],"LAK":[],"LBP":[],"LKR":[],"LRD":[],"MGA":[],"MMK":[],"MNT":[],"MUR":[],"MXN":["MX$","MXN"],"MYR":[],"NAD":[],"NGN":[],"NIO":[],"NOK":[],"NPR":[],"NZD":["NZ$","NZD"],"PHP":[],"PKR":[],"PLN":[],"PYG":[],"RON":[],"RUB":[],"RWF":[],"SBD":[],"SEK":[],"SGD":[],"SHP":[],"SRD":[],"SSP":[],"STN":[],"SYP":[],"THB":["฿","THB"],"TOP":[],"TRY":[],"TTD":[],"TWD":["NT$","TWD"],"UAH":[],"USD":["US$","USD"],"UYU":[],"VND":["₫","VND"],"XCD":["EC$","XCD"],"ZAR":[],"ZMW":[]},"ltr", plural_locale_sq]; export const locale_extra_sq = [[["e mesnatës","e mesditës","e mëngjesit","e paradites","e pasdites","e mbrëmjes","e natës"],u,u],[["mesnatë","mesditë","mëngjes","paradite","pasdite","mbrëmje","natë"],u,u],["00:00","12:00",["04:00","09:00"],["09:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","04:00"]]]; function plural_locale_sr(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, f = parseInt(val.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 const locale_sr = ["sr",[["AM","PM"],u,u],[["пре подне","по подне"],["AM","PM"],u],[["н","п","у","с","ч","п","с"],["нед","пон","уто","сре","чет","пет","суб"],["недеља","понедељак","уторак","среда","четвртак","петак","субота"],["не","по","ут","ср","че","пе","су"]],u,[["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]],u,[["п.н.е.","н.е."],["п. н. е.","н. е."],["пре нове ере","нове ере"]],1,[6,0],["d.M.yy.","d. M. y.","d. MMMM y.","EEEE, d. MMMM y."],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss
{ "end_byte": 146911, "start_byte": 142705, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_146913_151200
zz"],["{1} {0}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"RSD","RSD","српски динар",{"AUD":[u,"$"],"BAM":["КМ","KM"],"BYN":[u,"р."],"GEL":[u,"ლ"],"KRW":[u,"₩"],"NZD":[u,"$"],"PHP":[u,"₱"],"TWD":["NT$"],"USD":["US$","$"],"VND":[u,"₫"]},"ltr", plural_locale_sr]; export const locale_extra_sr = [[["поноћ","подне","ујутру","по подне","увече","ноћу"],["поноћ","подне","ујутро","по подне","увече","ноћу"],u],[["поноћ","подне","јутро","поподне","вече","ноћ"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_sv(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_sv = ["sv",[["fm","em"],u,u],[["fm","em"],["f.m.","e.m."],["förmiddag","eftermiddag"]],[["S","M","T","O","T","F","L"],["sön","mån","tis","ons","tors","fre","lör"],["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],["sö","må","ti","on","to","fr","lö"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]],u,[["f.Kr.","e.Kr."],u,["före Kristus","efter Kristus"]],1,[6,0],["y-MM-dd","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}",u,u,u],[","," ",";","%","+","−","×10^","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"SEK","kr","svensk krona",{"AUD":[u,"$"],"BBD":["Bds$","$"],"BMD":["BM$","$"],"BRL":["BR$","R$"],"BSD":["BS$","$"],"BYN":[u,"р."],"BZD":["BZ$","$"],"CNY":[u,"¥"],"DKK":["Dkr","kr"],"DOP":["RD$","$"],"EEK":["Ekr"],"EGP":["EG£","E£"],"ESP":[],"GBP":[u,"£"],"HKD":[u,"$"],"IEP":["IE£"],"INR":[u,"₹"],"ISK":["Ikr","kr"],"JMD":["JM$","$"],"JPY":[u,"¥"],"KRW":[u,"₩"],"NOK":["Nkr","kr"],"NZD":[u,"$"],"PHP":[u,"₱"],"RON":[u,"L"],"SEK":["kr"],"TWD":[u,"NT$"],"USD":["US$","$"],"VND":[u,"₫"]},"ltr", plural_locale_sv]; export const locale_extra_sv = [[["midn.","på morg.","på förm.","på efterm.","på kvällen","på natten"],["midnatt","på morg.","på förm.","på efterm.","på kvällen","på natten"],["midnatt","på morgonen","på förmiddagen","på eftermiddagen","på kvällen","på natten"]],[["midn.","morg.","förm.","efterm.","kväll","natt"],["midnatt","morgon","förm.","efterm.","kväll","natt"],["midnatt","morgon","förmiddag","eftermiddag","kväll","natt"]],["00:00",["05:00","10:00"],["10:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","05:00"]]]; function plural_locale_sw(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_sw = ["sw",[["am","pm"],["AM","PM"],u],[["AM","PM"],u,u],[["S","M","T","W","T","F","S"],["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi"],u,u],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ago","Sep","Okt","Nov","Des"],["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba"]],u,[["KK","BK"],u,["Kabla ya Kristo","Baada ya Kristo"]],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}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00","#E0"],"TZS","TSh","Shilingi ya Tanzania",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"KES":["Ksh"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"TZS":["TSh"],"USD":["US$","$"]},"ltr", plural_locale_sw]; export const locale_extra_sw = [[["usiku","mchana","alfajiri","asubuhi","mchana","jioni","usiku"],["saa sita za usiku","adhuhuri","alfajiri","asubuhi","mchana","jioni","usiku"],["saa sita za usiku","saa sita za mchana","alfajiri","asubuhi","mchana","jioni","usiku"]],[["saa sita za usiku","saa sita za mchana","alfajiri","asubuhi","mchana","jioni","usiku"],["saa sita za usiku","adhuhuri","alfajiri","asubuhi","alasiri","jioni","usiku"],["saa sita za usiku","saa sita za mchana","alfajiri","asubuhi","mchana","jioni","usiku
{ "end_byte": 151200, "start_byte": 146913, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_151202_152998
],["00:00","12:00",["04:00","07:00"],["07:00","12:00"],["12:00","16:00"],["16:00","19:00"],["19:00","04:00"]]]; function plural_locale_ta(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_ta = ["ta",[["மு.ப","பி.ப"],["முற்பகல்","பிற்பகல்"],u],u,[["ஞா","தி","செ","பு","வி","வெ","ச"],["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"],["ஞா","தி","செ","பு","வி","வெ","ச"]],u,[["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]],u,[["கி.மு.","கி.பி."],u,["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]],0,[0,0],["d/M/yy","d MMM, y","d MMMM, y","EEEE, d MMMM, y"],["a h:mm","a h:mm:ss","a h:mm:ss z","a h:mm:ss zzzz"],["{1}, {0}",u,"{1} அன்று {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##,##0%","¤ #,##,##0.00","#E0"],"INR","₹","இந்திய ரூபாய்",{"BYN":[u,"р."],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_ta]; export const locale_extra_ta = [[["நள்.","நண்.","அதி.","கா.","மதி.","பிற்.","மா.","அந்தி மா.","இர."],["நள்ளிரவு","நண்பகல்","அதிகாலை","காலை","மதியம்","பிற்பகல்","மாலை","அந்தி மாலை","இரவு"],u],[["நள்.","நண்.","அதி.","கா.","மதி.","பிற்.","மா.","அந்தி மா.","இ."],["நள்ளிரவு","நண்பகல்","அதிகாலை","காலை","மதியம்","பிற்பகல்","மாலை","அந்தி மாலை","இரவு"],u],["00:00","12:00",["03:00","05:00"],["05:00","12:00"],["12:00","14:00"],["14:00","16:00"],["16:00","18:00"],["18:00","21:00"],["21:00","03:00"]]]; function plural_locale_te(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale
{ "end_byte": 152998, "start_byte": 151202, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_153000_155240
e = ["te",[["ఉ","సా"],["AM","PM"],u],[["AM","PM"],u,u],[["ఆ","సో","మ","బు","గు","శు","శ"],["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"],["ఆది","సోమ","మం","బుధ","గురు","శుక్ర","శని"]],u,[["జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి"],["జన","ఫిబ్ర","మార్చి","ఏప్రి","మే","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం"],["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జులై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్"]],u,[["క్రీపూ","క్రీశ"],u,["క్రీస్తు పూర్వం","క్రీస్తు శకం"]],0,[0,0],["dd-MM-yy","d MMM, y","d MMMM, y","d, MMMM y, EEEE"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1} {0}",u,"{1} {0}కి",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##,##0.###","#,##0%","¤#,##,##0.00","#E0"],"INR","₹","భారతదేశ రూపాయి",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_te]; export const locale_extra_te = [[["అర్ధరాత్రి","ఉదయం","మధ్యాహ్నం","సాయంత్రం","రాత్రి"],u,u],u,["00:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_th(val: number): number { const n = val; return 5; } export const locale_th = ["th",[["a","p"],["ก่อนเที่ยง","หลังเที่ยง"],u],[["ก่อนเที่ยง","หลังเที่ยง"],u,u],[["อา","จ","อ","พ","พฤ","ศ","ส"],["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"],["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."]],u,[["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],u,["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]],u,[["ก่อน ค.ศ.","ค.ศ."],u,["ปีก่อนคริสตกาล","คริสต์ศักราช"]],0,[6,0],["d/M/yy","d MMM y","d MMMM G y","EEEEที่ d MMMM G y"],["HH:mm","HH:mm:ss","H นาฬิกา mm นาที ss วินาที z","H นาฬิกา mm นาที ss วินาที zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"THB","฿","บาท",{"AUD":["AU$","$"],"BYN":[u,"р."],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"],"XXX":[]},"ltr", plural_locale_th]; export const locale_extra_th = [[["เที่ย
{ "end_byte": 155240, "start_byte": 153000, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_155242_159204
ืน","เที่ยง","เช้า","เที่ยง","บ่าย","เย็น","ค่ำ","กลางคืน"],["เที่ยงคืน","เที่ยง","ในตอนเช้า","ในตอนบ่าย","บ่าย","ในตอนเย็น","ค่ำ","กลางคืน"],u],[["เที่ยงคืน","เที่ยง","เช้า","ช่วงเที่ยง","บ่าย","เย็น","ค่ำ","กลางคืน"],["เที่ยงคืน","เที่ยง","ในตอนเช้า","ในตอนบ่าย","บ่าย","ในตอนเย็น","ค่ำ","กลางคืน"],u],["00:00","12:00",["06:00","12:00"],["12:00","13:00"],["13:00","16:00"],["16:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]; function plural_locale_fil(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length, f = parseInt(val.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 const locale_fil = ["fil",[["am","pm"],["AM","PM"],u],[["AM","PM"],u,u],[["Lin","Lun","Mar","Miy","Huw","Biy","Sab"],u,["Linggo","Lunes","Martes","Miyerkules","Huwebes","Biyernes","Sabado"],["Li","Lu","Ma","Mi","Hu","Bi","Sa"]],u,[["Ene","Peb","Mar","Abr","May","Hun","Hul","Ago","Set","Okt","Nob","Dis"],u,["Enero","Pebrero","Marso","Abril","Mayo","Hunyo","Hulyo","Agosto","Setyembre","Oktubre","Nobyembre","Disyembre"]],[["E","P","M","A","M","Hun","Hul","Ago","Set","Okt","Nob","Dis"],["Ene","Peb","Mar","Abr","May","Hun","Hul","Ago","Set","Okt","Nob","Dis"],["Enero","Pebrero","Marso","Abril","Mayo","Hunyo","Hulyo","Agosto","Setyembre","Oktubre","Nobyembre","Disyembre"]],[["BC","AD"],u,["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'nang' {0}",u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"PHP","₱","Piso ng Pilipinas",{"BYN":[u,"р."],"THB":["฿"],"TWD":["NT$"]},"ltr", plural_locale_fil]; export const locale_extra_fil = [[["hatinggabi","tanghaling-tapat","umaga","madaling-araw","sa hapon","sa gabi","gabi"],["hatinggabi","tanghaling-tapat","nang umaga","madaling-araw","tanghali","ng hapon","gabi"],["hatinggabi","tanghaling-tapat","nang umaga","madaling-araw","tanghali","ng hapon","ng gabi"]],[["hatinggabi","tanghaling-tapat","umaga","madaling-araw","tanghali","gabi","gabi"],["hatinggabi","tanghaling-tapat","umaga","madaling-araw","tanghali","hapon","gabi"],u],["00:00","12:00",["00:00","06:00"],["06:00","12:00"],["12:00","16:00"],["16:00","18:00"],["18:00","24:00"]]]; export const locale_tl = locale_fil; export const locale_extra_tl = locale_extra_fil; function plural_locale_tr(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_tr = ["tr",[["öö","ös"],["ÖÖ","ÖS"],u],[["ÖÖ","ÖS"],u,u],[["P","P","S","Ç","P","C","C"],["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],["Pa","Pt","Sa","Ça","Pe","Cu","Ct"]],u,[["O","Ş","M","N","M","H","T","A","E","E","K","A"],["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]],u,[["MÖ","MS"],u,["Milattan Önce","Milattan Sonra"]],1,[6,0],["d.MM.y","d MMM y","d MMMM y","d MMMM y EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","%#,##0","¤#,##0.00","#E0"],"TRY","₺","Türk Lirası",{"AUD":["AU$","$"],"BYN":[u,"р."],"PHP":[u,"₱"],"RON":[u,"L"],"RUR":[u,"р."],"THB":["฿"],"TRY":["₺"],"TWD":["NT$"]},"ltr", plural_locale_tr]; export const locale_extra_tr = [[["gece","ö","sabah","öğleden önce","öğleden sonra","akşamüstü","akşam","gece"],["gece yarısı","öğle","sabah","öğleden önce","öğleden sonra","akşamüstü","akşam","gece"],u],[["gece yarısı","öğle","sabah","öğleden önce","öğleden sonra","akşamüstü","akşam","gece"],u,u],["00:00","12:00",["06:00"
{ "end_byte": 159204, "start_byte": 155242, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_159206_162382
11:00"],["11:00","12:00"],["12:00","18:00"],["18:00","19:00"],["19:00","21:00"],["21:00","06:00"]]]; function plural_locale_uk(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.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 const locale_uk = ["uk",[["дп","пп"],u,u],u,[["Н","П","В","С","Ч","П","С"],["нд","пн","вт","ср","чт","пт","сб"],["неділя","понеділок","вівторок","середа","четвер","пʼятниця","субота"],["нд","пн","вт","ср","чт","пт","сб"]],u,[["с","л","б","к","т","ч","л","с","в","ж","л","г"],["січ.","лют.","бер.","квіт.","трав.","черв.","лип.","серп.","вер.","жовт.","лист.","груд."],["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]],[["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],["січ","лют","бер","кві","тра","чер","лип","сер","вер","жов","лис","гру"],["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]],[["до н.е.","н.е."],["до н. е.","н. е."],["до нашої ери","нашої ери"]],1,[6,0],["dd.MM.yy","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}",u,"{1} 'о' {0}",u],[","," ",";","%","+","-","Е","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"UAH","₴","українська гривня",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"р."],"CAD":[u,"$"],"CNY":[u,"¥"],"EUR":[u,"€"],"GBP":[u,"£"],"HKD":[u,"$"],"ILS":[u,"₪"],"INR":[u,"₹"],"KRW":[u,"₩"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"₱"],"RUR":[u,"р."],"TWD":[u,"$"],"UAH":["₴"],"UAK":["крб."],"USD":[u,"$"],"VND":[u,"₫"],"XCD":[u,"$"]},"ltr", plural_locale_uk]; export const locale_extra_uk = [[["північ","п","ранку","дня","вечора","ночі"],["опівночі","пополудні","ранку","дня","вечора","ночі"],u],[["північ","полудень","ранок","день","вечір","ніч"],u,u],["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","04:00"]]]; function plural_locale_ur(val: number): number { const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } export const locale_ur = ["ur",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["S","M","T","W","T","F","S"],["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],u,u],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],u],u,[["قبل مسیح","عیسوی"],u,u],0,[6,0],["d/M/yy","d MMM، y","d MMMM، y","EEEE، d MMMM، y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1} {0}",u,u,u],[".",",",";","%","‎+","‎-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00","#E0"],"PKR","Rs","پاکستانی روپیہ",{"BYN":[u,
{ "end_byte": 162382, "start_byte": 159206, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_162384_166268
."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"PKR":["Rs"],"THB":["฿"],"TWD":["NT$"]},"rtl", plural_locale_ur]; export const locale_extra_ur = [[["آدھی رات","صبح","دوپہر","سہ پہر","شام","رات"],u,["آدھی رات","صبح میں","دوپہر میں","سہ پہر","شام میں","رات میں"]],[["آدھی رات","صبح","دوپہر","سہ پہر","شام","رات"],u,u],["00:00",["04:00","12:00"],["12:00","16:00"],["16:00","18:00"],["18:00","20:00"],["20:00","04:00"]]]; function plural_locale_uz(val: number): number { const n = val; if (n === 1) return 1; return 5; } export const locale_uz = ["uz",[["TO","TK"],u,u],u,[["Y","D","S","C","P","J","S"],["Yak","Dush","Sesh","Chor","Pay","Jum","Shan"],["yakshanba","dushanba","seshanba","chorshanba","payshanba","juma","shanba"],["Ya","Du","Se","Ch","Pa","Ju","Sh"]],u,[["Y","F","M","A","M","I","I","A","S","O","N","D"],["yan","fev","mar","apr","may","iyn","iyl","avg","sen","okt","noy","dek"],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentabr","oktabr","noyabr","dekabr"]],[["Y","F","M","A","M","I","I","A","S","O","N","D"],["Yan","Fev","Mar","Apr","May","Iyn","Iyl","Avg","Sen","Okt","Noy","Dek"],["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]],[["m.a.","milodiy"],u,["miloddan avvalgi","milodiy"]],1,[6,0],["dd/MM/yy","d-MMM, y","d-MMMM, y","EEEE, d-MMMM, y"],["HH:mm","HH:mm:ss","H:mm:ss (z)","H:mm:ss (zzzz)"],["{1}, {0}",u,u,u],[","," ",";","%","+","-","E","×","‰","∞","son emas",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"UZS","soʻm","O‘zbekiston so‘mi",{"BYN":[u,"р."],"JPY":["JP¥","¥"],"PHP":[u,"₱"],"USD":["US$","$"],"UZS":["soʻm"]},"ltr", plural_locale_uz]; export const locale_extra_uz = [[["yarim tun","tush payti","ertalab","kunduzi","kechqurun","kechasi"],u,u],u,["00:00","12:00",["06:00","11:00"],["11:00","18:00"],["18:00","22:00"],["22:00","06:00"]]]; function plural_locale_vi(val: number): number { const n = val; return 5; } export const locale_vi = ["vi",[["s","c"],["SA","CH"],u],[["SA","CH"],u,u],[["CN","T2","T3","T4","T5","T6","T7"],["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"],["CN","T2","T3","T4","T5","T6","T7"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],["tháng 1","tháng 2","tháng 3","tháng 4","tháng 5","tháng 6","tháng 7","tháng 8","tháng 9","tháng 10","tháng 11","tháng 12"]],[["1","2","3","4","5","6","7","8","9","10","11","12"],["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"]],[["tr. CN","sau CN"],["Trước CN","Sau CN"],["Trước Thiên Chúa","Sau Công Nguyên"]],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"],["{0}, {1}",u,"{0} {1}",u],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"VND","₫","Đồng Việt Nam",{"AUD":["AU$","$"],"BYN":[u,"р."],"PHP":[u,"₱"],"THB":["฿"],"TWD":["NT$"],"USD":["US$","$"],"XXX":[]},"ltr", plural_locale_vi]; export const locale_extra_vi = [[["nửa đêm","tr","sáng","chiều","tối","đêm"],["nửa đêm","TR","sáng","chiều","tối","đêm"],u],[["nửa đêm","trưa","sáng","chiều","tối","đêm"],["nửa đêm","TR","sáng","chiều","tối","đêm"],["nửa đêm","trưa","sáng","chiều","tối","đêm"]],["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","04:00"]]]; function plural_locale_zh(val: number): number { const n = val; return 5; } export const locale_zh = ["zh",[["上午","下午"],u,u],u,[["日","一","二","三","四","五","六"],["周日","周一","周二","周三","周四","周五","周六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["周日","周一","周二","周三","周四","周五","周六"]],u,[["1","2","3","
{ "end_byte": 166268, "start_byte": 162384, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_166270_169330
,"5","6","7","8","9","10","11","12"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]],u,[["公元前","公元"],u,u],0,[6,0],["y/M/d","y年M月d日",u,"y年M月d日EEEE"],["HH:mm","HH:mm:ss","z HH:mm:ss","zzzz HH:mm:ss"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"CNY","¥","人民币",{"AUD":["AU$","$"],"BYN":[u,"р."],"CNY":["¥"],"ILR":["ILS"],"JPY":["JP¥","¥"],"KRW":["₩","₩"],"PHP":[u,"₱"],"RUR":[u,"р."],"TWD":["NT$"],"USD":["US$","$"],"XXX":[]},"ltr", plural_locale_zh]; export const locale_extra_zh = [[["午夜","早上","上午","中午","下午","晚上","凌晨"],u,["午夜","清晨","上午","中午","下午","晚上","凌晨"]],[["午夜","早上","上午","中午","下午","晚上","凌晨"],u,u],["00:00",["05:00","08:00"],["08:00","12:00"],["12:00","13:00"],["13:00","19:00"],["19:00","24:00"],["00:00","05:00"]]]; function plural_locale_zh_Hans(val: number): number { const n = val; return 5; } export const locale_zh_Hans = ["zh-Hans",[["上午","下午"],u,u],u,[["日","一","二","三","四","五","六"],["周日","周一","周二","周三","周四","周五","周六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["周日","周一","周二","周三","周四","周五","周六"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]],u,[["公元前","公元"],u,u],0,[6,0],["y/M/d","y年M月d日",u,"y年M月d日EEEE"],["HH:mm","HH:mm:ss","z HH:mm:ss","zzzz HH:mm:ss"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"CNY","¥","人民币",{"AUD":["AU$","$"],"BYN":[u,"р."],"CNY":["¥"],"ILR":["ILS"],"JPY":["JP¥","¥"],"KRW":["₩","₩"],"PHP":[u,"₱"],"RUR":[u,"р."],"TWD":["NT$"],"USD":["US$","$"],"XXX":[]},"ltr", plural_locale_zh_Hans]; export const locale_extra_zh_Hans = [[["午夜","早上","上午","中午","下午","晚上","凌晨"],u,["午夜","清晨","上午","中午","下午","晚上","凌晨"]],[["午夜","早上","上午","中午","下午","晚上","凌晨"],u,u],["00:00",["05:00","08:00"],["08:00","12:00"],["12:00","13:00"],["13:00","19:00"],["19:00","24:00"],["00:00","05:00"]]]; export const locale_zh_Hans_CN = locale_zh_Hans; export const locale_zh_CN = locale_zh_Hans; export const locale_extra_zh_Hans_CN = locale_extra_zh_Hans; export const locale_extra_zh_CN = locale_extra_zh_Hans; function plural_locale_zh_Hant_HK(val: number): number { const n = val; return 5; } export const locale_zh_Hant_HK = ["zh-Hant-HK",[["上午","下午"],u,u],u,[["日","一","二","三","四","五","六"],["週日","週一","週二","週三","週四","週五","週六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["日","一","二","三","四","五","六"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],u],u,[["公元前","公元"],u,u],0,[6,0],["d/M/y","y年M月d日",u,"y年M月d日EEEE"],["ah:mm","ah:mm:ss","ah:mm:ss [z]","ah:mm:ss [zzzz]"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","非數值",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"HKD","HK$","港元",{"AUD":["AU$","$"],"BYN":[u,"р."],"PHP":[u,"₱"],"RON":[u,"L"],"RUR":[u,"р."],"USD":["US$","$"],"XXX":[]},"ltr", pl
{ "end_byte": 169330, "start_byte": 166270, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_169332_174227
al_locale_zh_Hant_HK]; export const locale_extra_zh_Hant_HK = [[["午夜","早上","上午","中午","下午","晚上","凌晨"],u,u],u,["00:00",["05:00","08:00"],["08:00","12:00"],["12:00","13:00"],["13:00","19:00"],["19:00","24:00"],["00:00","05:00"]]]; export const locale_zh_HK = locale_zh_Hant_HK; export const locale_extra_zh_HK = locale_extra_zh_Hant_HK; function plural_locale_zh_Hant(val: number): number { const n = val; return 5; } export const locale_zh_Hant = ["zh-Hant",[["上午","下午"],u,u],u,[["日","一","二","三","四","五","六"],["週日","週一","週二","週三","週四","週五","週六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["日","一","二","三","四","五","六"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],u],u,[["西元前","西元"],u,u],0,[6,0],["y/M/d","y年M月d日",u,"y年M月d日 EEEE"],["Bh:mm","Bh:mm:ss","Bh:mm:ss [z]","Bh:mm:ss [zzzz]"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","非數值",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"TWD","$","新台幣",{"AUD":["AU$","$"],"BYN":[u,"р."],"KRW":["₩","₩"],"PHP":[u,"₱"],"RON":[u,"L"],"RUR":[u,"р."],"TWD":["$"],"USD":["US$","$"],"XXX":[]},"ltr", plural_locale_zh_Hant]; export const locale_extra_zh_Hant = [[["午夜","清晨","上午","中午","下午","晚上","凌晨"],u,u],u,["00:00",["05:00","08:00"],["08:00","12:00"],["12:00","13:00"],["13:00","19:00"],["19:00","24:00"],["00:00","05:00"]]]; export const locale_zh_Hant_TW = locale_zh_Hant; export const locale_zh_TW = locale_zh_Hant; export const locale_extra_zh_Hant_TW = locale_extra_zh_Hant; export const locale_extra_zh_TW = locale_extra_zh_Hant; function plural_locale_zu(val: number): number { const n = val, i = Math.floor(Math.abs(val)); if (i === 0 || n === 1) return 1; return 5; } export const locale_zu = ["zu",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["S","M","B","T","S","H","M"],["Son","Mso","Bil","Tha","Sin","Hla","Mgq"],["ISonto","UMsombuluko","ULwesibili","ULwesithathu","ULwesine","ULwesihlanu","UMgqibelo"],["Son","Mso","Bil","Tha","Sin","Hla","Mgq"]],u,[["J","F","M","E","M","J","J","A","S","O","N","D"],["Jan","Feb","Mas","Eph","Mey","Jun","Jul","Aga","Sep","Okt","Nov","Dis"],["Januwari","Februwari","Mashi","Ephreli","Meyi","Juni","Julayi","Agasti","Septhemba","Okthoba","Novemba","Disemba"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mas","Eph","Mey","Jun","Jul","Aga","Sep","Okt","Nov","Dis"],["Januwari","Februwari","Mashi","Ephreli","Meyi","Juni","Julayi","Agasti","Septhemba","Okthoba","Novemba","Disemba"]],[["BC","AD"],u,u],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"ZAR","R","i-South African Rand",{"BYN":[u,"P."],"DKK":[u,"Kr"],"HRK":[u,"Kn"],"ISK":[u,"Kr"],"JPY":["JP¥","¥"],"NOK":[u,"Kr"],"PHP":[u,"₱"],"PLN":[u,"Zł"],"SEK":[u,"Kr"],"THB":["฿"],"TWD":["NT$"],"ZAR":["R"]},"ltr", plural_locale_zu]; export const locale_extra_zu = [[["entathakusa","ekuseni","emini","ntambama","ebusuku"],u,u],u,[["00:00","06:00"],["06:00","10:00"],["10:00","13:00"],["13:00","19:00"],["19:00","24:00"]]]; let l: any; let e: any; let locales: string[] = []; switch (goog.LOCALE) { case 'af': l = locale_af; e = locale_extra_af; locales = ["af"]; break; case 'am': l = locale_am; e = locale_extra_am; locales = ["am"]; break; case 'ar': l = locale_ar; e = locale_extra_ar; locales = ["ar"]; break; case 'ar-DZ': case 'ar_DZ': l = locale_ar_DZ; e = locale_extra_ar_DZ; locales = ["ar-DZ", "ar_DZ"]; break; case 'az': l = locale_az; e = locale_extra_az; locales = ["az"]; break; case 'be': l = locale_be; e = locale_extra_be; locales = ["be"]; break; case 'bg': l = locale_bg; e = locale_extra_bg; locales = ["bg"]; break; case 'bn': l = locale_bn; e = locale_extra_bn; locales = ["bn"]; break; case 'br': l = locale_br; e = locale_extra_br; locales = ["br"]; break; case 'bs': l = locale_bs; e = locale_extra_bs; locales = ["bs"]; break; case 'ca': l = locale_ca; e = locale_extra_ca; locales = ["ca"]; break; case 'chr': l = locale_chr; e = locale_extra_chr; locales = ["chr"]; break; case 'cs': l = locale_cs; e = locale_extra_cs; locales = ["cs"]; break; case 'cy': l = locale_cy; e = locale_extra_cy; locales = ["cy"]; break; case 'da': l = locale_da; e = locale_extra_da; locales = ["da"]; break; case 'de': l = locale_de; e = locale_extra_de; locales = ["de"]; break; case 'de-AT': case 'de_AT': l = locale_de_AT; e = locale_extra_de_AT; locales = ["de-AT", "de_AT"]; break; case 'de-CH': case 'de_CH': l = locale_de_CH; e = locale_extra_de_CH; locales = ["de-CH", "de_CH"]; break; case 'el': l = locale_el; e = locale_extra_el; locales = ["el"]; break; case 'en-AU': case 'en_AU': l
{ "end_byte": 174227, "start_byte": 169332, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_174228_179425
= locale_en_AU; e = locale_extra_en_AU; locales = ["en-AU", "en_AU"]; break; case 'en-CA': case 'en_CA': l = locale_en_CA; e = locale_extra_en_CA; locales = ["en-CA", "en_CA"]; break; case 'en-GB': case 'en_GB': l = locale_en_GB; e = locale_extra_en_GB; locales = ["en-GB", "en_GB"]; break; case 'en-IE': case 'en_IE': l = locale_en_IE; e = locale_extra_en_IE; locales = ["en-IE", "en_IE"]; break; case 'en-IN': case 'en_IN': l = locale_en_IN; e = locale_extra_en_IN; locales = ["en-IN", "en_IN"]; break; case 'en-SG': case 'en_SG': l = locale_en_SG; e = locale_extra_en_SG; locales = ["en-SG", "en_SG"]; break; case 'en-ZA': case 'en_ZA': l = locale_en_ZA; e = locale_extra_en_ZA; locales = ["en-ZA", "en_ZA"]; break; case 'es': l = locale_es; e = locale_extra_es; locales = ["es"]; break; case 'es-419': case 'es_419': l = locale_es_419; e = locale_extra_es_419; locales = ["es-419", "es_419"]; break; case 'es-MX': case 'es_MX': l = locale_es_MX; e = locale_extra_es_MX; locales = ["es-MX", "es_MX"]; break; case 'es-US': case 'es_US': l = locale_es_US; e = locale_extra_es_US; locales = ["es-US", "es_US"]; break; case 'et': l = locale_et; e = locale_extra_et; locales = ["et"]; break; case 'eu': l = locale_eu; e = locale_extra_eu; locales = ["eu"]; break; case 'fa': l = locale_fa; e = locale_extra_fa; locales = ["fa"]; break; case 'fi': l = locale_fi; e = locale_extra_fi; locales = ["fi"]; break; case 'fr': l = locale_fr; e = locale_extra_fr; locales = ["fr"]; break; case 'fr-CA': case 'fr_CA': l = locale_fr_CA; e = locale_extra_fr_CA; locales = ["fr-CA", "fr_CA"]; break; case 'ga': l = locale_ga; e = locale_extra_ga; locales = ["ga"]; break; case 'gl': l = locale_gl; e = locale_extra_gl; locales = ["gl"]; break; case 'gsw': l = locale_gsw; e = locale_extra_gsw; locales = ["gsw"]; break; case 'gu': l = locale_gu; e = locale_extra_gu; locales = ["gu"]; break; case 'haw': l = locale_haw; e = locale_extra_haw; locales = ["haw"]; break; case 'hi': l = locale_hi; e = locale_extra_hi; locales = ["hi"]; break; case 'hr': l = locale_hr; e = locale_extra_hr; locales = ["hr"]; break; case 'hu': l = locale_hu; e = locale_extra_hu; locales = ["hu"]; break; case 'hy': l = locale_hy; e = locale_extra_hy; locales = ["hy"]; break; case 'id': case 'in': l = locale_id; e = locale_extra_id; locales = ["id", "in"]; break; case 'is': l = locale_is; e = locale_extra_is; locales = ["is"]; break; case 'it': l = locale_it; e = locale_extra_it; locales = ["it"]; break; case 'he': case 'iw': l = locale_he; e = locale_extra_he; locales = ["he", "iw"]; break; case 'ja': l = locale_ja; e = locale_extra_ja; locales = ["ja"]; break; case 'ka': l = locale_ka; e = locale_extra_ka; locales = ["ka"]; break; case 'kk': l = locale_kk; e = locale_extra_kk; locales = ["kk"]; break; case 'km': l = locale_km; e = locale_extra_km; locales = ["km"]; break; case 'kn': l = locale_kn; e = locale_extra_kn; locales = ["kn"]; break; case 'ko': l = locale_ko; e = locale_extra_ko; locales = ["ko"]; break; case 'ky': l = locale_ky; e = locale_extra_ky; locales = ["ky"]; break; case 'ln': l = locale_ln; e = locale_extra_ln; locales = ["ln"]; break; case 'lo': l = locale_lo; e = locale_extra_lo; locales = ["lo"]; break; case 'lt': l = locale_lt; e = locale_extra_lt; locales = ["lt"]; break; case 'lv': l = locale_lv; e = locale_extra_lv; locales = ["lv"]; break; case 'mk': l = locale_mk; e = locale_extra_mk; locales = ["mk"]; break; case 'ml': l = locale_ml; e = locale_extra_ml; locales = ["ml"]; break; case 'mn': l = locale_mn; e = locale_extra_mn; locales = ["mn"]; break; case 'ro-MD': case 'ro_MD': case 'mo': l = locale_ro_MD; e = locale_extra_ro_MD; locales = ["ro-MD", "ro_MD", "mo"]; break; case 'mr': l = locale_mr; e = locale_extra_mr; locales = ["mr"]; break; case 'ms': l = locale_ms; e = locale_extra_ms; locales = ["ms"]; break; case 'mt': l = locale_mt; e = locale_extra_mt; locales = ["mt"]; break; case 'my': l = locale_my; e = locale_extra_my; locales = ["my"]; break; case 'ne': l = locale_ne; e = locale_extra_ne; locales = ["ne"]; break; case 'nl': l = locale_nl; e = locale_extra_nl; locales = ["nl"]; break; case 'nb': case 'no': case 'no-NO': case 'no_NO': l = locale_nb; e = locale_extra_nb; locales = ["nb", "no", "no-NO", "no_NO"]; break; case 'or': l = locale_or; e = locale_extra_or; locales = ["or"]; break; case 'pa': l = locale_pa; e = locale_extra_pa; locales = ["pa"]; break; case 'pl': l = locale_pl; e = locale_extra_pl; locales = ["pl"]; break; case 'pt': case 'pt-BR': case 'pt_BR': l = locale_pt; e = locale_extra_pt; locales = ["pt", "pt-BR", "pt_BR"]; break; case 'pt-PT': case 'pt_PT': l = locale_pt_PT; e = locale_extra_pt_PT; locales = ["pt-PT", "pt_PT"]; break; case 'ro': l = locale_ro; e = locale
{ "end_byte": 179425, "start_byte": 174228, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/closure-locale.ts_179427_210209
xtra_ro; locales = ["ro"]; break; case 'ru': l = locale_ru; e = locale_extra_ru; locales = ["ru"]; break; case 'sr-Latn': case 'sr_Latn': case 'sh': l = locale_sr_Latn; e = locale_extra_sr_Latn; locales = ["sr-Latn", "sr_Latn", "sh"]; break; case 'si': l = locale_si; e = locale_extra_si; locales = ["si"]; break; case 'sk': l = locale_sk; e = locale_extra_sk; locales = ["sk"]; break; case 'sl': l = locale_sl; e = locale_extra_sl; locales = ["sl"]; break; case 'sq': l = locale_sq; e = locale_extra_sq; locales = ["sq"]; break; case 'sr': l = locale_sr; e = locale_extra_sr; locales = ["sr"]; break; case 'sv': l = locale_sv; e = locale_extra_sv; locales = ["sv"]; break; case 'sw': l = locale_sw; e = locale_extra_sw; locales = ["sw"]; break; case 'ta': l = locale_ta; e = locale_extra_ta; locales = ["ta"]; break; case 'te': l = locale_te; e = locale_extra_te; locales = ["te"]; break; case 'th': l = locale_th; e = locale_extra_th; locales = ["th"]; break; case 'fil': case 'tl': l = locale_fil; e = locale_extra_fil; locales = ["fil", "tl"]; break; case 'tr': l = locale_tr; e = locale_extra_tr; locales = ["tr"]; break; case 'uk': l = locale_uk; e = locale_extra_uk; locales = ["uk"]; break; case 'ur': l = locale_ur; e = locale_extra_ur; locales = ["ur"]; break; case 'uz': l = locale_uz; e = locale_extra_uz; locales = ["uz"]; break; case 'vi': l = locale_vi; e = locale_extra_vi; locales = ["vi"]; break; case 'zh': l = locale_zh; e = locale_extra_zh; locales = ["zh"]; break; case 'zh-Hans': case 'zh_Hans': case 'zh-Hans-CN': case 'zh_Hans_CN': case 'zh-CN': case 'zh_CN': l = locale_zh_Hans; e = locale_extra_zh_Hans; locales = ["zh-Hans", "zh_Hans", "zh-Hans-CN", "zh_Hans_CN", "zh-CN", "zh_CN"]; break; case 'zh-Hant-HK': case 'zh_Hant_HK': case 'zh-HK': case 'zh_HK': l = locale_zh_Hant_HK; e = locale_extra_zh_Hant_HK; locales = ["zh-Hant-HK", "zh_Hant_HK", "zh-HK", "zh_HK"]; break; case 'zh-Hant': case 'zh_Hant': case 'zh-Hant-TW': case 'zh_Hant_TW': case 'zh-TW': case 'zh_TW': l = locale_zh_Hant; e = locale_extra_zh_Hant; locales = ["zh-Hant", "zh_Hant", "zh-Hant-TW", "zh_Hant_TW", "zh-TW", "zh_TW"]; break; case 'zu': l = locale_zu; e = locale_extra_zu; locales = ["zu"]; break;} if (l) { locales.forEach(locale => registerLocaleData(l, locale, e)); }
{ "end_byte": 210209, "start_byte": 179427, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/closure-locale.ts" }
angular/packages/common/locales/ff-GN.ts_0_2018
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // **Note**: Locale files are generated through Bazel and never part of the sources. This is an // exception for backwards compatibility. With the Gulp setup we never deleted old locale files // when updating CLDR, so older locale files which have been removed, or renamed in the CLDR // data remained in the repository. We keep these files checked-in until the next major to avoid // potential breaking changes. It's worth noting that the locale data for such files is outdated // anyway. e.g. the data is missing the directionality, throwing off the indices. const u = undefined; 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', [['subaka', 'kikiiɗe'], u, u], u, [ ['d', 'a', 'm', 'n', 'n', 'm', 'h'], ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], ['dewo', 'aaɓnde', 'mawbaare', 'njeslaare', 'naasaande', 'mawnde', 'hoore-biir'], ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], ], u, [ ['s', 'c', 'm', 's', 'd', 'k', 'm', 'j', 's', 'y', 'j', 'b'], ['sii', 'col', 'mbo', 'see', 'duu', 'kor', 'mor', 'juk', 'slt', 'yar', 'jol', 'bow'], [ 'siilo', 'colte', 'mbooy', 'seeɗto', 'duujal', 'korse', 'morso', 'juko', 'siilto', 'yarkomaa', 'jolal', 'bowte', ], ], u, [['H-I', 'C-I'], u, ['Hade Iisa', 'Caggal Iisa']], 1, [6, 0], ['d/M/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}', u, u, u], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FG', 'GNF', {'GNF': ['FG'], 'JPY': ['JP¥', '¥'], 'USD': ['US$', '$']}, plural, ];
{ "end_byte": 2018, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/ff-GN.ts" }
angular/packages/common/locales/BUILD.bazel_0_1656
load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test") load("//packages/common/locales:index.bzl", "LOCALES", "generate_all_locale_files", "generate_closure_locale_file") load("//tools:defaults.bzl", "pkg_npm", "ts_library") package(default_visibility = ["//visibility:public"]) # This generates the `closure-locale.ts` file through the `generate-locales` tool. Since # the `closure-locale.ts` file is checked-in for Google3, we add a `generated_file_test` to # ensure the checked-in file is up-to-date. To disambiguate from the test, we use a more # precise target name here. generate_closure_locale_file( name = "closure_locale_file_generated", output_file = "closure_locale_generated.ts", ) generated_file_test( name = "closure_locale_file", src = "closure-locale.ts", generated = ":closure_locale_file_generated", ) generate_all_locale_files( name = "locale_files", ) ts_library( name = "locales", # TODO(devversion): Remove glob for checked-in legacy locale files that haven't been # removed in the past (when CLDR has been updated). These can be removed in a major. srcs = [file for l in LOCALES for file in [ "%s.ts" % l, "extra/%s.ts" % l, ]] + glob( [ "*.ts", "extra/*.ts", ], exclude = ["closure-locale.ts"], ), ) pkg_npm( name = "package", # TODO(devversion): Remove glob for checked-in legacy locale files that haven't been # removed in the past (when CLDR has been updated). These can be removed in a major. deps = ["global/%s.js" % l for l in LOCALES] + [":locales"] + glob(["global/*.js"]), )
{ "end_byte": 1656, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/BUILD.bazel" }
angular/packages/common/locales/generate-locales-tool/file-header.ts_0_480
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export const fileHeader = `/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // THIS CODE IS GENERATED - DO NOT MODIFY.`;
{ "end_byte": 480, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/file-header.ts" }
angular/packages/common/locales/generate-locales-tool/locale-base-currencies.ts_0_2457
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CldrLocaleData} from './cldr-data'; import {fileHeader} from './file-header'; import {stringify} from './object-stringify'; export type BaseCurrencySymbols = | [string] | [string | undefined, string] | [string, undefined, number] | [string | undefined, string, number]; export type BaseCurrencies = { [code: string]: BaseCurrencySymbols | undefined; }; /** * Generate a file that contains the list of currencies, their symbols and digits. */ export function generateBaseCurrenciesFile(baseLocaleData: CldrLocaleData) { const baseCurrencies = generateBaseCurrencies(baseLocaleData); return `${fileHeader} export type CurrenciesSymbols = [string] | [string | undefined, string]; /** @internal */ export const CURRENCIES_EN: {[code: string]: CurrenciesSymbols | [string | undefined, string | undefined, number]} = ${stringify( baseCurrencies, )}; `; } /** * Generate a list of currencies to be used as a base for other currencies * e.g.: {'ARS': [, '$'], 'AUD': ['A$', '$'], ...} */ export function generateBaseCurrencies(localeData: CldrLocaleData) { const currenciesData = localeData.main('numbers/currencies'); const fractions = localeData.get(`supplemental/currencyData/fractions`); const currencies: BaseCurrencies = {}; Object.keys(currenciesData).forEach((key) => { const symbolsArray: any[] = []; const symbol = currenciesData[key].symbol; const symbolNarrow = currenciesData[key]['symbol-alt-narrow']; if (symbol && symbol !== key) { symbolsArray.push(symbol); } if (symbolNarrow && symbolNarrow !== symbol) { if (symbolsArray.length > 0) { symbolsArray.push(symbolNarrow); } else { symbolsArray.push(undefined, symbolNarrow); } } if (fractions[key] && fractions[key]['_digits']) { const digits = parseInt(fractions[key]['_digits'], 10); if (symbolsArray.length === 2) { symbolsArray.push(digits); } else if (symbolsArray.length === 1) { symbolsArray.push(undefined, digits); } else { symbolsArray.push(undefined, undefined, digits); } } if (symbolsArray.length > 0) { currencies[key] = symbolsArray as BaseCurrencySymbols; } }); return currencies; }
{ "end_byte": 2457, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/locale-base-currencies.ts" }
angular/packages/common/locales/generate-locales-tool/locale-global-file.ts_0_1433
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CldrLocaleData} from './cldr-data'; import {fileHeader} from './file-header'; import {BaseCurrencies} from './locale-base-currencies'; import {generateLocaleExtraDataArrayCode} from './locale-extra-file'; import {generateBasicLocaleString} from './locale-file'; import {getPluralFunction} from './plural-function'; /** * Generated the contents for the global locale file */ export function generateLocaleGlobalFile( locale: string, localeData: CldrLocaleData, baseCurrencies: BaseCurrencies, ) { const basicLocaleData = generateBasicLocaleString(locale, localeData, baseCurrencies); const extraLocaleData = generateLocaleExtraDataArrayCode(locale, localeData); const data = basicLocaleData.replace(/\]$/, `, ${extraLocaleData}]`); return `${fileHeader} (function(global) { global.ng ??= {}; global.ng.common ??= {}; global.ng.common.locales ??= {}; const u = undefined; ${getPluralFunction(localeData, false)} global.ng.common.locales['${normalizeLocale(locale)}'] = ${data}; })(globalThis); `; } /** * In Angular the locale is referenced by a "normalized" form. */ function normalizeLocale(locale: string): string { return locale.toLowerCase().replace(/_/g, '-'); }
{ "end_byte": 1433, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/locale-global-file.ts" }
angular/packages/common/locales/generate-locales-tool/cldr-data.ts_0_5397
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {runfiles} from '@bazel/runfiles'; import cldrjs, {type CldrStatic} from 'cldrjs'; import fs from 'fs'; import glob from 'fast-glob'; /** * Globs that match CLDR JSON data files that should be fetched. We limit these intentionally * as loading unused data results in significant slow-down of the generation * (noticeable in local development if locale data is re-generated). */ const CLDR_DATA_GLOBS = [ 'cldr-core/scriptMetadata.json', 'cldr-core/supplemental/*.json', 'cldr-dates-full/main/**/*.json', 'cldr-numbers-full/main/**/*.json', ]; /** Path to the CLDR available locales file. */ const CLDR_AVAILABLE_LOCALES_PATH = 'cldr-core/availableLocales.json'; /** Path to the CLDR locale aliases file. */ const CLDR_LOCALE_ALIASES_PATH = 'cldr-core/supplemental/aliases.json'; /** * Instance providing access to a locale's CLDR data. This type extends the `cldrjs` * instance type with the missing `bundle` attribute property. */ export type CldrLocaleData = CldrStatic & { attributes: { /** * Resolved bundle name for the locale. * More details: http://www.unicode.org/reports/tr35/#Bundle_vs_Item_Lookup */ bundle: string; }; }; /** * Possible reasons for an alias in the CLDR supplemental data. See: * https://unicode.org/reports/tr35/tr35-info.html#Appendix_Supplemental_Metadata. */ export type CldrLocaleAliasReason = | 'deprecated' | 'overlong' | 'macrolanguage' | 'legacy' | 'bibliographic'; /** * Class that provides access to the CLDR JSON data downloaded as part of * the `@cldr_json_data` Bazel repository. */ export class CldrData { /** Path to the CLDR JSON data Bazel repository. i.e. `@cldr_json_data//`. */ readonly cldrDataDir = runfiles.resolve('cldr_json_data'); /** List of all available locales CLDR provides data for. */ readonly availableLocales: readonly CldrLocaleData[]; constructor() { this._loadAndPopulateCldrData(); this.availableLocales = this._getAvailableLocales(); } /** Gets the CLDR data for the specified locale. */ getLocaleData(localeName: string): CldrLocaleData | null { // Cast to `CldrLocaleData` because the default `cldrjs` types from `DefinitelyTyped` // are outdated and do not capture the `bundle` attribute. See: // https://github.com/rxaviers/cldrjs#instantiate-a-locale-and-get-it-normalized. const localeData = new cldrjs(localeName) as CldrLocaleData; // In case a locale has been requested for which no data is available, we return // `null` immediately instead of returning an empty `CldrStatic` instance. if (localeData.attributes.bundle === null) { return null; } return localeData; } /** * Gets the CLDR language aliases. * http://cldr.unicode.org/index/cldr-spec/language-tag-equivalences. */ getLanguageAliases(): { [localeName: string]: {_reason: CldrLocaleAliasReason; _replacement: string}; } { return this._loadJsonOrThrow(`${this.cldrDataDir}/${CLDR_LOCALE_ALIASES_PATH}`).supplemental .metadata.alias.languageAlias; } /** Gets a list of all locales CLDR provides data for. */ private _getAvailableLocales(): CldrLocaleData[] { const allLocales = this._loadJsonOrThrow(`${this.cldrDataDir}/${CLDR_AVAILABLE_LOCALES_PATH}`) .availableLocales.full; const localesWithData: CldrLocaleData[] = []; for (const localeName of allLocales) { const localeData = this.getLocaleData(localeName); if (localeData === null) { throw new Error(`Missing locale data for the "${localeName}" locale.`); } localesWithData.push(localeData); } return localesWithData; } /** Loads the CLDR data and populates the `cldrjs` library with it. */ private _loadAndPopulateCldrData() { const localeData = this._readCldrDataFromRepository(); if (localeData.length === 0) { throw Error('No CLDR data could be found.'); } // Populate the `cldrjs` library with the locale data. Note that we need this type cast // to satisfy the first `cldrjs.load` parameter which cannot be undefined. cldrjs.load(...(localeData as [object, ...object[]])); } /** * Reads the CLDR JSON data from the Bazel repository. * @returns a list of read JSON objects representing the CLDR data. */ private _readCldrDataFromRepository(): object[] { const jsonFiles = CLDR_DATA_GLOBS.map((pattern) => glob.sync(pattern, {cwd: this.cldrDataDir, absolute: true}), ).reduce((acc, dataFiles) => [...acc, ...dataFiles], []); // Read the JSON for all determined CLDR json files. return jsonFiles.map((filePath) => { const parsed = this._loadJsonOrThrow(filePath); // Guards against cases where non-CLDR data files are accidentally picked up // by the glob above and would throw-off the bundle lookup in `cldrjs`. if (parsed.main !== undefined && typeof parsed.main !== 'object') { throw Error('Unexpected CLDR json file with "main" field which is not an object.'); } return parsed; }); } private _loadJsonOrThrow(filePath: string): any { return JSON.parse(fs.readFileSync(filePath, 'utf8')) as unknown as any; } }
{ "end_byte": 5397, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/cldr-data.ts" }
angular/packages/common/locales/generate-locales-tool/locale-currencies.ts_0_2771
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CldrLocaleData} from './cldr-data'; import {BaseCurrencies} from './locale-base-currencies'; /** * To minimize the file even more, we only output the differences compared to the base currency */ export function generateLocaleCurrencies( localeData: CldrLocaleData, baseCurrencies: BaseCurrencies, ) { const currenciesData = localeData.main('numbers/currencies'); const currencies: any = {}; Object.keys(currenciesData).forEach((code) => { let symbolsArray: any[] = []; const symbol = currenciesData[code].symbol; const symbolNarrow = currenciesData[code]['symbol-alt-narrow']; if (symbol && symbol !== code) { symbolsArray.push(symbol); } if (symbolNarrow && symbolNarrow !== symbol) { if (symbolsArray.length > 0) { symbolsArray.push(symbolNarrow); } else { symbolsArray = [undefined, symbolNarrow]; } } const baseCurrencySymbols = baseCurrencies[code] || []; // Jf locale data is equal to the one in the base currencies, skip this currency to // avoid unnecessary locale data that could be inferred from the base currency. if ( baseCurrencySymbols && baseCurrencySymbols[0] === symbolsArray[0] && baseCurrencySymbols[1] === symbolsArray[1] ) { return; } currencies[code] = symbolsArray; }); return currencies; } /** * Returns the currency code, symbol and name for a locale */ export function getCurrencySettings(localeName: string, localeData: CldrLocaleData) { const currencyInfo = localeData.main(`numbers/currencies`); let currentCurrency = ''; // find the currency currently used in this country const currencies: any[] = localeData.get(`supplemental/currencyData/region/${localeData.attributes.territory}`) || localeData.get( `supplemental/currencyData/region/${localeData.attributes.language.toUpperCase()}`, ); if (currencies) { currencies.some((currency) => { const keys = Object.keys(currency); return keys.some((key) => { if (currency[key]._from && !currency[key]._to) { return (currentCurrency = key); } return false; }); }); if (!currentCurrency) { throw new Error(`Unable to find currency for locale "${localeName}"`); } } let currencySettings = [undefined, undefined, undefined]; if (currentCurrency) { currencySettings = [ currentCurrency, currencyInfo[currentCurrency].symbol, currencyInfo[currentCurrency].displayName, ]; } return currencySettings; }
{ "end_byte": 2771, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/locale-currencies.ts" }
angular/packages/common/locales/generate-locales-tool/cldr-data.bzl_0_2869
def _cldr_json_data_repository_impl(ctx): for url, sha256 in ctx.attr.urls.items(): ctx.report_progress("Downloading CLDR JSON data from: %s" % url) ctx.download_and_extract( url = url, sha256 = sha256, ) ctx.report_progress("Extracting available locales from: %s" % ctx.attr.available_locales_path) locales_json = ctx.read(ctx.attr.available_locales_path) locales = json.decode(locales_json)["availableLocales"]["full"] ctx.report_progress("Extracted %s locales from CLDR" % len(locales)) ctx.file("index.bzl", content = """ LOCALES=%s """ % locales) ctx.file("BUILD.bazel", content = """ filegroup( name = "all_json", srcs = glob(["**/*.json"]), visibility = ["//visibility:public"], ) """) def _cldr_xml_data_repository_impl(ctx): for url, sha256 in ctx.attr.urls.items(): ctx.report_progress("Downloading CLDR XML data from: %s" % url) ctx.download_and_extract( url = url, sha256 = sha256, ) ctx.file("BUILD.bazel", content = """ filegroup( name = "all_xml", srcs = glob(["**/*.xml"]), visibility = ["//visibility:public"], ) """) """ Repository rule that downloads CLDR data in JSON format from the specified repository and generates a `BUILD.bazel` file that exposes all data files. Additionally, an `index.bzl` file is generated that exposes a constant for all locales the repository contains data for. This can be used to generate pre-declared outputs. """ cldr_json_data_repository = repository_rule( implementation = _cldr_json_data_repository_impl, attrs = { "urls": attr.string_dict(doc = """ Dictionary of URLs that resolve to archives containing CLDR JSON data. These archives will be downloaded and extracted at root of the repository. Each key can specify a SHA256 checksum for hermetic builds. """, mandatory = True), "available_locales_path": attr.string( doc = """ Relative path to the JSON data file describing all available locales. This file usually resides within the `cldr-core` package """, default = "cldr-core/availableLocales.json", ), }, ) """ Repository rule that downloads CLDR data in XML format from the specified repository and generates a `BUILD.bazel` file that exposes all data files. """ cldr_xml_data_repository = repository_rule( implementation = _cldr_xml_data_repository_impl, attrs = { "urls": attr.string_dict(doc = """ Dictionary of URLs that resolve to archives containing CLDR XML data. These archives will be downloaded and extracted at root of the repository. Each key can specify a SHA256 checksum for hermetic builds. """, mandatory = True), }, )
{ "end_byte": 2869, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/cldr-data.bzl" }
angular/packages/common/locales/generate-locales-tool/object-stringify.ts_0_1983
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ const UNDEFINED_PLACEHOLDER = `ɵɵUNDEFINED_PLACEHOLDER_JSON`; const UNDEFINED_PLACEHOLDER_REGEX = new RegExp(`["']${UNDEFINED_PLACEHOLDER}["']`, 'g'); /** * Stringifies the given object while preserving `undefined` values which would usually * be transformed into `null` with JSON5. We want to preserve `undefined` because in generated * JavaScript, the `undefined` values are separate from `null`, and `undefined` can be minified * more efficiently. For example in arrays: `[, , someValue]`. * * Note that we do not use `JSON5` or similar formats where properties are not explicitly * wrapped in quotes. Quotes are necessary so that Closure compiler does not accidentally * rename properties. See an example where the currency symbols will be incorrect: * https://closure-compiler.appspot.com/home#code%3D%252F%252F%2520%253D%253DClosureCompiler%253D%253D%250A%252F%252F%2520%2540output_file_name%2520default.js%250A%252F%252F%2520%2540compilation_level%2520ADVANCED_OPTIMIZATIONS%250A%252F%252F%2520%253D%253D%252FClosureCompiler%253D%253D%250A%250Aconst%2520base_currencies%2520%253D%2520%257B%250A%2520%2520ABC%253A%2520'd'%252C%250A%2509USD%253A%2520'x'%252C%250A%257D%253B%250A%250Aconst%2520current_locale_currencies%2520%253D%2520%257B%257D%250A%250Afunction%2520getCurrencySymbol(l)%2520%257B%250A%2520%2520return%2520current_locale_currencies%255Bl%255D%2520%257C%257C%2520base_currencies%255Bl%255D%2520%257C%257C%2520l%250A%257D%250A%250Aconsole.log(getCurrencySymbol('de'))%253B */ export function stringify(value: any) { const result = JSON.stringify(value, (_, value) => value === undefined ? UNDEFINED_PLACEHOLDER : value, ); UNDEFINED_PLACEHOLDER_REGEX.lastIndex = 0; return result.replace(UNDEFINED_PLACEHOLDER_REGEX, 'undefined'); }
{ "end_byte": 1983, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/object-stringify.ts" }
angular/packages/common/locales/generate-locales-tool/README.md_0_4797
# generate-locales-tool Angular relies on CLDR for internationalization. The locale data is split up into the following filesets: 1. A default locale used within `@angular/core`. This is the `locale_en.ts` file. 2. Information about currencies with their symbols and fraction digits (based on the default locale). The base currency information resides in `@angular/common/src/i18n`. 3. Locale files containing date, plural, currency information and more. This is a high-level overview of the tool and how it organizes/optimizes the locale data within Angular. In the following section the individual filesets are described in detail. ### Default locale file in `@angular/core` The default locale file resides within `@angular/core` and provides locale information for the `en` locale. The `en` locale is commonly used for local development. This default locale file does not differ from other locale files generated within `@angular/common/locales`, so the details are discussed below. ### Base currency information within `@angular/common` The `@angular/core` package is not providing directives or syntax for dealing with currencies. This is part of the `@angular/common` package and its i18n features (such as the `currency` pipe). Due to this separation of concerns, the default locale in `core` does not contain any information about currencies, and the currency information is stored as a separate file within `@angular/common/src/i18n`. The currency information is stored within an object that maps each currency code (like `USD`) to an array describing the symbol, narrow symbol and number of digits to display for fractions. e.g. ```ts const baseCurrencies = { 'CAD': ['CA$', '$', 2], 'NZD': ['NZ$', '$'], 'USD': ['$'], } ``` In the snippet above, you might wonder why values for `NZD` or `USD` are missing. This is intentional as for `USD` there is no narrow symbol (given `$` already being the symbol). The tool does not set an explicit value for byte savings. Same applies for the fraction digits. ### Locale files Aside from the default locale (`en`) which is generated separately, this tool generates locale files for all other locales the CLDR package provides data for. Locale files currently provide the following locale data: * Date time settings (describes how dates are formatted, e.g. the locale-based label for Monday) * Number settings (describing how numbers are formatted, e.g. what the plus symbol is) * Currency settings (describing how to format currencies for current locale) * Currency symbols based on the given locale. e.g. in `en-AU` `USD` is the currency symbol. * Directionality of the locale (i.e. whether text is displayed in RTL or LTR) All the data is stored in an array where the Angular framework can read specific data using the corresponding index (see `LocaleDataIndex` for details on how data is read). **Performance optimizations** Given we already have currency symbols for the default locale within `@angular/common/src/i18n`, we do not need to capture currencies that aren't different within a given locale. We just omit the data for such currencies and let the Angular framework fall back to the currency symbols from the default locale (this avoids unnecessary duplication). Additionally, if locale data is equal to locale data at a previous index, then the generation tool will not repeat the data but instead set `undefined`. The Angular framework will look for the previous value in that case. This reduces the payload size for locales even further. For example: ```ts [ // ... labelsForDayPeriodsNarrow, labelsForDayPeriodsAbbreviated ] ``` If `labelsForDayPeriodsAbbreviated` for example is equal to `labelsForDayPeriodsNarrow`, then the tool will not set a value for the abbreviated labels. Instead, it will set `undefined` as that minifies to: `[labelsForDayPeriodsNarrow, undefined]`. ### Where are the CLDR data files stored? The CLDR data is fetched through Bazel repositories. See the project-level `WORKSPACE` file for more information. The generation tool resolves all locale data through the `@cldr_json_data` and `@cldr_xml_data` Bazel repositories (depending on the data format that it needs). Locale files, or the default currencies file are not source files that would end up in the Git repository. This is different to the old Gulp setup where such files were added as part of the repository. The benefit of no longer adding such files to the Git repository is that updating CLDR is no longer resulting in large diffs. Another significant benefit is that files cannot be modified manually. Previously, developers could have manually made changes within locale files and no tooling would complain. This could result in locale files which are not in sync with CLDR / or files which are broken.
{ "end_byte": 4797, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/README.md" }
angular/packages/common/locales/generate-locales-tool/BUILD.bazel_0_362
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "generate-locales-tool", srcs = glob(["*.ts"]), deps = [ "@npm//@bazel/runfiles", "@npm//@types/cldrjs", "@npm//@types/node", "@npm//cldr", "@npm//cldrjs", "@npm//fast-glob", ], )
{ "end_byte": 362, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/BUILD.bazel" }
angular/packages/common/locales/generate-locales-tool/day-periods.ts_0_2815
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CldrLocaleData} from './cldr-data'; /** * Returns data for the chosen day periods */ export function getDayPeriods( localeData: CldrLocaleData, dayPeriodsList: string[], ): { format: { narrow: Record<string, string>; abbreviated: Record<string, string>; wide: Record<string, string>; }; 'stand-alone': { narrow: Record<string, string>; abbreviated: Record<string, string>; wide: Record<string, string>; }; } { const dayPeriods = localeData.main(`dates/calendars/gregorian/dayPeriods`); const result: any = {}; // cleaning up unused keys Object.keys(dayPeriods).forEach((key1) => { // format / stand-alone result[key1] = {}; Object.keys(dayPeriods[key1]).forEach((key2) => { // narrow / abbreviated / wide result[key1][key2] = {}; Object.keys(dayPeriods[key1][key2]).forEach((key3) => { if (dayPeriodsList.indexOf(key3) !== -1) { result[key1][key2][key3] = dayPeriods[key1][key2][key3]; } }); }); }); return result as any; } /** * Returns day period rules for a locale * @returns string[] */ export function getDayPeriodRules( localeData: CldrLocaleData, language = localeData.attributes.language, ): Record<string, string | [string, string]> { const dayPeriodRules = localeData.get(`supplemental/dayPeriodRuleSet/${language}`); const rules: any = {}; if (dayPeriodRules) { Object.keys(dayPeriodRules).forEach((key) => { if (dayPeriodRules[key]._at) { rules[key] = dayPeriodRules[key]._at; } else { rules[key] = [dayPeriodRules[key]._from, dayPeriodRules[key]._before]; } }); } // Implements inheritance for the day periods. As of CLDR v39, the `nn` locale // for example fully inherits from `no`. // http://cldr.unicode.org/index/downloads/cldr-39?pli=1#TOC-Migration. if (dayPeriodRules === undefined) { const parentLocale = localeData.get(`supplemental/parentLocales/parentLocale/${language}`); if (parentLocale !== undefined) { return getDayPeriodRules(localeData, parentLocale); } } return rules; } /** * Returns the basic day periods (am/pm) */ export function getDayPeriodsAmPm(localeData: CldrLocaleData) { return getDayPeriods(localeData, ['am', 'pm']); } /** * Returns the extra day periods (without am/pm) */ export function getDayPeriodsNoAmPm(localeData: CldrLocaleData) { return getDayPeriods(localeData, [ 'noon', 'midnight', 'morning1', 'morning2', 'afternoon1', 'afternoon2', 'evening1', 'evening2', 'night1', 'night2', ]); }
{ "end_byte": 2815, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/day-periods.ts" }
angular/packages/common/locales/generate-locales-tool/plural-function.ts_0_1900
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {runfiles} from '@bazel/runfiles'; import {CldrLocaleData} from './cldr-data'; // There are no types available for `cldr`. const {load: createCldr} = await import('cldr' as any); // Load once to avoid re-parsing CLDR XML data on every invocation. const cldr = createCldr(runfiles.resolve('cldr_xml_data')); /** * Returns the plural function for a locale. */ export function getPluralFunction(localeData: CldrLocaleData, withTypes = true) { // We use the resolved bundle for extracting the plural function. This matches with the // lookup logic used by other extractions in the tool (using `cldrjs`), and also ensures // we follow the CLDR-specified bundle lookup algorithm. A language does not necessarily // resolve directly to a bundle CLDR provides data for. const bundleName = localeData.attributes.bundle; let fn = cldr.extractPluralRuleFunction(bundleName).toString(); const numberType = withTypes ? ': number' : ''; fn = fn .replace(/function anonymous\(val[^)]+\)/g, `function plural(val${numberType})${numberType}`) // Since our generated plural functions only take numbers, we can eliminate some of // the logic generated by the `cldr` package (to reduce payload size). .replace(/n\s+=\s+Number\(val\)/, 'n = val') .replace(/if\s+\(isNaN\(n\)\)\s+throw Error\([^)]+\);/, ''); // The replacement values must match the `Plural` enum from common. // We do not use the enum directly to avoid depending on that package. return fn .replace(/["']zero["']/, '0') .replace(/["']one["']/, '1') .replace(/["']two["']/, '2') .replace(/["']few["']/, '3') .replace(/["']many["']/, '4') .replace(/["']other["']/, '5'); }
{ "end_byte": 1900, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/plural-function.ts" }
angular/packages/common/locales/generate-locales-tool/locale-file.ts_0_8013
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {removeDuplicates} from './array-deduplication'; import {CldrLocaleData} from './cldr-data'; import {getDayPeriodsAmPm} from './day-periods'; import {fileHeader} from './file-header'; import {BaseCurrencies} from './locale-base-currencies'; import {generateLocaleCurrencies, getCurrencySettings} from './locale-currencies'; import {stringify} from './object-stringify'; import {getPluralFunction} from './plural-function'; const WEEK_DAYS = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']; /** Generate contents for the basic locale data file */ export function generateLocale( locale: string, localeData: CldrLocaleData, baseCurrencies: BaseCurrencies, ) { return `${fileHeader} const u = undefined; ${getPluralFunction(localeData)} export default ${generateBasicLocaleString(locale, localeData, baseCurrencies)}; `; } /** * Collect up the basic locale data [ localeId, dateTime, number, currency, directionality, * pluralCase ]. */ export function generateBasicLocaleString( locale: string, localeData: CldrLocaleData, baseCurrencies: BaseCurrencies, ) { let data = stringify([ locale, ...getDateTimeTranslations(localeData), ...getDateTimeSettings(localeData), ...getNumberSettings(localeData), ...getCurrencySettings(locale, localeData), generateLocaleCurrencies(localeData, baseCurrencies), getDirectionality(localeData), ]) // We remove "undefined" added by spreading arrays when there is no value .replace(/undefined/g, 'u'); // adding plural function after, because we don't want it as a string. The function named `plural` // is expected to be available in the file. See `generateLocale` above. data = data.replace(/\]$/, ', plural]'); return data; } /** * Returns the writing direction for a locale * @returns 'rtl' | 'ltr' */ function getDirectionality(localeData: CldrLocaleData): 'rtl' | 'ltr' { const rtl = localeData.get('scriptMetadata/{script}/rtl'); return rtl === 'YES' ? 'rtl' : 'ltr'; } /** * Returns dateTime data for a locale * @returns [ firstDayOfWeek, weekendRange, formats ] */ function getDateTimeSettings(localeData: CldrLocaleData) { return [ getFirstDayOfWeek(localeData), getWeekendRange(localeData), ...getDateTimeFormats(localeData), ]; } /** * Returns the number symbols and formats for a locale * @returns [ symbols, formats ] * symbols: [ decimal, group, list, percentSign, plusSign, minusSign, exponential, * superscriptingExponent, perMille, infinity, nan, timeSeparator, currencyDecimal?, currencyGroup? * ] * formats: [ currency, decimal, percent, scientific ] */ function getNumberSettings(localeData: CldrLocaleData) { const decimalFormat = localeData.main('numbers/decimalFormats-numberSystem-latn/standard'); const percentFormat = localeData.main('numbers/percentFormats-numberSystem-latn/standard'); const scientificFormat = localeData.main('numbers/scientificFormats-numberSystem-latn/standard'); const currencyFormat = localeData.main('numbers/currencyFormats-numberSystem-latn/standard'); const symbols = localeData.main('numbers/symbols-numberSystem-latn'); const symbolValues = [ symbols.decimal, symbols.group, symbols.list, symbols.percentSign, symbols.plusSign, symbols.minusSign, symbols.exponential, symbols.superscriptingExponent, symbols.perMille, symbols.infinity, symbols.nan, symbols.timeSeparator, ]; if (symbols.currencyDecimal || symbols.currencyGroup) { symbolValues.push(symbols.currencyDecimal); } if (symbols.currencyGroup) { symbolValues.push(symbols.currencyGroup); } return [symbolValues, [decimalFormat, percentFormat, currencyFormat, scientificFormat]]; } /** * Returns week-end range for a locale, based on US week days * @returns [number, number] */ function getWeekendRange(localeData: CldrLocaleData) { const startDay = localeData.get(`supplemental/weekData/weekendStart/${localeData.attributes.territory}`) || localeData.get('supplemental/weekData/weekendStart/001'); const endDay = localeData.get(`supplemental/weekData/weekendEnd/${localeData.attributes.territory}`) || localeData.get('supplemental/weekData/weekendEnd/001'); return [WEEK_DAYS.indexOf(startDay), WEEK_DAYS.indexOf(endDay)]; } /** * Returns date-related translations for a locale * @returns [ dayPeriodsFormat, dayPeriodsStandalone, daysFormat, dayStandalone, monthsFormat, * monthsStandalone, eras ] * each value: [ narrow, abbreviated, wide, short? ] */ function getDateTimeTranslations(localeData: CldrLocaleData) { const dayNames = localeData.main(`dates/calendars/gregorian/days`); const monthNames = localeData.main(`dates/calendars/gregorian/months`); const erasNames = localeData.main(`dates/calendars/gregorian/eras`); const dayPeriods = getDayPeriodsAmPm(localeData); const dayPeriodsFormat = removeDuplicates([ Object.values(dayPeriods.format.narrow), Object.values(dayPeriods.format.abbreviated), Object.values(dayPeriods.format.wide), ]); const dayPeriodsStandalone = removeDuplicates([ Object.values(dayPeriods['stand-alone'].narrow), Object.values(dayPeriods['stand-alone'].abbreviated), Object.values(dayPeriods['stand-alone'].wide), ]); const daysFormat = removeDuplicates([ Object.values(dayNames.format.narrow), Object.values(dayNames.format.abbreviated), Object.values(dayNames.format.wide), Object.values(dayNames.format.short), ]); const daysStandalone = removeDuplicates([ Object.values(dayNames['stand-alone'].narrow), Object.values(dayNames['stand-alone'].abbreviated), Object.values(dayNames['stand-alone'].wide), Object.values(dayNames['stand-alone'].short), ]); const monthsFormat = removeDuplicates([ Object.values(monthNames.format.narrow), Object.values(monthNames.format.abbreviated), Object.values(monthNames.format.wide), ]); const monthsStandalone = removeDuplicates([ Object.values(monthNames['stand-alone'].narrow), Object.values(monthNames['stand-alone'].abbreviated), Object.values(monthNames['stand-alone'].wide), ]); const eras = removeDuplicates([ [erasNames.eraNarrow['0'], erasNames.eraNarrow['1']], [erasNames.eraAbbr['0'], erasNames.eraAbbr['1']], [erasNames.eraNames['0'], erasNames.eraNames['1']], ]); const dateTimeTranslations = [ ...removeDuplicates([dayPeriodsFormat, dayPeriodsStandalone]), ...removeDuplicates([daysFormat, daysStandalone]), ...removeDuplicates([monthsFormat, monthsStandalone]), eras, ]; return dateTimeTranslations; } /** * Returns date, time and dateTime formats for a locale * @returns [dateFormats, timeFormats, dateTimeFormats] * each format: [ short, medium, long, full ] */ function getDateTimeFormats(localeData: CldrLocaleData) { function getFormats(data: any) { return removeDuplicates([ data.short._value || data.short, data.medium._value || data.medium, data.long._value || data.long, data.full._value || data.full, ]); } const dateFormats = localeData.main('dates/calendars/gregorian/dateFormats'); const timeFormats = localeData.main('dates/calendars/gregorian/timeFormats'); const dateTimeFormats = localeData.main('dates/calendars/gregorian/dateTimeFormats'); return [getFormats(dateFormats), getFormats(timeFormats), getFormats(dateTimeFormats)]; } /** * Returns the first day of the week, based on US week days * @returns number */ function getFirstDayOfWeek(localeData: CldrLocaleData) { // The `cldrjs` package does not provide proper types for `supplemental`. The // types are part of the package but embedded incorrectly and not usable. return WEEK_DAYS.indexOf((localeData as any).supplemental.weekData.firstDay()); }
{ "end_byte": 8013, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/locale-file.ts" }
angular/packages/common/locales/generate-locales-tool/closure-locale-file.ts_0_7155
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CldrData, CldrLocaleData} from './cldr-data'; import {fileHeader} from './file-header'; import {BaseCurrencies} from './locale-base-currencies'; import {generateLocaleExtraDataArrayCode} from './locale-extra-file'; import {generateLocale} from './locale-file'; interface ClosureLocale { /** Closure-supported locale names that resolve to this locale. */ closureLocaleNames: string[]; /** Canonical locale name that is used to resolve the CLDR data. */ canonicalLocaleName: string; /** Locale data. Can have a different locale name if this captures an aliased locale. */ data: CldrLocaleData; } /** * Locales used by closure that need to be captured within the Closure Locale file. Extracted from: * https://github.com/google/closure-library/blob/c7445058af72f679ef3273274e936d5d5f40b55a/closure/goog/i18n/datetimepatterns.js#L2450 */ const closureLibraryLocales = [ 'af', 'am', 'ar', 'ar-DZ', 'az', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'chr', 'cs', 'cy', 'da', 'de', 'de-AT', 'de-CH', 'el', 'en-AU', 'en-CA', 'en-GB', 'en-IE', 'en-IN', 'en-SG', 'en-ZA', 'es', 'es-419', 'es-MX', 'es-US', 'et', 'eu', 'fa', 'fi', 'fr', 'fr-CA', 'ga', 'gl', 'gsw', 'gu', 'haw', 'hi', 'hr', 'hu', 'hy', 'id', 'is', 'it', 'he', 'ja', 'ka', 'kk', 'km', 'kn', 'ko', 'ky', 'ln', 'lo', 'lt', 'lv', 'mk', 'ml', 'mn', 'ro-MD', 'mr', 'ms', 'mt', 'my', 'ne', 'nl', 'nb', 'or', 'pa', 'pl', 'pt', 'pt-PT', 'ro', 'ru', 'sr-Latn', 'si', 'sk', 'sl', 'sq', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'fil', 'tr', 'uk', 'ur', 'uz', 'vi', 'zh', 'zh-Hans', 'zh-Hant-HK', 'zh-Hant', 'zu', ] as const; /** Union type matching possible Closure Library locales. */ type ClosureLibraryLocaleName = (typeof closureLibraryLocales)[number]; /** * Locale ID aliases to support deprecated locale ids used by Closure. Maps locales supported * by Closure library to a list of aliases that match the same locale data. */ const closureLibraryAliases: {[l in ClosureLibraryLocaleName]?: string[]} = { 'id': ['in'], 'he': ['iw'], 'ro-MD': ['mo'], 'nb': ['no', 'no-NO'], 'sr-Latn': ['sh'], 'fil': ['tl'], 'pt': ['pt-BR'], 'zh-Hans': ['zh-Hans-CN', 'zh-CN'], 'zh-Hant-HK': ['zh-HK'], 'zh-Hant': ['zh-Hant-TW', 'zh-TW'], }; /** * Generate a file that contains all locale to import for closure. * Tree shaking will only keep the data for the `goog.LOCALE` locale. */ export function generateClosureLocaleFile(cldrData: CldrData, baseCurrencies: BaseCurrencies) { const locales: ClosureLocale[] = closureLibraryLocales.map((localeName) => { const data = cldrData.getLocaleData(localeName); if (data === null) { throw Error(`Missing locale data for Closure locale: ${localeName}`); } return { data, canonicalLocaleName: localeName, closureLocaleNames: computeEquivalentLocaleNames(localeName), }; }); return `${fileHeader} import {registerLocaleData} from '../src/i18n/locale_data'; const u = undefined; ${locales.map((locale) => generateLocaleConstants(locale)).join('\n')} let l: any; let e: any; let locales: string[] = []; switch (goog.LOCALE) { ${locales.map((locale) => generateCase(locale)).join('')}} if (l) { locales.forEach(locale => registerLocaleData(l, locale, e)); } `; /** * Generates locale data constants for all locale names within the specified * Closure Library locale. */ function generateLocaleConstants(locale: ClosureLocale): string { // Closure Locale names contain both the dashed and underscore variant. We filter out // the dashed variant as otherwise we would end up with the same constant twice. e.g. // https://github.com/google/closure-library/blob/c7445058af72f679ef3273274e936d5d5f40b55a/closure/goog/i18n/datetimepatternsext.js#L11659-L11660. const localeNamesToExpose = locale.closureLocaleNames.filter((d) => !d.includes('-')); const localeConstantNames = localeNamesToExpose.map((d) => `locale_${formatLocale(d)}`); const extraLocaleConstantNames = localeNamesToExpose.map( (d) => `locale_extra_${formatLocale(d)}`, ); const dataConstantName = localeConstantNames[0]; const extraDataConstantName = extraLocaleConstantNames[0]; const aliasDataConstantNames = localeConstantNames.slice(1); const aliasExtraDataConstantNames = extraLocaleConstantNames.slice(1); // We only generate the locale data once. All other constants just refer to the // first constant with the actual locale data. This reduces the Closure Locale file // size and potentially speeds up compilation with Closure Compiler. // NOTE: The locale constants and aliases are exported as these could be used // directly (e.g. in tests). return ` ${generateLocaleConstant(locale, dataConstantName)} ${generateLocaleExtraDataConstant(locale, extraDataConstantName)} ${aliasDataConstantNames.map((d) => `export const ${d} = ${dataConstantName};`).join('\n')} ${aliasExtraDataConstantNames .map((d) => `export const ${d} = ${extraDataConstantName};`) .join('\n')}`; } /** Generates a locale data constant for the specified locale. */ function generateLocaleConstant(locale: ClosureLocale, constantName: string): string { return generateLocale(locale.canonicalLocaleName, locale.data, baseCurrencies) .replace(`${fileHeader}\n`, '') .replace('export default ', `export const ${constantName} = `) .replace('function plural', `function plural_${constantName}`) .replace(/,\s+plural/, `, plural_${constantName}`) .replace(/\s*const u = undefined;\s*/, '') .trim(); } /** Creates a locale extra data constant for the given locale. */ function generateLocaleExtraDataConstant(locale: ClosureLocale, constantName: string): string { return `export const ${constantName} = ${generateLocaleExtraDataArrayCode( locale.canonicalLocaleName, locale.data, )};`; } /** Generates a TypeScript `switch` case for the specified locale. */ function generateCase(locale: ClosureLocale): string { const localeIdentifier = formatLocale(locale.canonicalLocaleName); return ` ${locale.closureLocaleNames.map((l) => `case '${l}':`).join('\n')} l = locale_${localeIdentifier}; e = locale_extra_${localeIdentifier}; locales = [${locale.closureLocaleNames.map((n) => `"${n}"`).join(', ')}]; break;`; } } function computeEquivalentLocaleNames(localeName: ClosureLibraryLocaleName): string[] { const equivalents = new Set<string>([localeName, formatLocale(localeName)]); closureLibraryAliases[localeName]?.forEach((aliasName) => { equivalents.add(aliasName); equivalents.add(formatLocale(aliasName)); }); return Array.from(equivalents); } function formatLocale(locale: string): string { return locale.replace(/-/g, '_'); }
{ "end_byte": 7155, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/closure-locale-file.ts" }
angular/packages/common/locales/generate-locales-tool/locale-extra-file.ts_0_3407
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {removeDuplicates} from './array-deduplication'; import {CldrLocaleData} from './cldr-data'; import {getDayPeriodRules, getDayPeriodsNoAmPm} from './day-periods'; import {fileHeader} from './file-header'; import {stringify} from './object-stringify'; /** * Generate the contents for the extra data file */ export function generateLocaleExtra(locale: string, localeData: CldrLocaleData) { return `${fileHeader} const u = undefined; export default ${generateLocaleExtraDataArrayCode(locale, localeData)}; `; } /** * Generates the "extra" locale data array (in JS-code as a string) for the given locale. * * The array follows the data and indices as specified in the `ExtraLocaleDataIndex` * enum from `packages/core/src/i18n/locale_data_api.ts`. * * Extra data currently consists of day period names and rules. The non-extra locale * data by default only contains the universal `AM/PM` day period names. * * NOTE: Instances of `undefined` in the array have been replaced with the `u` identifier. * This identifier is used to shorten the generated code of unprocessed locale files. */ export function generateLocaleExtraDataArrayCode(locale: string, localeData: CldrLocaleData) { const dayPeriods = getDayPeriodsNoAmPm(localeData); const dayPeriodRules = getDayPeriodRules(localeData); // The JSON data for some locales may include `dayPeriods` for which no rule is defined in // `dayPeriodRules`. Ignore `dayPeriods` keys that lack a corresponding rule. // // As of CLDR v41, `hi-Latn` is the only locale that is affected by this issue and it is currently // not clear whether it is a bug on intended behavior. This is being tracked in // https://unicode-org.atlassian.net/browse/CLDR-15563. // // TODO(gkalpak): If this turns out to be a bug and is fixed in CLDR, restore the previous logic // of expecting the exact same keys in `dayPeriods` and `dayPeriodRules`. const dayPeriodKeys = Object.keys(dayPeriods.format.narrow).filter((key) => dayPeriodRules.hasOwnProperty(key), ); let dayPeriodsSupplemental: any[] = []; if (dayPeriodKeys.length) { if (dayPeriodKeys.length !== Object.keys(dayPeriodRules).length) { throw new Error(`Error: locale ${locale} has an incorrect number of day period rules`); } const dayPeriodsFormat = removeDuplicates([ getValuesForKeys(dayPeriodKeys, dayPeriods.format.narrow), getValuesForKeys(dayPeriodKeys, dayPeriods.format.abbreviated), getValuesForKeys(dayPeriodKeys, dayPeriods.format.wide), ]); const dayPeriodsStandalone = removeDuplicates([ getValuesForKeys(dayPeriodKeys, dayPeriods['stand-alone'].narrow), getValuesForKeys(dayPeriodKeys, dayPeriods['stand-alone'].abbreviated), getValuesForKeys(dayPeriodKeys, dayPeriods['stand-alone'].wide), ]); const rules = getValuesForKeys(dayPeriodKeys, dayPeriodRules); dayPeriodsSupplemental = [...removeDuplicates([dayPeriodsFormat, dayPeriodsStandalone]), rules]; } return stringify(dayPeriodsSupplemental).replace(/undefined/g, 'u'); } function getValuesForKeys<T>(keys: string[], obj: Record<string, T>): T[] { return keys.map((key) => obj[key]); }
{ "end_byte": 3407, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/locale-extra-file.ts" }
angular/packages/common/locales/generate-locales-tool/array-deduplication.ts_0_1559
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * To create smaller locale files, we remove duplicated data. * To make this work we store the data in arrays, where `undefined` indicates that the * value is a duplicate of the previous value in the array. * e.g. consider an array like: [x, y, undefined, z, undefined, undefined] * The first `undefined` is equivalent to y, the second and third are equivalent to z * Note that the first value in an array is always defined. * * Also since we need to know which data is assumed similar, it is important that we store those * similar data in arrays to mark the delimitation between values that have different meanings * (e.g. months and days). * * For further size improvements, "undefined" values will be replaced by a constant in the arrays * as the last step of the file generation (in generateLocale and generateLocaleExtra). * e.g.: [x, y, undefined, z, undefined, undefined] will be [x, y, u, z, u, u] */ export function removeDuplicates(data: unknown[]) { const dedup = [data[0]]; let prevStringified = JSON.stringify(data[0]); let nextStringified; for (let i = 1; i < data.length; i++) { nextStringified = JSON.stringify(data[i]); if (nextStringified !== prevStringified) { prevStringified = nextStringified; dedup.push(data[i]); } else { dedup.push(undefined); } } return dedup; }
{ "end_byte": 1559, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/array-deduplication.ts" }
angular/packages/common/locales/generate-locales-tool/bin/get-closure-locale-file.ts_0_767
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CldrData} from '../cldr-data'; import {generateClosureLocaleFile} from '../closure-locale-file'; import {generateBaseCurrencies} from '../locale-base-currencies'; import {BASE_LOCALE} from './base-locale'; /** Generates the Google3 closure-locale file and prints it to the stdout. */ function main() { const cldrData = new CldrData(); const baseLocaleData = cldrData.getLocaleData(BASE_LOCALE)!; const baseCurrencies = generateBaseCurrencies(baseLocaleData); process.stdout.write(generateClosureLocaleFile(cldrData, baseCurrencies)); } main();
{ "end_byte": 767, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/bin/get-closure-locale-file.ts" }
angular/packages/common/locales/generate-locales-tool/bin/base-locale.ts_0_704
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Base locale used as foundation for other locales. For example: A base locale allows * generation of a file containing all currencies with their corresponding symbols. If we * generate other locales, they can override currency symbols which are different in the base * locale. This means that we do not need re-generate all currencies w/ symbols multiple times, * and allows us to reduce the locale data payload as the base locale is always included. * */ export const BASE_LOCALE = 'en';
{ "end_byte": 704, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/bin/base-locale.ts" }
angular/packages/common/locales/generate-locales-tool/bin/BUILD.bazel_0_659
load("//tools:defaults.bzl", "nodejs_binary", "ts_library") package(default_visibility = ["//visibility:public"]) BIN_ENTRYPOINTS = [ "get-base-currencies-file", "get-base-locale-file", "get-closure-locale-file", "write-locale-files-to-dist", ] ts_library( name = "bin", srcs = glob(["*.ts"]), deps = [ "//packages/common/locales/generate-locales-tool", "@npm//@types/node", ], ) [nodejs_binary( name = entrypoint, data = [ ":bin", "@cldr_json_data//:all_json", "@cldr_xml_data//:all_xml", ], entry_point = ":%s.ts" % entrypoint, ) for entrypoint in BIN_ENTRYPOINTS]
{ "end_byte": 659, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/bin/BUILD.bazel" }
angular/packages/common/locales/generate-locales-tool/bin/get-base-currencies-file.ts_0_624
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CldrData} from '../cldr-data'; import {generateBaseCurrenciesFile} from '../locale-base-currencies'; import {BASE_LOCALE} from './base-locale'; /** Generates the base currencies file and prints it to the stdout. */ function main() { const cldrData = new CldrData(); const baseLocaleData = cldrData.getLocaleData(BASE_LOCALE)!; process.stdout.write(generateBaseCurrenciesFile(baseLocaleData)); } main();
{ "end_byte": 624, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/bin/get-base-currencies-file.ts" }
angular/packages/common/locales/generate-locales-tool/bin/write-locale-files-to-dist.ts_0_1897
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import fs from 'fs'; import {join} from 'path'; import {CldrData} from '../cldr-data'; import {generateBaseCurrencies} from '../locale-base-currencies'; import {generateLocaleExtra} from '../locale-extra-file'; import {generateLocale} from '../locale-file'; import {generateLocaleGlobalFile} from '../locale-global-file'; import {BASE_LOCALE} from './base-locale'; /** * Generates locale files for each available CLDR locale and writes it to the * specified directory. */ async function main(outputDir: string | undefined) { if (outputDir === undefined) { throw Error('No output directory specified.'); } const cldrData = new CldrData(); const baseLocaleData = cldrData.getLocaleData(BASE_LOCALE)!; const baseCurrencies = generateBaseCurrencies(baseLocaleData); const extraLocaleDir = join(outputDir, 'extra'); const globalLocaleDir = join(outputDir, 'global'); // Generate locale files for all locales we have data for. await Promise.all( cldrData.availableLocales.flatMap(async (localeData) => { const locale = localeData.locale; const localeFile = generateLocale(locale, localeData, baseCurrencies); const localeExtraFile = generateLocaleExtra(locale, localeData); const localeGlobalFile = generateLocaleGlobalFile(locale, localeData, baseCurrencies); return [ fs.promises.writeFile(join(outputDir, `${locale}.ts`), localeFile), fs.promises.writeFile(join(extraLocaleDir, `${locale}.ts`), localeExtraFile), fs.promises.writeFile(join(globalLocaleDir, `${locale}.js`), localeGlobalFile), ]; }), ); } main(process.argv[2]).catch((err) => { console.error(err); process.exitCode = 1; });
{ "end_byte": 1897, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/bin/write-locale-files-to-dist.ts" }
angular/packages/common/locales/generate-locales-tool/bin/get-base-locale-file.ts_0_745
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CldrData} from '../cldr-data'; import {generateBaseCurrencies} from '../locale-base-currencies'; import {generateLocale} from '../locale-file'; import {BASE_LOCALE} from './base-locale'; /** Generates the base locale file and prints it to the stdout. */ function main() { const cldrData = new CldrData(); const baseLocaleData = cldrData.getLocaleData(BASE_LOCALE)!; const baseCurrencies = generateBaseCurrencies(baseLocaleData); process.stdout.write(generateLocale(BASE_LOCALE, baseLocaleData, baseCurrencies)); } main();
{ "end_byte": 745, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/generate-locales-tool/bin/get-base-locale-file.ts" }
angular/packages/common/locales/extra/ff-MR.ts_0_807
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // **Note**: Locale files are generated through Bazel and never part of the sources. This is an // exception for backwards compatibility. With the Gulp setup we never deleted old locale files // when updating CLDR, so older locale files which have been removed, or renamed in the CLDR // data remained in the repository. We keep these files checked-in until the next major to avoid // potential breaking changes. It's worth noting that the locale data for such files is outdated // anyway. e.g. the data is missing the directionality, throwing off the indices. const u = undefined; export default [];
{ "end_byte": 807, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/extra/ff-MR.ts" }
angular/packages/common/locales/extra/ff-CM.ts_0_807
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // **Note**: Locale files are generated through Bazel and never part of the sources. This is an // exception for backwards compatibility. With the Gulp setup we never deleted old locale files // when updating CLDR, so older locale files which have been removed, or renamed in the CLDR // data remained in the repository. We keep these files checked-in until the next major to avoid // potential breaking changes. It's worth noting that the locale data for such files is outdated // anyway. e.g. the data is missing the directionality, throwing off the indices. const u = undefined; export default [];
{ "end_byte": 807, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/extra/ff-CM.ts" }
angular/packages/common/locales/extra/ff-GN.ts_0_807
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // **Note**: Locale files are generated through Bazel and never part of the sources. This is an // exception for backwards compatibility. With the Gulp setup we never deleted old locale files // when updating CLDR, so older locale files which have been removed, or renamed in the CLDR // data remained in the repository. We keep these files checked-in until the next major to avoid // potential breaking changes. It's worth noting that the locale data for such files is outdated // anyway. e.g. the data is missing the directionality, throwing off the indices. const u = undefined; export default [];
{ "end_byte": 807, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/extra/ff-GN.ts" }
angular/packages/common/locales/global/ff-GN.js_0_2441
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // **Note**: Locale files are generated through Bazel and never part of the sources. This is an // exception for backwards compatibility. With the Gulp setup we never deleted old locale files // when updating CLDR, so older locale files which have been removed, or renamed in the CLDR // data remained in the repository. We keep these files checked-in until the next major to avoid // potential breaking changes. It's worth noting that the locale data for such files is outdated // anyway. e.g. the data is missing the directionality, throwing off the indices. (function (global) { global.ng = global.ng || {}; global.ng.common = global.ng.common || {}; global.ng.common.locales = global.ng.common.locales || {}; const u = undefined; function plural(n) { let i = Math.floor(Math.abs(n)); if (i === 0 || i === 1) return 1; return 5; } root.ng.common.locales['ff-gn'] = [ 'ff-GN', [['subaka', 'kikiiɗe'], u, u], u, [ ['d', 'a', 'm', 'n', 'n', 'm', 'h'], ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], ['dewo', 'aaɓnde', 'mawbaare', 'njeslaare', 'naasaande', 'mawnde', 'hoore-biir'], ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], ], u, [ ['s', 'c', 'm', 's', 'd', 'k', 'm', 'j', 's', 'y', 'j', 'b'], ['sii', 'col', 'mbo', 'see', 'duu', 'kor', 'mor', 'juk', 'slt', 'yar', 'jol', 'bow'], [ 'siilo', 'colte', 'mbooy', 'seeɗto', 'duujal', 'korse', 'morso', 'juko', 'siilto', 'yarkomaa', 'jolal', 'bowte', ], ], u, [['H-I', 'C-I'], u, ['Hade Iisa', 'Caggal Iisa']], 1, [6, 0], ['d/M/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}', u, u, u], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FG', 'GNF', {'GNF': ['FG'], 'JPY': ['JP¥', '¥'], 'USD': ['US$', '$']}, plural, [], ]; })( (typeof globalThis !== 'undefined' && globalThis) || (typeof global !== 'undefined' && global) || (typeof window !== 'undefined' && window), );
{ "end_byte": 2441, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/global/ff-GN.js" }
angular/packages/common/locales/global/ff-MR.js_0_2457
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // **Note**: Locale files are generated through Bazel and never part of the sources. This is an // exception for backwards compatibility. With the Gulp setup we never deleted old locale files // when updating CLDR, so older locale files which have been removed, or renamed in the CLDR // data remained in the repository. We keep these files checked-in until the next major to avoid // potential breaking changes. It's worth noting that the locale data for such files is outdated // anyway. e.g. the data is missing the directionality, throwing off the indices. (function (global) { global.ng = global.ng || {}; global.ng.common = global.ng.common || {}; global.ng.common.locales = global.ng.common.locales || {}; const u = undefined; function plural(n) { let i = Math.floor(Math.abs(n)); if (i === 0 || i === 1) return 1; return 5; } root.ng.common.locales['ff-mr'] = [ 'ff-MR', [['subaka', 'kikiiɗe'], u, u], u, [ ['d', 'a', 'm', 'n', 'n', 'm', 'h'], ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], ['dewo', 'aaɓnde', 'mawbaare', 'njeslaare', 'naasaande', 'mawnde', 'hoore-biir'], ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], ], u, [ ['s', 'c', 'm', 's', 'd', 'k', 'm', 'j', 's', 'y', 'j', 'b'], ['sii', 'col', 'mbo', 'see', 'duu', 'kor', 'mor', 'juk', 'slt', 'yar', 'jol', 'bow'], [ 'siilo', 'colte', 'mbooy', 'seeɗto', 'duujal', 'korse', 'morso', 'juko', 'siilto', 'yarkomaa', 'jolal', 'bowte', ], ], u, [['H-I', 'C-I'], u, ['Hade Iisa', 'Caggal Iisa']], 1, [6, 0], ['d/M/y', 'd MMM, y', 'd MMMM y', 'EEEE d MMMM y'], ['h:mm a', 'h:mm:ss a', 'h:mm:ss a z', 'h:mm:ss a zzzz'], ['{1} {0}', u, u, u], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'UM', 'Ugiyya Muritani', {'JPY': ['JP¥', '¥'], 'MRU': ['UM'], 'USD': ['US$', '$']}, plural, [], ]; })( (typeof globalThis !== 'undefined' && globalThis) || (typeof global !== 'undefined' && global) || (typeof window !== 'undefined' && window), );
{ "end_byte": 2457, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/global/ff-MR.js" }
angular/packages/common/locales/global/ff-CM.js_0_2444
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // **Note**: Locale files are generated through Bazel and never part of the sources. This is an // exception for backwards compatibility. With the Gulp setup we never deleted old locale files // when updating CLDR, so older locale files which have been removed, or renamed in the CLDR // data remained in the repository. We keep these files checked-in until the next major to avoid // potential breaking changes. It's worth noting that the locale data for such files is outdated // anyway. e.g. the data is missing the directionality, throwing off the indices. (function (global) { global.ng = global.ng || {}; global.ng.common = global.ng.common || {}; global.ng.common.locales = global.ng.common.locales || {}; const u = undefined; function plural(n) { let i = Math.floor(Math.abs(n)); if (i === 0 || i === 1) return 1; return 5; } root.ng.common.locales['ff-cm'] = [ 'ff-CM', [['subaka', 'kikiiɗe'], u, u], u, [ ['d', 'a', 'm', 'n', 'n', 'm', 'h'], ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], ['dewo', 'aaɓnde', 'mawbaare', 'njeslaare', 'naasaande', 'mawnde', 'hoore-biir'], ['dew', 'aaɓ', 'maw', 'nje', 'naa', 'mwd', 'hbi'], ], u, [ ['s', 'c', 'm', 's', 'd', 'k', 'm', 'j', 's', 'y', 'j', 'b'], ['sii', 'col', 'mbo', 'see', 'duu', 'kor', 'mor', 'juk', 'slt', 'yar', 'jol', 'bow'], [ 'siilo', 'colte', 'mbooy', 'seeɗto', 'duujal', 'korse', 'morso', 'juko', 'siilto', 'yarkomaa', 'jolal', 'bowte', ], ], u, [['H-I', 'C-I'], u, ['Hade Iisa', 'Caggal Iisa']], 1, [6, 0], ['d/M/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}', u, u, u], [',', ' ', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'FCFA', 'Mbuuɗi Seefaa BEAC', {'JPY': ['JP¥', '¥'], 'USD': ['US$', '$']}, plural, [], ]; })( (typeof globalThis !== 'undefined' && globalThis) || (typeof global !== 'undefined' && global) || (typeof window !== 'undefined' && window), );
{ "end_byte": 2444, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/locales/global/ff-CM.js" }
angular/packages/common/test/viewport_scroller_spec.ts_0_4544
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {BrowserViewportScroller, ViewportScroller} from '../src/viewport_scroller'; describe('BrowserViewportScroller', () => { describe('setHistoryScrollRestoration', () => { let scroller: ViewportScroller; let windowSpy: any; beforeEach(() => { windowSpy = jasmine.createSpyObj('window', [ 'history', 'scrollTo', 'pageXOffset', 'pageYOffset', ]); windowSpy.history.scrollRestoration = 'auto'; scroller = new BrowserViewportScroller(document, windowSpy); }); function createNonWritableScrollRestoration() { Object.defineProperty(windowSpy.history, 'scrollRestoration', { value: 'auto', configurable: true, }); } it('should not crash when scrollRestoration is not writable', () => { createNonWritableScrollRestoration(); expect(() => scroller.setHistoryScrollRestoration('manual')).not.toThrow(); }); it('should still allow scrolling if scrollRestoration is not writable', () => { createNonWritableScrollRestoration(); scroller.scrollToPosition([10, 10]); expect(windowSpy.scrollTo as jasmine.Spy).toHaveBeenCalledWith(10, 10); }); }); describe('scrollToAnchor', () => { // Testing scroll behavior does not make sense outside a browser if (isNode) { // Jasmine will throw if there are no tests. it('should pass', () => {}); return; } const anchor = 'anchor'; let scroller: BrowserViewportScroller; beforeEach(() => { scroller = new BrowserViewportScroller(document, window); scroller.scrollToPosition([0, 0]); }); it('should scroll when element with matching id is found', () => { const {anchorNode, cleanup} = createTallElement(); anchorNode.id = anchor; scroller.scrollToAnchor(anchor); expect(scroller.getScrollPosition()[1]).not.toEqual(0); cleanup(); }); it('should scroll when anchor with matching name is found', () => { const {anchorNode, cleanup} = createTallElement(); anchorNode.name = anchor; scroller.scrollToAnchor(anchor); expect(scroller.getScrollPosition()[1]).not.toEqual(0); cleanup(); }); it('should not scroll when no matching element is found', () => { const {cleanup} = createTallElement(); scroller.scrollToAnchor(anchor); expect(scroller.getScrollPosition()[1]).toEqual(0); cleanup(); }); it('should scroll when element with matching id is found inside the shadow DOM', () => { const {anchorNode, cleanup} = createTallElementWithShadowRoot(); anchorNode.id = anchor; scroller.scrollToAnchor(anchor); expect(scroller.getScrollPosition()[1]).not.toEqual(0); cleanup(); }); it('should scroll when anchor with matching name is found inside the shadow DOM', () => { const {anchorNode, cleanup} = createTallElementWithShadowRoot(); anchorNode.name = anchor; scroller.scrollToAnchor(anchor); expect(scroller.getScrollPosition()[1]).not.toEqual(0); cleanup(); }); function createTallElement() { const tallItem = document.createElement('div'); tallItem.style.height = '3000px'; document.body.appendChild(tallItem); const anchorNode = createAnchorNode(); document.body.appendChild(anchorNode); return { anchorNode, cleanup: () => { tallItem.remove(); anchorNode.remove(); }, }; } function createTallElementWithShadowRoot() { const tallItem = document.createElement('div'); tallItem.style.height = '3000px'; document.body.appendChild(tallItem); const elementWithShadowRoot = document.createElement('div'); const shadowRoot = elementWithShadowRoot.attachShadow({mode: 'open'}); const anchorNode = createAnchorNode(); shadowRoot.appendChild(anchorNode); document.body.appendChild(elementWithShadowRoot); return { anchorNode, cleanup: () => { tallItem.remove(); elementWithShadowRoot.remove(); }, }; } function createAnchorNode() { const anchorNode = document.createElement('a'); anchorNode.innerText = 'some link'; anchorNode.href = '#'; return anchorNode; } }); });
{ "end_byte": 4544, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/test/viewport_scroller_spec.ts" }
angular/packages/common/test/BUILD.bazel_0_1304
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library") load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test") circular_dependency_test( name = "circular_deps_test", entry_point = "angular/packages/common/index.mjs", deps = ["//packages/common"], ) circular_dependency_test( name = "testing_circular_deps_test", entry_point = "angular/packages/common/testing/index.mjs", deps = ["//packages/common/testing"], ) ts_library( name = "test_lib", testonly = True, srcs = glob( ["**/*.ts"], ), # Visible to //:saucelabs_unit_tests_poc target visibility = ["//:__pkg__"], deps = [ "//packages/common", "//packages/common/locales", "//packages/common/testing", "//packages/compiler", "//packages/core", "//packages/core/testing", "//packages/platform-browser", "//packages/platform-browser-dynamic", "//packages/platform-browser/testing", "//packages/private/testing", "@npm//rxjs", ], ) jasmine_node_test( name = "test", bootstrap = ["//tools/testing:node"], deps = [ ":test_lib", ], ) karma_web_test_suite( name = "test_web", deps = [ ":test_lib", ], )
{ "end_byte": 1304, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/test/BUILD.bazel" }
angular/packages/common/test/cookie_spec.ts_0_1074
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {parseCookieValue} from '@angular/common/src/cookie'; describe('cookies', () => { it('parses cookies', () => { const cookie = 'other-cookie=false; xsrf-token=token-value; is_awesome=true; ffo=true;'; expect(parseCookieValue(cookie, 'xsrf-token')).toBe('token-value'); }); it('handles encoded keys', () => { expect(parseCookieValue('whitespace%20token=token-value', 'whitespace token')).toBe( 'token-value', ); }); it('handles encoded values', () => { expect(parseCookieValue('token=whitespace%20', 'token')).toBe('whitespace '); expect(parseCookieValue('token=whitespace%0A', 'token')).toBe('whitespace\n'); }); });
{ "end_byte": 1074, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/test/cookie_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_0_8433
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CommonModule, DOCUMENT, IMAGE_CONFIG, ImageConfig} from '@angular/common'; import {RuntimeErrorCode} from '@angular/common/src/errors'; import {PLATFORM_SERVER_ID} from '@angular/common/src/platform_id'; import {ChangeDetectionStrategy, Component, PLATFORM_ID, Provider, Type} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {DomSanitizer, SafeResourceUrl} from '@angular/platform-browser'; import {expect} from '@angular/platform-browser/testing/src/matchers'; import {withHead} from '@angular/private/testing'; import {PRELOADED_IMAGES} from '../..//src/directives/ng_optimized_image/tokens'; import { createImageLoader, IMAGE_LOADER, ImageLoader, ImageLoaderConfig, } from '../../src/directives/ng_optimized_image/image_loaders/image_loader'; import { ABSOLUTE_SRCSET_DENSITY_CAP, assertValidNgSrcset, DATA_URL_ERROR_LIMIT, DATA_URL_WARN_LIMIT, NgOptimizedImage, PLACEHOLDER_BLUR_AMOUNT, RECOMMENDED_SRCSET_DENSITY_CAP, resetImagePriorityCount, } from '../../src/directives/ng_optimized_image/ng_optimized_image'; import {PRECONNECT_CHECK_BLOCKLIST} from '../../src/directives/ng_optimized_image/preconnect_link_checker'; describe('Image directive', () => { describe('preload <link> element on a server', () => { it('should create `<link>` element when the image priority attr is true', () => { // Only run this test in a browser since the Node-based DOM mocks don't // allow to override `HTMLImageElement.prototype.setAttribute` easily. if (!isBrowser) return; const src = 'preload1/img.png'; setupTestingModule({ extraProviders: [ {provide: PLATFORM_ID, useValue: PLATFORM_SERVER_ID}, { provide: IMAGE_LOADER, useValue: (config: ImageLoaderConfig) => config.width ? `https://angular.io/${config.src}?width=${config.width}` : `https://angular.io/${config.src}`, }, ], }); const template = `<img ngSrc="${src}" width="150" height="50" priority sizes="10vw" ngSrcset="100w">`; TestBed.overrideComponent(TestComponent, {set: {template: template}}); const _document = TestBed.inject(DOCUMENT); const _window = _document.defaultView!; const setAttributeSpy = spyOn( _window.HTMLLinkElement.prototype, 'setAttribute', ).and.callThrough(); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const head = _document.head; const rewrittenSrc = `https://angular.io/${src}`; const preloadLink = head.querySelector(`link[href="${rewrittenSrc}"]`); expect(preloadLink).toBeTruthy(); const [name, value] = setAttributeSpy.calls.argsFor(0); expect(name).toEqual('as'); expect(value).toEqual('image'); expect(preloadLink!.getAttribute('rel')).toEqual('preload'); expect(preloadLink!.getAttribute('as')).toEqual('image'); expect(preloadLink!.getAttribute('imagesizes')).toEqual('10vw'); expect(preloadLink!.getAttribute('imagesrcset')).toEqual(`${rewrittenSrc}?width=100 100w`); expect(preloadLink!.getAttribute('fetchpriority')).toEqual('high'); preloadLink!.remove(); }); it('should not create a preload `<link>` element when src is already preloaded.', () => { // Only run this test in a browser since the Node-based DOM mocks don't // allow to override `HTMLImageElement.prototype.setAttribute` easily. if (!isBrowser) return; const src = `preload2/img.png`; const rewrittenSrc = `https://angular.io/${src}`; setupTestingModule({ extraProviders: [ {provide: PLATFORM_ID, useValue: PLATFORM_SERVER_ID}, { provide: IMAGE_LOADER, useValue: (config: ImageLoaderConfig) => `https://angular.io/${config.src}`, }, ], }); const template = `<img ngSrc="${src}" width="150" height="50" priority><img ngSrc="${src}" width="150" height="50" priority>`; TestBed.overrideComponent(TestComponent, {set: {template: template}}); const _document = TestBed.inject(DOCUMENT); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const head = _document.head; const preloadImages = TestBed.inject(PRELOADED_IMAGES); expect(preloadImages.has(rewrittenSrc)).toBeTruthy(); const preloadLinks = head.querySelectorAll(`link[href="${rewrittenSrc}"]`); expect(preloadLinks.length).toEqual(1); preloadLinks[0]!.remove(); }); it('should error when the number of preloaded images is larger than the limit', () => { // Only run this test in a browser since the Node-based DOM mocks don't // allow to override `HTMLImageElement.prototype.setAttribute` easily. if (!isBrowser) return; setupTestingModule({ extraProviders: [ {provide: PLATFORM_ID, useValue: PLATFORM_SERVER_ID}, { provide: IMAGE_LOADER, useValue: (config: ImageLoaderConfig) => `https://angular.io/${config.src}`, }, ], }); const template = ` <img ngSrc="preloaderror2/img.png" width="150" height="50" priority> <img ngSrc="preloaderror3/img.png" width="150" height="50" priority> <img ngSrc="preloaderro4/img.png" width="150" height="50" priority> <img ngSrc="preloaderror5/img.png" width="150" height="50" priority> <img ngSrc="preloaderror6/img.png" width="150" height="50" priority> <img ngSrc="preloaderror7/img.png" width="150" height="50" priority> <img ngSrc="preloaderror8/img.png" width="150" height="50" priority> <img ngSrc="preloaderror9/img.png" width="150" height="50" priority> <img ngSrc="preloaderror10/img.png" width="150" height="50" priority> `; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02961: The `NgOptimizedImage` directive has detected that more than 5 images were marked as priority. This might negatively affect an overall performance of the page. To fix this, remove the "priority" attribute from images with less priority.', ); }); it('should not hit max preload limit when not on the server', () => { // Only run this test in a browser since the Node-based DOM mocks don't // allow to override `HTMLImageElement.prototype.setAttribute` easily. if (!isBrowser) return; setupTestingModule({ extraProviders: [ { provide: IMAGE_LOADER, useValue: (config: ImageLoaderConfig) => `https://angular.io/${config.src}`, }, ], }); const template = ` <img ngSrc="preloadbrowser1/img.png" width="150" height="50" priority> <img ngSrc="preloadbrowser2/img.png" width="150" height="50" priority> <img ngSrc="preloadbrowser3/img.png" width="150" height="50" priority> <img ngSrc="preloadbrowser4/img.png" width="150" height="50" priority> <img ngSrc="preloadbrowser5/img.png" width="150" height="50" priority> <img ngSrc="preloadbrowser6/img.png" width="150" height="50" priority> <img ngSrc="preloadbrowser7/img.png" width="150" height="50" priority> <img ngSrc="preloadbrowser8/img.png" width="150" height="50" priority> <img ngSrc="preloadbrowser9/img.png" width="150" height="50" priority> `; TestBed.overrideComponent(TestComponent, {set: {template: template}}); const _document = TestBed.inject(DOCUMENT); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const head = _document.head; const preloadImages = TestBed.inject(PRELOADED_IMAGES); const preloadLinks = head.querySelectorAll(`link[preload]`); expect(preloadImages.size).toEqual(0); expect(preloadLinks.length).toEqual(0); }); });
{ "end_byte": 8433, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_8437_11072
it('should set `loading` and `fetchpriority` attributes before `src`', () => { // Only run this test in a browser since the Node-based DOM mocks don't // allow to override `HTMLImageElement.prototype.setAttribute` easily. if (!isBrowser) return; setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50" priority>'; TestBed.overrideComponent(TestComponent, {set: {template: template}}); const _document = TestBed.inject(DOCUMENT); const _window = _document.defaultView!; const setAttributeSpy = spyOn( _window.HTMLImageElement.prototype, 'setAttribute', ).and.callThrough(); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('loading')).toBe('eager'); let _imgInstance = null; let _loadingAttrId = -1; let _fetchpriorityAttrId = -1; let _srcAttrId = -1; const count = setAttributeSpy.calls.count(); for (let i = 0; i < count; i++) { if (!_imgInstance) { _imgInstance = setAttributeSpy.calls.thisFor(i); } else if (_imgInstance !== setAttributeSpy.calls.thisFor(i)) { // Verify that the <img> instance is the same during the test. fail('Unexpected instance of a second <img> instance present in a test.'); } // Note: spy.calls.argsFor(i) returns args as an array: ['src', 'eager'] const attrName = setAttributeSpy.calls.argsFor(i)[0]; if (attrName == 'loading') _loadingAttrId = i; if (attrName == 'fetchpriority') _fetchpriorityAttrId = i; if (attrName == 'src') _srcAttrId = i; } // Verify that both `loading` and `fetchpriority` are set *before* `src`: expect(_loadingAttrId).toBeGreaterThan(-1); // was actually set expect(_loadingAttrId).toBeLessThan(_srcAttrId); // was set after `src` expect(_fetchpriorityAttrId).toBeGreaterThan(-1); // was actually set expect(_fetchpriorityAttrId).toBeLessThan(_srcAttrId); // was set after `src` }); it('should always reflect the width/height attributes if bound', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" [width]="width" [height]="height">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('width')).toBe('100'); expect(img.getAttribute('height')).toBe('50'); });
{ "end_byte": 11072, "start_byte": 8437, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_11076_19053
describe('setup error handling', () => { it('should throw if both `src` and `ngSrc` are present', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" src="path/img2.png" width="100" height="50">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02950: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc="path/img.png"`) has detected that both ' + '`src` and `ngSrc` have been set. Supplying both of these attributes ' + 'breaks lazy loading. The NgOptimizedImage directive sets `src` ' + 'itself based on the value of `ngSrc`. To fix this, please remove ' + 'the `src` attribute.', ); }); it('should throw if both `ngSrcet` and `srcset` is present', () => { setupTestingModule(); const template = '<img ngSrc="img-100.png" ngSrcset="100w, 200w" srcset="img-100.png 100w, img-200.png 200w" width="100" height="50">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02951: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc="img-100.png"`) has detected that both ' + '`srcset` and `ngSrcset` have been set. Supplying both of these ' + 'attributes breaks lazy loading. ' + 'The NgOptimizedImage directive sets `srcset` itself based ' + 'on the value of `ngSrcset`. To fix this, please remove the `srcset` ' + 'attribute.', ); }); it('should throw if `ngSrc` contains a Base64-encoded image (that starts with `data:`)', () => { setupTestingModule(); expect(() => { const template = '<img ngSrc="' + ANGULAR_LOGO_BASE64 + '" width="50" height="50">'; const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive has detected that `ngSrc` ' + 'is a Base64-encoded string (data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDov...). ' + 'NgOptimizedImage does not support Base64-encoded strings. ' + 'To fix this, disable the NgOptimizedImage directive for this element ' + 'by removing `ngSrc` and using a standard `src` attribute instead.', ); }); it('should throw if `ngSrc` contains a `blob:` URL', (done) => { // Domino does not support canvas elements properly, // so run this test only in a browser. if (!isBrowser) { done(); return; } const canvas = document.createElement('canvas'); canvas.toBlob(function (blob) { const blobURL = URL.createObjectURL(blob!); setupTestingModule(); // Note: use RegExp to partially match the error message, since the blob URL // is created dynamically, so it might be different for each invocation. const errorMessageRegExp = /NG02952: The NgOptimizedImage directive (.*?) has detected that `ngSrc` was set to a blob URL \(blob:/; expect(() => { const template = '<img ngSrc="' + blobURL + '" width="50" height="50">'; const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError(errorMessageRegExp); done(); }); }); it('should throw if `width` and `height` are not set', () => { setupTestingModule(); const template = '<img ngSrc="img.png">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02954: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc="img.png"`) has detected that these ' + 'required attributes are missing: "width", "height". Including "width" and ' + '"height" attributes will prevent image-related layout shifts. ' + 'To fix this, include "width" and "height" attributes on the image tag or turn on ' + '"fill" mode with the `fill` attribute.', ); }); it('should throw if `width` is not set', () => { setupTestingModule(); const template = '<img ngSrc="img.png" height="10">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02954: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc="img.png"`) has detected that these ' + 'required attributes are missing: "width". Including "width" and ' + '"height" attributes will prevent image-related layout shifts. ' + 'To fix this, include "width" and "height" attributes on the image tag or turn on ' + '"fill" mode with the `fill` attribute.', ); }); it('should throw if `width` is 0', () => { setupTestingModule(); const template = '<img ngSrc="img.png" width="0" height="10">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc="img.png"`) has detected that `width` ' + 'has an invalid value. To fix this, provide `width` as ' + 'a number greater than 0.', ); }); it('should throw if `width` has an invalid value', () => { setupTestingModule(); const template = '<img ngSrc="img.png" width="10px" height="10">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc="img.png"`) has detected that `width` ' + 'has an invalid value. To fix this, provide `width` ' + 'as a number greater than 0.', ); }); it('should throw if `height` is not set', () => { setupTestingModule(); const template = '<img ngSrc="img.png" width="10">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02954: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc="img.png"`) has detected that these required ' + 'attributes are missing: "height". Including "width" and "height" ' + 'attributes will prevent image-related layout shifts. ' + 'To fix this, include "width" and "height" attributes on the image tag or turn on ' + '"fill" mode with the `fill` attribute.', ); }); it('should throw if `height` is 0', () => { setupTestingModule(); const template = '<img ngSrc="img.png" width="10" height="0">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc="img.png"`) has detected that `height` ' + 'has an invalid value. To fix this, provide `height` as a number ' + 'greater than 0.', ); }); it('should throw if `height` has an invalid value', () => { setupTestingModule(); const template = '<img ngSrc="img.png" width="10" height="10%">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> element ' + 'with the `ngSrc="img.png"`) has detected that `height` has an invalid ' + 'value. To fix this, provide `height` as a number greater than 0.', ); });
{ "end_byte": 19053, "start_byte": 11076, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_19059_27248
it('should throw if `ngSrc` value is not provided', () => { setupTestingModule(); const template = '<img ngSrc>'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc=""`) has detected that `ngSrc` has an ' + 'invalid value (``). ' + 'To fix this, change the value to a non-empty string.', ); }); it('should throw if `ngSrc` value is set to an empty string', () => { setupTestingModule(); const template = '<img ngSrc=" ">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> element ' + 'with the `ngSrc=" "`) has detected that `ngSrc` has an invalid value ' + '(` `). To fix this, change the value to a non-empty string.', ); }); describe('invalid `ngSrcset` values', () => { const mockDirectiveInstance = {ngSrc: 'img.png'} as NgOptimizedImage; it('should throw for empty ngSrcSet', () => { const imageLoader = (config: ImageLoaderConfig) => { const width = config.width ? `-${config.width}` : ``; return window.location.origin + `/path/${config.src}${width}.png`; }; setupTestingModule({imageLoader}); const template = ` <img ngSrc="img" ngSrcset="" width="100" height="50"> `; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> ' + 'element with the `ngSrc="img"`) has detected that `ngSrcset` ' + 'has an invalid value (``). ' + 'To fix this, change the value to a non-empty string.', ); }); it('should throw for invalid ngSrcSet', () => { const imageLoader = (config: ImageLoaderConfig) => { const width = config.width ? `-${config.width}` : ``; return window.location.origin + `/path/${config.src}${width}.png`; }; setupTestingModule({imageLoader}); const template = ` <img ngSrc="img" ngSrcset="100q, 200q" width="100" height="50"> `; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> element ' + 'with the `ngSrc="img"`) has detected that `ngSrcset` has an invalid value ' + '(`100q, 200q`). To fix this, supply `ngSrcset` using a comma-separated list ' + 'of one or more width descriptors (e.g. "100w, 200w") or density descriptors ' + '(e.g. "1x, 2x").', ); }); it('should throw if ngSrcset exceeds the density cap', () => { const imageLoader = (config: ImageLoaderConfig) => { const width = config.width ? `-${config.width}` : ``; return window.location.origin + `/path/${config.src}${width}.png`; }; setupTestingModule({imageLoader}); const template = ` <img ngSrc="img" ngSrcset="1x, 2x, 3x, 4x, 5x" width="100" height="50"> `; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( `NG0${RuntimeErrorCode.INVALID_INPUT}: The NgOptimizedImage directive (activated on an <img> element with the \`ngSrc="img"\`) ` + `has detected that the \`ngSrcset\` contains an unsupported image density:` + `\`1x, 2x, 3x, 4x, 5x\`. NgOptimizedImage generally recommends a max image density of ` + `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` + `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` + `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` + `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` + `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.`, ); }); it('should throw if ngSrcset exceeds the density cap with multiple digits', () => { const imageLoader = (config: ImageLoaderConfig) => { const width = config.width ? `-${config.width}` : ``; return window.location.origin + `/path/${config.src}${width}.png`; }; setupTestingModule({imageLoader}); const template = ` <img ngSrc="img" ngSrcset="1x, 200x" width="100" height="50"> `; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( `NG0${RuntimeErrorCode.INVALID_INPUT}: The NgOptimizedImage directive (activated on an <img> element with the \`ngSrc="img"\`) ` + `has detected that the \`ngSrcset\` contains an unsupported image density:` + `\`1x, 200x\`. NgOptimizedImage generally recommends a max image density of ` + `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` + `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` + `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` + `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` + `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.`, ); }); it('should throw if width srcset is missing a comma', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, '100w 200w'); }).toThrowError(); }); it('should throw if density srcset is missing a comma', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, '1x 2x'); }).toThrowError(); }); it('should throw if density srcset has too many digits', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, '100x, 2x'); }).toThrowError(); }); it('should throw if width srcset includes a file name', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, 'a.png 100w, b.png 200w'); }).toThrowError(); }); it('should throw if density srcset includes a file name', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, 'a.png 1x, b.png 2x'); }).toThrowError(); }); it('should throw if srcset starts with a letter', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, 'a100w, 200w'); }).toThrowError(); }); it('should throw if srcset starts with another non-digit', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, '--100w, 200w'); }).toThrowError(); }); it('should throw if first descriptor in srcset is junk', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, 'foo, 1x'); }).toThrowError(); }); it('should throw if later descriptors in srcset are junk', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, '100w, foo'); }).toThrowError(); }); it('should throw if srcset has a density descriptor after a width descriptor', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, '100w, 1x'); }).toThrowError(); }); it('should throw if srcset has a width descriptor after a density descriptor', () => { expect(() => { assertValidNgSrcset(mockDirectiveInstance, '1x, 200w'); }).toThrowError(); }); });
{ "end_byte": 27248, "start_byte": 19059, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_27254_34088
const inputs = [ ['width', 10], ['height', 20], ['priority', true], ['fill', true], ['loading', true], ['sizes', '90vw'], ['disableOptimizedSrcset', true], ['loaderParams', '{foo: "test1"}'], ]; inputs.forEach(([inputName, value]) => { it(`should throw if the \`${inputName}\` input changed after directive initialized the input`, () => { @Component({ selector: 'test-cmp', template: `<img [ngSrc]="ngSrc" [width]="width" [height]="height" [priority]="priority" [fill]="fill" [loading]="loading" [sizes]="sizes" [disableOptimizedSrcset]="disableOptimizedSrcset" [loaderParams]="loaderParams" />`, standalone: false, }) class TestComponent { width = 100; height = 50; ngSrc = 'img.png'; priority = false; fill = false; loading = false; sizes = '100vw'; disableOptimizedSrcset = false; loaderParams = {bar: 'test2'}; } setupTestingModule({component: TestComponent}); // Initial render const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const expectedErrorMessage = // `NG02953: The NgOptimizedImage directive (.*)? ` + `has detected that \`${inputName}\` was updated after initialization`; expect(() => { // Update input (expect to throw) (fixture.componentInstance as unknown as {[key: string]: unknown})[inputName as string] = value; fixture.detectChanges(); }).toThrowError(new RegExp(expectedErrorMessage)); }); }); it(`should not throw if ngSrc changed after directive is initialized`, () => { @Component({ selector: 'test-cmp', template: `<img [ngSrc]="ngSrc" [width]="width" [height]="height" [loading]="loading" [sizes]="sizes" />`, standalone: false, }) class TestComponent { width = 100; height = 50; ngSrc = 'img.png'; loading = false; sizes = '100vw'; } setupTestingModule({component: TestComponent}); // Initial render const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); expect(() => { fixture.componentInstance.ngSrc = 'newImg.png'; fixture.detectChanges(); }).not.toThrowError(new RegExp('was updated after initialization')); }); it('should accept a safeUrl ngSrc value', () => { @Component({ selector: 'test-cmp', template: `<img [ngSrc]="bypassImage" width="400" height="600" />`, standalone: false, }) class TestComponent { rawImage = `javascript:alert("Hi there")`; bypassImage: SafeResourceUrl; constructor(private sanitizer: DomSanitizer) { this.bypassImage = sanitizer.bypassSecurityTrustResourceUrl(this.rawImage); } } setupTestingModule({component: TestComponent}); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); let nativeElement = fixture.nativeElement as HTMLElement; let img = nativeElement.querySelector('img')!; expect(img.src).toContain(`${IMG_BASE_URL}/javascript:alert`); }); }); describe('lazy loading', () => { it('should eagerly load priority images', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('loading')).toBe('eager'); }); it('should lazily load non-priority images', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('loading')).toBe('lazy'); }); }); describe('loading attribute', () => { it('should override the default loading behavior for non-priority images', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50" loading="eager">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('loading')).toBe('eager'); }); it('should throw if used with priority images', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50" loading="eager" priority>'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> element ' + 'with the `ngSrc="path/img.png"`) has detected that the `loading` attribute ' + 'was used on an image that was marked "priority". Setting `loading` on priority ' + 'images is not allowed because these images will always be eagerly loaded. ' + 'To fix this, remove the “loading” attribute from the priority image.', ); }); it('should support setting loading priority to "auto"', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50" loading="auto">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('loading')).toBe('auto'); }); it('should throw for invalid loading inputs', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="150" loading="fast">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> element ' + 'with the `ngSrc="path/img.png"`) has detected that the `loading` attribute ' + 'has an invalid value (`fast`). To fix this, provide a valid value ("lazy", ' + '"eager", or "auto").', ); }); });
{ "end_byte": 34088, "start_byte": 27254, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_34092_38071
ribe('fetch priority', () => { it('should be "high" for priority images', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('fetchpriority')).toBe('high'); }); it('should be "auto" for non-priority images', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('fetchpriority')).toBe('auto'); }); it( 'should log a warning if the priority attribute is used too often', withHead('<link rel="preconnect" href="https://angular.io/">', async () => { // We need to reset the count as previous test might have incremented it already resetImagePriorityCount(); const imageLoader = () => { // We need something different from the `localhost` (as we don't want to produce // a preconnect warning for local environments). return 'https://angular.io/assets/images/logos/path/img.png'; }; setupTestingModule({imageLoader}); // 11 priority attributes, threshold is 10 const template = ` <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> <img ngSrc="path/img.png" width="150" height="50" priority> `; const consoleWarnSpy = spyOn(console, 'warn'); const fixture = createTestComponent(template); fixture.detectChanges(); await fixture.whenStable(); // trick to wait for the whenStable() to fire in the directive await Promise.resolve(); if (isBrowser) { expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toMatch( new RegExp(`NG0${RuntimeErrorCode.TOO_MANY_PRIORITY_ATTRIBUTES}`), ); } else { // The warning is only logged on browsers expect(consoleWarnSpy.calls.count()).toBe(0); } }), ); }); describe('meta data', () => { it('should add a data attribute to the element for identification', () => { setupTestingModule(); const template = '<img ngSrc="a.png" width="100" height="50">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('ng-img')).not.toBeNull(); }); it('should add a data attribute to the element for identification, when ngSrc bound', () => { setupTestingModule(); const template = `<img [ngSrc]="'a.png'" width="100" height="50">`; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('ng-img')).not.toBeNull(); }); });
{ "end_byte": 38071, "start_byte": 34092, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_38075_43972
ribe('fill mode', () => { it('should allow unsized images in fill mode', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" fill>'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).not.toThrow(); }); it('should throw if width is provided for fill mode image', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="500" fill>'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> element with the ' + '`ngSrc="path/img.png"`) has detected that the attributes `height` and/or `width` ' + 'are present along with the `fill` attribute. Because `fill` mode causes an image ' + 'to fill its containing element, the size attributes have no effect and should be removed.', ); }); it('should throw if height is provided for fill mode image', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" height="500" fill>'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive (activated on an <img> element with the ' + '`ngSrc="path/img.png"`) has detected that the attributes `height` and/or `width` ' + 'are present along with the `fill` attribute. Because `fill` mode causes an image ' + 'to fill its containing element, the size attributes have no effect and should be removed.', ); }); it('should apply appropriate styles in fill mode', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" fill>'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('style')?.replace(/\s/g, '')).toMatch( 'position:absolute;width:100%;height:100%;inset:0', ); }); it('should augment existing styles in fill mode', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" style="border-radius: 5px; padding: 10px" fill>'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('style')?.replace(/\s/g, '')).toMatch( 'border-radius:5px;padding:10px;position:absolute;width:100%;height:100%;inset:0', ); }); it('should not add fill styles if not in fill mode', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="400" height="300" style="position: relative; border-radius: 5px">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('style')?.replace(/\s/g, '')).toBe( 'position:relative;border-radius:5px;', ); }); it('should add default sizes value in fill mode', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" fill priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('sizes')).toBe('100vw'); }); it('should add auto sizes to default in fill mode when lazy', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" fill>'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('sizes')).toBe('auto, 100vw'); }); it('should not overwrite sizes value in fill mode', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" sizes="50vw" fill loading="eager">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('sizes')).toBe('50vw'); }); it('should prepend "auto" to sizes in fill mode when lazy', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" sizes="50vw" fill>'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('sizes')).toBe('auto, 50vw'); }); it('should cause responsive srcset to be generated in fill mode', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" fill>'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBe( `${IMG_BASE_URL}/path/img.png 640w, ${IMG_BASE_URL}/path/img.png 750w, ${IMG_BASE_URL}/path/img.png 828w, ` + `${IMG_BASE_URL}/path/img.png 1080w, ${IMG_BASE_URL}/path/img.png 1200w, ${IMG_BASE_URL}/path/img.png 1920w, ` + `${IMG_BASE_URL}/path/img.png 2048w, ${IMG_BASE_URL}/path/img.png 3840w`, ); }); });
{ "end_byte": 43972, "start_byte": 38075, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_43976_53055
ribe('placeholder attribute', () => { const imageLoader = (config: ImageLoaderConfig) => { let paramsString = ''; if (config.isPlaceholder) { paramsString = 'ph=true'; } let queryString = `${config.width ? 'w=' + config.width + '&' : ''}${paramsString}`; return `${IMG_BASE_URL}/${config.src}?${queryString}`; }; it('should add background size, position, and repeat styling if the placeholder attribute is present', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder="path/img.png" />'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; const styles = parseInlineStyles(img); expect(styles.get('background-size')).toBe('cover'); expect(styles.get('background-position')).toBe('50%50%'); expect(styles.get('background-repeat')).toBe('no-repeat'); }); it('should not add background styles if the placeholder attribute is not present', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="400" height="300">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; const styles = parseInlineStyles(img); expect(styles.get('background-size')).toBeUndefined(); expect(styles.get('background-position')).toBeUndefined(); expect(styles.get('background-repeat')).toBeUndefined(); expect(styles.get('background-image')).toBeUndefined(); }); it('should add a background-image tag when placeholder is provided as a boolean', () => { setupTestingModule({imageLoader}); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder="true" />'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; const styles = parseInlineStyles(img); // Double quotes removed to account for different browser behavior. expect(styles.get('background-image')?.replace(/"/g, '')).toBe( `url(${IMG_BASE_URL}/path/img.png?w=30&ph=true)`, ); }); if (!isNode) { // DataURLs get stripped from background-image attribute in Node, but not browsers. it('should add a background-image tag when placeholder is provided as a data URL', () => { setupTestingModule({imageLoader}); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder="" />'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; // Double quotes removed to account for different browser behavior. expect(img.getAttribute('style')?.replace(/"/g, '').replace(/\s/g, '')).toBe( `background-size:cover;background-position:50%50%;background-repeat:no-repeat;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEU);filter:blur(${PLACEHOLDER_BLUR_AMOUNT}px);`, ); }); } it('should add a background-image tag when placeholder is provided as a URL', () => { setupTestingModule({imageLoader}); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder="https://mysite.com/assets/my-image.png" />'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; // Double quotes removed to account for different browser behavior. expect(img.getAttribute('style')?.replace(/"/g, '').replace(/\s/g, '')).toBe( `background-size:cover;background-position:50%50%;background-repeat:no-repeat;background-image:url(https://mysite.com/assets/my-image.png);filter:blur(${PLACEHOLDER_BLUR_AMOUNT}px);`, ); }); // DataURLs get stripped from background-image attribute in Node, but not browsers. it('should add a background-image tag when placeholder is provided as relative URL', () => { setupTestingModule({imageLoader}); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder="../../assets/my-image.png" />'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; // Double quotes removed to account for different browser behavior. expect(img.getAttribute('style')?.replace(/"/g, '').replace(/\s/g, '')).toBe( `background-size:cover;background-position:50%50%;background-repeat:no-repeat;background-image:url(../../assets/my-image.png);filter:blur(${PLACEHOLDER_BLUR_AMOUNT}px);`, ); }); it('should add a background-image tag when placeholder is provided without value', () => { setupTestingModule({imageLoader}); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder />'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; const styles = parseInlineStyles(img); // Double quotes removed to account for different browser behavior. expect(styles.get('background-image')?.replace(/"/g, '')).toBe( `url(${IMG_BASE_URL}/path/img.png?w=30&ph=true)`, ); }); it('should replace the placeholder with the actual image on load', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder="true" />'; const fixture = createTestComponent(template, ChangeDetectionStrategy.OnPush); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(parseInlineStyles(img).has('background-image')).toBe(true); img.dispatchEvent(new Event('load')); fixture.detectChanges(); expect(parseInlineStyles(img).has('background-image')).toBe(false); }); it('should use the placeholderResolution set in imageConfig', () => { const imageConfig = { placeholderResolution: 30, }; setupTestingModule({imageLoader, imageConfig}); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder />'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; const styles = parseInlineStyles(img); // Double quotes removed to account for different browser behavior. expect(styles.get('background-image')?.replace(/"/g, '')).toBe( `url(${IMG_BASE_URL}/path/img.png?w=30&ph=true)`, ); }); it('should apply a background blur to images with a placeholder', () => { setupTestingModule({imageLoader}); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder="" />'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; const styles = parseInlineStyles(img); expect(styles.get('filter')).toBe(`blur(${PLACEHOLDER_BLUR_AMOUNT}px)`); }); it('should not apply a background blur to placeholders with blur=false', () => { setupTestingModule({imageLoader}); const template = '<img ngSrc="path/img.png" width="400" height="300" placeholder="" [placeholderConfig]="{blur: false}" />'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; const styles = parseInlineStyles(img); expect(styles.get('filter')).toBeUndefined(); }); it('should throw if placeholderConfig is provided without placeholder', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="400" height="300" [placeholderConfig]="{blur: false}">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( `NG02952: The NgOptimizedImage directive has detected that \`placeholderConfig\` options were ` + `provided for an image that does not use the \`placeholder\` attribute, and will have no effect.`, ); });
{ "end_byte": 53055, "start_byte": 43976, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_53061_57602
should throw if placeholderConfig with blur=true is provided without placeholder', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="400" height="300" [placeholderConfig]="{blur: true}">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( `NG02952: The NgOptimizedImage directive has detected that \`placeholderConfig\` options were ` + `provided for an image that does not use the \`placeholder\` attribute, and will have no effect.`, ); }); it('should throw if there is no image loader but `ngSrcset` is present', () => { setUpModuleNoLoader(); const template = `<img ngSrc="img.png" width="150" height="50" placeholder="true">`; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( `NG0${RuntimeErrorCode.MISSING_NECESSARY_LOADER}: The NgOptimizedImage directive (activated on an <img> element with the \`ngSrc="img.png"\`) ` + `has detected that the \`placeholder\` attribute is set to true but no image loader is configured (i.e. the default one is being used), which ` + `would result in the same image being used for the primary image and its placeholder. To fix this, provide a loader or remove the \`placeholder\` attribute from the image.`, ); }); it('should throw if a very large inline placeholder is supplied', () => { setupTestingModule(); const template = `<img ngSrc="path/img.png" width="400" height="300" placeholder="">`; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( `NG0${RuntimeErrorCode.OVERSIZED_PLACEHOLDER}: The NgOptimizedImage directive (activated on an <img> element with the \`ngSrc="path/img.png"\`) ` + `has detected that the \`placeholder\` attribute is set to a data URL which is longer than ${DATA_URL_ERROR_LIMIT} characters. This is strongly ` + `discouraged, as large inline placeholders directly increase the bundle size of Angular and hurt page load performance. To fix this, generate a smaller data URL placeholder.`, ); }); it('should warn if a large inline placeholder is supplied', () => { setUpModuleNoLoader(); const template = `<img ngSrc="path/img.png" width="400" height="300" placeholder="">`; const fixture = createTestComponent(template); const consoleWarnSpy = spyOn(console, 'warn'); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toBe( `NG0${RuntimeErrorCode.OVERSIZED_PLACEHOLDER}: The NgOptimizedImage directive (activated on an <img> element with the \`ngSrc="path/img.png"\`) ` + `has detected that the \`placeholder\` attribute is set to a data URL which is longer than ${DATA_URL_WARN_LIMIT} characters. This is discouraged, ` + `as large inline placeholders directly increase the bundle size of Angular and hurt page load performance. For better loading ` + `performance, generate a smaller data URL placeholder.`, ); }); if (isBrowser) { it('should throw if the placeholder height exceeds the threshold', () => { setUpModuleNoLoader(); const template = `<img ngSrc="path/img.png" width="100" height="100" style="width:1001px; height: 300px" placeholder="">`; const consoleWarnSpy = spyOn(console, 'warn'); const fixture = createTestComponent(template); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toMatch( new RegExp(`NG0${RuntimeErrorCode.PLACEHOLDER_DIMENSION_LIMIT_EXCEEDED}:`), ); }); it('should throw if the placeholder width exceeds the threshold', () => { setUpModuleNoLoader(); const template = `<img ngSrc="path/img.png" width="100" height="100" style="height:1001px; width: 300px" placeholder="">`; const consoleWarnSpy = spyOn(console, 'warn'); const fixture = createTestComponent(template); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toMatch( new RegExp(`NG0${RuntimeErrorCode.PLACEHOLDER_DIMENSION_LIMIT_EXCEEDED}:`), ); }); } });
{ "end_byte": 57602, "start_byte": 53061, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_57606_66027
ribe('preconnect detector', () => { const imageLoader = () => { // We need something different from the `localhost` (as we don't want to produce // a preconnect warning for local environments). return 'https://angular.io/assets/images/logos/angular/angular.svg'; }; it( 'should log a warning if there is no preconnect link for a priority image', withHead('', () => { // The warning is only logged on the client if (!isBrowser) return; setupTestingModule({imageLoader}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toBe( 'NG02956: The NgOptimizedImage directive (activated on an <img> element ' + 'with the `ngSrc="a.png"`) has detected that there is no preconnect tag ' + 'present for this image. Preconnecting to the origin(s) that serve ' + 'priority images ensures that these images are delivered as soon as ' + 'possible. To fix this, please add the following element into the <head> ' + 'of the document:' + '\n <link rel="preconnect" href="https://angular.io">', ); }), ); it( 'should not log a warning if there is no preconnect link, but the image is not set as a priority', withHead('', () => { setupTestingModule({imageLoader}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50">'; const fixture = createTestComponent(template); fixture.detectChanges(); // Expect no warnings in the console. expect(consoleWarnSpy.calls.count()).toBe(0); }), ); it( "should log a warning if there is a preconnect, but it doesn't match the priority image", withHead('<link rel="preconnect" href="http://angular.io">', () => { // The warning is only logged on the client if (!isBrowser) return; setupTestingModule({imageLoader}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toBe( 'NG02956: The NgOptimizedImage directive (activated on an <img> element ' + 'with the `ngSrc="a.png"`) has detected that there is no preconnect tag ' + 'present for this image. Preconnecting to the origin(s) that serve priority ' + 'images ensures that these images are delivered as soon as possible. ' + 'To fix this, please add the following element into the <head> of the document:' + '\n <link rel="preconnect" href="https://angular.io">', ); }), ); it( 'should log a warning if there is no matching preconnect link for a priority image, but there is a preload tag', withHead( '<link rel="preload" href="https://angular.io/assets/images/logos/angular/angular.svg" as="image">', () => { // The warning is only logged on the client if (!isBrowser) return; setupTestingModule({imageLoader}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toBe( 'NG02956: The NgOptimizedImage directive (activated on an <img> element ' + 'with the `ngSrc="a.png"`) has detected that there is no preconnect tag ' + 'present for this image. Preconnecting to the origin(s) that serve priority ' + 'images ensures that these images are delivered as soon as possible. ' + 'To fix this, please add the following element into the <head> of the document:' + '\n <link rel="preconnect" href="https://angular.io">', ); }, ), ); it( 'should not log a warning if there is a matching preconnect link for a priority image (with an extra `/` at the end)', withHead('<link rel="preconnect" href="https://angular.io/">', () => { setupTestingModule({imageLoader}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); // Expect no warnings in the console. expect(consoleWarnSpy.calls.count()).toBe(0); }), ); ['localhost', '127.0.0.1', '0.0.0.0'].forEach((blocklistedHostname) => { it( `should not log a warning if an origin domain is blocklisted ` + `(checking ${blocklistedHostname})`, withHead('', () => { const imageLoader = () => { return `http://${blocklistedHostname}/a.png`; }; setupTestingModule({imageLoader}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); // Expect no warnings in the console. expect(consoleWarnSpy.calls.count()).toBe(0); }), ); }); describe('PRECONNECT_CHECK_BLOCKLIST token', () => { it( `should allow passing host names`, withHead('', () => { const providers = [{provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'angular.io'}]; setupTestingModule({imageLoader, extraProviders: providers}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); // Expect no warnings in the console. expect(consoleWarnSpy.calls.count()).toBe(0); }), ); it( `should allow passing origins`, withHead('', () => { const providers = [{provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://angular.io'}]; setupTestingModule({imageLoader, extraProviders: providers}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); // Expect no warnings in the console. expect(consoleWarnSpy.calls.count()).toBe(0); }), ); it( `should allow passing arrays of host names`, withHead('', () => { const providers = [ {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: ['https://angular.io']}, ]; setupTestingModule({imageLoader, extraProviders: providers}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); // Expect no warnings in the console. expect(consoleWarnSpy.calls.count()).toBe(0); }), ); it( `should allow passing nested arrays of host names`, withHead('', () => { const providers = [ {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: [['https://angular.io']]}, ]; setupTestingModule({imageLoader, extraProviders: providers}); const consoleWarnSpy = spyOn(console, 'warn'); const template = '<img ngSrc="a.png" width="100" height="50" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); // Expect no warnings in the console. expect(consoleWarnSpy.calls.count()).toBe(0); }), ); }); });
{ "end_byte": 66027, "start_byte": 57606, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_66031_73449
ribe('loaders', () => { const imageLoaderWithData = (config: ImageLoaderConfig) => { let paramsString = ''; if (config.loaderParams) { paramsString = Object.entries(config.loaderParams) .map((entry) => `${entry[0]}=${entry[1]}`) .join('&'); } let queryString = `${config.width ? 'w=' + config.width + '&' : ''}${paramsString}`; return `${config.src}?${queryString}`; }; // Test complex loaderParams schema with nesting: // loaderParams = { // transforms1: {example1: "foo"}, // transforms2: {example2: "bar"} // } const nestedImageLoader = (config: ImageLoaderConfig) => { return `${config.src}/${config.loaderParams?.['transforms1'].example1}/${config.loaderParams?.['transforms2'].example2}`; }; it('should set `src` to match `ngSrc` if image loader is not provided', () => { setupTestingModule(); const template = `<img ngSrc="${IMG_BASE_URL}/img.png" width="100" height="50">`; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); }); it('should warn if there is no image loader but using Imgix URL', () => { setUpModuleNoLoader(); const template = `<img ngSrc="https://some.imgix.net/img.png" width="100" height="50">`; const fixture = createTestComponent(template); const consoleWarnSpy = spyOn(console, 'warn'); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toMatch( /your images may be hosted on the Imgix CDN/, ); }); it('should warn if there is no image loader but using ImageKit URL', () => { setUpModuleNoLoader(); const template = `<img ngSrc="https://some.imagekit.io/img.png" width="100" height="50">`; const fixture = createTestComponent(template); const consoleWarnSpy = spyOn(console, 'warn'); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toMatch( /your images may be hosted on the ImageKit CDN/, ); }); it('should warn if there is no image loader but using Cloudinary URL', () => { setUpModuleNoLoader(); const template = `<img ngSrc="https://some.cloudinary.com/img.png" width="100" height="50">`; const fixture = createTestComponent(template); const consoleWarnSpy = spyOn(console, 'warn'); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toMatch( /your images may be hosted on the Cloudinary CDN/, ); }); it('should warn if there is no image loader but using Netlify URL', () => { setUpModuleNoLoader(); const template = `<img ngSrc="https://example.netlify.app/img.png" width="100" height="50">`; const fixture = createTestComponent(template); const consoleWarnSpy = spyOn(console, 'warn'); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toMatch( /your images may be hosted on the Netlify CDN/, ); }); it('should NOT warn if there is a custom loader but using CDN URL', () => { setupTestingModule(); const template = `<img ngSrc="https://some.cloudinary.com/img.png" width="100" height="50">`; const fixture = createTestComponent(template); const consoleWarnSpy = spyOn(console, 'warn'); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(0); }); it('should warn if there is no image loader but `ngSrcset` is present', () => { setUpModuleNoLoader(); const template = `<img ngSrc="img.png" ngSrcset="100w, 200w" width="150" height="50">`; const fixture = createTestComponent(template); const consoleWarnSpy = spyOn(console, 'warn'); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toBe( `NG0${RuntimeErrorCode.MISSING_NECESSARY_LOADER}: The NgOptimizedImage directive (activated on an <img> element ` + 'with the `ngSrc="img.png"`) has detected that the `ngSrcset` attribute is ' + 'present but no image loader is configured (i.e. the default one is being used), ' + `which would result in the same image being used for all configured sizes. ` + 'To fix this, provide a loader or remove the `ngSrcset` attribute from the image.', ); }); it('should warn if there is no image loader but `loaderParams` is present', () => { setUpModuleNoLoader(); const template = `<img ngSrc="img.png" width="150" height="50" [loaderParams]="{foo: 'test'}">`; const fixture = createTestComponent(template); const consoleWarnSpy = spyOn(console, 'warn'); fixture.detectChanges(); expect(consoleWarnSpy.calls.count()).toBe(1); expect(consoleWarnSpy.calls.argsFor(0)[0]).toBe( `NG0${RuntimeErrorCode.MISSING_NECESSARY_LOADER}: The NgOptimizedImage directive (activated on an <img> element ` + 'with the `ngSrc="img.png"`) has detected that the `loaderParams` attribute is ' + 'present but no image loader is configured (i.e. the default one is being used), ' + `which means that the loaderParams data will not be consumed and will not affect the URL. ` + 'To fix this, provide a custom loader or remove the `loaderParams` attribute from the image.', ); }); it('should set `src` using the image loader provided via the `IMAGE_LOADER` token to compose src URL', () => { const imageLoader = (config: ImageLoaderConfig) => `${IMG_BASE_URL}/${config.src}`; setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" width="150" height="50"> <img ngSrc="img-2.png" width="150" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const imgs = nativeElement.querySelectorAll('img')!; expect(imgs[0].src.trim()).toBe(`${IMG_BASE_URL}/img.png`); expect(imgs[1].src.trim()).toBe(`${IMG_BASE_URL}/img-2.png`); }); it('should use the image loader to update `src` if `ngSrc` updated', () => { @Component({ selector: 'test-cmp', template: `<img [ngSrc]="ngSrc" width="300" height="300" />`, standalone: false, }) class TestComponent { ngSrc = `img.png`; } const imageLoader = (config: ImageLoaderConfig) => `${IMG_BASE_URL}/${config.src}`; setupTestingModule({imageLoader, component: TestComponent}); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); let nativeElement = fixture.nativeElement as HTMLElement; let imgs = nativeElement.querySelectorAll('img')!; expect(imgs[0].src).toBe(`${IMG_BASE_URL}/img.png`); fixture.componentInstance.ngSrc = 'updatedImg.png'; fixture.detectChanges(); expect(imgs[0].src).toBe(`${IMG_BASE_URL}/updatedImg.png`); });
{ "end_byte": 73449, "start_byte": 66031, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_73455_81308
should use the image loader to update `srcset` if `ngSrc` updated', () => { @Component({ selector: 'test-cmp', template: `<img [ngSrc]="ngSrc" width="300" height="300" sizes="100vw" />`, standalone: false, }) class TestComponent { ngSrc = `img.png`; } const imageLoader = (config: ImageLoaderConfig) => { const width = config.width ? `?w=${config.width}` : ``; return `${IMG_BASE_URL}/${config.src}${width}`; }; setupTestingModule({imageLoader, component: TestComponent}); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); let nativeElement = fixture.nativeElement as HTMLElement; let imgs = nativeElement.querySelectorAll('img')!; expect(imgs[0].getAttribute('srcset')).toBe( `${IMG_BASE_URL}/img.png?w=640 640w, ${IMG_BASE_URL}/img.png?w=750 750w, ${IMG_BASE_URL}/img.png?w=828 828w, ${IMG_BASE_URL}/img.png?w=1080 1080w, ${IMG_BASE_URL}/img.png?w=1200 1200w, ${IMG_BASE_URL}/img.png?w=1920 1920w, ${IMG_BASE_URL}/img.png?w=2048 2048w, ${IMG_BASE_URL}/img.png?w=3840 3840w`, ); fixture.componentInstance.ngSrc = 'updatedImg.png'; nativeElement = fixture.nativeElement as HTMLElement; imgs = nativeElement.querySelectorAll('img')!; fixture.detectChanges(); expect(imgs[0].getAttribute('srcset')).toBe( `${IMG_BASE_URL}/updatedImg.png?w=640 640w, ${IMG_BASE_URL}/updatedImg.png?w=750 750w, ${IMG_BASE_URL}/updatedImg.png?w=828 828w, ${IMG_BASE_URL}/updatedImg.png?w=1080 1080w, ${IMG_BASE_URL}/updatedImg.png?w=1200 1200w, ${IMG_BASE_URL}/updatedImg.png?w=1920 1920w, ${IMG_BASE_URL}/updatedImg.png?w=2048 2048w, ${IMG_BASE_URL}/updatedImg.png?w=3840 3840w`, ); }); it('should pass absolute URLs defined in the `ngSrc` to custom image loaders provided via the `IMAGE_LOADER` token', () => { const imageLoader = (config: ImageLoaderConfig) => `${config.src}?rewritten=true`; setupTestingModule({imageLoader}); const template = ` <img ngSrc="${IMG_BASE_URL}/img.png" width="150" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const imgs = nativeElement.querySelectorAll('img')!; expect(imgs[0].src.trim()).toBe(`${IMG_BASE_URL}/img.png?rewritten=true`); }); it('should pass data payload from loaderParams to custom image loaders', () => { setupTestingModule({imageLoader: imageLoaderWithData}); const template = ` <img ngSrc="${IMG_BASE_URL}/img.png" width="150" height="50" [loaderParams]="{testProp1: 'testValue1', testProp2: 'testValue2'}" /> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const imgs = nativeElement.querySelectorAll('img')!; expect(imgs[0].src).toBe(`${IMG_BASE_URL}/img.png?testProp1=testValue1&testProp2=testValue2`); }); it('should pass nested data payloads from loaderParams to custom image loaders', () => { @Component({ selector: 'test-cmp', template: `<img [ngSrc]="ngSrc" [width]="width" [height]="height" [loaderParams]="params" />`, standalone: false, }) class TestComponent { ngSrc = `${IMG_BASE_URL}/img.png`; width = 300; height = 300; params = {transforms1: {example1: 'foo'}, transforms2: {example2: 'bar'}}; } setupTestingModule({imageLoader: nestedImageLoader, component: TestComponent}); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const imgs = nativeElement.querySelectorAll('img')!; expect(imgs[0].src).toBe(`${IMG_BASE_URL}/img.png/foo/bar`); }); it('should pass data payload from loaderParams to loader when generating srcsets', () => { setupTestingModule({imageLoader: imageLoaderWithData}); const template = ` <img ngSrc="${IMG_BASE_URL}/img.png" width="150" height="50" [loaderParams]="{testProp1: 'testValue1', testProp2: 'testValue2'}" /> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const imgs = nativeElement.querySelectorAll('img')!; expect(imgs[0].srcset).toBe( `${IMG_BASE_URL}/img.png?w=150&testProp1=testValue1&testProp2=testValue2 1x, ${IMG_BASE_URL}/img.png?w=300&testProp1=testValue1&testProp2=testValue2 2x`, ); }); it('should pass data payload from loaderParams to loader when generating responsive srcsets', () => { setupTestingModule({imageLoader: imageLoaderWithData}); const template = ` <img ngSrc="${IMG_BASE_URL}/img.png" width="150" height="50" sizes="100vw" [loaderParams]="{testProp1: 'testValue1', testProp2: 'testValue2'}" /> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const imgs = nativeElement.querySelectorAll('img')!; expect(imgs[0].srcset).toBe( `${IMG_BASE_URL}/img.png?w=640&testProp1=testValue1&testProp2=testValue2 640w, ${IMG_BASE_URL}/img.png?w=750&testProp1=testValue1&testProp2=testValue2 750w, ${IMG_BASE_URL}/img.png?w=828&testProp1=testValue1&testProp2=testValue2 828w, ${IMG_BASE_URL}/img.png?w=1080&testProp1=testValue1&testProp2=testValue2 1080w, ${IMG_BASE_URL}/img.png?w=1200&testProp1=testValue1&testProp2=testValue2 1200w, ${IMG_BASE_URL}/img.png?w=1920&testProp1=testValue1&testProp2=testValue2 1920w, ${IMG_BASE_URL}/img.png?w=2048&testProp1=testValue1&testProp2=testValue2 2048w, ${IMG_BASE_URL}/img.png?w=3840&testProp1=testValue1&testProp2=testValue2 3840w`, ); }); it('should set `src` to an image URL that does not include a default width parameter', () => { const imageLoader = (config: ImageLoaderConfig) => { const widthStr = config.width ? `?w=${config.width}` : ``; return `${IMG_BASE_URL}/${config.src}${widthStr}`; }; setupTestingModule({imageLoader}); const template = '<img ngSrc="img.png" width="150" height="50">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); }); it( `should allow providing image loaders via Component providers`, withHead('', () => { const createImgUrl = (path: string, config: ImageLoaderConfig) => `${path}/${config.src}`; const loaderWithPath = createImageLoader(createImgUrl); @Component({ selector: 'test-cmp', template: '<img ngSrc="a.png" width="100" height="50" priority>', providers: [loaderWithPath('https://component.io')], standalone: false, }) class TestComponent {} setupTestingModule({ component: TestComponent, extraProviders: [loaderWithPath('https://default.io')], }); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const defaultLoader = TestBed.inject(IMAGE_LOADER); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(defaultLoader({src: 'a.png'})).toBe('https://default.io/a.png'); expect(img.src).toBe('https://component.io/a.png'); }), );
{ "end_byte": 81308, "start_byte": 73455, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_81314_87563
ribe('`ngSrcset` values', () => { let imageLoader!: ImageLoader; beforeEach(() => { imageLoader = (config: ImageLoaderConfig) => { const width = config.width ? `?w=${config.width}` : ``; return `${IMG_BASE_URL}/${config.src}${width}`; }; }); it('should set the `srcset` using the `ngSrcset` value with width descriptors', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" ngSrcset="100w, 200w" width="100" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); expect(img.srcset).toBe( `${IMG_BASE_URL}/img.png?w=100 100w, ${IMG_BASE_URL}/img.png?w=200 200w`, ); }); it('should set the `srcset` using the `ngSrcset` value with density descriptors', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" ngSrcset="1x, 2x" width="100" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); expect(img.srcset).toBe( `${IMG_BASE_URL}/img.png?w=100 1x, ${IMG_BASE_URL}/img.png?w=200 2x`, ); }); it('should set the `srcset` if `ngSrcset` has only one src defined', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" ngSrcset="100w" width="100" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src.trim()).toBe(`${IMG_BASE_URL}/img.png`); expect(img.srcset.trim()).toBe(`${IMG_BASE_URL}/img.png?w=100 100w`); }); it('should set the `srcset` if `ngSrcSet` has extra spaces', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" ngSrcset=" 100w, 200w " width="100" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); expect(img.srcset).toBe( `${IMG_BASE_URL}/img.png?w=100 100w, ${IMG_BASE_URL}/img.png?w=200 200w`, ); }); it('should set the `srcset` if `ngSrcSet` has a trailing comma', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" ngSrcset="1x, 2x," width="100" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); expect(img.srcset).toBe( `${IMG_BASE_URL}/img.png?w=100 1x, ${IMG_BASE_URL}/img.png?w=200 2x`, ); }); it('should set the `srcset` if `ngSrcSet` has 3+ srcs', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" ngSrcset="100w, 200w, 300w" width="100" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); expect(img.srcset).toBe( `${IMG_BASE_URL}/img.png?w=100 100w, ` + `${IMG_BASE_URL}/img.png?w=200 200w, ` + `${IMG_BASE_URL}/img.png?w=300 300w`, ); }); it('should set the `srcset` if `ngSrcSet` has decimal density descriptors', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" ngSrcset="1.75x, 2.5x, 3x" width="100" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); expect(img.srcset).toBe( `${IMG_BASE_URL}/img.png?w=175 1.75x, ` + `${IMG_BASE_URL}/img.png?w=250 2.5x, ` + `${IMG_BASE_URL}/img.png?w=300 3x`, ); }); it('should automatically set a default sizes attribute when ngSrcset is used with a responsive srcset and is lazy', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" ngSrcset="100w, 200w, 300w" width="100" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); expect(img.sizes).toBe(`auto, 100vw`); }); it('should not automatically set a default sizes attribute when ngSrcset is used with a responsive srcset and is not lazy', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img.png" ngSrcset="100w, 200w, 300w" width="100" height="50" priority> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.src).toBe(`${IMG_BASE_URL}/img.png`); expect(img.sizes).toBe(''); }); });
{ "end_byte": 87563, "start_byte": 81314, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_87569_90926
ribe('sizes attribute', () => { it('should pass through the sizes attribute', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50" ' + 'sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw" priority>'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('sizes')).toBe( '(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw', ); }); it('should prepend sizes="auto" to a lazy-loaded image', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="150" height="50" ' + 'sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw">'; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('sizes')).toBe( 'auto, (max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw', ); }); it('should throw if a complex `sizes` is used', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="100" height="50" sizes="(min-width: 768px) 500px, 100vw">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive has detected that `sizes` was set to a string including pixel values. ' + 'For automatic `srcset` generation, `sizes` must only include responsive values, such as `sizes="50vw"` or ' + '`sizes="(min-width: 768px) 50vw, 100vw"`. To fix this, modify the `sizes` attribute, or provide your own `ngSrcset` value directly.', ); }); it('should throw if a complex `sizes` is used with srcset', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="100" height="50" sizes="(min-width: 768px) 500px, 100vw" srcset="www.example.com/img.png?w=500 768w, www.example.com/img.png?w=2000" >'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).toThrowError( 'NG02952: The NgOptimizedImage directive has detected that `sizes` was set to a string including pixel values. ' + 'For automatic `srcset` generation, `sizes` must only include responsive values, such as `sizes="50vw"` or ' + '`sizes="(min-width: 768px) 50vw, 100vw"`. To fix this, modify the `sizes` attribute, or provide your own `ngSrcset` value directly.', ); }); it('should not throw if a complex `sizes` is used with ngSrcset', () => { setupTestingModule(); const template = '<img ngSrc="path/img.png" width="100" height="50" sizes="(min-width: 768px) 500px, 100vw" ngSrcset="100w, 200w">'; expect(() => { const fixture = createTestComponent(template); fixture.detectChanges(); }).not.toThrow(); }); });
{ "end_byte": 90926, "start_byte": 87569, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_90932_97650
ribe('automatic srcset generation', () => { const imageLoader = (config: ImageLoaderConfig) => { const width = config.width ? `?w=${config.width}` : ``; return `${IMG_BASE_URL}/${config.src}${width}`; }; it('should not generate a srcset if the default noop loader is used', () => { setupTestingModule({noLoader: true}); const template = ` <img ngSrc="img" width="100" height="50" sizes="100vw"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBeNull(); }); it('should add a responsive srcset to the img element if sizes attribute exists', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img" width="100" height="50" sizes="100vw"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBe( `${IMG_BASE_URL}/img?w=640 640w, ${IMG_BASE_URL}/img?w=750 750w, ${IMG_BASE_URL}/img?w=828 828w, ${IMG_BASE_URL}/img?w=1080 1080w, ${IMG_BASE_URL}/img?w=1200 1200w, ${IMG_BASE_URL}/img?w=1920 1920w, ${IMG_BASE_URL}/img?w=2048 2048w, ${IMG_BASE_URL}/img?w=3840 3840w`, ); }); it('should use the long responsive srcset if sizes attribute exists and is less than 100vw', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img" width="100" height="50" sizes="2vw"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBe( `${IMG_BASE_URL}/img?w=16 16w, ${IMG_BASE_URL}/img?w=32 32w, ${IMG_BASE_URL}/img?w=48 48w, ${IMG_BASE_URL}/img?w=64 64w, ${IMG_BASE_URL}/img?w=96 96w, ${IMG_BASE_URL}/img?w=128 128w, ${IMG_BASE_URL}/img?w=256 256w, ${IMG_BASE_URL}/img?w=384 384w, ${IMG_BASE_URL}/img?w=640 640w, ${IMG_BASE_URL}/img?w=750 750w, ${IMG_BASE_URL}/img?w=828 828w, ${IMG_BASE_URL}/img?w=1080 1080w, ${IMG_BASE_URL}/img?w=1200 1200w, ${IMG_BASE_URL}/img?w=1920 1920w, ${IMG_BASE_URL}/img?w=2048 2048w, ${IMG_BASE_URL}/img?w=3840 3840w`, ); }); it('should add a fixed srcset to the img element if sizes attribute does not exist', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img" width="100" height="50"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBe( `${IMG_BASE_URL}/img?w=100 1x, ${IMG_BASE_URL}/img?w=200 2x`, ); }); it('should not add a fixed srcset to the img element if height is too large', () => { setupTestingModule({imageLoader}); const template = `<img ngSrc="img" width="1100" height="2400">`; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBeNull(); }); it('should not add a fixed srcset to the img element if width is too large', () => { setupTestingModule({imageLoader}); const template = `<img ngSrc="img" width="3000" height="400">`; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBeNull(); }); it('should add a responsive srcset to the img element if height is too large', () => { setupTestingModule({imageLoader}); const template = `<img ngSrc="img" width="1100" height="2400" sizes="100vw">`; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBe( `${IMG_BASE_URL}/img?w=640 640w, ${IMG_BASE_URL}/img?w=750 750w, ${IMG_BASE_URL}/img?w=828 828w, ${IMG_BASE_URL}/img?w=1080 1080w, ${IMG_BASE_URL}/img?w=1200 1200w, ${IMG_BASE_URL}/img?w=1920 1920w, ${IMG_BASE_URL}/img?w=2048 2048w, ${IMG_BASE_URL}/img?w=3840 3840w`, ); }); it('should add a responsive srcset to the img element if width is too large', () => { setupTestingModule({imageLoader}); const template = `<img ngSrc="img" width="3000" height="400" sizes="100vw">`; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBe( `${IMG_BASE_URL}/img?w=640 640w, ${IMG_BASE_URL}/img?w=750 750w, ${IMG_BASE_URL}/img?w=828 828w, ${IMG_BASE_URL}/img?w=1080 1080w, ${IMG_BASE_URL}/img?w=1200 1200w, ${IMG_BASE_URL}/img?w=1920 1920w, ${IMG_BASE_URL}/img?w=2048 2048w, ${IMG_BASE_URL}/img?w=3840 3840w`, ); }); it('should use a custom breakpoint set if one is provided', () => { const imageConfig = { breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 1280, 3840], }; setupTestingModule({imageLoader, imageConfig}); const template = ` <img ngSrc="img" width="100" height="50" sizes="2vw"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBe( `${IMG_BASE_URL}/img?w=16 16w, ${IMG_BASE_URL}/img?w=32 32w, ${IMG_BASE_URL}/img?w=48 48w, ${IMG_BASE_URL}/img?w=64 64w, ${IMG_BASE_URL}/img?w=96 96w, ${IMG_BASE_URL}/img?w=128 128w, ${IMG_BASE_URL}/img?w=256 256w, ${IMG_BASE_URL}/img?w=384 384w, ${IMG_BASE_URL}/img?w=640 640w, ${IMG_BASE_URL}/img?w=1280 1280w, ${IMG_BASE_URL}/img?w=3840 3840w`, ); });
{ "end_byte": 97650, "start_byte": 90932, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_optimized_image_spec.ts_97658_102071
should sort custom breakpoint set', () => { const imageConfig = { breakpoints: [48, 16, 3840, 640, 1280], }; setupTestingModule({imageLoader, imageConfig}); const template = ` <img ngSrc="img" width="100" height="50" sizes="2vw"> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBe( `${IMG_BASE_URL}/img?w=16 16w, ${IMG_BASE_URL}/img?w=48 48w, ${IMG_BASE_URL}/img?w=640 640w, ${IMG_BASE_URL}/img?w=1280 1280w, ${IMG_BASE_URL}/img?w=3840 3840w`, ); }); it('should disable automatic srcset generation if "disableOptimizedSrcset" attribute is set', () => { setupTestingModule({imageLoader}); const template = ` <img ngSrc="img" width="100" height="50" sizes="50vw" disableOptimizedSrcset> `; const fixture = createTestComponent(template); fixture.detectChanges(); const nativeElement = fixture.nativeElement as HTMLElement; const img = nativeElement.querySelector('img')!; expect(img.getAttribute('srcset')).toBeNull(); }); }); }); }); // Helpers // Base URL that can be used in tests to construct absolute URLs. const IMG_BASE_URL = { // Use `toString` here to delay referencing the `window` until the tests // execution starts, otherwise the `window` might not be defined in Node env. toString: () => window.location.origin, }; const ANGULAR_LOGO_BASE64 = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=='; @Component({ selector: 'test-cmp', template: '', standalone: false, }) class TestComponent { width = 100; height = 50; ngSrc = 'img.png'; priority = false; } function setupTestingModule(config?: { imageConfig?: ImageConfig; imageLoader?: ImageLoader; noLoader?: boolean; extraProviders?: Provider[]; component?: Type<unknown>; }) { const defaultLoader = (config: ImageLoaderConfig) => { const isAbsolute = /^https?:\/\//.test(config.src); return isAbsolute ? config.src : window.location.origin + '/' + config.src; }; const loader = config?.imageLoader || defaultLoader; const extraProviders = config?.extraProviders || []; const providers: Provider[] = [ {provide: DOCUMENT, useValue: window.document}, ...(config?.noLoader ? [] : [{provide: IMAGE_LOADER, useValue: loader}]), ...extraProviders, ]; if (config?.imageConfig) { providers.push({provide: IMAGE_CONFIG, useValue: config.imageConfig}); } TestBed.configureTestingModule({ declarations: [config?.component ?? TestComponent], // Note: the `NgOptimizedImage` directive is experimental and is not a part of the // `CommonModule` yet, so it's imported separately. imports: [CommonModule, NgOptimizedImage], providers, }); } // Same as above but explicitly doesn't provide a custom loader, // so the noopImageLoader should be used. function setUpModuleNoLoader() { TestBed.configureTestingModule({ declarations: [TestComponent], imports: [CommonModule, NgOptimizedImage], providers: [{provide: DOCUMENT, useValue: window.document}], }); } function createTestComponent( template: string, changeDetection = ChangeDetectionStrategy.OnPush, ): ComponentFixture<TestComponent> { return TestBed.overrideComponent(TestComponent, { set: {template, changeDetection}, }).createComponent(TestComponent); } function parseInlineStyles(img: HTMLImageElement): Map<string, string> { const styles = new Map(); const rawStyles = img.getAttribute('style')?.replace(/\s/g, ''); if (rawStyles) { rawStyles.split(';').forEach((style) => { const styleTuple = style.split(':'); styles.set(styleTuple[0], styleTuple.slice(1).join(':')); }); } return styles; }
{ "end_byte": 102071, "start_byte": 97658, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_optimized_image_spec.ts" }
angular/packages/common/test/directives/ng_template_outlet_spec.ts_0_622
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {CommonModule, NgTemplateOutlet} from '@angular/common'; import { Component, ContentChildren, Directive, Inject, Injectable, InjectionToken, Injector, NO_ERRORS_SCHEMA, OnDestroy, Provider, QueryList, TemplateRef, } from '@angular/core'; import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; import {expect} from '@angular/platform-browser/testing/src/matchers';
{ "end_byte": 622, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_template_outlet_spec.ts" }
angular/packages/common/test/directives/ng_template_outlet_spec.ts_624_9147
describe('NgTemplateOutlet', () => { let fixture: ComponentFixture<any>; function setTplRef(value: any): void { fixture.componentInstance.currentTplRef = value; } function detectChangesAndExpectText(text: string): void { fixture.detectChanges(); expect(fixture.debugElement.nativeElement).toHaveText(text); } afterEach(() => { fixture = null as any; }); beforeEach(() => { TestBed.configureTestingModule({ declarations: [ TestComponent, CaptureTplRefs, DestroyableCmpt, MultiContextComponent, InjectValueComponent, ], imports: [CommonModule], providers: [DestroyedSpyService], }); }); // https://github.com/angular/angular/issues/14778 it('should accept the component as the context', waitForAsync(() => { const template = `<ng-container *ngTemplateOutlet="tpl; context: this"></ng-container>` + `<ng-template #tpl>{{context.foo}}</ng-template>`; fixture = createTestComponent(template); detectChangesAndExpectText('bar'); })); it('should do nothing if templateRef is `null`', waitForAsync(() => { const template = `<ng-container [ngTemplateOutlet]="null"></ng-container>`; fixture = createTestComponent(template); detectChangesAndExpectText(''); })); it('should insert content specified by TemplateRef', waitForAsync(() => { const template = `<ng-template #tpl>foo</ng-template>` + `<ng-container [ngTemplateOutlet]="tpl"></ng-container>`; fixture = createTestComponent(template); detectChangesAndExpectText('foo'); })); it('should clear content if TemplateRef becomes `null`', waitForAsync(() => { const template = `<tpl-refs #refs="tplRefs"><ng-template>foo</ng-template></tpl-refs>` + `<ng-container [ngTemplateOutlet]="currentTplRef"></ng-container>`; fixture = createTestComponent(template); fixture.detectChanges(); const refs = fixture.debugElement.children[0].references!['refs']; setTplRef(refs.tplRefs.first); detectChangesAndExpectText('foo'); setTplRef(null); detectChangesAndExpectText(''); })); it('should swap content if TemplateRef changes', waitForAsync(() => { const template = `<tpl-refs #refs="tplRefs"><ng-template>foo</ng-template><ng-template>bar</ng-template></tpl-refs>` + `<ng-container [ngTemplateOutlet]="currentTplRef"></ng-container>`; fixture = createTestComponent(template); fixture.detectChanges(); const refs = fixture.debugElement.children[0].references!['refs']; setTplRef(refs.tplRefs.first); detectChangesAndExpectText('foo'); setTplRef(refs.tplRefs.last); detectChangesAndExpectText('bar'); })); it('should display template if context is `null`', waitForAsync(() => { const template = `<ng-template #tpl>foo</ng-template>` + `<ng-container *ngTemplateOutlet="tpl; context: null"></ng-container>`; fixture = createTestComponent(template); detectChangesAndExpectText('foo'); })); it('should reflect initial context and changes', waitForAsync(() => { const template = `<ng-template let-foo="foo" #tpl>{{foo}}</ng-template>` + `<ng-container *ngTemplateOutlet="tpl; context: context"></ng-container>`; fixture = createTestComponent(template); fixture.detectChanges(); detectChangesAndExpectText('bar'); fixture.componentInstance.context.foo = 'alter-bar'; detectChangesAndExpectText('alter-bar'); })); it('should reflect user defined `$implicit` property in the context', waitForAsync(() => { const template = `<ng-template let-ctx #tpl>{{ctx.foo}}</ng-template>` + `<ng-container *ngTemplateOutlet="tpl; context: context"></ng-container>`; fixture = createTestComponent(template); fixture.componentInstance.context = {$implicit: {foo: 'bra'}}; detectChangesAndExpectText('bra'); })); it('should reflect context re-binding', waitForAsync(() => { const template = `<ng-template let-shawshank="shawshank" #tpl>{{shawshank}}</ng-template>` + `<ng-container *ngTemplateOutlet="tpl; context: context"></ng-container>`; fixture = createTestComponent(template); fixture.componentInstance.context = {shawshank: 'brooks'}; detectChangesAndExpectText('brooks'); fixture.componentInstance.context = {shawshank: 'was here'}; detectChangesAndExpectText('was here'); })); it('should update but not destroy embedded view when context values change', () => { const template = `<ng-template let-foo="foo" #tpl><destroyable-cmpt></destroyable-cmpt>:{{foo}}</ng-template>` + `<ng-template [ngTemplateOutlet]="tpl" [ngTemplateOutletContext]="{foo: value}"></ng-template>`; fixture = createTestComponent(template); const spyService = fixture.debugElement.injector.get(DestroyedSpyService); detectChangesAndExpectText('Content to destroy:bar'); expect(spyService.destroyed).toBeFalsy(); fixture.componentInstance.value = 'baz'; detectChangesAndExpectText('Content to destroy:baz'); expect(spyService.destroyed).toBeFalsy(); }); it('should update but not destroy embedded view when context shape changes', () => { const template = `<ng-template let-foo="foo" #tpl><destroyable-cmpt></destroyable-cmpt>:{{foo}}</ng-template>` + `<ng-template [ngTemplateOutlet]="tpl" [ngTemplateOutletContext]="context"></ng-template>`; fixture = createTestComponent(template); const spyService = fixture.debugElement.injector.get(DestroyedSpyService); detectChangesAndExpectText('Content to destroy:bar'); expect(spyService.destroyed).toBeFalsy(); fixture.componentInstance.context = {foo: 'baz', other: true}; detectChangesAndExpectText('Content to destroy:baz'); expect(spyService.destroyed).toBeFalsy(); }); it('should destroy embedded view when context value changes and templateRef becomes undefined', () => { const template = `<ng-template let-foo="foo" #tpl><destroyable-cmpt></destroyable-cmpt>:{{foo}}</ng-template>` + `<ng-template [ngTemplateOutlet]="value === 'bar' ? tpl : undefined" [ngTemplateOutletContext]="{foo: value}"></ng-template>`; fixture = createTestComponent(template); const spyService = fixture.debugElement.injector.get(DestroyedSpyService); detectChangesAndExpectText('Content to destroy:bar'); expect(spyService.destroyed).toBeFalsy(); fixture.componentInstance.value = 'baz'; detectChangesAndExpectText(''); expect(spyService.destroyed).toBeTruthy(); }); it('should not try to update null / undefined context when context changes but template stays the same', () => { const template = `<ng-template let-foo="foo" #tpl>{{foo}}</ng-template>` + `<ng-template [ngTemplateOutlet]="tpl" [ngTemplateOutletContext]="value === 'bar' ? null : undefined"></ng-template>`; fixture = createTestComponent(template); detectChangesAndExpectText(''); fixture.componentInstance.value = 'baz'; detectChangesAndExpectText(''); }); it('should not try to update null / undefined context when template changes', () => { const template = `<ng-template let-foo="foo" #tpl1>{{foo}}</ng-template>` + `<ng-template let-foo="foo" #tpl2>{{foo}}</ng-template>` + `<ng-template [ngTemplateOutlet]="value === 'bar' ? tpl1 : tpl2" [ngTemplateOutletContext]="value === 'bar' ? null : undefined"></ng-template>`; fixture = createTestComponent(template); detectChangesAndExpectText(''); fixture.componentInstance.value = 'baz'; detectChangesAndExpectText(''); }); it('should not try to update context on undefined view', () => { const template = `<ng-template let-foo="foo" #tpl>{{foo}}</ng-template>` + `<ng-template [ngTemplateOutlet]="value === 'bar' ? null : undefined" [ngTemplateOutletContext]="{foo: value}"></ng-template>`; fixture = createTestComponent(template); detectChangesAndExpectText(''); fixture.componentInstance.value = 'baz'; detectChangesAndExpectText(''); }); // https://github.com/angular/angular/issues/30801 it('should not throw if the context is left blank', () => { const template = ` <ng-template #testTemplate>test</ng-template> <ng-template [ngTemplateOutlet]="testTemplate" [ngTemplateOutletContext]=""></ng-template> `; expect(() => { fixture = createTestComponent(template); detectChangesAndExpectText('test'); }).not.toThrow(); });
{ "end_byte": 9147, "start_byte": 624, "url": "https://github.com/angular/angular/blob/main/packages/common/test/directives/ng_template_outlet_spec.ts" }