nuxt-modules / i18n

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

Make the language cookie value extendable #2905

Closed Xenossolitarius closed 5 months ago

Xenossolitarius commented 5 months ago

Describe the feature

I am currently trying to plug in a Nuxt 3 based site into an old web ecosystem and I am using prefix_except_default strategy. I am interested in keeping the old behavior to use short name prefixes like "en" or "es" but for the sake of supporting cross domain language cookie I would like to use "en-US" or "es-ES" when checking the cookie. Currently it's using the same value as the url prefix. If this is not in plan, can you give me some short guidance how to hack it? Probably intercepting the cookie on the server side?

Additional information

Final checks

kazupon commented 5 months ago

This is a question, not issue. so I'll move to github discussions.