fix(plugin-approvals): ship _actions translations for the decision actions (objectui#2762 P0-3)#3416
Conversation
…tions (objectui#2762 P0-3) The Approval Center drawer rendered the sys_approval_request declared actions with their literal English labels in localized workspaces — the plugin's bundle had no _actions node for the console's _actions.<name>.label resolution to hit. Re-ran 'os i18n extract' against the plugin config and translated the new leaves for zh-CN / ja-JP / es-ES: all eight decision actions (label, confirmText, successMessage, param labels/helpText) plus the gaps the merge surfaced — the 'returned' status option, the sys_approval_action audit-action options, the attachments field, and the my_pending / recent view empty states. Refs objectui#2762 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cu48mLFUdRBmMh8Z8R3CVz
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
CI status: same org-wide Actions outage as objectstack-ai/objectui#2789 — every job here (Auto Label, ESLint, Type Check, Check PR Size, …) fails ~2s after creation with no runner ever assigned ( Generated by Claude Code |
📓 Docs Drift CheckThis PR changes 1 package(s): 4 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
|
✅ CI is green. Runners recovered at ~11:20 UTC Jul 24; all re-run suites passed: ESLint, TypeScript Type Check, Build Core, Test Core, Dogfood Regression Gate, CodeQL, Check Changeset, Check PR Size, and the docs-drift flag (advisory only — this PR is translation-bundle-only, so no doc behavior changed). Ready for review. Generated by Claude Code |
Summary
Framework half of objectstack-ai/objectui#2762 P0-3 (动作标签 i18n): the Approval Center drawer showed English Approve / Reject / Reassign / Send back / Request info in a zh-CN workspace because
@objectstack/plugin-approvals' translation bundle covered fields and views but had no_actionsnode — the console's_actions.<name>.labelresolution had nothing to hit. (The UI half —DeclaredActionsBaractually resolving those keys — is objectstack-ai/objectui#2789.)os i18n extract packages/plugins/plugin-approvals/scripts/i18n-extract.config.ts --locales=zh-CN,ja-JP,es-ES --fill=default --objects-only --out=…), which merged_actionsscaffolding for all eightsys_approval_requestdecision actions into the four generated bundles, preserving every existing hand translation.label/confirmText/successMessageplus param labels/helpText forapproval_approve,approval_reject,approval_reassign,approval_send_back,approval_request_info,approval_remind,approval_recall,approval_resubmit. zh-CN terms match the console's existing vocabulary (通过 / 拒绝 / 转签 / 退回修改 / 退回补充 / 催办 / 撤回 / 重新提交).returnedstatus option, thesys_approval_action.actionaudit options (reassign/remind/request_info/comment/revise/resubmit/ooo_substitute), theattachmentsfield label/help, and themy_pending/recentview empty states.Verification
pnpm turbo build test --filter=@objectstack/plugin-approvalsgreen (8/8 tasks)Refs objectstack-ai/objectui#2762, objectstack-ai/objectui#2789
🤖 Generated with Claude Code
https://claude.ai/code/session_01Cu48mLFUdRBmMh8Z8R3CVz
Generated by Claude Code