Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

feat(i18n): add translations for citations, RAG progress, and tool results

wizardchenfe7aded64868
diff --git a/frontend/src/i18n/embed.ts b/frontend/src/i18n/embed.ts
index 24da60f98..f4a75ea87 100644
--- a/frontend/src/i18n/embed.ts
+++ b/frontend/src/i18n/embed.ts
@@ -62,10 +62,12 @@ const messages = {
"tokenCopied": "Token 已复制",
"awaitingToken": "等待宿主页面提供 Token…",
"preview": "预览",
+ "previewLoading": "加载预览中…",
"previewIframeHint": "模拟第三方网站用 iframe 嵌入的效果(与复制代码一致)。",
"previewWidgetHint": "模拟第三方网站加载浮窗脚本后的效果;真实站点由宿主页面通过 postMessage 传递 Token。",
"previewMockPage": "模拟宿主页面",
"defaultChatTitle": "AI 助手",
+ "newChat": "新建对话",
"rotateConfirmTitle": "确认轮换 Token?",
"rotateConfirmBody": "轮换后旧 Token 立即失效,已发布的嵌入代码需全部更新。",
"tokenRequiredForPreview": "需要发布 Token 才能预览。请先创建渠道,或点击「轮换 Token」获取新 Token。"
@@ -231,7 +233,8 @@ const messages = {
"confirm": "确认",
"cancel": "取消",
"copy": "复制",
- "copied": "已复制"
+ "copied": "已复制",
+ "finish": "完成"
},
"error": {
"tokenNotFound": "未找到登录令牌,请重新登录",
@@ -284,6 +287,7 @@ const messages = {
"knowledgeGraphExtract": "知识图谱抽取",
"thinking": "思考",
"imageAnalysis": "查看图片内容",
+ "queryUnderstand": "理解问题",
"queryKnowledgeGraph": "知识图谱查询",
"readSkill": "读取技能",
"executeSkillScript": "执行技能脚本",
@@ -332,6 +336,21 @@ const messages = {
"titleMatch": "标题匹配",
"faqEntry": "FAQ 条目"
},
+ "knowledgeChunksList": {
+ "chunkRange": "已加载 {fetched} / {total} 个分块",
+ "page": "第 {page} 页,每页 {pageSize} 个"
+ },
+ "ragPipeline": {
+ "understanding": "正在理解问题...",
+ "understandDone": "已完成问题理解",
+ "searching": "正在检索知识库...",
+ "searchingWithQuery": "正在检索知识库:「{query}」",
+ "searchDone": "检索完成",
+ "searchDoneWithQuery": "检索知识库:「{query}」",
+ "referencedDocs": "引用 <strong>{count}</strong> 篇文档",
+ "referencedWebs": "引用 <strong>{count}</strong> 条网页",
+ "referencedDocAndWeb": "引用 <strong>{docCount}</strong> 篇文档和 <strong>{webCount}</strong> 条网页"
+ },
"toolStatus": {
"calling": "正在调用 {name}...",
"searchKb": "检索知识库",
@@ -342,6 +361,7 @@ const messages = {
"grepSearchFailed": "搜索关键词失败",
"getDocInfo": "获取文档信息",
"getDocInfoFailed": "获取文档信息失败",
+ "viewDocument": "查看文档",
"thinkingDone": "完成思考",
"thinkingFailed": "思考失败",
"updateTodos": "更新任务列表",
@@ -349,6 +369,8 @@ const messages = {
"imageAnalyzing": "正在查看图片内容...",
"imageAnalysisDone": "已查看图片内容",
"imageAnalysisFailed": "图片内容查看失败",
+ "queryUnderstanding": "正在理解问题...",
+ "queryUnderstandDone": "已完成问题理解",
"called": "调用 {name}",
"calledFailed": "调用 {name} 失败"
},
@@ -475,10 +497,12 @@ const messages = {
"tokenCopied": "Token copied",
"awaitingToken": "Waiting for host page to provide token…",
"preview": "Preview",
+ "previewLoading": "Loading preview…",
"previewIframeHint": "Shows how the iframe embed looks on a third-party page (same as the copied snippet).",
"previewWidgetHint": "Shows the floating widget on a mock host page. On a real site the host passes the token via postMessage.",
"previewMockPage": "Mock host page",
"defaultChatTitle": "AI Assistant",
+ "newChat": "New chat",
"rotateConfirmTitle": "Rotate publish token?",
"rotateConfirmBody": "The old token stops working immediately. Update every deployed embed snippet.",
"tokenRequiredForPreview": "A publish token is required to preview. Create a channel or rotate the token first."
@@ -644,7 +668,8 @@ const messages = {
"confirm": "Confirm",
"cancel": "Cancel",
"copy": "Copy",
- "copied": "Copied"
+ "copied": "Copied",
+ "finish": "Finish"
},
"error": {
"tokenNotFound": "Login token not found, please log in again",
@@ -697,6 +722,7 @@ const messages = {
"knowledgeGraphExtract": "Knowledge Graph Extraction",
"thinking": "Thinking",
"imageAnalysis": "Image Analysis",
+ "queryUnderstand": "Understand Query",
"queryKnowledgeGraph": "Knowledge Graph Query",
"readSkill": "Read Skill",
"executeSkillScript": "Execute Skill Script",
@@ -745,6 +771,21 @@ const messages = {
"titleMatch": "title",
"faqEntry": "FAQ entry"
},
+ "knowledgeChunksList": {
+ "chunkRange": "Loaded {fetched} / {total} chunks",
+ "page": "Page {page}, {pageSize} per page"
+ },
+ "ragPipeline": {
+ "understanding": "Understanding query...",
+ "understandDone": "Query understood",
+ "searching": "Searching knowledge base...",
+ "searchingWithQuery": "Searching knowledge base: \"{query}\"",
+ "searchDone": "Search complete",
+ "searchDoneWithQuery": "Searched knowledge base: \"{query}\"",
+ "referencedDocs": "Cited <strong>{count}</strong> documents",
+ "referencedWebs": "Cited <strong>{count}</strong> web results",
+ "referencedDocAndWeb": "Cited <strong>{docCount}</strong> documents and <strong>{webCount}</strong> web results"
+ },
"toolStatus": {
"calling": "Calling {name}...",
"searchKb": "Searching knowledge base",
@@ -755,6 +796,7 @@ const messages = {
"grepSearchFailed": "Keyword search failed",
"getDocInfo": "Getting document info",
"getDocInfoFailed": "Failed to get document info",
+ "viewDocument": "View document",
"thinkingDone": "Thinking complete",
"thinkingFailed": "Thinking failed",
"updateTodos": "Updating task list",
@@ -762,6 +804,8 @@ const messages = {
"imageAnalyzing": "Viewing image content...",
"imageAnalysisDone": "Image content viewed",
"imageAnalysisFailed": "Image viewing failed",
+ "queryUnderstanding": "Understanding query...",
+ "queryUnderstandDone": "Query understood",
"called": "Called {name}",
"calledFailed": "Failed to call {name}"
},
diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts
index 08a7bbcf2..4bf8c8211 100755
--- a/frontend/src/i18n/locales/en-US.ts
+++ b/frontend/src/i18n/locales/en-US.ts
@@ -2939,6 +2939,7 @@ export default {
newChat: 'New Chat',
suggestedQuestions: 'You can ask me',
suggestedQuestionsLoading: 'Loading suggestions...',
+ refreshSuggestedQuestions: 'Refresh suggestions',
inputPlaceholder: 'Enter your message...',
send: 'Send',
thinking: 'Thinking...',
@@ -4853,10 +4854,12 @@ export default {
listKnowledgeChunks: 'List Knowledge Chunks',
getRelatedDocuments: 'Find Related Documents',
getDocumentContent: 'Get Document Content',
+ wikiReadSourceDoc: 'Deep-read Source Doc',
todoWrite: 'Plan Management',
knowledgeGraphExtract: 'Knowledge Graph Extraction',
thinking: 'Thinking',
imageAnalysis: 'Image Analysis',
+ queryUnderstand: 'Understand Query',
queryKnowledgeGraph: 'Knowledge Graph Query',
readSkill: 'Read Skill',
executeSkillScript: 'Execute Skill Script',
@@ -4905,6 +4908,21 @@ export default {
titleMatch: 'title',
faqEntry: 'FAQ entry',
},
+ knowledgeChunksList: {
+ chunkRange: 'Loaded {fetched} / {total} chunks',
+ page: 'Page {page}, {pageSize} per page',
+ },
+ ragPipeline: {
+ understanding: 'Understanding query...',
+ understandDone: 'Query understood',
+ searching: 'Searching knowledge base...',
+ searchingWithQuery: 'Searching knowledge base: "{query}"',
+ searchDone: 'Search complete',
+ searchDoneWithQuery: 'Searched knowledge base: "{query}"',
+ referencedDocs: 'Cited <strong>{count}</strong> documents',
+ referencedWebs: 'Cited <strong>{count}</strong> web results',
+ referencedDocAndWeb: 'Cited <strong>{docCount}</strong> documents and <strong>{webCount}</strong> web results',
+ },
toolStatus: {
calling: 'Calling {name}...',
searchKb: 'Searching knowledge base',
@@ -4915,6 +4933,7 @@ export default {
grepSearchFailed: 'Keyword search failed',
getDocInfo: 'Getting document info',
getDocInfoFailed: 'Failed to get document info',
+ viewDocument: 'View document',
thinkingDone: 'Thinking complete',
thinkingFailed: 'Thinking failed',
updateTodos: 'Updating task list',
@@ -4922,6 +4941,8 @@ export default {
imageAnalyzing: 'Viewing image content...',
imageAnalysisDone: 'Image content viewed',
imageAnalysisFailed: 'Image viewing failed',
+ queryUnderstanding: 'Understanding query...',
+ queryUnderstandDone: 'Query understood',
called: 'Called {name}',
calledFailed: 'Failed to call {name}',
},
@@ -5111,6 +5132,7 @@ export default {
empty: 'No IM channels yet',
unnamed: 'Unnamed Channel',
docLink: 'Integration Guide',
+ wecomConsole: 'WeCom Admin Console',
feishuConsole: 'Feishu Open Platform',
slackConsole: 'Slack API Console',
telegramConsole: 'Telegram BotFather',
@@ -5246,6 +5268,8 @@ export default {
retry: 'Retry',
},
mermaid: {
+ diagram: 'Diagram',
+ expand: 'Expand',
zoomIn: 'Zoom In',
zoomOut: 'Zoom Out',
reset: 'Reset',
diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts
index 8f7310853..df79936be 100755
--- a/frontend/src/i18n/locales/ko-KR.ts
+++ b/frontend/src/i18n/locales/ko-KR.ts
@@ -861,6 +861,7 @@ export default {
newChat: "새 대화",
suggestedQuestions: "이렇게 물어보세요",
suggestedQuestionsLoading: "추천 질문 로딩 중...",
+ refreshSuggestedQuestions: "추천 질문 새로고침",
inputPlaceholder: "메시지를 입력하세요...",
send: "전송",
thinking: "생각 중...",
@@ -4884,10 +4885,12 @@ export default {
listKnowledgeChunks: '지식 청크 목록',
getRelatedDocuments: '관련 문서 찾기',
getDocumentContent: '문서 내용 가져오기',
+ wikiReadSourceDoc: '원본 문서 읽기',
todoWrite: '계획 관리',
knowledgeGraphExtract: '지식 그래프 추출',
thinking: '사고',
imageAnalysis: '이미지 내용 분석',
+ queryUnderstand: '질문 이해',
queryKnowledgeGraph: '지식 그래프 조회',
readSkill: '스킬 읽기',
executeSkillScript: '스킬 스크립트 실행',
@@ -4934,6 +4937,18 @@ export default {
keywordHits: '{count}회',
titleMatch: '제목',
},
+ knowledgeChunksList: {
+ chunkRange: '{fetched} / {total} 청크 로드됨',
+ page: '{page}페이지, 페이지당 {pageSize}개',
+ },
+ ragPipeline: {
+ understanding: '질문 이해 중...',
+ understandDone: '질문 이해 완료',
+ searching: '지식베이스 검색 중...',
+ searchingWithQuery: '지식베이스 검색 중: 「{query}」',
+ searchDone: '검색 완료',
+ searchDoneWithQuery: '지식베이스 검색: 「{query}」',
+ },
toolStatus: {
calling: '{name} 호출 중...',
searchKb: '지식베이스 검색',
@@ -4951,6 +4966,8 @@ export default {
imageAnalyzing: '이미지 내용 분석 중...',
imageAnalysisDone: '이미지 내용 분석 완료',
imageAnalysisFailed: '이미지 내용 분석 실패',
+ queryUnderstanding: '질문 이해 중...',
+ queryUnderstandDone: '질문 이해 완료',
called: '{name} 호출 완료',
calledFailed: '{name} 호출 실패',
},
@@ -5070,6 +5087,7 @@ export default {
empty: "IM 채널이 없습니다",
unnamed: "이름 없는 채널",
docLink: "통합 가이드 보기",
+ wecomConsole: "WeCom 관리 콘솔",
feishuConsole: "Feishu 개발 플랫폼",
slackConsole: "Slack API 콘솔",
telegramConsole: "Telegram BotFather",
@@ -5275,6 +5293,8 @@ export default {
retry: "재시도",
},
mermaid: {
+ diagram: "다이어그램",
+ expand: "전체 화면",
zoomIn: "확대",
zoomOut: "축소",
reset: "초기화",
diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts
index 95eafd8aa..ea83c12ab 100755
--- a/frontend/src/i18n/locales/ru-RU.ts
+++ b/frontend/src/i18n/locales/ru-RU.ts
@@ -3300,6 +3300,7 @@ export default {
newChat: 'Новый чат',
suggestedQuestions: 'Вы можете спросить меня',
suggestedQuestionsLoading: 'Загрузка предложений...',
+ refreshSuggestedQuestions: 'Обновить предложения',
inputPlaceholder: 'Введите ваше сообщение...',
send: 'Отправить',
thinking: 'Думаю...',
@@ -4384,10 +4385,12 @@ export default {
listKnowledgeChunks: 'Список фрагментов знаний',
getRelatedDocuments: 'Поиск связанных документов',
getDocumentContent: 'Получение содержимого документа',
+ wikiReadSourceDoc: 'Читать исходный документ',
todoWrite: 'Управление планами',
knowledgeGraphExtract: 'Извлечение графа знаний',
thinking: 'Размышление',
imageAnalysis: 'Анализ изображения',
+ queryUnderstand: 'Понимание запроса',
queryKnowledgeGraph: 'Запрос графа знаний',
readSkill: 'Чтение навыка',
executeSkillScript: 'Выполнение скрипта навыка',
@@ -4434,6 +4437,18 @@ export default {
keywordHits: '{count} вх.',
titleMatch: 'заголовок',
},
+ knowledgeChunksList: {
+ chunkRange: 'Загружено {fetched} / {total} фрагментов',
+ page: 'Стр. {page}, по {pageSize} на странице',
+ },
+ ragPipeline: {
+ understanding: 'Анализ запроса...',
+ understandDone: 'Запрос понят',
+ searching: 'Поиск в базе знаний...',
+ searchingWithQuery: 'Поиск в базе знаний: «{query}»',
+ searchDone: 'Поиск завершён',
+ searchDoneWithQuery: 'Поиск в базе знаний: «{query}»',
+ },
toolStatus: {
calling: 'Вызов {name}...',
searchKb: 'Поиск по базе знаний',
@@ -4451,6 +4466,8 @@ export default {
imageAnalyzing: 'Анализ изображения...',
imageAnalysisDone: 'Анализ изображения завершён',
imageAnalysisFailed: 'Ошибка анализа изображения',
+ queryUnderstanding: 'Анализ запроса...',
+ queryUnderstandDone: 'Запрос понят',
called: 'Вызван {name}',
calledFailed: 'Ошибка вызова {name}'
},
@@ -4640,6 +4657,7 @@ export default {
empty: 'Нет IM-каналов',
unnamed: 'Неименованный канал',
docLink: 'Руководство по интеграции',
+ wecomConsole: 'Консоль WeCom',
feishuConsole: 'Платформа Feishu',
slackConsole: 'Консоль Slack API',
telegramConsole: 'Telegram BotFather',
@@ -4775,6 +4793,8 @@ export default {
retry: 'Повторить'
},
mermaid: {
+ diagram: 'Диаграмма',
+ expand: 'На весь экран',
zoomIn: 'Увеличить',
zoomOut: 'Уменьшить',
reset: 'Сброс',
diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts
index 1d00156a3..c65f7c1fe 100755
--- a/frontend/src/i18n/locales/zh-CN.ts
+++ b/frontend/src/i18n/locales/zh-CN.ts
@@ -859,6 +859,7 @@ export default {
newChat: "新对话",
suggestedQuestions: "你可以这样问我",
suggestedQuestionsLoading: "正在加载推荐问题...",
+ refreshSuggestedQuestions: "换一批推荐问题",
inputPlaceholder: "请输入您的消息...",
send: "发送",
thinking: "思考中...",
@@ -4847,10 +4848,12 @@ export default {
listKnowledgeChunks: "查看知识分块",
getRelatedDocuments: "查找相关文档",
getDocumentContent: "获取文档内容",
+ wikiReadSourceDoc: "精读源文档",
todoWrite: "计划管理",
knowledgeGraphExtract: "知识图谱抽取",
thinking: "思考",
imageAnalysis: "查看图片内容",
+ queryUnderstand: "理解问题",
queryKnowledgeGraph: "知识图谱查询",
readSkill: "读取技能",
executeSkillScript: "执行技能脚本",
@@ -4899,6 +4902,21 @@ export default {
titleMatch: "标题匹配",
faqEntry: "FAQ 条目",
},
+ knowledgeChunksList: {
+ chunkRange: "已加载 {fetched} / {total} 个分块",
+ page: "第 {page} 页,每页 {pageSize} 个",
+ },
+ ragPipeline: {
+ understanding: "正在理解问题...",
+ understandDone: "已完成问题理解",
+ searching: "正在检索知识库...",
+ searchingWithQuery: "正在检索知识库:「{query}」",
+ searchDone: "检索完成",
+ searchDoneWithQuery: "检索知识库:「{query}」",
+ referencedDocs: "引用 <strong>{count}</strong> 篇文档",
+ referencedWebs: "引用 <strong>{count}</strong> 条网页",
+ referencedDocAndWeb: "引用 <strong>{docCount}</strong> 篇文档和 <strong>{webCount}</strong> 条网页",
+ },
toolStatus: {
calling: "正在调用 {name}...",
searchKb: "检索知识库",
@@ -4909,6 +4927,7 @@ export default {
grepSearchFailed: "搜索关键词失败",
getDocInfo: "获取文档信息",
getDocInfoFailed: "获取文档信息失败",
+ viewDocument: "查看文档",
thinkingDone: "完成思考",
thinkingFailed: "思考失败",
updateTodos: "更新任务列表",
@@ -4916,6 +4935,8 @@ export default {
imageAnalyzing: "正在查看图片内容...",
imageAnalysisDone: "已查看图片内容",
imageAnalysisFailed: "图片内容查看失败",
+ queryUnderstanding: "正在理解问题...",
+ queryUnderstandDone: "已完成问题理解",
called: "调用 {name}",
calledFailed: "调用 {name} 失败",
},
@@ -5035,6 +5056,7 @@ export default {
empty: "暂无 IM 渠道",
unnamed: "未命名渠道",
docLink: "查看接入文档",
+ wecomConsole: "企业微信管理后台",
feishuConsole: "飞书开放平台",
slackConsole: "Slack API 控制台",
telegramConsole: "Telegram BotFather",
@@ -5240,6 +5262,8 @@ export default {
},
},
mermaid: {
+ diagram: "图表",
+ expand: "全屏查看",
zoomIn: "放大",
zoomOut: "缩小",
reset: "重置",