Files
deepseek-harness/docs/user/develop/basic/index.i18n.yaml
T
Turtle e7def469e1 feat(i18n): key translation pairing records by heading section (#5036)
* feat(i18n): key translation pairing records by heading section

Replace the whole-file blob hashes in *.i18n.yaml with one entry per
heading section that still holds language-specific content, keyed by the
English heading-slug path. Blocks identical across the pair (generated
table rows, code blocks, shared regions) stay out of the hash, so edits to
different sections and identical regenerations merge with Git's default
text merge, including on GitHub.

Remove the dsh-translation-pairing merge driver, its resolver command and
installer wiring; gen-translation-brief recovers last-confirmed text from
commit history. Migrate all active records, archive the superseded Agent
Note, and record the replayed conflict reduction in the new one.

* test(i18n): refresh translation prompt snapshot for the terminology note

* feat(i18n): exclude only code blocks and generated regions from pairing records

Replace byte-equality masking with an explicit rule: a record hash skips
fenced code blocks and BEGIN/END GENERATED regions, the two kinds of
content the pairing gate already requires to be identical on both sides.

Move generated data into regions written into both pages:
gen-config-catalog renders both languages and the record with per-package
regions labelled by code identifiers; gen-module-graph keeps its table in a
region; gen-doc-graphs splices the event matrix regions into the Chinese
page. Add a generic region splice beside the region grammar.
2026-09-23 22:32:06 +08:00

38 lines
1.2 KiB
YAML

# Bilingual-pair consistency record for index.md (docs/i18n/README.md): per heading
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
# After editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/user/develop/basic/index.md
/your-first-plugin:
en: 66684c875e13acbb
zh: 48b5444386cf714c
/your-first-plugin/create-a-local-project:
en: 2a9ff85da3a6ea8b
zh: 9ac5daf1dd3e3b95
/your-first-plugin/what-is-a-plugin:
en: 0bca3ea987fecb61
zh: b4d398b887da6648
/your-first-plugin/create-the-plugin-file:
en: 80e4e9f139d4773e
zh: c045d63ec04a2f3d
/your-first-plugin/register-it-in-cordis-yml:
en: 216e79287d237f2a
zh: 16e5e8ad2b1b9263
/your-first-plugin/automatic-cleanup:
en: 0a1486714b9d67d7
zh: 544df97baa7a8c59
/your-first-plugin/declare-dependencies:
en: da59e4c09e258f94
zh: 1b3ef70741eccb31
/your-first-plugin/three-plugin-forms:
en: 155369321743b317
zh: e2e98be100be297b
/your-first-plugin/three-plugin-forms/object-form:
en: d674c416f5b0fd14
zh: a2224f5fe6ceae73
/your-first-plugin/three-plugin-forms/class-form:
en: 130f504f9ebacebd
zh: 4e91d3fa2555390d
/your-first-plugin/next-steps:
en: 9836e246d8279c8b
zh: 681475e2251ba006