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

Setting to prevent trailing new line in JSON #1127

Open
ocadoret opened this issue Apr 18, 2024 · 0 comments
Open

Setting to prevent trailing new line in JSON #1127

ocadoret opened this issue Apr 18, 2024 · 0 comments

Comments

@ocadoret
Copy link

Is your feature related to a specific framework or general for this extension
JSON serialization

Is your feature request related to a problem? Please describe.
When using i18n Ally to create / edit translations, it always add a trailing new line in the JSON.
This can be a problem when using some other tools (linting or translation importing for examples).
Issue I'm having is for example :

  • translation import doesn't generate a trailing new line, so it generates a git diff when editing again with i18n Ally afterward
  • I have a custom lint process that checks if locales files are synch with the default locale (all keys are translated, etc.), and this linter also check that the files have the same format (wether all have a trailing new line, or none). So editing only one translation might generate a difference between files on that point.

Describe the solution you'd like
It would be nice to have a setting to deactivate the trailing new line in serialized JSON files.

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

No branches or pull requests

1 participant