Skip to content

Ember.js addon that provides multiple utilities regarding countries and country codes

License

Notifications You must be signed in to change notification settings

uniplaces/ember-cli-countries

Repository files navigation

ember-cli-countries

npm version Build Status Ember Observer Score dependencies devDependencies

This is an addon with some utils and helpers to get country names and calling codes given the country code.

Usage

  • ember install ember-cli-countries

Utils

  • getCountryName (countryCode) returns the country name (currently in EN_GB) given the country code
  • getCountryCallingCode (countryCode) returns the country calling code (e.g. +1) given the country code

Helpers

  • {{country-name code}}
  • {{country-calling-code code}}

Contributing

Any contribution is welcome. Please read our guidelines. However, if your contribution involves adding a new feature, please open an issue before to share your plan and agree the details of the feature before starting implementing it.