iosxcodelocalizable.stringsxliff

Xcode Localizable.stringsdict is not being included in .xliff when exporting for localization


Just like the title says. I am using Xcode 8.3, and when I go to export a .xliff, it's not including the stuff in the localizable.stringsdict. I have selected the localizable.stringsdict and opened the file inspector and hit the big Localize button as well. That didn't seem to solve any problems. Does anyone have experience with this?


Solution

  • I'm not sure if XLIFF is even capable of representing the contents of a stringsdict, but even if it is, as you've discovered Xcode does not include your stringsdict in the XLIFF output. Every translation service I've looked in to supports stringsdict files directly, so your solution is to just upload the stringsdict files along with the XLIFF to your translation service.

    That said, it does seem like an oversight that when you export localizations Xcode doesn't at least copy the stringsdict files into the exported localizations folder alongside the xliff files. I recommend you file a bug report with Apple asking for this.