Apple .xcstrings string catalog format discrepancy between Crowdin and Xcode

I’m using Apple .xcstrings string catalog multilingual files. The underlying format is JSON. It seems that Xcode adds spaces right after the keys whereas Crowdin does not, which can be a cause of noisy diffs in Git and potential merge conflicts.

Could Crowdin please be fixed so that it adds an extra whitespace after keys so that it conforms to what Xcode outputs? Thank you.

1 Like

Hello @tyiu

We’re working on the solution at the moment. Will update you once an improvement is released.

1 Like

Task is released, should be working as you’re expecting. Please re-import the file in order changes to be applied.

1 Like

doesn’t seem to be fixed here… experiencing issues using

generating huge diffs…

Hi @derspyy,

Unfortunately, I cannot see the file changed because the diff is too large. Just to clarify, if you download the translations from the UI, the spaces after keys will not be removed? Could you please check?

seems like downloading from the crowdin UI itself is working correctly, although using the github actions still provides the mistake:

also, this diff suggests that we have a different order, which is also weird…

Hi @derspyy,

Can you please share with us a link to the project where you are working?

I’m seeing the same issue with my strings catalog file. Could the Apple Strings Catalog extension I’m using for import be the reason?

Hi @hlib.ustymenko

It seems like there might be an issue with the synchronization process. Could you please provide some extra information that will help us understand the problem more clearly and find a solution for you?

  1. A sample of the source file you upload to Crowdin.
  2. The translated file you receive as a translation from Crowdin.
  3. The project ID where you are working in Crowdin.

You can send us the file samples directly, just email them to support@crowdin.com

Alternatively, just let us know the project ID so we can check system logs from our side; this will shed some light as well :slight_smile:

Hello!
We are facing the same issue. When we’re using GitLab integration to update localizations in our repo, Crowdin generated .xcstrings does not have additional space after localization key, whereas Xcode generated does.
Could you fix this please?

Hello @Spiriohub

Can you kindly provide some extra details so I can investigate this from my side?

I need the same that I listed here: