claudetech / node-static-i18n

HTML static pages i18n tool
https://www.npmjs.com/package/static-i18n
MIT License
104 stars 21 forks source link

Add the locale inside the error message #35

Closed dhoko closed 4 years ago

dhoko commented 4 years ago

:wave: there is an issue with the errors.

The current error message when a parsing fails doesn't give you enough informations. Ex: for a merge issue inside a JSON (we have 10s locales):

Unexpected token < in JSON at position 318

With the fix you have the locale: Screenshot from 2020-02-17 16-04-20

danhper commented 4 years ago

Thanks a lot, just published a new version.