i18n: 翻译 Captain > Scenarios 模块中文文案

- zh_CN/integrations.json: SCENARIOS 块全部 30+ 条 i18n key 翻译为中文
  (标题、描述、批量操作、表单标签/占位符/校验、空状态、API 消息等)
- zh_CN/settings.json: 侧边栏 CAPTAIN_SCENARIOS 标签 Scenarios → 场景
- scenarios/Index.vue: 硬编码示例场景数据(标题/描述/指令)翻译为中文
This commit is contained in:
Rogee
2026-07-30 10:50:04 +08:00
parent 92c625ea4a
commit 95b85b6da9
3 changed files with 29 additions and 30 deletions
@@ -671,39 +671,39 @@
}
},
"SCENARIOS": {
"TITLE": "Scenarios",
"DESCRIPTION": "Give your assistant some context—like “what to do when a user is stuck,” or “how to act during a refund request.”",
"TITLE": "场景",
"DESCRIPTION": "为助手提供一些上下文——比如\"用户卡住时该怎么做\",或\"退款请求期间应如何行动\"。",
"BULK_ACTION": {
"SELECTED": "{count} item selected | {count} items selected",
"SELECTED": "已选择 {count} 项",
"SELECT_ALL": "全选 ({count})",
"UNSELECT_ALL": "取消全选({count})",
"BULK_DELETE_BUTTON": "删除"
},
"ADD": {
"SUGGESTED": {
"TITLE": "Example scenarios",
"ADD": "添加全部",
"ADD_SINGLE": "Add this",
"TOOLS_USED": "Tools used :"
"TITLE": "示例场景",
"ADD": "全部添加",
"ADD_SINGLE": "添加此场景",
"TOOLS_USED": "使用的工具:"
},
"NEW": {
"CREATE": "Add a scenario",
"TITLE": "Create a scenario",
"CREATE": "添加场景",
"TITLE": "创建场景",
"FORM": {
"TITLE": {
"LABEL": "标题",
"PLACEHOLDER": "Enter a name for the scenario",
"ERROR": "Scenario name is required"
"PLACEHOLDER": "请输入场景名称",
"ERROR": "请填写场景名称"
},
"DESCRIPTION": {
"LABEL": "描述信息",
"PLACEHOLDER": "Describe how and where this scenario will be used",
"ERROR": "Scenario description is required"
"PLACEHOLDER": "描述该场景的使用方式和适用情况",
"ERROR": "请填写场景描述"
},
"INSTRUCTION": {
"LABEL": "How to handle",
"PLACEHOLDER": "Describe how and where this scenario will be handled",
"ERROR": "Scenario content is required"
"LABEL": "处理方式",
"PLACEHOLDER": "描述该场景的处理方式和适用情况",
"ERROR": "请填写场景内容"
},
"CREATE": "创建",
"CANCEL": "取消"
@@ -712,25 +712,25 @@
},
"UPDATE": {
"CANCEL": "取消",
"UPDATE": "Update changes"
"UPDATE": "保存修改"
},
"LIST": {
"SEARCH_PLACEHOLDER": "搜索……"
},
"EMPTY_MESSAGE": "No scenarios found. Create or add examples to begin.",
"SEARCH_EMPTY_MESSAGE": "No scenarios found for this search.",
"EMPTY_MESSAGE": "暂无场景。请创建或添加示例场景以开始。",
"SEARCH_EMPTY_MESSAGE": "未找到匹配的场景。",
"API": {
"ADD": {
"SUCCESS": "Scenarios added successfully",
"ERROR": "There was an error adding scenarios, please try again."
"SUCCESS": "场景添加成功",
"ERROR": "添加场景时出错,请重试。"
},
"UPDATE": {
"SUCCESS": "Scenarios updated successfully",
"ERROR": "There was an error updating scenarios, please try again."
"SUCCESS": "场景更新成功",
"ERROR": "更新场景时出错,请重试。"
},
"DELETE": {
"SUCCESS": "Scenarios deleted successfully",
"ERROR": "There was an error deleting scenarios, please try again."
"SUCCESS": "场景删除成功",
"ERROR": "删除场景时出错,请重试。"
}
}
}
@@ -317,7 +317,7 @@
"CAPTAIN_DOCUMENTS": "文档",
"CAPTAIN_RESPONSES": "常见问题",
"CAPTAIN_TOOLS": "工具",
"CAPTAIN_SCENARIOS": "Scenarios",
"CAPTAIN_SCENARIOS": "场景",
"CAPTAIN_PLAYGROUND": "试验场",
"CAPTAIN_INBOXES": "收件箱",
"CAPTAIN_SETTINGS": "设置",
@@ -43,11 +43,10 @@ const renderInstruction = instruction => () =>
const scenariosExample = [
{
id: 1,
title: 'Prospective Buyer',
description:
'Handle customers who are showing interest in purchasing a license',
title: '潜在买家',
description: '处理对购买许可证感兴趣的潜在客户',
instruction:
'If someone is interested in purchasing a license, ask them for following:\n\n1. How many licenses are they willing to purchase?\n2. Are they migrating from another platform?\n. Once these details are collected, do the following steps\n1. add a private note to with the information you collected using [Add Private Note](tool://add_private_note)\n2. Add label "sales" to the contact using [Add Label to Conversation](tool://add_label_to_conversation)\n3. Reply saying "one of us will reach out soon" and provide an estimated timeline for the response and [Handoff to Human](tool://handoff)',
'如果有人有兴趣购买许可证,请询问以下信息:\n\n1. 他们打算购买多少个许可证?\n2. 他们是否从其他平台迁移过来?\n收集完这些信息后,请执行以下步骤:\n1. 使用[添加私信](tool://add_private_note)将收集到的信息添加为私信\n2. 使用[为会话添加标签](tool://add_label_to_conversation)为联系人添加"sales"标签\n3. 回复"我们会尽快与您联系",并提供预计的响应时间,然后[转接人工](tool://handoff)',
tools: ['add_private_note', 'add_label_to_conversation', 'handoff'],
},
];