Skip to content

docs: fix stale translation-sync markers in s01/s02/s04 Chinese READMEs - #666

Open
shuhuNB515 wants to merge 1 commit into
shareAI-lab:mainfrom
shuhuNB515:docs/translation-sync-markers
Open

shuhuNB515 wants to merge 1 commit into
shareAI-lab:mainfrom
shuhuNB515:docs/translation-sync-markers

Conversation

@shuhuNB515

Copy link
Copy Markdown

Fixes #665

Problem

Every chapter README carries a <!-- translation-sync: zh@vN, en@vN, ja@vN --> marker; in 14 of 17 chapters the three language files carry identical markers. Three Chinese files claim versions their siblings don't:

file marker says siblings say
s01_agent_loop/README.zh.md:155 zh@v1, en@v0, ja@v0 zh@v2, en@v2, ja@v2
s02_tool_use/README.zh.md:172 zh@v1, en@v0, ja@v0 zh@v1, en@v1, ja@v1
s04_hooks/README.zh.md:224 zh@v1, en@v0, ja@v0 zh@v1, en@v1, ja@v1

The zh content in all three files is already in sync with the current en/ja versions (checked section by section) — only the metadata is stale. Tooling or humans using the markers to decide whether a translation needs updating would misjudge these files.

Fix

Align the three zh markers with their siblings (values above). The copies embedded in web/src/data/generated/docs.json (generated from the READMEs, comments preserved) are updated the same way.

Verification

  • Full marker matrix across all 17 chapters re-checked: after this change every chapter's three files carry identical markers.
  • python3 -m pytest tests/ — 503 passed, 118 subtests passed.

Disclosed AI assistance: found during an AI-assisted review; verified the marker matrix and content sync myself, and I stand behind the change.

14 of 17 chapters carry identical translation-sync markers across
their three language files. Three Chinese files were left behind
claiming en@v0/ja@v0 although their content is already in sync with
the current en/ja versions:

- s01_agent_loop/README.zh.md -> zh@v2, en@v2, ja@v2
- s02_tool_use/README.zh.md   -> zh@v1, en@v1, ja@v1
- s04_hooks/README.zh.md      -> zh@v1, en@v1, ja@v1

Anything using the markers to decide whether a translation needs
updating would misjudge these files. Also sync the copies embedded in
web/src/data/generated/docs.json (generated from the READMEs).

Fixes shareAI-lab#665

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stale translation-sync markers in 3 Chinese READMEs (s01, s02, s04) — they claim versions the files are not at

1 participant