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
In order to be able to cache responses from nuxt people basically all need to disable detectBrowerLanguage. This however makes it always default to the locale specified in nuxt config - even for recurring users.
I'd like to propse a middle ground:
No locale in URL + no i18n_selected cookie in request -> default locale
No locale in URL + i18n_selected value is set -> i18n_selected is returned as redirect url
Locale in URL + i18n_selected is set -> return 200
Locale in URL + no i18n_selected cookie in request -> return 200 and on client perhaps set i18n_selected
The important part is not returning a cookie from the server for cachability, but instead setting it on user interaction/navigation client side.
Hope that makese sense, if there's a way that's already possible then I'd love to know about it! Thanks!
Additional information
Would you be willing to help implement this feature?
Could this feature be implemented as a module?
Final checks
Read the contribution guide (The contribution guideline of nuxt-modules/i18n is compliant with Nuxt too).
Describe the feature
In order to be able to cache responses from nuxt people basically all need to disable detectBrowerLanguage. This however makes it always default to the locale specified in nuxt config - even for recurring users.
I'd like to propse a middle ground:
The important part is not returning a cookie from the server for cachability, but instead setting it on user interaction/navigation client side.
Hope that makese sense, if there's a way that's already possible then I'd love to know about it! Thanks!
Additional information
Final checks
The text was updated successfully, but these errors were encountered: