mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-24 21:36:06 +00:00
9a71edfeb0
- Add language selector to register/initialization page with Chinese and English options
- Add register section translations to both zh-Hans.ts and en-US.ts
- Replace hardcoded Chinese texts in register page with i18n translation calls
- Fix hardcoded '加载中...' text in plugin configuration dialog to use t('plugins.loading')
- Follow existing login page pattern for language selector implementation
- Maintain consistent UI/UX design with proper language switching functionality
Co-Authored-By: Junyan Qin <Chin>, 秦骏言 in Chinese, you can call me my english name Rock Chin. <rockchinq@gmail.com>
212 lines
7.5 KiB
TypeScript
212 lines
7.5 KiB
TypeScript
const zhHans = {
|
|
common: {
|
|
login: '登录',
|
|
logout: '退出登录',
|
|
email: '邮箱',
|
|
password: '密码',
|
|
welcome: '欢迎回到 LangBot 👋',
|
|
continueToLogin: '登录以继续',
|
|
loginSuccess: '登录成功',
|
|
loginFailed: '登录失败,请检查邮箱和密码是否正确',
|
|
enterEmail: '输入邮箱地址',
|
|
enterPassword: '输入密码',
|
|
invalidEmail: '请输入有效的邮箱地址',
|
|
emptyPassword: '请输入密码',
|
|
language: '语言',
|
|
helpDocs: '帮助文档',
|
|
create: '创建',
|
|
edit: '编辑',
|
|
delete: '删除',
|
|
add: '添加',
|
|
select: '请选择',
|
|
cancel: '取消',
|
|
submit: '提交',
|
|
error: '错误',
|
|
success: '成功',
|
|
save: '保存',
|
|
saving: '保存中...',
|
|
confirm: '确认',
|
|
confirmDelete: '删除确认',
|
|
deleteConfirmation: '你确定要删除这个吗?',
|
|
selectOption: '选择一个选项',
|
|
required: '必填',
|
|
enable: '是否启用',
|
|
name: '名称',
|
|
description: '描述',
|
|
close: '关闭',
|
|
deleteSuccess: '删除成功',
|
|
deleteError: '删除失败:',
|
|
addRound: '添加回合',
|
|
copySuccess: '复制成功',
|
|
test: '测试',
|
|
},
|
|
notFound: {
|
|
title: '页面不存在',
|
|
description:
|
|
'您要查找的页面似乎不存在。请检查您输入的 URL 是否正确,或者返回首页。',
|
|
back: '上一级',
|
|
home: '返回主页',
|
|
help: '查看帮助文档',
|
|
},
|
|
models: {
|
|
title: '模型配置',
|
|
description: '配置和管理可在流水线中使用的模型',
|
|
createModel: '创建模型',
|
|
editModel: '编辑模型',
|
|
getModelListError: '获取模型列表失败:',
|
|
modelName: '模型名称',
|
|
modelProvider: '模型提供商',
|
|
modelBaseURL: '基础 URL',
|
|
modelAbilities: '模型能力',
|
|
saveSuccess: '保存成功',
|
|
saveError: '保存失败:',
|
|
createSuccess: '创建成功',
|
|
createError: '创建失败:',
|
|
deleteSuccess: '删除成功',
|
|
deleteError: '删除失败:',
|
|
deleteConfirmation: '你确定要删除这个模型吗?',
|
|
modelNameRequired: '模型名称不能为空',
|
|
modelProviderRequired: '模型供应商不能为空',
|
|
requestURLRequired: '请求URL不能为空',
|
|
apiKeyRequired: 'API Key不能为空',
|
|
keyNameRequired: '键名不能为空',
|
|
mustBeValidNumber: '必须是有效的数字',
|
|
mustBeTrueOrFalse: '必须是 true 或 false',
|
|
requestURL: '请求URL',
|
|
apiKey: 'API Key',
|
|
abilities: '能力',
|
|
selectModelAbilities: '选择模型能力',
|
|
visionAbility: '视觉能力',
|
|
functionCallAbility: '函数调用',
|
|
extraParameters: '额外参数',
|
|
addParameter: '添加参数',
|
|
keyName: '键名',
|
|
type: '类型',
|
|
value: '值',
|
|
string: '字符串',
|
|
number: '数字',
|
|
boolean: '布尔值',
|
|
extraParametersDescription:
|
|
'将在请求时附加到请求体中,如 max_tokens, temperature, top_p 等',
|
|
selectModelProvider: '选择模型供应商',
|
|
modelProviderDescription: '请填写供应商向您提供的模型名称',
|
|
selectModel: '请选择模型',
|
|
testSuccess: '测试成功',
|
|
testError: '测试失败,请检查模型配置',
|
|
},
|
|
bots: {
|
|
title: '机器人',
|
|
description: '创建和管理机器人,这是 LangBot 与各个平台连接的入口',
|
|
createBot: '创建机器人',
|
|
editBot: '编辑机器人',
|
|
getBotListError: '获取机器人列表失败:',
|
|
botName: '机器人名称',
|
|
botDescription: '机器人描述',
|
|
botNameRequired: '机器人名称不能为空',
|
|
botDescriptionRequired: '机器人描述不能为空',
|
|
adapterRequired: '适配器不能为空',
|
|
defaultDescription: '一个机器人',
|
|
getBotConfigError: '获取机器人配置失败:',
|
|
saveSuccess: '保存成功',
|
|
saveError: '保存失败:',
|
|
createSuccess: '创建成功 请启用或修改绑定流水线',
|
|
createError: '创建失败:',
|
|
deleteSuccess: '删除成功',
|
|
deleteError: '删除失败:',
|
|
deleteConfirmation: '你确定要删除这个机器人吗?',
|
|
platformAdapter: '平台/适配器选择',
|
|
selectAdapter: '选择适配器',
|
|
adapterConfig: '适配器配置',
|
|
bindPipeline: '绑定流水线',
|
|
selectPipeline: '选择流水线',
|
|
botLogTitle: '机器人日志',
|
|
enableAutoRefresh: '开启自动刷新',
|
|
session: '会话',
|
|
yesterday: '昨天',
|
|
earlier: '更久之前',
|
|
dateFormat: '{{month}}月{{day}}日',
|
|
setBotEnableError: '设置机器人启用状态失败',
|
|
},
|
|
plugins: {
|
|
title: '插件管理',
|
|
description: '安装和配置用于扩展 LangBot 功能的插件',
|
|
createPlugin: '创建插件',
|
|
editPlugin: '编辑插件',
|
|
installed: '已安装',
|
|
marketplace: '插件市场',
|
|
arrange: '编排',
|
|
install: '安装',
|
|
installFromGithub: '从 GitHub 安装插件',
|
|
onlySupportGithub: '目前仅支持从 GitHub 安装',
|
|
enterGithubLink: '请输入插件的Github链接',
|
|
installing: '正在安装插件...',
|
|
installSuccess: '插件安装成功',
|
|
installFailed: '插件安装失败:',
|
|
searchPlugin: '搜索插件',
|
|
sortBy: '排序方式',
|
|
mostStars: '最多星标',
|
|
recentlyAdded: '最近新增',
|
|
recentlyUpdated: '最近更新',
|
|
noMatchingPlugins: '没有找到匹配的插件',
|
|
loading: '加载中...',
|
|
getPluginListError: '获取插件列表失败:',
|
|
pluginConfig: '插件配置',
|
|
noPluginInstalled: '暂未安装任何插件',
|
|
pluginSort: '插件排序',
|
|
pluginSortDescription:
|
|
'插件顺序会影响同一事件内的处理顺序,请拖动插件卡片排序',
|
|
pluginSortSuccess: '插件排序成功',
|
|
pluginSortError: '插件排序失败:',
|
|
pluginNoConfig: '插件没有配置项。',
|
|
deleting: '删除中...',
|
|
deletePlugin: '删除插件',
|
|
cancel: '取消',
|
|
saveConfig: '保存配置',
|
|
saving: '保存中...',
|
|
confirmDeletePlugin: '你确定要删除插件({{author}}/{{name}})吗?',
|
|
confirmDelete: '确认删除',
|
|
deleteError: '删除失败:',
|
|
close: '关闭',
|
|
deleteConfirm: '删除确认',
|
|
modifyFailed: '修改失败:',
|
|
eventCount: '事件:{{count}}',
|
|
toolCount: '工具:{{count}}',
|
|
starCount: '星标:{{count}}',
|
|
},
|
|
pipelines: {
|
|
title: '流水线',
|
|
description: '流水线定义了对消息事件的处理流程,用于绑定到机器人',
|
|
createPipeline: '创建流水线',
|
|
editPipeline: '编辑流水线',
|
|
getPipelineListError: '获取流水线列表失败:',
|
|
daysAgo: '天前',
|
|
today: '今天',
|
|
updateTime: '更新于',
|
|
defaultBadge: '默认',
|
|
basicInfo: '基础信息',
|
|
aiCapabilities: 'AI 能力',
|
|
triggerConditions: '触发条件',
|
|
safetyControls: '安全控制',
|
|
outputProcessing: '输出处理',
|
|
nameRequired: '名称不能为空',
|
|
descriptionRequired: '描述不能为空',
|
|
createSuccess: '创建成功 请编辑流水线详细参数',
|
|
createError: '创建失败:',
|
|
saveSuccess: '保存成功',
|
|
saveError: '保存失败:',
|
|
deleteConfirmation:
|
|
'你确定要删除这个流水线吗?已绑定此流水线的机器人将无法使用。',
|
|
defaultPipelineCannotDelete: '默认流水线不可删除',
|
|
},
|
|
register: {
|
|
title: '初始化 LangBot 👋',
|
|
description: '这是您首次启动 LangBot',
|
|
adminAccountNote: '您填写的邮箱和密码将作为初始管理员账号',
|
|
register: '注册',
|
|
initSuccess: '初始化成功 请登录',
|
|
initFailed: '初始化失败:',
|
|
},
|
|
};
|
|
|
|
export default zhHans;
|