Repository navigation
docs(zh-CN): fill four missing plugin API sections - #2029
Merged
Merged
Conversation
Restore the missing Chinese API documentation for theme variables, project enumeration, provider catalog entries, and scenic Settings. Translate the existing English contracts in full so Chinese readers can use these capabilities without consulting a second locale. Related to vastsa#2000
This was referenced Oct 31, 2026
Collaborator
|
Merged as \d2c85a95a. Thanks! Checked the four sections against current \main\ before merging. All four were genuinely absent from the Chinese page while present in English, and your text matches the code:
Leaving \Theme variables\ and the rest of the API surface outside #2021's scope and saying so was the right call — that is why these landed cleanly instead of colliding.\n\nOne thing I noticed while verifying, unrelated to your change: \docs/zh-CN/spec/07-plugins/03-plugin-api.md:415\ has ###代理\ (missing the space after ###), which breaks that heading's anchor. It predates your PR, so I am not asking you to fix it here — just recording it. |
This was referenced Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #2000
The Chinese plugin API specification omits four contracts already documented in English. This adds their complete translations, including the
projects.list()signature andPluginProjectInfotype, so Chinese readers can use these capabilities with the same information as English readers.Scope and implementation evidence
Reviewed both
docs/spec/07-plugins/03-plugin-api.mdanddocs/zh-CN/spec/07-plugins/03-plugin-api.md, then checked the following SDK and host implementations at baseb32b8d9b5458:themes.setVariables,validatePluginThemeVariablesprojects.list(): signature/type, durable IDs, ordering, roots, failure behavior, read-only panel accessPluginProjectInfo,createPluginProjectLister, panel dispatchpluginProviderCatalogEntries,pluginProviderServiceOptions,PluginProviderKeySetupFormsetScenicThemeBlur, theme asset resolutionOnly the Chinese API document changes. The English source already contains these sections and needs no synchronization. Existing headings stay in place, preserving their anchors. This complements #2006 and #2021; #2021 explicitly leaves the missing Chinese theme-variable and project-list content out of scope.
Validation
git diff --checknode docs/scripts/check-locales.mjs— 86 locale pairs passednode docs/scripts/check-docs.mjs— 599 pages passed; existing advisory ADR notes onlynode scripts/check-agent-policy-sync.mjsnode scripts/check-pr-base-main.mjs— currentorigin/mainis an ancestor of this branchnode docs/node_modules/vitepress/bin/vitepress.js build docs— passed using the existing host dependency treeprojects.list()signature/type byte-for-byte with English; checked all 40 existing heading anchors and the 3 added anchors using VitePress, including anchor links in the built pageApplication tests and E2E were not run because this is a documentation-only translation.