Skip to content

fix: format numbers using the SIM/network country instead of the locale - #948

Closed
AcideFluorhydrique wants to merge 1 commit into
FossifyOrg:mainfrom
AcideFluorhydrique:fix/phone-number-format-region
Closed

AcideFluorhydrique wants to merge 1 commit into
FossifyOrg:mainfrom
AcideFluorhydrique:fix/phone-number-format-region

Conversation

@AcideFluorhydrique

@AcideFluorhydrique AcideFluorhydrique commented Nov 21, 2026 •

Copy link
Copy Markdown

Numbers without a country code were formatted, and their caller location was resolved, using the region of the system language. With e.g. an en-US locale on a Chinese SIM, a domestic number such as 13916629821 was shown as a US number, 1 (391) 662-9821.

Use the SIM country, then the network country, and only then the locale, as Config.regionHint already did, for the call screen, the call history and the caller location.

Fixes #947

Type of change(s)

  • Bug fix
  • Feature / enhancement
  • Infrastructure / tooling (CI, build, deps, tests)
  • Documentation

What changed and why

  • Fixed accent color contrast to meet WCAG AA
  • Updated strings

Tests performed

Before & after preview

Closes the following issue(s)

  • Closes #

Checklist

  • I read the contribution guidelines.
  • I manually tested my changes on device/emulator (if applicable).
  • I updated the "Unreleased" section in CHANGELOG.md (if applicable).
  • I have self-reviewed my pull request (no typos, formatting errors, etc.).
  • I understand every change in this pull request.

Numbers without a country code were formatted, and their caller
location was resolved, using the region of the system language. With
e.g. an en-US locale on a Chinese SIM, a domestic number such as
13916629821 was shown as a US number, 1 (391) 662-9821.

Use the SIM country, then the network country, and only then the
locale, as Config.regionHint already did, for the call screen, the
call history and the caller location.

Fixes FossifyOrg#947
@fossifybot

fossifybot Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Fossify accepts code contributions only for open issues labeled help wanted. This pull request does not meet that requirement or one of the documented exceptions, so it is being closed without review. Please read the contribution guidelines before starting work.

@fossifybot fossifybot Bot closed this Nov 21, 2026
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

Successfully merging this pull request may close these issues.

Numbers without a country code are formatted using the system language's region instead of the SIM/network country

1 participant