From a83ee9488c22f7d3a7a9aed4b2447f43e9be63ea Mon Sep 17 00:00:00 2001 From: Horst Fellenberg Date: Thu, 28 May 2026 12:26:06 +0200 Subject: [PATCH 1/3] add mappings for kosovo --- mappings.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/mappings.go b/mappings.go index ec2f2d6..e5b8e19 100644 --- a/mappings.go +++ b/mappings.go @@ -3968,4 +3968,29 @@ var mappings = []Mapping{ }, }, }, + // there are 2 possible mappings for Kosovo, because there is no official ISO3166-1 code for Kosovo, + // but both XKX and RKS are used in practice. + // The order of the two mappings is important because we want to map to XKX preferredly from the country name. + { + Alpha2: "XK", + Alpha3: "XKX", + Translations: map[Language]Translation{ + "de": { + Common: "Kosovo", + Official: "Republik Kosovo", + Nationality: "Kosovo", + }, + }, + }, + { + Alpha2: "XK", + Alpha3: "RKS", + Translations: map[Language]Translation{ + "de": { + Common: "Kosovo", + Official: "Republik Kosovo", + Nationality: "Kosovo", + }, + }, + }, } From f8747a98b71f536d0262e01f3d9ab735c6fe4b89 Mon Sep 17 00:00:00 2001 From: Horst Fellenberg Date: Thu, 28 May 2026 12:38:06 +0200 Subject: [PATCH 2/3] add english --- mappings.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mappings.go b/mappings.go index e5b8e19..f6fec5e 100644 --- a/mappings.go +++ b/mappings.go @@ -3978,7 +3978,12 @@ var mappings = []Mapping{ "de": { Common: "Kosovo", Official: "Republik Kosovo", - Nationality: "Kosovo", + Nationality: "Kosovarisch", + }, + "en": { + Common: "Kosovo", + Official: "Republic of Kosovo", + Nationality: "Kosovar", }, }, }, @@ -3989,7 +3994,12 @@ var mappings = []Mapping{ "de": { Common: "Kosovo", Official: "Republik Kosovo", - Nationality: "Kosovo", + Nationality: "Kosovarisch", + }, + "en": { + Common: "Kosovo", + Official: "Republic of Kosovo", + Nationality: "Kosovar", }, }, }, From 82ae94b75f030fce469d59013d751525e0c756eb Mon Sep 17 00:00:00 2001 From: Horst Fellenberg Date: Thu, 28 May 2026 12:43:43 +0200 Subject: [PATCH 3/3] improve comment --- mappings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mappings.go b/mappings.go index f6fec5e..e7081ff 100644 --- a/mappings.go +++ b/mappings.go @@ -3968,7 +3968,7 @@ var mappings = []Mapping{ }, }, }, - // there are 2 possible mappings for Kosovo, because there is no official ISO3166-1 code for Kosovo, + // there are 2 possible alpha3 mappings for Kosovo, because there is no official ISO3166-1 code for Kosovo, // but both XKX and RKS are used in practice. // The order of the two mappings is important because we want to map to XKX preferredly from the country name. {