How to remove localization from file

前端 未结 2 610
遇见更好的自我
遇见更好的自我 2021-01-01 10:04

I\'m trying to unlocalize xib and storyboard files, and keep all strings in Localizable.strings. How do I do this in XCode?

I\'ve tried to uncheck all languages in t

相关标签:
2条回答
  • 2021-01-01 10:35

    In Xcode create a Localizable.strings file. In Xcode select the file and on the right panel, checkbox the languages you want for it. Then copy/pasta the files/strings into the place you want them. Then remove the old languages for the xib/storyboard.

    0 讨论(0)
  • 2021-01-01 10:44

    This is a pretty stupid way, but the only one I found out working if you want to restore the default:

    1. Move the xib or Storyboard files from the Base.lprojfolder to your main project folder back (within the Finder).
    2. Delete the reference of the XIB/Storyboard files (in XCode)
    3. Reimport all of them back to your XCode project and you are done
    0 讨论(0)
提交回复
热议问题