diff --git a/src/i18n/en-US.json b/src/i18n/en-US.json index c4f4ec708ca..19cd2a97877 100644 --- a/src/i18n/en-US.json +++ b/src/i18n/en-US.json @@ -58,6 +58,7 @@ "E2EI.certificateNotDownloaded": "End-to-end identity certificate not downloaded", "E2EI.certificateRevoked": "End-to-end identity certificate revoked", "E2EI.certificateTitle": "End-to-end identity certificate", + "E2EI.conversationVerified": "Conversation verified (End-to-end identity)", "E2EI.copyCertificate": "Copy to Clipboard", "E2EI.deviceVerified": "Device verified (End-to-end identity)", "E2EI.downloadCertificate": "Download", @@ -72,6 +73,7 @@ "E2EI.showCertificateDetails": "Show Certificate Details", "E2EI.status": "Status:", "E2EI.updateCertificate": "Update Certificate", + "E2EI.userDevicesVerified": "All devices verified (End-to-end identity)", "E2EI.valid": "Valid", "E2EI.verified": "Verified (End-to-end Identity)", "LOGOUT_REASON.ACCOUNT_REMOVED": "You were signed out because your account was deleted.", @@ -1533,4 +1535,4 @@ "wireMacos": "{{brandName}} for macOS", "wireWindows": "{{brandName}} for Windows", "wire_for_web": "{{brandName}} for Web" -} \ No newline at end of file +} diff --git a/src/script/components/VerificationBadge/VerificationBadges.tsx b/src/script/components/VerificationBadge/VerificationBadges.tsx index 85c3f7e2edc..0e16791cc6a 100644 --- a/src/script/components/VerificationBadge/VerificationBadges.tsx +++ b/src/script/components/VerificationBadge/VerificationBadges.tsx @@ -38,9 +38,10 @@ import {Conversation} from 'src/script/entity/Conversation'; import {User} from 'src/script/entity/User'; import {useUserIdentity} from 'src/script/hooks/useDeviceIdentities'; import {useKoSubscribableChildren} from 'Util/ComponentUtil'; -import {t} from 'Util/LocalizerUtil'; +import {StringIdentifer, t} from 'Util/LocalizerUtil'; type VerificationBadgeContext = 'user' | 'conversation' | 'device'; + interface VerificationBadgesProps { conversationProtocol?: ConversationProtocol; isProteusVerified?: boolean; @@ -131,8 +132,14 @@ const MLSVerificationBadge = ({context, MLSStatus}: {MLSStatus?: MLSStatuses; co switch (MLSStatus) { case MLSStatuses.VALID: + const translationKeys: Record = { + conversation: 'E2EI.conversationVerified', + user: 'E2EI.userDevicesVerified', + device: 'E2EI.deviceVerified', + }; + return ( - + );