Skip to content
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

format phone number to "country_code + area_code + local_nummer + direct_dialing" #118

Closed
Koyirov opened this issue May 4, 2018 · 2 comments
Labels

Comments

@Koyirov
Copy link

Koyirov commented May 4, 2018

Hello,
I am trying to format a phone number to
country_code + area_code + local_number + direct_dialling.
I think it is currently only possible to format a phone number to
country_code + area_code + phone_number.
Is there a way to format a phone number according to the first example ?

@Koyirov Koyirov closed this as completed May 4, 2018
@Koyirov Koyirov reopened this May 4, 2018
@daviddrysdale
Copy link
Owner

Not that I know of -- the set of available formats is limited, partly because there are few formats that work for all the different regions in the world -- it's worth reading the upstream project's list of gotchas (especially numbers 12, 19, and 21).

@Koyirov
Copy link
Author

Koyirov commented May 7, 2018

Thank you for your answer. Can we then apply this formatting only to these particular countries? I haven't found anything from phonenumber's library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants