Repository navigation
fix(i18n): an approval rejection reads 驳回 in Chinese on the runtime surfaces - #35175
Conversation
The approvals inbox, the record approval bar, the history timeline, the sys_approval_request reject lever and status, the sys_approval_action reject row and the email action-link pages now say 驳回 (zh-Hant 駁回), the word the flow designer and the server notifications already use. 拒绝 stays for access denial, invitations and AI tool approvals. Display text only: the stored `rejected` status and the `reject` action key do not change. Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm Co-authored-by: Claude <noreply@anthropic.com>
…ls and i18n Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 7 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 4 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 6 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 25928c806903c27537c29130e2b112ade2546f9c && git checkout 25928c806903c27537c29130e2b112ade2546f9c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 7d8dcf693af597f1cbb5b21ee705ae8d9ad8437d c3e9590d20de6d29833d3d3550d490d07f563b7b && git checkout -B drift-repro 7d8dcf693af597f1cbb5b21ee705ae8d9ad8437d && git merge --no-ff c3e9590d20de6d29833d3d3550d490d07f563b7b
node scripts/docs-audit/affected-docs.mjs --json 7d8dcf693af597f1cbb5b21ee705ae8d9ad8437d
|
Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm Co-authored-by: Claude <noreply@anthropic.com>
…reject decision The multi-approver help, the status-mirror help, the escalation help and its auto_reject option label, and the revision-limit help move from 拒绝 to 驳回, the word of the approval branch and of the runtime. The auto_reject value is unchanged; the end node's refused outcome and the API-key, bulk-update and audit-outcome refusals keep 拒绝. Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm Co-authored-by: Claude <noreply@anthropic.com>
…'s approval panel Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm PR body, round 2 (supersedes the body text above for review). This covers fix round 2: the designer approval-node strings, under Premise corrected 6975255638 on #35021 and claim amendment 6975277471. post-stamped refuses a body whose first line is Clause-②: no 维护者速读
What changesDisplay text only. The stored status
Which key family serves each runtime surface named in the ruling: the inbox page, the record approvals panel, the approval decision panel and the history timeline read Kept, with the reason (zh-Hans, mirrored in zh-Hant; 39 lines still carry 拒 in each pack):
Not touched, already 驳回: the designer branch and flow canvas ( Tests
Acceptance notes
VerificationAll readings on head Tests
Local gates
Generated by Claude Code |
|
repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm Final green head for L1: Check-runs on this head: 58 success, 10 skipped, 0 failed, 0 pending. Mergeable: clean. Size +305 −59, 11 files, not governed. Dev reports: #35021 comments 6975204124 (round 1) and 6977264783 (round 2: designer approval-node strings, under Premise corrected 6975255638 and claim amendment 6975277471). Round-2 PR body: comment 6977300049 above. |
|
repo:objectstack#1 · os-warren · session_01JQwxbXKtHccbeakAgquNs9 L1 review (#35021) · 2026-11-18T11:34ZL1: ACCEPT Fixes vs Part of. The PR body's first line is Claim file surface. All 11 paths are inside the claim plus amendment 1. The locale packs, the 13402 pin, Each changeset sentence against the diff. The changeset is new, and
Tests.
Clause-②: no. It is display text, with no authorable key and no narrowing. No TIER_DEFAULT record is owed. Governance. CI at this head, from check-runs: 58 success and 10 skipped, with none failed or in progress. The PR is mergeable Must-fixNone. Should-fixNone. Notes
|
|
repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm Landing · head
The PR body keeps its round-1 text (post-stamped refuses a body that starts with |
Fixes #35021
repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm
Clause-②: no
Metadata-protocol: none
维护者速读
rejected和动作键reject不变;权限、邀请、AI 工具审批里的「拒绝」保留。回滚即 revert 本 PR。ui/packages/i18n/src/locales/zh-Hans.ts的approvalsInbox块(21 处);packages/plugins/plugin-approvals/src/translations/zh-CN.objects.generated.ts(驳回按钮、状态、审批动态);packages/plugins/plugin-approvals/src/action-link-pages.ts(邮件确认页)。pnpm --dir ui exec vitest run packages/i18n/src/__tests__/approval-reject-wording-35021.test.ts,预期 9 条全绿;或在 zh-CN 下打开审批中心,行内按钮显示「通过」「驳回」,已驳回的请求状态显示「已驳回」。What changes
Display text only. The stored status
rejectedand the action keyrejectare unchanged; en and every other language are untouched.@object-ui/i18n,approvalsInbox, zh-Hans 拒绝 to 驳回 and zh-Hant 拒絕 to 駁回 (21 keys each):statusRejected,sendBackAutoRejected,keyboardHint,actReject,reject,rejecting,rejectN,bulkRejectTitle(+_one,_other),bulkRejectBody,bulkRejected(+_one,_other),rejectOneTitle,rejectOneBody,rejectTitle,rejectBody,inlineRejected,rejectedToast,whyDisabledSubmitter. zh-Hant was regenerated withpnpm --filter @object-ui/i18n gen:zh-hant, which reports it byte-identical to the committed file ("already current").@objectstack/plugin-approvals, zh-CN bundle (hand-written translated leaf values, no key added or dropped;check:i18nin sync):sys_approval_requeststatusrejected已驳回;_actions.approval_rejectlabel驳回,description驳回该请求?驳回对所有审批人立即生效。,successMessage已驳回“…”;sys_approval_actionaction optionreject驳回. The zh-Hant bundle already said 駁回 everywhere and is unchanged.action-link-pages.ts(email action-link confirm and result pages):Reject · 驳回,确认驳回该审批请求?,⛔ Rejected · 已驳回.Which key family serves each runtime surface named in the ruling: the inbox page, the record approvals panel, the approval decision panel and the history timeline read
approvalsInbox.*(actReject,statusRejected, the confirm and toast keys); the record-page reject lever, its confirm question and success toast are the declaredsys_approval_requestaction, localized from the plugin bundle (the admin-override label wraps that same declared label); the generic object views read the plugin bundle's status and action options.Kept, with the reason (zh-Hans, mirrored in zh-Hant; 39 lines still carry 拒 in each pack):
form.navigateRefused,list.loadErrorRejectedTitle, thelist.userFiltersformula-sort hint,console.importMappingsRefused,console.savedViewsRefused,console.settingsView.cryptoRefusalNoSubject,console.settingsView.mapKeyNotOfferedHint,console.assignedWork.transferRefused,auth.device.deny/denying/deniedTitle/denyFailed,oauth.consent.deny/denied,errors.forbidden,preview.changes.securityBlockTitle(+_one,_other),preview.changes.securityRule.cbpNoRelation/cbpAmbiguousRelation,organization.settings.deleteConfirmDescription,cloudConnection.errors.accessDenied,marketplace.install.dependencyMissing.heading,connectorConnections.redirectUriMissing,element.component.apiRefused.organization.invitations.status.rejected,organization.accept.decline/declined/declineFailed.aiApprovals.statusRejected/reject/outcomeReject/fieldRejectionReason/rejectTitle,console.system.aiApprovals.subtitle,console.ai.toolDenyReason,chatbot.toolState.denied.connectorCredentials.statusRejected(被拒绝) andconnectorCredentials.rejectedReason.Not touched, as ruled: the designer and flow canvas (
engine.inspector.flowEdge.branchReject驳回,engine.flowCanvas.rejectedEnd已驳回, the Problems-tab hint that interpolates the branch label), the server notifications (translations/messages.ts, already 驳回 / 駁回, no 拒绝 for approval), 「退回」 (send-back).Tests
ui/packages/i18n/src/__tests__/approval-reject-wording-35021.test.ts: for zh-Hans and zh-Hant, noapprovalsInboxstring says 拒绝 / 拒絕 (enumeration asserted non-empty), every key named for the reject decision says 驳回 / 駁回, the decision verb and status read 驳回 / 已驳回, and access denial, invitations andaiApprovalskeep 拒绝; plus the agreement case the card's acceptance asks for: the runtimeactRejectequals the designer'sbranchReject, andstatusRejectedequals the canvasrejectedEnd.packages/plugins/plugin-approvals/src/approval-reject-wording-35021.test.ts: through the real resolvers (translateMetadataDocument,translateObject), zh-CN and zh-Hant read 驳回 / 駁回 for the reject lever, therejectedstatus and therejecthistory row; the lever's question and toast say it; nosys_approval_request/sys_approval_actionstring in either bundle says 拒绝 / 拒絕; the email confirm and result pages say 驳回 and no 拒绝.approval-status-vocabulary.test.tszh-CNrejectedis 已驳回;approvalOverride-zh-wording-13402.test.tscomposes 管理员代为驳回 from the reject lever's label.Acceptance notes
scripts/ablation-replace.mjs(anchor hit 1 to 0, blob moved, restored to the HEAD blob withgit diff HEADempty): zh-HansactRejectback to 拒绝 turns the ui pin red (4 of 9 failed, including the designer-agreement case); the zh-CNapproval_rejectlabel back to 拒绝 turns the plugin pin red (2 of 7 failed). No build was involved: both suites import the edited files by relative path.ui/packages/app-shell/src/views/metadata-admin/i18n.ts) still says 拒绝 in five strings (the mode help, the status-mirror help, the escalation help and itsauto_rejectoption 自动拒绝, the revision-limit help). The ruling keeps the designer unchanged, so they are left; raised to the seat as an open question.Verification
All readings on head
f850687b6(branch merged withorigin/main2fea6d2a1), except the targeted runs and ablations, taken ond863192a0before the merge, which touched neither package.Tests
pnpm --dir ui exec vitest run packages/i18n/(verify lock): VERDICT command-exit 0, Test Files 104 passed (104), Tests 1956 passed, 13 skipped.pnpm --filter @objectstack/plugin-approvals exec vitest run --maxWorkers=2(verify lock): VERDICT command-exit 0, Test Files 123 passed (123), Tests 1748 passed (1748).pnpm --filter @objectstack/plugin-approvals typecheck: exit 0, test layer held at the ledgered 321 errors in 8 files, the new test file adds none.pnpm --filter @object-ui/i18n type-check: exit 0, after building its dependency closure (the first run exited 2 on TS6305,ui/packages/core/distnot yet built; the test program lists both edited test files).Local gates
dispatch-gates.mjs --commandson this tree: 71 families;--ranreconciliation: 71 accounted, 70 run with exit 0, 1 NOT MEASURED, 0 unrun.pnpm check:dual-build-cjs-loads, exit 3 PREREQUISITE NOT MET (it reads every package'sdist, and this worktree built only the two packages' closures); CI runs it.pnpm check:i18n(10 packages, all bundles in sync),pnpm check:i18n-stale-fill,pnpm check:keyed-text-bounds,pnpm check:role-word,pnpm check:published-files,pnpm check:undeclared-dep-imports,pnpm check:nul-bytes,pnpm check:cross-package-test-inputs,pnpm check:test-source-alias,pnpm check:type-check-debt,node scripts/check-adr-0087-registration.mjs --base origin/main,node scripts/check-closing-keyword-parity.mjs,node scripts/check-issue-citations.mjs,pnpm --dir ui exec vitest run scripts/(Test Files 171 passed, 2 skipped).pnpm --dir ui check:new-line-citations: 0 new citations.node scripts/pm/overlap-check.mjs: VERDICT clean; feat(account): a Notification Settings page for each person's own notification preferences #35122 shares both locale files and merges cleanly.Generated by Claude Code