i18next: handle JSON errors in translation files
Hi,
Thanks for this lib !
Is there a way to catch JSON typo client side ?
I mean, if i forget a coma, i18next will not parse the file, logical. I can see it using debug
loaded: locales/fr/translation.json
failed loading: locales/en/translation.json
Is there an init option to handle errors ?
Something like
{
debug:false,
onLoadError:function(err,file) {
}
}
Cheers
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 17 (14 by maintainers)
That’s it ! thanks