Xcode String Catalog (.xcstrings) is populated with all types of languages when exported

Hello,

I first created a bug ticket here but was told to contact the Customer Success team.

We have been uploading and downloading Localizable.strings and Localizable.stringsdict for a while without any issues.
Recently we added a string catalog file (.xcstrings) and expected it to work like the other two formats. We would like to upload the existing file and download it again populated with the same 20 languages we get for the other file formats.

Instead, however, the downloaded .xcstrings file contains all kind of languages, far more than the ones we would like to have. When submitting a build of our app to AppStore connect we even get a warning now for sr-SP:

ITMS-90176: Unrecognized Locale

Is this a bug in the exporter for string catalogs?

Hello @iosx

Apple Strings Catalog is considered to be a multilanguage file, so it’s expected that you have received translations for all languages within 1 file.

You can see a file sample / some comments about how it is processing in Crowdin here:

If you want to remove some languages you can disable the target languages for that file. You can do it as it’s written here, or by using Project’s UI (3 bullets near file → settings → target languages).

As for the Unrecognized locale error, it looks like the App Store just can’t recognize sr-SP code, or your app doesn’t have it. Please check this from your end. Meanwhile, a list of our default codes can be found here:

Hope this helps!