Swift: Localization in Storyboard - Labels not added to Main.strings?

Dhaval Bhimani's answer is the easiest solution for localizing a small number of newly added view components. If you want to regenerate all the localizations for a storyboard, select the Main.storyboard-> deselect the localization check boxes for all the languages. check the 'Delete localized resource files from disk' check box enter image description here now make sure your newly added labels and buttons are there and localize again by selecting languages. Just in case backup your string files before that


Easy XIB and Storyboard Localization - Very efficient and simple method

This repository serves as an example on how to localize some UIKit controls:

UILabel, UIButton, UITextField placeholder, UISegmentedControl, UIBarItem for tab bar items and navigation bar items, UINavigationItem, Review Localizable.swift to check it.

https://github.com/emenegro/xib-localization

English

Spanish


After selecting UILabel from storyboard, You can find object id of UILabel in right panel:

enter image description here

Then you can set text of label as below in your Main.string file:

"sxl-NO-5WX.text" = "Phone";