Skip to content

Commit

Permalink
Merge pull request #504 from etn-ccis/bug/add-translations-for-respon…
Browse files Browse the repository at this point in the history
…se-time

Add new key for responseTime prop
  • Loading branch information
huayunh authored Oct 4, 2023
2 parents afab2fd + 2b73466 commit 93b5e19
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const resources: AuthLanguageFile = {
RESET_CODE_ERROR: '您的密码重置链接无效。',
LINK_SENT: '已向<b>{{email}}</b>发送了密码重置链接。',
LINK_SENT_ALT: '已向<1>{{email}}</1>发送了密码重置链接。',
RESPONSE_TIME: '一个工作日',
},
LOGIN: {
INCORRECT_CREDENTIALS: '邮箱地址或密码错误',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b>{{email}}</b>.',
LINK_SENT_ALT: 'A link to reset your password has been sent to <1>{{email}}</1>.',
RESPONSE_TIME: 'one business day',
},
LOGIN: {
INCORRECT_CREDENTIALS: 'Incorrect Email or Password',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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é à <b>{{email}}</b>.',
LINK_SENT_ALT: 'Un lien pour réinitialiser votre mot de passe a été envoyé à <1>{{email}}</1>.',
RESPONSE_TIME: 'un jour ouvrable',
},
LOGIN: {
INCORRECT_CREDENTIALS: 'Email ou mot de passe incorrect',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b>{{email}}</b>.',
LINK_SENT_ALT: 'Um link para redefinir a palavra-passe foi enviado para <1>{{email}}</1>.',
RESPONSE_TIME: 'um dia útil',
},
LOGIN: {
INCORRECT_CREDENTIALS: 'E-mail ou palavra-passe incorretos.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b> {{email}} </b>.',
LINK_SENT_ALT: 'Se envió un vínculo para restablecer su contraseña a <1> {{email}} </1>.',
RESPONSE_TIME: 'un día hábil',
},
LOGIN: {
INCORRECT_CREDENTIALS: 'Correo electrónico o contraseña incorrectos',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const ForgotPasswordScreen: React.FC<ForgotPasswordScreenProps> = (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,
Expand Down

0 comments on commit 93b5e19

Please sign in to comment.