Every country seems to have a different number of digits for the actual phone number, different style of writing, different length of country code (1, 2, or 3 digits), and optionally featuring an extension code too.
@celia i think the only true validation is to text/call it.
but for reliably getting accurate phone numbers globally, the following three items are significant to appear in the UI:
1. the flag emojis
2. +(country code)
3. country name
a hint for the other digits are helpful too
@tychi yeah, I've seen xxx-xxx-xxxx in the US context, but we just go xxxxxxxxxx in India. Idk if there is even an official guide on this internationally, or it's just culture in each country dictating it, even regardless of any official guideline. That would be hard to capture.
I'd love an input that is able to suggest an apt placeholder once a country is selected.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.