Load translations only at browser (not GSP/GSSP) #2042
Unanswered
aleksanderd
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I trying to remove the translations resources from pageProps at GSP/GSSP by resetting
_nextI18Next.initialI18nStore = null
right afterserverSideTranslations
+ use http(and local storage) backends to load the resources from browser.All work without errors, but on client its flashing with not translated texts after load.
Is it possible to wait for the resources loaded before first re-render at client?
Also, I noticed the app try load resources on every page. The resources not changes(the same for all pages/app), so it is fine to load it only once. Currently I use local storage backend to avoid double network requests, but what about detecting they loaded already?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions