From 3344145a88d304aedfb9d40001c02eb4ed4e6692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A8=9C?= Date: Mon, 3 Mar 2025 17:39:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8F=9C=E5=8D=95=E6=A0=8F?= =?UTF-8?q?=E3=80=81=E8=AF=AD=E4=B9=89=E4=B8=AD=E5=BF=83=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96=E6=96=87=E6=A1=88=E5=B9=B6=E6=9B=BF=E6=8D=A2&?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Upload/index.vue | 28 ++++--- src/i18n/lang/en.ts | 38 ++++++++- src/i18n/lang/zh-cn.ts | 34 ++++++++ src/views/api/index.vue | 33 ++++---- .../dialogue/components/DialogueAside.vue | 9 ++- src/views/dialogue/components/InitalPanel.vue | 11 ++- src/views/dialogue/dialogueView.vue | 79 ++++++++++--------- 7 files changed, 160 insertions(+), 72 deletions(-) diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue index 4b7681e..71a761a 100644 --- a/src/components/Upload/index.vue +++ b/src/components/Upload/index.vue @@ -234,12 +234,16 @@ watch(
- 将文件拖拽到此处 或 + {{ $t('semantic.tip1') }}
- 选择文件 + + {{ $t('semantic.choose_file') }} +
-
格式: YAML, 大小 < 2M
+
+ {{ $t('semantic.tip2') }} +
@@ -275,11 +279,11 @@ watch(
-
接口路径
+
{{$t('semantic.interface_path')}}
{{ item.path }}
-
接口描述
+
{{$t('semantic.interface_description')}}
{{ item.description }}
@@ -288,17 +292,17 @@ watch(
- 取消 - 确定 + {{$t('semantic.cancel')}} + {{$t('semantic.submit')}}
- 取消 - 编辑 - 解析 + {{$t('semantic.cancel')}} + {{$t('semantic.edit')}} + {{$t('semantic.analyze')}}
- 取消 - 确定 + {{$t('semantic.cancel')}} + {{$t('semantic.submit')}}
diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index 9cdc45e..5573af9 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -8,10 +8,41 @@ export default { collect: 'Collect', like: 'Like', }, + menu:{ + dialogue:'Dialogue', + semantic_center:'Semantic Center', + app_center:'App Center', + sql:'witchainD', + }, + semantic:{ + semantic_interface_center:'Semantic interface center', + all_select:'All', + interface_name:'Interface name', + interface_introduction:'Interface introduction', + username:'Username', + interface_search:'Search', + interface_upload:'Upload', + all_interface:'All interface', + my_upload:'My upload', + my_favorite:'My favorite', + interface_edit:'Edit', + interface_delete:'Delete', + no_data:'No data', + upload_semantic_interface:'Upload Semantic Interface', + edit_semantic_interface:'Edit Semantic Interface', + view_semantic_interface:'View Semantic Interface', + choose_file:"Choose file", + tip1:'Drag the file here or', + tip2:'Format: YAML, size < 2M', + cancel:'Cancel', + submit:'Submit', + edit:"Edit", + analyze:'Analyze', + }, main: { describe1:"Hi! I'm", describe2:", and I'm happy to be of service.", - left_describe:"热门应用", + left_describe:"Popular Apps", os_knowledge: 'CVE热修复智能助手', os_knowledge_describe: 'CVE热修复', openEuler_expertise: '智能诊断智能助手', @@ -22,9 +53,9 @@ export default { openEuler_use_cases_describe: 'AI容器栈', command_generation:'Command Generation', command_generation_describe:'Need help crafting the perfect shell command? I can generate single or complex commands for you.', - question:"推荐问题", + question:"Recommendation qustions", smart_shell_describe:'Experience the future of OSs with our smart shell! Use natural language to diagnose and optimize your system.', - try_app:"进入应用中心", + try_app:"Enter the App Center", refresh:"Refresh", query_interpretation:"Query Interpretation", Automatic:"Automatic", @@ -68,6 +99,7 @@ export default { collapse: "Collapse", no_chat_history: "No chat history available.", // 假设需要一个字段来表示没有历史对话的情况 expand: "Expand", // 假设界面中有展开历史对话的功能 + myApp:"My Apps", }, feedback:{ feedbackSuccesful:"Feedback succeeded.", diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts index 402b6f4..8850810 100644 --- a/src/i18n/lang/zh-cn.ts +++ b/src/i18n/lang/zh-cn.ts @@ -8,6 +8,39 @@ export default { collect: '收藏', like: '喜欢', }, + menu:{ + dialogue:'对话', + semantic_center:'语义中心', + app_center:'应用中心', + sql:'知识库', + }, + semantic:{ + semantic_interface_center:'语义接口中心', + all_select:'全部', + interface_name:'接口名称', + interface_introduction:'接口简介', + username:'用户名称', + interface_search:'搜索', + interface_upload:'上传', + all_interface:'全部接口', + my_upload:'我的上传', + my_favorite:'我的收藏', + interface_edit:'编辑', + interface_delete:'删除', + no_data:'暂无数据', + upload_semantic_interface:'上传语义接口', + edit_semantic_interface:'编辑语义接口', + view_semantic_interface:'查看语义接口', + choose_file:"选择文件", + tip1:'将文件拖拽到此处 或', + tip2:'格式: YAML, 大小 < 2M', + interface_path:"接口路径", + interface_description:"接口描述", + cancel:'取消', + submit:'确定', + edit:"编辑", + analyze:'解析', + }, main: { describe1: '你好,我是', describe2: ',很高兴为你服务', @@ -68,6 +101,7 @@ export default { collapse: "收起", no_chat_history: "暂无历史对话", expand: "展开", + myApp:"我的应用", }, feedback: { feedbackSuccesful: "反馈成功", diff --git a/src/views/api/index.vue b/src/views/api/index.vue index 9e080ec..32697df 100644 --- a/src/views/api/index.vue +++ b/src/views/api/index.vue @@ -1,37 +1,37 @@