Sfoglia il codice sorgente

Update Chinese translation

Karl Lee 11 mesi fa
parent
commit
48c9fb0ddf

+ 2 - 2
src/lib/components/workspace/Models/Knowledge.svelte

@@ -13,7 +13,7 @@
 	</div>
 
 	<div class=" text-xs dark:text-gray-500">
-		To add documents here, upload them to the "Documents" workspace first.
+		{$i18n.t('To add documents here, upload them to the "Documents" workspace first.')}
 	</div>
 
 	<div class="flex flex-col">
@@ -97,7 +97,7 @@
 			<Selector bind:knowledge>
 				<button
 					class=" px-3.5 py-1.5 font-medium hover:bg-black/5 dark:hover:bg-white/5 outline outline-1 outline-gray-300 dark:outline-gray-800 rounded-3xl"
-					type="button">Select Documents</button
+					type="button">{$i18n.t('Select Documents')}</button
 				>
 			</Selector>
 		</div>

+ 10 - 6
src/lib/i18n/locales/zh-CN/translation.json

@@ -74,7 +74,7 @@
 	"Bypass SSL verification for Websites": "绕过网站的 SSL 验证",
 	"Call": "呼叫",
 	"Call feature is not supported when using Web STT engine": "使用 Web 语音转文字引擎时不支持呼叫功能。",
-	"Camera": "",
+	"Camera": "摄像头",
 	"Cancel": "取消",
 	"Capabilities": "能力",
 	"Change Password": "更改密码",
@@ -246,6 +246,7 @@
 	"Hello, {{name}}": "你好,{{name}}",
 	"Help": "帮助",
 	"Hide": "隐藏",
+	"Hide Model": "隐藏模型",
 	"How can I help you today?": "今天我能帮你做些什么?",
 	"Hybrid Search": "混合搜索",
 	"Image Generation (Experimental)": "图像生成(实验性)",
@@ -273,7 +274,7 @@
 	"JWT Token": "JWT 令牌",
 	"Keep Alive": "保持活动",
 	"Keyboard shortcuts": "键盘快捷键",
-	"Knowledge": "",
+	"Knowledge": "知识库",
 	"Language": "语言",
 	"Last Active": "最后在线时间",
 	"Light": "浅色",
@@ -319,7 +320,7 @@
 	"Name your model": "为您的模型命名",
 	"New Chat": "新对话",
 	"New Password": "新密码",
-	"No documents found": "",
+	"No documents found": "未找到文档",
 	"No results found": "未找到结果",
 	"No search query generated": "未生成搜索查询",
 	"No source available": "没有可用来源",
@@ -416,8 +417,8 @@
 	"Search Documents": "搜索文档",
 	"Search Models": "搜索模型",
 	"Search Prompts": "搜索提示词",
-	"Search Query Generation Prompt": "",
-	"Search Query Generation Prompt Length Threshold": "",
+	"Search Query Generation Prompt": "搜索查询生成提示",
+	"Search Query Generation Prompt Length Threshold": "搜索查询生成提示长度阈值",
 	"Search Result Count": "搜索结果数量",
 	"Searched {{count}} sites_other": "检索到 {{count}} 个网站",
 	"Searching the web for '{{searchQuery}}'": "在网络中搜索 '{{searchQuery}}' ",
@@ -458,6 +459,7 @@
 	"Share to OpenWebUI Community": "分享到 OpenWebUI 社区",
 	"short-summary": "简短总结",
 	"Show": "显示",
+	"Show Model": "显示模型",
 	"Show Admin Details in Account Pending Overlay": "在用户待激活界面中显示管理员邮箱等详细信息",
 	"Show shortcuts": "显示快捷方式",
 	"Showcased creativity": "很有创意",
@@ -567,5 +569,7 @@
 	"You're now logged in.": "已登录。",
 	"Your account status is currently pending activation.": "您的账号当前状态为待激活。",
 	"Youtube": "YouTube",
-	"Youtube Loader Settings": "YouTube 爬取设置"
+	"Youtube Loader Settings": "YouTube 爬取设置",
+	"To add documents here, upload them to the \"Documents\" workspace first.": "要在此处添加文档,请先将它们上传到工作空间中的“文档”内。",
+	"Select Documents": "选择文档"
 }