// 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_audit_log: {
    label: "审计日志",
    pluralLabel: "审计日志",
    description: "平台事件的不可变审计追踪",
    fields: {
      created_at: {
        label: "时间戳"
      },
      action: {
        label: "操作",
        help: "操作类型（snake_case）",
        options: {
          create: "创建",
          update: "更新",
          delete: "删除",
          restore: "恢复",
          login: "登录",
          logout: "登出",
          permission_change: "权限变更",
          config_change: "配置变更",
          export: "导出",
          import: "导入"
        }
      },
      user_id: {
        label: "执行人",
        help: "执行该操作的用户（系统操作时为 null）"
      },
      object_name: {
        label: "对象",
        help: "目标对象（例如 sys_user、project_task）"
      },
      record_id: {
        label: "记录 ID",
        help: "受影响记录的 ID"
      },
      old_value: {
        label: "旧值",
        help: "旧状态的 JSON 序列化内容"
      },
      new_value: {
        label: "新值",
        help: "新状态的 JSON 序列化内容"
      },
      ip_address: {
        label: "IP 地址"
      },
      user_agent: {
        label: "用户代理"
      },
      tenant_id: {
        label: "租户",
        help: "用于多租户隔离的租户上下文"
      },
      metadata: {
        label: "元数据",
        help: "附加上下文的 JSON 序列化内容"
      },
      id: {
        label: "审计日志 ID"
      }
    },
    _views: {
      recent: {
        label: "最近"
      },
      writes_only: {
        label: "写入"
      },
      auth_events: {
        label: "认证"
      },
      config_changes: {
        label: "配置"
      },
      all_events: {
        label: "全部"
      }
    }
  },
  sys_activity: {
    label: "活动",
    pluralLabel: "活动",
    description: "最近活动流条目（轻量、去规范化）",
    fields: {
      id: {
        label: "活动 ID"
      },
      timestamp: {
        label: "时间戳"
      },
      type: {
        label: "类型",
        options: {
          created: "已创建",
          updated: "已更新",
          deleted: "已删除",
          commented: "已评论",
          mentioned: "被提及",
          shared: "已共享",
          assigned: "已分配",
          completed: "已完成",
          login: "登录",
          logout: "登出",
          system: "系统"
        }
      },
      summary: {
        label: "摘要",
        help: "人类可读的单行摘要"
      },
      actor_id: {
        label: "执行人"
      },
      actor_name: {
        label: "执行人名称"
      },
      actor_avatar_url: {
        label: "执行人头像"
      },
      object_name: {
        label: "对象",
        help: "目标对象短名称（例如 account、sys_user）"
      },
      record_id: {
        label: "记录 ID"
      },
      record_label: {
        label: "记录标签",
        help: "写入时目标记录的显示标签"
      },
      url: {
        label: "URL",
        help: "指向活动目标的可选深度链接"
      },
      environment_id: {
        label: "项目",
        help: "项目上下文（多项目部署）"
      },
      metadata: {
        label: "元数据",
        help: "附加上下文的 JSON 序列化内容"
      }
    }
  },
  sys_comment: {
    label: "评论",
    pluralLabel: "评论",
    description: "通过 thread_id 附加到记录的线程化评论",
    fields: {
      id: {
        label: "评论 ID"
      },
      thread_id: {
        label: "线程",
        help: "线程标识——约定格式为 `{object}:{record_id}`（例如 `sys_user:abc123`）"
      },
      parent_id: {
        label: "父评论",
        help: "可选的父评论，用于嵌套回复"
      },
      reply_count: {
        label: "回复数"
      },
      author_id: {
        label: "作者"
      },
      author_name: {
        label: "作者名称"
      },
      author_avatar_url: {
        label: "作者头像"
      },
      body: {
        label: "正文",
        help: "评论文本（支持 Markdown）"
      },
      mentions: {
        label: "提及",
        help: "@mention 对象的 JSON 数组"
      },
      reactions: {
        label: "回应",
        help: "表情回应对象的 JSON 数组"
      },
      is_edited: {
        label: "已编辑"
      },
      edited_at: {
        label: "编辑时间"
      },
      visibility: {
        label: "可见性",
        options: {
          public: "公开",
          internal: "内部",
          private: "私有"
        }
      },
      created_at: {
        label: "创建时间"
      },
      updated_at: {
        label: "更新时间"
      }
    }
  }
};
