Replies: 2 comments 3 replies
-
Hi, It is possible to avoid a full-page reload when switching languages, but it's often not worth the added complexity. It's recommended to use a full-page reload, especially with RSC. If your language detection is set up correctly, users should only need to switch languages once, so the reload won't be a big issue. This approach is simpler and more reliable in terms of internal state handling, revalidation of loaded data, etc. |
Beta Was this translation helpful? Give feedback.
-
Agree with the Andrii, but answering directly to your queustion, simply use nextjs router methods to switch the page to other language and you will get a desired behaviour. |
Beta Was this translation helpful? Give feedback.
-
Hi, I looked at the nextjs-swc example. And I wonder if it is possible to rework app-router-demo so that after changing the language the page does not reload. Because pages-router-demo works without reloading the page.
Beta Was this translation helpful? Give feedback.
All reactions