dzcode-io / leblad

A JS library providing a list of Algerian administrative areas with many useful APIs.
https://www.npmjs.com/package/@dzcode-io/leblad
MIT License
63 stars 20 forks source link

Feature request: Add `getPhoneCodeForWilaya` and `getPhoneCodesForWilaya ` #19

Closed Fcmam5 closed 4 years ago

Fcmam5 commented 4 years ago

⚠️⚠️⚠️
This issue is for first-timers only, we'd like you to start your open-source journey from here 😄 ⚠️⚠️⚠️

As a library consumer, I would like to have a method that returns phone codes for each wilaya.
One of the use cases for this feature is with forms; in order to have a better user experience, we would like to set the phone code initials when the user select their wilaya. For example: if I fill the address block and set my city to Oran (code: 31) I would like if the phone number block is set automatically to 041.

What we want to add:

NB:

Happy Hacking !

oussamabouchikhi commented 4 years ago

@Fcmam5 I will take getPhoneCodeForWilayaand getPhoneCodesForWilaya

Fcmam5 commented 4 years ago

@oussamabouchikhi please check #20 , let's keep this issue for first-timers 😄

oussamabouchikhi commented 4 years ago

@oussamabouchikhi please check #20 , let's keep this issue for first-timers 😄

No problem

joeylnguyen commented 4 years ago

Hi! May I contribute by taking on this issue?

xxKeefer commented 4 years ago

I would love to have this for my first time, if you need someone to help i think i could do this

Fcmam5 commented 4 years ago

Hi! May I contribute by taking on this issue?

@joeylnguyen you got it! Happy Hacktober Hacking 🎉 !

Fcmam5 commented 4 years ago

I would love to have this for my first time, if you need someone to help i think i could do this

@xxKeefer you can take #24 😄