diff --git a/.github/workflows/sync-translations-fa.yml b/.github/workflows/sync-translations-fa.yml new file mode 100644 index 00000000..8c7d3b8a --- /dev/null +++ b/.github/workflows/sync-translations-fa.yml @@ -0,0 +1,30 @@ +# Sync Translations — Farsi +# On merged PR, translate changed lectures into the Farsi target repo. +name: Sync Translations (Farsi) + +on: + pull_request: + types: [closed] + paths: + - 'lectures/**/*.md' + - 'lectures/_toc.yml' + +jobs: + sync: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 2 + + - uses: QuantEcon/action-translation@v0.11.0 + with: + mode: sync + target-repo: QuantEcon/lecture-python-programming.fa + target-language: fa + source-language: en + docs-folder: lectures + anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} + github-token: ${{ secrets.QUANTECON_SERVICES_PAT }}