\n 176 ┃ {{ item.label }}\n 177 ┃ \u003C/UButton>\n\n ⁃ at renderComponentSubTree (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:737:9) \n ⁃ at renderComponentVNode (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:686:12) \n ⁃ at ssrRenderComponent (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:100:10) \n ⁃ at _sfc_ssrRender (/project/layouts/default.vue:28:41) \n ⁃ at renderComponentSubTree (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:737:9) \n ⁃ at renderVNode (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:801:14) \n ⁃ at callWithNuxt (/project/node_modules/nuxt/dist/app/nuxt.js:225:24)\n\n[CAUSE]\nTypeError {\n message: '_ctx.$t is not a function',\n stack: '_ctx.$t is not a function\\n' +\n 'at _sfc_ssrRender (/project/components/Navigation.vue:175:15)\\n' +\n 'at renderComponentSubTree (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:737:9)\\n' +\n 'at renderComponentVNode (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:686:12)\\n' +\n 'at ssrRenderComponent (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:100:10)\\n' +\n 'at _sfc_ssrRender (/project/layouts/default.vue:28:41)\\n' +\n '...'\n}\n```\n\n\nHence I can't start the whole application.\n\nI tried to reproduce it in the stackblitz, but all works fine there. Maybe it has something to do with my envirnoment as I deleted all .nuxt files and also removed all node modules/reinstalled them\n\n\n### Additional context\n\n\nAlso I have a previous error which then causes the application to crash:\n```\n WARN [Vue warn]: Property \"$t\" was accessed during render but is not defined on instance. 14:28:44 \n at \u003CHeaderBar>\n at \u003CDefault ref=Ref\u003C undefined > >\n at \u003CAsyncComponentWrapper ref=Ref\u003C undefined > >\n at \u003CLayoutLoader key=\"default\" layoutProps={\n ref: RefImpl {\n dep: Dep {\n computed: undefined,\n version: 0,\n activeLink: undefined,\n subs: undefined,\n map: undefined,\n key: undefined,\n sc: 0,\n __v_skip: true,\n subsHead: undefined\n },\n __v_isRef: true,\n __v_isShallow: true,\n _rawValue: undefined,\n _value: undefined\n }\n } name=\"default\" >\n at \u003CNuxtLayoutProvider layoutProps={\n ref: RefImpl {\n dep: Dep {\n computed: undefined,\n version: 0,\n activeLink: undefined,\n subs: undefined,\n map: undefined,\n key: undefined,\n sc: 0,\n __v_skip: true,\n subsHead: undefined\n },\n __v_isRef: true,\n __v_isShallow: true,\n _rawValue: undefined,\n _value: undefined\n }\n } key=\"default\" name=\"default\" ... >\n at \u003CNuxtLayout>\n at \u003CError error=(0 , __vite_ssr_import_0__.getApps) is not a function\n\n at ensureAdminApp (/app/node_modules/vuefire/dist/server/index.mjs:36:41)\n at /app/node_modules/nuxt-vuefire/dist/runtime/admin/plugin.server.js:12:68\n at /app/node_modules/nuxt/dist/app/nuxt.js:156:60\n at fn (/app/node_modules/nuxt/dist/app/nuxt.js:233:44)\n at Object.callAsync (/app/node_modules/unctx/dist/index.mjs:68:55)\n at /app/node_modules/nuxt/dist/app/nuxt.js:236:56\n at Object.runWithContext (/app/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4002:18)\n at callWithNuxt (/app/node_modules/nuxt/dist/app/nuxt.js:236:24)\n at /app/node_modules/nuxt/dist/app/nuxt.js:55:41\n at EffectScope.run (/app/node_modules/@vue/reactivity/dist/reactivity.cjs.js:85:16) >\n at \u003CNuxtRoot>\n\n[nuxt-app] vue:error: 9.872ms 14:28:44 \n[nuxt-app] app:error: 0.022ms 14:28:44 \n[nitro-runtime] error: 0.571ms\n```\n\nWhen I remove nuxt-vuefire. It works again, no error on startup.\n\nWhen I downgrade to 9.5.6 for the i18n module, it works too even with nuxt-vuefire and even with it throwing an error directly\n\n### Logs\n\n```shell\n\n```",[3020],{"name":3021,"color":3022},"pending triage","c2e0c6",3755,"nuxt-modules","i18n","open","_ctx.$t is not a function","2025-07-23T13:58:47Z","https://github.com/nuxt-modules/i18n/issues/3755",0.7028562,{"description":3032,"labels":3033,"number":3038,"owner":3024,"repository":3025,"state":3026,"title":3039,"updated_at":3040,"url":3041,"score":3042},"### Environment\n\nnpx nuxi info\nWorking directory: C:/Users/senem/MEM22 nuxi 01:42:27\nNuxt project info: (copied to clipboard) nuxi 01:42:27\n\n------------------------------\n- Operating System: Windows_NT\n- Node Version: v20.19.4\n- Nuxt Version: 3.17.7\n- CLI Version: 3.26.2\n- Nitro Version: 2.12.3\n- Package Manager: npm@10.8.2\n- Builder: -\n- User Config: compatibilityDate, devtools, ssr, app, pages, modules, css, postcss, supabase, vite, sourcemap, routeRules, nitro, site, sitemap, plugins, headers, i18n\n- Runtime Modules: @nuxtjs/i18n@10.0.3, @nuxt/eslint@1.6.0, @nuxt/icon@1.15.0, @nuxt/image@1.10.0, @nuxtjs/tailwindcss@6.14.0, @nuxtjs/supabase@1.5.3, @nuxtjs/sitemap@7.4.3\n- Build Modules: -\n------------------------------\n\n👉 Report an issue: https://github.com/nuxt/nuxt/issues/new?template=bug-report.yml\n👉 Suggest an improvement: https://github.com/nuxt/nuxt/discussions/new\n👉 Read documentation: https://nuxt.com\n\n### Reproduction\n\nhttps://github.com/EnsMsgLu/nuxt-i18n-issue\n\n### Describe the bug\n\nit doesnt working with subdomains \n\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3034,3035],{"name":3021,"color":3022},{"name":3036,"color":3037},"need reproduction","CD234A",3767,"Its not working Home page on Subdomain","2025-07-31T10:28:33Z","https://github.com/nuxt-modules/i18n/issues/3767",0.7199781,{"description":3044,"labels":3045,"number":3047,"owner":3024,"repository":3025,"state":3026,"title":3048,"updated_at":3049,"url":3050,"score":3051},"### Environment\n\n- Operating System: Windows_NT\n- Node Version: v23.10.0\n- Nuxt Version: 3.17.4\n- CLI Version: 3.25.1\n- Nitro Version: 2.11.12\n- Package Manager: pnpm@8.15.9\n- Builder: -\n- User Config: devtools, modules, i18n, compatibilityDate\n- Runtime Modules: @nuxtjs/i18n@9.5.5\n- Build Modules: -\n\n### Reproduction\n\nhttps://github.com/warflash/nuxt-i18n-rolldown\n\n### Describe the bug\n\nBuilds are failing\n\n### Additional context\n\n[Rolldown vite was just announced as technical preview,](https://voidzero.dev/posts/announcing-rolldown-vite) so I wanted to jump in and test against our project. Dev works well, builds seem to fail, also on the i18n starter with the override applied.\n\nGiven that vite-rolldown aims to be a drop in replacement it might just need time for the vite team to iron out the cause of this bug. Just wanted to raise the issue in case it's some internal tooling in the i18n project that won't be compatible with vite in the future.\n\n### Logs\n\n```shell\n> nuxt build\n\n[nuxi 21:06:47] Nuxt 3.17.4 with Nitro 2.11.12\n\n[@nuxtjs/i18n 21:06:48] WARN bundle.optimizeTranslationDirective is enabled by default, we recommend disabling this feature as it causes issues and will be deprecated in v10.\nExplicitly setting this option to true or false disables this warning, for more details see: https://github.com/nuxt-modules/i18n/issues/3238#issuecomment-2672492536\n\n[nuxi 21:06:48] ℹ Building for Nitro preset: node-server\n[21:06:51] ℹ Building client...\n\n[21:06:51] WARN You have set optimizeDeps.esbuildOptions but this options is now deprecated. Vite now uses Rolldown to optimize the dependencies. Please use optimizeDeps.rollupOptions instead.\n\n[21:06:51] ℹ rolldown-vite v6.3.14 building for production...\n[21:06:52] ℹ ✓ 181 modules transformed.\n\n[21:06:52] ERROR ✗ Build failed in 531ms\n\n\n[nuxi 21:06:52] ERROR Nuxt Build Error: Build failed with 3 errors:\n\n[PARSE_ERROR] Error: Unexpected token\n ╭─[ i18n/locales/en.json:1:1 ]\n │\n 1 │ const resource = {\n │ ──┬── \n │ ╰──── \n───╯\n\n[PARSE_ERROR] Error: Unexpected token\n ╭─[ i18n/locales/nl.json:1:1 ]\n │\n 1 │ const resource = {\n │ ──┬── \n │ ╰──── \n───╯\n\n[PARSE_ERROR] Error: Unexpected token\n ╭─[ i18n/locales/ja.json:1:1 ]\n │\n 1 │ const resource = {\n │ ──┬── \n │ ╰──── \n───╯\n\n\n at normalizeErrors (/project/node_modules/.pnpm/rolldown@1.0.0-beta.10-commit.ac4e5db/node_modules/rolldown/dist/shared/src-r81e2JxS.mjs:2195:18)\n at handleOutputErrors (/project/node_modules/.pnpm/rolldown@1.0.0-beta.10-commit.ac4e5db/node_modules/rolldown/dist/shared/src-r81e2JxS.mjs:3125:34)\n at transformToRollupOutput (/project/node_modules/.pnpm/rolldown@1.0.0-beta.10-commit.ac4e5db/node_modules/rolldown/dist/shared/src-r81e2JxS.mjs:3119:2)\n at RolldownBuild.write (/project/node_modules/.pnpm/rolldown@1.0.0-beta.10-commit.ac4e5db/node_modules/rolldown/dist/shared/src-r81e2JxS.mjs:4269:10)\n at async buildEnvironment (/project/node_modules/.pnpm/rolldown-vite@6.3.14_esbuild@0.25.5_jiti@2.4.2/node_modules/rolldown-vite/dist/node/chunks/dep-C0xpd56d.js:44464:16)\n at async buildClient (/project/node_modules/.pnpm/@nuxt+vite-builder@3.17.4_eslint@9.27.0_rollup@4.41.1_typescript@5.8.3_vue@3.5.16/node_modules/@nuxt/vite-builder/dist/shared/vite-builder.DNPjFC0L.mjs:765:5)\n at async bundle (/project/node_modules/.pnpm/@nuxt+vite-builder@3.17.4_eslint@9.27.0_rollup@4.41.1_typescript@5.8.3_vue@3.5.16/node_modules/@nuxt/vite-builder/dist/shared/vite-builder.DNPjFC0L.mjs:1527:3)\n at async bundle (/project/node_modules/.pnpm/nuxt@3.17.4_eslint@9.27.0_rolldown-vite@6.3.14_rollup@4.41.1_typescript@5.8.3/node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7387:5)\n at async build (/project/node_modules/.pnpm/nuxt@3.17.4_eslint@9.27.0_rolldown-vite@6.3.14_rollup@4.41.1_typescript@5.8.3/node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7247:3)\n at async Object.run (/project/node_modules/.pnpm/@nuxt+cli@3.25.1/node_modules/@nuxt/cli/dist/chunks/build.mjs:74:5)\n```",[3046],{"name":3021,"color":3022},3659,"Builds with rolldown-vite + nuxt i18n fail","2025-05-30T19:14:35Z","https://github.com/nuxt-modules/i18n/issues/3659",0.7214663,{"description":3053,"labels":3054,"number":3056,"owner":3024,"repository":3025,"state":3026,"title":3057,"updated_at":3058,"url":3059,"score":3060},"### Environment\n\n------------------------------\n- Operating System: Windows_NT\n- Node Version: v19.9.0\n- Nuxt Version: 3.17.3\n- CLI Version: 3.25.1\n- Nitro Version: 2.11.12\n- Package Manager: npm@9.6.3\n- Builder: -\n- User Config: modules, i18n, tailwindcss, css, plugins, devtools, compatibilityDate, runtimeConfig, vite, nitro\n- Runtime Modules: @geeks.solutions/nuxt-sections@3.0.1, @nuxt/image@1.10.0, @nuxtjs/i18n@9.5.4, @nuxtjs/tailwindcss@6.14.0, nuxt-lazytube@0.2.2, nuxt3-leaflet@1.0.13, @pinia/nuxt@0.11.0\n- Build Modules: -\n------------------------------\n\n\n### Reproduction\n\n* nuxt.config.ts\n\n```ts\nexport default defineNuxtConfig({\n ...(process.env.NODE_ENV === 'development' && {\n devServer: {\n https: {},\n host: '0.0.0.0',\n port: 443,\n }\n }),\n modules: [\n \"@geeks.solutions/nuxt-sections\",\n \"@nuxt/image\",\n \"@nuxtjs/i18n\",\n \"@nuxtjs/tailwindcss\",\n \"nuxt-lazytube\",\n \"nuxt3-leaflet\",\n \"@pinia/nuxt\"\n ],\n i18n: {\n detectBrowserLanguage: false,\n defaultLocale: \"en\",\n locales: [\n {\n name: \"French\",\n code: \"fr\",\n iso: \"fr\",\n file: \"fr.js\"\n },\n {\n name: \"English\",\n code: \"en\",\n iso: \"en\",\n file: \"en.js\"\n }\n ],\n langDir: \"lang/\",\n experimental: {\n localeDetector: 'localeDetector.ts'\n }\n },\n tailwindcss: {\n\n },\n css: [\n '~/assets/css/default.css'\n ],\n plugins: [\n '~/plugins/vue-dragscroll.js'\n ],\n devtools: { enabled: true },\n compatibilityDate: '2025-05-13',\n vite: {\n optimizeDeps: {\n include: ['quill', '@devdcodes9/quill-emojijs', 'quill-table-ui'],\n }\n },\n nitro: {\n compressPublicAssets: {\n gzip: true,\n brotli: true\n }\n }\n})\n```\n\n* localeDetector.ts inside i18n directory\n\n```ts\nconsole.log(\"Detector file loaded\")\n\n// Detect based on query, cookie, header\nexport default defineI18nLocaleDetector((event, config) => {\n\n console.log(\"Event\", event)\n\n // try to get locale from query\n const query = tryQueryLocale(event, { lang: '' }) // disable locale default value with `lang` option\n if (query) {\n return query.toString()\n }\n\n // try to get locale from cookie\n const cookie = tryCookieLocale(event, { lang: '', name: 'i18n_redirected' }) // disable locale default value with `lang` option\n if (cookie) {\n return cookie.toString()\n }\n\n // try to get locale from header (`accept-header`)\n const header = tryHeaderLocale(event, { lang: '' }) // disable locale default value with `lang` option\n if (header) {\n return header.toString()\n }\n\n // If the locale cannot be resolved up to this point, it is resolved with the value `defaultLocale` of the locale config passed to the function\n return config.defaultLocale\n})\n```\n\n* nuxi prepare\n* nuxi dev\n\n### Describe the bug\n\nI am trying to use the experimental localeDetector feature.\nThe localeDetector file is loaded and confirmed by having `Detector file loaded` logged on the server console.\n\nThe problem I am facing is that defineI18nLocaleDetector is never called and no Event is logged.\nAm I missing something ?\n\n### Additional context\n\nIn the documentation I saw that the local detector function is called per request on the server, so why the code inside the defineI18nLocaleDetector is never reached\n\n### Logs\n\n```shell\nNo errors logged at all\n```",[3055],{"name":3021,"color":3022},3651,"Code inside defineI18nLocaleDetector is not reached","2025-05-29T06:34:13Z","https://github.com/nuxt-modules/i18n/issues/3651",0.746274,{"description":3062,"labels":3063,"number":3065,"owner":3024,"repository":3025,"state":3066,"title":3067,"updated_at":3068,"url":3069,"score":3070},"### Environment\n\n**Module version:** \n`@nuxtjs/i18n` version: `^9.4.0`\n\n**Nuxt version:** \n`Nuxt 3.16.2`\n\n### ❗ Problem\n\nAfter building CI/CD pipeline of project, the generated `nuxt.i18n.options.mjs` includes **absolute paths** to the locale files, for example:\n\n```js\n{\n path: \"/home/gitlab-runner/builds/QEWN8sP-g/0/client/i18n/locales/ru/errors.json\",\n cache: undefined\n}\n```\n\n### Reproduction\n\nConfigure @nuxtjs/i18n in nuxt.config.ts:\n\n```\ni18n: {\n locales: [\n { code: 'ru', file: 'ru/errors.json' },\n { code: 'ro', file: 'ro/errors.json' },\n ],\n langDir: 'i18n/locales/',\n defaultLocale: 'ru',\n}\n```\n\nRun nuxt build\n\nInspect the contents of .output/public/_nuxt/ or nuxt.i18n.options.mjs\n\nNotice absolute paths included in the files array\n\n💡 Workarounds tried\n\n✅ fullInstall: false → no effect\n\n✅ Using relative langDir and file values → still resolves to absolute paths\n\n✅ Changing build environment → problem persists\n\n### Describe the bug\n\nPlease avoid emitting absolute file paths into the build output. Relative or virtualized paths would ensure cleaner builds, better security, and fewer environment-specific artifacts.\n\nLet me know if you need a minimal reproduction repo or additional logs.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3064],{"name":3021,"color":3022},3742,"closed","Absolute file paths included in production bundle","2025-07-21T08:55:25Z","https://github.com/nuxt-modules/i18n/issues/3742",0.7103387,{"description":3072,"labels":3073,"number":3078,"owner":3024,"repository":3025,"state":3066,"title":3079,"updated_at":3080,"url":3081,"score":3082},"### Environment\n\n- Operating System: `Darwin`\n- Node Version: `v22.14.0`\n- Nuxt Version: `4.0.1`\n- CLI Version: `3.26.4`\n- Nitro Version: `2.12.4`\n- Package Manager: `pnpm@10.12.4`\n- Builder: `-`\n- User Config: `compatibilityDate`, `devtools`, `modules`, `i18n`\n- Runtime Modules: `@nuxt/scripts@0.11.10`, `@nuxt/test-utils@3.19.2`, `@nuxtjs/i18n@10.0.2`\n- Build Modules: `-`\n\n\n### Reproduction\n\n修改多语言热更新报错,\n\n\u003Cimg width=\"3318\" height=\"334\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ba25f21a-3216-4066-9e49-269efad06425\" />\n\n\u003Cimg width=\"1436\" height=\"474\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/378d9d5d-c5ae-48e5-a3b5-da94d168e206\" />\n\n### Describe the bug\n\n修改多语言热更新报错,\n\n\u003Cimg width=\"3318\" height=\"334\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ba25f21a-3216-4066-9e49-269efad06425\" />\n\n\u003Cimg width=\"1436\" height=\"474\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/378d9d5d-c5ae-48e5-a3b5-da94d168e206\" />\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3074,3077],{"name":3075,"color":3076},"upstream","fbca04",{"name":3036,"color":3037},3753,"在 nuxt4.0.2 里使用 \"@nuxtjs/i18n\": \"^10.0.2\" 热更新报错","2025-07-24T09:13:52Z","https://github.com/nuxt-modules/i18n/issues/3753",0.7166843,{"description":3084,"labels":3085,"number":3092,"owner":3024,"repository":3025,"state":3066,"title":3093,"updated_at":3094,"url":3095,"score":3096},"### 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```",[3086,3089],{"name":3087,"color":3088},"🍰 p2-nice-to-have","0e8a16",{"name":3090,"color":3091},"scope: components","B327C3",3402,"Double nested `NuxtLinkLocale`","2025-05-30T19:25:27Z","https://github.com/nuxt-modules/i18n/issues/3402",0.7200316,{"description":3098,"labels":3099,"number":3101,"owner":3024,"repository":3025,"state":3066,"title":3102,"updated_at":3103,"url":3104,"score":3105},"### Describe the feature\n\nNuxt 4 moved almost all folders into the app dir.\nWhen adding i18n I would expect the folder to be there as well.\n\nTo manually do this for nuxt4 change the restructureDir:\n```\nexport default defineNuxtConfig({\n i18n: {\n restructureDir: 'app/i18n',\n }\n});\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).",[3100],{"name":3021,"color":3022},3764,"[Feature Request] Change default i18n dir location for Nuxt 4","2025-07-30T07:56:53Z","https://github.com/nuxt-modules/i18n/issues/3764",0.7243678,{"description":3107,"labels":3108,"number":3110,"owner":3024,"repository":3025,"state":3066,"title":3111,"updated_at":3112,"url":3113,"score":3114},"### Environment\n\n``` \n- Operating System: Linux\n- Node Version: v20.19.2\n- Nuxt Version: 3.17.3\n- CLI Version: 3.25.1\n- Nitro Version: 2.11.12\n- Package Manager: pnpm@9.9.0\n- Builder: -\n- User Config: -\n- Runtime Modules: -\n- Build Modules: -\n```\n\n### Reproduction\n\nThe codebase is in a **monorepo** structured as:\n\n```\n/\n├── backend/\n├── frontend/\n│ ├── nuxt.config.ts\n│ ├── app/i18n/locales/fr-CH.ts\n```\n\nThe `docker-compose.yml` mounts the frontend code like so:\n\n```yaml\nservices:\n frontend:\n build:\n context: ./frontend\n volumes:\n - ./frontend:/app\n```\n\nThe `Dockerfile` for the frontend uses:\n\n```dockerfile\nWORKDIR /app\n```\n\nIn `nuxt.config.ts`, the following i18n configuration is used:\n\n```ts\ni18n: {\n langDir: 'app/i18n/locales',\n locales: [\n { code: 'fr-CH', file: 'fr-CH.ts' }\n ],\n defaultLocale: 'fr-CH',\n lazy: true\n}\n```\n\nBecause of the `WORKDIR /app` and the volume mount, the file is located at:\n\n```\n/app/app/i18n/locales/fr-CH.ts\n```\n\nHowever, Nuxt i18n tries to resolve it as:\n\n```\n/app/i18n/locales/fr-CH.ts\n```\n\nWhich results in:\n\n```\nCannot restart nuxt: ENOENT: no such file or directory, open '/app/i18n/locales/fr-CH.ts'\n```\n\n### Describe the bug\n\nWhen using Docker with `WORKDIR /app` and mounting the local folder to `/app`, Nuxt resolves `langDir` relative to the container's CWD (`/app`), but does not account for the case where code is in a subfolder inside that mount.\n\nIf your file is located at `/app/app/i18n/locales/fr-CH.ts`, and you set:\n\n```ts\ni18n: {\n langDir: 'i18n/locales',\n locales: [{ code: 'fr-CH', file: 'fr-CH.ts' }],\n defaultLocale: 'fr-CH',\n lazy: true\n}\n```\n\nThen Nuxt throws:\n\n```\nCannot restart nuxt: ENOENT: no such file or directory, open '/app/i18n/locales/fr-CH.ts'\n```\n\nEven though the actual file is present at `/app/app/i18n/locales/fr-CH.ts`.\n\n### Additional context\n\n**Additional context**\n\n**Root cause:** path resolution is based on `process.cwd()` in the container (Docker `WORKDIR`) and doesn't match the actual file location when mounted.\n\n**Workaround:** use a different `WORKDIR` (e.g. `/nuxt`) and adjust the volume mount accordingly:\n\n```dockerfile\n# Dockerfile\nWORKDIR /nuxt\n```\n\n```yaml\n# docker-compose.yml\nvolumes:\n - ./frontend:/nuxt\n```\n\nThis fixes the issue and resolves the path as expected.\n\n---\n\n### Logs\n\n```shell\nCannot restart nuxt: ENOENT: no such file or directory, open '/app/i18n/locales/fr-CH.ts'\n\n at readFileSync (node:fs:449:20)\n at getLocaleType (node_modules/@nuxtjs/i18n/dist/module.mjs:201:34)\n at resolveLocales (node_modules/@nuxtjs/i18n/dist/module.mjs:181:20)\n```",[3109],{"name":3021,"color":3022},3620,"Incorrect `langDir` resolution when using Docker with WORKDIR set to `/app`","2025-05-19T07:09:08Z","https://github.com/nuxt-modules/i18n/issues/3620",0.7271687,{"description":3116,"labels":3117,"number":3119,"owner":3024,"repository":3025,"state":3066,"title":3120,"updated_at":3121,"url":3122,"score":3123},"### Environment\r\n\r\nOperating System: Windows 11\r\n\r\nPackages:\r\n@esbuild/linux-x64@0.23.1 extraneous\r\n@nuxtjs/i18n@8.5.2\r\n@parcel/watcher-linux-x64-glibc@2.4.1 extraneous\r\n@parcel/watcher-linux-x64-musl@2.4.1 extraneous\r\n@rollup/rollup-linux-x64-gnu@4.21.2 extraneous\r\n@rollup/rollup-linux-x64-musl@4.21.2 extraneous\r\nnode-addon-api@7.1.1 extraneous\r\nnuxt-typed-router@3.6.5\r\nnuxt@3.13.\r\n\r\nPackage Manager: npm\r\n\r\n### Reproduction\r\n\r\n1. Install nuxt-typed-router\r\n2. Install @nuxtjs/i18n\r\n3. Set strategy for @nuxtjs/i18n in nuxt.config.ts to 'prefix'\r\n4. Get [unhandledRejection] Declaration or statement expected during build\r\n\r\nhttps://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-qm6vpw?file=package.json,nuxt.config.ts,i18n.config.ts\r\n\r\n### Describe the bug\r\n\r\nWhen both I18n and nuxt-typed-router are installed and strategy for I18n is set to \"prefix\", the nuxt-typed-router throws this exception: \r\n\r\n[unhandledRejection] Declaration or statement expected. (128:8) \r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[3118],{"name":3021,"color":3022},3091,"[unhandledRejection] Declaration or statement expected - @nuxt/i18n + nuxt-typed-router","2025-05-16T12:00:31Z","https://github.com/nuxt-modules/i18n/issues/3091",0.7324136,["Reactive",3125],{},["Set"],["ShallowReactive",3128],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fnsIltmKkRhalgQkI6Meq0QGXubR4EthNhfm5DbE-8Dw":-1},"/nuxt-modules/i18n/3210"]