Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't lazyload file with relative path #1834

Closed
existe-deja opened this issue Feb 1, 2023 · 0 comments · Fixed by #1846
Closed

Can't lazyload file with relative path #1834

existe-deja opened this issue Feb 1, 2023 · 0 comments · Fixed by #1846

Comments

@existe-deja
Copy link

existe-deja commented Feb 1, 2023

Environment

- Operating System: `Linux`
- Node Version:     `v18.13.0`
- Nuxt Version:     `3.1.1`
- Nitro Version:    `1.0.0`
- Package Manager:  `[email protected]`
- Builder:          `vite`
- User Config:      `runtimeConfig`, `app`, `router`, `modules`, `i18n`, `twicpics`, `serverHandlers`, `devServerHandlers`, `devServer`, `typescript`, `bridge`, `buildModules`
- Runtime Modules:  `@nuxtjs/[email protected]`, `@nuxtjs/[email protected]`, `@twicpics/components/[email protected]`, `@nuxt/[email protected]`
- Build Modules:    `()`, `@nuxt/[email protected]`

Reproduction

https://stackblitz.com/edit/github-uvpytg?file=nuxt.config.ts

Describe the bug

With the lazy option activated, I can't use a relative path in the locale file entry. It will only look for a file at the root of the langDir folder.

Additional context

It's a future proof approach to organize the translated content with folder names based on locale code. This way it's simpler to interact with software systems especially when you add or remove a language, or add a new translated file.

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants