Telephone icon indicating copy to clipboard operation
Telephone copied to clipboard

Incorrect phone number formatting for German numbers

Open BenK885 opened this issue 9 months ago • 1 comments

Description:

When displaying incoming or saved phone numbers, the app currently uses the North American formatting style (x-xxx-xxx-xxxx), which is not suitable for German phone numbers.

Example:

A German number like 01761234567 is shown as 0-176-123-4567, which is misleading and not in line with German formatting standards. The expected display would be something like 0176 1234567 or 0176 123 4567, depending on national conventions.

Steps to reproduce:

1.	Enable automatic number formatting in settings.
2.	Receive a call or view a contact with a German number.
3.	Observe the incorrect formatting style.

Expected behavior:

When automatic formatting is enabled, the app should apply region-specific formatting rules based on the number’s country code or device locale. For German numbers, a correct national format should be used.

Workaround:

Automatic formatting can be disabled in the settings, which causes numbers to display in raw format.

Suggested solution:

Implement locale-aware number formatting or utilize a library (e.g., Google’s libphonenumber) to ensure phone numbers are displayed correctly according to their region.

BenK885 avatar Mar 25 '25 14:03 BenK885

Just found https://github.com/64characters/Telephone/issues/124

BenK885 avatar Mar 25 '25 14:03 BenK885