Use this tag for questions related to Nuxt.js Internationalization plugin based on Vue-i18n plugin.
Questions tagged [nuxt-i18n]
149 questions
0
votes
1 answer
How to get access to template in asyncData?
I want to get access to this.$el in asyncData.
I use a database to store translations.
I want to get a list of translations that are used on the current page.
Then I will send a request to the server to receive them.
After that, I will merge…

Vladimir Golub
- 523
- 1
- 8
- 22
0
votes
2 answers
Problem with nuxt-i18n and 404 redirect with nuxt
I'm working on a nuxt project with a custom 404 page.
When I install the module nuxt-i18n to have my website in french and english I have encountered a problem with the custom route created for the 404 page.
when I let my custom route in…

lolomolo
- 1
- 1
0
votes
1 answer
Nuxt generate with vuex and multi-language site
I am currently building my first (statically generated) website with nuxt and a headless Wordpress as CMS. I am also using the module nuxt-i18n for multi-language support: German (default) and English.
The setup
To fetch data from the multi-language…

Valentin
- 43
- 1
- 6
0
votes
0 answers
Generating pages vue-i18n nuxt
I am trying to run ‘nuxt generate’ for a multi language website (de and en) and I get the following error: ERROR Error generating route "/de": This page could not be found
I get the error only when I set defaultLocale: 'de', on defaultLocale: 'en'…

senakua
- 47
- 1
- 6
0
votes
3 answers
Locale keeps resetting between switching pages. Nuxt-i18n
I am trying to set up localization for my Nuxt frontend. Every time I switch to English and then move to an other subpage of my website it does reset back to German.
This is my LanguageSelector
0
votes
2 answers
nuxt-i18n: Lang Switcher Error "Object is possibly 'undefined'
I want to build a language switcher on my nuxt app with nuxt-i18n plugin. Important note is, that I am using TypeScript instead of JavaScript.
As in the documentation (https://i18n.nuxtjs.org/lang-switcher) I implemented the following code into my…

Cenasa
- 531
- 9
- 27
0
votes
0 answers
Nuxtjs regions in the URL address
I'm planning a project on Nuxt.js, but at the moment I can't find an elegant solution for the regions functionality. I would be very grateful for an idea that will help you implement the functionality in which the prefix of the selected region was…

lna1989
- 1
- 1
0
votes
1 answer
Nuxt vue-router beforeRouteLeave navigation guard cause maximum call stack size exceeded when I check if to.hash is empty
I'm stuck with a loop problem that I think shouldn't have reasons to happen.
In a Nuxt nested dynamic page component (_id.vue), I want to check if to.hash is not empty in a beforeRouteLeave navigation guard but when I do this check and it is true, I…

Jecko
- 403
- 1
- 5
- 10
0
votes
1 answer
Can't access nuxt-i18n info
I am working on an international blog in nuxt. I cant seem to access the i18n object in the nav component and on some pages. Can you clarify how to access it and why I cant? I am assuming it is lifecycle related but not sure...
In…

Totoro
- 1,234
- 2
- 12
- 21
0
votes
1 answer
Nuxt i18n redirect to locale specific from page name
I'd like to redirect from /my-account to /hr/moj-racun using nuxt i18n (because Croatian is the default language, and the mapping between my-account and moj-racun exists).
Instead it redirects to /hr/my-account.
The page folder inside my nuxt app…

steakoverflow
- 1,206
- 2
- 15
- 24
0
votes
1 answer
Dynamic CTA url with Nuxt.js i18n
need some help to generate dynamic CTAs according selected language.
To sum up... i do have a website built on Nuxt.js with 3 languages (i18n). In the service section i do have 3 services, each one with it owns CTA.
All the texts (H2, paragraphs…
0
votes
2 answers
How to get in script tag of vue file of / pages / when using Nuxt.js and nuxt-i18n
https://qiita.com/munieru_jp/items/d7e9f98b5ab5960e7a93
If you do as above, you can get the contents of {{$ t ('HELLO_WORLD')}} in the tag.
How can I get {{$ t ('HELLO_WORLD')}} in the