Added missing i18n

Added missing i18n keys and update Chinese translation.
This commit is contained in:
Karl Lee 2024-06-06 13:47:40 +08:00
parent 34aea03c02
commit f4a122a4bb
2 changed files with 6 additions and 5 deletions

View File

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

View File

@ -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.": "您的账号当前状态为待激活。",