next-translate icon indicating copy to clipboard operation
next-translate copied to clipboard

Force page refresh to change layout on changing to RTL language (or back) ?

Open krishaamer opened this issue 4 years ago • 1 comments

Hi @aralroca , thanks for this awesome package! I'm trying to use it to support RTL languages however I'm having trouble getting the layout to change without making a full page refresh (or forcing the refresh easily only when RTL languages are concerned). Any advice on how to advice this? Thanks!

krishaamer avatar Feb 21 '22 08:02 krishaamer

I don't know your code, maybe with an example of what you have it would be easier for me to help you. But if the RTL is controlled by CSS, a refresh should not be necessary. Only changing the lang property of html tag is enough (Next.js i18n Routing does it automatically by default when switching languages).

aralroca avatar Feb 21 '22 12:02 aralroca