// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.

/**
 * Auto-generated by 'os i18n extract' for locale 'zh-CN'.
 * Edit translations in place; re-run extract (with --merge) to fill new gaps.
 * Do not hand-edit the structure — only the leaf string values.
 */

import type { TranslationData } from '@objectstack/spec/system';

export const zhCNObjects: NonNullable<TranslationData['objects']> = {
  sys_approval_request: {
    label: "审批请求",
    pluralLabel: "审批请求",
    description: "按提交记录跟踪的实时审批实例",
    fields: {
      id: {
        label: "请求 ID"
      },
      organization_id: {
        label: "组织",
        help: "拥有该审批请求的租户（从提交方上下文传播）"
      },
      process_name: {
        label: "来源",
        help: "请求来源 —— 节点驱动的审批为 `flow:<flowName|nodeId>`"
      },
      object_name: {
        label: "对象"
      },
      record_id: {
        label: "记录 ID"
      },
      submitter_id: {
        label: "提交人"
      },
      submitter_comment: {
        label: "提交备注"
      },
      status: {
        label: "状态",
        help: "请求的生命周期状态",
        options: {
          pending: "待处理",
          approved: "已批准",
          rejected: "已拒绝",
          recalled: "已撤回"
        }
      },
      current_step: {
        label: "当前步骤",
        help: "当前等待审批的步骤机器名称"
      },
      current_step_index: {
        label: "当前步骤索引"
      },
      pending_approvers: {
        label: "待审批人",
        help: "可在当前步骤执行操作的用户 ID，逗号分隔"
      },
      payload_json: {
        label: "快照",
        help: "提交时的记录快照"
      },
      flow_run_id: {
        label: "Flow Run",
        help: "Suspended automation run id this request gates (ADR-0019). The decision resumes it."
      },
      flow_node_id: {
        label: "Flow Node",
        help: "Approval node id within the flow that opened this request (ADR-0019)."
      },
      node_config_json: {
        label: "Node Config",
        help: "Snapshot of the Approval node config (approvers/behavior) for node-driven requests (ADR-0019)."
      },
      completed_at: {
        label: "完成时间"
      },
      created_at: {
        label: "创建时间"
      },
      updated_at: {
        label: "更新时间"
      }
    },
    _views: {
      my_pending: {
        label: "我的待办"
      },
      submitted_by_me: {
        label: "我提交的"
      },
      completed: {
        label: "已完成"
      },
      all_requests: {
        label: "全部"
      }
    }
  },
  sys_approval_action: {
    label: "审批动作",
    pluralLabel: "审批动作",
    description: "追加写入的审批操作审计记录",
    fields: {
      id: {
        label: "动作 ID"
      },
      organization_id: {
        label: "组织",
        help: "拥有该动作的租户（与父请求保持一致）"
      },
      request_id: {
        label: "请求"
      },
      step_name: {
        label: "步骤",
        help: "执行该动作时对应步骤的机器名称"
      },
      step_index: {
        label: "步骤索引"
      },
      action: {
        label: "操作",
        options: {
          submit: "提交",
          approve: "批准",
          reject: "拒绝",
          recall: "撤回",
          escalate: "升级"
        }
      },
      actor_id: {
        label: "执行人"
      },
      comment: {
        label: "评论"
      },
      created_at: {
        label: "创建时间"
      }
    },
    _views: {
      recent: {
        label: "最近"
      },
      by_actor: {
        label: "按执行人"
      },
      all_actions: {
        label: "全部"
      }
    }
  }
};
