Order of languages in xcstrings file

Hello,

I noticed that the order of languages in the exported xcstrings file doesn’t match the one generated by Xcode. This causes a big difference in the Crowdin pull requests. This could potentially be fixed by being able to customize the order of languages in the exported file, but I don’t think that’s possible right now. Any ideas on how I can fix this?

Hello @Rabatta!

Could you kindly provide additional information regarding your expectations for the export and the actual results? Providing an example file or a screenshot would be greatly appreciated! You can send it to our email support@crowdin.com if the data is sensitive.

1 Like

Certainly!

In the following image, the GitHub diff is shown for the pull request created by Crowdin. It can be seen that the export has changed the order of languages resulting in the nl and nb languages being swapped.

This is a problem as after merging this and building the Xcode project again results in Xcode swapping the languages to the original order as seen in the image below:

NOTE: I am using the regex application to replace the no language specifier with nb as Xcode does not support no. This explains the changed order as they are probably ordered alphabetically followed by the post-processing replacing no with nb. Replacing the string in this way originated from this post.