Skip to content

[action-translation] Wire zh-cn sync automation and reconcile drift (Phase 0, Track B) #947

Description

@mmcky

Part of Phase 0 tracked in QuantEcon/action-translation#74. This repo is the English source for lecture-python.zh-cn, which holds 79 of 121 current lectures but has been dormant since 2025-11-26 — 40+ lecture PRs here (including the Kalman rewrites, Hansen–Singleton, unemployment dynamics, and the LQ permanent-income trilogy) have not flowed through, and 8 translated files still sit under pre-rename filenames.

Scope note: Phase 0 only reconciles the 79 already-translated lectures and turns automation on. Bulk translation of the 42 missing lectures and the restart of the RA review campaign are Phase 2 of the rollout (see QuantEcon/action-translation#74).

Todo

1. Repair the target repo so sync PRs can land correctly

2. Reconcile drift on the 79 translated lectures

  • Generate an onboarding report against current HEADs (translate status / onboarding)
  • Work through per-file drift decisions (source→target RESYNC vs backport vs manual); RESYNC drifted files with translate forward

3. Wire the automation (this repo)

  • Add .github/workflows/sync-translations-zh-cn.yml, copied from lecture-python-programming with target-repo: QuantEcon/lecture-python.zh-cn (pin QuantEcon/action-translation@v0.15.0; include the \translate-resync comment trigger). Note: sync PRs for the 42 untranslated lectures will create new files — confirm desired behaviour with the action's docs-folder settings, or scope the workflow to existing files until Phase 2
  • Confirm TRANSLATION_PAT and ANTHROPIC_API_KEY secrets are set on this repo

4. Review workflow (target repo)

  • Add review-translations.yml and rebase-translations.yml to lecture-python.zh-cn, copied from lecture-python-programming.zh-cn (the target repo has a parked _future/ workflows folder — reconcile with what is there)

5. Verify end-to-end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions