You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When switching locales, Nuxt i18n sends a request to the server every time the locale changes, instead of using cached messages. According to the documentation, caching should be enabled by default for static files and configurable for API-loaded locales, but in this case, it seems to be ignored.
Expected behavior:
After the first request, the locale messages should be cached and reused instead of refetching them on every locale change.
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
nuxt.config.ts
withlazy: true
and API-based locale loading:defineI18nLocale
to fetch locale messages from an API:Describe the bug
When switching locales, Nuxt i18n sends a request to the server every time the locale changes, instead of using cached messages. According to the documentation, caching should be enabled by default for static files and configurable for API-loaded locales, but in this case, it seems to be ignored.
Expected behavior:
After the first request, the locale messages should be cached and reused instead of refetching them on every locale change.
The text was updated successfully, but these errors were encountered: