useflyyer / next-rosetta

Next.js + Rosetta + TypeScript with native i18n support | Lightweight, simple, easy to integrate, no custom server required and efficient because will only download the locale you need.
https://next-rosetta.vercel.app
MIT License
64 stars 4 forks source link

After redirecting to another page the translations and default values don't appear on nav bar and footer component? #18

Closed jhaji2911 closed 3 years ago

lopezjurip commented 3 years ago

Can you provide some example code?

jhaji2911 commented 3 years ago

I did that and the translations are visible on all pages now ,but how do I preserve the changed language on other page , I mean if I switch to some other page then it resets to the default language back again.

lopezjurip commented 3 years ago

Can you show me how are you dealing with navigation? Check our example: https://next-rosetta.vercel.app/ https://github.com/flayyer/next-rosetta/tree/main/example