Skip to content

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

License

Notifications You must be signed in to change notification settings

jslachta/LocaleNames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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

Stats

Alt

Contributing

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

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages