Skip to content

Commit cff595b

Browse files
Copilottinohager
andcommitted
Fix country data inconsistencies: official name typos, border errors, SubRegion corrections
- Fix BL (Saint Barthélemy): remove duplicate text in OfficialName - Fix KN (Saint Kitts and Nevis): remove extra 'a' in OfficialName - Fix NL (Netherlands): OfficialName to "Kingdom of the Netherlands" - Fix BQ (Caribbean Netherlands): OfficialName to "Bonaire, Sint Eustatius and Saba" - Fix CN (China): add missing Nepal (NP) to borders - Fix IN (India): remove Afghanistan (AF) and Sri Lanka (LK) from borders (no land borders) - Fix CY (Cyprus): remove GB from borders (island), fix SubRegion to SouthernEurope - Fix SH (Saint Helena): remove incorrect South American borders (island territory) - Fix LK (Sri Lanka): remove India from borders (island, no land border) - Fix EG (Egypt): add Palestine (PS) to borders - Fix IL (Israel): add Palestine (PS) to borders - Fix JO (Jordan): add Palestine (PS) to borders - Fix AL (Albania): add Kosovo (XK) to borders - Fix ME (Montenegro): add Kosovo (XK) to borders - Fix MK (North Macedonia): add Kosovo (XK) to borders - Fix RS (Serbia): add Kosovo (XK) to borders - Fix TD (Chad): add Sudan (SD) to borders - Fix SS (South Sudan): add Chad (TD) to borders - Fix SubRegion.SouthernAfrica Description attribute (was missing space) - Add SoutheastEurope and CentralEurope to SubRegion enum - Update 14 countries to correct SubRegion per UN M49 standard Co-authored-by: tinohager <8215186+tinohager@users.noreply.github.com>
1 parent 2ddaba9 commit cff595b

29 files changed

+47
-40
lines changed

src/Nager.Country/CountryInfos/AlbaniaCountryInfo.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ public sealed class AlbaniaCountryInfo : ICountryInfo
3232
public Region Region => Region.Europe;
3333

3434
/// <inheritdoc/>
35-
public SubRegion SubRegion => SubRegion.SouthernEurope;
35+
public SubRegion SubRegion => SubRegion.SoutheastEurope;
3636

3737
/// <inheritdoc/>
3838
public Alpha2Code[] BorderCountries =>
3939
[
4040
Alpha2Code.ME,
4141
Alpha2Code.GR,
4242
Alpha2Code.MK,
43+
Alpha2Code.XK,
4344
];
4445

4546
/// <inheritdoc/>

src/Nager.Country/CountryInfos/AustriaCountryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed class AustriaCountryInfo : ICountryInfo
3232
public Region Region => Region.Europe;
3333

3434
/// <inheritdoc/>
35-
public SubRegion SubRegion => SubRegion.WesternEurope;
35+
public SubRegion SubRegion => SubRegion.CentralEurope;
3636

3737
/// <inheritdoc/>
3838
public Alpha2Code[] BorderCountries =>

src/Nager.Country/CountryInfos/BosniaandHerzegovinaCountryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed class BosniaandHerzegovinaCountryInfo : ICountryInfo
3232
public Region Region => Region.Europe;
3333

3434
/// <inheritdoc/>
35-
public SubRegion SubRegion => SubRegion.SouthernEurope;
35+
public SubRegion SubRegion => SubRegion.SoutheastEurope;
3636

3737
/// <inheritdoc/>
3838
public Alpha2Code[] BorderCountries =>

src/Nager.Country/CountryInfos/BulgariaCountryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed class BulgariaCountryInfo : ICountryInfo
3232
public Region Region => Region.Europe;
3333

3434
/// <inheritdoc/>
35-
public SubRegion SubRegion => SubRegion.EasternEurope;
35+
public SubRegion SubRegion => SubRegion.SoutheastEurope;
3636

3737
/// <inheritdoc/>
3838
public Alpha2Code[] BorderCountries =>

src/Nager.Country/CountryInfos/CaribbeanNetherlandsCountryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public sealed class CaribbeanNetherlandsCountryInfo : ICountryInfo
1111
public string CommonName => "Caribbean Netherlands";
1212

1313
/// <inheritdoc/>
14-
public string OfficialName => "Caribbean Netherlands";
14+
public string OfficialName => "Bonaire, Sint Eustatius and Saba";
1515

1616
/// <inheritdoc/>
1717
public string NativeName => "Caribbean Netherlands";

src/Nager.Country/CountryInfos/ChadCountryInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public sealed class ChadCountryInfo : ICountryInfo
4242
Alpha2Code.LY,
4343
Alpha2Code.NE,
4444
Alpha2Code.NG,
45+
Alpha2Code.SD,
4546
Alpha2Code.SS,
4647
];
4748

src/Nager.Country/CountryInfos/ChinaCountryInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public sealed class ChinaCountryInfo : ICountryInfo
4848
Alpha2Code.LA,
4949
Alpha2Code.MO,
5050
Alpha2Code.MN,
51+
Alpha2Code.NP,
5152
Alpha2Code.PK,
5253
Alpha2Code.RU,
5354
Alpha2Code.TJ,

src/Nager.Country/CountryInfos/CroatiaCountryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed class CroatiaCountryInfo : ICountryInfo
3232
public Region Region => Region.Europe;
3333

3434
/// <inheritdoc/>
35-
public SubRegion SubRegion => SubRegion.EasternEurope;
35+
public SubRegion SubRegion => SubRegion.SoutheastEurope;
3636

3737
/// <inheritdoc/>
3838
public Alpha2Code[] BorderCountries =>

src/Nager.Country/CountryInfos/CyprusCountryInfo.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public sealed class CyprusCountryInfo : ICountryInfo
1414
public string OfficialName => "Republic of Cyprus";
1515

1616
/// <inheritdoc/>
17-
public string NativeName => "Êýðñïò";
17+
public string NativeName => "������";
1818

1919
/// <inheritdoc/>
2020
public Alpha2Code Alpha2Code => Alpha2Code.CY;
@@ -32,13 +32,10 @@ public sealed class CyprusCountryInfo : ICountryInfo
3232
public Region Region => Region.Europe;
3333

3434
/// <inheritdoc/>
35-
public SubRegion SubRegion => SubRegion.EasternEurope;
35+
public SubRegion SubRegion => SubRegion.SouthernEurope;
3636

3737
/// <inheritdoc/>
38-
public Alpha2Code[] BorderCountries =>
39-
[
40-
Alpha2Code.GB,
41-
];
38+
public Alpha2Code[] BorderCountries => [];
4239

4340
/// <inheritdoc/>
4441
public ICurrency[] Currencies => [new EurCurrency()];

src/Nager.Country/CountryInfos/CzechRepublicCountryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed class CzechRepublicCountryInfo : ICountryInfo
3232
public Region Region => Region.Europe;
3333

3434
/// <inheritdoc/>
35-
public SubRegion SubRegion => SubRegion.EasternEurope;
35+
public SubRegion SubRegion => SubRegion.CentralEurope;
3636

3737
/// <inheritdoc/>
3838
public Alpha2Code[] BorderCountries =>

0 commit comments

Comments
 (0)