From 30f3f6a8ff41e6c6f0ff8c95de398f6f6769df42 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 5 Oct 2026 23:57:03 +0400 Subject: [PATCH] refac --- src/lib/components/auth/MfaChallenge.svelte | 59 +++++++++---------- .../chat/Settings/Account/Mfa.svelte | 10 ++-- src/lib/i18n/locales/ar-BH/translation.json | 18 ++++++ src/lib/i18n/locales/ar/translation.json | 18 ++++++ src/lib/i18n/locales/az-AZ/translation.json | 18 ++++++ src/lib/i18n/locales/bg-BG/translation.json | 18 ++++++ src/lib/i18n/locales/bn-BD/translation.json | 18 ++++++ src/lib/i18n/locales/bo-TB/translation.json | 18 ++++++ src/lib/i18n/locales/bs-BA/translation.json | 18 ++++++ src/lib/i18n/locales/ca-ES/translation.json | 18 ++++++ src/lib/i18n/locales/ceb-PH/translation.json | 18 ++++++ src/lib/i18n/locales/cs-CZ/translation.json | 18 ++++++ src/lib/i18n/locales/da-DK/translation.json | 18 ++++++ src/lib/i18n/locales/de-DE/translation.json | 18 ++++++ src/lib/i18n/locales/dg-DG/translation.json | 18 ++++++ src/lib/i18n/locales/el-GR/translation.json | 18 ++++++ src/lib/i18n/locales/en-GB/translation.json | 18 ++++++ src/lib/i18n/locales/en-US/translation.json | 18 ++++++ src/lib/i18n/locales/es-ES/translation.json | 18 ++++++ src/lib/i18n/locales/et-EE/translation.json | 18 ++++++ src/lib/i18n/locales/eu-ES/translation.json | 18 ++++++ src/lib/i18n/locales/fa-IR/translation.json | 18 ++++++ src/lib/i18n/locales/fi-FI/translation.json | 18 ++++++ src/lib/i18n/locales/fil-PH/translation.json | 18 ++++++ src/lib/i18n/locales/fo-FO/translation.json | 18 ++++++ src/lib/i18n/locales/fr-CA/translation.json | 18 ++++++ src/lib/i18n/locales/fr-FR/translation.json | 18 ++++++ src/lib/i18n/locales/gl-ES/translation.json | 18 ++++++ src/lib/i18n/locales/he-IL/translation.json | 18 ++++++ src/lib/i18n/locales/hi-IN/translation.json | 18 ++++++ src/lib/i18n/locales/hr-HR/translation.json | 18 ++++++ src/lib/i18n/locales/hu-HU/translation.json | 18 ++++++ src/lib/i18n/locales/id-ID/translation.json | 18 ++++++ src/lib/i18n/locales/ie-GA/translation.json | 18 ++++++ src/lib/i18n/locales/it-IT/translation.json | 18 ++++++ src/lib/i18n/locales/ja-JP/translation.json | 18 ++++++ src/lib/i18n/locales/ka-GE/translation.json | 18 ++++++ src/lib/i18n/locales/kab-DZ/translation.json | 18 ++++++ src/lib/i18n/locales/ko-KR/translation.json | 18 ++++++ src/lib/i18n/locales/lt-LT/translation.json | 18 ++++++ src/lib/i18n/locales/lv-LV/translation.json | 18 ++++++ src/lib/i18n/locales/ms-MY/translation.json | 18 ++++++ src/lib/i18n/locales/nb-NO/translation.json | 18 ++++++ src/lib/i18n/locales/nl-NL/translation.json | 18 ++++++ src/lib/i18n/locales/pa-IN/translation.json | 18 ++++++ src/lib/i18n/locales/pl-PL/translation.json | 18 ++++++ src/lib/i18n/locales/pt-BR/translation.json | 18 ++++++ src/lib/i18n/locales/pt-PT/translation.json | 18 ++++++ src/lib/i18n/locales/ro-RO/translation.json | 18 ++++++ src/lib/i18n/locales/ru-RU/translation.json | 18 ++++++ src/lib/i18n/locales/sk-SK/translation.json | 18 ++++++ src/lib/i18n/locales/sl-SI/translation.json | 18 ++++++ src/lib/i18n/locales/sr-RS/translation.json | 18 ++++++ src/lib/i18n/locales/sv-SE/translation.json | 18 ++++++ src/lib/i18n/locales/ta-IN/translation.json | 18 ++++++ src/lib/i18n/locales/th-TH/translation.json | 18 ++++++ src/lib/i18n/locales/tk-TM/translation.json | 18 ++++++ src/lib/i18n/locales/tr-TR/translation.json | 18 ++++++ src/lib/i18n/locales/ug-CN/translation.json | 18 ++++++ src/lib/i18n/locales/uk-UA/translation.json | 18 ++++++ src/lib/i18n/locales/ur-PK/translation.json | 18 ++++++ .../i18n/locales/uz-Cyrl-UZ/translation.json | 18 ++++++ .../i18n/locales/uz-Latn-UZ/translation.json | 18 ++++++ src/lib/i18n/locales/vi-VN/translation.json | 18 ++++++ src/lib/i18n/locales/zh-CN/translation.json | 18 ++++++ src/lib/i18n/locales/zh-TW/translation.json | 18 ++++++ 66 files changed, 1184 insertions(+), 37 deletions(-) diff --git a/src/lib/components/auth/MfaChallenge.svelte b/src/lib/components/auth/MfaChallenge.svelte index 52de63092a..17d3699fd7 100644 --- a/src/lib/components/auth/MfaChallenge.svelte +++ b/src/lib/components/auth/MfaChallenge.svelte @@ -75,24 +75,20 @@ {:else}

- {$i18n.t( - challenge.next_step === 'enroll' - ? 'Set up your authenticator' - : challenge.next_step === 'recover' - ? 'Recover your authenticator' - : 'Verify your sign-in' - )} + {challenge.next_step === 'enroll' + ? $i18n.t('Set up your authenticator') + : challenge.next_step === 'recover' + ? $i18n.t('Recover your authenticator') + : $i18n.t('Verify your sign-in')}

- {$i18n.t( - challenge.next_step === 'enroll' - ? 'Scan the QR code, then enter the six-digit code from your authenticator app.' - : challenge.next_step === 'recover' - ? 'Enter the recovery token from your operator.' - : recovery - ? 'Enter one of your saved recovery codes.' - : 'Enter the six-digit code from your authenticator app.' - )} + {challenge.next_step === 'enroll' + ? $i18n.t('Scan the QR code, then enter the six-digit code from your authenticator app.') + : challenge.next_step === 'recover' + ? $i18n.t('Enter the recovery token from your operator.') + : recovery + ? $i18n.t('Enter one of your saved recovery codes.') + : $i18n.t('Enter the six-digit code from your authenticator app.')}

{#if challenge.next_step === 'enroll'} @@ -126,24 +122,20 @@