From ed312b8074d49d4f199e5c85a43f1f7c5d361245 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 13 Feb 2025 16:26:04 +0100 Subject: [PATCH] Make the new sign-out button translatable --- frontend/locales/en.json | 4 ++++ frontend/src/routes/_account.index.lazy.tsx | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/locales/en.json b/frontend/locales/en.json index f1ac98fe2..1f5b4499d 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -46,6 +46,10 @@ "change_disabled": "Password changes are disabled by the administrator.", "label": "Password" }, + "sign_out": { + "button": "Sign out of account", + "dialog": "Sign out of this account?" + }, "title": "Your account" }, "add_email_form": { diff --git a/frontend/src/routes/_account.index.lazy.tsx b/frontend/src/routes/_account.index.lazy.tsx index 57b68eefe..46e52fbf9 100644 --- a/frontend/src/routes/_account.index.lazy.tsx +++ b/frontend/src/routes/_account.index.lazy.tsx @@ -35,11 +35,11 @@ const SignOutButton: React.FC<{ id: string }> = ({ id }) => { - Sign out of account + {t("frontend.account.sign_out.button")} } > - Sign out of your account? + {t("frontend.account.sign_out.dialog")}