Skip to content

Bug fix: Arabic and Persian are unreadible due to writing direction#406

Open
mohammed-r9 wants to merge 3 commits into
gin-gonic:masterfrom
mohammed-r9:bug-fix/ar-docs-writing-direction
Open

Bug fix: Arabic and Persian are unreadible due to writing direction#406
mohammed-r9 wants to merge 3 commits into
gin-gonic:masterfrom
mohammed-r9:bug-fix/ar-docs-writing-direction

Conversation

@mohammed-r9
Copy link
Copy Markdown

Bug fix: Arabic language layout breaks readability in docs

Description:
When viewing the Gin framework documentation in Arabic (lang="ar"), mixed Arabic and English text is rendered incorrectly. English terms inside Arabic sentences are not properly isolated, causing the text flow to become confusing and hard to read.

Expected:
Proper RTL rendering with English segments kept readable and correctly ordered.

Actual:
Mixed Arabic/English text appears visually jumbled and reduces readability.

Steps to reproduce:

  1. Open Gin docs website
  2. Switch language to Arabic
  3. View any page containing mixed Arabic + English text

Before fix:

image

After fix:

image

@mohammed-r9
Copy link
Copy Markdown
Author

The same issue also occurs in Persian (fa). The fix has been applied there as well, since it affects all RTL languages in general.

@mohammed-r9 mohammed-r9 force-pushed the bug-fix/ar-docs-writing-direction branch from 76de2b4 to 4813b6a Compare May 15, 2026 16:05
@mohammed-r9 mohammed-r9 changed the title Bug fix/ar docs writing direction Bug fix: Arabic and Persian are unreadible due to writing direction May 15, 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.

1 participant