0

I using with nuxt.js and nuxt-i18n to use locales.

But I always got this message on console by duplicate that even I using nuxt generate from folder structure.

Message:

enter image description here

Routing:

enter image description here

Sample of config:

modules: [
    '@nuxtjs/axios',
    ['nuxt-i18n', {
      locales: [
        { name: 'ภาษาไทย', code: 'th', iso: 'th-TH', file: 'th.js' },
        { name: 'English', code: 'th', iso: 'en-US', file: 'en.js' }
      ],
      defaultLocale: 'th',
      lazy: true,
      langDir: 'lang/'
    }]
  ],

Please help. Thanks.

nakorndev
  • 803
  • 2
  • 11
  • 18

1 Answers1

1

You have same code for both of your locales.

code: 'th'

Change english code to en and it should fix the issue

Aldarund
  • 17,312
  • 5
  • 73
  • 104