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
the common namespace will be returned on each route change in the props loaded from nextjs. if translations get big it will reduce user experience as it will take time to download the translations (even if they are already loaded anyway).
Respone looking like this on each route change:
{
pageProps: {
__lang: 'en',
__namespaces: {
common: {
test: 'This is a translation'
}
}
},
__N_SSP: true
}
if you are on a mobile device and have to load 200kb of translations on each route change the app will feel "slow".
Isn't there a way to cache namespaces locally and only return namespaces from next that are not loaded before?
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
-
Is there a way to return each namespace only once and not on each request? as for example:
the common namespace will be returned on each route change in the props loaded from nextjs. if translations get big it will reduce user experience as it will take time to download the translations (even if they are already loaded anyway).
Respone looking like this on each route change:
if you are on a mobile device and have to load 200kb of translations on each route change the app will feel "slow".
Isn't there a way to cache namespaces locally and only return namespaces from next that are not loaded before?
Beta Was this translation helpful? Give feedback.
All reactions