Implemented AI Auto-Translation Feature for the Blog
1 min
Gemini 3 Pro is still too powerful. I spent two days over the weekend implementing the AI automatic article translation feature (most time was spent debugging GitHub Actions). Used my OpenRouter API, found a free tngtech/deepseek-r1t2-chimera model, and the translation quality is acceptable.
The principle is as follows: First, disabled Cloudflare Pages’ auto-deployment feature. When Sveltia edits and updates articles, it triggers GitHub Actions. Detects modifications to zh articles, then hands them to AI for translation. Finally compiles Astro and actively deploys to Cloudflare Pages. After repeated debugging, translation, summary extraction, tag extraction and other functions now work without issues.