Parcourir la source

Merge pull request #2939 from KarlLee830/translate

Add some missing i18n keys
Timothy Jaeryang Baek il y a 11 mois
Parent
commit
762db11bf4

+ 3 - 3
src/lib/components/chat/MessageInput/CallOverlay.svelte

@@ -622,7 +622,7 @@
 								</button>
 							</VideoInputMenu>
 						{:else}
-							<Tooltip content="Camera">
+							<Tooltip content="{$i18n.t('Camera')}">
 								<button
 									class=" p-3 rounded-full bg-gray-50 dark:bg-gray-900"
 									type="button"
@@ -658,9 +658,9 @@
 						<button type="button">
 							<div class=" line-clamp-1 text-sm font-medium">
 								{#if loading}
-									Thinking...
+									{$i18n.t('Thinking...')}
 								{:else}
-									Listening...
+									{$i18n.t('Listening...')}
 								{/if}
 							</div>
 						</button>

+ 5 - 0
src/lib/i18n/locales/zh-CN/translation.json

@@ -74,6 +74,7 @@
 	"Bypass SSL verification for Websites": "绕过网站的 SSL 验证",
 	"Call": "呼叫",
 	"Call feature is not supported when using Web STT engine": "使用 Web 语音转文字引擎时不支持呼叫功能。",
+	"Camera": "摄像头",
 	"Cancel": "取消",
 	"Capabilities": "能力",
 	"Change Password": "更改密码",
@@ -246,6 +247,7 @@
 	"Hello, {{name}}": "你好,{{name}}",
 	"Help": "帮助",
 	"Hide": "隐藏",
+	"Hide Models": "隐藏模型",
 	"How can I help you today?": "今天我能帮你做些什么?",
 	"Hybrid Search": "混合搜索",
 	"Image Generation (Experimental)": "图像生成(实验性)",
@@ -276,6 +278,7 @@
 	"Language": "语言",
 	"Last Active": "最后在线时间",
 	"Light": "浅色",
+	"Listening...": "正在倾听...",
 	"LLMs can make mistakes. Verify important information.": "大语言模型可能会生成误导性错误信息,请对关键信息加以验证。",
 	"Local Models": "本地模型",
 	"LTR": "从左至右",
@@ -453,6 +456,7 @@
 	"Share to OpenWebUI Community": "分享到 OpenWebUI 社区",
 	"short-summary": "简短总结",
 	"Show": "显示",
+	"Show Model": "显示模型",
 	"Show Admin Details in Account Pending Overlay": "在用户待激活界面中显示管理员邮箱等详细信息",
 	"Show shortcuts": "显示快捷方式",
 	"Showcased creativity": "很有创意",
@@ -484,6 +488,7 @@
 	"Thanks for your feedback!": "感谢您的反馈!",
 	"The score should be a value between 0.0 (0%) and 1.0 (100%).": "分值应介于 0.0(0%)和 1.0(100%)之间。",
 	"Theme": "主题",
+	"Thinking...": "正在思考...",
 	"This ensures that your valuable conversations are securely saved to your backend database. Thank you!": "这将确保您的宝贵对话被安全地保存到后台数据库中。感谢!",
 	"This is an experimental feature, it may not function as expected and is subject to change at any time.": "这是一个实验功能,可能不会如预期那样工作,而且可能随时发生变化。",
 	"This setting does not sync across browsers or devices.": "此设置不会在浏览器或设备之间同步。",