common:
  yes: "是"
  no: "否"
  cancelled: "交互中断"
  saved: "已保存。"
  cancelled_action: "已取消。"
  config_load_failed: "加载配置失败: %{error}"
  no_providers: "没有可用的 provider，请先运行 config add-provider。"
  no_models: "没有已配置的 model，请先运行 config add-model。"
  overwrite_provider: "provider '%{name}' 已存在，是否覆盖？"
  overwrite_model: "model '%{name}' 已存在，是否覆盖？"

prompt_ui:
  internal_empty_options: "内部错误：选项列表为空"
  render_failed: "渲染终端 UI 失败: %{error}"
  init_failed: "初始化终端 UI 失败: %{error}"
  read_input_failed: "读取终端输入失败: %{error}"
  line_count: "%{count} 行"
  help_select: "↑↓ / j k 移动  Enter 确认  Esc 取消"
  help_text: "←→ 移动  Home/End 跳转  Backspace/Delete 编辑  Enter 确认  Esc 取消"
  help_detail: "↑↓ / j k 滚动  PgUp/PgDn 翻页  Home/End 跳转  Enter / Esc 返回"
  loading_body: "请稍候..."
  loading_help: "等待远端响应"
  non_negative_integer: "请输入非负整数"

setup:
  title: "Daat Locus 初始化"
  language_prompt: "Language / 语言"
  language_english: "English"
  language_chinese: "简体中文"
  welcome: "欢迎使用 Daat Locus"
  missing_config: "未找到配置文件，先来完成初始化设置。"
  init_mode: "如何初始化？"
  interactive: "交互式配置（推荐）"
  skip_default: "跳过，创建默认配置（需手动编辑 config.toml）"
  default_created: "已创建默认配置。请编辑 ~/.daat-locus/config.toml 后重启。"
  provider_step: "步骤 1/2：添加 Provider"
  model_step: "步骤 2/2：添加模型"
  written: "配置已写入 ~/.daat-locus/config.toml"

config:
  provider_kind: "Provider 类型"
  provider_openai_compatible: "OpenAI-compatible"
  provider_ollama_local: "Ollama（本地）"
  provider_ollama_cloud: "Ollama Cloud（ollama.com）"
  provider_name: "Provider 名称（在 config.toml 中的 key）"
  openai_api_key: "OpenAI API key（sk-...）"
  custom_base_url: "使用自定义 base URL？（默认 api.openai.com）"
  base_url_openai: "Base URL（API 根路径，例如 https://api.openai.com/v1）"
  base_url_local: "Base URL（API 根路径，例如 https://api.openai.com/v1）"
  local_api_key: "API key"
  ollama_host: "Ollama 主机地址（例如 http://127.0.0.1:11434）"
  ollama_cloud_api_key: "Ollama API key（从 ollama.com/settings/api-keys 获取）"
  ollama_keep_alive_enable: "设置 keep_alive 时长？（保持模型加载在内存中）"
  ollama_keep_alive: "keep_alive 时长（例如 5m、1h，-1 表示永久）"
  github_auth_method: "GitHub 认证方式"
  github_device_login: "Device code 登录（推荐，浏览器授权）"
  github_manual_token: "手动填写 GitHub Token（PAT）"
  github_env_token: "使用环境变量（GITHUB_TOKEN / GH_TOKEN）"
  github_token: "GitHub Token（ghp_...）"
  codex_oauth_auth_method: "OpenAI Codex 认证方式"
  codex_oauth_browser_login: "浏览器登录（推荐，本地回调）"
  codex_oauth_device_login: "Device code 登录（备用/无头环境）"
  codex_oauth_import_local_codex: "从本地 Codex 导入"
  codex_oauth_import_codex_auth_file: "从指定 Codex auth.json 路径导入"
  codex_oauth_auth_file: "使用已有 Daat Locus OpenAI Codex auth 文件"
  codex_oauth_auth_file_path: "Daat Locus OpenAI Codex auth 文件路径"
  codex_oauth_codex_auth_file_path: "Codex auth.json 路径"
  discover_models: "获取模型列表"
  manual_model: "手动输入..."
  select_model: "选择模型"
  model_name: "Model 名称（config.toml 中的 key）"
  reasoning_config: "推理强度"
  reasoning_skip: "跳过（使用模型默认值）"
  bind_provider: "绑定 Provider"
  add_provider: "添加模型提供商"
  add_model: "添加模型"
  select_main_model: "选择 main_model"
  use_main_model: "与 main_model 相同（默认）"
  telegram_enable: "启用 Telegram transport？"
  telegram_token_source: "Telegram bot token 来源"
  telegram_keep_existing_token: "保留现有 token"
  telegram_env_token: "使用环境变量（TELEGRAM_BOT_TOKEN）"
  telegram_manual_token: "手动输入 Telegram bot token"
  telegram_token_env_name: "Telegram bot token 环境变量名"
  telegram_bot_token: "Telegram bot token"
  telegram_poll_timeout_secs: "Telegram 轮询超时时间（秒）"
  configure_telegram: "设置 Telegram"
  telegram_saved: "Telegram 配置已保存。"
  set_as_main: "将 '%{name}' 设为 main_model？"
  provider_saved: "Provider '%{name}' 已保存。"
  model_saved: "Model '%{name}' 已保存。"
  main_model_set: "main_model 已设为 '%{name}'。"
  select_efficient_model: "选择 efficient_model（非主循环操作的默认模型）"
  efficient_model_set: "efficient_model 已设为 '%{name}'。"
  change_efficient_model: "设置效率模型"
  show_details: "查看配置详情"
  change_main_model: "设置主模型"
  exit: "退出"
  menu_title: "配置管理  %{status}"
  status_configured: "main_model=%{main_model} | providers=%{providers} | models=%{models} | locale=%{locale_name}"
  status_load_error: "配置加载错误: %{error}"
  status_unconfigured: "尚未配置"
  details_title: "配置详情"
  fallback_to_main: " (同 main_model)"
  telegram_active: "已启用"
  telegram_disabled: "已禁用"
  telegram_waiting_for_token: "已启用但缺少 token"
  telegram_token_missing: "<缺失>"
  locale_heading: "语言"
  providers_heading: "服务提供方"
  models_heading: "模型"
  judge_heading: "评审"
  telegram_heading: "Telegram"

github:
  http_client_failed: "HTTP client 初始化失败: %{error}"
  request_device_code: "正在向 GitHub 请求 device code..."
  request_device_code_failed: "请求 device code 失败: %{error}"
  http_error: "GitHub 返回错误 HTTP %{status}: %{body}"
  parse_device_code_failed: "解析 device code 响应失败: %{error}"
  missing_device_code: "响应缺少 device_code 字段"
  missing_user_code: "响应缺少 user_code 字段"
  authorization: "GitHub 授权"
  open_url: "打开: %{url}"
  enter_code: "输入验证码: %{code}"
  expired: "device code 已过期，请重新运行"
  waiting: "等待 GitHub 授权%{dots}   "
  poll_failed: "轮询 access token 失败: %{error}"
  parse_token_failed: "解析 token 响应失败: %{error}"
  success: "授权成功"
  access_denied: "用户取消了授权"
  auth_error: "GitHub 授权错误: %{error}"
  unknown_response: "未知的 token 响应: %{body}"

codex_oauth:
  request_browser_login: "正在启动本地 OpenAI Codex 回调服务..."
  request_device_code: "正在向 OpenAI Codex 请求 device code..."
  authorization: "OpenAI Codex 授权"
  open_url: "打开: %{url}"
  callback_waiting: "等待浏览器回调: %{url}"
  enter_code: "输入验证码: %{code}"
  code_warning: "Device code 属于敏感验证码，请勿分享给他人。"
  waiting: "等待 OpenAI Codex 授权%{dots}   "
  success: "授权成功"
  browser_failed: "浏览器授权失败: %{error}"
  import_success: "已从 %{source} 导入 Codex auth，并写入 %{destination}"
  import_failed: "从 %{path} 导入 Codex auth 失败: %{error}"
  import_write_failed: "写入导入后的 Codex auth 到 %{path} 失败: %{error}"

daemon:
  stopped: "daemon 已停止"
  restarted: "daemon 已重启: %{status}"

cli:
  setup_failed: "初始化失败: %{error}"
