Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for RTL Languages #10385

Open
BatoolMM opened this issue Apr 24, 2022 · 0 comments · May be fixed by #13338
Open

Support for RTL Languages #10385

BatoolMM opened this issue Apr 24, 2022 · 0 comments · May be fixed by #13338
Labels
type:enhancement enhance or introduce a new feature

Comments

@BatoolMM
Copy link

Is your feature request related to a problem? Please describe.
Sphinx has no support for RTL language, which makes it hard to use for global audience that uses languages which RTL (e.g. Hebrew, Farsi, Arabic, ..).

Describe the solution you'd like
We would like to have dir property in the config file.

Describe alternatives you've considered
I'm using CSS tags, but I'd like to change the global dir for the HTML file. For example, changing the lang in the config file result in <html lang="ar"> but I'd like to trigger <html dir="rtl" lang="ar">. I looked in the docs but couldn't find a lead.

@BatoolMM BatoolMM added the type:enhancement enhance or introduce a new feature label Apr 24, 2022
@AA-Turner AA-Turner added this to the some future version milestone Sep 29, 2022
Revisto added a commit to Revisto/sphinx that referenced this issue Feb 13, 2025
- Add is_rtl theme option for right-to-left text direction
- Implement automatic layout mirroring for RTL languages
- Keep code blocks in LTR direction
@Revisto Revisto linked a pull request Feb 13, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement enhance or introduce a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants