diff --git a/.changeset/35021-approval-reject-wording.md b/.changeset/35021-approval-reject-wording.md new file mode 100644 index 00000000000..3cac571d588 --- /dev/null +++ b/.changeset/35021-approval-reject-wording.md @@ -0,0 +1,18 @@ +--- +'@objectstack/plugin-approvals': patch +'@object-ui/i18n': patch +'@object-ui/app-shell': patch +--- + +fix(i18n): an approval rejection reads 驳回 in Chinese, on the runtime surfaces and in the designer's approval panel + +Clause-②: no +Metadata-protocol: none + +In Chinese, the approval runtime now names the reject decision 驳回 (zh-Hant 駁回), the word the flow designer gives the approval branch and the server notifications already use. Before, the designer's branch said 驳回 while its approval-node help and the approver's buttons said 拒绝 for the same decision. + +- `@object-ui/i18n`: the `approvalsInbox` strings in zh-Hans and zh-Hant: the inbox and record-bar buttons, the bulk and single confirm dialogs, the toasts, the status chip (已拒绝 → 已驳回), the history row, the keyboard hint and the send-back limit notice. +- `@objectstack/plugin-approvals`: the zh-CN labels of `sys_approval_request` (the `approval_reject` lever, its confirm question and success toast, the `rejected` status) and of the `reject` row of `sys_approval_action`; the zh-Hant bundle already said 駁回. The email action-link confirm and result pages read 驳回. +- `@object-ui/app-shell`: the approval node's zh panel in the flow designer: the multi-approver help, the status-mirror help, the escalation help and its `auto_reject` option label (自动拒绝 → 自动驳回; the stored `auto_reject` value is unchanged), and the revision-limit help. Its branch label and Problems hint already said 驳回; a zh-Hant session draws the same Simplified table. + +拒绝 stays where it means access denial or declining an invitation, in the AI tool approvals, and in the designer's end-node refused outcome and its API-key, bulk-update and audit-outcome refusals. Display text only: the stored `rejected` status and the `reject` action key are unchanged, and English and the other languages are untouched. diff --git a/packages/plugins/plugin-approvals/src/action-link-pages.ts b/packages/plugins/plugin-approvals/src/action-link-pages.ts index b3aebf46c71..ad2784f26cc 100644 --- a/packages/plugins/plugin-approvals/src/action-link-pages.ts +++ b/packages/plugins/plugin-approvals/src/action-link-pages.ts @@ -85,10 +85,10 @@ export function renderConfirmPage(input: { actPath: string; }): string { const approving = input.action === 'approve'; - const verb = approving ? 'Approve · 通过' : 'Reject · 拒绝'; + const verb = approving ? 'Approve · 通过' : 'Reject · 驳回'; return shell(`${verb} — Approval`, `
${approving ? '确认通过该审批请求?' : '确认拒绝该审批请求?'} +
${approving ? '确认通过该审批请求?' : '确认驳回该审批请求?'} Acting as · 操作身份:${esc(input.approverId)}
${summaryRows(input.request)}