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

[I18n] direction: rtl in RTL languages #35

Closed
ezzak opened this issue Dec 7, 2020 · 6 comments
Closed

[I18n] direction: rtl in RTL languages #35

ezzak opened this issue Dec 7, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@ezzak
Copy link

ezzak commented Dec 7, 2020

Is it possible to get the main paragraphs on the page with the correct applied direction when in RTL.

image

https://developer.mozilla.org/en-US/docs/Web/CSS/direction

@shuding shuding added the bug Something isn't working label Dec 7, 2020
@shuding
Copy link
Owner

shuding commented Dec 7, 2020

Thanks for reporting! I'll make sure it gets supported.

@shuding
Copy link
Owner

shuding commented Dec 9, 2020

Just added a direction: 'rtl' option for i18n: https://nextra.vercel.app/docs/i18n 🎉

@shuding shuding closed this as completed Dec 9, 2020
@ezzak
Copy link
Author

ezzak commented Dec 10, 2020

Fix is great thank you, a small request if possible, can we hide the language menu if there is only one item in it? Before it was okay to exclude it to hide the menu but now I need to set the language there to get RTL. Thanks!

@shuding
Copy link
Owner

shuding commented Dec 10, 2020

@ezzak I see, what do you think about adding a global RTL option? Because if I understand correctly, you have only 1 locale but it's RTL.

@ezzak
Copy link
Author

ezzak commented Dec 10, 2020

Yup that's the case 👍

@shuding
Copy link
Owner

shuding commented Dec 13, 2020

Root-level direction: "rtl" is supported now, please upgrade 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants