Skip to content

Commit 3f9c65e

Browse files
authored
Setup action-translation v0.11.0 infrastructure (#67)
* Resync stale translations to current source via forward - status.md: added missing GPU access and JAX backend sections - python_by_example.md: restored missing index directives and doc links * Update heading-maps to full-text key format - 4 files: new heading-maps generated (about_py, functions, getting_started, python_by_example) - 19 files: updated from slug-based to full heading text with :: nesting - 2 files: unchanged (intro, status — section-less) - Fix YAML quoting for heading containing colon (python_essentials.md) * Bootstrap .translate/ metadata and add review workflow - .translate/config.yml: source=en, target=fa, docs=lectures, tool-version=0.11.0 - .translate/state/: 25 state files tracking source commit SHAs - .github/workflows/review-translations.yml: Claude quality review on translation PRs State verified via --check-sync before --write-state (v0.11.0 safeguard)
1 parent e3dd14c commit 3f9c65e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+599
-285
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Review Translations — Quality check on translation PRs
2+
# When a PR is opened/updated that carries the 'action-translation' label,
3+
# this workflow runs a quality review and posts a comment.
4+
name: Review Translations
5+
6+
on:
7+
pull_request:
8+
types: [opened, synchronize, labeled, reopened]
9+
10+
jobs:
11+
review:
12+
if: contains(github.event.pull_request.labels.*.name, 'action-translation')
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 2
19+
20+
- uses: QuantEcon/action-translation@v0.11.0
21+
with:
22+
mode: review
23+
source-repo: QuantEcon/lecture-python-programming
24+
source-language: en
25+
target-language: fa
26+
docs-folder: lectures
27+
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
28+
github-token: ${{ secrets.GITHUB_TOKEN }}

.translate/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source-language: en
2+
target-language: fa
3+
docs-folder: lectures
4+
tool-version: 0.11.0

.translate/state/about_py.md.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source-sha: 9490497982787a5b0eb54ee1dcd73ac326d5ae04
2+
synced-at: "2026-03-20"
3+
model: unknown
4+
mode: RESYNC
5+
section-count: 3
6+
tool-version: 0.11.0

.translate/state/debugging.md.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source-sha: 678d8ffa60705071883c1e5d98ef37ba5a1e139f
2+
synced-at: "2026-03-20"
3+
model: unknown
4+
mode: RESYNC
5+
section-count: 4
6+
tool-version: 0.11.0

.translate/state/functions.md.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source-sha: 1f13005646e1f9241baccf1f6e79dff1924043dd
2+
synced-at: "2026-03-20"
3+
model: unknown
4+
mode: RESYNC
5+
section-count: 7
6+
tool-version: 0.11.0
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source-sha: 6d0df81899e042268a0081b71af2cedc438613b5
2+
synced-at: "2026-03-20"
3+
model: unknown
4+
mode: RESYNC
5+
section-count: 7
6+
tool-version: 0.11.0

.translate/state/intro.md.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source-sha: a2a37636bb525ddcad0c82f6825bcd3287807c4b
2+
synced-at: "2026-01-29"
3+
model: unknown
4+
mode: RESYNC
5+
section-count: 0
6+
tool-version: 0.11.0

.translate/state/jax_intro.md.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source-sha: c4c03c80c1eb4318f627d869707d242d19c8cf09
2+
synced-at: "2026-03-20"
3+
model: unknown
4+
mode: RESYNC
5+
section-count: 6
6+
tool-version: 0.11.0

.translate/state/matplotlib.md.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source-sha: 678d8ffa60705071883c1e5d98ef37ba5a1e139f
2+
synced-at: "2026-03-20"
3+
model: unknown
4+
mode: RESYNC
5+
section-count: 5
6+
tool-version: 0.11.0

.translate/state/names.md.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source-sha: fe42b933280691390a2a4741b7bcbccaa86a5c2b
2+
synced-at: "2026-03-20"
3+
model: unknown
4+
mode: RESYNC
5+
section-count: 9
6+
tool-version: 0.11.0

0 commit comments

Comments
 (0)