Import localizable.strings into XIB

652 Views Asked by At

I am currently refactoring an Xcode project for Interface Builder and I am looking for a way to import strings in existing localizable.strings files into newly-created XIB files that use the same strings.

I have tried Xcode’s XLIFF export/import function, but it will only import the strings that were exported from the XIB files, and ibtool’s --import-strings-file command won’t accept localizable.strings as input, only previously exported strings files that originated from a XIB file already.

Is there anything I can use, without having to do everything manually?

1

There are 1 best solutions below

1
On
  1. Select your Xib file, then select localize... under the Localization option.
    localize

  2. Select the language you want to internationalize, and click Localize.

  3. You can see Internationalization file has been generated.
    Success