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
This means you need to repeat the setI18n in every page and layout. Luckily, you can easily factor it out into a simple function call, or create a HOC with which you'll wrap pages and layouts as seen here. Please let us know if there's a known better way.
Hey all, what do you think about using https://nimpl.dev/docs/server-getters#get-params in server-side useLingui to get appropriate language automatically? So we would not need to set language in every layout, page, server action manually.
Downside is, nimpl uses nextjs internals, so there is always a risk of version incompatibility.
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all, what do you think about using https://nimpl.dev/docs/server-getters#get-params in server-side
useLingui
to get appropriate language automatically? So we would not need to set language in every layout, page, server action manually.Downside is, nimpl uses nextjs internals, so there is always a risk of version incompatibility.
Beta Was this translation helpful? Give feedback.
All reactions