Next.js Discord

Discord Forum

Language detection with i18next on Firebase

Unanswered
Himalayan posted this in #help-forum
Open in Discord
HimalayanOP
Hey everyone!

Unfortunately I cannot access headers nor cookies in Firebase Cloud Functions (only the __session cookie), therefore I don't know how do language detection on page load. If I set to default language on page load, then recognize it on client side, then I'll start getting Hydration error messages, due to the differences between the client and server-rendered contexts.

I was trying to create a workaround by passing all the necessary information through the __session cookie but I was not able to do that.

Is there anyone who were facing similar problems and if yes how did you resolve it?

Thanks in advance!

0 Replies