How to remove localization from a file

I am trying to unlock xib files and storyboards and store all the lines in Localizable.strings. How to do it in Xcode?

I tried unchecking all languages ​​in the File Inspector, but if I delete the last language, the whole file will disappear.

enter image description here

A file that is not localized is as follows:

enter image description here

Non-localized files will not appear when adding a new language or when exporting localization with xliff.

+9
ios xcode localization
Oct 27 '16 at 1:39 on
source share
2 answers

This is a pretty dumb way, but the only one I found works if you want to restore the default value:

  • Move the xib or Storyboard files from the Base.lproj folder to the main project folder back (inside the Finder).
  • Remove link to XIB / Storyboard files (in Xcode)
  • Reimport they all go back to your xcode project and you're done
+16
Feb 15 '17 at 17:32
source share

In Xcode, create the Localizable.strings file, check the languages ​​you need, then copy / mask the files / lines, then delete the languages ​​for xib / storyboard.

enter image description here

0
Feb 17 '17 at 12:57
source share



All Articles