title: NSLocalizedString With Dynamic Variable (Swift) - Not Working
body: <p>I began integrating localization into my app using <a href="http://rshankar.com/internationalization-and-localization-of-apps-in-xcode-6-and-swift/" rel="nofollow noreferrer">this guide</a>. It worked great until I localized a string that included a dynamic variable. The original was this:</p>
  
  <pre><code>let myString = "I have \(countOfMoney) dollars in my wallet."
  </code></pre>
  
  <p>Then I tried to mimiic <a href="https://stackoverflow.com/questions/26277626/nslocalizedstring-with-swift-variable">this</a> stack answer to localize it. However, I'm getting an EXC_Bad_Access error. Below is how I tried to localize it.</p>
  
  <p>This is in my Localizable.strings English file:</p>
  
  <pre><code>localizedMsg="I have %@ dollars in my wallet.";
  </code></pre>
  
  <p>This is in my View Controller:</p>
  
  <pre><code>let countOfMoney = moneyInWallet.count
  let localizedMsg = String(format: NSLocalizedString("localizedMsg", comment: ""), countOfMoney)
  </code></pre>
  
  <p>However, this line shows up as an error when I run the app on the simulator. How do I fix it?</p>