WIP feature/breadcrumb/fix_localize

This commit is contained in:
elforjani3
2020-05-13 00:02:21 +02:00
parent 4ab85eaf09
commit e6f63fbc88
69 changed files with 610 additions and 394 deletions

View File

@@ -148,7 +148,7 @@ function Invite({ requestInviteAccept, requestInviteMetaByToken }) {
</h3>
<p>
<T id={'enter_your_personal_information'} />
<b>{inviteValue.organization_name}</b> Organization.
<b>{inviteValue.organization_name}</b> <T id={'organization'}/>
</p>
</div>

View File

@@ -38,7 +38,7 @@ function Login({
const loginValidationSchema = Yup.object().shape({
crediential: Yup.string()
.required(formatMessage({ id: 'required' }))
.email(formatMessage({ id: 'invalid_email_or_phone_numner' })),
.email(formatMessage({ id: 'invalid_email_or_phone_number' })),
password: Yup.string()
.required(formatMessage({ id: 'required' }))
.min(4),
@@ -63,7 +63,7 @@ function Login({
crediential: values.crediential,
password: values.password,
}).then(() => {
history.go('/dashboard/homepage');
history.go('/homepage');
setSubmitting(false);
}).catch((errors) => {
const toastBuilders = [];

View File

@@ -52,8 +52,7 @@ function SendResetPassword({ requestSendResetPassword }) {
requestSendResetPassword(values.crediential)
.then((response) => {
AppToaster.show({
message: `Check your email for a link to reset your password.
If it doesnt appear within a few minutes, check your spam folder.`,
message: formatMessage({id:'check_your_email_for_a_link_to_reset'}),
intent: Intent.SUCCESS,
});
history.push('/auth/login');
@@ -62,7 +61,7 @@ function SendResetPassword({ requestSendResetPassword }) {
.catch((errors) => {
if (errors.find((e) => e.type === 'EMAIL.NOT.REGISTERED')) {
AppToaster.show({
message: "We couldn't find your account with that email",
message: formatMessage({id:'we_couldn_t_find_your_account_with_that_email'}),
intent: Intent.DANGER,
});
}