altynbek07
0
altynbek07
commented 2 months ago

Version

v2.4.0

Reproduction link

https://github.com/nuxt-community/sitemap-module

Steps to reproduce

Add i18n
Add sitemap
Configure both according to doc

What is expected ?

I want to disable autogenerated i18n routes in sitemap. In my nuxt.config.js I setted i18n: false option in sitemap section:

// nuxt.config.js

{
  modules: [
    ['nuxt-i18n', {
      locales: [
          { code: 'ru', name: "Русский", file: 'ru.js', iso: 'ru-RU' },
          { code: 'kk', name: "Қазақша", file: 'kk.js', iso: 'kk-KZ' },
          { code: 'en', name: "English", file: 'en.js', iso: 'en-US' }
      ],
      defaultLocale: 'ru',
      // and some other i18n options
    }],
    ['@nuxtjs/sitemap', {
      // some other  sitemap options
      i18n: false
    }]
  ]
}

What is actually happening?

Sitemap still generated with i18n routes

bug
0
Informations
Bug ReportOpen
#c108 - Created 2 months ago