Giter Club home page Giter Club logo

ember-countries's People

Contributors

mnowik avatar smithjason avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-countries's Issues

Why convert country name to uppercase?

Is there any specific reason to return country names in uppercase. When I fetch the list of countries from https://github.com/mnowik/ember-countries/blob/master/addon/utils/countries-lists.js, they are in format that they supposed to be in.

Whereas, when I am trying to get the name of the country from it's ISO code using this method https://github.com/mnowik/ember-countries/blob/master/addon/utils/country-properties.js#L7, it returns the name back but transforms it to uppercase, which is not a consitent behavior.

Let me know if required, I can submit a PR for same

Cannot import ember-countries

Installed ember-countries in my project and I am following the example given in the documentation but I am getting an error like -
" Could not find module ember imported from ember-countries/utils/countries-lists".
I am trying to import this in one of my controllers -
import { COUNTRIES_LIST } from 'ember-countries';

Incorrect ISO3 Codes

The ISO3 codes for Cambodia, Cameroon, Canada and Cape Verde are incorrect in the countries-lists.js file. They should be as follows:

  • Cambodia = KHM
  • Cameroon = CMR
  • Canada = CAN
  • Cape Verde = CPV

I've had a quick glance at the others, and the problem seems to only affect these 4 countries, which appear to have their ISO3 codes jumbled.

We're using the ISO3 code as a key, so it was confusing me why Canada was showing as Cameroon (CMR) etc! Thought I'd mention this in case anyone else encounters this specific issue.

Any chance this could be fixed in the next version?

Thanks

Typing

Please include typescript types.

I have attached a generate set off types.

types.zip

Up for adoption?

I don't actually use this addon anymore but I just wanted to point out that their appears to be some interest in maintaining this addon. Adopted Ember Addons was created to take over ownership of addons like this. Would you consider transferring this addon over @mnowik?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.