Skip to content

A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物

fix(i18n): translate world1/world2 platform labels in interview tool display

ghostubbornc6cafdd53299
diff --git a/frontend/src/components/Step4Report.vue b/frontend/src/components/Step4Report.vue
index 6515ae1f..52cf1db2 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 f7ff3ca7..c8ff42e9 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 b6a0362a..cd747e2f 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",