added all ISO 3166-1 Alpha-2 country codes

https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
This commit is contained in:
niclaz 2024-08-24 00:28:23 +02:00 committed by GitHub
parent 9c4a40baee
commit fc2253ccd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {