Skip to content

Commit 6c62c9b

Browse files
committed
optimize translation
1 parent b04f239 commit 6c62c9b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Nager.Country.Translation/CountryTranslations/KosovoCountryTranslation.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ public class KosovoCountryTranslation : ICountryTranslation
88
/// <inheritdoc/>
99
public TranslationInfo[] Translations => new []
1010
{
11-
new TranslationInfo(LanguageCode.EN, "Kosovo"),
1211
new TranslationInfo(LanguageCode.DE, "Kosovo"),
12+
new TranslationInfo(LanguageCode.EN, "Kosovo"),
13+
new TranslationInfo(LanguageCode.ES, "Kosovo"),
14+
new TranslationInfo(LanguageCode.FR, "Kosovo"),
15+
new TranslationInfo(LanguageCode.IT, "Kosovo"),
16+
new TranslationInfo(LanguageCode.PT, "Kosovo"),
1317
};
1418
}
1519
}

src/Nager.Country.Translation/TranslationProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public TranslationProvider()
157157
this._alpha2Code2CountryTranslation.Add(Alpha2Code.KZ, new KazakhstanCountryTranslation());
158158
this._alpha2Code2CountryTranslation.Add(Alpha2Code.KE, new KenyaCountryTranslation());
159159
this._alpha2Code2CountryTranslation.Add(Alpha2Code.KI, new KiribatiCountryTranslation());
160+
this._alpha2Code2CountryTranslation.Add(Alpha2Code.XK, new KosovoCountryTranslation());
160161
this._alpha2Code2CountryTranslation.Add(Alpha2Code.KW, new KuwaitCountryTranslation());
161162
this._alpha2Code2CountryTranslation.Add(Alpha2Code.KG, new KyrgyzstanCountryTranslation());
162163
this._alpha2Code2CountryTranslation.Add(Alpha2Code.LA, new LaosCountryTranslation());

0 commit comments

Comments
 (0)