window.I18N_LOCALES = window.I18N_LOCALES || {};
window.I18N_LOCALES.zh = {
  settings: "设置",
  builder: "搭建器",
  language: "语言",
  new_chat: "新建对话",
  knowledge_base: "知识库",
  explore: "探索",
  memory: "记忆",
  explore_title: "探索",
  explore_subtitle: "在这里查看 UltraRAG 的功能扩展。",
  explore_feature_memory_title: "记忆",
  explore_feature_memory_desc: "管理全局记忆并同步工作记忆到知识库。",
  explore_feature_more_title: "更多功能",
  explore_feature_more_desc: "未来会在这里上线更多扩展能力。",
  no_knowledge_base: "无知识库",
  recent: "最近",
  select_pipeline: "选择流程",
  background: "后台执行",
  placeholder_chat_input: "向 UltraRAG 提问",
  greeting_explore: "今天想探索什么？",
  greeting_full: "你好。今天想探索什么？",
  greeting_full_with_nickname: "你好，{nickname}。今天想探索什么？",
  auth_account: "账号",
  auth_dialog_title: "账号",
  auth_logged_in_as: "当前用户：{user}",
  auth_guest_mode: "当前用户：default（访客）",
  auth_login_title: "登录",
  auth_register_title: "注册",
  auth_username_label: "用户名",
  auth_password_label: "密码",
  auth_username_placeholder: "例如 alice_01",
  auth_password_placeholder: "至少 6 位",
  auth_login_action: "登录",
  auth_register_action: "注册",
  auth_new_user_register: "新用户注册",
  auth_back_to_login: "返回登录",
  auth_account_back: "返回",
  auth_nickname_title: "设置昵称",
  auth_nickname_label: "昵称",
  auth_nickname_placeholder: "可输入中文或英文昵称",
  auth_nickname_hint: "留空可清除昵称。",
  auth_nickname_action: "保存昵称",
  auth_nickname_saving: "昵称保存中...",
  auth_nickname_saved: "昵称已保存。",
  auth_change_password_title: "修改密码",
  auth_change_password_action: "修改密码",
  auth_current_password_label: "原密码",
  auth_new_password_label: "新密码",
  auth_confirm_new_password_label: "重复新密码",
  auth_change_passwording: "修改中...",
  auth_change_password_success: "密码修改成功。",
  auth_change_password_login_required: "请先登录后再修改密码。",
  auth_new_password_mismatch: "两次输入的新密码不一致。",
  auth_new_password_same_as_current: "新密码不能与原密码相同。",
  auth_admin_default_credentials: "管理员默认账号：admin / 12345678",
  auth_admin_change_password_tip: "首次登录后请立即修改密码。",
  auth_model_settings_title: "模型设置",
  auth_model_settings_save: "保存模型设置",
  auth_model_retriever_group: "检索器",
  auth_model_generation_group: "生成器",
  auth_model_api_key_label: "API Key",
  auth_model_base_url_label: "Base URL",
  auth_model_name_label: "Model Name",
  auth_model_optional_placeholder: "留空则复用默认配置",
  auth_model_settings_saving: "模型设置保存中...",
  auth_model_settings_saved: "模型设置已保存。",
  auth_model_settings_clear: "清空参数",
  auth_model_settings_clearing: "正在清空模型参数...",
  auth_model_settings_cleared: "模型参数已清空，已恢复使用 pipeline 参数。",
  auth_model_settings_clear_confirm: "确认清空已保存的模型参数覆盖吗？清空后将恢复使用 pipeline 默认参数。",
  auth_model_settings_login_required: "请先登录后再设置模型。",
  auth_logout_action: "登出",
  auth_form_required: "请输入用户名和密码。",
  auth_logging_in: "登录中...",
  auth_registering: "注册中...",
  auth_logging_out: "登出中...",
  auth_login_success: "已登录为 {user}。",
  auth_register_success: "已注册并登录为 {user}。",
  auth_logout_success: "已登出，当前为访客模式。",
  auth_logout_confirm: "确认登出当前账号吗？",

  bg_tasks_title: "后台任务",
  bg_tasks_refresh: "刷新",
  bg_tasks_clear: "清除",
  bg_tasks_clear_completed: "清除已完成",
  bg_tasks_close: "关闭",
  bg_tasks_empty: "暂无后台任务",
  bg_task_running: "进行中",
  bg_task_completed: "已完成",
  bg_task_failed: "失败",
  bg_task_completed_title: "后台任务完成",
  bg_task_failed_title: "后台任务失败",
  bg_task_loading_details: "加载任务详情中...",
  bg_task_loading_details_failed: "加载任务详情失败。",
  bg_task_task_not_found: "未找到任务",
  bg_task_copy_result: "复制结果",
  bg_task_load_current: "加载到当前对话",
  bg_task_load_new: "加载到新对话",
  bg_task_delete: "删除",
  bg_task_question: "问题",
  bg_task_error: "错误",
  bg_task_unknown_error: "未知错误",
  bg_task_processing: "正在处理请求...",
  bg_task_loading_to_current: "正在加载到对话...",
  bg_task_loading_to_new: "正在加载到新对话...",
  bg_task_loaded: "已加载",
  bg_task_loaded_new: "后台任务已加载到新对话",
  bg_task_loaded_current: "后台任务已加载到当前对话",
  bg_task_load_failed: "加载失败",
  bg_tasks_switch_chat: "请切换到聊天页面查看后台任务。",
  bg_task_delete_confirm: "确定删除该任务？",
  bg_task_delete_title: "删除任务",
  bg_tasks_clear_completed_confirm: "这将移除所有已完成的后台任务，是否继续？",
  bg_tasks_clear_completed_title: "清除已完成任务",

  kb_collections: "知识库",
  kb_connecting: "连接中...",
  kb_connected: "已连接",
  kb_disconnected: "已断开",
  kb_not_configured: "未配置",
  kb_endpoint: "端点",
  kb_target: "目标",
  kb_loading_config: "加载配置中...",
  kb_current_db: "当前数据库",
  kb_configure_db: "配置数据库",
  kb_new_collection: "新建知识库",
  kb_import_knowledge: "导入知识",
  kb_import_subtitle: "将原始文档处理为向量索引。",
  kb_delete_all: "全部删除",
  kb_clear_temp_files: "清除所有临时文件",
  kb_raw_files: "原始文件",
  kb_upload: "上传",
  kb_corpus: "语料",
  kb_chunks: "分块",
  kb_build_vector_index: "构建向量索引",
  kb_collection_name: "知识库名称",
  kb_existing_collection: "已有知识库",
  kb_mode: "模式",
  kb_mode_new: "新建",
  kb_mode_append: "追加",
  kb_mode_overwrite: "覆盖",
  kb_cancel: "取消",
  kb_start_indexing: "开始索引",
  kb_database_settings: "数据库设置",
  kb_milvus_uri: "Milvus 地址",
  kb_milvus_uri_help: "支持本地文件路径或远程 HTTP/TCP 连接。",
  kb_token_optional: "Token（可选）",
  kb_save_connect: "保存并连接",
  kb_chunk_configuration: "分块配置",
  kb_chunk_backend: "分块后端",
  kb_tokenizer_counter: "分词器 / 计数器",
  kb_chunk_size: "分块大小",
  kb_use_title: "使用标题",
  kb_use_title_help: "在每个分块前添加文档标题。",
  kb_embedding_configuration: "Embedding 配置",
  kb_embedding_desc: "为向量索引配置 Embedding 模型（兼容 OpenAI API）。",
  kb_api_key: "API Key",
  kb_api_key_help: "你的 OpenAI 或兼容 API Key。",
  kb_base_url: "Base URL",
  kb_base_url_help: "API 端点，可用于 Azure 或本地模型。",
  kb_model_name: "模型名称",
  kb_model_name_help: "例如 text-embedding-3-small, text-embedding-ada-002",
  kb_save_config: "保存配置",
  kb_empty: "空",
  kb_empty_folder: "空文件夹",
  kb_empty_no_visible: "空（无可见文件）",
  kb_action_parse: "解析",
  kb_action_chunk: "分块",
  kb_action_index: "索引",
  kb_library_empty_title: "暂无知识库",
  kb_library_empty_hint: "点击“新建知识库”导入文档。",
  kb_vectors: "向量",
  kb_ready: "就绪",
  kb_delete_collection: "删除知识库",
  kb_delete: "删除",
  kb_files: "文件",
  kb_uri_required: "Milvus 地址不能为空",
  kb_validation_error: "校验错误",
  kb_chunk_size_invalid: "分块大小必须为正数",
  kb_base_url_required: "Base URL 不能为空",
  kb_model_name_required: "模型名称不能为空",
  kb_load_collections_failed: "加载已有知识库失败，请重试。",
  kb_load_failed_title: "加载失败",
  kb_collection_name_required: "知识库名称不能为空",
  kb_name_exists_title: "名称已存在",
  kb_collection_exists: "知识库名称“{inputName}”已存在{displayName}。请选择“追加”以添加数据，或“覆盖”以重建。",
  kb_no_collections_title: "暂无知识库",
  kb_no_collections_message: "未找到已有知识库，请使用“新建”模式创建。",
  kb_select_collection_title: "需要选择",
  kb_select_collection_message: "请选择一个知识库。",
  kb_confirm_append: "确认向已有知识库“{label}”追加数据？",
  kb_confirm_append_title: "追加确认",
  kb_confirm_overwrite: "确认覆盖已有知识库“{label}”？这将删除并重建。",
  kb_confirm_overwrite_title: "覆盖确认",
  kb_confirm_new: "确认创建名为“{label}”的新知识库？",
  kb_confirm_new_title: "创建知识库",
  kb_continue: "继续",
  kb_create: "创建",
  kb_uploading: "上传中...",
  kb_upload_failed: "上传失败",
  kb_upload_error: "上传出错：",
  kb_delete_collection_action: "删除该知识库",
  kb_delete_file_action: "删除该文件",
  kb_delete_confirm_message: "确定永久{action}（{name}）？",
  kb_delete_confirm_title: "删除确认",
  kb_delete_failed: "删除失败：",
  kb_delete_no_permission_title: "无权限删除",
  kb_delete_no_permission_message: "你没有删除该知识库的权限。仅管理员（admin）或知识库创建者可删除。",
  kb_running_task: "正在运行 {task}...",
  kb_task_error_title: "任务错误",
  kb_task_start_failed: "任务启动失败",
  kb_task_failed_title: "任务失败",
  kb_task_failed_message: "任务失败：{error}",
  kb_clear_staging_title: "清空暂存区",
  kb_clear_staging_prompt: "确定清空所有临时文件（原始、语料、分块）？",
  kb_clear_all: "全部清空",
  kb_deleted_summary: "已删除：\n- 原始：{raw} 项\n- 语料：{corpus} 项\n- 分块：{chunks} 项\n\n合计：{total} 项",
  kb_note_errors: "注意：发生了一些错误：\n{errors}",
  kb_more_errors: "……还有 {count} 个错误",
  kb_staging_cleared_title: "暂存区已清空",
  kb_clear_failed: "清空失败：",
  kb_clear_error: "清空出错：",
  kb_folder_contents: "文件夹内容",
  kb_close: "关闭",
  kb_visibility_title: "知识库可见性",
  kb_visibility_collection_hint: "知识库：{name}",
  kb_visibility_mode_label: "可见范围",
  kb_visibility_mode_private: "仅自己可见",
  kb_visibility_mode_public: "公开（所有用户可见）",
  kb_visibility_mode_shared: "指定用户可见",
  kb_visibility_users_label: "可见用户",
  kb_visibility_users_empty: "暂无可共享用户",
  kb_visibility_owner_hint: "所有者：{owner}",
  kb_visibility_readonly_hint: "你没有修改权限。",
  kb_visibility_readonly_owner_hint: "你没有修改权限，当前所有者：{owner}。",
  kb_visibility_readonly_login_hint: "你当前未登录，请先登录所有者账号（{owner}）后再修改。",
  kb_visibility_saved: "可见性已保存。",
  kb_visibility_load_failed_title: "加载可见性失败",
  kb_visibility_save_failed_title: "保存可见性失败",
  memory_loading: "正在加载记忆...",
  memory_loaded: "记忆已加载",
  memory_load_failed: "加载失败",
  memory_load_failed_title: "记忆加载失败",
  memory_load_failed_message: "加载记忆失败：{error}",
  memory_saving: "正在保存记忆...",
  memory_saved: "记忆已保存",
  memory_save_failed: "保存失败",
  memory_save_failed_title: "记忆保存失败",
  memory_save_failed_message: "保存记忆失败：{error}",
  memory_sync_to_kb: "同步到KB",
  memory_sync_submitting: "正在提交同步任务...",
  memory_sync_running: "正在同步到知识库...",
  memory_sync_success: "同步完成",
  memory_sync_success_title: "同步成功",
  memory_sync_success_message: "已同步到知识库：{collection}",
  memory_sync_failed: "同步失败",
  memory_sync_failed_title: "同步失败",
  memory_sync_failed_message: "同步记忆失败：{error}",
  memory_sync_timeout: "同步超时，请稍后重试",
  memory_clear_vectors_action: "清空记忆向量",
  memory_clear_vectors_confirm_title: "清空工作记忆向量",
  memory_clear_vectors_confirm_message: "确认清空当前用户工作记忆知识库中的所有向量，并删除该用户的工作记忆文件吗？（不会删除全局 MEMORY）",
  memory_clear_vectors_running: "正在清空工作记忆向量...",
  memory_clear_vectors_success: "工作记忆向量已清空",
  memory_clear_vectors_success_title: "清空成功",
  memory_clear_vectors_success_message: "已清空知识库：{collection}，删除向量数：{count}，删除工作记忆文件数：{files}",
  memory_clear_vectors_failed: "清空失败",
  memory_clear_vectors_failed_title: "清空失败",
  memory_clear_vectors_failed_message: "清空工作记忆向量失败：{error}",
  memory_global_title: "全局记忆",
  memory_working_kb_title: "工作记忆",
  memory_working_kb_hint: "当前用户工作记忆对应的内部知识库卡片。",
  memory_working_kb_empty_title: "尚未生成工作记忆库",
  memory_working_kb_empty_desc: "当前用户还没有工作记忆索引，点击“同步到KB”后会创建：{collection}",
  memory_editor_placeholder: "# MEMORY\n\n在这里编辑长期记忆内容。",

  common_new: "新建",
  common_save: "保存",
  common_delete: "删除",
  common_cancel: "取消",
  common_confirm: "确认",
  common_close: "关闭",
  common_edit: "编辑",
  common_open: "打开",
  common_apply: "应用",
  common_reject: "拒绝",
  common_continue: "继续",
  common_ok: "确定",
  common_primary: "主要",
  common_secondary: "次要",
  common_create: "创建",
  common_retry: "重试",
  common_rename: "重命名",
  common_unknown_error: "未知错误",

  modal_notification: "提示",
  modal_confirm_title: "确认",
  modal_choice_title: "选择一个选项",
  modal_input_title: "输入",

  chat_interrupt_message: "当前正在生成回复，此操作将中断生成。\n\n提示：可使用“后台执行”避免中断。",
  chat_interrupt_title: "生成中",
  chat_interrupt_confirm: "中断",
  chat_wait_for_response_message: "请等待当前回复完成。",
  chat_wait_for_response_title: "请稍候",
  chat_rename_prompt: "请输入新的对话名称：",
  chat_rename_title: "重命名对话",
  chat_rename_placeholder: "例如：我的重要对话",
  chat_rename_required: "名称不能为空。",
  chat_untitled: "未命名对话",
  chat_delete_confirm: "确定删除该对话？",
  chat_delete_title: "删除对话",
  chat_delete_all_confirm: "确定删除所有对话记录？",
  chat_delete_all_title: "清空全部对话",
  chat_delete_all_action: "全部删除",
  chat_clear_all_title: "清空全部对话",
  chat_sidebar_toggle_title: "切换侧边栏",
  chat_send_button_title: "发送",
  chat_stop_button_title: "停止",
  chat_kb_required_message: "开始对话前请选择知识库。",
  chat_kb_required_title: "需要选择知识库",
  chat_engine_required_message: "请先启动引擎。",
  chat_engine_required_title: "需要启动引擎",
  chat_engine_init_failed_message: "引擎初始化失败：{error}",
  chat_engine_error_title: "引擎错误",
  chat_error_title: "对话错误",
  chat_backend_error_message: "后端错误：{error}",
  chat_network_error_message: "网络错误：{error}",
  chat_show_thinking: "显示思考",
  chat_cited_references: "引用来源",
  chat_other_retrieved: "其他检索",
  chat_copy_button_title: "复制",
  chat_copy_code_button_title: "复制代码",
  chat_copy_table_button_title: "复制表格",
  chat_export_button_title: "导出",
  chat_export_format_title: "导出对话",
  chat_export_format_message: "请选择导出格式：",
  chat_export_format_markdown: "Markdown (.md)",
  chat_export_format_docx: "Word 文档 (.docx)",
  chat_export_docx_failed_title: "导出失败",
  chat_export_docx_failed_message: "导出 DOCX 失败：{error}",

  builder_editor_reset_message: "此操作会将编辑器内容重置为当前画布状态，所有手动编辑将丢失。",
  builder_editor_reset_title: "重置编辑器",
  builder_editor_reset_action: "重置",

  builder_no_pipeline_selected: "未选择流程",
  builder_ai_assistant: "AI 助手",
  builder_nav_pipeline_yaml: "流程 YAML",
  builder_nav_pipeline: "流程",
  builder_nav_parameters: "参数",
  builder_nav_params: "参数",
  builder_nav_prompts: "提示词",
  builder_nav_prompt_templates: "提示模板",
  builder_nav_chat: "聊天",
  builder_select_pipeline: "选择流程",
  builder_pipeline_canvas: "流程画布",
  builder_pipeline_name_placeholder: "流程名称...",
  builder_new_pipeline: "新建流程",
  builder_build: "构建",
  builder_yaml_placeholder: "# 在此编写流程 YAML...",
  builder_yaml_synced_title: "已与画布同步",
  builder_yaml_syncing_title: "同步中...",
  builder_yaml_error_title: "解析错误",
  builder_yaml_modified_title: "编辑器已修改（保存后生效）",
  builder_params_servers: "Servers",
  builder_params_reload: "重新加载参数",
  builder_params_panel_title: "参数",
  builder_params_empty: "请先<strong>构建</strong>流程以配置参数。",
  builder_prompt_files: "提示词文件",
  builder_prompt_modified: "已修改",
  builder_prompt_search_placeholder: "搜索提示词...",
  builder_new_prompt: "新建提示词",
  builder_prompt_empty: "从列表选择提示词文件，或新建一个。",
  builder_prompt_template_placeholder: "# Jinja 模板...",
  builder_console_title: "控制台",
  builder_console_toggle: "折叠/展开控制台",
  builder_params_back: "返回流程画布",
  builder_params_config_title: "参数配置",
  builder_params_hint: "从左侧选择 Servers 以配置参数，或展开下方全部配置。",
  builder_params_save: "保存参数",
  builder_params_enter_chat: "进入对话模式",
  builder_params_simplified: "精简模式",
  builder_params_toggle_title: "切换精简/完整参数显示",
  builder_node_add_title: "添加节点",
  builder_node_tab_tool: "工具",
  builder_node_tab_branch: "分支",
  builder_node_tab_loop: "循环",
  builder_node_tab_custom: "自定义",
  builder_node_label_server: "Server",
  builder_node_label_function: "函数",
  builder_node_label_cases: "分支条件",
  builder_node_label_iterations: "循环次数",
  builder_node_label_json_config: "JSON 配置",
  builder_node_confirm_add: "确认添加",
  builder_step_editor_title: "编辑节点配置",
  builder_node_no_tools: "无工具",
  builder_node_select_server: "请选择 Server",
  builder_node_no_servers: "无 Servers",
  builder_node_select_tool_error: "请选择工具",
  builder_node_custom_empty_error: "自定义内容不能为空",
  builder_node_insert_here: "在此插入节点",
  builder_node_add: "添加节点",
  builder_parse_empty_error: "内容为空",
  builder_loop_title: "循环（{times}次）",
  builder_open_context: "打开上下文 →",
  builder_empty_loop: "空循环",
  builder_branch: "分支",
  builder_open_router: "打开路由 →",
  builder_router_logic: "路由逻辑",
  builder_case_label: "分支：{name}",
  builder_empty_case: "空分支",
  builder_add_case: "+ 分支",
  builder_delete_branch: "删除分支",
  builder_custom_object: "自定义对象",
  builder_exit_context: "退出上下文 ✕",
  builder_context_root: "根",
  builder_context_loop: "循环",
  builder_context_router: "路由",
  builder_context_case: "分支：{name}",
  builder_context_node: "节点",
  builder_no_pipelines: "暂无流程",
  builder_pipeline_built_title: "已构建",
  builder_build_running: "构建中...",
  builder_build_success: "构建成功",
  builder_build_failed: "构建失败",
  builder_log_engine_invalidated: "流程“{name}”已修改，引擎会话已失效。",
  builder_load_pipeline_failed: "加载流程失败：{error}",
  builder_pipeline_ready: "流程“{name}”参数已加载，可进入对话。",
  builder_pipeline_name_required: "请输入流程名称",
  builder_save_aborted_yaml_error: "YAML 有错误，已取消保存。",
  builder_save_failed_status: "保存失败：{status}",
  builder_pipeline_saved: "流程已保存。",
  builder_error_message: "错误：{error}",
  builder_save_failed_message: "保存失败：{error}",
  builder_save_error_title: "保存错误",
  builder_save_before_build: "请先保存流程再构建。",
  builder_save_pipeline_first: "请先保存流程。",
  builder_building_pipeline: "正在构建流程“{name}”...",
  builder_pipeline_built_log: "流程构建完成。",
  builder_load_parameters_failed: "加载参数失败：{error}",
  builder_build_failed_message: "构建失败：{error}",
  builder_build_error_title: "构建错误",
  builder_delete_pipeline_confirm: "确定删除该流程？",
  builder_delete_pipeline_title: "删除流程",
  builder_invalid_pipeline_name: "名称无效。仅支持字母、数字、下划线、连字符，且需以字母或下划线开头。",
  builder_pipeline_renamed: "流程已重命名为“{name}”。",
  builder_unsaved_changes_message: "存在未保存的更改，继续可能会丢失。是否要{action}？",
  builder_unsaved_changes_title: "未保存的更改",
  builder_action_continue: "继续",
  builder_action_create_pipeline: "创建新流程",
  builder_action_enter_chat: "进入对话模式",
  builder_action_switch_pipeline: "切换到其他流程",
  builder_action_refresh_pipeline_list: "刷新流程列表",
  builder_workspace_switch_unsaved_message: "切换工作区会丢失未保存的更改，是否继续？",
  builder_mode_pipeline: "流程",
  builder_mode_parameters: "参数",
  builder_mode_prompts: "提示词",
  builder_switched_mode: "已切换到{mode}模式。",
  builder_yaml_parse_failed: "YAML 解析失败",
  builder_yaml_parse_failed_message: "YAML 无法解析：{error}",
  builder_yaml_invalid_format: "流程格式无效：需要 \"pipeline\" 或 \"steps\" 数组",
  builder_new_pipeline_prompt: "请输入新流程名称：",
  builder_invalid_pipeline_name_full: "流程名称无效。仅支持字母、数字、下划线、连字符，且需以字母或下划线开头。",
  builder_invalid_name_title: "名称无效",
  builder_params_not_found: "未找到参数。",
  builder_params_saved: "参数已保存。",
  builder_params_reloaded: "参数已重新加载。",
  builder_pipeline_not_ready_message: "请先构建流程并保存参数后再进入对话。",
  builder_pipeline_not_ready_title: "流程未就绪",
  builder_build_pipeline_first: "请先构建流程。",
  builder_clear_steps_confirm: "确定清空所有步骤？",
  builder_clear_steps_title: "清空步骤",
  builder_clear_steps_action: "清空",
  builder_prompt_load_failed: "加载提示词失败：{error}",
  builder_prompt_discard_confirm: "确定丢弃“{name}”的未保存更改？",
  builder_discard: "丢弃",
  builder_prompt_delete_confirm: "确定删除“{name}”？",
  builder_prompt_delete_title: "删除提示词",
  builder_prompt_deleted: "已删除：{path}",
  builder_prompt_delete_failed: "删除提示词失败：{error}",
  builder_prompt_rename_prompt: "请输入新的文件名：",
  builder_prompt_rename_title: "重命名提示词",
  builder_prompt_rename_placeholder: "例如：my_prompt.jinja",
  builder_prompt_rename_required: "提示词文件名不能为空。",
  builder_prompt_renamed: "已重命名为：{name}",
  builder_prompt_rename_failed: "重命名提示词失败：{error}",
  builder_prompt_list_load_failed: "加载提示词列表失败：{error}",
  builder_prompt_list_load_failed_ui: "加载提示词失败。",
  builder_prompt_list_empty: "未找到提示词文件。",
  builder_prompt_new_prompt: "请输入提示词文件名：",
  builder_prompt_new_placeholder: "例如：my_prompt.jinja",
  builder_prompt_created: "已创建提示词：{name}",
  builder_prompt_create_failed: "创建提示词失败：{error}",
  builder_prompt_saved: "已保存：{path}",
  builder_prompt_save_failed: "保存提示词失败：{error}",

  builder_ai_back: "返回列表",
  builder_ai_context_no_pipeline: "未选择流程",
  builder_ai_recent: "最近",
  builder_ai_new_session: "新建会话",
  builder_ai_delete_session: "删除会话",
  builder_ai_welcome_title: "UltraRAG AI 助手",
  builder_ai_welcome_desc: "我可以帮你搭建流程、配置参数、编辑提示词。",
  builder_ai_welcome_hint: "点击设置图标配置你的 API 连接。",
  builder_ai_chip_pipeline_adjustment: "流程调整",
  builder_ai_chip_prompt_adaptation: "提示词改写",
  builder_ai_chip_parameter_settings: "参数设置",
  builder_ai_chip_freeform_tuning: "自由调整",
  builder_ai_prompt_pipeline_adjustment: "将当前 RAG 流程更新为包含引用模块，确保最终输出展示来源引用以便核验。",
  builder_ai_prompt_prompt_adaptation: "针对[插入领域，如医疗/法律]优化系统提示词，请完善指令，确保生成响应严格使用专业术语并具备逻辑准确性。",
  builder_ai_prompt_parameter_settings: "重新配置生成后端。将后端类型切换为 OpenAI，模型名称设置为[插入模型名，如 Llama-3-70B]，并将 API 端口更新为[插入端口，如 8000]。",
  builder_ai_prompt_freeform_tuning: "我想基于这篇文章/论文重新设计 RAG 流程：[插入链接]。请分析其核心方法，并协助构建类似的流程架构。",
  builder_ai_input_placeholder: "问我任何关于流程的问题...",
  builder_ai_input_hint: "回车发送，Shift+回车换行",
  builder_ai_settings_title: "AI 设置",
  builder_ai_settings_provider: "服务商",
  builder_ai_settings_base_url: "API 基础地址",
  builder_ai_settings_api_key: "API Key",
  builder_ai_settings_model: "模型",
  builder_ai_settings_save_test: "保存并测试",
  builder_ai_settings_saved_success: "设置保存成功！",
  builder_ai_settings_save_failed: "保存设置失败：{error}",
  builder_ai_settings_api_key_required: "请输入 API Key",
  builder_ai_settings_testing: "正在测试连接...",
  builder_ai_settings_connection_success: "连接成功！模型：{model}",
  builder_ai_settings_connection_failed: "连接失败：{error}",
  builder_ai_toggle_visibility: "切换可见性",
  builder_ai_send: "发送",
  builder_ai_stop: "停止",
  builder_ai_stopped: "已停止生成。",
  builder_ai_provider_openai: "OpenAI",
  builder_ai_provider_azure: "Azure OpenAI",
  builder_ai_provider_anthropic: "Anthropic",
  builder_ai_provider_custom: "自定义 API",
  builder_ai_status_connected: "已连接：{model}",
  builder_ai_status_configured_pending: "已配置 - 请保存并测试",
  builder_ai_status_not_configured: "未配置",
  builder_ai_sessions_empty: "暂无会话",
  builder_ai_action_modify_pipeline: "流程修改",
  builder_ai_action_modify_prompt: "提示词修改",
  builder_ai_action_modify_parameter: "参数修改",
  builder_ai_action_modify_generic: "修改",
  builder_ai_no_response: "无响应",
  builder_ai_context_none: "无活动上下文",
  builder_ai_context_prompt_editing: "正在编辑提示词：{file}",
  builder_ai_context_prompt_panel: "提示词面板",
  builder_ai_context_parameters_editing: "正在编辑“{pipeline}”的参数",
  builder_ai_context_parameters_no_pipeline: "参数面板（未选择流程）",
  builder_ai_context_pipeline_editing: "正在编辑流程 YAML：{pipeline}",
  builder_ai_context_pipeline_canvas: "流程画布",
  builder_ai_error_generic: "请求失败，请重试。",
  builder_ai_error_list_index: "上游模型返回无效响应（索引越界）。请重试或检查模型设置。",
  builder_ai_error_timeout: "请求超时。请检查网络或模型服务状态后重试。",
  builder_ai_error_network: "网络错误，请检查网络或代理设置。",
  builder_ai_error_with_message: "请求失败：{error}",
  builder_ai_error_request_failed: "请求失败",
  builder_ai_pipeline_change_ignored: "已忽略流程修改",
  builder_ai_pipeline_change_ignored_hint: "你正在编辑参数。请明确要求更新流程 YAML，或切换到流程视图。",
  builder_ai_action_unknown: "未知动作类型：{type}",
  builder_ai_action_applied: "✓ 已应用",
  builder_ai_action_applied_log: "AI 修改已成功应用。",
  builder_ai_action_apply_failed: "应用修改失败：{error}",
  builder_ai_action_rejected: "已拒绝",
  builder_ai_session_new: "新会话",
  builder_ai_pipeline_updated_title: "流程已更新",
  builder_ai_pipeline_updated_message: "已替换“{name}”的 YAML",
  builder_ai_pipeline_updated_message_default: "AI 已更新当前 YAML",
  builder_ai_prompt_updated_title: "提示词已更新",
  builder_ai_prompt_updated_message: "已更新 {name}",
  builder_ai_prompt_updated_message_default: "AI 已更新当前提示词",
  builder_ai_params_load_failed: "应用前加载参数失败：{error}",
  builder_ai_parameter_updated_title: "参数已更新",
  builder_ai_parameter_updated_message: "已设置 {path}",
  ai_session_delete_confirm: "确定删除该会话？",
  ai_session_delete_title: "删除会话",
  ai_session_delete_all_confirm: "确定删除全部 {count} 个会话？",
  ai_session_delete_all_title: "删除全部会话",
  ai_session_delete_all_action: "全部删除",

  status_ready: "就绪",
  status_offline: "离线",
  status_engine_offline: "引擎离线",
  status_thinking: "思考中...",
  status_initializing: "初始化中...",
  status_reconnecting: "重新连接中...",
  status_params_missing: "参数缺失",
  status_engine_ready: "引擎就绪",
  status_engine_error: "引擎错误",
  status_error: "错误",
  status_interrupted: "已中断",
  status_suspending: "暂停中..."
};
