-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Add getPhoneCodeForWilaya
and getPhoneCodesForWilaya
#19
Comments
@Fcmam5 I will take |
@oussamabouchikhi please check #20 , let's keep this issue for first-timers 😄 |
No problem |
Hi! May I contribute by taking on this issue? |
I would love to have this for my first time, if you need someone to help i think i could do this |
@joeylnguyen you got it! Happy Hacktober Hacking 🎉 ! |
- Added getPhoneCodeForWilaya method that returns the first phone code from a list of phone codes for a given wilaya re dzcode-io#19
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:
getPhoneCodeForWilaya
function that takes one parameter (wilayaCode: number) and returns the first phone code (as a wilaya, like Algiers have two phone codes: 21, 23).getPhoneCodesForWilaya
function that takes one parameter (wilayaCode: number) and returns an array of all phoneCodes of that wilaya.NB:
Happy Hacking !
The text was updated successfully, but these errors were encountered: