Commit 96f13a64 authored by 2breakegg's avatar 2breakegg

i18n

parent b8ea6b90
This diff is collapsed.
...@@ -40,10 +40,10 @@ ...@@ -40,10 +40,10 @@
"Incorrect-password.": "Incorrect password.", "Incorrect-password.": "Incorrect password.",
"Please-check-your-registration-info-again.": "Please check your registration info again.", "Please-check-your-registration-info-again.": "Please check your registration info again.",
"Your-account-has-not-been-verified.": "Your account has not been verified. Please check the verification email we have sent to you. You will be able to log in after verification.", "Your-account-has-not-been-verified.": "Your account has not been verified. Please check the verification email we have sent to you. You will be able to log in after verification.",
"A password reset email has been sent to you.": "A password reset email has been sent to you. Please check the email to continue.", "A-password-reset-email-has-been-sent-to-you.": "A password reset email has been sent to you. Please check the email to continue.",
"Your-account-has-been-created.": "Your account has been created. You will receive an verification email. Please check the mail to finish registration. ", "Your-account-has-been-created.": "Your account has been created. You will receive an verification email. Please check the mail to finish registration. ",
"Error": "Error", "Error": "Error",
"Your account has been successfully activated!": "Your account has been successfully activated!", "Your-account-has-been-successfully-activated!": "Your account has been successfully activated!",
"close": "close", "close": "close",
"reset-email": "reset email", "reset-email": "reset email",
"send-email2": "send email", "send-email2": "send email",
...@@ -121,10 +121,10 @@ ...@@ -121,10 +121,10 @@
"Incorrect-password.": "密码不正确", "Incorrect-password.": "密码不正确",
"Please-check-your-registration-info-again.": "请填写正确的注册信息。", "Please-check-your-registration-info-again.": "请填写正确的注册信息。",
"Your-account-has-not-been-verified.": "您的账户还未完成验证,请查看激活邮件,激活后即可登陆。", "Your-account-has-not-been-verified.": "您的账户还未完成验证,请查看激活邮件,激活后即可登陆。",
"A password reset email has been sent to you.": "密码重置邮件已发送,请查看邮件继续下一步。", "A-password-reset-email-has-been-sent-to-you.": "密码重置邮件已发送,请查看邮件继续下一步。",
"Your-account-has-been-created.": "您的账号已经创建。您将会收到一封验证邮件,请查看邮件完成注册。", "Your-account-has-been-created.": "您的账号已经创建。您将会收到一封验证邮件,请查看邮件完成注册。",
"Error": "出问题了", "Error": "出问题了",
"Your account has been successfully activated!": "账号激活成功!", "Your-account-has-been-successfully-activated!": "账号激活成功!",
"close": "关闭", "close": "关闭",
"reset-email": "更改邮箱", "reset-email": "更改邮箱",
"send-email2": "重发邮件", "send-email2": "重发邮件",
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
try { try {
const { data } = yield call(activate, payload); const { data } = yield call(activate, payload);
if (data) { if (data) {
message.success(messages['Your account has been successfully activated!'], 5); message.success(messages['Your-account-has-been-successfully-activated!'], 5);
} }
} catch (error) { } catch (error) {
message.error(error.message); message.error(error.message);
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
const { data } = yield call(forgot, payload); const { data } = yield call(forgot, payload);
if (data) { if (data) {
yield put({ type: 'forgotSuccess' }); yield put({ type: 'forgotSuccess' });
message.info(messages['A password reset email has been sent to you.'], 5); message.info(messages['A-password-reset-email-has-been-sent-to-you.'], 5);
} }
} catch (error) { } catch (error) {
yield put({ type: 'forgotFail' }); yield put({ type: 'forgotFail' });
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
yield put({ type: 'user/loginSuccess', payload: { data } }); yield put({ type: 'user/loginSuccess', payload: { data } });
yield put({ type: 'loginSuccess', payload: { input: payload } }); yield put({ type: 'loginSuccess', payload: { input: payload } });
message.info(messages['Your account has been created.'], 5); message.info(messages['Your-account-has-been-created.'], 5);
yield put(routerRedux.replace('/verify')); yield put(routerRedux.replace('/verify'));
} }
} catch (error) { } catch (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment