-
Notifications
You must be signed in to change notification settings - Fork 467
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
defineI18nLocale is not defined #1954
Comments
So, I find it in edge version. I think it's worth mentioning somewhere in the documentation |
I have the same problem than you with @nuxtjs/i18n@8.0.0-beta.10 When I try to use defineI18nLocale like this in langs/en-GB.js
throws the error Failed locale loading: defineI18nLocale is not defined. when i try to do this:
or this
throws another error: PD: {{my api url}} is a right url. |
@IvanWala use this variant of installation |
Thanks @Eddie344. I removed "next" and added "edge", Now the problem is different when i use this inside langs/en-GB.js it return an empty object
But if you access to the langs by browser url the json is correct. |
Docs said:
https://v8.i18n.nuxtjs.org/guide/lazy-load-translations You need return the object. Thanks. |
Why is this closed? I still have that error message. From where do I import defineI18nLocale ? |
Do |
import { defineI18nLocale } from '#imports' |
Environment
Darwin
v16.17.1
3.3.2
2.3.2
yarn@1.22.19
vite
modules
@nuxtjs/i18n@8.0.0-beta.10
-
Reproduction
stackblitz.com
Describe the bug
After installing module and configure for work with lazy loaded messages, I have an error message:
Failed locale loading: defineI18nLocale is not defined
I check a dist folder in node_modules, there is no
defineI18nLocale
function export indist/runtime/composables.mjs
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: