Migrate more strings to translation keys (#11665)

This commit is contained in:
Michael Telatynski 2023-09-25 18:12:41 +01:00 committed by GitHub
parent de250df520
commit 54c88c57ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
127 changed files with 6797 additions and 5825 deletions

View file

@ -29,11 +29,11 @@ const TOAST_KEY = "setupencryption";
const getTitle = (kind: Kind): string => {
switch (kind) {
case Kind.SET_UP_ENCRYPTION:
return _t("Set up Secure Backup");
return _t("encryption|set_up_toast_title");
case Kind.UPGRADE_ENCRYPTION:
return _t("Encryption upgrade available");
return _t("encryption|upgrade_toast_title");
case Kind.VERIFY_THIS_SESSION:
return _t("Verify this session");
return _t("encryption|verify_toast_title");
}
};
@ -62,9 +62,9 @@ const getDescription = (kind: Kind): string => {
switch (kind) {
case Kind.SET_UP_ENCRYPTION:
case Kind.UPGRADE_ENCRYPTION:
return _t("Safeguard against losing access to encrypted messages & data");
return _t("encryption|set_up_toast_description");
case Kind.VERIFY_THIS_SESSION:
return _t("Other users may not trust it");
return _t("encryption|verify_toast_description");
}
};
@ -110,7 +110,7 @@ export const showToast = (kind: Kind): void => {
description: getDescription(kind),
acceptLabel: getSetupCaption(kind),
onAccept,
rejectLabel: _t("Later"),
rejectLabel: _t("encryption|verification|unverified_sessions_toast_reject"),
onReject,
},
component: GenericToast,