i18next::backendConnector fails to parse url #2247
Closed
AndonMitev
started this conversation in
General
Replies: 2 comments 11 replies
-
You should not initialize i18next yourself in the config file, if you use next-i18next... have a look at: https://github.com/i18next/i18next-http-backend/blob/master/example/next/next-i18next.config.js |
Beta Was this translation helpful? Give feedback.
11 replies
-
Thanks @adrai ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i do have following structure:
and my i18n config looks like:
The error that i'm facing tho is:
i18next::backendConnector: loading namespace translation for language ja failed TypeError: Failed to parse URL from /locales/ja/translation.json
No idea why is happening is it some race condition or so. JSON file is valid also checked network tab
using
[email protected]
if that matter.Additional: I've started noticing this behaviour when i had to translate constant files and not react components. They are translated successfully but still manage to see this error:
I can see that is trying to load the language before being initialized but i assume that expected in order to be iniitialized. This is how translations are loaded in constant files:
i dont think there is something suspicious here but no idea why this initial loading is failing :X
Beta Was this translation helpful? Give feedback.
All reactions