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

Allow configuring indentation size #138

Closed
JohanBeekers opened this issue Dec 10, 2019 · 2 comments
Closed

Allow configuring indentation size #138

JohanBeekers opened this issue Dec 10, 2019 · 2 comments
Labels
fixed Already fixed in the latest version

Comments

@JohanBeekers
Copy link

In our project, we use 4 spaces as indentation size for pretty much all json and ts files. The auto formatter automatically formats these files with 4 spaces. And so does another tool that some people in our project are currently still using. i18n Ally saves the translation json files with 2 spaces of indentation. While this might not always be a problem, merge conflicts seem to occur more often and indicate the entire files as conflicting.
I would love a setting to configure the space indentation size.

@antfu
Copy link
Contributor

antfu commented Dec 10, 2019

In v1.4.2, you can set it by

"i18n-ally.indent": 4

@antfu antfu added the fixed Already fixed in the latest version label Dec 10, 2019
@JohanBeekers
Copy link
Author

Seems to work perfectly.
And that was really fast too. You are absolutely great!

@antfu antfu closed this as completed Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Already fixed in the latest version
Development

No branches or pull requests

2 participants