ENH: bootstrap .translate/ metadata and heading maps (Phase 0, Track A) - #266
Merged
Merged
Conversation
Onboards this repo to action-translation section-level sync: - .translate/config.yml + per-file state (41 recorded by the resync wave that just merged, the rest bootstrapped via translate status --write-state; --force justified for the three i18n-only files the 2026-07-18 LLM triage verified faithful against current source) - translation: heading maps injected into 48 lecture frontmatters (translate headingmap, no LLM) translate doctor now passes: config ok, 49/50 tracked (README.md is target-only), all 46 sectioned files mapped, review+rebase workflows present. Known residual: intro_supply_demand section-count mismatch, suspected upstream parser fence bug (see QuantEcon/action-translation#94 comment); content verified complete by two independent triages. Completes the target-side onboarding for QuantEcon/lecture-python-intro#782. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Deploy Preview for playful-platypus-17d3bb ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
11 tasks
left a comment
There was a problem hiding this comment.
Pull request overview
This PR bootstraps the repository for action-translation section-level syncing by adding .translate/ configuration and per-file translation metadata (titles + heading maps) to lecture documents, along with per-file state tracking files under .translate/state/.
Changes:
- Add
.translate/config.ymlto define source/target languages and docs folder for the translation tool. - Add
.translate/state/*.ymlstate files to track per-lecture sync status (source SHA, mode, section counts, etc.). - Inject
translation:frontmatter into lecture markdown files, includingtitleand (where applicable)headingsmaps for section-level alignment.
Reviewed changes
Copilot reviewed 99 out of 99 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| lectures/zreferences.md | Adds translation.title frontmatter. |
| lectures/unpleasant.md | Adds translation.title + heading map frontmatter. |
| lectures/troubleshooting.md | Adds translation.title + heading map frontmatter. |
| lectures/time_series_with_matrices.md | Adds translation.title + heading map frontmatter. |
| lectures/supply_demand_multiple_goods.md | Adds translation.title + heading map frontmatter. |
| lectures/supply_demand_heterogeneity.md | Adds translation.title + heading map frontmatter. |
| lectures/status.md | Adds translation.title frontmatter. |
| lectures/solow.md | Adds translation.title + heading map frontmatter. |
| lectures/simple_linear_regression.md | Adds translation.title + heading map frontmatter. |
| lectures/short_path.md | Adds translation.title + heading map frontmatter. |
| lectures/schelling.md | Adds translation.title + heading map frontmatter. |
| lectures/scalar_dynam.md | Adds translation.title + heading map frontmatter. |
| lectures/pv.md | Adds translation.title + heading map frontmatter. |
| lectures/prob_dist.md | Adds translation.title + heading map frontmatter. |
| lectures/olg.md | Adds translation.title + heading map frontmatter. |
| lectures/networks.md | Adds translation.title + heading map frontmatter. |
| lectures/monte_carlo.md | Adds translation.title + heading map frontmatter. |
| lectures/money_inflation.md | Adds translation.title + heading map frontmatter. |
| lectures/money_inflation_nonlinear.md | Adds translation.title + heading map frontmatter. |
| lectures/mle.md | Adds translation.title + heading map frontmatter. |
| lectures/markov_chains_II.md | Adds translation.title + heading map frontmatter. |
| lectures/markov_chains_I.md | Adds translation.title + heading map frontmatter. |
| lectures/lp_intro.md | Adds translation.title + heading map frontmatter. |
| lectures/long_run_growth.md | Adds translation.title + heading map frontmatter. |
| lectures/lln_clt.md | Adds translation.title + heading map frontmatter. |
| lectures/linear_equations.md | Adds translation.title + heading map frontmatter. |
| lectures/lake_model.md | Adds translation.title + heading map frontmatter. |
| lectures/laffer_adaptive.md | Adds translation.title + heading map frontmatter. |
| lectures/intro.md | Adds translation.title frontmatter. |
| lectures/intro_supply_demand.md | Adds translation.title + heading map frontmatter (needs correction for sync alignment). |
| lectures/input_output.md | Adds translation.title + heading map frontmatter. |
| lectures/inflation_history.md | Adds translation.title + heading map frontmatter. |
| lectures/inequality.md | Adds translation.title + heading map frontmatter. |
| lectures/heavy_tails.md | Adds translation.title + heading map frontmatter. |
| lectures/greek_square.md | Adds translation.title + heading map frontmatter. |
| lectures/geom_series.md | Adds translation.title + heading map frontmatter. |
| lectures/french_rev.md | Adds translation.title + heading map frontmatter. |
| lectures/equalizing_difference.md | Adds translation.title + heading map frontmatter. |
| lectures/eigen_II.md | Adds translation.title + heading map frontmatter. |
| lectures/eigen_I.md | Adds translation.title + heading map frontmatter. |
| lectures/cons_smooth.md | Adds translation.title + heading map frontmatter. |
| lectures/complex_and_trig.md | Adds translation.title + heading map frontmatter. |
| lectures/commod_price.md | Adds translation.title + heading map frontmatter. |
| lectures/cobweb.md | Adds translation.title + heading map frontmatter. |
| lectures/cagan_ree.md | Adds translation.title + heading map frontmatter. |
| lectures/cagan_adaptive.md | Adds translation.title + heading map frontmatter. |
| lectures/business_cycle.md | Adds translation.title + heading map frontmatter. |
| lectures/ar1_processes.md | Adds translation.title + heading map frontmatter. |
| lectures/about.md | Adds translation frontmatter (currently leaves an extra --- delimiter that should be removed). |
| .translate/state/zreferences.md.yml | Bootstraps translation state tracking for zreferences.md. |
| .translate/state/unpleasant.md.yml | Bootstraps translation state tracking for unpleasant.md. |
| .translate/state/troubleshooting.md.yml | Bootstraps translation state tracking for troubleshooting.md. |
| .translate/state/time_series_with_matrices.md.yml | Bootstraps translation state tracking for time_series_with_matrices.md. |
| .translate/state/supply_demand_multiple_goods.md.yml | Bootstraps translation state tracking for supply_demand_multiple_goods.md. |
| .translate/state/supply_demand_heterogeneity.md.yml | Bootstraps translation state tracking for supply_demand_heterogeneity.md. |
| .translate/state/status.md.yml | Bootstraps translation state tracking for status.md. |
| .translate/state/solow.md.yml | Bootstraps translation state tracking for solow.md. |
| .translate/state/simple_linear_regression.md.yml | Bootstraps translation state tracking for simple_linear_regression.md. |
| .translate/state/short_path.md.yml | Bootstraps translation state tracking for short_path.md. |
| .translate/state/schelling.md.yml | Bootstraps translation state tracking for schelling.md. |
| .translate/state/scalar_dynam.md.yml | Bootstraps translation state tracking for scalar_dynam.md. |
| .translate/state/pv.md.yml | Bootstraps translation state tracking for pv.md. |
| .translate/state/prob_dist.md.yml | Bootstraps translation state tracking for prob_dist.md. |
| .translate/state/olg.md.yml | Bootstraps translation state tracking for olg.md. |
| .translate/state/networks.md.yml | Bootstraps translation state tracking for networks.md. |
| .translate/state/monte_carlo.md.yml | Bootstraps translation state tracking for monte_carlo.md. |
| .translate/state/money_inflation.md.yml | Bootstraps translation state tracking for money_inflation.md. |
| .translate/state/money_inflation_nonlinear.md.yml | Bootstraps translation state tracking for money_inflation_nonlinear.md. |
| .translate/state/mle.md.yml | Bootstraps translation state tracking for mle.md. |
| .translate/state/markov_chains_II.md.yml | Bootstraps translation state tracking for markov_chains_II.md. |
| .translate/state/markov_chains_I.md.yml | Bootstraps translation state tracking for markov_chains_I.md. |
| .translate/state/lp_intro.md.yml | Bootstraps translation state tracking for lp_intro.md. |
| .translate/state/long_run_growth.md.yml | Bootstraps translation state tracking for long_run_growth.md. |
| .translate/state/lln_clt.md.yml | Bootstraps translation state tracking for lln_clt.md. |
| .translate/state/linear_equations.md.yml | Bootstraps translation state tracking for linear_equations.md. |
| .translate/state/lake_model.md.yml | Bootstraps translation state tracking for lake_model.md. |
| .translate/state/laffer_adaptive.md.yml | Bootstraps translation state tracking for laffer_adaptive.md. |
| .translate/state/intro.md.yml | Bootstraps translation state tracking for intro.md. |
| .translate/state/intro_supply_demand.md.yml | Bootstraps translation state tracking for intro_supply_demand.md. |
| .translate/state/input_output.md.yml | Bootstraps translation state tracking for input_output.md. |
| .translate/state/inflation_history.md.yml | Bootstraps translation state tracking for inflation_history.md. |
| .translate/state/inequality.md.yml | Bootstraps translation state tracking for inequality.md. |
| .translate/state/heavy_tails.md.yml | Bootstraps translation state tracking for heavy_tails.md. |
| .translate/state/greek_square.md.yml | Bootstraps translation state tracking for greek_square.md. |
| .translate/state/geom_series.md.yml | Bootstraps translation state tracking for geom_series.md. |
| .translate/state/french_rev.md.yml | Bootstraps translation state tracking for french_rev.md. |
| .translate/state/equalizing_difference.md.yml | Bootstraps translation state tracking for equalizing_difference.md. |
| .translate/state/eigen_II.md.yml | Bootstraps translation state tracking for eigen_II.md. |
| .translate/state/eigen_I.md.yml | Bootstraps translation state tracking for eigen_I.md. |
| .translate/state/cons_smooth.md.yml | Bootstraps translation state tracking for cons_smooth.md. |
| .translate/state/complex_and_trig.md.yml | Bootstraps translation state tracking for complex_and_trig.md. |
| .translate/state/commod_price.md.yml | Bootstraps translation state tracking for commod_price.md. |
| .translate/state/cobweb.md.yml | Bootstraps translation state tracking for cobweb.md. |
| .translate/state/cagan_ree.md.yml | Bootstraps translation state tracking for cagan_ree.md. |
| .translate/state/cagan_adaptive.md.yml | Bootstraps translation state tracking for cagan_adaptive.md. |
| .translate/state/business_cycle.md.yml | Bootstraps translation state tracking for business_cycle.md. |
| .translate/state/ar1_processes.md.yml | Bootstraps translation state tracking for ar1_processes.md. |
| .translate/state/about.md.yml | Bootstraps translation state tracking for about.md. |
| .translate/config.yml | Adds base configuration for the translation tool (languages, docs folder, tool version). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Credits: 致谢 | ||
| --- | ||
|
|
||
| --- |
Comment on lines
+14
to
+23
| headings: | ||
| Overview: 概述 | ||
| Overview::Why does this model matter?: 为什么这个模型很重要? | ||
| Overview::Topics and infrastructure: 主题和函数库 | ||
| Consumer surplus: 生产者剩余 | ||
| Consumer surplus::A discrete example: 离散情况 | ||
| Producer surplus: 积分 | ||
| Integration: 供给和需求 | ||
| Supply and demand: 推广 | ||
| Generalizations: 练习 |
commented
Jul 18, 2026
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.
Onboards this repo to action-translation section-level sync, following the connect-existing tutorial order (resync wave first — merged today as #225–#265 — then state bootstrap, then heading maps).
Contents:
.translate/config.yml; per-file state for 49 lectures (41 recorded by the resync wave, the rest bootstrapped withtranslate status --write-state,--forcejustified for the three i18n-only files the 2026-07-18 LLM triage verified faithful against current source);translation:heading maps injected into 48 lecture frontmatters (no-LLMtranslate headingmap).Health:
translate doctornow passes — config ok, 49/50 files tracked (README.md is target-only), all 46 sectioned files mapped, review+rebase workflows present. Known residual:intro_supply_demand.mdsection-count mismatch (7 src vs 6 tgt), suspected upstream parser fence bug (QuantEcon/action-translation#94 discussion); content verified complete by two independent triages.Completes the target-side onboarding for QuantEcon/lecture-python-intro#782. Next: merge the source-side sync workflow (QuantEcon/lecture-python-intro#795) to activate automation.
🤖 Generated with Claude Code