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

Build customized country group #267

Closed
perrosen opened this issue Nov 6, 2017 · 2 comments
Closed

Build customized country group #267

perrosen opened this issue Nov 6, 2017 · 2 comments

Comments

@perrosen
Copy link

perrosen commented Nov 6, 2017

Hi,

Thanks for the awesome library! Was looking at implementing the phone number formatting and wanted to limit what countries was included in my bundle since I don't need them all.

Following the link below though you seem to be lacking documentation for this.

https://github.com/nosir/libphonenumber-country-metadata#build-phone-type-formatterjs-for-cleavejs

Will be adding more and more countries in the future so would need to do this every now and then and if it can be explained here I would be more than happy to create a PR for updated documentation :)

@nosir
Copy link
Owner

nosir commented Nov 19, 2017

Hi @perrosen
Seems I didn't add that feature before :p
It's updated now:
https://github.com/nosir/cleave.js/blob/master/doc/phone-lib-addon.md#customize-building
seems works fine:
https://jsfiddle.net/nosir/ta11Lhup/

@nosir
Copy link
Owner

nosir commented Dec 23, 2017

Closing this, feel free to open if you have any problem in generating.

@nosir nosir closed this as completed Dec 23, 2017
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

2 participants