title: Xcode, Swift: how to add multi-language support in an iOS app and have strings with placeholders and plurals?
body: <p>I need to add multi-language support in an iOS app that is written in Xcode using Swift. I need to localize</p>
  <ol>
  <li>Static strings</li>
  <li>Strings with placeholders</li>
  <li>plurals (quantity-strings)</li>
  </ol>
  <p>Such as below in Android we add named strings and plurals in XML files:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;string name=&quot;static_string&quot;&gt;Hello world!&lt;/string&gt;
  &lt;string name=&quot;placeholder_string&quot;&gt;You have %2$d new messages.&lt;/string&gt;
  &lt;plurals name=&quot;plural_string&quot;&gt;
      &lt;item quantity=&quot;one&quot;&gt;You have a new message.&lt;/item&gt;
      &lt;item quantity=&quot;other&quot;&gt;You have %2$d new messages.&lt;/item&gt;
  &lt;/plurals&gt;
  </code></pre>
  <p>And following Java to get strings programmatically:</p>
  <pre><code>res.getString(R.string.placeholder_string, mailCount)
  res.getQuantityString(R.plurals.plural_string, mailCount, mailCount)
  </code></pre>
  <p>I am looking for the solution corresponding to Swift (iOS)</p>