From 4402141b0e66b20f07c48608c9f6c4b4e88c0177 Mon Sep 17 00:00:00 2001 From: wangsijie Date: Fri, 20 Oct 2023 15:07:06 +0800 Subject: [PATCH] feat(phrases): add backup code phrases (#4686) --- packages/phrases/src/locales/de/errors/session.ts | 6 ++++++ packages/phrases/src/locales/en/errors/session.ts | 3 +++ packages/phrases/src/locales/es/errors/session.ts | 6 ++++++ packages/phrases/src/locales/fr/errors/session.ts | 6 ++++++ packages/phrases/src/locales/it/errors/session.ts | 6 ++++++ packages/phrases/src/locales/ja/errors/session.ts | 6 ++++++ packages/phrases/src/locales/ko/errors/session.ts | 6 ++++++ packages/phrases/src/locales/pl-pl/errors/session.ts | 6 ++++++ packages/phrases/src/locales/pt-br/errors/session.ts | 6 ++++++ packages/phrases/src/locales/pt-pt/errors/session.ts | 6 ++++++ packages/phrases/src/locales/ru/errors/session.ts | 6 ++++++ packages/phrases/src/locales/tr-tr/errors/session.ts | 6 ++++++ packages/phrases/src/locales/zh-cn/errors/session.ts | 6 ++++++ packages/phrases/src/locales/zh-hk/errors/session.ts | 6 ++++++ packages/phrases/src/locales/zh-tw/errors/session.ts | 6 ++++++ 15 files changed, 87 insertions(+) diff --git a/packages/phrases/src/locales/de/errors/session.ts b/packages/phrases/src/locales/de/errors/session.ts index d68082394..f6c5020a6 100644 --- a/packages/phrases/src/locales/de/errors/session.ts +++ b/packages/phrases/src/locales/de/errors/session.ts @@ -41,6 +41,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/en/errors/session.ts b/packages/phrases/src/locales/en/errors/session.ts index 46443c7d6..6529abf41 100644 --- a/packages/phrases/src/locales/en/errors/session.ts +++ b/packages/phrases/src/locales/en/errors/session.ts @@ -30,6 +30,9 @@ const session = { webauthn_verification_failed: 'WebAuthn verification failed.', webauthn_verification_not_found: 'WebAuthn verification not found.', bind_mfa_existed: 'MFA already exists.', + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + backup_code_required: 'Backup code is required.', + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/es/errors/session.ts b/packages/phrases/src/locales/es/errors/session.ts index e21576f8d..de246a0f6 100644 --- a/packages/phrases/src/locales/es/errors/session.ts +++ b/packages/phrases/src/locales/es/errors/session.ts @@ -42,6 +42,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/fr/errors/session.ts b/packages/phrases/src/locales/fr/errors/session.ts index 5f05d8143..b3ca91137 100644 --- a/packages/phrases/src/locales/fr/errors/session.ts +++ b/packages/phrases/src/locales/fr/errors/session.ts @@ -43,6 +43,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/it/errors/session.ts b/packages/phrases/src/locales/it/errors/session.ts index cb0b350cb..c14fa1572 100644 --- a/packages/phrases/src/locales/it/errors/session.ts +++ b/packages/phrases/src/locales/it/errors/session.ts @@ -41,6 +41,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/ja/errors/session.ts b/packages/phrases/src/locales/ja/errors/session.ts index 8cd09c8e7..3378f4072 100644 --- a/packages/phrases/src/locales/ja/errors/session.ts +++ b/packages/phrases/src/locales/ja/errors/session.ts @@ -39,6 +39,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/ko/errors/session.ts b/packages/phrases/src/locales/ko/errors/session.ts index 3b58fbafa..3b7c663db 100644 --- a/packages/phrases/src/locales/ko/errors/session.ts +++ b/packages/phrases/src/locales/ko/errors/session.ts @@ -38,6 +38,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/pl-pl/errors/session.ts b/packages/phrases/src/locales/pl-pl/errors/session.ts index bdf377099..6934c40f2 100644 --- a/packages/phrases/src/locales/pl-pl/errors/session.ts +++ b/packages/phrases/src/locales/pl-pl/errors/session.ts @@ -40,6 +40,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/pt-br/errors/session.ts b/packages/phrases/src/locales/pt-br/errors/session.ts index 7ac60532c..239a68ab2 100644 --- a/packages/phrases/src/locales/pt-br/errors/session.ts +++ b/packages/phrases/src/locales/pt-br/errors/session.ts @@ -41,6 +41,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/pt-pt/errors/session.ts b/packages/phrases/src/locales/pt-pt/errors/session.ts index d878a03f2..859150b83 100644 --- a/packages/phrases/src/locales/pt-pt/errors/session.ts +++ b/packages/phrases/src/locales/pt-pt/errors/session.ts @@ -43,6 +43,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/ru/errors/session.ts b/packages/phrases/src/locales/ru/errors/session.ts index 2f3e08597..e2d2202f4 100644 --- a/packages/phrases/src/locales/ru/errors/session.ts +++ b/packages/phrases/src/locales/ru/errors/session.ts @@ -39,6 +39,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/tr-tr/errors/session.ts b/packages/phrases/src/locales/tr-tr/errors/session.ts index 5281198d0..a63ff40af 100644 --- a/packages/phrases/src/locales/tr-tr/errors/session.ts +++ b/packages/phrases/src/locales/tr-tr/errors/session.ts @@ -40,6 +40,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/zh-cn/errors/session.ts b/packages/phrases/src/locales/zh-cn/errors/session.ts index 4665a73d0..3709cf3d2 100644 --- a/packages/phrases/src/locales/zh-cn/errors/session.ts +++ b/packages/phrases/src/locales/zh-cn/errors/session.ts @@ -35,6 +35,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/zh-hk/errors/session.ts b/packages/phrases/src/locales/zh-hk/errors/session.ts index 7e6e5efbc..88002fa55 100644 --- a/packages/phrases/src/locales/zh-hk/errors/session.ts +++ b/packages/phrases/src/locales/zh-hk/errors/session.ts @@ -35,6 +35,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, }; diff --git a/packages/phrases/src/locales/zh-tw/errors/session.ts b/packages/phrases/src/locales/zh-tw/errors/session.ts index cafbafc24..b2b6753c5 100644 --- a/packages/phrases/src/locales/zh-tw/errors/session.ts +++ b/packages/phrases/src/locales/zh-tw/errors/session.ts @@ -35,6 +35,12 @@ const session = { webauthn_verification_not_found: 'WebAuthn verification not found.', /** UNTRANSLATED */ bind_mfa_existed: 'MFA already exists.', + /** UNTRANSLATED */ + backup_code_can_not_be_alone: 'Backup code can not be the only MFA.', + /** UNTRANSLATED */ + backup_code_required: 'Backup code is required.', + /** UNTRANSLATED */ + invalid_backup_code: 'Invalid backup code.', }, };