Skip to content

Commit 5ab8125

Browse files
mmckyclaude
andauthored
Add French translation sync workflow (sync-translations-fr.yml) (#573)
* 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> * Pin French sync to action-translation v0.16.0 This PR predated the v0.16.0 release, so it pinned v0.15.0 (default model claude-sonnet-4-6). v0.16.0 defaults to claude-sonnet-5, which is the point of pointing French at it. Diverges deliberately from the fa and zh-cn sync workflows, which stay on v0.15.0/Sonnet 4.6: French is the edition evaluated on Sonnet 5, and silently changing the model for two established editions is not this PR's business. --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 6349269 commit 5ab8125

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.16.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)