From 58f10b6a4ee10d8bf886914fc0538106c8d41a40 Mon Sep 17 00:00:00 2001 From: wangsijie Date: Wed, 20 Sep 2023 10:31:29 +0800 Subject: [PATCH] feat(phrases): add mfa totp phrases (#4559) --- packages/phrases/src/locales/de/errors/user.ts | 4 ++++ packages/phrases/src/locales/en/errors/user.ts | 2 ++ packages/phrases/src/locales/es/errors/user.ts | 4 ++++ packages/phrases/src/locales/fr/errors/user.ts | 4 ++++ packages/phrases/src/locales/it/errors/user.ts | 4 ++++ packages/phrases/src/locales/ja/errors/user.ts | 4 ++++ packages/phrases/src/locales/ko/errors/user.ts | 4 ++++ packages/phrases/src/locales/pl-pl/errors/user.ts | 4 ++++ packages/phrases/src/locales/pt-br/errors/user.ts | 4 ++++ packages/phrases/src/locales/pt-pt/errors/user.ts | 4 ++++ packages/phrases/src/locales/ru/errors/user.ts | 4 ++++ packages/phrases/src/locales/tr-tr/errors/user.ts | 4 ++++ packages/phrases/src/locales/zh-cn/errors/user.ts | 4 ++++ packages/phrases/src/locales/zh-hk/errors/user.ts | 4 ++++ packages/phrases/src/locales/zh-tw/errors/user.ts | 4 ++++ 15 files changed, 58 insertions(+) diff --git a/packages/phrases/src/locales/de/errors/user.ts b/packages/phrases/src/locales/de/errors/user.ts index 5d3e5cd0d..ac01b523d 100644 --- a/packages/phrases/src/locales/de/errors/user.ts +++ b/packages/phrases/src/locales/de/errors/user.ts @@ -34,6 +34,10 @@ const user = { role_exists: 'Die Rollen-ID {{roleId}} wurde diesem Benutzer bereits hinzugefügt.', invalid_role_type: 'Ungültiger Rollentyp, kann keine Maschinen-zu-Maschinen-Rolle einem Benutzer zuweisen.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/en/errors/user.ts b/packages/phrases/src/locales/en/errors/user.ts index a48afc2d5..a9ba6fc6c 100644 --- a/packages/phrases/src/locales/en/errors/user.ts +++ b/packages/phrases/src/locales/en/errors/user.ts @@ -29,6 +29,8 @@ const user = { missing_profile: 'You need to provide additional info before signing-in.', role_exists: 'The role id {{roleId}} is already been added to this user', invalid_role_type: 'Invalid role type, can not assign machine-to-machine role to user.', + missing_mfa: 'You need to bind additional MFA before signing-in.', + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/es/errors/user.ts b/packages/phrases/src/locales/es/errors/user.ts index e7c8cdb2a..2e61357de 100644 --- a/packages/phrases/src/locales/es/errors/user.ts +++ b/packages/phrases/src/locales/es/errors/user.ts @@ -31,6 +31,10 @@ const user = { role_exists: 'El id de rol {{roleId}} ya ha sido agregado a este usuario', invalid_role_type: 'Tipo de rol no válido, no se puede asignar un rol de máquina a máquina a un usuario.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/fr/errors/user.ts b/packages/phrases/src/locales/fr/errors/user.ts index 08df2da7b..161d553eb 100644 --- a/packages/phrases/src/locales/fr/errors/user.ts +++ b/packages/phrases/src/locales/fr/errors/user.ts @@ -30,6 +30,10 @@ const user = { role_exists: "L'ID de rôle {{roleId}} a déjà été ajouté à cet utilisateur", invalid_role_type: 'Le type de rôle est invalide, il est impossible d\'assigner un rôle "machine-to-machine" à un utilisateur.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/it/errors/user.ts b/packages/phrases/src/locales/it/errors/user.ts index 70f1275de..5c888a6ac 100644 --- a/packages/phrases/src/locales/it/errors/user.ts +++ b/packages/phrases/src/locales/it/errors/user.ts @@ -30,6 +30,10 @@ const user = { role_exists: "L'ID ruolo {{roleId}} è già stato aggiunto a questo utente", invalid_role_type: 'Tipo di ruolo non valido, non è possibile assegnare un ruolo da macchina a utente.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/ja/errors/user.ts b/packages/phrases/src/locales/ja/errors/user.ts index c6ca490e3..33a77bc27 100644 --- a/packages/phrases/src/locales/ja/errors/user.ts +++ b/packages/phrases/src/locales/ja/errors/user.ts @@ -30,6 +30,10 @@ const user = { role_exists: 'このユーザーには既に役割ID {{roleId}}が追加されています。', invalid_role_type: '役割タイプが無効です。ユーザーにはマシン対マシンの役割を割り当てることはできません。', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/ko/errors/user.ts b/packages/phrases/src/locales/ko/errors/user.ts index 88c5e777f..0b259ff69 100644 --- a/packages/phrases/src/locales/ko/errors/user.ts +++ b/packages/phrases/src/locales/ko/errors/user.ts @@ -29,6 +29,10 @@ const user = { role_exists: '역할 ID {{roleId}}은/는 이미 이 사용자에게 할당되어 있어요.', invalid_role_type: '유효하지 않은 역할 유형입니다. 사용자에게 기계 대 기계 역할을 할당할 수 없습니다.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/pl-pl/errors/user.ts b/packages/phrases/src/locales/pl-pl/errors/user.ts index 0c063cd6b..23b0a7216 100644 --- a/packages/phrases/src/locales/pl-pl/errors/user.ts +++ b/packages/phrases/src/locales/pl-pl/errors/user.ts @@ -30,6 +30,10 @@ const user = { missing_profile: 'Musisz podać dodatkowe informacje przed zalogowaniem.', role_exists: 'Identyfikator roli {{roleId}} jest już dodany do tego użytkownika', invalid_role_type: 'Nieprawidłowy typ roli, nie można przypisać roli maszynowej do użytkownika.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/pt-br/errors/user.ts b/packages/phrases/src/locales/pt-br/errors/user.ts index 99ce743b9..d294152b0 100644 --- a/packages/phrases/src/locales/pt-br/errors/user.ts +++ b/packages/phrases/src/locales/pt-br/errors/user.ts @@ -30,6 +30,10 @@ const user = { role_exists: 'O id da função {{roleId}} já foi adicionado a este usuário', invalid_role_type: 'Tipo de função inválido, não é possível atribuir uma função máquina a usuário.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/pt-pt/errors/user.ts b/packages/phrases/src/locales/pt-pt/errors/user.ts index 1e40759f1..4e9ee2f93 100644 --- a/packages/phrases/src/locales/pt-pt/errors/user.ts +++ b/packages/phrases/src/locales/pt-pt/errors/user.ts @@ -30,6 +30,10 @@ const user = { role_exists: 'O id da função {{roleId}} já foi adicionado a este utilizador.', invalid_role_type: 'Tipo de função inválido, não é possível atribuir uma função máquina a máquina ao utilizador.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/ru/errors/user.ts b/packages/phrases/src/locales/ru/errors/user.ts index 9d7a464e1..7d94582fb 100644 --- a/packages/phrases/src/locales/ru/errors/user.ts +++ b/packages/phrases/src/locales/ru/errors/user.ts @@ -30,6 +30,10 @@ const user = { missing_profile: 'Вы должны предоставить дополнительную информацию перед входом в систему.', role_exists: 'Идентификатор роли {{roleId}} уже добавлен в этого пользователя', invalid_role_type: 'Недопустимый тип роли, роль машины к машине нельзя назначить пользователю.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/tr-tr/errors/user.ts b/packages/phrases/src/locales/tr-tr/errors/user.ts index 101f36e23..1c3310009 100644 --- a/packages/phrases/src/locales/tr-tr/errors/user.ts +++ b/packages/phrases/src/locales/tr-tr/errors/user.ts @@ -29,6 +29,10 @@ const user = { missing_profile: 'Oturum açmadan önce ek bilgi sağlamanız gerekiyor.', role_exists: '{{roleId}} rol kimliği bu kullanıcıya zaten eklenmiştir.', invalid_role_type: 'Geçersiz rol türü, makine-makine rolü kullanıcıya atanamaz.', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/zh-cn/errors/user.ts b/packages/phrases/src/locales/zh-cn/errors/user.ts index 7986f1be6..42c9cb7e1 100644 --- a/packages/phrases/src/locales/zh-cn/errors/user.ts +++ b/packages/phrases/src/locales/zh-cn/errors/user.ts @@ -28,6 +28,10 @@ const user = { missing_profile: '请于登录时提供必要的用户补充信息。', role_exists: '角色 ID {{roleId}} 已添加到此用户', invalid_role_type: '无效的角色类型,无法将机器到机器角色分配给用户。', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/zh-hk/errors/user.ts b/packages/phrases/src/locales/zh-hk/errors/user.ts index be3975942..e0feb7174 100644 --- a/packages/phrases/src/locales/zh-hk/errors/user.ts +++ b/packages/phrases/src/locales/zh-hk/errors/user.ts @@ -28,6 +28,10 @@ const user = { missing_profile: '請於登錄時提供必要的使用者補充資訊。', role_exists: '角色 ID {{roleId}} 已添加到此使用者', invalid_role_type: '無法設置機械到機械角色給使用者。', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user); diff --git a/packages/phrases/src/locales/zh-tw/errors/user.ts b/packages/phrases/src/locales/zh-tw/errors/user.ts index f874f9a56..763538120 100644 --- a/packages/phrases/src/locales/zh-tw/errors/user.ts +++ b/packages/phrases/src/locales/zh-tw/errors/user.ts @@ -28,6 +28,10 @@ const user = { missing_profile: '請於登錄時提供必要的用戶補充信息。', role_exists: '角色 ID {{roleId}} 已添加到此用戶', invalid_role_type: '無效角色類型,無法將機器對機器角色分配給用戶。', + /** UNTRANSLATED */ + missing_mfa: 'You need to bind additional MFA before signing-in.', + /** UNTRANSLATED */ + totp_already_in_use: 'TOTP is already in use.', }; export default Object.freeze(user);