Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/sync-translations-zh-cn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Sync Translations — Simplified Chinese
# On merged PR, translate changed lectures into the zh-cn target repo.
#
# Comment \translate-resync on a merged PR to re-trigger sync.
name: Sync Translations (Simplified Chinese)

on:
pull_request:
types: [closed]
paths:
- 'lectures/**/*.md'
- 'lectures/_toc.yml'
issue_comment:
types: [created]

jobs:
sync:
if: >
(github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '\translate-resync'))
Comment thread
mmcky marked this conversation as resolved.
Outdated
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
Comment thread
mmcky marked this conversation as resolved.
Outdated

- uses: QuantEcon/action-translation@v0.14.1
with:
mode: sync
target-repo: QuantEcon/lecture-intro.zh-cn
target-language: zh-cn
source-language: en
docs-folder: lectures
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
github-token: ${{ secrets.QUANTECON_SERVICES_PAT }}
Loading