Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Store
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Store
Commits
52accf20
Commit
52accf20
authored
Mar 22, 2017
by
2breakegg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i18n bug
parent
e48decda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/App.js
src/App.js
+4
-4
No files found.
src/App.js
View file @
52accf20
...
@@ -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
"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment