i18n: localize English comments inside code samples (zh/ja/ko) - #1711
Merged
comfyui-wiki merged 1 commit intoSep 18, 2026
Merged
Conversation
Code comments are documentation the reader is meant to understand, so the zh/ja/ko pages no longer leave them in English. This follows the rule set in Comfy-Org#1709: code lines stay byte-for-byte identical while documentation text inside a fenced block is translated. Comment text only. Every file was checked with a comment-stripped signature against the previous revision, so no code line, string literal, indentation, fence or blank line changed; heading, fence and total line counts are identical. Comments that are commands, paths, URLs or parameter names stay in English.
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (55)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Contributor
Author
Contributor
Author
|
Reopening: this stays a separate PR. The changes were briefly folded into #1708, but script-driven fixes and translation content should be reviewed separately, so the comment localization lives here on its own branch. |
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.
Summary
zh/,ja/andko/pages often ship with English comments inside their code samples, even though the surrounding prose is translated. Comments are documentation the reader is meant to understand, so they are localized here. The rule this follows is the one introduced in #1709: code lines stay byte-for-byte identical, documentation text inside a block is translated.This PR contains comment text only. Every changed file was verified with a comment-stripped signature comparison against the previous revision, so no code line, indentation, fence or blank line changed (line counts are identical, and heading and fence counts match exactly).
Scope
Roughly 270 comment lines were translated across those files. Comments that are commands, paths, URLs, parameter names or placeholders (
# pip install websocket-client,# browse,# full metadata,# ...) were intentionally left in English, since translating them would be wrong or useless.What was NOT changed
pnpm translate:sync-hashreports everything already in sync, so no hash churnVerification
pnpm translate:check-truncationshows the same pre-existing list as main (this PR adds nothing to it)Files
55 files under
zh/,ja/andko/(comments only).Checklist