Skip to content

Worldwide Country Informations (ISO-3166-1 Alpha2, ISO-3166-1 Alpha3, ISO 639-1)

License

Notifications You must be signed in to change notification settings

nager/Nager.Country

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nager.Country

The country informations are available in the nuget package or as json in the zip package Worldwirde Country Informations with the following fields: CommonName, OfficialName, Translation, Alpha2Code, Alpha3Code, NumericCode, TLD, Region, SubRegion, BorderCountrys, Currencies, CallingCodes

{
  "commonName": "Austria",
  "officialName": "Republic of Austria",
  "translations": [
    {
      "languageCode": "en",
      "name": "Austria"
    },
    {
      "languageCode": "es",
      "name": "Austria"
    },
    {
      "languageCode": "fr",
      "name": "Autriche"
    },
    ...
  ],
  "alpha2Code": "at",
  "alpha3Code": "aut",
  "numericCode": 40,
  "tld": [
    ".at"
  ],
  "region": "europe",
  "subRegion": "westernEurope",
  "borderCountrys": [
    "cz",
    "de",
    "hu",
    "it",
    "li",
    "sk",
    "si",
    "ch"
  ],
  "currencies": [
    "EUR"
  ],
  "callingCodes": [
    "43"
  ]
}

nuget nuget.org download count

The package is available on nuget

PM> install-package Nager.Country

Examples

Get country informations of Germany

ICountryProvider countryProvider = new CountryProvider();
var countryInfo = countryProvider.GetCountry(Alpha2Code.DE);

Alternative projects

Language Project
* mledoze countries
* umpirsky country-list
javascript michaelwittig node-i18n-iso-countries