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

My JSON file is reformatted with 4 spaces indent #4840

Closed
thongnv opened this issue Nov 9, 2020 · 6 comments
Closed

My JSON file is reformatted with 4 spaces indent #4840

thongnv opened this issue Nov 9, 2020 · 6 comments
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.

Comments

@thongnv
Copy link

thongnv commented Nov 9, 2020

I have my JSON file formatted with 2 spaces indentation. But weblate reformats the file to 4 spaces for indentation.

Expectation: the indentation should be kept.

@nijel
Copy link
Member

nijel commented Nov 9, 2020

You can configure JSON indentation using addon, see https://docs.weblate.org/en/latest/admin/addons.html#customize-json-output

@nijel nijel added the question This is more a question for the support than an issue. label Nov 9, 2020
@github-actions
Copy link

github-actions bot commented Nov 9, 2020

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you!

@thongnv
Copy link
Author

thongnv commented Nov 10, 2020

Thank you for your answer!

@hovancik
Copy link

How do I reformat it back? I installed the addon on but PR that gets created is still 4 spaces.

@nijel
Copy link
Member

nijel commented Nov 28, 2020

The installation itself doesn't change anything, the files are changed when being edited.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

3 participants