Comments (1)
You should switch locale using either setLocale
from useI18n()
or by navigating with switchLocalePath
, setting locale
directly may be fine when just using vue-i18n
but we only document language switching using setLocale
or switchLocalePath
as this triggers more than just changing translations (as you have noticed).
This may seem to work in earlier versions, but what's really happening is that the head tags and language are not matching the page URL, which is not desirable behaviour.
from i18n.
Related Issues (20)
- Warning: Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead. HOT 10
- Narrow typed locale identifiers
- Tree shake messages
- How do I create tenant specific locale overrides for @nuxt-i18n locale files in Nuxt 3 project?
- $getRouteBaseName CommonComposableOptions error WTF HOT 2
- SEO attributes are not reactive (lang, dir html attribute) with no prefix strategy HOT 4
- Cached version (swr, ssg...) is saved with one locale only HOT 2
- Unable to translate route of custom pages when those pages are not in the Nuxt pages folder HOT 1
- Configured locales get overridden when installing @nuxtjs/i18n using Nuxt Kit's installModule utility HOT 10
- bfcache Issue after adding i18n module HOT 3
- Changing locale does not update 'Accept-Language' value when passing as 'Accept-Language' header. HOT 3
- Allow setting available `locales` in the `runtimeConfig` HOT 1
- Cannot destructure property 'routesNameSeparator' of '__vite_ssr_import_3__.useRuntimeConfig(...).public.i18n' as it is undefined. HOT 4
- getRouteBaseName error in Nuxt 3.11 HOT 2
- Maximum call stack size exceeded when use [email protected] HOT 6
- <i18n-n scope="global"> throws warning [intlify] Not found parent scope. use the global scope HOT 7
- Module fetches wrong link when using server routes HOT 1
- Support per-component translations using `experimental.autoImportTranslationFunctions` HOT 1
- Content and i18n - Document not found for non-default locales HOT 2
- lazy:true doesn't work correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i18n.