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

Two format types in Brazil #394

Open
guesant opened this issue Sep 5, 2020 · 0 comments
Open

Two format types in Brazil #394

guesant opened this issue Sep 5, 2020 · 0 comments

Comments

@guesant
Copy link

guesant commented Sep 5, 2020

Is your feature request related to a problem? Please describe.

Feature Request.

Here in Brazil we normally format mobile phone numbers as +55 (xx) xxxxx-xxxx (11 digits) and some commercial/residential numbers as +55 xxxx-xxxx (10 digits)

Describe the solution you'd like

I don't know if is possible but it can be nice to have both formats.

Describe alternatives you've considered

Additional context

I've not tested this lib locally, just in the demo website (unstack.in/react-telephone-input). Maybe this is already implemented.

If not I can make a PR. Just one thing: the formats come from https://github.com/mukeshsoni/country-telephone-data? Because I found this that can help. It's possible to make a repeated country (two Brazil formats)?

https://github.com/mukeshsoni/country-telephone-data/blob/65c0c324cce1a925a4c3b1ff0734edc23c9fc05f/country_telephone_data.js#L34

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

No branches or pull requests

1 participant