We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
//translation.json "parent": { "child1": "foo", "child2": "bar" } //app.js i18next.t('parent'); //Produces: TypeError: Object #<Object> has no method 'indexOf'
It should fail silently, as it does if you access a full non-existant path, e.g. i18next.t('parent.foo')
The text was updated successfully, but these errors were encountered:
Actually the full non-existent path will create the requested path if you set the addMissing option.
I didn't set this to fail silently as it's wrong to access a path that don't return a string (container object like parent in your sample).
I will change this to output an errormessage instead of a regular translation.
Sorry, something went wrong.
v1.3.0 will stop throwing this error and instead return an error message.
if you set option.debug to true you can see info and errors in console.log.
No branches or pull requests
It should fail silently, as it does if you access a full non-existant path, e.g. i18next.t('parent.foo')
The text was updated successfully, but these errors were encountered: