Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
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
baichixing
Neos
Commits
4cce5d4a
Commit
4cce5d4a
authored
Jul 06, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix i18n in Menu
parent
509db8bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/ui/Duel/PlayMat/Menu/index.tsx
src/ui/Duel/PlayMat/Menu/index.tsx
+12
-4
No files found.
src/ui/Duel/PlayMat/Menu/index.tsx
View file @
4cce5d4a
...
...
@@ -57,6 +57,9 @@ const messages: Record<
damageCalc
:
string
;
mainPhase2
:
string
;
endPhase
:
string
;
allChain
?:
string
;
ignoreChain
?:
string
;
smartChain
?:
string
;
unknown
:
string
;
}
>
=
{
...
...
@@ -71,6 +74,9 @@ const messages: Record<
damageCalc
:
"
Damage Step (Damage Calculation)
"
,
mainPhase2
:
"
Main Phase 2
"
,
endPhase
:
"
End Phase
"
,
allChain
:
"
All Chain
"
,
ignoreChain
:
"
Ignore Chain
"
,
smartChain
:
"
Smart Chain
"
,
unknown
:
"
Unknown
"
,
},
br
:
{
...
...
@@ -162,6 +168,9 @@ const messages: Record<
damageCalc
:
"
伤害步骤(伤害计算)
"
,
mainPhase2
:
"
主要阶段 2
"
,
endPhase
:
"
结束阶段
"
,
allChain
:
"
全部连锁
"
,
ignoreChain
:
"
忽略连锁
"
,
smartChain
:
"
智能连锁
"
,
unknown
:
"
未知阶段
"
,
},
};
...
...
@@ -178,6 +187,9 @@ const damage = messages[language].damage;
const
damageCalc
=
messages
[
language
].
damageCalc
;
const
mainPhase2
=
messages
[
language
].
mainPhase2
;
const
endPhase
=
messages
[
language
].
endPhase
;
const
allChain
=
messages
[
language
].
allChain
??
"
All Chain
"
;
const
ignoreChain
=
messages
[
language
].
ignoreChain
??
"
Ignore Chain
"
;
const
smartChain
=
messages
[
language
].
smartChain
??
"
Smart Chain
"
;
const
unknown
=
messages
[
language
].
unknown
;
/* End of definition (I18N) */
...
...
@@ -265,10 +277,6 @@ export const Menu = () => {
setPhaseSwitchItems
(
newPhaseSwitchItems
);
},
[
phaseBind
]);
const
allChain
=
language
!==
"
cn
"
?
"
All Chain
"
:
""
;
const
ignoreChain
=
language
!==
"
cn
"
?
"
Ignore Chain
"
:
""
;
const
smartChain
=
language
!==
"
cn
"
?
"
Smart Chain
"
:
""
;
const
chainSettingTexts
=
[
[
ChainSetting
.
CHAIN_ALL
,
allChain
],
[
ChainSetting
.
CHAIN_IGNORE
,
ignoreChain
],
...
...
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