From 99a527c2a1522e3b9cba71eb4886c197d732913c Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Sat, 22 Jun 2024 09:38:02 +0200 Subject: [PATCH] localize labels --- frontend/src/components/TrustDetails.vue | 9 +++++---- frontend/src/i18n/de-DE.json | 3 +++ frontend/src/i18n/en-US.json | 3 +++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/TrustDetails.vue b/frontend/src/components/TrustDetails.vue index fa79ac57..78d04064 100644 --- a/frontend/src/components/TrustDetails.vue +++ b/frontend/src/components/TrustDetails.vue @@ -7,9 +7,10 @@ -

Trust Level {{ trustLevel }}

-
@@ -28,7 +29,7 @@ import userdata from '../common/userdata'; import wot from '../common/wot'; import SignUserKeysDialog from './SignUserKeysDialog.vue'; -const { t } = useI18n({ useScope: 'global' }); +const { t, n } = useI18n({ useScope: 'global' }); const props = defineProps<{ trustedUser: UserDto, diff --git a/frontend/src/i18n/de-DE.json b/frontend/src/i18n/de-DE.json index 328c825d..99515ff3 100644 --- a/frontend/src/i18n/de-DE.json +++ b/frontend/src/i18n/de-DE.json @@ -136,6 +136,9 @@ "grantPermissionDialog.description": "Tresor-Schlüssel mit neu hinzugefügten Nutzern teilen.", "grantPermissionDialog.submit": "Berechtigung für {0} Nutzer gewähren", + "trustDetails.trustLevel": "Vertrauenslevel {0}", + "trustDetails.showSignDialogBtn": "Identität prüfen...", + "signUserKeysDialog.title": "{0}s Identität bestätigen", "signUserKeysDialog.description": "Gib die ersten {0} Zeichen von {1}s Fingerprint ein, um die Authentizität der Public Keys dieses Nutzers zu bestätigen.", "signUserKeysDialog.submit": "Identität bestätigen", diff --git a/frontend/src/i18n/en-US.json b/frontend/src/i18n/en-US.json index 06f49803..a02aa075 100644 --- a/frontend/src/i18n/en-US.json +++ b/frontend/src/i18n/en-US.json @@ -136,6 +136,9 @@ "grantPermissionDialog.description": "Share vault keys with newly added users.", "grantPermissionDialog.submit": "Grant Permission to {0} User(s)", + "trustDetails.trustLevel": "Trust Level {0}", + "trustDetails.showSignDialogBtn": "Check Identity...", + "signUserKeysDialog.title": "Verify {0}'s Identity", "signUserKeysDialog.description": "Enter the first {0} characters of {1}'s fingerprint in order to confirm the authenticity of their public keys.", "signUserKeysDialog.submit": "Confirm this User's Identity",