Nuxt.js: Message: 'this Page Could Not Be Found' (nuxt-i18n)
In my Nuxt.js application, I installed the nuxt-i18n according to how the documentation suggests: {   modules: [     ['nuxt-i18n', {       // Options     }]   ] }  But when I run n
Solution 1:
For the sake of completion to @Nicolas Pennec -great- answer, and in order to avoid warning messages as this one: Locale ISO code is required to generate alternate link, we should declare the locales as described in the documentation:
// nuxt.config.js
['nuxt-i18n', {
  locales: [
    {
      code: 'en',
      iso: 'en-US'
    },
    {
      code: 'es',
      iso: 'es-ES'
    },
    {
      code: 'fr',
      iso: 'fr-FR'
    }
  ]
}]
Solution 2:
it works fine if you set a default locale :)
  modules: [
    ['nuxt-i18n', {
      locales: ['en', 'fr', 'es'],
      defaultLocale: 'en',
      seo: false// workaround to fix the current issue on module https://github.com/nuxt-community/nuxt-i18n/issues/127
    }]
  ],
Post a Comment for "Nuxt.js: Message: 'this Page Could Not Be Found' (nuxt-i18n)"