From be2c1f34f79f3ed80d83caa89dc298284f05272f Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 20 Feb 2024 11:53:30 +0000 Subject: [PATCH] Fix branding in "migrating crypto" message Fixes https://github.com/element-hq/element-web/issues/27021 --- src/components/structures/auth/LoginSplashView.tsx | 3 ++- src/i18n/strings/en_EN.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/structures/auth/LoginSplashView.tsx b/src/components/structures/auth/LoginSplashView.tsx index 808b97ff419..2ae13ce1475 100644 --- a/src/components/structures/auth/LoginSplashView.tsx +++ b/src/components/structures/auth/LoginSplashView.tsx @@ -23,6 +23,7 @@ import ProgressBar from "../../views/elements/ProgressBar"; import AccessibleButton, { ButtonEvent } from "../../views/elements/AccessibleButton"; import { _t } from "../../../languageHandler"; import { useTypedEventEmitterState } from "../../../hooks/useEventEmitter"; +import SdkConfig from "../../../SdkConfig"; interface Props { /** The matrix client which is logging in */ @@ -65,7 +66,7 @@ export function LoginSplashView(props: Props): React.JSX.Element { if (migrationState.totalSteps !== -1) { spinnerOrProgress = (
-

{_t("migrating_crypto")}

+

{_t("migrating_crypto", { brand: SdkConfig.get().brand })}

); diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 99035cf9d47..83fb6156755 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1590,7 +1590,7 @@ }, "member_list_back_action_label": "Room members", "message_edit_dialog_title": "Message edits", - "migrating_crypto": "Hang tight. We are updating Element to make encryption faster and more reliable.", + "migrating_crypto": "Hang tight. We are updating %(brand)s to make encryption faster and more reliable.", "mobile_guide": { "toast_accept": "Use app", "toast_description": "%(brand)s is experimental on a mobile web browser. For a better experience and the latest features, use our free native app.",