\n\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3058,3059],{"name":3009,"color":3010},{"name":3060,"color":3061},"need reproduction","CD234A",3271,"[WebStorm] Type error '__VLS_ctx.$t' is of type 'unknown'.","2025-07-04T14:54:08Z","https://github.com/nuxt-modules/i18n/issues/3271",0.7196862,{"description":3068,"labels":3069,"number":3071,"owner":3012,"repository":3013,"state":3014,"title":3072,"updated_at":3073,"url":3074,"score":3075},"### Describe the feature\n\n#### Background\n\nThe `nuxt-i18n` module provides a `strategy` option with the following values:\n\n* `no_prefix`\n* `prefix_except_default`\n* `prefix`\n* `prefix_and_default`\n\nref: https://i18n.nuxtjs.org/docs/guide\n\nThe `no_prefix` strategy disables the use of locale prefixes (e.g., `/en`, `/ja`) in the URL.\n\nAdditionally, `nuxt-i18n` has a feature that automatically detects the locale based on the URL. For example, accessing a URL like `/en/*` will switch the locale to `en`.\n\nHowever, when the `no_prefix` strategy is used, this automatic locale detection based on the pathname is disabled, as the pathname does not contain locale information.\nref: https://github.com/nuxt-modules/i18n/blob/25b900a9f5d509ac1081716a3a7d5c1d22edbd71/src/runtime/utils.ts#L247-L249\n\nThis behavior seems logical given the absence of locale information in the URL. However, it causes issues when building multilingual documentation sites using `nuxt/content`.\n\n##### Example Use Case:\n\nSuppose we have the following markdown files for multilingual content:\n\n* `docs/en/about.md`\n* `docs/ja/about.md`\n\nIn this case, we want to access `/en/about` and `/ja/about` to display the corresponding localized content. However, since the locale detection from pathname is disabled with `no_prefix`, the locale is not correctly detected based on the URL.\n\nAs a result, during SSG (Static Site Generation), both `/en/about` and `/ja/about` will be generated using the language setting of the build machine, causing incorrect locale assignments.\n\ne.g. https://github.com/odan-sandbox/nuxt-content-and-i18n-no_prefix-example\n\n| http://localhost:3000/en/about | http://localhost:3000/ja/about |\n|-|-|\n|\u003Cimg width=\"335\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/140618e5-a2cd-46cb-8678-bd615b02bfa1\" />|\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).",[3070],{"name":3009,"color":3010},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.7225072,{"description":3077,"labels":3078,"number":3080,"owner":3012,"repository":3013,"state":3081,"title":3082,"updated_at":3083,"url":3084,"score":3085},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v20.14.0\r\n- Nuxt Version: 3.12.4\r\n- CLI Version: 3.12.0\r\n- Nitro Version: 2.9.7\r\n- Package Manager: yarn@1.22.22\r\n- Builder: -\r\n- User Config: ssr, compatibilityDate, devtools, modules, components, runtimeConfig, site, ogImage, i18n, tailwindcss, sitemap, content, gtag, cookieControl\r\n- Runtime Modules: @nuxtjs/i18n@8.3.3, @nuxtjs/tailwindcss@6.12.1, @nuxtjs/seo@2.0.0-rc.16, @nuxt/content@2.13.2, @nuxthq/studio@2.0.3, nuxt-gtag@2.1.0, @dargmuesli/nuxt-cookie-control@8.4.7\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nwww.vinoteqa.com/blog\n\n### Describe the bug\n\nWhen I try to visit a page, other than the root, I get redirected to the localized url but still get a error. As soon as I reload the page, it is displayed correctly. \r\n\r\nTry it at: www.vinoteqa.com/blog\r\n\r\nAm I missing some configuration?\n\n### Additional context\n\n```ts\r\n i18n: {\r\n defaultLocale: 'en',\r\n locales: [{\r\n code: 'en',\r\n iso: 'en',\r\n name: 'English',\r\n file: 'en.json',\r\n },\r\n {\r\n code: 'de',\r\n iso: 'de',\r\n name: 'Deutsch',\r\n file: 'de.json',\r\n },\r\n {\r\n code: 'it', \r\n iso: 'it',\r\n name: 'Italiano',\r\n file: 'it.json',\r\n }],\r\n strategy: 'prefix',\r\n lazy: false,\r\n langDir: 'locales/',\r\n },\r\n ```\r\n \r\n \n\n### Logs\n\n_No response_",[3079],{"name":3009,"color":3010},3062,"closed","404 on all pages other than root with `prefix` strategy","2025-05-21T19:36:56Z","https://github.com/nuxt-modules/i18n/issues/3062",0.68581766,{"description":3087,"labels":3088,"number":3095,"owner":3012,"repository":3013,"state":3081,"title":3096,"updated_at":3097,"url":3098,"score":3099},"### Environment\n\n------------------------------\n- Operating System: Darwin\n- Node Version: v20.18.0\n- Nuxt Version: 3.16.0\n- CLI Version: 3.22.5\n- Nitro Version: 2.11.6\n- Package Manager: pnpm@9.12.2\n- Builder: -\n- User Config: modules, devtools, app, css, runtimeConfig, future, compatibilityDate, vite, postcss, eslint, i18n, image, prismic\n- Runtime Modules: @nuxt/eslint@1.2.0, @nuxtjs/prismic@4.1.0, @nuxt/fonts@0.11.0, @nuxtjs/i18n@9.3.1, @nuxt/image@1.9.0, @vueuse/nuxt@13.0.0\n- Build Modules: -\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-w8n5eqto?file=pages%2Findex.vue\n\n### Describe the bug\n\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3089,3092],{"name":3090,"color":3091},"🍰 p2-nice-to-have","0e8a16",{"name":3093,"color":3094},"scope: components","B327C3",3402,"Double nested `NuxtLinkLocale`","2025-05-30T19:25:27Z","https://github.com/nuxt-modules/i18n/issues/3402",0.6910756,{"description":3101,"labels":3102,"number":3106,"owner":3012,"repository":3013,"state":3081,"title":3107,"updated_at":3108,"url":3109,"score":3110},"### Environment\r\n\r\n------------------------------\r\n- Operating System: Windows_NT\r\n- Node Version: v20.11.0 \r\n- Nuxt Version: 3.12.4 \r\n- CLI Version: 3.12.0 \r\n- Nitro Version: 2.9.7 \r\n- Package Manager: pnpm@9.3.0\r\n- Builder: -\r\n- User Config: -\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-ktvmyt?file=nuxt.config.ts,node_m%2Fmod.ts,node_m%2Fpages%2Ftest.vue,app.vue\r\n\r\n### Describe the bug\r\n\r\nHey :wave: \r\n\r\nTHe bug is that pages added through `pages:extend` hook in modules are not correctly localized by nuxt i18n with the prefix strategy. We only get the page localized for one lang + the name insn't localized either.\r\n\r\nYou can see theses info in the devtools\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[3103],{"name":3104,"color":3105},"upstream","fbca04",3086,"pages are not localized when using `pages:extends` with prefix strategy","2025-06-08T16:43:41Z","https://github.com/nuxt-modules/i18n/issues/3086",0.69239485,["Reactive",3112],{},["Set"],["ShallowReactive",3115],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fmvBcnUTQa9S0RPUvuogErJdAydaDvvuLe-0hPZtPN0s":-1},"/nuxt-modules/i18n/3598"]