LocaleNames 41.0.1

.NET 5.0 .NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
dotnet add package LocaleNames --version 41.0.1
NuGet\Install-Package LocaleNames -Version 41.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LocaleNames" Version="41.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LocaleNames --version 41.0.1
#r "nuget: LocaleNames, 41.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install LocaleNames as a Cake Addin
#addin nuget:?package=LocaleNames&version=41.0.1

// Install LocaleNames as a Cake Tool
#tool nuget:?package=LocaleNames&version=41.0.1

Locale Names

NuGet NuGet Coverage Status CodeFactor

.NET library providing localized language names and country names.

The translation data are generated from CLDR locale data for internationalization.


Find all language codes

var allLanguageCodes = LocaleNames.ForLanguageCode("en-US").AllLanguageCodes;

Find language name

var translatedLanguageName = LocaleNames.ForCultureInfo(new CultureInfo("en-US")).FindLanguageName("cs-CZ");

Find language code

var languageCode = LocaleNames.ForCultureInfo(new CultureInfo("en-US")).FindLanguageCode("Czech");

Find all country codes

var allCountryCodes = LocaleNames.ForLanguageCode("en-US").AllCountryCodes;

Find country name

var translatedCountryName = LocaleNames.ForCultureInfo(new CultureInfo("en-US")).FindCountryName("DE");

Find country code

var countryCode = LocaleNames.ForCultureInfo(new CultureInfo("en-US")).FindCountryCode("Germany");




Contributions are welcome. Feel free to file issues and pull requests on the repo.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
42.0.1 225 12/6/2022
41.0.1 621 10/17/2022
41.0.0 699 4/19/2022
40.0.0 1,250 11/9/2021
39.0.5 285 10/21/2021
39.0.4 246 10/15/2021
39.0.3 264 9/10/2021
39.0.2 238 7/20/2021
39.0.1 218 5/12/2021
39.0.0 249 5/11/2021
37.1.3 321 3/2/2021
37.1.2 337 11/24/2020
37.1.1 288 11/23/2020
37.1.0 318 11/23/2020
37.0.2 300 11/23/2020
37.0.1 354 11/19/2020
37.0.0 363 11/18/2020