From fc2253ccd0eaf6e2c5d7c75218fc54f197703128 Mon Sep 17 00:00:00 2001 From: niclaz <83479948+niclaz@users.noreply.github.com> Date: Sat, 24 Aug 2024 00:28:23 +0200 Subject: [PATCH] added all ISO 3166-1 Alpha-2 country codes https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements --- src/lib/events.js | 259 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 245 insertions(+), 14 deletions(-) diff --git a/src/lib/events.js b/src/lib/events.js index 36f8039..3fade50 100644 --- a/src/lib/events.js +++ b/src/lib/events.js @@ -4,26 +4,257 @@ export const types = [ { id: "", plural: 'All events'}, { id: "meetup", name: 'Meetup', plural: 'Meetups' }, { id: "summit", name: 'Summit', plural: 'Summits' }, + { id: "congress", name: 'Congress', plural: 'Congresses' }. { id: "privacy-corner", name: 'Privacy Corner', plural: 'Privacy Corners' }, { id: "online-summit", name: 'Online Summit', plural: 'Online Summits' }, { id: 'meta-hackathon', name: 'Meta-hackathon', plural: 'Meta-hackathons'}, ] export const countryNames = { - cz: 'Czechia', - it: 'Italy', - de: 'Germany', - es: 'Spain', - si: 'Slovenia', - dk: 'Denmark', - pl: 'Poland', - be: 'Belgium', - pt: 'Portugal', - ee: 'Estonia', - nl: 'Netherlands', - ro: 'Romania', - gr: 'Greece', - th: 'Thailand', + ad: 'andorra', + ae: 'united arab emirates', + af: 'afghanistan', + ag: 'antigua and barbuda', + ai: 'anguilla', + al: 'albania', + am: 'armenia', + ao: 'angola', + ar: 'argentina', + as: 'american samoa', + at: 'austria', + au: 'australia', + aw: 'aruba', + ax: 'åland islands', + az: 'azerbaijan', + ba: 'bosnia and herzegovina', + bb: 'barbados', + bd: 'bangladesh', + be: 'belgium', + bf: 'burkina faso', + bg: 'bulgaria', + bh: 'bahrain', + bi: 'burundi', + bj: 'benin', + bl: 'saint barthélemy', + bm: 'bermuda', + bn: 'brunei', + bo: 'bolivia', + bq: 'bonaire', + br: 'brazil', + bs: 'bahamas', + bt: 'bhutan', + bv: 'bouvet island', + bw: 'botswana', + by: 'belarus', + bz: 'belize', + ca: 'canada', + cc: 'cocos islands', + cd: 'democratic republic of the congo', + cf: 'central african republic', + cg: 'congo', + ch: 'switzerland', + ci: 'ivory coast', + ck: 'cook islands', + cl: 'chile', + cm: 'cameroon', + cn: 'china', + co: 'colombia', + cr: 'costa rica', + cu: 'cuba', + cv: 'cabo verde', + cw: 'curaçao', + cx: 'christmas island', + cy: 'cyprus', + cz: 'czechia', + de: 'germany', + dj: 'djibouti', + dk: 'denmark', + dm: 'dominica', + do: 'dominican republic', + dz: 'algeria', + ec: 'ecuador', + ee: 'estonia', + eg: 'egypt', + eh: 'western sahara', + er: 'eritrea', + es: 'spain', + et: 'ethiopia', + fi: 'finland', + fj: 'fiji', + fk: 'falkland islands', + fm: 'micronesia', + fo: 'faroe islands', + fr: 'france', + ga: 'gabon', + gb: 'united kingdom of great britain', + gd: 'grenada', + ge: 'georgia', + gf: 'french guiana', + gg: 'guernsey', + gh: 'ghana', + gi: 'gibraltar', + gl: 'greenland', + gm: 'gambia', + gn: 'guinea', + gp: 'guadeloupe', + gq: 'equatorial guinea', + gr: 'greece', + gs: 'south georgia and the south sandwich islands', + gt: 'guatemala', + gu: 'guam', + gw: 'guinea-bissau', + gy: 'guyana', + hk: 'hong kong', + hm: 'heard island and mcdonald islands', + hn: 'honduras', + hr: 'croatia', + ht: 'haiti', + hu: 'hungary', + id: 'indonesia', + ie: 'ireland', + il: 'israel', + im: 'isle of man', + in: 'india', + io: 'british indian ocean territory', + iq: 'iraq', + ir: 'iran', + is: 'iceland', + it: 'italy', + je: 'jersey', + jm: 'jamaica', + jo: 'jordan', + jp: 'japan', + ke: 'kenya', + kg: 'kyrgyzstan', + kh: 'cambodia', + ki: 'kiribati', + km: 'comoros', + kn: 'saint kitts and nevis', + kp: 'democratic peoples republic of korea', + kr: 'republic of korea', + kw: 'kuwait', + ky: 'cayman islands', + kz: 'kazakhstan', + la: 'lao', + lb: 'lebanon', + lc: 'saint lucia', + li: 'liechtenstein', + lk: 'sri lanka', + lr: 'liberia', + ls: 'lesotho', + lt: 'lithuania', + lu: 'luxembourg', + lv: 'latvia', + ly: 'libya', + ma: 'morocco', + mc: 'monaco', + md: 'moldova', + me: 'montenegro', + mf: 'saint martin', + mg: 'madagascar', + mh: 'marshall islands', + mk: 'north macedonia', + ml: 'mali', + mm: 'myanmar', + mn: 'mongolia', + mo: 'macao', + mp: 'northern mariana islands', + mq: 'martinique', + mr: 'mauritania', + ms: 'montserrat', + mt: 'malta', + mu: 'mauritius', + mv: 'maldives', + mw: 'malawi', + mx: 'mexico', + my: 'malaysia', + mz: 'mozambique', + na: 'namibia', + nc: 'new caledonia', + ne: 'niger', + nf: 'norfolk island', + ng: 'nigeria', + ni: 'nicaragua', + nl: 'netherlands', + no: 'norway', + np: 'nepal', + nr: 'nauru', + nu: 'niue', + nz: 'new zealand', + om: 'oman', + pa: 'panama', + pe: 'peru', + pf: 'french polynesia', + pg: 'papua new guinea', + ph: 'philippines', + pk: 'pakistan', + pl: 'poland', + pm: 'saint pierre and miquelon', + pn: 'pitcairn', + pr: 'puerto rico', + ps: 'palestine', + pt: 'portugal', + pw: 'palau', + py: 'paraguay', + qa: 'qatar', + re: 'réunion', + ro: 'romania', + rs: 'serbia', + rw: 'rwanda', + sa: 'saudi arabia', + sb: 'solomon islands', + sc: 'seychelles', + sd: 'sudan', + se: 'sweden', + sg: 'singapore', + sh: 'saint helena', + si: 'slovenia', + sj: 'svalbard and jan mayen', + sk: 'slovakia', + sl: 'sierra leone', + sm: 'san marino', + sn: 'senegal', + so: 'somalia', + sr: 'suriname', + ss: 'south sudan', + st: 'sao tome and principe', + sv: 'el salvador', + sx: 'sint maarten', + sz: 'eswatini', + tc: 'turks and caicos islands', + td: 'chad', + tf: 'french southern territories', + tg: 'togo', + th: 'thailand', + tj: 'tajikistan', + tk: 'tokelau', + tl: 'timor-leste', + tm: 'turkmenistan', + tn: 'tunisia', + to: 'tonga', + tr: 'türkiye', + tt: 'trinidad and tobago', + tv: 'tuvalu', + tw: 'taiwan', + tz: 'tanzania', + ug: 'uganda', + um: 'united states minor outlying islands', + uy: 'uruguay', + uz: 'uzbekistan', + va: 'holy see', + vc: 'saint vincent and the grenadines', + ve: 'venezuela', + vg: 'virgin islands (british)', + vi: 'virgin islands (u.s.)', + vn: 'viet nam', + vu: 'vanuatu', + wf: 'wallis and futuna', + ws: 'samoa', + ye: 'yemen', + yt: 'mayotte', + za: 'south africa', + zm: 'zambia', + zw: 'zimbabwe', } export function dateInfo (item) {