i18n-node
i18n-node copied to clipboard
Handle invalid JSON error better
Currently, when there's an error in the JSON (e.g. a comma too many), the i18n module fails with the following error:
TypeError: Cannot read property 'hasOwnProperty' of undefined
at ../node_modules/i18n/i18n.js:478:37
Could you implement a check for invalid JSON / object and fail with a more descriptive error?