nuxt-modules / i18n

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

Issue with Default and Current Locale Data Being Fetched Simultaneously in nuxt-i18n #3033

Closed beesou777 closed 2 months ago

beesou777 commented 2 months ago

Hello,

I’m experiencing an issue with nuxt-i18n and I'm unsure if it's the default behavior or a configuration issue. When I'm on my default locale, I only receive the locale data I need. However, when I switch to a different locale, my default locale data is also being fetched.

For instance, when I'm on a different locale, I see two sets of locale data:

Note: Below data is when i refresh the page not while switching the locale

th-th

But on my index page, I only see one set of data: en-th

How can I resolve this? Is this the default behavior of nuxt-i18n, or is there a way to configure it to only fetch the current locale's data?