Wrap non-translatable strings so that they do not get exported

This commit is contained in:
2023-02-15 10:44:44 -05:00
parent 59211bb4fd
commit 355cd1283c
17 changed files with 31 additions and 61 deletions

View File

@@ -13,7 +13,7 @@ struct ReplyDescription: View {
let profiles: Profiles
var body: some View {
Text("\(reply_desc(profiles: profiles, event: event))")
Text(String("\(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("\(format_date(event.created_at))")
Text(String("\(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("\(format_relative_time(event.created_at))")
Text(String("\(format_relative_time(event.created_at))"))
.foregroundColor(.gray)
Spacer()