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
If you are experiencing problems with the i18n library in the main path (/), such as the default language being displayed on the main as opposed to the subpages, you may need to make some adjustments.
This behavior is a bit tricky since I have only found it when deploying in vercel, in local library works correctly. But of course "in my local it works" is not enough.
Option 1. Disable Prerendering
// in routes/+page.js
export const prerender = false;
Option 2. Delete the file +page.js
Directly delete the file in routes/+page.js
I hope this helps you to avoid wasting time trying to find the source of the bug.
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
-
If you are experiencing problems with the i18n library in the main path (/), such as the default language being displayed on the main as opposed to the subpages, you may need to make some adjustments.
This behavior is a bit tricky since I have only found it when deploying in vercel, in local library works correctly. But of course "in my local it works" is not enough.
Option 1. Disable Prerendering
Option 2. Delete the file +page.js
Directly delete the file in routes/+page.js
I hope this helps you to avoid wasting time trying to find the source of the bug.
Beta Was this translation helpful? Give feedback.
All reactions