Skip to content

Commit 2ba1717

Browse files
committed
fix: non-translated values of skill usage and direction
1 parent 13e422b commit 2ba1717

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/viewer/ViewerActions.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import { FactItem } from 'components/FactItem'
99
import type { CopilotDocV1 } from 'models/copilot.schema'
1010
import { findActionType } from 'models/types'
1111

12+
import {
13+
findOperatorDirection,
14+
findOperatorSkillUsage,
15+
} from '../../models/operator'
1216
import { formatDuration } from '../../utils/times'
1317

1418
const actionKey = (action: CopilotDocV1.Action, index?: number) =>
@@ -67,7 +71,7 @@ export const ViewerActions: FC<{
6771
title="切换技能用法至"
6872
icon="swap-horizontal"
6973
>
70-
{action.skillUsage}
74+
{findOperatorSkillUsage(action.skillUsage).title}
7175
</FactItem>
7276
)}
7377

@@ -82,7 +86,9 @@ export const ViewerActions: FC<{
8286

8387
{'direction' in action && (
8488
<FactItem dense title="朝向" icon="compass">
85-
<span className="font-mono">{action.direction}</span>
89+
<span className="font-mono">
90+
{findOperatorDirection(action.direction).title}
91+
</span>
8692
</FactItem>
8793
)}
8894
</div>

0 commit comments

Comments
 (0)