Repository navigation
docs: make translations best effort - #1930
Merged
kacperkapusciak merged 1 commit intoNov 18, 2026
Merged
Conversation
English stays current in every change; the Japanese and Chinese translations may lag behind, since no contributor can be expected to update a language they don't speak. check-docs-translations.ts now warns on outline, code, and navigation label drift instead of failing, and fails only on what needs no language to fix. Refs ENG-1385
Contributor
🟢 e2e web: 93 passedAll 93 tests in 42 files
Tested by e2e 0.23.1 · 1m 3s · web · run artifacts |
Contributor
🟢 e2e web agent: 34 passed35 agent steps · 26 replayed from cache · 25 model calls · 119.6k tokens (87% cached) · $0.0066 All 34 tests in 5 files
Tested by e2e 0.23.1 · 1m 37s · web · run artifacts |
Contributor
🟢 e2e android agent: 20 passed24 agent steps · 15 replayed from cache · 32 model calls · 168.2k tokens (77% cached) · $0.0131 All 20 tests in 1 file
Tested by e2e 0.23.1 · 6m 19s · android-emulator · run artifacts |
Contributor
🟢 e2e ios: 56 passed, 1 skippedAll 57 tests in 7 files
Tested by e2e 0.23.1 · 6m 41s · ios-simulator · run artifacts |
Contributor
🟢 e2e android: 58 passed, 1 skippedAll 59 tests in 7 files
Tested by e2e 0.23.1 · 9m 6s · android-emulator · run artifacts |
Contributor
🟢 e2e ios agent: 21 passed, 1 skipped25 agent steps · 12 replayed from cache · 58 model calls · 382.8k tokens (81% cached) · $0.0267 All 22 tests in 1 file
Tested by e2e 0.23.1 · 8m 48s · ios-simulator · run artifacts |
kacperkapusciak
deleted the
kacper/eng-1385-docs-make-translations-best-effort
branch
November 18, 2026 12:39
This was referenced Nov 18, 2026
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.
English docs are the source of truth. The Japanese and Chinese translations are now best effort: they may lag behind English, and a contributor never has to update a language they don't speak.
scripts/check-docs-translations.tswarns instead of failing when a translation drifts from its English page: the outline (headings,<Tab>,<Accordion>,id), a code block, or a navigation label. On GitHub Actions each warning is aStale translationannotation on the file. An outline warning says what drift costs on the site: the page gets ids of its own, so links to its anchors and the language switcher miss.title, a language with nonavigation.json.check-docs-anchors.tsis unchanged, so a renamed English anchor still means fixing the#anchorlinks to it in the translations.AGENTS.md, theauthoring-docsskill, anddocs/ja/README.md/docs/zh/README.mdsay translations are best effort. The checklist item "mirror a changed outline indocs/ja/anddocs/zh/" became "move or delete translations with their English page".check-docs-translations-deepl.ts,deepl-review.ts,docs-translations.yml) no longer say the outline is guaranteed to match. A drifted page is still skipped there with a notice.The site already copes with a stale translation (
e2e-sitelib/docs/remark-docs.ts: a page whose outline differs keeps its own ids;lib/docs/source.ts: a missing label falls back to English).Verified
Ran it locally: yes
pnpm checkpasses; the translation check reports 162 of 162 pages in line.##heading and a code block todocs/quickstart.mdxand a group todocs/docs.json, then ran the check. Exit 0, with warnings for both languages:GITHUB_ACTIONS=trueprints::warning file=docs/ja/quickstart.mdx::Stale translation: ...annotations.docs/ja/orphan.mdxwith no English page still exits 1.Linear: ENG-1385