nuxt-modules / i18n

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

docs: add lang switching vue-i18n caveat #2796

Closed BobbieGoede closed 9 months ago

BobbieGoede commented 9 months ago

🔗 Linked issue

❓ Type of change

📚 Description

This is a common pitfall and I'm guessing this mostly happens for users who first used vue-i18n only. Directly mutating locale and not using setLocale or switchLocalePath navigation when switching language is an easy mistake, hopefully this informs users before they make it or at least it can be referenced when users open an issue.

I'm thinking we should probably add a section with common pitfalls or best practices that includes bits of information like this.

📝 Checklist

nuxt-studio[bot] commented 9 months ago

Live Preview ready!

Name Edit Preview Latest Commit
i18n Edit on Studio ↗︎ View Live Preview 15815864533f7ae2b65a2e1a8aebffcfab8d3ca3