Skip to content

What is the correct way to set direction (rtl \ ltr) ? #1738

Answered by isaachinman
vltansky asked this question in Q&A
Discussion options

You must be logged in to vote

NextJs sets lang on the <html> tag, so I would expect the framework to also handle any RTL concerns.

That said, your approach looks fine, except that I'd consume locale from useRouter, not __NEXT_DATA__.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by isaachinman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants