Repository navigation
Check Ukrainian code blocks like the other locales - #624
Merged
Merged
Conversation
check-doc-translations.js compared code blocks only for six locales and skipped uk. Move the code block check into check-doc-translation-updates.js over the shared locale list, test that it covers every offered locale, and restore the one Ukrainian example that drifted from English (waterline-operator-api.md: WATERLINE_LOCALE=es). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Independent review: PASS at head 89391b3 What I verified (fresh clone,
Findings
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Independent review: PASS at head e8d4784 Delta review of 89391b3...e8d4784. That range is one commit, ahead by 1 and behind by 0, and it touches only
|
rmcdaniel
enabled auto-merge (squash)
November 26, 2026 14:59
|
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.



Problem
scripts/check-doc-translations.jscompared each translation's code blocks with English using its own six-locale map, which left outuk. Ukrainian examples could drift from English without failing the build.Change
checkCodeBlocks(root, languages = locales)inscripts/check-doc-translation-updates.js, using the same seven-locale list as the presence and review-hash checks (now with a label map that includes Ukrainian).check-doc-translations.jscalls it for every locale and keeps its review-hash warning and--record-reviewbehavior.check-doc-translation-updates.test.js: the default run covers all seven locales, and a Ukrainian code block that differs from English fails withUkrainian executable examples differ from English.ukfound one drifted example:i18n/uk/.../waterline-operator-api.mdsetWATERLINE_LOCALE=ukwhere English and the six other locales showWATERLINE_LOCALE=es. It now matches English. The English guide is unchanged, so nosource-hashes.jsonentry changes.Local:
node --test scripts/check-doc-translation-updates.test.js(7 pass) andnode scripts/check-doc-translations.js(all seven locales match in 112 guides).🤖 Generated with Claude Code