nuxt-i18n Questions
2
Solved
When trying to use an i18n message in a Nuxt3 Pinia store I get the error message:
"SyntaxError: Must be called at the top of a setup function"
When using a message in a template I can do...
5
I'm building a web app using Nuxt v2.15 and @nuxtjs/i18n v7.2. I'm using Vuex for state management. In my global state, I want to create a getter that returns a value based on this.$i18n.locale.
Wh...
Synesthesia asked 30/1, 2022 at 1:7
6
Solved
I am converting a VueJS project to Nuxt.js and I have a problem understanding how nuxt handles routing. Its documentation doesn't say anything about Pushing a route.
Using VueJS I have the followi...
0
I'm using Nuxt 2, Vue 2, Vuex 3, Vuetify 2, vuex-persistedstate 4 and nuxt-i18n 6.
I set this plugin to persiste my Vuex state which is containing RTL status and language code:
plugins/persistedSta...
Domination asked 23/5, 2021 at 14:9
1
I'm using nuxt-i18n and @nuxtjs/auth and I want to config the auth.redirect option to support i18n like this:
// nuxt.config.js
export default {
modules: [
'@nuxtjs/auth',
'nuxt-i18n',
// ......
Mohenjodaro asked 31/3, 2020 at 15:7
3
With Nuxt, you can set the language HTML attribute inside the nuxt.config.js file like so:
module.exports = {
head: {
htmlAttrs: {
lang: 'en-GB',
},
... etc etc
However, what should you do if...
Maori asked 2/6, 2018 at 10:42
3
I am building a multilingual Nuxt web app.
Using this example from the official documentation (Codepen link), I no longer want to use local JSON files where my translations are saved to work as de...
Entomostracan asked 2/10, 2018 at 7:42
2
Solved
Im using nuxtjs 2.10.x and i18n module. Nu custom middleware or anything like that. The routing is working fine.
my nuxt.config.js modules/i18n part:
...
modules: [
'@nuxtjs/axios',
'@nuxtjs/pwa...
2
I have changed my app to make it work with nuxt i18n and the translation seems to work when I access the routes directly.
E.g. http://localhost:3000/fr/step/1
I have the following structure in m...
Slovakia asked 11/11, 2019 at 8:52
2
Solved
In my Nuxt.js application, I installed the nuxt-i18n according to how the documentation suggests:
{
modules: [
['nuxt-i18n', {
// Options
}]
]
}
But when I run npm run dev, I get this error...
Emphatic asked 27/9, 2018 at 9:57
1
© 2022 - 2025 — McMap. All rights reserved.