feat: add automatic documentation translation workflow#74
Conversation
Add GitHub workflows for automatic documentation translation: - translate-docs.yml: Translates English docs to ko, zh, ja, es, pt when wiki/*.md or website/docs.html changes - protect-translated-docs.yml: Prevents direct edits to auto-translated docs, only English sources should be manually edited - Update pages.yml to process all HTML files for asset paths Website updates: - Add language selector dropdown to docs.html navigation - Support for switching between en, ko, zh, ja, es, pt - Store language preference in localStorage Supported languages selected based on developer population: - Korean (ko) - Strong crypto/prediction market community - Chinese (zh) - Largest developer population - Japanese (ja) - Strong tech community - Spanish (es) - Large global developer population - Portuguese (pt) - Large Brazilian developer community Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PR Review: Automatic Documentation Translation WorkflowI've reviewed PR #74 and have the following feedback organized by category: ✅ Strengths
🔴 Critical Issues1. Workflow will fail - Missing checkout before git operationsLocation: Problem: The Fix: Add checkout step before the git operations 2. Workflow coordination issue - Changes won't be visibleLocation: Problem: The Fix: Either:
3. Security: Overly permissive permissionsLocation: Problem: The Fix: Reduce permissions in the translate job to 4. No validation of translation outputProblem: The workflow assumes Claude Code successfully translated files but never verifies:
Recommendation: Add validation steps after translation
|
Summary
Features
Translation Workflow (
translate-docs.yml)Protection Workflow (
protect-translated-docs.yml)Website Language Selector
Supported Languages
Test plan
Generated with Claude Code