i18n-node
i18n-node copied to clipboard
Feature Request: Check JSON validity on start
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?
Same stumble, would be nice to have some kind of error on invalid JSON, maybe make a PR?
+1 here, took me a while to figure out why my strings kept getting deleted!
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.