From 7cc96bbcda229ebbb47937c72b4a958790dde2c4 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 16 Oct 2025 16:41:53 +1100 Subject: [PATCH 1/2] TST: setup action-translation-sync for testing --- .github/workflows/sync-translations.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/sync-translations.yml diff --git a/.github/workflows/sync-translations.yml b/.github/workflows/sync-translations.yml new file mode 100644 index 000000000..406b7623c --- /dev/null +++ b/.github/workflows/sync-translations.yml @@ -0,0 +1,26 @@ +name: Sync Translations + +on: + pull_request: + types: [closed] + paths: + - 'lectures/**/*.md' + +jobs: + sync-to-chinese: + # Only run when PR is merged (not just closed) + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + + steps: + - name: Sync to Chinese Repository + uses: quantecon/action-translation-sync@v0.1 + with: + target-repo: 'quantecon/lecture-python.zh-cn' + target-language: 'zh-cn' + docs-folder: 'lectures/' + source-language: 'en' + anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} + github-token: ${{ secrets.QUANTECON_SERVICES_PAT }} + pr-labels: 'translation-sync,automated,needs-review' + pr-reviewers: 'mmcky' # Add your GitHub username \ No newline at end of file From 20075c938fb6e89124854752126b67e882016e65 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 16 Oct 2025 16:50:31 +1100 Subject: [PATCH 2/2] TST: translation sync --- lectures/intro.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lectures/intro.md b/lectures/intro.md index e8b4556a5..9a7de18ff 100644 --- a/lectures/intro.md +++ b/lectures/intro.md @@ -13,5 +13,7 @@ kernelspec: This website presents a set of lectures on quantitative economic modeling. +Here is a new section that needs translating. + ```{tableofcontents} ``` \ No newline at end of file