nuxt-modules / i18n

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

fix: `setLocale` throwing error when used in plugin #2777

Closed BobbieGoede closed 7 months ago

BobbieGoede commented 7 months ago

🔗 Linked issue

❓ Type of change

📚 Description

Specifically https://github.com/nuxt-modules/i18n/issues/2554#issuecomment-1939318875

Just wrapping these functions in runWithContext appears to resolve this issue 🤔

📝 Checklist