ENH: add zh-cn translation sync workflow (Phase 0, Track A)#795
Merged
Conversation
Copies the proven lecture-python-programming pattern: on merged PRs touching lectures/, QuantEcon/action-translation@v0 translates changed sections and opens a PR in QuantEcon/lecture-intro.zh-cn. Manual re-trigger via a \translate-resync issue comment. Pin follows the fr precedent (@v0 floats on the latest release, currently v0.17.0). Part of the Phase 0 Track A wiring (#782). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Deploy Preview for taupe-gaufre-c4e660 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
mmcky
marked this pull request as ready for review
July 18, 2026 05:40
There was a problem hiding this comment.
Pull request overview
Adds automation to keep the Simplified Chinese translation repo (QuantEcon/lecture-intro.zh-cn) in sync with English lecture changes by running QuantEcon/action-translation when lecture PRs are merged (and via a manual comment trigger).
Changes:
- Introduces a new GitHub Actions workflow to run translation sync on merged PRs that touch
lectures/. - Adds an
issue_commenttrigger intended to allow manual re-sync via\translate-resync.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+17
to
+19
| if: > | ||
| (github.event_name == 'pull_request' && github.event.pull_request.merged == true) || | ||
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '\translate-resync')) |
| with: | ||
| fetch-depth: 2 | ||
|
|
||
| - uses: QuantEcon/action-translation@v0 |
Comment on lines
+15
to
+16
| jobs: | ||
| sync: |
Comment on lines
+7
to
+11
| pull_request: | ||
| types: [closed] | ||
| paths: | ||
| - 'lectures/**/*.md' | ||
| - 'lectures/_toc.yml' |
This was referenced 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.
Adds
.github/workflows/sync-translations-zh-cn.yml, copying the proven lecture-python-programming pattern: on merged PRs touchinglectures/, action-translation@v0translates changed sections and opens a PR in QuantEcon/lecture-intro.zh-cn. Manual re-trigger via a\translate-resyncissue comment.Hold for sequencing — merge only after the target repo's onboarding lands (heading maps +
.translate/state bootstrap, per the connect-existing tutorial), so the first automated sync runs against a mapped, current baseline. Wiring order tracked in #782.Secrets:
ANTHROPIC_API_KEYandQUANTECON_SERVICES_PATare available to this repo as org-level secrets (verified 2026-07-18).Part of Phase 0 Track A (#782); program tracker QuantEcon/action-translation#74.
🤖 Generated with Claude Code