1

I don't know what's wrong with this. This is my localizable string

"sendEmailTo %s" = "We will send an email to %s. Thanks for watching";

and this is the way I'm using it into Text()

Text("sendEmailTo %s \("hello.world@apple.com")")

Do you have an idea of the error?, thank you so much

Antonio Labra
  • 1,694
  • 2
  • 12
  • 21

1 Answers1

2

Since you want to replace %s with an email string, you need to get rid of it from the passed string to Text

Text("sendEmailTo \("hello.world@apple.com")")

Check out this blogpost Localization in SwiftUI

Witek Bobrowski
  • 3,749
  • 1
  • 20
  • 34