Repository navigation
fix(i18n): resume failed full translation shards - #119
Merged
Merged
Conversation
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.
What Problem This Solves
Fixes an issue where a long Translate Full run had to retransmit every locale shard after a small subset failed. It also fixes protected-attribute repair offsets when MDX parsing normalizes escaped comparison operators.
Why This Change Was Made
Full translation runs can now resume from a prior workflow run, reuse validated successful artifacts, rerun only failed or unusable shards, and merge the two artifact roots before finalization. The planner fails closed on incompatible source revisions, modes, or shard layouts, while missing prior artifacts intentionally degrade to a full rerun.
Protected-attribute repair now maps parser offsets from the normalized MDX input back to the original text before applying edits.
User Impact
Maintainers can recover partial full-translation failures without repeating successful work. Finalization still covers the complete selected locale set, including a finalization-only resume when every prior shard is already usable.
Evidence
node --checkpassed for the changed JavaScript.git diff --checkpassed.30187722394selected only failed pt-BR shard4/7while reusing the other six.Companion validator fix: openclaw/openclaw#115204