LucianoGanga / country-codes-list

List of codes per country (languages, calling codes, currency codes, etc)
MIT License
94 stars 48 forks source link

Area Code and Priorization #17

Closed sreuter closed 2 years ago

sreuter commented 3 years ago

Hey there,

I was wondering if you'd been keen adding area codes / priorities for countries that have overlapping country codes. This would allow using this data for backing a phone picker, which also translates from phone number to country code.

See https://github.com/thegamenicorus/react-native-phone-input/blob/master/lib/resources/countries.json as an example.

I'll do a first kick-off with a PR that adds area codes for Canada based on https://en.wikipedia.org/wiki/Telephone_numbers_in_Canada. Let me know what you think.

Cheers,

Sascha