Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new key for responseTime prop #504

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading