|\u003Cimg width=\"324\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/cd6f6927-33b3-4b85-a984-64c6cb1f53e5\" />|\n\n#### Proposed Feature: `localeDetector` Option\n\n##### Current Behavior Example\n\nTo illustrate the current behavior, consider the following scenario:\n\n* Accessing `/en/about` and `/ja/about` under the `no_prefix` strategy will not trigger locale detection based on the pathname.\n* As a result, both paths will use the language setting of the build machine during SSG, resulting in both paths potentially being generated in the same language.\n\nScreenshots and repository links demonstrating the current behavior will be provided to further clarify the issue.\n\nTo address this issue, I propose adding a new `localeDetector` option to the module configuration. This option allows specifying the methods for locale detection as follows:\n\n```typescript\ntype LocaleDetector = (\"pathname\" | \"domain\" | \"cookie\" | \"browser\")[];\n\nconst localeDetector: LocaleDetector = [\"pathname\", \"domain\", \"cookie\", \"browser\"];\n```\n\nIf `pathname` is specified, the locale will be automatically detected based on the URL pathname.\n\nThe default value of `localeDetector` will vary depending on the `strategy` value to maintain backward compatibility. For instance, when `no_prefix` is selected, the default value would be:\n\n```javascript\nlocaleDetector: [\"domain\", \"cookie\", \"browser\"]\n```\n\n##### Example Configuration for My Use Case:\n\n```javascript\nstrategy: \"no_prefix\",\nlocaleDetector: [\"pathname\", \"cookie\", \"browser\"]\n```\n\nThis configuration would resolve the issue by enabling locale detection based on pathname while maintaining backward compatibility with existing behavior.\n\nThank you for considering this feature request. I would be happy to provide further clarifications or contribute to the implementation if needed.\n\n\n### Additional information\n\n- [x] Would you be willing to help implement this feature?\n- [ ] Could this feature be implemented as a module?\n\n### Final checks\n\n- [x] Read the [contribution guide](https://nuxt.com/docs/community/contribution) (The contribution guideline of nuxt-modules/i18n is compliant with Nuxt too).\n- [x] Check existing [discussions](https://github.com/nuxt-modules/i18n/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[3052],{"name":3019,"color":3020},3609,"Add `localeDetector` option to customize locale detection during Vue component rendering","2025-05-16T18:51:35Z","https://github.com/nuxt-modules/i18n/issues/3609",0.71510375,{"description":3059,"labels":3060,"number":3062,"owner":3022,"repository":3023,"state":3024,"title":3063,"updated_at":3064,"url":3065,"score":3066},"### Environment\n\n- Operating System: `Darwin`\n- Node Version: `v22.14.0`\n- Nuxt Version: `3.17.6`\n- CLI Version: `3.25.1`\n- Nitro Version: `2.11.13`\n- Package Manager: `npm@10.9.2`\n- Builder: `-`\n- User Config: `compatibilityDate`, `devtools`, `modules`, `i18n`\n- Runtime Modules: `@nuxtjs/i18n@9.5.6`\n- Build Modules: `-`\n\n\n### Reproduction\n\n[https://github.com/ap-arto/define-i18n-route-issue](https://github.com/ap-arto/define-i18n-route-issue)\n \n1. Run the development server:`npm run dev`\n2. Visit localhost:3000\n3. Observe that the `spanish___es` route has been created, even though this domain is meant to serve only the `en` locale and the `/spanish` page shouldn't be available.\n\n### Describe the bug\n\nWhen using customRoutes: 'config' with manually specified pages, everything works as expected. However, defineI18nRoute appears to be broken in this edge case.\n\n### Additional context\n\nThis might be related to that issue: https://github.com/nuxt-modules/i18n/issues/3226\n\n### Logs\n\n```shell\n\n```",[3061],{"name":3019,"color":3020},3721,"defineI18nRoute includes routes for other locales when using 'no_prefix' and differentDomains","2025-07-11T09:46:02Z","https://github.com/nuxt-modules/i18n/issues/3721",0.7229441,{"description":3068,"labels":3069,"number":3071,"owner":3022,"repository":3023,"state":3024,"title":3072,"updated_at":3073,"url":3074,"score":3075},"### Environment\n\n- Operating System: Darwin\n- Node Version: v22.15.0\n- Nuxt Version: 3.17.3\n- CLI Version: 3.25.1\n- Nitro Version: 2.11.12\n- Package Manager: npm@10.9.2\n- Builder: -\n- User Config: compatibilityDate, devtools, modules, i18n, nitro\n- Runtime Modules: @nuxt/content@3.5.1, @nuxtjs/i18n@9.5.4\n- Build Modules: -\n\n\n### Reproduction\n\nA minimal reproduction of this issue can be found in the following repository: https://github.com/odan-sandbox/nuxt-content-and-i18n-no_prefix-example\n\n\n### Describe the bug\n\nWhen using the `no_prefix` strategy in `nuxt-i18n`, the locale detection based on the URL pathname is not functioning as expected. This results in incorrect locale assignment during SSR/SSG.\n\nFor example, accessing `/en/about` and `/ja/about` should render the corresponding locale-specific content, but instead, both paths are rendered using the default or server locale, ignoring the locale information in the pathname.\n\nThis issue causes problems for multilingual documentation sites using `nuxt/content`, where the content is structured by locale (e.g., `docs/en/about.md`, `docs/ja/about.md`). During SSG, both paths may be generated with the same language content, leading to incorrect output.\n\nIf a PR to resolve this issue is considered appropriate, I would be willing to work on it.\n\n\n### Additional context\n\nRelated: https://github.com/nuxt-modules/i18n/issues/3609\n\n### Logs\n\n```shell\n\n```",[3070],{"name":3019,"color":3020},3619,"Locale detection not working with `no_prefix` strategy","2025-05-19T06:13:27Z","https://github.com/nuxt-modules/i18n/issues/3619",0.72695774,{"description":3077,"labels":3078,"number":3080,"owner":3022,"repository":3023,"state":3024,"title":3081,"updated_at":3082,"url":3083,"score":3084},"### Describe the feature\n\nI’d like to configure my application so that a locale like pt-BR uses a human‑friendly prefix instead of the code in URLs.\n\nE.g. `/brazil/about` instead of `/pt-BR/about`.\n\nIdeally, something like this:\n\n```js\nlocales: [\n {\n code: 'pt-BR',\n file: 'pt-BR.yml',\n language: 'pt-BR',\n prefix: 'brazil'\n }\n]\n```\n\nThat way:\n\n- I don’t need to map every route manually via pages config or macros.\n- I can keep my existing locale code value (`pt-BR`) unchanged.\n- I can support a custom prefix string (`brazil`) that’s meaningful and SEO‑friendly.\n\n### Additional information\n\n- [ ] Would you be willing to help implement this feature?\n- [ ] Could this feature be implemented as a module?\n\n### Final checks\n\n- [x] Read the [contribution guide](https://nuxt.com/docs/community/contribution) (The contribution guideline of nuxt-modules/i18n is compliant with Nuxt too).\n- [x] Check existing [discussions](https://github.com/nuxt-modules/i18n/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[3079],{"name":3019,"color":3020},3761,"[Feature Request] Allow custom prefix per locale","2025-07-25T05:47:03Z","https://github.com/nuxt-modules/i18n/issues/3761",0.73042864,{"description":3086,"labels":3087,"number":3091,"owner":3022,"repository":3023,"state":3024,"title":3092,"updated_at":3093,"url":3094,"score":3095},"### Environment\n\n* Nuxt: `^3.x`\n* @nuxtjs/i18n: `^9.x`\n* Package manager: `pnpm`\n* Node: `>=18`\n* OS: macOS\n\n### Reproduction\n\n\n#### 🧩 What I'm trying to do\n\nI want to **dynamically disable translation for some pages**, such as `/admin` or any route matching a certain pattern, by injecting into the `i18n.pages` config like this:\n\n```ts\ni18n: {\n customRoutes: 'config',\n pages: {\n 'admin': false\n }\n}\n```\n\nBut I want to do this **dynamically from another Nuxt module**, based on logic like:\n\n* Whether route path starts with `/admin`\n* Whether the file name includes certain keywords\n* Optional user-defined exclude rule function\n\n---\n\n#### 📌 Problem\n\nThe `pages:extend` hook gives access to all generated Nuxt pages, and I can detect which pages I want to exclude, then inject:\n\n```ts\nnuxt.options.i18n.pages = {\n ...nuxt.options.i18n.pages,\n ...detectedPagesToExclude\n}\n```\n\nHowever, **`@nuxtjs/i18n` appears to snapshot the config too early**, likely before `pages:extend` runs, and generates `i18n-options.mjs` using an internal `ctx.options`, so my dynamic changes to `nuxt.options.i18n.pages` do **not reflect** in the generated options.\n\n---\n\n### Describe the bug\n\n\n#### ❓Question\n\nIs there an **official or recommended way** to dynamically inject/disable page translation settings (`customRoutes: 'config'` + `pages`) at runtime or module time?\n\nMore specifically:\n\n* Can you expose a Nuxt hook like `i18n:extendPagesConfig(pages)` before generating `i18n-options.mjs`?\n* Or is there a safe way to hook into `ctx.options.pages` in a custom module?\n* Or should we write a wrapper module that overrides the `i18n` module setup?\n\n---\n\n#### 🧪 What I tried\n\n```ts\nnuxt.hook('pages:extend', pages => {\n for (const page of pages) {\n if (page.path.startsWith('/admin') && page.name) {\n nuxt.options.i18n.pages[page.name] = false\n }\n }\n})\n```\n\nBut this doesn't reflect in the generated `.nuxt/i18n-options.mjs` file.\n\n---\n\n#### 🙏 Feature request?\n\nCould you consider adding a hook like:\n\n```ts\nnuxt.hook('i18n:extendPagesConfig', (pages: NuxtPage[], currentConfig: Record\u003Cstring, any>) => {\n // modify and return updated pages config\n})\n```\n\nSo that other modules (like `i18n-exclude`) can safely hook in and modify translation strategy for specific routes?\n\n---\n\nLet me know if there's already a supported way to do this.\n\nThanks a lot for the amazing work on `@nuxtjs/i18n` 🙌\n\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3088],{"name":3089,"color":3090},"feature request","ffbb00",3716,"Allow modules to modify route localization","2025-07-03T17:06:13Z","https://github.com/nuxt-modules/i18n/issues/3716",0.7305209,{"description":3097,"labels":3098,"number":3105,"owner":3022,"repository":3023,"state":3106,"title":3107,"updated_at":3108,"url":3109,"score":3110},"### Discussed in https://github.com/nuxt-modules/i18n/discussions/2958\r\n\r\n\u003Cdiv type='discussions-op-text'>\r\n\r\n\u003Csup>Originally posted by **silgon** May 26, 2024\u003C/sup>\r\nI'm trying to build a multi-domain website. However, I want part of the languages to be on one site. I would like something like the following:\r\n\r\n```typescript\r\nexport default defineNuxtConfig({\r\n // ...\r\n\r\n i18n: {\r\n locales: [\r\n {\r\n code: 'en-US',\r\n domain: 'mydomain.com'\r\n },\r\n {\r\n code: 'es-MX',\r\n domain: 'mydomain.com/es-MX'\r\n },\r\n {\r\n code: 'ch-DE',\r\n domain: 'another-domain.ch'.\r\n },\r\n {\r\n code: 'ch-FR',\r\n domain: 'another-domain.ch/ch-FR'\r\n },\r\n ],\r\n differentDomains: true\r\n // Or enable the option in production only\r\n // differentDomains: (process.env.NODE_ENV === 'production')\r\n },\r\n\r\n // ...\r\n})\r\n```\r\n\r\nI hope that it's clear what I want to do given the configuration. My guidelines where the following link https://v8.i18n.nuxtjs.org/guide/different-domains\r\n\r\nCould somebody give me some guidance? I'm not able to do what I want. (also some insights in the sitemap with that kind of configuration would be cool, but not sure if this is the right place)\r\n\r\nWhen I'm in the same domain, the language does not change (I use the href configuration as specified in the documentation)\u003C/div>",[3099,3102],{"name":3100,"color":3101},"need more info","e295d6",{"name":3103,"color":3104},"scope: domains","fbca04",2979,"closed","Multi-Domain Website configuration with partial shared domains","2025-05-24T22:26:46Z","https://github.com/nuxt-modules/i18n/issues/2979",0.63873553,{"description":3112,"labels":3113,"number":3117,"owner":3022,"repository":3023,"state":3106,"title":3118,"updated_at":3119,"url":3120,"score":3121},"### Describe the feature\n\nI am not sure if this is already possible, but I can not seem to figure it out.\r\nFor my site I am using differentDomains: true\r\nFor SEO purposes, I would like the baseURL to change whenever I switch local (or domain) which it does not seem to be doing right now.\r\nI am using the SEO module and for that to work properly I need to set up [the site config](https://nuxtseo.com/site-config/integrations/i18n).\r\n\r\nThe site link will be automatically set to the baseURL of the i18n module.\r\n\r\nI am also not sure if this is i18n module or seo module issue.\n\n### Additional information\n\n- [ ] Would you be willing to help implement this feature?\n- [ ] Could this feature be implemented as a module?\n\n### Final checks\n\n- [X] Read the [contribution guide](https://nuxt.com/docs/community/contribution) (The contribution guideline of nuxt-modules/i18n is compliant with Nuxt too).\n- [X] Check existing [discussions](https://github.com/nuxt-modules/i18n/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[3114,3115,3116],{"name":3089,"color":3090},{"name":3100,"color":3101},{"name":3036,"color":3037},3053,"Change BaseURL when using different domains","2025-06-03T21:57:39Z","https://github.com/nuxt-modules/i18n/issues/3053",0.64866143,{"description":3123,"labels":3124,"number":3126,"owner":3022,"repository":3023,"state":3106,"title":3127,"updated_at":3128,"url":3129,"score":3130},"### Environment\n\n- Operating System: `Darwin`\n- Node Version: `v22.15.1`\n- Nuxt Version: `3.15.4`\n- CLI Version: `3.21.1`\n- Nitro Version: `2.10.4`\n- Package Manager: `pnpm@9.15.0`\n- Builder: `-`\n- User Config: `extends`, `devtools`, `imports`, `site`, `experimental`, `$production`, `srcDir`, `runtimeConfig`, `components`, `eslint`, `modules`, `reka`, `dayjs`, `icon`, `prepare`, `formkit`, `tailwindcss`, `image`, `i18n`, `statamic`, `multiTenancy`, `linkChecker`, `sitemap`, `robots`, `app`, `compatibilityDate`\n- Runtime Modules: `~/modules/nuxt-multi-tenancy`, `@nuxtjs/i18n@9.5.4`, `@nuxt/eslint@0.3.13`, `@formkit/nuxt@1.6.9`, `@vueuse/nuxt@12.5.0`, `dayjs-nuxt@2.1.11`, `nuxt-prepare@2.3.1`, `reka-ui/nuxt@2.2.1`\n- Build Modules: `-`\n\n### Reproduction\n\nCan't\n\n### Describe the bug\n\nI keep getting warnings for missing baseUrl, how can i fix this? everything seems to be working fine, both on local and production.\n\nIf i use differentDomains option, the warning goes away, but i get missing domain for locale errors.\n\n\u003Cimg width=\"954\" height=\"56\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/47081b37-65fa-4da6-ab5f-f7eb2a21addf\" />\n\n### Additional context\n\n```ts\n// nuxt.config.ts\n\nimport { domains } from \"./locale-domains.config\";\n\nexport default defineNuxtConfig({\n // I18N\n i18n: {\n // baseUrl: process.env.NUXT_PUBLIC_I18N_BASE_URL || process.env.NUXT_SITE_URL,\n strategy: \"prefix\",\n multiDomainLocales: true,\n detectBrowserLanguage: false,\n langDir: \"./../src/i18n/locales/\",\n vueI18n: \"./../src/i18n/config\",\n locales: [\n {\n code: \"nl\",\n files: [\"nl-NL.ts\"],\n language: \"nl-NL\",\n domains: [\n ...[domains.nl, domains.be, domains.youkids_nl, domains.youkids_be],\n ] as string[],\n defaultForDomains: [\n ...[domains.nl, domains.be, domains.youkids_nl, domains.youkids_be],\n ] as string[],\n name: \"Nederlands\",\n isCatchallLocale: true,\n },\n {\n code: \"en\",\n file: \"en-GB.ts\",\n language: \"en-GB\",\n domains: [\n ...[domains.uk, domains.nl, domains.youkids_uk, domains.youkids_nl],\n ] as string[],\n defaultForDomains: [\n ...[domains.uk, domains.youkids_uk],\n ] as string[],\n name: \"English\",\n },\n {\n code: \"fr\",\n file: \"fr-FR.ts\",\n language: \"fr-FR\",\n domains: [\n ...[domains.fr, domains.be, domains.youkids_fr, domains.youkids_be],\n ] as string[],\n defaultForDomains: [\n ...[domains.fr, domains.youkids_fr],\n ] as string[],\n name: \"Français\",\n },\n {\n code: \"de\",\n file: \"de-DE.ts\",\n language: \"de-DE\",\n domains: [\n ...[domains.de, domains.youkids_de],\n ] as string[],\n defaultForDomains: [\n ...[domains.de, domains.youkids_de],\n ] as string[],\n name: \"Deutsch\",\n },\n ],\n customRoutes: \"page\",\n },\n});\n```\n\n\n```ts\n// locale-domains.config.ts\nexport const domains: Record\u003Cstring, string | undefined> = {\n nl: process.env.DOMAIN_NL,\n be: process.env.DOMAIN_BE,\n fr: process.env.DOMAIN_FR,\n de: process.env.DOMAIN_DE,\n uk: process.env.DOMAIN_UK,\n youkids_nl: process.env.DOMAIN_YOUKIDS_NL,\n youkids_be: process.env.DOMAIN_YOUKIDS_BE,\n youkids_fr: process.env.DOMAIN_YOUKIDS_FR,\n youkids_de: process.env.DOMAIN_YOUKIDS_DE,\n youkids_en: process.env.DOMAIN_YOUKIDS_EN,\n} as const;\n\nexport const developmentDomains: Record\u003Cstring, string> = {\n nl: \"localhost:3000\",\n be: \"be.localhost:3000\",\n fr: \"fr.localhost:3000\",\n de: \"de.localhost:3000\",\n uk: \"uk.localhost:3000\",\n youkids_nl: \"nl.youkids.localhost:3000\",\n youkids_be: \"be.youkids.localhost:3000\",\n youkids_fr: \"fr.youkids.localhost:3000\",\n youkids_de: \"de.youkids.localhost:3000\",\n youkids_en: \"en.youkids.localhost:3000\",\n} as const;\n\nexport const i18nDomains = [domains.nl, domains.be, domains.fr, domains.de, domains.uk, domains.youkids_nl, domains.youkids_be, domains.youkids_fr, domains.youkids_de, domains.youkids_en] as string[];\nexport const developmentI18nDomains = [developmentDomains.nl, developmentDomains.be, developmentDomains.fr, developmentDomains.de, developmentDomains.uk, developmentDomains.youkids_nl, developmentDomains.youkids_be, developmentDomains.youkids_fr, developmentDomains.youkids_de, developmentDomains.youkids_en] as string[];\n```\n\n### Logs\n\n```shell\nWARN I18n baseUrl is required to generate valid SEO tag links.\n```",[3125],{"name":3019,"color":3020},3727,"Warn: I18n baseUrl is required to generate valid SEO tag links.","2025-07-20T20:16:57Z","https://github.com/nuxt-modules/i18n/issues/3727",0.66971564,["Reactive",3132],{},["Set"],["ShallowReactive",3135],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fNV2gaXQL36cEN0Vjw8wKgDlqusF2HIkJzke-Rt7iamc":-1},"/nuxt-modules/i18n/3635"]