From b12e0de48cba62e753cfd6fd0061e591584330cd Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Tue, 25 Jun 2024 05:05:08 +0800 Subject: [PATCH] refactor(experience,phrases): update resend passcode phrases --- .../src/containers/VerificationCode/index.tsx | 36 +++++++++++-------- .../src/locales/de/description.ts | 4 +-- .../src/locales/en/description.ts | 4 +-- .../src/locales/es/description.ts | 5 +-- .../src/locales/fr/description.ts | 4 +-- .../src/locales/it/description.ts | 4 +-- .../src/locales/ja/description.ts | 4 +-- .../src/locales/ko/description.ts | 4 +-- .../src/locales/pl-pl/description.ts | 5 +-- .../src/locales/pt-br/description.ts | 4 +-- .../src/locales/pt-pt/description.ts | 4 +-- .../src/locales/ru/description.ts | 4 +-- .../src/locales/tr-tr/description.ts | 4 +-- .../src/locales/zh-cn/description.ts | 4 +-- .../src/locales/zh-hk/description.ts | 4 +-- .../src/locales/zh-tw/description.ts | 4 +-- 16 files changed, 53 insertions(+), 45 deletions(-) diff --git a/packages/experience/src/containers/VerificationCode/index.tsx b/packages/experience/src/containers/VerificationCode/index.tsx index 8d3732639d17..ecd180b67a07 100644 --- a/packages/experience/src/containers/VerificationCode/index.tsx +++ b/packages/experience/src/containers/VerificationCode/index.tsx @@ -61,24 +61,30 @@ const VerificationCode = ({ flow, identifier, className, hasPasswordButton, targ error={errorMessage} onChange={setCode} /> - {isRunning ? ( -
+
+ {isRunning ? ( }}> {t('description.resend_after_seconds', { seconds })} -
- ) : ( - { - clearErrorMessage(); - await onResendVerificationCode(); - setCode([]); - }} - /> - )} - + ) : ( + { + clearErrorMessage(); + await onResendVerificationCode(); + setCode([]); + }} + /> + ), + }} + > + {t('description.resend_passcode')} + + )} +
{flow === UserFlow.SignIn && hasPasswordButton && ( )} diff --git a/packages/phrases-experience/src/locales/de/description.ts b/packages/phrases-experience/src/locales/de/description.ts index a9b4070c9d59..1f8e5316c3c5 100644 --- a/packages/phrases-experience/src/locales/de/description.ts +++ b/packages/phrases-experience/src/locales/de/description.ts @@ -14,8 +14,8 @@ const description = { and: 'und', enter_passcode: 'Der Bestätigungscode wurde an deine {{address}} gesendet', passcode_sent: 'Der Bestätigungscode wurde erneut gesendet', - resend_after_seconds: 'Nach {{seconds}} Sekunden erneut senden', - resend_passcode: 'Bestätigungscode erneut senden', + resend_after_seconds: 'Noch nicht erhalten? Erneut senden nach {{seconds}} Sekunden', + resend_passcode: 'Noch nicht erhalten? Bestätigungscode erneut senden', create_account_id_exists: 'Das Konto mit {{type}} {{value}} existiert bereits, möchtest du dich anmelden?', link_account_id_exists: diff --git a/packages/phrases-experience/src/locales/en/description.ts b/packages/phrases-experience/src/locales/en/description.ts index a4c6b3c4389e..48a8f3dfe6e7 100644 --- a/packages/phrases-experience/src/locales/en/description.ts +++ b/packages/phrases-experience/src/locales/en/description.ts @@ -14,8 +14,8 @@ const description = { and: 'and', enter_passcode: 'The verification code has been sent to your {{address}} {{target}}', passcode_sent: 'The verification code has been resent', - resend_after_seconds: 'Resend after {{seconds}} seconds', - resend_passcode: 'Resend verification code', + resend_after_seconds: 'Not received yet? Resend after {{seconds}} seconds', + resend_passcode: 'Not received yet? Resend verification code', create_account_id_exists: 'The account with {{type}} {{value}} already exists, would you like to sign in?', link_account_id_exists: diff --git a/packages/phrases-experience/src/locales/es/description.ts b/packages/phrases-experience/src/locales/es/description.ts index c3464f1dbdd8..a26a05893fd0 100644 --- a/packages/phrases-experience/src/locales/es/description.ts +++ b/packages/phrases-experience/src/locales/es/description.ts @@ -14,8 +14,9 @@ const description = { and: 'y', enter_passcode: 'El código de verificación ha sido enviado a su {{address}} {{target}}', passcode_sent: 'El código de verificación ha sido reenviado', - resend_after_seconds: 'Reenviar después de {{seconds}} segundos', - resend_passcode: 'Reenviar código de verificación', + resend_after_seconds: + '¿No lo has recibido? Reenviar después de {{seconds}} segundos', + resend_passcode: '¿No lo has recibido? Reenviar código de verificación', create_account_id_exists: 'La cuenta con {{type}} {{value}} ya existe, ¿desea iniciar sesión?', link_account_id_exists: 'La cuenta con {{type}} {{value}} ya existe. ¿Desea vincular?', sign_in_id_does_not_exist: diff --git a/packages/phrases-experience/src/locales/fr/description.ts b/packages/phrases-experience/src/locales/fr/description.ts index ac844fe3cb29..6d829b8ef5f2 100644 --- a/packages/phrases-experience/src/locales/fr/description.ts +++ b/packages/phrases-experience/src/locales/fr/description.ts @@ -14,8 +14,8 @@ const description = { and: 'et', enter_passcode: 'Le code a été envoyé à {{address}} {{target}}', passcode_sent: 'Le code a été renvoyé', - resend_after_seconds: 'Renvoyer après {{seconds}} secondes', - resend_passcode: 'Renvoyer le code', + resend_after_seconds: 'Pas encore reçu ? Renvoyer après {{seconds}} secondes', + resend_passcode: 'Pas encore reçu ? Renvoyer le code de vérification', create_account_id_exists: 'Le compte avec {{type}} {{value}} existe déjà, voulez-vous vous connecter?', link_account_id_exists: 'Le compte avec {{type}} {{value}} existe déjà, voulez-vous le lier?', diff --git a/packages/phrases-experience/src/locales/it/description.ts b/packages/phrases-experience/src/locales/it/description.ts index 734f6d548b11..91cd6c3d937d 100644 --- a/packages/phrases-experience/src/locales/it/description.ts +++ b/packages/phrases-experience/src/locales/it/description.ts @@ -14,8 +14,8 @@ const description = { and: 'e', enter_passcode: 'Il codice di verifica è stato inviato alla tua {{address}} {{target}}', passcode_sent: 'Il codice di verifica è stato inviato di nuovo', - resend_after_seconds: 'Inviare di nuovo dopo {{seconds}} secondi', - resend_passcode: 'Inviare nuovamente il codice di verifica', + resend_after_seconds: 'Non ricevuto? Invia di nuovo dopo {{seconds}} secondi', + resend_passcode: 'Non ricevuto? Invia di nuovo il codice di verifica', create_account_id_exists: "L'account con {{type}} {{value}} già esiste, vuoi accedere?", link_account_id_exists: "L'account con {{type}} {{value}} è già esistente. Vuoi collegarlo?", sign_in_id_does_not_exist: diff --git a/packages/phrases-experience/src/locales/ja/description.ts b/packages/phrases-experience/src/locales/ja/description.ts index d46650b94c2f..8e2617601a6d 100644 --- a/packages/phrases-experience/src/locales/ja/description.ts +++ b/packages/phrases-experience/src/locales/ja/description.ts @@ -14,8 +14,8 @@ const description = { and: '及び', enter_passcode: '確認コードが{{address}} {{target}}に送信されました', passcode_sent: '確認コードを再送します', - resend_after_seconds: '{{seconds}}秒後に再送信', - resend_passcode: '確認コードを再送信します', + resend_after_seconds: 'まだ届いていませんか? {{seconds}} 秒後に再送', + resend_passcode: 'まだ届いていませんか? 認証コードを再送', create_account_id_exists: '{{type}} {{value}}でアカウントが既に存在しています。ログインしますか?', link_account_id_exists: '{{type}} {{value}}でアカウントが既に存在しています。リンクしますか?', diff --git a/packages/phrases-experience/src/locales/ko/description.ts b/packages/phrases-experience/src/locales/ko/description.ts index 8abcd22f474e..875994bc2e26 100644 --- a/packages/phrases-experience/src/locales/ko/description.ts +++ b/packages/phrases-experience/src/locales/ko/description.ts @@ -14,8 +14,8 @@ const description = { and: '그리고', enter_passcode: '{{address}} {{target}} 으로 비밀번호가 전송되었어요.', passcode_sent: '비밀번호가 재전송되었어요.', - resend_after_seconds: '{{seconds}} 초 후에 재전송', - resend_passcode: '비밀번호 재전송', + resend_after_seconds: '아직 못 받으셨나요? {{seconds}} 초 후에 다시 보내기', + resend_passcode: '아직 못 받으셨나요? 인증 코드를 다시 보내기', create_account_id_exists: '{{type}} {{value}} 계정은 다른 계정과 연결되어 있습니다. 다른 {{type}}을(를) 시도해주세요.', link_account_id_exists: '{{type}} {{value}}와/과 연동된 계정이 이미 존재해요. 연동할까요?', diff --git a/packages/phrases-experience/src/locales/pl-pl/description.ts b/packages/phrases-experience/src/locales/pl-pl/description.ts index 1c13236213d1..9bce984ab9a4 100644 --- a/packages/phrases-experience/src/locales/pl-pl/description.ts +++ b/packages/phrases-experience/src/locales/pl-pl/description.ts @@ -14,8 +14,9 @@ const description = { and: 'i', enter_passcode: 'Kod weryfikacyjny został wysłany na twoje {{address}} {{target}}', passcode_sent: 'Kod weryfikacyjny został wysłany ponownie', - resend_after_seconds: 'Wyślij ponownie po {{seconds}} sekundach', - resend_passcode: 'Wyślij kod weryfikacyjny ponownie', + resend_after_seconds: + 'Nie otrzymałeś jeszcze? Wyślij ponownie za {{seconds}} sekund', + resend_passcode: 'Nie otrzymałeś jeszcze? Wyślij ponownie kod weryfikacyjny', create_account_id_exists: 'Konto z {{type}} {{value}} już istnieje. Czy chcesz się zalogować?', link_account_id_exists: 'Konto z {{type}} {{value}} już istnieje. Czy chcesz je połączyć?', sign_in_id_does_not_exist: diff --git a/packages/phrases-experience/src/locales/pt-br/description.ts b/packages/phrases-experience/src/locales/pt-br/description.ts index 51a0bac5ba40..08ca8d690ac9 100644 --- a/packages/phrases-experience/src/locales/pt-br/description.ts +++ b/packages/phrases-experience/src/locales/pt-br/description.ts @@ -14,8 +14,8 @@ const description = { and: 'e', enter_passcode: 'O código de verificação foi enviado para o seu {{address}} {{target}}', passcode_sent: 'O código de verificação foi reenviado', - resend_after_seconds: 'Reenviar depois {{seconds}} segundos', - resend_passcode: 'Reenviar código de verificação', + resend_after_seconds: 'Ainda não recebeu? Reenviar após {{seconds}} segundos', + resend_passcode: 'Ainda não recebeu? Reenviar código de verificação', create_account_id_exists: 'A conta com {{type}} {{value}} já existe, gostaria de entrar?', link_account_id_exists: 'A conta com {{type}} {{value}} já existe, gostaria de vincular?', sign_in_id_does_not_exist: diff --git a/packages/phrases-experience/src/locales/pt-pt/description.ts b/packages/phrases-experience/src/locales/pt-pt/description.ts index f46f669e7e04..3a997738af00 100644 --- a/packages/phrases-experience/src/locales/pt-pt/description.ts +++ b/packages/phrases-experience/src/locales/pt-pt/description.ts @@ -14,8 +14,8 @@ const description = { and: 'e', enter_passcode: 'O código de verificação foi enviado para o seu {{address}} {{target}}', passcode_sent: 'O código de verificação foi reenviado', - resend_after_seconds: 'Reenviar após {{seconds}} segundos', - resend_passcode: 'Reenviar código de verificação', + resend_after_seconds: 'Ainda não recebeu? Reenviar após {{seconds}} segundos', + resend_passcode: 'Ainda não recebeu? Reenviar código de verificação', create_account_id_exists: 'A conta com {{type}} {{value}} já existe, gostaria de fazer login?', link_account_id_exists: 'A conta com {{type}} {{value}} já existe, gostaria de vinculá-la?', sign_in_id_does_not_exist: 'A conta com {{type}} {{value}} não existe, gostaria de criar uma?', diff --git a/packages/phrases-experience/src/locales/ru/description.ts b/packages/phrases-experience/src/locales/ru/description.ts index b6f7259677a6..ddb129bfef00 100644 --- a/packages/phrases-experience/src/locales/ru/description.ts +++ b/packages/phrases-experience/src/locales/ru/description.ts @@ -14,8 +14,8 @@ const description = { and: 'и', enter_passcode: 'Код подтверждения был отправлен на {{address}}', passcode_sent: 'Код подтверждения был отправлен повторно', - resend_after_seconds: 'Отправить повторно через {{seconds}} сек.', - resend_passcode: 'Отправить повторно', + resend_after_seconds: 'Еще не получили? Отправить повторно через {{seconds}} секунд', + resend_passcode: 'Еще не получили? Отправить повторно код подтверждения', create_account_id_exists: 'Учетная запись для {{value}} уже существует, хотите войти?', link_account_id_exists: 'Учетная запись для {{value}} уже существует, хотите привязать?', sign_in_id_does_not_exist: diff --git a/packages/phrases-experience/src/locales/tr-tr/description.ts b/packages/phrases-experience/src/locales/tr-tr/description.ts index 6163506d69a8..490e00de2cfe 100644 --- a/packages/phrases-experience/src/locales/tr-tr/description.ts +++ b/packages/phrases-experience/src/locales/tr-tr/description.ts @@ -14,8 +14,8 @@ const description = { and: 've', enter_passcode: 'Doğrulama kodu {{address}} {{target}} adresinize gönderildi', passcode_sent: 'Doğrulama kodu yeniden gönderildi', - resend_after_seconds: '{{seconds}} saniye sonra tekrar gönder', - resend_passcode: 'Doğrulama kodunu tekrar gönder', + resend_after_seconds: 'Henüz almadınız mı? {{seconds}} saniye sonra tekrar gönderin', + resend_passcode: 'Henüz almadınız mı? Doğrulama kodunu tekrar gönderin', create_account_id_exists: '{{type}} {{value}} ile hesap mevcut, giriş yapmak ister misiniz?', link_account_id_exists: '{{type}} {{value}} olan hesap zaten var, bağlamak ister misiniz?', sign_in_id_does_not_exist: diff --git a/packages/phrases-experience/src/locales/zh-cn/description.ts b/packages/phrases-experience/src/locales/zh-cn/description.ts index cbc2946b4de2..ebbff55278dd 100644 --- a/packages/phrases-experience/src/locales/zh-cn/description.ts +++ b/packages/phrases-experience/src/locales/zh-cn/description.ts @@ -14,8 +14,8 @@ const description = { and: '和', enter_passcode: '验证码已经发送至你的{{ address }} {{target}}', passcode_sent: '验证码已经发送', - resend_after_seconds: '在 {{ seconds }} 秒后重发', - resend_passcode: '重发验证码', + resend_after_seconds: '还没收到? {{seconds}} 秒后重发', + resend_passcode: '还没收到? 重发验证码', create_account_id_exists: '{{type}}为 {{value}} 的帐号已存在,你要登录吗?', link_account_id_exists: ' {{type}}为 {{value}} 的账号已注册,你要绑定至这个账号吗?', sign_in_id_does_not_exist: '{{type}}为 {{value}} 的帐号不存在,你要创建一个新帐号吗?', diff --git a/packages/phrases-experience/src/locales/zh-hk/description.ts b/packages/phrases-experience/src/locales/zh-hk/description.ts index c451a1ccd01d..867aa2426419 100644 --- a/packages/phrases-experience/src/locales/zh-hk/description.ts +++ b/packages/phrases-experience/src/locales/zh-hk/description.ts @@ -14,8 +14,8 @@ const description = { and: '和', enter_passcode: '驗證碼已經發送至你的{{ address }} {{target}}', passcode_sent: '驗證碼已經發送', - resend_after_seconds: '在 {{ seconds }} 秒後重發', - resend_passcode: '重發驗證碼', + resend_after_seconds: '還沒收到? {{seconds}} 秒後重發', + resend_passcode: '還沒收到? 重發驗證碼', create_account_id_exists: '{{type}}為 {{value}} 的帳號已存在,你要登錄嗎?', link_account_id_exists: ' {{type}}為 {{value}} 的帳號已註冊,你要綁定至這個帳號嗎?', sign_in_id_does_not_exist: '{{type}}為 {{value}} 的帳號不存在,你要創建一個新帳號嗎?', diff --git a/packages/phrases-experience/src/locales/zh-tw/description.ts b/packages/phrases-experience/src/locales/zh-tw/description.ts index 5b818c4ada86..ef05f7f1ccc3 100644 --- a/packages/phrases-experience/src/locales/zh-tw/description.ts +++ b/packages/phrases-experience/src/locales/zh-tw/description.ts @@ -14,8 +14,8 @@ const description = { and: '和', enter_passcode: '驗證碼已經發送至你的{{address}} {{target}}', passcode_sent: '驗證碼已經發送', - resend_after_seconds: '在 {{seconds}} 秒後重新發送', - resend_passcode: '重新發送驗證碼', + resend_after_seconds: '還沒收到? {{seconds}} 秒後重發', + resend_passcode: '還沒收到? 重發驗證碼', create_account_id_exists: '{{type}} 為 {{value}} 的帳號已存在,你要登錄嗎?', link_account_id_exists: ' {{type}} 為 {{value}} 的帳號已註冊,你要綁定至這個帳號嗎?', sign_in_id_does_not_exist: '{{type}} 為 {{value}} 的帳號不存在,你要創建一個新帳號嗎?',