浏览代码

Added missing i18n

Added missing i18n keys and update Chinese translation.
Karl Lee 11 月之前
父节点
当前提交
f4a122a4bb
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 2 2
      src/lib/components/chat/Settings/Models.svelte
  2. 4 3
      src/lib/i18n/locales/zh-CN/translation.json

+ 2 - 2
src/lib/components/chat/Settings/Models.svelte

@@ -541,7 +541,7 @@
 			]);
 			]);
 		} else {
 		} else {
 			ollamaEnabled = false;
 			ollamaEnabled = false;
-			toast.error('Ollama API is disabled');
+			toast.error($i18n.t('Ollama API is disabled'));
 		}
 		}
 	});
 	});
 </script>
 </script>
@@ -1063,7 +1063,7 @@
 				</div>
 				</div>
 			{/if}
 			{/if}
 		{:else if ollamaEnabled === false}
 		{:else if ollamaEnabled === false}
-			<div>Ollama API is disabled</div>
+			<div>{$i18n.t('Ollama API is disabled')}</div>
 		{:else}
 		{:else}
 			<div class="flex h-full justify-center">
 			<div class="flex h-full justify-center">
 				<div class="my-auto">
 				<div class="my-auto">

+ 4 - 3
src/lib/i18n/locales/zh-CN/translation.json

@@ -123,7 +123,7 @@
 	"Create new secret key": "创建新安全密钥",
 	"Create new secret key": "创建新安全密钥",
 	"Created at": "创建于",
 	"Created at": "创建于",
 	"Created At": "创建于",
 	"Created At": "创建于",
-	"Created by": "创建者",
+	"Created by": "者",
 	"Current Model": "当前模型",
 	"Current Model": "当前模型",
 	"Current Password": "当前密码",
 	"Current Password": "当前密码",
 	"Custom": "自定义",
 	"Custom": "自定义",
@@ -348,7 +348,7 @@
 	"Password": "密码",
 	"Password": "密码",
 	"PDF document (.pdf)": "PDF 文档 (.pdf)",
 	"PDF document (.pdf)": "PDF 文档 (.pdf)",
 	"PDF Extract Images (OCR)": "PDF 图像处理 (使用 OCR)",
 	"PDF Extract Images (OCR)": "PDF 图像处理 (使用 OCR)",
-	"pending": "待",
+	"pending": "待激活",
 	"Permission denied when accessing microphone: {{error}}": "申请麦克风权限被拒绝:{{error}}",
 	"Permission denied when accessing microphone: {{error}}": "申请麦克风权限被拒绝:{{error}}",
 	"Personalization": "个性化",
 	"Personalization": "个性化",
 	"Pipelines": "Pipeline",
 	"Pipelines": "Pipeline",
@@ -443,7 +443,7 @@
 	"Share to OpenWebUI Community": "分享到 OpenWebUI 社区",
 	"Share to OpenWebUI Community": "分享到 OpenWebUI 社区",
 	"short-summary": "简短总结",
 	"short-summary": "简短总结",
 	"Show": "显示",
 	"Show": "显示",
-	"Show Admin Details in Account Pending Overlay": "在用户待界面中显示管理员邮箱等详细信息",
+	"Show Admin Details in Account Pending Overlay": "在用户待激活界面中显示管理员邮箱等详细信息",
 	"Show shortcuts": "显示快捷方式",
 	"Show shortcuts": "显示快捷方式",
 	"Showcased creativity": "很有创意",
 	"Showcased creativity": "很有创意",
 	"sidebar": "侧边栏",
 	"sidebar": "侧边栏",
@@ -545,6 +545,7 @@
 	"You're now logged in.": "已登录。",
 	"You're now logged in.": "已登录。",
 	"Youtube": "YouTube",
 	"Youtube": "YouTube",
 	"Youtube Loader Settings": "YouTube 爬取设置",
 	"Youtube Loader Settings": "YouTube 爬取设置",
+	"Ollama API is disabled": "Ollama API 已禁用",
 	"Account Activation Pending": "账号待激活",
 	"Account Activation Pending": "账号待激活",
 	"Contact Admin for WebUI Access": "请联系管理员以获取访问权限",
 	"Contact Admin for WebUI Access": "请联系管理员以获取访问权限",
 	"Your account status is currently pending activation.": "您的账号当前状态为待激活。",
 	"Your account status is currently pending activation.": "您的账号当前状态为待激活。",