-
This library seems to need to use Is there a way to decide the initial locale on CSR: client-side rendering? Like, on the server-side response, it returns empty page (like skeleton UI), and on the client-side, web browser decides the locale somehow, loads the language file and (re-)renders the page. I need to cover SSG/SSR, and CSR situation. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
adrai
Apr 12, 2023
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
japboy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/i18next/next-i18next#client-side-loading-of-translations-via-http
https://github.com/i18next/i18next-http-backend/tree/master/example/next
https://locize.com/blog/next-i18next/
client side only example: https://github.com/i18next/i18next-http-backend/blob/master/example/next/pages/client-page.js
client side "refreshed" example: https://github.com/i18next/i18next-http-backend/blob/master/example/next/pages/lazy-reload-page.js