Skip to content

docs(zh-CN): translate manifest appearance extensions - #2031

Merged
Tioit-Wang merged 1 commit into
vastsa:mainfrom
Seraph-x:docs/2000-zh-cn-manifest-appearance
Nov 1, 2026
Merged

Tioit-Wang merged 1 commit into
vastsa:mainfrom
Seraph-x:docs/2000-zh-cn-manifest-appearance

Conversation

@Seraph-x

Copy link
Copy Markdown
Contributor

Related to #2000

The Chinese manifest specification skips the English Appearance extensions section. This adds its complete translation: the four typed theme-variable declarations, safe names and reserved prefixes, and the data-only scenic Settings contribution with its metadata, card bounds, permissions, and host-rendered controls.

Sources checked

Content English documentation Implementation evidence
Theme variable types, defaults, ranges, safe values, reserved names, and same-plugin runtime updates 02-plugin-manifest-schema.md:3–10 theme-variables.ts:1–47, plugin-runtime.ts:5493–5507
Scenic Settings metadata, 1–12 cards, theme/preview ownership, permissions, and host-owned rendering 02-plugin-manifest-schema.md:12–18 PluginScenicThemesContrib, manifest validation, host validation, Settings renderer

Only docs/zh-CN/spec/07-plugins/02-plugin-manifest-schema.md changes. The English section already exists and needs no synchronization. Existing content and heading anchors are preserved. This is separate from #2029, which translates the API specification.

Validation

  • git diff --check
  • node docs/scripts/check-locales.mjs — 86 locale pairs passed
  • node docs/scripts/check-docs.mjs — 599 pages passed; existing advisory ADR notes only
  • node scripts/check-agent-policy-sync.mjs
  • node scripts/check-pr-base-main.mjs
  • node docs/node_modules/vitepress/bin/vitepress.js build docs — passed using existing host dependencies
  • Compared all inline identifiers/literals with the English section and verified unchanged original content, existing heading anchors, and the new section's anchor/navigation link in the built page

Application tests and E2E were not run because this is a documentation-only translation.

Restore the missing Chinese manifest section for typed theme variables
and host-rendered scenic Settings. Preserve the existing English
contract so plugin authors can read its declaration and permission
requirements in either locale.

Related to vastsa#2000
Copilot AI lite review requested due to automatic review settings October 31, 2026 15:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@Tioit-Wang
Tioit-Wang merged commit f138a33 into vastsa:main Nov 1, 2026
2 checks passed
@Tioit-Wang

Copy link
Copy Markdown
Collaborator

Merged as \ 138a3312. Thanks!

I verified against current \main\ before merging: the Chinese page really was missing the whole \Appearance extensions\ section while English had it at lines 3–18, and your translation covers all of it — the four typed declarations (\length/
umber/\color/\select), reserved prefixes, and the data-only scenic Settings contribution with its \ui.settings\ + \ui.theme\ requirement and host-rendered cards. The claim that the host renders neither HTML nor CSS nor JS for that entry matches \PluginScenicThemesDestination.tsx\ and the manifest validation you cited. Both locales now carry 19 headings, so the files are structurally aligned.

Also appreciated: keeping this to one file and one concern, and saying explicitly why the English source needed no change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants