Skip to content

Conversation

@DanielDerefaka
Copy link

Summary

Removes unnecessary Right-to-Left Mark (U+200F) characters from the Arabic locale L date format.

Problem

The Arabic locale format L contained RLM characters (D/‏M/‏YYYY) that caused:

  • Incorrect date rendering in HTML contexts
  • Visual reordering or misalignment of day, month, and year
  • The order of date components appearing incorrectly depending on surrounding text direction

Solution

Removed the RLM characters from the format: D/M/YYYY

This is the correct approach because numbers and dates are written left-to-right in Arabic typography and should not have their direction altered by RLM characters.

Test plan

  • Verified format no longer contains hidden Unicode characters
  • Date formatting produces clean output without direction control characters

Fixes #2977

Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=101010297

…mat L

The Arabic locale format L contained Right-to-Left Mark (U+200F) characters
that caused incorrect date rendering in HTML contexts. These RLM characters
are unnecessary for correct Arabic formatting since numbers and dates are
written left-to-right in Arabic typography.

Fixes iamkun#2977

Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=101010297
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.

Arabic locale (ar) uses unnecessary Right-to-Left Mark (U+200F) in format L, causing incorrect date rendering

1 participant