I have this Text in SwiftUI :
Text("Level (level.id)" + (level.isEnded ? " ended" : ""))
This string does not automatically go to the Strings catalog.
What is the best way to deal with this kind of text and localization ?
Thanks
I have this Text in SwiftUI :
Text("Level (level.id)" + (level.isEnded ? " ended" : ""))
This string does not automatically go to the Strings catalog.
What is the best way to deal with this kind of text and localization ?
Thanks
2
Answers
You could put the text together using individual words or parts of a sentence, but this can get complicated for full sentences in different languages.
When the number of cases is limited as with your example, I would suggest using separate translations instead:
You can also do this: