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
I want to use t method for href of a tag and custom data attribute instead of nuxt-link when using Nuxt.js + i18n
Dynamic multilingual sites from the backend to the replacement of large sites
I changed the language, but this time I am trying for the first time to do it at the front desk (Nuxt.js + i18n).

project sixth
- 21
- 9
0
votes
1 answer
Serve different page based on variable with Nginx
I have a nuxt generated JAMStack website with i18n. Generated pages are located in en and ru folders. I'm calculating user's locale and serving content from the corresponding folder:
map $http_accept_language $fallback_lang {
~en en;
~ru…

kyrsquir
- 51
- 6
0
votes
1 answer
Russian characters are not getting decoded when accessing url directly
The nuxt-link works fine, but when I reload, it can't find the route.
The translated routes are informed like this:
nuxtI18n: { paths: { en: "/for-sale/", es: "/en-venta/", ru: "/для-продажи/", } }
I have observed that if I go directly to the…

Chrisimir
- 27
- 6
0
votes
1 answer
nuxt-i18n fallback ignored routes
I've a multilang Nuxt App using nuxt-i18n with ignored routes.
nuxt.config.js
…
seo: true,
parsePages: false,
strategy: 'prefix_except_default',
pages: {
'cats': {
en: '/cats',
de: '/katzen',
fr: false
}
}
…
So the page is not…

Bitpunk
- 198
- 2
- 11
0
votes
1 answer
Is it possible to output html instead of a string as the object value when using nuxt-i18n?
Is it possible to output html instead of a string as the object value when using nuxt-i18n?
It would be great if you could teach me!
en.json
{
"HELLO_WORLD": "
Hello World
"
}
pages/index.vue
{ $t('HELLO_WORLD') }}
…
project sixth
0
votes
1 answer
Where to execute method to persist locale change in nuxt-i18n?
I'm following the documentation on how to change the language (https://nuxt-community.github.io/nuxt-i18n/lang-switcher.html), which works just fine. But whenever I set detectBrowserLanguage.useCookie and detectBrowserLanguage.alwaysRedirect in my…

royketelaar
- 1,389
- 2
- 11
- 21
0
votes
3 answers
How to use nuxt i18n?
I'm trying to use nuxti18n although there are some examples,
none seem to works. I was able to change the lang but its unable to translate.
Docs: https://nuxt-community.github.io/nuxt-i18n/
Everything that is commented It's what already…

pedro miguel
- 25
- 1
- 6
0
votes
2 answers
Call $t function in nuxt.js plugin
I am building a nuxt.js application. So my plan is to inject helper object and functions that are being reused to context.
So I created a plugin
export default (context) => {
const { $t } = context.app;
const validators = {
…

Rouz
- 1,247
- 2
- 15
- 37
0
votes
1 answer
Can not use nuxt-i18n (version 5.4.2)
In my Nuxt.js application, I want to use the newest version (5.4.2) of nuxt-i18n. I used it previously without any problems, but I do not understand what is going wrong now:
Version
v5.4.2
Reproduction…

Billal Begueradj
- 20,717
- 43
- 112
- 130
0
votes
2 answers
Error while initializing app TypeError: parentVal.concat is not a function
I created a fresh Nuxt.js project: npx create-nuxt-app project
Then I launch the server: cd project && npm run dev
Till this point is all ok.
Now I want to install nuxt-i18n: npm i nuxt-i18n and then I added it in nuxt.config.js:
modules: [
…

Billal Begueradj
- 20,717
- 43
- 112
- 130
-1
votes
1 answer
How can I use i18n strategy in nuxt3?
I use @nuxtjs/i18n with nuxt3 and I need to use strategy prefix_except_default. But it doesn't work.
My code:
package.json
{
"name": "nuxt-app",
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate":…

Oleksandr
- 3
- 4
-1
votes
2 answers
how do i integrate vee-validate v.2 with nuxt-i18n?
i am using vee-validate v.2 and i want to localize error massages .
i have wrote a plugin like this
import {configure} from 'vee-validate'
export default function ({app}){
configure({
defaultMessage:(field,values)=>{
…

morteza mortezaie
- 1,002
- 14
- 37
-1
votes
1 answer
How to add a video in nuxtjs and load them in the page. Help me pls
Video uploading and Viewing
I want to upload videos in a page and display or load them in the webpage.

J's View
- 11
- 4
-2
votes
1 answer
nuxt-i18n : date localization doesn't work for me
I am trying to localize DateTime with Nuxt/i18n,
but it doesn't work!
This is what I have in the config of Nuxt/i18n in nuxt config:
{
seo: true,
locales: [
{
code: 'en',
iso: 'en-US',
…

morteza mortezaie
- 1,002
- 14
- 37