The following should work:
Text("\(Text("Hi there").foregroundColor(.red)) how are you?").foregroundColor(.blue)
It will add the full text "Hi there how are you?" in the .strings file. It will also add "Hi there" as a separate entry, but I don't think there's a way around that, unfortunately.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: