From 70833821a2caeb7f580badb8b81ad1047b920a67 Mon Sep 17 00:00:00 2001 From: ghostubborn Date: Wed, 1 Apr 2026 15:36:29 +0800 Subject: [PATCH] feat(i18n): replace hardcoded Chinese in frontend views with i18n calls --- frontend/src/views/Home.vue | 78 +++++++++++++----------- frontend/src/views/InteractionView.vue | 4 +- frontend/src/views/MainView.vue | 12 ++-- frontend/src/views/ReportView.vue | 4 +- frontend/src/views/SimulationRunView.vue | 4 +- frontend/src/views/SimulationView.vue | 4 +- 6 files changed, 56 insertions(+), 50 deletions(-) diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index c8fb49e..875ba6e 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -6,7 +6,7 @@ @@ -16,21 +16,25 @@
- 简洁通用的群体智能引擎 - / v0.1-预览版 + {{ $t('home.tagline') }} + {{ $t('home.version') }}

- 上传任意报告
- 即刻推演未来 + {{ $t('home.heroTitle1') }}
+ {{ $t('home.heroTitle2') }}

-
+

- 即使只有一段文字,MiroFish 也能基于其中的现实种子,全自动生成与之对应的至多百万级Agent构成的平行世界。通过上帝视角注入变量,在复杂的群体交互中寻找动态环境下的“局部最优解” + + + + +

-

- 让未来在 Agent 群中预演,让决策在百战后胜出_ +

+ {{ $t('home.slogan') }}_

@@ -54,65 +58,65 @@
- 系统状态 + {{ $t('home.systemStatus') }}
-

准备就绪

+

{{ $t('home.systemReady') }}

- 预测引擎待命中,可上传多份非结构化数据以初始化模拟序列 + {{ $t('home.systemReadyDesc') }}

-
低成本
-
常规模拟平均5$/次
+
{{ $t('home.metricLowCost') }}
+
{{ $t('home.metricLowCostDesc') }}
-
高可用
-
最多百万级Agent模拟
+
{{ $t('home.metricHighAvail') }}
+
{{ $t('home.metricHighAvailDesc') }}
- 工作流序列 + {{ $t('home.workflowSequence') }}
01
-
图谱构建
-
现实种子提取 & 个体与群体记忆注入 & GraphRAG构建
+
{{ $t('home.step01Title') }}
+
{{ $t('home.step01Desc') }}
02
-
环境搭建
-
实体关系抽取 & 人设生成 & 环境配置Agent注入仿真参数
+
{{ $t('home.step02Title') }}
+
{{ $t('home.step02Desc') }}
03
-
开始模拟
-
双平台并行模拟 & 自动解析预测需求 & 动态更新时序记忆
+
{{ $t('home.step03Title') }}
+
{{ $t('home.step03Desc') }}
04
-
报告生成
-
ReportAgent拥有丰富的工具集与模拟后环境进行深度交互
+
{{ $t('home.step04Title') }}
+
{{ $t('home.step04Desc') }}
05
-
深度互动
-
与模拟世界中的任意一位进行对话 & 与ReportAgent进行对话
+
{{ $t('home.step05Title') }}
+
{{ $t('home.step05Desc') }}
@@ -125,8 +129,8 @@
- 01 / 现实种子 - 支持格式: PDF, MD, TXT + {{ $t('home.realitySeed') }} + {{ $t('home.supportedFormats') }}
-
拖拽文件上传
-
或点击浏览文件系统
+
{{ $t('home.dragToUpload') }}
+
{{ $t('home.orBrowse') }}
@@ -165,23 +169,23 @@
- 输入参数 + {{ $t('home.inputParams') }}
- >_ 02 / 模拟提示词 + {{ $t('home.simulationPrompt') }}
-
引擎: MiroFish-V1.0
+
{{ $t('home.engineBadge') }}
@@ -192,8 +196,8 @@ @click="startSimulation" :disabled="!canSubmit || loading" > - 启动引擎 - 初始化中... + {{ $t('home.startEngine') }} + {{ $t('home.initializing') }}
diff --git a/frontend/src/views/InteractionView.vue b/frontend/src/views/InteractionView.vue index 05268ba..a2de0f4 100644 --- a/frontend/src/views/InteractionView.vue +++ b/frontend/src/views/InteractionView.vue @@ -15,7 +15,7 @@ :class="{ active: viewMode === mode }" @click="viewMode = mode" > - {{ { graph: '图谱', split: '双栏', workbench: '工作台' }[mode] }} + {{ { graph: $t('main.layoutGraph'), split: $t('main.layoutSplit'), workbench: $t('main.layoutWorkbench') }[mode] }}
@@ -25,7 +25,7 @@
Step 5/5 - 深度互动 + {{ $tm('main.stepNames')[4] }}
diff --git a/frontend/src/views/MainView.vue b/frontend/src/views/MainView.vue index 37e3689..41a0a37 100644 --- a/frontend/src/views/MainView.vue +++ b/frontend/src/views/MainView.vue @@ -15,7 +15,7 @@ :class="{ active: viewMode === mode }" @click="viewMode = mode" > - {{ { graph: '图谱', split: '双栏', workbench: '工作台' }[mode] }} + {{ { graph: $t('main.layoutGraph'), split: $t('main.layoutSplit'), workbench: $t('main.layoutWorkbench') }[mode] }}
@@ -25,7 +25,7 @@
Step {{ currentStep }}/5 - {{ stepNames[currentStep - 1] }} + {{ $tm('main.stepNames')[currentStep - 1] }}
@@ -79,6 +79,7 @@