fix(2FA): add missing translation for backup codes file

This commit is contained in:
Rudy B. committed 2026-04-25 12:06:50 +02:00
1 parent d77ba4f7b5
commit 0795833135
4 files changed
+8 -2

No files matched your search

+2
View File
@@ -398,6 +398,7 @@ export const labels: Record<string, string> = {
twoFactorSaveBackupCodes: 'label.two-factor-save-backup-codes',
twoFactorDownloadCodes: 'label.two-factor-download-codes',
twoFactorSavedCodes: 'label.two-factor-saved-codes',
twoFactorBackupFileTitle: 'label.two-factor-backup-file-title',
twoFactorSuccessTitle: 'label.two-factor-success-title',
twoFactorEnable: 'label.two-factor-enable',
twoFactorDisable: 'label.two-factor-disable',
@@ -466,6 +467,7 @@ export const messages: Record<string, string> = {
twoFactorStep2Description: 'message.two-factor-step2-description',
twoFactorEnabledDescription: 'message.two-factor-enabled-description',
twoFactorBackupDescription: 'message.two-factor-backup-description',
twoFactorBackupCodesOnce: 'message.two-factor-backup-codes-once',
twoFactorLoginDescription: 'message.two-factor-login-description',
twoFactorDisableDescription: 'message.two-factor-disable-description',
twoFactorRequiredMessage: 'message.two-factor-required-message',
@@ -14,8 +14,8 @@ export function TwoFactorSuccessModal({ backupCodes, onClose }: TwoFactorSuccess
const handleDownload = () => {
const content = [
'Umami - Two-factor authentication backup codes',
'Keep these codes safe. Each code can only be used once.',
t(labels.twoFactorBackupFileTitle),
t(messages.twoFactorBackupCodesOnce),
'',
...backupCodes,
].join('\n');