From 06ceb11516dbc0b62926b188f5d0a7bc5b11dd78 Mon Sep 17 00:00:00 2001 From: Taksh Date: Sun, 2 Aug 2026 10:49:06 +0530 Subject: [PATCH] fix: give export localized strings defaultValues for tests --- bitchat/Utils/ChatPlaintextExporter.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bitchat/Utils/ChatPlaintextExporter.swift b/bitchat/Utils/ChatPlaintextExporter.swift index 504c0a87..8beb8812 100644 --- a/bitchat/Utils/ChatPlaintextExporter.swift +++ b/bitchat/Utils/ChatPlaintextExporter.swift @@ -23,7 +23,11 @@ enum ChatPlaintextExporter { ].joined(separator: "\n") guard !messages.isEmpty else { - return header + String(localized: "chat.export.empty", comment: "Line shown when an export contains no messages") + return header + String( + localized: "chat.export.empty", + defaultValue: "(no messages in this conversation)", + comment: "Line shown when an export contains no messages" + ) } let body = messages.map { line(for: $0) }.joined(separator: "\n") @@ -33,6 +37,7 @@ enum ChatPlaintextExporter { private static var warningLine: String { String( localized: "chat.export.sealing_warning", + defaultValue: "warning: this file is unsealed plaintext. anyone with a copy can read it.", comment: "Warning that an exported chat file is unsealed plaintext readable by anyone with a copy" ) }