Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Check JSON validity on start #378

Open
jmfadeley opened this issue Jul 17, 2018 · 3 comments
Open

Feature Request: Check JSON validity on start #378

jmfadeley opened this issue Jul 17, 2018 · 3 comments
Assignees

Comments

@jmfadeley
Copy link

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?

@mashpie mashpie self-assigned this Aug 19, 2020
@tony-ist
Copy link

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

@sailing
Copy link

sailing commented Mar 26, 2022

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

@tony-ist
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants