Fix: remove unnecessary RLM characters from Arabic locale format (fix… #2979
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.
🟢 Title
Remove unnecessary Right-to-Left Mark (U+200F) from Arabic locale format L
📝 Description
This PR removes the Right-to-Left Mark characters (RLM, U+200F) from the Arabic (ar) locale’s L date format.
Reason
The L format currently contains RLM characters:
L: 'D[U+200F]/M[U+200F]/YYYY'These characters are intended to adjust text direction, but:
Numbers and dates in Arabic are written left-to-right.
RLM is unnecessary for correct formatting.
When rendered in HTML or mixed-direction environments, these characters often cause dates to appear in the wrong order (e.g., year/month/day swapped or visually flipped).
The presence of hidden directional marks leads to inconsistent rendering across browsers and frameworks.
What this PR changes
Replaces the existing L format:
No other locale settings are modified.
✅ Benefits
🔍 Related Issue
Fixes #2977