From e3d135bc6ecbb853e379378162d741b99e34ee76 Mon Sep 17 00:00:00 2001 From: DacongDA Date: Mon, 14 Oct 2024 18:31:48 +0800 Subject: [PATCH] feat: improve MFA desc text (#3284) * fix: fix i18n error for mfa * fix: fix i18n error for mfa * fix: promote translate --- web/src/auth/mfa/MfaAuthVerifyForm.js | 38 ++++++++++++++++----------- web/src/locales/ar/data.json | 3 ++- web/src/locales/cs/data.json | 3 ++- web/src/locales/de/data.json | 3 ++- web/src/locales/en/data.json | 3 ++- web/src/locales/es/data.json | 3 ++- web/src/locales/fa/data.json | 3 ++- web/src/locales/fi/data.json | 3 ++- web/src/locales/fr/data.json | 3 ++- web/src/locales/he/data.json | 3 ++- web/src/locales/id/data.json | 3 ++- web/src/locales/it/data.json | 3 ++- web/src/locales/ja/data.json | 3 ++- web/src/locales/kk/data.json | 3 ++- web/src/locales/ko/data.json | 3 ++- web/src/locales/ms/data.json | 3 ++- web/src/locales/nl/data.json | 3 ++- web/src/locales/pl/data.json | 3 ++- web/src/locales/pt/data.json | 3 ++- web/src/locales/ru/data.json | 3 ++- web/src/locales/sk/data.json | 3 ++- web/src/locales/sv/data.json | 3 ++- web/src/locales/tr/data.json | 3 ++- web/src/locales/uk/data.json | 3 ++- web/src/locales/vi/data.json | 3 ++- web/src/locales/zh/data.json | 3 ++- 26 files changed, 73 insertions(+), 40 deletions(-) diff --git a/web/src/auth/mfa/MfaAuthVerifyForm.js b/web/src/auth/mfa/MfaAuthVerifyForm.js index 032f2875..8a380f78 100644 --- a/web/src/auth/mfa/MfaAuthVerifyForm.js +++ b/web/src/auth/mfa/MfaAuthVerifyForm.js @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import React, {useState} from "react"; +import React, {Fragment, useState} from "react"; import i18next from "i18next"; import {Button, Input} from "antd"; import * as AuthBackend from "../AuthBackend"; @@ -67,24 +67,32 @@ export function MfaAuthVerifyForm({formValues, authParams, mfaProps, application if (mfaType !== RecoveryMfaType) { return ( -
+
{i18next.t("mfa:Multi-factor authentication")}
-
- {i18next.t("mfa:You have enabled multi-factor authentication, please enter the authentication code")} -
{mfaType === SmsMfaType || mfaType === EmailMfaType ? ( - ) : ( - + +
+ {i18next.t("mfa:You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue")} +
+ +
+ ) : ( + +
+ {i18next.t("mfa:You have enabled Multi-Factor Authentication, please enter the TOTP code")} +
+ +
)} {i18next.t("mfa:Have problems?")} diff --git a/web/src/locales/ar/data.json b/web/src/locales/ar/data.json index bb096bf1..8769eac1 100644 --- a/web/src/locales/ar/data.json +++ b/web/src/locales/ar/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/cs/data.json b/web/src/locales/cs/data.json index ea042abb..a828d073 100644 --- a/web/src/locales/cs/data.json +++ b/web/src/locales/cs/data.json @@ -562,7 +562,8 @@ "Verification failed": "Ověření selhalo", "Verify Code": "Ověřit kód", "Verify Password": "Ověřit heslo", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Váš email je", "Your phone is": "Váš telefon je", "preferred": "preferované" diff --git a/web/src/locales/de/data.json b/web/src/locales/de/data.json index 6fdebd29..168a8a74 100644 --- a/web/src/locales/de/data.json +++ b/web/src/locales/de/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/en/data.json b/web/src/locales/en/data.json index 6b8cea06..08dd8a3d 100644 --- a/web/src/locales/en/data.json +++ b/web/src/locales/en/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/es/data.json b/web/src/locales/es/data.json index 885d48b9..2315da2c 100644 --- a/web/src/locales/es/data.json +++ b/web/src/locales/es/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/fa/data.json b/web/src/locales/fa/data.json index ff1fc66e..c389ba2c 100644 --- a/web/src/locales/fa/data.json +++ b/web/src/locales/fa/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/fi/data.json b/web/src/locales/fi/data.json index f4634edb..605e18a3 100644 --- a/web/src/locales/fi/data.json +++ b/web/src/locales/fi/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/fr/data.json b/web/src/locales/fr/data.json index 235af726..96c2b5f7 100644 --- a/web/src/locales/fr/data.json +++ b/web/src/locales/fr/data.json @@ -562,7 +562,8 @@ "Verification failed": "Échec de la vérification", "Verify Code": "Vérifier le code", "Verify Password": "Confirmez le mot de passe", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Votre e-mail est", "Your phone is": "Votre téléphone est", "preferred": "préféré" diff --git a/web/src/locales/he/data.json b/web/src/locales/he/data.json index f4634edb..605e18a3 100644 --- a/web/src/locales/he/data.json +++ b/web/src/locales/he/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/id/data.json b/web/src/locales/id/data.json index f38c716e..5a5c9f29 100644 --- a/web/src/locales/id/data.json +++ b/web/src/locales/id/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/it/data.json b/web/src/locales/it/data.json index ca84e37b..5fdff86e 100644 --- a/web/src/locales/it/data.json +++ b/web/src/locales/it/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/ja/data.json b/web/src/locales/ja/data.json index 106f6d64..27efb318 100644 --- a/web/src/locales/ja/data.json +++ b/web/src/locales/ja/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/kk/data.json b/web/src/locales/kk/data.json index f4634edb..605e18a3 100644 --- a/web/src/locales/kk/data.json +++ b/web/src/locales/kk/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/ko/data.json b/web/src/locales/ko/data.json index abe75011..7135ecea 100644 --- a/web/src/locales/ko/data.json +++ b/web/src/locales/ko/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/ms/data.json b/web/src/locales/ms/data.json index f4634edb..605e18a3 100644 --- a/web/src/locales/ms/data.json +++ b/web/src/locales/ms/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/nl/data.json b/web/src/locales/nl/data.json index f4634edb..605e18a3 100644 --- a/web/src/locales/nl/data.json +++ b/web/src/locales/nl/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/pl/data.json b/web/src/locales/pl/data.json index f4634edb..605e18a3 100644 --- a/web/src/locales/pl/data.json +++ b/web/src/locales/pl/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/pt/data.json b/web/src/locales/pt/data.json index 8d174a5a..d0b21543 100644 --- a/web/src/locales/pt/data.json +++ b/web/src/locales/pt/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/ru/data.json b/web/src/locales/ru/data.json index 6097ae31..c2db5af9 100644 --- a/web/src/locales/ru/data.json +++ b/web/src/locales/ru/data.json @@ -562,7 +562,8 @@ "Verification failed": "Проверка не удалась", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Ваш email", "Your phone is": "Ваш телефон", "preferred": "preferred" diff --git a/web/src/locales/sk/data.json b/web/src/locales/sk/data.json index dbdab574..355d8a63 100644 --- a/web/src/locales/sk/data.json +++ b/web/src/locales/sk/data.json @@ -562,7 +562,8 @@ "Verification failed": "Overenie zlyhalo", "Verify Code": "Overiť kód", "Verify Password": "Overiť heslo", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Váš email je", "Your phone is": "Váš telefón je", "preferred": "preferované" diff --git a/web/src/locales/sv/data.json b/web/src/locales/sv/data.json index f4634edb..605e18a3 100644 --- a/web/src/locales/sv/data.json +++ b/web/src/locales/sv/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/tr/data.json b/web/src/locales/tr/data.json index 22ce122e..96eaa37d 100644 --- a/web/src/locales/tr/data.json +++ b/web/src/locales/tr/data.json @@ -562,7 +562,8 @@ "Verification failed": "Doğrulama başarısız", "Verify Code": "Kodu doğrula", "Verify Password": "Parolayı Doğrula", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "E-postanız", "Your phone is": "Telefon numaranız", "preferred": "tercih edilen" diff --git a/web/src/locales/uk/data.json b/web/src/locales/uk/data.json index 1c502f98..abb734c4 100644 --- a/web/src/locales/uk/data.json +++ b/web/src/locales/uk/data.json @@ -562,7 +562,8 @@ "Verification failed": "Не вдалося перевірити", "Verify Code": "Підтвердити код", "Verify Password": "Підтвердіть пароль", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Ваша електронна адреса", "Your phone is": "Ваш телефон", "preferred": "бажаний" diff --git a/web/src/locales/vi/data.json b/web/src/locales/vi/data.json index b5089796..69d23851 100644 --- a/web/src/locales/vi/data.json +++ b/web/src/locales/vi/data.json @@ -562,7 +562,8 @@ "Verification failed": "Verification failed", "Verify Code": "Verify Code", "Verify Password": "Verify Password", - "You have enabled multi-factor authentication, please enter the authentication code": "You have enabled multi-factor authentication, please enter the authentication code", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "You have enabled Multi-Factor Authentication, please enter the TOTP code", "Your email is": "Your email is", "Your phone is": "Your phone is", "preferred": "preferred" diff --git a/web/src/locales/zh/data.json b/web/src/locales/zh/data.json index 98ffc20a..23d67613 100644 --- a/web/src/locales/zh/data.json +++ b/web/src/locales/zh/data.json @@ -562,7 +562,8 @@ "Verification failed": "验证失败", "Verify Code": "验证码", "Verify Password": "验证密码", - "You have enabled multi-factor authentication, please enter the authentication code": "您已经启用多因素认证,请输入认证码", + "You have enabled Multi-Factor Authentication, Please click 'Send Code' to continue": "您已经启用多因素认证, 请点击 '发送验证码' 继续", + "You have enabled Multi-Factor Authentication, please enter the TOTP code": "您已经启用多因素认证,请输入TOTP认证码", "Your email is": "你的电子邮件", "Your phone is": "你的手机号", "preferred": "首选"