Skip to content

Latest commit

 

History

History
72 lines (65 loc) · 1.76 KB

README.md

File metadata and controls

72 lines (65 loc) · 1.76 KB

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