From c6cafdd53299afcbdbf2d3aeb313d4cdbc859d73 Mon Sep 17 00:00:00 2001 From: ghostubborn Date: Wed, 1 Apr 2026 18:38:22 +0800 Subject: [PATCH] fix(i18n): translate world1/world2 platform labels in interview tool display --- frontend/src/components/Step4Report.vue | 4 ++-- locales/en.json | 4 +++- locales/zh.json | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Step4Report.vue b/frontend/src/components/Step4Report.vue index 6515ae1..52cf1db 100644 --- a/frontend/src/components/Step4Report.vue +++ b/frontend/src/components/Step4Report.vue @@ -1516,7 +1516,7 @@ const InterviewDisplay = { h('line', { x1: '2', y1: '12', x2: '22', y2: '12' }), h('path', { d: 'M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z' }) ]), - h('span', {}, '世界1') + h('span', {}, t('step4.world1')) ]), h('button', { class: ['platform-btn', { active: currentPlatform === 'reddit' }], @@ -1525,7 +1525,7 @@ const InterviewDisplay = { h('svg', { class: 'platform-icon', viewBox: '0 0 24 24', width: 12, height: 12, fill: 'none', stroke: 'currentColor', 'stroke-width': 2 }, [ h('path', { d: 'M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z' }) ]), - h('span', {}, '世界2') + h('span', {}, t('step4.world2')) ]) ]) ]), diff --git a/locales/en.json b/locales/en.json index f7ff3ca..c8ff42e 100644 --- a/locales/en.json +++ b/locales/en.json @@ -245,7 +245,9 @@ "panelSearchResults": "Search Results", "emptySearchResults": "No results found", "panelRelatedEdges": "Related Edges", - "panelRelatedNodes": "Related Nodes" + "panelRelatedNodes": "Related Nodes", + "world1": "World 1", + "world2": "World 2" }, "step5": { "interactiveTools": "Interactive Tools", diff --git a/locales/zh.json b/locales/zh.json index b6a0362..cd747e2 100644 --- a/locales/zh.json +++ b/locales/zh.json @@ -245,7 +245,9 @@ "panelSearchResults": "搜索结果", "emptySearchResults": "未找到相关结果", "panelRelatedEdges": "相关关系", - "panelRelatedNodes": "相关节点" + "panelRelatedNodes": "相关节点", + "world1": "世界1", + "world2": "世界2" }, "step5": { "interactiveTools": "Interactive Tools",