diff --git a/src/Nager.Country.Translation/CountryProviderExtension.cs b/src/Nager.Country.Translation/CountryProviderExtension.cs index 531f763..44798fb 100644 --- a/src/Nager.Country.Translation/CountryProviderExtension.cs +++ b/src/Nager.Country.Translation/CountryProviderExtension.cs @@ -25,8 +25,8 @@ public static ICountryInfo GetCountryByNameConsiderTranslation( } var translationProvider = new TranslationProvider(); - var countryTanslation = translationProvider.GetCountryTranslation(country.Alpha2Code); - if (countryTanslation.Translations.Any(translation => translation.Name.Equals(countryName, StringComparison.OrdinalIgnoreCase))) + var countryTranslation = translationProvider.GetCountryTranslation(country.Alpha2Code); + if (countryTranslation.Translations.Any(translation => translation.Name.Equals(countryName, StringComparison.OrdinalIgnoreCase))) { return country; }