From f4a122a4bb73d16e9e58cf3bec719cf15b812608 Mon Sep 17 00:00:00 2001 From: Karl Lee <61072264+KarlLee830@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:47:40 +0800 Subject: [PATCH] Added missing i18n Added missing i18n keys and update Chinese translation. --- src/lib/components/chat/Settings/Models.svelte | 4 ++-- src/lib/i18n/locales/zh-CN/translation.json | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/components/chat/Settings/Models.svelte b/src/lib/components/chat/Settings/Models.svelte index 193402547..ee825dfa7 100644 --- a/src/lib/components/chat/Settings/Models.svelte +++ b/src/lib/components/chat/Settings/Models.svelte @@ -541,7 +541,7 @@ ]); } else { ollamaEnabled = false; - toast.error('Ollama API is disabled'); + toast.error($i18n.t('Ollama API is disabled')); } }); @@ -1063,7 +1063,7 @@ {/if} {:else if ollamaEnabled === false} -
Ollama API is disabled
+
{$i18n.t('Ollama API is disabled')}
{:else}
diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index 627e4609b..04584ed74 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -123,7 +123,7 @@ "Create new secret key": "创建新安全密钥", "Created at": "创建于", "Created At": "创建于", - "Created by": "创建者", + "Created by": "作者", "Current Model": "当前模型", "Current Password": "当前密码", "Custom": "自定义", @@ -348,7 +348,7 @@ "Password": "密码", "PDF document (.pdf)": "PDF 文档 (.pdf)", "PDF Extract Images (OCR)": "PDF 图像处理 (使用 OCR)", - "pending": "待定", + "pending": "待激活", "Permission denied when accessing microphone: {{error}}": "申请麦克风权限被拒绝:{{error}}", "Personalization": "个性化", "Pipelines": "Pipeline", @@ -443,7 +443,7 @@ "Share to OpenWebUI Community": "分享到 OpenWebUI 社区", "short-summary": "简短总结", "Show": "显示", - "Show Admin Details in Account Pending Overlay": "在用户待定界面中显示管理员邮箱等详细信息", + "Show Admin Details in Account Pending Overlay": "在用户待激活界面中显示管理员邮箱等详细信息", "Show shortcuts": "显示快捷方式", "Showcased creativity": "很有创意", "sidebar": "侧边栏", @@ -545,6 +545,7 @@ "You're now logged in.": "已登录。", "Youtube": "YouTube", "Youtube Loader Settings": "YouTube 爬取设置", + "Ollama API is disabled": "Ollama API 已禁用", "Account Activation Pending": "账号待激活", "Contact Admin for WebUI Access": "请联系管理员以获取访问权限", "Your account status is currently pending activation.": "您的账号当前状态为待激活。",