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
The App directory example only contains for router based localese, it would be nice to have a "best practice" example for doing a header (accept language) + cookie (NEXT_LOCALE) based, user preference based local switching.
The text was updated successfully, but these errors were encountered:
Are you referring to an example that doesn't use an i18n routing setup? The corresponding setup guide links to an example with a cookie setup at the bottom. Does that help?
If you want to additionally consider the accept-language header, you could set that up in a custom middleware.
This issue has been automatically closed because there was no recent activity and it was marked as unconfirmed. Note that issues are regularly checked and if they remain in unconfirmed state, they might miss information required to be actionable or are potentially out-of-scope. If you'd like to discuss this topic further, feel free to open a discussion instead.
Link to page
No response
Describe the problem
The App directory example only contains for router based localese, it would be nice to have a "best practice" example for doing a header (accept language) + cookie (NEXT_LOCALE) based, user preference based local switching.
The text was updated successfully, but these errors were encountered: