From d838cee9cb536049119a22e805746d958628387d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 4 Aug 2025 01:23:32 +0200 Subject: Big changes to everything --- src/countries.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/countries.go') 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")}, -- cgit v1.2.3