Open timothejoubert opened 3 days ago
Thank you for taking the time to fill out this feature request!
The generated output should follow the i18n custom path set in i18n config. https://stackblitz.com/edit/nuxt-starter-i18n-timothe-kab8ad?file=nuxt.config.ts,pages/index.vue,package.json Would be nice to work with defineI18nRoute macro too
export default defineNuxtConfig({ ... i18n: { strategy: 'prefix_except_default', customRoutes: 'config', pages: { index: { fr: '/', en: '/home', }, other: { fr: '/autre-page', en: '/other-page', }, }, }, robots: { allow: ['/'], disallow: ['/other'], },
User-agent: * Allow: / Allow: /en/ Disallow: /other Disallow: /en/other
User-agent: * Allow: / Allow: /en/home Disallow: /autre-page Disallow: /en/other-page
Hi, I agree this should be supported as the Sitemap module does support this.
PRs welcome otherwise will attempt when I have a chance.
Thank you for taking the time to fill out this feature request!
Description
The generated output should follow the i18n custom path set in i18n config. https://stackblitz.com/edit/nuxt-starter-i18n-timothe-kab8ad?file=nuxt.config.ts,pages/index.vue,package.json Would be nice to work with defineI18nRoute macro too
Input
Actual output
Expected output