Search code examples
user-interfacephone-number

UI Phone number accepting - international format


Are there any standards for phone number across the world. I would like to create one UI to accept the phone number Depending on country the phone number accepting dialog should be changed like in US it should be +1-408-567-9822 There are different such types of conventions getting followed across the world. Are there any location to get all standards or code to format the phone numbers.


Solution

  • There is a standard, E.164. There are libraries available for handling phone numbers, such as libphonenumber.