Automatic Blog Translations With Claude and GitHub Actions
granda.org·2w
Preview
Report Post

Every post I write gets translated automatically. Claude handles the translation, commits the results to main, and the translated versions deploy alongside the original.

The Flow

The translation workflow runs in GitHub Actions when English content is merged to main:

on:
push:
branches: [main]
paths:
- 'content/**/*.en.md'

flowchart LR
B[Merge to main] --> C[Translations generated]
C --> D[Committed to main]
D --> E[Production deploy with all languages]

The Prompt

The workflow uses claude-code-action:

For each .en.md file that was added or modified:
1. Read the English content
2. Create translations for these languages: es, nl, de, it, fr, ja, zh, ru, hi
3. Save each translation as filename.{lang}.md...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help