-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
resGetPath doesn't load json file #471
Comments
loading resources via xhr is not in the i18next core: see http://i18next.com/docs/#add-plugins for adding plugins details on needed xhr backend: https://github.com/i18next/i18next-xhr-backend |
Ok, I've tried to include the plugin by setting "backend" option but it doesn't work. :(
Sorry, I am not a js expert.
and
Thanks for your time |
No problem now. I figured it out to use
But I have to look into the code and the documentation doesn't even mention "i18nextXHRBackend" variable. Thanks |
will update readme to mention the object appended to window. |
First, this is my first time with i18next and I have no idea how to make it work. (it seems like the documentation http://i18next.com/docs/ is incomplete to me)
Here is my code
It works if I set and use the "resources" variable instead of resGetPath.
But when I purely use resGetPath, I got error "i18next::translator: missingKey en translation key key".
The json file is on "http://localhost:8090/locales/en/translation.json" and it's accessible via web browser.
Am I missing anything?
The text was updated successfully, but these errors were encountered: