title: How to deal with interpolated LocalizedStringKey in SwiftUI
body: <p>I'm literally pulling my hair out trying to translate my SwiftUI app for iOS and I'm facing a wall when I need to translate a interpolated String displaying the score of the user.</p>
  <p>I already tried some String extensions but it seems not to work correctly. For example, I have :</p>
  <p><strong>String Extension</strong></p>
  <pre><code>extension String {
  
      func localized(withComment comment: String? = nil) -&gt; String {
          return NSLocalizedString(self, comment: comment ?? &quot;&quot;)
      }
  
  }
  </code></pre>
  <p><strong>Localized String in Localizable.strings</strong></p>
  <pre><code>&quot;Score&quot; = &quot;Perf&quot;;
  </code></pre>
  <p><strong>The score View in ContentView.swift</strong></p>
  <pre><code>ScoreCard(&quot;\(&quot;Score&quot;.localized()): \(quizManager.score)/\(quizManager.numberOfQuestions)&quot;)
  </code></pre>
  <p>which gets me to this:</p>
  <p><a href="https://i.stack.imgur.com/UtL1m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UtL1m.png" alt="enter image description here" /></a></p>
  <p>I searched on the web and found nothing working about string interpolation for localizable strings.</p>
  <p>Does anyone has a solution for this please?</p>