Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
771b9a4
feat(ko): add Korean documentation translations (00A-00B)
OneVth Jun 6, 2026
1740d8c
feat(ko): register Korean language in docs.json navigation
OneVth Jun 6, 2026
fe17238
feat(ko): add check-ko.ts quality checker (Hangul rate + English-leak…
OneVth Jun 6, 2026
59d66d9
feat(ko): register ko in translation-config for auto-sync
OneVth Jun 6, 2026
858f48f
fix(ko): include ko/ in translation-sync git add (pairs with config)
OneVth Jun 6, 2026
6b8bf5b
ci(ko): add ko-sync-check workflow (EN↔ko, no cross-lang)
OneVth Jun 6, 2026
23dbc44
feat(ko): add Korean branch to giscus comment widget
OneVth Jun 6, 2026
5f96361
fix(ko): restore description frontmatter quotes (697 files)
OneVth Jun 6, 2026
1b7c788
fix(ko): restore MDX/JSX structure from build errors (types 1-5)
OneVth Jun 6, 2026
61e5549
Merge origin/main into pr/1109, preferring main on conflicts.
comfyui-wiki Jun 8, 2026
ae6acb6
Remove redundant ko-specific CI scripts in favor of unified i18n tool…
comfyui-wiki Jun 8, 2026
c1ff365
Remove Korean built-in-nodes translations.
comfyui-wiki Jun 8, 2026
9b17e3c
Seed translationSourceHash on synced Korean translations only.
comfyui-wiki Jun 8, 2026
6a33186
Fix truncated JavaScript code block in ko comms_routes.mdx.
comfyui-wiki Jun 8, 2026
c2995ef
Consolidate i18n tooling under .github/scripts/i18n with config-drive…
comfyui-wiki Jun 8, 2026
6690036
Write changelog translation blocks incrementally to survive interrupt…
comfyui-wiki Jun 8, 2026
fbdd25a
Sync docs.json navigation after translate with batch nav label transl…
comfyui-wiki Jun 8, 2026
4652259
Update docs.json navigation for ko, ja, and zh locale sidebars.
comfyui-wiki Jun 8, 2026
be62a24
Update ko, ja, zh, and built-in-nodes MDX translations.
comfyui-wiki Jun 8, 2026
0cbb834
Move translate run logs to .github/i18n-logs and update README paths.
comfyui-wiki Jun 8, 2026
7d8311a
Run snippet translation in the default translate command.
comfyui-wiki Jun 8, 2026
0b2538f
Preserve existing docs.json nav labels and pass them as translation r…
comfyui-wiki Jun 8, 2026
5876121
Fix ko MDX parse errors and add missing ko desktop snippets.
comfyui-wiki Jun 8, 2026
022bf65
Fix nav casing, local preview memory, and ko Steps MDX warnings.
comfyui-wiki Jun 8, 2026
2c747f6
Add .mintignore to stop Mintlify from parsing node_modules markdown.
comfyui-wiki Jun 8, 2026
6e95da8
Fix mint broken-links CI for ko overview and readme paths.
comfyui-wiki Jun 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,28 @@
* missing redirects for moved files fail the check.
*
* Usage (CI):
* node .github/scripts/check-i18n-sync.mjs <base_sha> <head_sha>
* node .github/scripts/i18n/check-i18n-sync.mjs <base_sha> <head_sha>
*
* Writes JSON summary to path in CHECK_I18N_OUTPUT env (optional).
*/

import { readFileSync, writeFileSync, existsSync } from "fs";
import { execSync } from "child_process";
import { join, dirname } from "path";
import { fileURLToPath } from "url";
import { join } from "path";
import { loadI18nConfig, REPO_ROOT, isEnglishMdxPath, targetRelFromEn } from "./i18n-config.mjs";

const ROOT = join(dirname(fileURLToPath(import.meta.url)), "../..");
const CONFIG = JSON.parse(
readFileSync(join(ROOT, ".github/scripts/translation-config.json"), "utf-8")
);
const ROOT = REPO_ROOT;
const CONFIG = loadI18nConfig();

const [baseSha, headSha] = process.argv.slice(2);
if (!baseSha || !headSha) {
console.error("Usage: check-i18n-sync.mjs <base_sha> <head_sha>");
process.exit(1);
}

const languages = CONFIG.languages ?? [];
const skipPaths = CONFIG.skip_paths ?? ["built-in-nodes"];
const languages = CONFIG.languages;
const skipPaths = CONFIG.skip_paths;
const pathFilterOpts = { languages, skip_paths: skipPaths };

function git(cmd) {
return execSync(cmd, { cwd: ROOT, encoding: "utf-8" }).trim();
Expand All @@ -39,30 +38,7 @@ function gitLines(cmd) {
}

function shouldSkipEnglishPath(file) {
const normalized = file.replace(/\\/g, "/");
if (!normalized.endsWith(".mdx")) return true;

for (const lang of languages) {
if (normalized.startsWith(`${lang.dir}/`)) return true;
if (normalized.startsWith(`${lang.snippets_dir}/`)) return true;
}
for (const lang of languages) {
if (normalized.startsWith(`${lang.snippets_dir}/`)) return true;
}

return skipPaths.some(
(skip) =>
normalized === skip ||
normalized.startsWith(`${skip}/`) ||
normalized.includes(`/${skip}/`)
);
}

function targetPath(enFile, lang) {
if (enFile.startsWith("snippets/")) {
return enFile.replace(/^snippets\//, `${lang.snippets_dir}/`);
}
return `${lang.dir}/${enFile}`;
return !isEnglishMdxPath(file, pathFilterOpts);
}

function matchesPattern(filePath, pattern) {
Expand Down Expand Up @@ -155,7 +131,7 @@ for (const lang of languages) {
const missing = [];

for (const file of changedFiles) {
const langFile = targetPath(file, lang);
const langFile = targetRelFromEn(file, lang);
if (acmrtNames.includes(langFile)) {
console.log(`✅ [${lang.code}] Found corresponding change: ${langFile}`);
continue;
Expand All @@ -169,7 +145,7 @@ for (const lang of languages) {
}

for (const file of addedFiles) {
const langFile = targetPath(file, lang);
const langFile = targetRelFromEn(file, lang);
if (arNames.includes(langFile) || renamedDestinations.includes(langFile)) {
console.log(`✅ [${lang.code}] Found corresponding added/renamed file: ${langFile}`);
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* Quality check for Japanese translation files.
*
* Usage:
* bun .github/scripts/check-ja.ts # check all ja/ files
* bun .github/scripts/check-ja.ts --verbose # show per-file details
* bun .github/scripts/check-ja.ts foo.mdx # check specific file(s)
* bun .github/scripts/i18n/check-ja.ts # check all ja/ files
* bun .github/scripts/i18n/check-ja.ts --verbose # show per-file details
* bun .github/scripts/i18n/check-ja.ts foo.mdx # check specific file(s)
*/

import { readdir, readFile } from "fs/promises";
import { join, relative } from "path";

const ROOT = join(import.meta.dir, "../..");
const ROOT = join(import.meta.dir, "../../..");

// ---------------------------------------------------------------------------
// Helpers
Expand Down
Loading
Loading