Skip to content

Commit

Permalink
spelling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Aug 14, 2024
1 parent 9b6d51b commit 1afce7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Nager.Country.Translation/CountryProviderExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1afce7d

Please sign in to comment.