i18n-node icon indicating copy to clipboard operation
i18n-node copied to clipboard

Feature Request: Check JSON validity on start

Open jmfadeley opened this issue 6 years ago • 3 comments

Just started using i18n for a project and was scratching my head for a while as to why the json file I provided kept getting wiped out. I later discovered I accidentally put a comma where I shouldn't have. Would it be possible to have i18n check a loaded file's validity and just throw an error if it's not proper json instead of replacing everything?

jmfadeley avatar Jul 17 '18 20:07 jmfadeley

Same stumble, would be nice to have some kind of error on invalid JSON, maybe make a PR?

tony-ist avatar Mar 25 '22 21:03 tony-ist

+1 here, took me a while to figure out why my strings kept getting deleted!

sailing avatar Mar 26 '22 01:03 sailing

Oof, I read the docs and you can enable debug logs by adding DEBUG=i18n:debug to your environment variables! They will show anything that goes wrong.

tony-ist avatar Mar 26 '22 01:03 tony-ist