I added a localization in xcode, removed it and now my storyboard is gone

前端 未结 1 1434
清歌不尽
清歌不尽 2020-12-07 02:28

So I wanted to try localizing my app. I had one single Storyboard.storyboard in my project folder.

  1. I checked the \"use base internationalization\" checkbox and
相关标签:
1条回答
  • 2020-12-07 02:58

    For the storyboards in the trash, I would try opening them both up and seeing which is correct. And for using .strings files instead of having to localize the whole storyboard, when using base internationalization you have an option. You can change it by changing the option here under localization (this is under the left pane when you open the storyboard) enter image description here

    Change the option from interface builder to localizable strings, and you don't have to use the storyboard. The difference is in the interface builder one, you would have to edit all labels and anything you want to localize like you would edit any other storyboard, which can be tedious. The strings file makes it easy by basically giving you a list of whatever text you have in your whole storyboard and letting you change what they say by translating the text, instead of having to edit the whole storyboard file.

    0 讨论(0)
提交回复
热议问题