Files
deepseek-harness/packages/context/session-reference/README.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

68 lines
2.7 KiB
YAML

# Bilingual-pair consistency record for README.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 packages/context/session-reference/README.md
/:
en: 5609ff124a8402a2
zh: dbe8216d8a5cad0a
/deepseek-ai-dsh-session-reference:
en: ac4de1b73582661f
zh: 348c1ee18d356ced
/deepseek-ai-dsh-session-reference/summary:
en: 3f295289f31296b6
zh: 8246ede26b9699fc
/deepseek-ai-dsh-session-reference/table-of-contents:
en: d152484eb41ac6b4
zh: 09388d293f9be9cb
/deepseek-ai-dsh-session-reference/use-this-package:
en: 5204d64418ff8969
zh: d7cabc99294e480e
/deepseek-ai-dsh-session-reference/use-this-package/mention-syntax:
en: d25be7f4b82afe02
zh: 6ad886a864d584b2
/deepseek-ai-dsh-session-reference/use-this-package/what-the-agent-gets:
en: 0942e28bfd0d07da
zh: ca109508b18b4c14
/deepseek-ai-dsh-session-reference/use-this-package/finding-sessions-to-reference:
en: 169f100ba62f2120
zh: 3fd4fc0bd73b2370
/deepseek-ai-dsh-session-reference/use-this-package/configuration:
en: d9abc1b28c3feb40
zh: ac85539027b37130
/deepseek-ai-dsh-session-reference/understand-the-implementation:
en: db349483e453caf7
zh: 70035c291e1efe84
/deepseek-ai-dsh-session-reference/understand-the-implementation/design-concept:
en: 5c7712ca91eaae1c
zh: 2d923b605afa7a88
/deepseek-ai-dsh-session-reference/understand-the-implementation/source-map:
en: 3a91f258bdfbe488
zh: 80301b5d6b218389
/deepseek-ai-dsh-session-reference/understand-the-implementation/main-flow:
en: 019e5e19f9b3d7fd
zh: 52ccf291f53d41fc
/deepseek-ai-dsh-session-reference/further-exploration:
en: ea488621aa03e4fd
zh: 205ba9e3197d7b30
/deepseek-ai-dsh-session-reference/model-experience:
en: 215e7ba838619b7b
zh: a311da3843709f90
/deepseek-ai-dsh-session-reference/model-experience/referenced-session-background:
en: 05d3418d162640be
zh: 3dd8407f2dc61586
/deepseek-ai-dsh-session-reference/model-experience/referenced-session-background/what-the-model-sees:
en: 375550519407bc3d
zh: 037324246f4fb515
/deepseek-ai-dsh-session-reference/model-experience/referenced-session-background/token-effect:
en: f3d69ed47a577be0
zh: 196a872914778634
/deepseek-ai-dsh-session-reference/model-experience/referenced-session-background/kv-cache-effect:
en: 530d6417585b5c9e
zh: abf1597589e8de17
/deepseek-ai-dsh-session-reference/known-limitations-and-deferred-work:
en: fce2f29b6a71b7f4
zh: 31440d93a112d5de
/deepseek-ai-dsh-session-reference/known-limitations-and-deferred-work/dev-note:
en: e67f633dc6fe7773
zh: 3bb0c20c93f16f98