Skip to content

add RTL support for Persian/Farsi text in UI templates - #1519

Open
ssmns wants to merge 1 commit into
tfranzel:masterfrom
ssmns:master
Open

add RTL support for Persian/Farsi text in UI templates#1519
ssmns wants to merge 1 commit into
tfranzel:masterfrom
ssmns:master

Conversation

@ssmns

@ssmns ssmns commented Aug 9, 2026

Copy link
Copy Markdown

Add a debounced MutationObserver script at the end of each UI template (swagger_ui, redoc, elements, rapidoc) that automatically sets dir="auto" and text-align: justify on p, h1-h6, input, and textarea elements. This fixes bidirectional text display for RTL languages.

Add a debounced MutationObserver script at the end of each UI template
(swagger_ui, redoc, elements, rapidoc) that automatically sets
dir="auto" and text-align: justify on p, h1-h6, input, and textarea
elements. This fixes bidirectional text display for RTL languages.
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