diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-08-04 01:23:32 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-08-04 01:23:32 +0200 |
commit | d838cee9cb536049119a22e805746d958628387d (patch) | |
tree | 44dfe9c5c27b1993401e3b81e6d14e24e224a7ae /src/countries.go | |
parent | 4230f1c26beed64d84e9a14c0bb0a6cf4c5bfc8a (diff) |
Big changes to everything
Diffstat (limited to 'src/countries.go')
-rw-r--r-- | src/countries.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/countries.go b/src/countries.go index 657cac8..d168266 100644 --- a/src/countries.go +++ b/src/countries.go @@ -13,6 +13,35 @@ type country struct { Code, Name string } +var countryCodeToName = map[string]string{ + "ad": "Andorra", + "at": "Austria", + "be": "Belgium", + /* TODO(2026): Add Bulgaria */ + /* "bg": "Bulgaria", */ + "cy": "Cyprus", + "de": "Germany", + "ee": "Estonia", + "es": "Spain", + "fi": "Finland", + "fr": "France", + "gr": "Greece", + "hr": "Croatia", + "ie": "Ireland", + "it": "Italy", + "lt": "Lithuania", + "lu": "Luxembourg", + "lv": "Latvia", + "mc": "Monaco", + "mt": "Malta", + "nl": "Netherlands", + "pt": "Portugal", + "si": "Slovenia", + "sk": "Slovakia", + "sm": "San Marino", + "va": "Vatican City", +} + func sortedCountries(p i18n.Printer) []country { xs := []country{ {Code: "ad", Name: p.GetC("Andorra", "Place Name")}, |