Skip to content

Commit 16335b1

Browse files
committed
Make the new sign-out button translatable
1 parent 1ed9586 commit 16335b1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

frontend/locales/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
"change_disabled": "Password changes are disabled by the administrator.",
4747
"label": "Password"
4848
},
49+
"sign_out": {
50+
"button": "Sign out of account",
51+
"dialog": "Sign out of this account?"
52+
},
4953
"title": "Your account"
5054
},
5155
"add_email_form": {

frontend/src/routes/_account.index.lazy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ const SignOutButton: React.FC<{ id: string }> = ({ id }) => {
3535
<Dialog.Dialog
3636
trigger={
3737
<Button kind="primary" destructive size="lg" Icon={IconSignOut}>
38-
Sign out of account
38+
{t("frontend.account.sign_out.button")}
3939
</Button>
4040
}
4141
>
42-
<Dialog.Title>Sign out of your account?</Dialog.Title>
42+
<Dialog.Title>{t("frontend.account.sign_out.dialog")}</Dialog.Title>
4343

4444
<Button
4545
type="button"

0 commit comments

Comments
 (0)