Commit 52accf20 authored by 2breakegg's avatar 2breakegg

i18n bug

parent e48decda
...@@ -94,8 +94,8 @@ export default class App extends Component { ...@@ -94,8 +94,8 @@ export default class App extends Component {
render() { render() {
const { latest, isMobile, stats } = this.state const { latest, isMobile, stats } = this.state
const language = localStorage.getItem('language') || this.props.language const language = localStorage.getItem('language') || navigator.language || (navigator.languages && navigator.languages[0]) || navigator.userLanguage || navigator.browserLanguage || 'zh-CN' ;
const realData = i18Data[language] ? i18Data[language] : i18Data[this.props.language] ? i18Data[this.props.language] : i18Data['zh-CN'] const realData = i18Data[language] ? i18Data[language] : i18Data[this.props.language] ? i18Data[this.props.language] : i18Data['zh-CN'];
const menu = ( const menu = (
<Menu style={{ transform: 'translateX(-16px)' }}> <Menu style={{ transform: 'translateX(-16px)' }}>
...@@ -268,8 +268,8 @@ export default class App extends Component { ...@@ -268,8 +268,8 @@ export default class App extends Component {
<FormattedMessage id={"CardContent3"} /> <FormattedMessage id={"CardContent3"} />
</p> </p>
<Timeline> <Timeline>
<Timeline.Item>{stats.signups || 'loading..'} 只萌新已加入萌卡</Timeline.Item> <Timeline.Item>{stats.signups || 'loading..'} <FormattedMessage id="IsRegisted" /> </Timeline.Item>
<Timeline.Item>{stats.online || 'loading..'} 位爱的战士正在线游戏</Timeline.Item> <Timeline.Item>{stats.online || 'loading..'} <FormattedMessage id="IsPlaying" /> </Timeline.Item>
</Timeline> </Timeline>
<div className="MoeCubeProduct"> <div className="MoeCubeProduct">
......
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