Commit 5f0ec4b2 authored by 2breakegg's avatar 2breakegg

error.messages

parent a96f7307
This diff is collapsed.
{
"en": {
"title":"MoeCube",
"Home":"Home",
"username": "User Name",
"email": "E-Mail",
"password": "Password",
......@@ -27,7 +28,7 @@
"send-email": "Send Email",
"reset-success": "reset success",
"reset-fail": "reset fail",
"reset-password": "Reset Password",
"reset-password2": "Reset Password",
"remember-me":"Remember me",
"Please-use-a-correct-E-Mail-address.": "Please use a correct E-Mail address.",
"User-name-can-not-be-empty.": "User name can not be empty.",
......@@ -80,6 +81,7 @@
},
"zh": {
"title":"萌立方",
"Home":"主页",
"username": "用户名",
"email": "邮箱",
"password": "密码",
......@@ -106,7 +108,7 @@
"send-email": "发送邮件",
"reset-success": "修改成功",
"reset-fail": "修改失败",
"reset-password": "重设密码",
"reset-password2": "重置密码",
"remember-me":"记住我",
"Please-use-a-correct-E-Mail-address.": "请填写正确的邮箱地址",
"User-name-can-not-be-empty.": "用户名不能为空",
......
......@@ -3,6 +3,7 @@ import { connect } from 'dva';
import styles from './Index.less';
import Particles from 'react-particles-js'
import DocumentTitle from 'react-document-title'
import { FormattedMessage as Format } from 'react-intl';
import { Layout, Button, Menu } from 'antd';
import { Link } from 'dva/router'
import logo from '../assets/MoeCube.png'
......@@ -140,7 +141,7 @@ function Index({ dispatch, children, messages }) {
style={{ lineHeight: '64px' }}>
<Menu.Item key="1">
<Link to="/">
Home
<Format id="Home"/>
</Link>
</Menu.Item>
</Menu>
......
......@@ -55,7 +55,7 @@ class Reset extends React.Component {
<Spin spinning={isResetSubmit} delay={100}>
<Form onSubmit={this.onSubmitReset} className="login-form">
<FormItem>
<h1><Format id='reset-password'/></h1>
<h1><Format id='reset-password2'/></h1>
</FormItem>
<FormItem>
{getFieldDecorator('password', {
......@@ -81,7 +81,7 @@ class Reset extends React.Component {
</FormItem>
<Button type="primary" htmlType="submit" className="login-form-button">
<Format id='reset-password'/>
<Format id='reset-password2'/>
</Button>
</Form>
</Spin>
......
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