Repository navigation
Translation checks preserve tracked path labels - #846
Merged
Merged
Conversation
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
Translation checks preserve source-attested repository paths in link labels, including directory components.
Why
A technical label such as
tracker/overview.mdis required to keep its spelling. Protecting only its basename leavestracker/classified as untranslated prose and rejects a valid reply. The same basename-only comparison can miss a removed or changed directory component.Scope and risk
The source-spelling helper protects the longest exact path suffix visible in the English label when its link resolves to that tracked repository file. Ordinary qualifiers remain translatable, external or untracked targets supply no protection, and changed filename or directory components still fail. The conventional
READMElabel remains supported. No translated or English documentation files change.Compatibility, rollout and rollback
Tests
git diff --checkpass.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Codex diagnosed the source-protection mismatch, changed the helper and wrote focused regressions.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist