CLI localazy download alters JSON file formatting

We have a TypeScript project with JSON formatting enforced via a global Prettier config:


module.exports = {
	jsonRecursiveSort: true,
	plugins: ['prettier-plugin-sort-json'],
	jsonSortOrder: "{\"*\": \"lexical\"}",
	singleQuote: true,
	jsxSingleQuote: true,
	trailingComma: 'all',
	useTabs: true,
	overrides: [
		{
			// comply with .editorconfig
			files: 'package.json',
			options: {
				useTabs: false,
			},
		},
	],
};

However, when running localazy download via CLI, the downloaded JSON files are reformatted, using 2-space indentation instead of our configured tab-based indentation. Currently, we run a script to reformat the files after download.

Is there an option in the Localazy CLI to preserve the original file formatting, particularly indentation style?

On Lokalise.com, you can configure key ordering as well as file formatting, but I couldn’t find a similar option in Localazy. Does Localazy offer a way to preserve the original formatting?

Hello,

at the moment, this is not supported. We usually recommend to chain the CLI with another command that will post-process files to desired format if needed.