Commit ad1b6494 authored by mercury233's avatar mercury233

fix i18n

parent 83db3c8d
...@@ -88,6 +88,7 @@ ...@@ -88,6 +88,7 @@
"i_user_unexists":"User does not exisit.", "i_user_unexists":"User does not exisit.",
"i_email_exists":"email is exists", "i_email_exists":"email is exists",
"i_username_exists":"username is exists", "i_username_exists":"username is exists",
"i_username_exists_or_invalid":"username is exists or invalid",
"i_not_found":"user unexists", "i_not_found":"user unexists",
"i_key_time_out":"url is time out", "i_key_time_out":"url is time out",
"i_key_invalid":"url is invalid", "i_key_invalid":"url is invalid",
...@@ -184,6 +185,7 @@ ...@@ -184,6 +185,7 @@
"i_user_unexists":"用户不存在", "i_user_unexists":"用户不存在",
"i_email_exists":"邮箱已存在", "i_email_exists":"邮箱已存在",
"i_username_exists":"用户名已存在", "i_username_exists":"用户名已存在",
"i_username_exists_or_invalid":"用户名已存在或格式有误",
"i_not_found":"用户不存在", "i_not_found":"用户不存在",
"i_key_time_out":"此链接已过期", "i_key_time_out":"此链接已过期",
"i_key_invalid":"此链接已失效", "i_key_invalid":"此链接已失效",
......
...@@ -39,7 +39,7 @@ class EmailForm extends React.Component { ...@@ -39,7 +39,7 @@ class EmailForm extends React.Component {
label: messages.username, label: messages.username,
hasFeedback: true, hasFeedback: true,
validateStatus: checkUsername, validateStatus: checkUsername,
extra: isUserNameExists ? 'username exists' : '', extra: isUserNameExists ? messages.i_username_exists_or_invalid : '',
...formItemLayout, ...formItemLayout,
}, },
decorator: { decorator: {
......
...@@ -74,7 +74,7 @@ class Register extends React.Component { ...@@ -74,7 +74,7 @@ class Register extends React.Component {
const usernameProps = { const usernameProps = {
hasFeedback: true, hasFeedback: true,
validateStatus: checkUsername, validateStatus: checkUsername,
extra: isUserNameExists ? 'username exists or invalid ' : '', extra: isUserNameExists ? messages.i_username_exists : '',
}; };
const usernameInputProps = { const usernameInputProps = {
......
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