Ver Fonte

Add some missing i18n keys

Karl Lee há 11 meses atrás
pai
commit
0ccd96c950

+ 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>

+ 3 - 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": "更改密码",
@@ -276,6 +277,7 @@
 	"Language": "语言",
 	"Last Active": "最后在线时间",
 	"Light": "浅色",
+	"Listening...": "正在倾听...",
 	"LLMs can make mistakes. Verify important information.": "大语言模型可能会生成误导性错误信息,请对关键信息加以验证。",
 	"Local Models": "本地模型",
 	"LTR": "从左至右",
@@ -484,6 +486,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.": "此设置不会在浏览器或设备之间同步。",