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
I'm looking for a solution for setting a locale based on path pattern /[country]/[language], so the locale is defined by the [language] in the URL pathname and shared across all pages, including SSR.
I haven't found anything in the docs about it, so currently thinking of a self-made solution, with manually setting a NEXT_LOCALE cookie referenced here, which does not seem to be working for me yet. Please, is there a ready workaround for it which I may be missing?
as a note, I'm using Next 13 with new app dir
I would be very grateful for any ideas,
Thank you!
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
-
Hi @aralroca, and thanks for an awesome library!
I'm looking for a solution for setting a locale based on path pattern /[country]/[language], so the locale is defined by the [language] in the URL pathname and shared across all pages, including SSR.
I haven't found anything in the docs about it, so currently thinking of a self-made solution, with manually setting a NEXT_LOCALE cookie referenced here, which does not seem to be working for me yet. Please, is there a ready workaround for it which I may be missing?
as a note, I'm using Next 13 with new app dir
I would be very grateful for any ideas,
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions