webcat12345 / ngx-intl-tel-input

Phone number input field to support international numbers, Angular
MIT License
213 stars 338 forks source link

Which country list is being followed ? #290

Open AbdealiLoKo opened 4 years ago

AbdealiLoKo commented 4 years ago

I was trying to get a component for my project for country code. And I was using django-countries for the backend, and was expecting the frontend and backend to have same list of countries because they were the ISO list.

I found that django-countries has 249 countries. While this library has 243 according to https://github.com/webcat12345/ngx-intl-tel-input/blob/2.4.1/projects/ngx-intl-tel-input/src/lib/enums/country-iso.enum.ts

According to wikipedia, https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes There are 249 countries in the ISO spec.

So, I was wondering which list is being followed in this library as it doesn't seem to match ISO

pasevin commented 4 years ago

Good question, this was created before I took over. It would be great to update the list to support all the countries.