Use Text(verbatim:) to indicate non-translatable strings

This commit is contained in:
2023-02-16 10:15:38 -05:00
parent 1b4e54582f
commit 98a1b95d12
14 changed files with 22 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ struct ReplyDescription: View {
let profiles: Profiles
var body: some View {
Text(String("\(reply_desc(profiles: profiles, event: event))"))
Text(verbatim: "\(reply_desc(profiles: profiles, event: event))")
.font(.footnote)
.foregroundColor(.gray)
.frame(maxWidth: .infinity, alignment: .leading)

View File

@@ -35,7 +35,7 @@ struct SelectedEventView: View {
BuilderEventView(damus: damus, event_id: mention.ref.id)
}
Text(String("\(format_date(event.created_at))"))
Text(verbatim: "\(format_date(event.created_at))")
.padding(.top, 10)
.font(.footnote)
.foregroundColor(.gray)

View File

@@ -33,7 +33,7 @@ struct TextEvent: View {
HStack(alignment: .center) {
EventProfileName(pubkey: pubkey, profile: profile, damus: damus, show_friend_confirmed: true, size: .normal)
Text(String("\(format_relative_time(event.created_at))"))
Text(verbatim: "\(format_relative_time(event.created_at))")
.foregroundColor(.gray)
Spacer()