Repository navigation
docs: fix stale translation-sync markers in s01/s02/s04 Chinese READMEs - #666
Open
shuhuNB515 wants to merge 1 commit into
Open
shuhuNB515 wants to merge 1 commit into
shuhuNB515 wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:s01_agent_loop/README.zh.md:155zh@v1, en@v0, ja@v0zh@v2, en@v2, ja@v2s02_tool_use/README.zh.md:172zh@v1, en@v0, ja@v0zh@v1, en@v1, ja@v1s04_hooks/README.zh.md:224zh@v1, en@v0, ja@v0zh@v1, en@v1, ja@v1The 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
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.