Repository navigation
[DOCS, FIX] Prepare the docs translation: locale parity checks and translation script fixes - #101
Merged
Merged
Conversation
…lation script fixes - add checks that compare every translated language with the English pages (pages, code blocks, headings and ids, admonitions, tables, images, links, fragments, translated prose); the six languages are listed as pending until their pull request lands - give linked English headings explicit ids so translated headings keep their anchors - move the language-dependent words of the generated tables into HEADINGS - translate.py: keep front matter, code and generated blocks out of the API call, skip hand-translated pages, keep line endings, exit non-zero when a page fails; drop the retired GitHub Models provider and the unused config file and anthropic dependency - translation guide: describe the process and the checks; stop the page from including the whole changelog Refs #100 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
8 tasks done
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.
Requesting Merging
Description
Preparation for #100. Adds the checks and tooling every language pull request relies on. No page is translated here and the six locale trees are untouched.
Type of Change
Test Environment
tests/test_docs: 339 passed, 6 skipped (the six pending languages)python scripts/docs_blocks.py --check,mkdocs build --strict, pre-commit andactionlinton the changed workflow passMajor Changes
Checks for translated languages
tests/test_docs/test_locale_parity.pycompares each page of a translated language with the English page: same pages, front matter, generated blocks, code blocks, heading levels and ids, admonitions and tabs, table shape, images with alt text, link targets, working#fragmentlinks, and translated prose.tests/test_docs/docs_support.py; each language pull request removes its entry, which turns the checks on for it.Generated tables
Translation script and workflow
start/web-generator.mdandchangelog.mdare skipped; line endings are kept; a page that fails makes the run exit non-zero.githubprovider is removed: GitHub Models was retired on 2026-07-30. The workflow no longer offersanthropic, which the script never supported. The unusedscripts/translation_config.jsonand theanthropicdependency are removed.Docs
Screenshots (optional)
Etc
Refs #100
🤖 Generated with Claude Code