Skip to content

fix(ko): point snippet imports to ko versions#1136

Merged
comfyui-wiki merged 1 commit into
Comfy-Org:mainfrom
OneVth:ko-snippet-paths
Jun 12, 2026
Merged

fix(ko): point snippet imports to ko versions#1136
comfyui-wiki merged 1 commit into
Comfy-Org:mainfrom
OneVth:ko-snippet-paths

Conversation

@OneVth

@OneVth OneVth commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Problem

On the Korean docs site (docs.comfy.org/ko), some pages render parts of their content in English even though the page body is translated. The affected blocks are the shared snippets embedded in each page — e.g. the install-method accordion, "Adding Extra Model Paths", the settings-menu hint, and the tutorial update reminders.

The cause is that the Korean pages import these snippets from the English snippet path (/snippets/...) instead of the Korean one (/snippets/ko/...). The Korean snippet translations already exist under /snippets/ko/; the pages just weren't pointing to them. (This was an omission from the initial ko bootstrap in #1109 — the translation step translated the body text but left the import ... from "/snippets/..." path strings as-is. The ja pages already use /snippets/ja/.)

Before (live site — English snippet rendered on a Korean page):

image

Fix

Point the snippet imports on Korean pages to their Korean versions:

-import AddExternalModels from "/snippets/install/add-external-models.mdx"
+import AddExternalModels from "/snippets/ko/install/add-external-models.mdx"

This is a path-only change — no snippet content is added or translated, since every referenced /snippets/ko/... file already exists.

After (local mint dev — Korean snippet now renders):

image

Scope

  • 57 files, 92 import statements, 13 distinct snippets
  • By section: installation 3, get_started 1, comfy-cli 1, development 1, interface 12, tutorials 39
  • Most-affected snippets: tutorials/update-reminder (36), partner-nodes/req-hint (26), interface/settings-menu-context (12)

Notes

  • Only the import path strings changed. translationSourceHash and other frontmatter are untouched, so this won't be overwritten by the auto-translate pipeline.
  • Verified locally: no /snippets/ko/ko/ double paths, no remaining English snippet imports on ko pages, and mint dev renders the previously-English blocks in Korean.

57 ko pages were importing from English snippet paths (/snippets/...)
instead of their translated equivalents (/snippets/ko/...), causing
Korean pages to render English content blocks.

All 13 target ko snippets already existed; this is a pure path fix.
92 import statements updated across 57 files. No frontmatter or
translationSourceHash changes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@comfyui-wiki

Copy link
Copy Markdown
Member

LGTM! Thank you! Let me check if I merged the PR that brings the changes without checking the CI

@comfyui-wiki comfyui-wiki merged commit 60724b5 into Comfy-Org:main Jun 12, 2026
6 checks passed
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.

2 participants