Page title not being translated after deployment (on Vercel) #219
Unanswered
CHR-onicles
asked this question in
Q&A
Replies: 1 comment 4 replies
-
The most probable issue is that the translation files are not being loaded server side, this is common in Vercel if you use the fs backend of i18next, I recommend you to import them server side or fetch them with another backend |
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
-
Hi,
I've followed the instructions from the readme on using
getFixedT()
in my loader and returning translated text which I then use in my meta function. This works in my local dev and preview environments, but I've noticed on Vercel it fails to translate, and just displays the translation keys:Local env:
Deployed version:
I've tried all sort of different configs but it doesn't seem to work. In Vercel logs, I see the accepted languages from logging
request
but I'm starting to think i18n might not be ready early enough to translate stuff in the<head>
element? Everything else on the page works absolutely fine!I'll appreciate any help with this 🙏🏼
Beta Was this translation helpful? Give feedback.
All reactions