Hi all!
Andreas Gal wrote a cool library to format phone numbers[1]. It's very light and should deal with *almost* all combinations of numbers and how they're visible on the screen.
In some countries (like Poland, heh) mobile OSes do pretty often format the numbers in a very odd ways.
Now is our chance to fix that, and for that we need a variety of tests for each locale.
I started an etherpad[2] and I'm asking you to jump in and add number formats for your country.
The format is:
Format(dial, fromWhere, resultNumber, resultCountry, nationalFormat, internationalFormat)
dial - number that the user types on the keyboard
formWhere - in which country he is when he types it
resultNumber - what number will be dialed
resultCountry - in which country this number will be dialed
nationalFormat - how this number should look on the phone
internationalFormat - how the number should look on the phone if calling from abroad
As a head start I added some examples for polish. Let's gather a good chunk of those for all locales and add them to our test suite.
Cheers,
g.
1)
https://github.com/andreasgal/PhoneNumber.js
2)
https://etherpad.mozilla.org/fxos-intl-num-formatting