Claude Desktop Chinese Patch (macOS & Windows & Linux)
This report summarizes scanner evidence for javaht/claude-desktop-zh-cn, a PowerShell project with 8,104 GitHub stars. SynthScan examined 56,356 lines of code across 37 source files, recording 70 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 53 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 57 finding(s).
Which changes need focused human review? 70 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 70 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_structural_replacements.py | 20 | def test_shared_regression_cases(self): | CODE |
| LOW⚡ | tests/test_structural_replacements.py | 27 | def test_bare_and_quoted_protected_rules_are_ignored(self): | CODE |
| LOW⚡ | tests/test_structural_replacements.py | 35 | def test_catalogs_have_no_unsafe_single_word_rules(self): | CODE |
| LOW⚡ | tests/test_structural_replacements.py | 42 | def test_real_rule_preparation_keeps_visible_phrases(self): | CODE |
| LOW⚡ | tests/test_structural_replacements.py | 49 | def test_native_ui_translations_remain_available(self): | CODE |
| LOW | tests/test_slash_command_menu.py | 20 | def test_locales_have_same_commands_and_terminology(self): | CODE |
| LOW | tests/test_slash_command_menu.py | 27 | def test_generation_and_runtime_for_all_locales(self): | CODE |
| LOW⚡ | tests/test_slash_command_menu.py | 41 | def test_language_switch_and_repeat_installation(self): | CODE |
| LOW⚡ | tests/test_slash_command_menu.py | 51 | def test_changed_minified_aliases_are_supported(self): | CODE |
| LOW⚡ | tests/test_slash_command_menu.py | 60 | def test_template_tokens_do_not_rewrite_captured_aliases(self): | CODE |
| LOW⚡ | tests/test_slash_command_menu.py | 69 | def test_changed_catalog_key_casing_is_corrected(self): | CODE |
| LOW⚡ | tests/test_slash_command_menu.py | 77 | def test_missing_ambiguous_and_wrong_component_anchors_fail_closed(self): | CODE |
| LOW | tests/test_slash_command_menu.py | 91 | def test_corrupt_existing_patch_is_not_overwritten(self): | CODE |
| LOW | tests/test_slash_command_menu.py | 104 | def test_installer_wrapper_skips_unknown_versions_without_writes(self): | CODE |
| LOW | tests/test_asar_frontend.py | 44 | def test_round_trip_preserves_header_and_contents(self): | CODE |
| LOW | tests/test_asar_frontend.py | 86 | def test_extract_rejects_unsafe_paths(self): | CODE |
| LOW | tests/test_asar_frontend.py | 94 | def test_prepare_and_finalize_frontend_target(self): | CODE |
| LOW⚡ | tests/test_asar_frontend.py | 150 | def test_directory_mode_is_untouched(self): | CODE |
| LOW⚡ | tests/test_asar_frontend.py | 160 | def test_missing_bundle_raises(self): | CODE |
| LOW⚡ | tests/test_asar_frontend.py | 167 | def test_integrity_digest_slot_is_synced_per_slice(self): | CODE |
| LOW | tests/test_asar_frontend.py | 192 | def test_integrity_entry_absent_is_a_noop(self): | CODE |
| LOW | tests/test_unregister_language.py | 32 | def test_resets_registered_whitelists(self): | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 336 | def is_plain_ui_text_replacement(source: str) -> bool: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 341 | def is_structural_js_literal_context(text: str, literal_start: int) -> bool: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 349 | def replace_frontend_hardcoded_text( | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 1299 | def load_json_object_or_backup(path: Path, dry_run: bool = False) -> dict[str, Any]: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 1316 | def ensure_config_library_entry(meta: dict[str, Any], config_id: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 211 | def require_virtualization_entitlement(app: Path) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 295 | def patch_language_display_names(app: Path) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 316 | def load_frontend_hardcoded_replacements(lang_code: str) -> list[tuple[str, str]]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 424 | def patch_hardcoded_frontend_strings(app: Path, lang_code: str) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 501 | def load_slash_command_gloss_config(lang_code: str) -> tuple[dict[str, Any], dict[str, str]]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 521 | def replace_slash_command_menu_text( | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 862 | def compute_integrity_dictionary_digest(integrity: dict[str, Any]) -> str: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 873 | def sync_integrity_digest_slot(app: Path, integrity: dict[str, Any]) -> int: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 905 | def verify_integrity_digest_slot(app: Path, integrity: dict[str, Any]) -> None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 933 | def update_electron_asar_integrity(app: Path, key: str, asar_path: Path) -> bool: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1328 | def get_existing_third_party_config(user_home: Path, dry_run: bool = False) -> tuple[Path, Path, dict[str, Any]] | None: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1347 | def set_third_party_config_auto_updates(user_home: Path, enabled: bool, dry_run: bool = False) -> bool: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1371 | def managed_preferences_user_name(user_home: Path) -> str: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1378 | def set_macos_managed_auto_updates(user_home: Path, enabled: bool, dry_run: bool = False) -> bool: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1474 | def discover_cc_switch_skills(skills_dir: Path) -> list[dict[str, Any]]: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1499 | def find_claude_desktop_skills_plugin_root(user_home: Path) -> Path: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1743 | def preinstall_should_restore(app: Path) -> bool: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1814 | def verify_electron_asar_integrity(app: Path) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install-linux.sh | 59 | except Exception: | CODE |
| LOW⚡ | scripts/patch_claude_zh_cn.py | 1307 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 206 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 472 | except Exception as exc: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1107 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1274 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1390 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1707 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1739 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1800 | except Exception: | CODE |
| LOW | scripts/patch_claude_zh_cn.py | 1967 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/convert_traditional.py | 106 | CODE | |
| LOW | scripts/convert_traditional.py | 119 | CODE | |
| LOW | scripts/convert_traditional.py | 305 | CODE | |
| LOW | scripts/convert_traditional.py | 129 | CODE | |
| LOW | scripts/patch_claude_zh_cn.py | 233 | CODE | |
| LOW | scripts/patch_claude_zh_cn.py | 726 | CODE | |
| LOW | scripts/patch_claude_zh_cn.py | 1250 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_slash_command_menu.py | 3 | CODE | |
| LOW | scripts/convert_traditional.py | 21 | CODE | |
| LOW | scripts/patch_linux_asar.py | 14 | CODE | |
| LOW | scripts/patch_claude_zh_cn.py | 17 | CODE | |
| LOW | …s/claude-desktop-zh-localize/scripts/verify_mapping.py | 15 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install-linux.sh | 1 | #!/usr/bin/env bash | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/patch_claude_zh_cn.py | 1250 | def set_user_locale(user_home: Path, lang_code: str) -> None: | CODE |