Make the new sign-out button translatable

This commit is contained in:
Quentin Gliech
2025-02-13 16:26:04 +01:00
parent 8da8c95573
commit ed312b8074
2 changed files with 6 additions and 2 deletions

View File

@@ -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": {

View File

@@ -35,11 +35,11 @@ const SignOutButton: React.FC<{ id: string }> = ({ id }) => {
<Dialog.Dialog
trigger={
<Button kind="primary" destructive size="lg" Icon={IconSignOut}>
Sign out of account
{t("frontend.account.sign_out.button")}
</Button>
}
>
<Dialog.Title>Sign out of your account?</Dialog.Title>
<Dialog.Title>{t("frontend.account.sign_out.dialog")}</Dialog.Title>
<Button
type="button"