LocaleNames 37.0.2

The LocaleNames library provides language and country names translation to almost any language.

There is a newer version of this package available.
See the version list below for details.
Install-Package LocaleNames -Version 37.0.2
dotnet add package LocaleNames --version 37.0.2
<PackageReference Include="LocaleNames" Version="37.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LocaleNames --version 37.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LocaleNames, 37.0.2"
#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=37.0.2

// Install LocaleNames as a Cake Tool
#tool nuget:?package=LocaleNames&version=37.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Locale Names

NuGet NuGet

This project aims to provide localized language names and country names.

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

Usage

NOTE: Instantiation LocaleNames or finding language name may throw a CultureNotFoundException, if the given culture is not found.

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 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");

Contributing

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

Locale Names

NuGet NuGet

This project aims to provide localized language names and country names.

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

Usage

NOTE: Instantiation LocaleNames or finding language name may throw a CultureNotFoundException, if the given culture is not found.

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 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");

Contributing

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

Release Notes

Check: https://github.com/jslachta/LocaleNames/releases

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
39.0.2 61 7/20/2021
39.0.1 68 5/12/2021
39.0.0 56 5/11/2021
37.1.3 107 3/2/2021
37.1.2 141 11/24/2020
37.1.1 113 11/23/2020
37.1.0 125 11/23/2020
37.0.2 125 11/23/2020
37.0.1 156 11/19/2020
37.0.0 124 11/18/2020
Show less