Commit 7d982233 authored by 2breakegg's avatar 2breakegg

i18n

parent 54fe97c3
This diff is collapsed.
......@@ -23,6 +23,7 @@
"sign-up": "Sign Up",
"sign-in": "Sign In",
"sign-out": "Sign out",
"User-Center":"User Center",
"Please-sign-in":"Please sign In",
"email-address-or-username": "E-Mail or Username",
"register-now": "register-now!",
......@@ -106,6 +107,7 @@
"sign-up": "注册",
"sign-in": "登陆",
"sign-out": "登出",
"User-Center":"用户中心",
"Please-sign-in":"您尚未登录,请先登录",
"email-address-or-username": "邮箱或用户名",
"register-now": "现在注册",
......
......@@ -12,8 +12,7 @@ function UserPanel({ dispatch, user, token }) {
<Menu trigger={['click']}>
<Menu.Item>
{
// i18n
token ? <Link to="/profiles">个人中心</Link> : <Link to="/signin">登录</Link>
token ? <Link to="/profiles"><Format id="User-Center"/></Link> : <Link to="/signin"><Format id="sign-in"/></Link>
}
</Menu.Item>
......
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