.xcstrings catalog creates a massive git diff upon the slightest change

Every time I touch (add a key, remove a key, even add a key, then remove it) the Strings Catalog .xcstrings file, it re-renders the entire file and creates a 18 thousand line dif.

When I looked closer, it changes the whitespace before colons!

  • "version": "1.0"
  • "version" : "1.0"

it does so for every JSON node.

This makes the whole feature useless, because we wont be able to see what we changed upon code review (diff is unprintable in the github interface) and every time we change a single translation, we will be stacking 18k lines diff. Not to mention merge conflicts?

actually i would like to delete this post. turns out xcode always generates the file with the column before the ":" but a script of mine that pulls translations regenerates the file without the spaces before the ":" and then when i make a change in xcode, this dif happens. Im sorry for the confusion.

.xcstrings catalog creates a massive git diff upon the slightest change
 
 
Q