chore: import deployable mai-bot source tree
This commit is contained in:
39
locales/zh-CN/config.json
Normal file
39
locales/zh-CN/config.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"config.added_count": "新增配置数量: {count}",
|
||||
"config.added_item": "配置文件中新增配置项: {attribute}",
|
||||
"config.api_base_url_empty": "API基础URL不能为空,请在配置中设置有效的基础URL。",
|
||||
"config.api_key_empty": "API密钥不能为空,请在配置中设置有效的API密钥。",
|
||||
"config.api_provider_name_duplicate": "API提供商名称存在重复,请检查配置文件。",
|
||||
"config.api_provider_name_empty": "API提供商名称不能为空,请在配置中设置有效的名称。",
|
||||
"config.api_providers_empty": "API提供商列表不能为空,请在配置中设置有效的API提供商列表。",
|
||||
"config.change_summary_header": "-------- 配置文件变更信息 --------",
|
||||
"config.current_version": "MaiCore 当前版本: {version}",
|
||||
"config.file_change_detected": "检测到配置文件变更,触发热重载",
|
||||
"config.file_updated": "{file_name} 配置文件已经更新。Old: {old_version} -> New: {new_version},建议检查新配置文件中的内容,以免丢失重要信息",
|
||||
"config.file_watcher_started": "配置文件监视器已启动",
|
||||
"config.file_watcher_stop_stats": "配置文件监视器停止统计: batches={batches}, changes={changes}, ok={ok}, failed={failed}, timeout={timeout}, cooldown_skip={cooldown_skip}, restart={restart}",
|
||||
"config.global_not_initialized": "global_config 未初始化",
|
||||
"config.hot_reload_completed": "配置热重载完成",
|
||||
"config.invalid_inner_version": "配置文件 inner.version 类型错误",
|
||||
"config.legacy_migrated": "检测到旧版配置结构,已尝试自动修复: {reason}。建议稍后检查并保存生成的新配置文件。",
|
||||
"config.loaded": "非常的新鲜,非常的美味!",
|
||||
"config.loading": "正在品鉴配置文件...",
|
||||
"config.missing_inner_version": "配置文件缺少 inner 版本信息",
|
||||
"config.model_api_provider_empty": "API提供商不能为空,请在配置中设置有效的API提供商。",
|
||||
"config.model_api_provider_missing": "模型 '{model_name}' 的 api_provider '{api_provider}' 不存在",
|
||||
"config.model_identifier_empty": "模型 '{model_name}' 的 model_identifier 不能为空",
|
||||
"config.model_identifier_empty_generic": "模型标识符不能为空,请在配置中设置有效的模型标识符。",
|
||||
"config.model_name_duplicate": "模型名称存在重复,请检查配置文件。",
|
||||
"config.model_name_empty": "模型名称不能为空,请在配置中设置有效的模型名称。",
|
||||
"config.model_not_initialized": "model_config 未初始化",
|
||||
"config.models_empty": "模型列表不能为空,请在配置中设置有效的模型列表。",
|
||||
"config.parse_failed": "配置文件 {file_name} 解析失败",
|
||||
"config.reload_callback_failed": "配置重载回调执行失败: {error}",
|
||||
"config.reload_failed": "配置重载失败: {error}",
|
||||
"config.reload_skipped_too_frequent": "文件变更触发过于频繁,已跳过本次重载",
|
||||
"config.reload_timeout": "配置热重载超时(>{timeout_seconds}s)",
|
||||
"config.removed_count": "移除配置数量: {count}",
|
||||
"config.removed_item": "移除配置项: {attribute}",
|
||||
"config.version_update_detected": "检测到配置版本更新,热重载仅更新内存数据",
|
||||
"config.write_unsupported_type": "配置写入只支持 ConfigBase 子类"
|
||||
}
|
||||
8
locales/zh-CN/core.json
Normal file
8
locales/zh-CN/core.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"core.not_found": "未找到资源",
|
||||
"core.operation_failed": "操作失败: {error}",
|
||||
"core.tasks_cancelled": {
|
||||
"one": "已取消 {count} 个任务",
|
||||
"other": "已取消 {count} 个任务"
|
||||
}
|
||||
}
|
||||
8
locales/zh-CN/prompts.json
Normal file
8
locales/zh-CN/prompts.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"prompt.duplicate_template_name": "Prompt 模板名称 '{name}' 重复:{path_a} 与 {path_b}",
|
||||
"prompt.format_failed": "渲染 Prompt 模板 '{name}' 失败: {error}",
|
||||
"prompt.invalid_category": "Prompt 分类 '{category}' 非法",
|
||||
"prompt.invalid_name": "Prompt 名称 '{name}' 非法",
|
||||
"prompt.missing_placeholder": "Prompt 模板 '{name}' 缺少占位符 '{placeholder}'",
|
||||
"prompt.template_not_found": "未找到 locale '{locale}' 下的 Prompt 模板 '{name}'"
|
||||
}
|
||||
97
locales/zh-CN/startup.json
Normal file
97
locales/zh-CN/startup.json
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"startup.agreement_confirm_prompt": "输入\"同意\"或\"confirmed\",或设置环境变量\"EULA_AGREE={eula_hash}\"和\"PRIVACY_AGREE={privacy_hash}\"继续运行",
|
||||
"startup.agreement_confirm_retry": "请输入\"同意\"或\"confirmed\"以继续运行",
|
||||
"startup.agreement_reconfirm": "EULA 或隐私条款内容已更新,请在阅读后重新确认,继续运行视为同意更新后的以上两款协议",
|
||||
"startup.agreement_updated": "更新 {agreement_name} 确认文件 {file_hash}",
|
||||
"startup.brain_external_world_failed": "启动大脑和外部世界失败: {error}",
|
||||
"startup.chat_manager_initialized": "聊天管理器初始化成功",
|
||||
"startup.child_process_force_kill": "子进程未响应,强制关闭...",
|
||||
"startup.compiling_shaders": "正在编译着色器:1/114514",
|
||||
"startup.dev_branch_warning": "警告:Dev 进入不稳定开发状态,任何插件与 WebUI 均可能无法正常工作!",
|
||||
"startup.easter_egg": "多年以后,面对AI行刑队,张三将会回想起他2023年在会议上讨论人工智能的那个下午",
|
||||
"startup.emoji_manager_initialized": "表情包管理器初始化成功",
|
||||
"startup.env_auto_create_failed": "自动创建 .env 失败: {error}",
|
||||
"startup.env_created": "未找到 .env,已从 template/template.env 自动创建",
|
||||
"startup.env_file_missing": ".env 文件不存在,请创建并配置所需的环境变量",
|
||||
"startup.env_template_missing": "未找到 .env 文件,也未找到模板 template/template.env",
|
||||
"startup.eula_name": "EULA",
|
||||
"startup.eula_privacy_checked": "检查 EULA 和隐私条款完成",
|
||||
"startup.event_loop_closed": "[主程序] 事件循环已关闭",
|
||||
"startup.file_not_found": "{file_type} 文件不存在",
|
||||
"startup.graceful_shutdown_error": "优雅关闭时发生错误: {error}",
|
||||
"startup.initialization_completed_banner": "全部系统初始化完成,{nickname} 已成功唤醒",
|
||||
"startup.initialization_completed_cycles": "初始化完成,神经元放电 {init_time} 次",
|
||||
"startup.interrupt_received": "收到中断信号,正在优雅关闭...",
|
||||
"startup.launching_script": "正在启动MaiBot",
|
||||
"startup.logging_shutdown_error": "关闭日志系统时出错: {error}",
|
||||
"startup.main_error": "主程序发生异常: {error}",
|
||||
"startup.opensource_free_notice": " 本项目是完全免费的开源软件,基于 GPL-3.0 协议发布",
|
||||
"startup.opensource_group": " 官方群聊: ",
|
||||
"startup.opensource_group_value": "766798517",
|
||||
"startup.opensource_repo": " 官方仓库: ",
|
||||
"startup.opensource_repo_value": "https://github.com/MaiM-with-u/MaiBot",
|
||||
"startup.opensource_resale_warning": " 将本软件作为「商品」倒卖、隐瞒开源性质均违反协议!",
|
||||
"startup.opensource_scamming_notice": " 如果有人向你「出售本软件」,你被骗了!",
|
||||
"startup.opensource_title": " ★ MaiBot - 开源 AI 聊天机器人 ★",
|
||||
"startup.opensource_docs": " 官方文档: ",
|
||||
"startup.opensource_docs_value": "https://docs.mai-mai.org",
|
||||
"startup.prepare_exit": "[主程序] 准备退出...",
|
||||
"startup.privacy_name": "隐私条款",
|
||||
"startup.program_exited": "程序已退出(退出码 {return_code})",
|
||||
"startup.remaining_tasks_cancelling": {
|
||||
"one": "正在取消 {count} 个剩余任务...",
|
||||
"other": "正在取消 {count} 个剩余任务..."
|
||||
},
|
||||
"startup.remaining_tasks_cancelled": "所有剩余任务已成功取消",
|
||||
"startup.remaining_tasks_cancel_error": "等待任务取消时发生异常: {error}",
|
||||
"startup.remaining_tasks_cancel_timeout": "等待任务取消超时,强制继续关闭",
|
||||
"startup.restart_requested": "检测到重启请求(退出码 {exit_code}),正在重启...",
|
||||
"startup.restart_signal_received": "收到重启信号,准备退出并请求重启...",
|
||||
"startup.schedule_cancelled": "调度任务已取消",
|
||||
"startup.shutdown_completed": "麦麦优雅关闭完成",
|
||||
"startup.shutdown_failed": "麦麦关闭失败: {error}",
|
||||
"startup.shutdown_started": "正在优雅关闭麦麦...",
|
||||
"startup.waking_up": "正在唤醒 {nickname}......",
|
||||
"startup.webui_access_token": "🔑 WebUI 登录 Token: {token}",
|
||||
"startup.webui_access_token_failed": "❌ 获取 Access Token 失败: {error}",
|
||||
"startup.webui_access_token_login_hint": "💡 请使用此 Token 登录 WebUI",
|
||||
"startup.webui_anti_crawler_config_failed": "❌ 配置防爬虫中间件失败: {error}",
|
||||
"startup.webui_anti_crawler_configured": "🛡️ 防爬虫中间件已配置: {mode_desc}",
|
||||
"startup.webui_anti_crawler_mode_basic": "基础模式",
|
||||
"startup.webui_anti_crawler_mode_disabled": "已禁用",
|
||||
"startup.webui_anti_crawler_mode_loose": "宽松模式",
|
||||
"startup.webui_anti_crawler_mode_strict": "严格模式",
|
||||
"startup.webui_api_routes_register_failed": "❌ 注册 WebUI API 路由失败: {error}",
|
||||
"startup.webui_api_routes_registered": "✅ WebUI API 路由已注册",
|
||||
"startup.webui_auto_install_exec_failed": "❌ 执行 WebUI 前端依赖自动安装失败: {error}",
|
||||
"startup.webui_auto_install_failed": "❌ WebUI 前端依赖自动安装失败(退出码 {return_code})",
|
||||
"startup.webui_auto_install_failed_output": "📄 WebUI 前端依赖安装输出:\n{output}",
|
||||
"startup.webui_auto_install_started": "🔧 检测到 WebUI 前端依赖缺失,正在自动安装: {command}",
|
||||
"startup.webui_auto_install_succeeded": "✅ WebUI 前端依赖自动安装成功",
|
||||
"startup.webui_auto_install_timeout": "❌ WebUI 前端依赖自动安装超时(超过 {timeout_seconds} 秒)",
|
||||
"startup.webui_auto_recovery_failed": "❌ WebUI 前端自动恢复失败,静态资源仍不可用",
|
||||
"startup.webui_auto_build_artifacts_invalid": "⚠️ WebUI 前端自动构建完成,但静态产物仍不可用",
|
||||
"startup.webui_auto_build_exec_failed": "❌ 执行 WebUI 前端自动构建失败: {error}",
|
||||
"startup.webui_auto_build_failed": "❌ WebUI 前端自动构建失败(退出码 {return_code})",
|
||||
"startup.webui_auto_build_failed_output": "📄 WebUI 前端构建输出:\n{output}",
|
||||
"startup.webui_auto_build_started": "🔧 正在尝试自动构建 WebUI 前端: {command}",
|
||||
"startup.webui_auto_build_succeeded": "✅ WebUI 前端自动构建成功",
|
||||
"startup.webui_auto_build_timeout": "❌ WebUI 前端自动构建超时(超过 {timeout_seconds} 秒)",
|
||||
"startup.webui_auto_build_tool_missing": "❌ 未找到可用的前端构建工具,无法自动构建 WebUI",
|
||||
"startup.webui_cors_configured": "✅ CORS 中间件已配置",
|
||||
"startup.webui_dashboard_source_missing": "❌ 未找到 WebUI 前端源码目录: {dashboard_root}",
|
||||
"startup.webui_dashboard_package_hint": "💡 请安装预构建的 WebUI 静态资源包,例如: {command}",
|
||||
"startup.webui_disabled": "WebUI 已禁用",
|
||||
"startup.webui_index_missing": "❌ 未找到 index.html: {index_path}",
|
||||
"startup.webui_manual_build_hint": "💡 自动恢复未能修复前端资源,请在 dashboard 目录安装依赖并手动构建: {command}",
|
||||
"startup.webui_path_traversal_detected": "🚫 检测到疑似路径穿越请求: {full_path}",
|
||||
"startup.webui_robots_route_register_failed": "❌ 注册 robots.txt 路由失败: {error}",
|
||||
"startup.webui_robots_route_registered": "✅ robots.txt 路由已注册",
|
||||
"startup.webui_server_init_failed": "初始化 WebUI 服务器失败: {error}",
|
||||
"startup.webui_static_assets_unavailable": "❌ 未找到可用的 WebUI 静态资源(已安装的 maibot-dashboard 包或本地 dashboard/dist)",
|
||||
"startup.webui_static_assets_try_auto_build": "⚠️ WebUI 静态资源不可用,尝试自动构建前端...",
|
||||
"startup.webui_static_dir_missing": "❌ WebUI 静态文件目录不存在",
|
||||
"startup.webui_static_dir_missing_with_path": "❌ WebUI 静态文件目录不存在: {static_path}",
|
||||
"startup.webui_static_files_configured": "✅ WebUI 静态文件服务已配置: {static_path}",
|
||||
"startup.worker_dir_set": "已设置工作目录为: {script_dir}"
|
||||
}
|
||||
Reference in New Issue
Block a user