Files
deepseek-harness/docs/cordis-api/service.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 service.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/cordis-api/service.md
/:
en: d2c0c5bce430d1be
zh: 124ab2656ea6d044
/service:
en: a163fe605c4a8045
zh: 060a6f4ce086c5c2
/service/service-name:
en: 32a75e66b17c0b79
zh: 0a5ff9fc45b3bea0
/service/static-members:
en: ceb197529207a8ed
zh: 7d444c03f8be0f0d
/service/static-members/service-init:
en: ade1a1c4543fac8c
zh: b7a4b616ee930b5b
/service/static-members/service-check:
en: 111351ada5972a9a
zh: 1537da7793a6a02c
/service/static-members/service-config:
en: 93d8ff69722f9b46
zh: 9ba1532d164c2231
/service/static-members/service-invoke:
en: 6d87f35f8cf52b05
zh: 278dbce6025b2834
/service/static-members/service-extend:
en: 5b78b68d8de8cef9
zh: 6df27f37da11a104
/service/static-members/service-tracker:
en: 52071ebded7ec026
zh: 4647fa3f989b5deb
/service/static-members/service-resolveconfig:
en: ad62f59468d1a765
zh: 4a31b52f61e1af6e