Pavel Alexeev
Pavel Alexeev

Reputation: 6081

Xcode doesn't export strings from xibs for localization

I'm trying to follow Apple's localization guide with my project, but after I select Editor -> Export for Localization, the resulting .xliff file doesn't contain any strings from .xib files. It has only strings from Localizable.strings and from Info.plist.

Upvotes: 3

Views: 794

Answers (1)

Pavel Alexeev
Pavel Alexeev

Reputation: 6081

I did it!

Turns out, it was a project created in old Xcode version that doesn't support Base Internationalization. I had to

  • Press “Localize” on all the xibs in the project
  • Then go to Project Settings and in the Info tab check “Use Base Internationalization” checkmark.

After this, the resulting .xliff file has all the .xib strings.

Upvotes: 8

Related Questions