Skip to content

feat(spec): model action-param translations (_actions.params)#1860

Merged
xuyushun441-sys merged 2 commits into
mainfrom
feat/i18n-action-params
Jun 15, 2026
Merged

feat(spec): model action-param translations (_actions.params)#1860
xuyushun441-sys merged 2 commits into
mainfrom
feat/i18n-action-params

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

Adds an optional params record to the action translation schema so action param label/helpText/placeholder/options can be localized via the existing keys+bundles path: objects.<obj>._actions.<action>.params.<param>.{label,helpText,placeholder,options}. All optional/additive — existing bundles unaffected. objectui's useObjectLabel().actionParamText() already reads this key path; this unblocks the bundle entries (cloud follow-up) + the renderer wiring (objectui follow-up). 1149 spec tests pass; DTS build green.

🤖 Generated with Claude Code

…ons.params)

Action labels localize via `objects.<obj>._actions.<action>.label` bundle keys,
but action PARAMS (the dialog form fields) had no translation path — the
`_actions` translation schema only modeled label/confirmText/successMessage, so
a param's label/helpText/placeholder/options could not be localized and rendered
English in a zh UI.

Add an optional `params` record to the action translation schema (in
ObjectTranslationDataSchema._actions, globalActions, and the secondary
ObjectTranslationNodeSchema._actions):

  _actions.<action>.params.<param>.{ label?, helpText?, placeholder?, options? }

`options` maps a select value → translated label. All optional and additive, so
existing bundles are unaffected. objectui's `useObjectLabel().actionParamText()`
already reads this exact key path; this unblocks authoring the bundle entries.

Tests: 1149 spec tests pass (translation/i18n-resolver/typegen); DTS build green.
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 15, 2026 3:46am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling labels Jun 15, 2026
@xuyushun441-sys xuyushun441-sys merged commit d1e930a into main Jun 15, 2026
13 checks passed
@xuyushun441-sys xuyushun441-sys deleted the feat/i18n-action-params branch June 15, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:system size/s tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants