Skip to content

[approvals] Unify the approval-status vocabulary across i18n bundles (zh "待处理"→"待审批", my_pending view label; humanize the en status options) #7232

Description

@os-zhuang

Part of #7213 (problem 4: three vocabularies for one request).

Facts (verified on origin/main, 2026-08-10)

  • Object-metadata bundle (plugin-approvals; served to every surface that renders sys_approval_request): packages/plugins/plugin-approvals/src/translations/zh-CN.objects.generated.ts:44 has pending: "待处理"; the my_pending view is named "我的待办" (around :88-95). The Approvals Inbox (objectui approvalsInbox.*) and the account-app nav label (packages/platform-objects/src/apps/translations/zh-CN.ts:21) say 待我审批 / 待审批 for the same things — three vocabularies with no shared keys.
  • The en bundle ships raw enum values as labels: en.objects.generated.ts:43-49 (pending: "pending", approved: "approved", …) — unhumanized, unlike zh/ja/es.
  • These files are .generated.ts; there is an extraction config at packages/plugins/plugin-approvals/scripts/i18n-extract.config.ts, and check:i18n / check:i18n-coverage / check:app-nav-i18n run in lint.yml. Work through the pipeline if it is the source of truth (verify first); if the files turn out to be hand-maintained despite the name, edit directly and record the evidence in the PR body.

Canonical glossary (align to the Approvals Inbox wording)

  • zh-CN status options: pending: 待审批 (the change); approved: 已批准, rejected: 已拒绝, recalled: 已撤回, returned: 已退回修改 (verify current values; keep whatever already matches).
  • zh-CN my_pending view label: 待我审批 (was 我的待办); align the empty-state wording accordingly.
  • en status options: Pending / Approved / Rejected / Recalled / Returned; en my_pending label stays "My Pending".
  • ja-JP / es-ES: align the view label with the nav wording where it diverges (ja-JP.ts:21 承認待ち, es-ES.ts:21 Aprobaciones pendientes); do not invent translations beyond this glossary.

Acceptance criteria

Out of scope

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions