web: fix mfa fallback string (#7123)

* also add selected style to mfa type selector button

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2024-12-20 15:55:42 +05:00
committed by GitHub
parent 5229408156
commit 61b8960aa5
4 changed files with 1016 additions and 1013 deletions

View File

@@ -1675,12 +1675,15 @@ For example:
t`Your account is now 100% secure against unauthorized logins.`,
sms: () => t`phone number`,
app: () => t`authentication app`,
mfaFallbackMethodText: (fallback: string, primary: string) =>
`You will now receive your 2FA codes on your ${
strings[fallback as keyof typeof strings]
} in case you lose access to your ${
strings[primary as keyof typeof strings]
}.`,
mfaFallbackMethodText: (
fallback: "app" | "sms" | "email",
primary: "app" | "sms" | "email"
) =>
`You will now receive your 2FA codes on your ${strings[
fallback
]().toLocaleLowerCase()} in case you lose access to your ${strings[
primary
]().toLocaleLowerCase()}.`,
transactionStatusToText: {
completed: () => t`Completed`,
refunded: () => t`"Refunded`,