remix-i18next server translations fail with Vercel #95
JoeMethven
started this conversation in
General
Replies: 1 comment 4 replies
-
If you check the Output of your deployment, you'll notice that the So on Vercel you need to change the path to don't have |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Works perfectly locally, when deployed the translations from the server aren't translated, then when they get to the client they become translated (causing a hydration error everywhere) the locale path is resolve('./public/locales/{{lng}}/{{ns}}.json') in the git example. I have tried changing this to ${process.env.VERCEL_URL}/locales/{{lng}}/{{ns}}.json as well but still the same, not sure how to resolve vercel path correctly for remix to understand, anyone had this issue before?
Looking at the vercel source outputted build files UI it looks like there is a
locales
directly on the root level, is there a proper way to target this?Beta Was this translation helpful? Give feedback.
All reactions