nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.71k stars 478 forks source link

`detectBrowserLanguage` + Caching #3031

Open warflash opened 2 months ago

warflash commented 2 months ago

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