fix: i18n

This commit is contained in:
ckt1031 2023-09-30 23:09:03 +08:00
parent db1bd7fd84
commit 6bddee0be6
2 changed files with 18 additions and 1 deletions

View File

@ -607,10 +607,25 @@
"系统令牌已复制到剪切板": "System token has been copied to clipboard",
"新版本可用:${serverStatus.version},请使用快捷键 Shift + F5 刷新页面": "New version available: ${serverStatus.version}, please refresh the page using shortcut Shift + F5",
"知识库FastGPT": "Knowledge Base: FastGPT",
"知识库AI Proxy": "Knowledge Base: AI Proxy",
"请立刻修改默认密码!": "Please change the default password immediately!",
"当前版本测试是通过按照 OpenAI API 格式使用 gpt-3.5-turbo 模型进行非流式请求实现的,因此测试报错并不一定代表通道不可用,该功能后续会修复。": "The current version of the test is implemented by using the gpt-3.5-turbo model for non-streaming requests in accordance with the OpenAI API format, so the test error does not necessarily mean that the channel is unavailable, and this function will be fixed later.",
"优先级": "Priority",
"渠道选择优先级,越高越优先": "Channel selection priority, the higher the better",
"日志清理失败:": "Log cleaning failed: ",
"目标时间": "Target time",
"知识库 ID": "Knowledge Base ID",
"${data} 条日志已清理!": "${data} logs have been cleaned!",
"私有部署地址": "Private deployment address",
"请输入私有部署地址格式为https://fastgpt.run/api/openapi": "Please enter the private deployment address, the format is: https://fastgpt.run/api/openapi",
"请输入新的密码,最短 8 位": "Please enter a new password, at least 8 characters",
"本项目 OneAPI 原作 JustSong ,由 ckt1031 改进,本源代码遵循 MIT 协议": "OneAPI by JustSong, improved by ckt1031, and follows MIT license",
"警告": "Warning",
"确定": "Confirm",
"。": ".",
"使用明细(总消耗额度:" : "Usage Details (Total Consumption Quota: ",
"使用明细(总消耗额度:": "Usage Details (Total Consumption Quota: ",
"": ")",
"自定义渠道": "Custom Channel",
"360 智脑": "360 AI",

View File

@ -11,6 +11,8 @@ def list_file_paths(path):
dirs.remove("build")
if "i18n" in dirs:
dirs.remove("i18n")
if ".git" in dirs:
dirs.remove(".git")
for file in files:
file_path = os.path.join(root, file)
if file_path.endswith("png") or file_path.endswith("ico") or file_path.endswith("db") or file_path.endswith("exe"):