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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
Neos
Commits
5f2cff6b
Commit
5f2cff6b
authored
Jul 06, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/i18n' into 'main'
fix i18n in Menu See merge request
!388
parents
85919b61
4cce5d4a
Pipeline
#28131
passed with stages
in 9 minutes and 26 seconds
Changes
1
Pipelines
1
Show 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 @
5f2cff6b
...
@@ -57,6 +57,9 @@ const messages: Record<
...
@@ -57,6 +57,9 @@ const messages: Record<
damageCalc
:
string
;
damageCalc
:
string
;
mainPhase2
:
string
;
mainPhase2
:
string
;
endPhase
:
string
;
endPhase
:
string
;
allChain
?:
string
;
ignoreChain
?:
string
;
smartChain
?:
string
;
unknown
:
string
;
unknown
:
string
;
}
}
>
=
{
>
=
{
...
@@ -71,6 +74,9 @@ const messages: Record<
...
@@ -71,6 +74,9 @@ const messages: Record<
damageCalc
:
"
Damage Step (Damage Calculation)
"
,
damageCalc
:
"
Damage Step (Damage Calculation)
"
,
mainPhase2
:
"
Main Phase 2
"
,
mainPhase2
:
"
Main Phase 2
"
,
endPhase
:
"
End Phase
"
,
endPhase
:
"
End Phase
"
,
allChain
:
"
All Chain
"
,
ignoreChain
:
"
Ignore Chain
"
,
smartChain
:
"
Smart Chain
"
,
unknown
:
"
Unknown
"
,
unknown
:
"
Unknown
"
,
},
},
br
:
{
br
:
{
...
@@ -162,6 +168,9 @@ const messages: Record<
...
@@ -162,6 +168,9 @@ const messages: Record<
damageCalc
:
"
伤害步骤(伤害计算)
"
,
damageCalc
:
"
伤害步骤(伤害计算)
"
,
mainPhase2
:
"
主要阶段 2
"
,
mainPhase2
:
"
主要阶段 2
"
,
endPhase
:
"
结束阶段
"
,
endPhase
:
"
结束阶段
"
,
allChain
:
"
全部连锁
"
,
ignoreChain
:
"
忽略连锁
"
,
smartChain
:
"
智能连锁
"
,
unknown
:
"
未知阶段
"
,
unknown
:
"
未知阶段
"
,
},
},
};
};
...
@@ -178,6 +187,9 @@ const damage = messages[language].damage;
...
@@ -178,6 +187,9 @@ const damage = messages[language].damage;
const
damageCalc
=
messages
[
language
].
damageCalc
;
const
damageCalc
=
messages
[
language
].
damageCalc
;
const
mainPhase2
=
messages
[
language
].
mainPhase2
;
const
mainPhase2
=
messages
[
language
].
mainPhase2
;
const
endPhase
=
messages
[
language
].
endPhase
;
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
;
const
unknown
=
messages
[
language
].
unknown
;
/* End of definition (I18N) */
/* End of definition (I18N) */
...
@@ -265,10 +277,6 @@ export const Menu = () => {
...
@@ -265,10 +277,6 @@ export const Menu = () => {
setPhaseSwitchItems
(
newPhaseSwitchItems
);
setPhaseSwitchItems
(
newPhaseSwitchItems
);
},
[
phaseBind
]);
},
[
phaseBind
]);
const
allChain
=
language
!==
"
cn
"
?
"
All Chain
"
:
""
;
const
ignoreChain
=
language
!==
"
cn
"
?
"
Ignore Chain
"
:
""
;
const
smartChain
=
language
!==
"
cn
"
?
"
Smart Chain
"
:
""
;
const
chainSettingTexts
=
[
const
chainSettingTexts
=
[
[
ChainSetting
.
CHAIN_ALL
,
allChain
],
[
ChainSetting
.
CHAIN_ALL
,
allChain
],
[
ChainSetting
.
CHAIN_IGNORE
,
ignoreChain
],
[
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