Repository navigation
Translations keep no English link text, alt text or table cell, and a page that still differs no longer stops the run - #636
Merged
Merged
Conversation
…e that still differs is reported without stopping the run, and every page is regenerated Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… link markup is read; four READMEs regenerated with same-page link and term rules Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…label; skip messages name the page once; fatal errors list every skipped page Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…says it is about a fatal error Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
...
Why
Regenerated translations kept English text the checker did not look at: link texts that point at English-only pages (the Japanese README's navigation, the Spanish models-and-keys links), image alt texts (the Korean badges) and table cells (the Russian benchmark table). Measured on the committed pages, 34 of 72 kept such labels. The README translations are also stale since the README's documentation links moved to the site, so the translations workflow on main fails.
scripts/i18n/translate.py:labels()now checks every Markdown link text (links to English-only pages included), HTML link texts (other markup inside them read as text,<code>left out), Markdown and HTML image alt texts, and table cells with at least two words to translate, besides headings; code spans are removed first, so a link or alt attribute shown as code is not a label. Names stay as they are (KEPT_WORDSgainshyperdx). The prompt says to translate every link text and alt text, including links to English pages. Two fixed terms join the Japanese (the NOTICE file) and Korean (recording a conversation) glossaries.translate_pagenow holds the assembled page to the same rule ascheckbefore writing it.TranslationDiffers) is not written and is named, by its path, when the run ends; the other pages go on. Only the cap, an API error or a bug stops every worker, and its message also names the pages skipped by then. Before, one such page stopped the whole run, and with the stricter check almost every full run stopped.Every page under
i18n/is regenerated with the new prompt and check;python -m scripts.i18n.translate checkpasses on all 72.Scope and risk
What the check does not cover: running prose. A fixed glossary term is a prompt instruction there, not a check; the Spanish README, for example, still writes "dashboard" in some paragraphs where the glossary says "panel".
The generator, its tests and the generated pages. The English pages are unchanged. Cost of this regeneration: $10.36 over eleven runs, each under
LOOM_I18N_MAX_USD(5).Compatibility, rollout and rollback
Tests
tests/unit/test_i18n.py(66): new tests for alt texts, HTML link texts and table cells; links and alt texts shown as code, and<code>inside an HTML link, are not labels; a link to an English-only page must be translated; a label borrowed from another section keeps the page unwritten; a page that still differs lets the others finish and is named by path; a fatal error after it still names it.test_i18n.py,test_doc_links.py,test_public_copy.py,test_agent_instructions.py,test_install_script.py: 704 passed.make format-check,make lint: pass.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. I measured the stricter check on the committed pages before regenerating and read the flagged labels to set the name list.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-checkandmake lintpass, and the unit tests named above;make typecheckand the fullmake test-unitrun in CI (the generator is not under mypy).docs/describe the system as it now is, and this description names any operator steps and wire changes.🤖 Generated with Claude Code