title: How to set the NSLocalizedString for unused UI's In swift project?
body: <p>Currently I am working in multi-language selection in our project. We have created a Spanish language- Localizable.strings- (Spanish). </p>
  
  <blockquote>
    <p>Base language :  "loading" = "Please wait.."; Spanish :  "loading" =
    "por favor espera..";</p>
  </blockquote>
  
  <pre><code>import Foundation
  
  extension String {
      var localized: String {
          return NSLocalizedString(self, tableName: nil, bundle: Bundle.main, value: "", comment: "")
      }
  }
  </code></pre>
  
  <p>But we have an unused(Static values in the storyboard) UI's for some buttons and Label as well. </p>
  
  <p><strong>And we have added below code in our app and it's working as expected.</strong> </p>
  
  <p>Used UI component:</p>
  
  <pre><code>@IBOutlet weak var progressLabel: UILabel!
  
  self.progressLabel.text = "loading".localized
  </code></pre>
  
  <p>Unused UI components:</p>
  
  <pre><code>  @IBOutlet var medicalCardButton: UIButton!
    @IBOutlet var idPassportButton: UIButton! 
  </code></pre>
  
  <p>We just created medicalCardButton and idPassportButton but not connected the outlet.</p>