0

I have a few Text("dummy") within SwiftUI previews. Every time I perform export localizations, these would get exported. Is there any way to manually mark them as "do not localize"?

Ben Lu
  • 2,943
  • 4
  • 30
  • 51
  • Does this answer your question? [Difference between Text("") and Text(verbatim: "") initializers in SwiftUI](https://stackoverflow.com/questions/56505679/difference-between-text-and-textverbatim-initializers-in-swiftui) – George Dec 26 '21 at 17:02
  • Yes. Thank you @George! – Ben Lu Dec 27 '21 at 02:03

1 Answers1

1

Use with verbatim constructor, like

Text(verbatim: "dummy")
Asperi
  • 173,274
  • 14
  • 284
  • 455