Repository navigation
Add Western digits option for Arabic mode - #3876
Open
muhammadumer-waheed wants to merge 2 commits into
Open
muhammadumer-waheed wants to merge 2 commits into
muhammadumer-waheed wants to merge 2 commits into
Conversation
Adds a "Western digits" checkbox, shown only in Arabic mode, that sets the Unicode nu-latn extension on the app locale (ex ar-EG-u-nu-latn) so numbers in the interface use 0123456789 instead of Eastern Arabic digits. Mushaf ayah markers are unaffected. Fixes quran#3543 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ern-digits # Conflicts: # app/src/main/res/values/strings.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3543
Adds a "Western digits (0123456789)" checkbox under Arabic mode (only visible when Arabic mode is on). It sets the Unicode
nu-latnextension on the app locale (ar-EG→ar-EG-u-nu-latn), so ICU formats interface numbers as 0123456789 while resources still resolve to Arabic. Mushaf ayah markers stay Eastern Arabic.QuranUtils.isUsingWesternDigits()helper + unit testNote: toggling Arabic mode off and on resets to
ar-EG, so the digits option needs re-checking.🤖 Generated with Claude Code