How to preview Storyboard in Xcode using Non-Base localisation

后端 未结 3 861
温柔的废话
温柔的废话 2021-01-02 02:43

I have a Storyboard in Xcode 5.1 with a base Localization of English, and a second Localization in French.

When I\'m using the Xcode Storyboard editor the strings a

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 03:17

    I believe that Xcode is not prepared to show localized storyboards in Interface Builder when using string files. However, it allows for you to convert formats quite easily. Select your storyboard file and in the utilities panel, select the language you want to preview:

    Utilities Panel

    Change the "Localizable Strings" to "Interface Build Cocoa Touch Storyboard":

    Selection

    You should now be able to select the French storyboard file and preview it within IB.

    Once you are done, you can convert the file back to "Localizable Strings" reversing this procedure, or using your source code version control system. Then you can update the base file with any necessary adjustments, and verify it is to your liking using this method again.

提交回复
热议问题