-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
lazy load not runs #2171
Comments
for more information We are using srcDir : 'src/', |
still waiting |
Thank you for your reporting! However, We could not reproduce this issue... nuxt i18n issue guideline says:
Could you give us your minimal reproduction env please? |
https://stackblitz.com/edit/nuxt-starter-xqe68x When i run this code with npm run dev, dont appear en.json in network tab in dev tools. But if i compile with npm run build and node start, en.json appear in network tab in dev tools (lazy load not runs) |
related issue #2192 |
any solution? |
with beta 13 dont runts :( |
Sorry for the late reply. BTW, your reproduction has the Thanks! |
Environment
Linux
v18.16.0
3.5.3
2.4.1
npm@9.5.1
vite
-
-
-
Reproduction
Our nuxt.config.ts config:
i18n : { defaultLocale : process.env.NUXT_PUBLIC_LANG, locales: [ {code : 'cs', file: 'cs.json'}, {code : 'da', file: 'da.json'}, {code : 'de', file: 'de.json'}, {code : 'en', file: 'en.json'}, {code : 'es', file: 'es.json'}, {code : 'fr', file: 'fr.json'}, {code : 'it', file: 'it.json'}, {code : 'nl', file: 'nl.json'}, {code : 'pl', file: 'pl.json'}, {code : 'pt', file: 'pt.json'} ], langDir : 'locales/', lazy : true },
our lang filesystem
All lang files are loaded :(
Describe the bug
Our nuxt.config.ts config:
i18n : { defaultLocale : process.env.NUXT_PUBLIC_LANG, locales: [ {code : 'cs', file: 'cs.json'}, {code : 'da', file: 'da.json'}, {code : 'de', file: 'de.json'}, {code : 'en', file: 'en.json'}, {code : 'es', file: 'es.json'}, {code : 'fr', file: 'fr.json'}, {code : 'it', file: 'it.json'}, {code : 'nl', file: 'nl.json'}, {code : 'pl', file: 'pl.json'}, {code : 'pt', file: 'pt.json'} ], langDir : 'locales/', lazy : true },
our lang filesystem
All lang files are loaded :(
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: