Skip to content

Setup action-translation sync infrastructure #1

Setup action-translation sync infrastructure

Setup action-translation sync infrastructure #1

# Review Translations — Quality check on translation PRs
# When a PR is opened/updated that carries the 'action-translation' label,
# this workflow runs a quality review and posts a comment.
name: Review Translations
on:
pull_request:
types: [opened, synchronize]
jobs:
review:
if: contains(github.event.pull_request.labels.*.name, 'action-translation')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: QuantEcon/action-translation@v0.10.0
with:
mode: review
source-repo: QuantEcon/lecture-python-programming
source-language: en
target-language: fa
docs-folder: lectures
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}