i18n icon indicating copy to clipboard operation
i18n copied to clipboard

Ability to disable default locale loading if actual locale is present

Open zumm opened this issue 1 year ago • 0 comments

Describe the feature

We using lazy load to fetch messages from backend. Our project is available in two locales, so fetching default locale aswell as current kills entire reason behind lazy loading.

Ofc it's possible to not set defaultLocale, but problem is our desired default locale is not en.

I'm not sure fetching defaultLocale even if actual locale is present is intended behiviour, so there is reporoduction: https://stackblitz.com/edit/nuxt-starter-bnxebz?file=app.vue

npm run build npm run preview

Change locale to ru by pressing button, then reload the page. As you can see in console both locales are fetched.

Additional information

  • [X] Would you be willing to help implement this feature?
  • [ ] Could this feature be implemented as a module?

Final checks

zumm avatar Jun 26 '24 16:06 zumm