You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am working on a Multi-Tenant app, and the translations are fetch from CMS so I want to reload i18n resources on each page reload to make sure the most up-to-date translations are displayed in the app, so I have set reloadOnPrerender to true in my i18next config but the resources are not reloaded only after 2-4 hard reloads to the page, and I have tried to manually calli18n?.reloadResources(); in my getServerSideProps but also it does not reload the resources immediately.
what am I missing in my config?
or how can I immediately reload the resources on each page reload?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am working on a Multi-Tenant app, and the translations are fetch from CMS so I want to reload i18n resources on each page reload to make sure the most up-to-date translations are displayed in the app, so I have set
reloadOnPrerender
totrue
in my i18next config but the resources are not reloaded only after 2-4 hard reloads to the page, and I have tried to manually calli18n?.reloadResources();
in mygetServerSideProps
but also it does not reload the resources immediately.what am I missing in my config?
or how can I immediately reload the resources on each page reload?
Beta Was this translation helpful? Give feedback.
All reactions