Ignoring localized routes

This feature is not supported with the no-prefix strategy.

If you'd like some pages to be available in some languages only, you can configure the list of supported languages to override the global settings. The options can be specified within either the page components themselves or globaly, within then module options.

Pick localized routes

pages/about.vue
export default {
  nuxtI18n: {
    locales: ['fr', 'es']
  }
}
nuxt.config.js
i18n: {
  parsePages: false,
  pages: {
    about: {
      en: false,
    }
  }
}

Disable localized routes

pages/about.vue
export default {
  nuxtI18n: false
}
nuxt.config.js
i18n: {
  parsePages: false,
  pages: {
    about: false
  }
}
Edit this page on GitHub Updated at Tue, Nov 30, 2021