Skip to content

Commit 6487306

Browse files
mmckyclaude
andcommitted
Add French translation sync workflow (sync-translations-fr.yml)
Clone of sync-translations-fa.yml with target-repo QuantEcon/lecture-python-programming.fr, target-language fr, pinned at action-translation@v0.15.0. Do not merge until the fr bulk bootstrap (translate init) has landed in the target repo. Part of the fr rollout tracked in QuantEcon/project-translation#3 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6349269 commit 6487306

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Sync Translations — French
2+
# On merged PR, translate changed lectures into the French target repo.
3+
# Comment \translate-resync on a merged PR to re-trigger sync.
4+
name: Sync Translations (French)
5+
6+
on:
7+
pull_request:
8+
types: [closed]
9+
paths:
10+
- 'lectures/**/*.md'
11+
- 'lectures/_toc.yml'
12+
issue_comment:
13+
types: [created]
14+
15+
jobs:
16+
sync:
17+
if: >
18+
(github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
19+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '\translate-resync'))
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v7
24+
with:
25+
fetch-depth: 2
26+
27+
- uses: QuantEcon/action-translation@v0.15.0
28+
with:
29+
mode: sync
30+
target-repo: QuantEcon/lecture-python-programming.fr
31+
target-language: fr
32+
source-language: en
33+
docs-folder: lectures
34+
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
35+
github-token: ${{ secrets.QUANTECON_SERVICES_PAT }}

0 commit comments

Comments
 (0)