How can I flag a SwiftUI Text's string literal to not be added to Localizable.strings

In my code, I do this:

Text("\(languagesManager.availableWords.count)")

And next time I build, this creates an entry in Localizable.strings: %lld

Is there a way I can flag this UI element to indicate its string doesn't need to be localized?

Answered by Frameworks Engineer in 827224022

You can use Text(verbatim:) or pass a string variable instead.

Accepted Answer

You can use Text(verbatim:) or pass a string variable instead.

How can I flag a SwiftUI Text's string literal to not be added to Localizable.strings
 
 
Q