LocaleNames 48.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package LocaleNames --version 48.0.0
                    
NuGet\Install-Package LocaleNames -Version 48.0.0
                    
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="48.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LocaleNames" Version="48.0.0" />
                    
Directory.Packages.props
<PackageReference Include="LocaleNames" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LocaleNames --version 48.0.0
                    
#r "nuget: LocaleNames, 48.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LocaleNames@48.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LocaleNames&version=48.0.0
                    
Install as a Cake Addin
#tool nuget:?package=LocaleNames&version=48.0.0
                    
Install as a Cake Tool

Locale Names

NuGet NuGet Coverage Status CodeFactor

.NET library providing localized language names, country names and currency names.

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

Usage

Find all language codes

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

Find language name

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

Find language code

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

Find all country codes

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

Find country name

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

Find country code

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

Find all currency codes

var allCurrencyCodes = LocaleTranslationsFactory.ForLanguageCode("en-US").GetAllCurrencyCodes();

Find currency name

var translations = LocaleTranslationsFactory.ForLanguageCode("cs-CZ");

var currencyName = translations.FindCurrencyName("CZK");                        // česká koruna
var pluralName = translations.FindCurrencyName("CZK", PluralCategory.Few);      // české koruny
var pluralNames = translations.FindCurrencyPluralNames("CZK");                  // all plural forms

Find currency symbol

var symbol = LocaleTranslationsFactory.ForLanguageCode("en-US").FindCurrencySymbol("CZK");                       // CZK
var narrowSymbol = LocaleTranslationsFactory.ForLanguageCode("en-US").FindCurrencySymbol("CZK", AltVariant.Narrow); // Kč

Find currency code

var currencyCode = LocaleTranslationsFactory.ForLanguageCode("cs-CZ").FindCurrencyCode("česká koruna");

Stats

Alt

Contributing

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

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.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
48.1.1 282 10/8/2026
48.1.0 215 10/6/2026
48.0.1 109 10/4/2026
48.0.0 104 10/3/2026
47.0.0 72,401 5/4/2025
45.0.0 41,144 7/7/2024
43.0.0 60,397 7/3/2023
42.0.1 7,548 12/6/2022
41.0.1 3,305 10/17/2022
41.0.0 1,394 4/19/2022
40.0.0 2,423 11/9/2021
39.0.5 690 10/21/2021
39.0.4 611 10/15/2021
39.0.3 622 9/10/2021
39.0.2 560 7/20/2021
39.0.1 539 5/12/2021
39.0.0 582 5/11/2021
37.1.3 682 3/2/2021
Loading failed