Bootstrap .translate metadata for the 11 files the resync wave never touched#195
Merged
Conversation
…touched Closes the wave's discovery blind spot (QuantEcon/project-translation#14 step 1): files with no .translate/state were invisible to sync discovery. Adds state entries and heading maps for the 11 hand-translated files, plus the repo's missing .translate/config.yml. Safety: the six files whose source was newer than target were first triaged by translate forward — cass_fiscal_2 and intro verdict IDENTICAL, markov_asset/perm_income/re_with_feedback/uncertainty_traps verdict I18N_ONLY (font-config and figsize conventions) — so recording current source HEAD as the baseline masks no real drift. Existing state files are untouched. Result: translate status now reads 84 aligned + 37 source-only, with zero outdated and zero missing heading-maps. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR completes the step-1 translation audit by making previously “invisible” hand-translated lectures discoverable to the translation/sync tooling. It does this by adding missing .translate/state baselines and injecting translation: frontmatter (including heading maps where needed) so section-level alignment can be computed across the full corpus.
Changes:
- Add
.translate/config.ymlto define source/target languages and the docs folder for the translation tooling. - Add 11 new
.translate/state/*.md.ymlstate files to baseline source SHAs for lectures that previously had no state. - Inject
translation:frontmatter (title + heading maps) into 11 lecture Markdown files to enable section-level sync matching.
Reviewed changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.translate/config.yml |
Adds translation tool configuration (langs + docs folder). |
.translate/state/cass_fiscal_2.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/cass_koopmans_2.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/cross_product_trick.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/divergence_measures.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/hoist_failure.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/intro.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/markov_asset.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/perm_income.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/re_with_feedback.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/uncertainty_traps.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
.translate/state/zreferences.md.yml |
Adds baseline source SHA + sync metadata for discovery/resync. |
lectures/cass_fiscal_2.md |
Injects translation: frontmatter with title + heading map for section alignment. |
lectures/cass_koopmans_2.md |
Injects translation: frontmatter with title + heading map for section alignment. |
lectures/cross_product_trick.md |
Injects translation: frontmatter with title + heading map for section alignment. |
lectures/divergence_measures.md |
Injects translation: frontmatter with title + heading map for section alignment. |
lectures/hoist_failure.md |
Injects translation: frontmatter with title + heading map for section alignment. |
lectures/intro.md |
Injects translation: frontmatter with title for discovery. |
lectures/markov_asset.md |
Injects translation: frontmatter with title + heading map for section alignment. |
lectures/perm_income.md |
Injects translation: frontmatter with title + heading map for section alignment. |
lectures/re_with_feedback.md |
Injects translation: frontmatter with title + heading map for section alignment. |
lectures/uncertainty_traps.md |
Injects translation: frontmatter with title + heading map for section alignment. |
lectures/zreferences.md |
Injects translation: frontmatter with title for discovery. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Final piece of the QuantEcon/project-translation#14 step-1 audit: files with no
.translate/statewere invisible to sync discovery (the wave's known blind spot). This adds the missing metadata so discovery sees the whole corpus.Contents (23 files):
.translate/state/entries —cass_fiscal_2,cass_koopmans_2,cross_product_trick,divergence_measures,hoist_failure,intro,markov_asset,perm_income,re_with_feedback,uncertainty_traps,zreferencestranslate headingmap, position-based, frontmatter-only — no body changes) for the same files, which as hand-translated files never had maps; without them section-level sync cannot match sections.translate/config.yml— the repo had state files but no configSafety on the
--forcewrite: six of these files had source commits newer than their translations, so--write-statecorrectly refused at first. Each was triaged bytranslate forwardbefore forcing:cass_fiscal_2andintrocame back IDENTICAL (the upstream changes are already reflected / netted out), and the other four I18N_ONLY (the target's deliberate CJK font-config and figsize conventions). No real drift is masked by recording current source HEAD as their baseline. The 73 existing state files are untouched.Verification:
translate statuson this branch reads 84 aligned + 37 source-only, zero outdated, zero missing heading-maps — the target corpus is fully visible and verified convergent. With this merged, the only remaining #14 items are the sync automation (QuantEcon/lecture-python.myst#979 + org-secret check) and the e2e verification.🤖 Generated with Claude Code