Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 231
Pavel Alexeev Avatar asked Jul 16 '26 18:07

Pavel Alexeev


1 Answers

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.

like image 58
Pavel Alexeev Avatar answered Jul 19 '26 14:07

Pavel Alexeev