From 2b7346664ddfd9cc269f62fdaa36f2442438566c Mon Sep 17 00:00:00 2001 From: ektaghag-eaton Date: Wed, 4 Oct 2023 19:42:07 +0530 Subject: [PATCH] Add new key for responseTime prop --- .../src/contexts/AuthContext/AuthDictionaries/chinese.ts | 1 + .../src/contexts/AuthContext/AuthDictionaries/english.ts | 1 + .../src/contexts/AuthContext/AuthDictionaries/french.ts | 1 + .../src/contexts/AuthContext/AuthDictionaries/portuguese.ts | 1 + .../src/contexts/AuthContext/AuthDictionaries/spanish.ts | 1 + .../src/contexts/AuthContext/AuthDictionaries/types.ts | 1 + .../src/screens/ForgotPasswordScreen/ForgotPasswordScreen.tsx | 2 +- 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/login-workflow/src/contexts/AuthContext/AuthDictionaries/chinese.ts b/login-workflow/src/contexts/AuthContext/AuthDictionaries/chinese.ts index 1596d51a..f710fcad 100644 --- a/login-workflow/src/contexts/AuthContext/AuthDictionaries/chinese.ts +++ b/login-workflow/src/contexts/AuthContext/AuthDictionaries/chinese.ts @@ -15,6 +15,7 @@ const resources: AuthLanguageFile = { RESET_CODE_ERROR: '您的密码重置链接无效。', LINK_SENT: '已向{{email}}发送了密码重置链接。', LINK_SENT_ALT: '已向<1>{{email}}发送了密码重置链接。', + RESPONSE_TIME: '一个工作日', }, LOGIN: { INCORRECT_CREDENTIALS: '邮箱地址或密码错误', diff --git a/login-workflow/src/contexts/AuthContext/AuthDictionaries/english.ts b/login-workflow/src/contexts/AuthContext/AuthDictionaries/english.ts index a24a9bcb..ab951221 100644 --- a/login-workflow/src/contexts/AuthContext/AuthDictionaries/english.ts +++ b/login-workflow/src/contexts/AuthContext/AuthDictionaries/english.ts @@ -15,6 +15,7 @@ const resources: AuthLanguageFile = { RESET_CODE_ERROR: 'There was an error with your reset code. ', LINK_SENT: 'A link to reset your password has been sent to {{email}}.', LINK_SENT_ALT: 'A link to reset your password has been sent to <1>{{email}}.', + RESPONSE_TIME: 'one business day', }, LOGIN: { INCORRECT_CREDENTIALS: 'Incorrect Email or Password', diff --git a/login-workflow/src/contexts/AuthContext/AuthDictionaries/french.ts b/login-workflow/src/contexts/AuthContext/AuthDictionaries/french.ts index 4f8059d1..1c0e6f7b 100644 --- a/login-workflow/src/contexts/AuthContext/AuthDictionaries/french.ts +++ b/login-workflow/src/contexts/AuthContext/AuthDictionaries/french.ts @@ -15,6 +15,7 @@ const resources: AuthLanguageFile = { RESET_CODE_ERROR: `Une erreur s'est produite avec votre code de réinitialisation. `, LINK_SENT: 'Un lien pour réinitialiser votre mot de passe a été envoyé à {{email}}.', LINK_SENT_ALT: 'Un lien pour réinitialiser votre mot de passe a été envoyé à <1>{{email}}.', + RESPONSE_TIME: 'un jour ouvrable', }, LOGIN: { INCORRECT_CREDENTIALS: 'Email ou mot de passe incorrect', diff --git a/login-workflow/src/contexts/AuthContext/AuthDictionaries/portuguese.ts b/login-workflow/src/contexts/AuthContext/AuthDictionaries/portuguese.ts index 91e248e4..666a9c1b 100644 --- a/login-workflow/src/contexts/AuthContext/AuthDictionaries/portuguese.ts +++ b/login-workflow/src/contexts/AuthContext/AuthDictionaries/portuguese.ts @@ -15,6 +15,7 @@ const resources: AuthLanguageFile = { RESET_CODE_ERROR: 'Houve um problema com o código de redefinição.', LINK_SENT: 'Um link para redefinir a palavra-passe foi enviado para {{email}}.', LINK_SENT_ALT: 'Um link para redefinir a palavra-passe foi enviado para <1>{{email}}.', + RESPONSE_TIME: 'um dia útil', }, LOGIN: { INCORRECT_CREDENTIALS: 'E-mail ou palavra-passe incorretos.', diff --git a/login-workflow/src/contexts/AuthContext/AuthDictionaries/spanish.ts b/login-workflow/src/contexts/AuthContext/AuthDictionaries/spanish.ts index 9f00a205..b24bd838 100644 --- a/login-workflow/src/contexts/AuthContext/AuthDictionaries/spanish.ts +++ b/login-workflow/src/contexts/AuthContext/AuthDictionaries/spanish.ts @@ -15,6 +15,7 @@ const resources: AuthLanguageFile = { RESET_CODE_ERROR: 'Hubo un error con su código de reinicio. ', LINK_SENT: 'Se envió un vínculo para restablecer su contraseña a {{email}} .', LINK_SENT_ALT: 'Se envió un vínculo para restablecer su contraseña a <1> {{email}} .', + RESPONSE_TIME: 'un día hábil', }, LOGIN: { INCORRECT_CREDENTIALS: 'Correo electrónico o contraseña incorrectos', diff --git a/login-workflow/src/contexts/AuthContext/AuthDictionaries/types.ts b/login-workflow/src/contexts/AuthContext/AuthDictionaries/types.ts index c4128f0d..d3412a87 100644 --- a/login-workflow/src/contexts/AuthContext/AuthDictionaries/types.ts +++ b/login-workflow/src/contexts/AuthContext/AuthDictionaries/types.ts @@ -6,6 +6,7 @@ export type AuthTranslations = { RESET_CODE_ERROR: string; LINK_SENT: string; LINK_SENT_ALT: string; + RESPONSE_TIME: string; }; LOGIN: { INCORRECT_CREDENTIALS: string; diff --git a/login-workflow/src/screens/ForgotPasswordScreen/ForgotPasswordScreen.tsx b/login-workflow/src/screens/ForgotPasswordScreen/ForgotPasswordScreen.tsx index e831bf6e..83707e0b 100644 --- a/login-workflow/src/screens/ForgotPasswordScreen/ForgotPasswordScreen.tsx +++ b/login-workflow/src/screens/ForgotPasswordScreen/ForgotPasswordScreen.tsx @@ -71,7 +71,7 @@ export const ForgotPasswordScreen: React.FC = (props) contactPhone = '1-800-123-4567', initialEmailValue, description, - responseTime = 'one business day', + responseTime = t('bluiAuth:FORGOT_PASSWORD.RESPONSE_TIME'), emailValidator = (email: string): boolean | string => new RegExp(EMAIL_REGEX).test(email) ? true : t('bluiCommon:MESSAGES.EMAIL_ENTRY_ERROR'), WorkflowCardBaseProps,