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.

4

1 回答 1

1

您的两个语言环境都有相同的代码。

代码:'th'

将英文代码更改为en,它应该可以解决问题

于 2018-07-17T09:43:59.560 回答