sjsanc / i18next-webpack-locale-sync

Syncs i18next translations files against a master locale
0 stars 0 forks source link

JSON formatting should be preserved #3

Open sjsanc opened 2 years ago

sjsanc commented 2 years ago

Currently, the plugin strips the destination JSON of its existing formatting, removing spaces and line breaks. This is a pain when combined with code formatters like Prettier, as it means the affected files are constantly included in commits even if no change has occurred, and it makes diffs hard to read.

The plugin should preserve the original formatting. Preferably it should be aware of any editorconfig or prettierrc files and should implement them over a default format, if possible.

sjsanc commented 2 years ago

Pretty print available from after commit 4f2528cb737b041ea4f56a48d1952a427ffb18b8