π Language: English | νκ΅μ΄
AI-powered CLI tool for automatically translating AWS Workshop documents.
- π€ AI-Powered Translation: High-quality translation using Claude models (Opus/Sonnet/Haiku)
- π AWS Documentation Integration: Accurate terminology via MCP integration with official AWS docs
- β‘ Parallel Processing: Process up to 5 files simultaneously with ThreadPoolExecutor
- π Session Resume: Continue interrupted work from where you left off
- π Quality Management: 3-stage workflow: Translation β Review β Validation
- π Local Preview: Instantly preview translation results
Uses an Orchestrator-centric architecture.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Orchestrator (main.py) β
β Claude Opus / Sonnet β
β β
β Core Principle: Only Orchestrator modifies tasks.md β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββ΄ββββββββββ
β TaskManager β
β (Singleton) β
β β
β β’ Task state mgmt β
β β’ Dependency checkβ
β β’ tasks.md sync β
βββββββββββ¬ββββββββββ
β
βββββββββββββββββββββββΌββββββββββββββββββββββ
βΌ βΌ βΌ
βββββββββββββββββ βββββββββββββββββ βββββββββββββββββ
β Translator β β Reviewer β β Validator β
β Worker β β Worker β β Worker β
β (Stateless) β β (Stateless) β β (Stateless) β
β Returns only β β Returns only β β Returns only β
β results β β results β β results β
βββββββββββββββββ βββββββββββββββββ βββββββββββββββββ
| Item | Description |
|---|---|
| Centralized State Management | Only Orchestrator (TaskManager) modifies tasks.md |
| Stateless Workers | Sub-agents return results only, no direct state file modification |
| Automatic Dependency Management | TaskManager automatically checks inter-task dependencies |
| Parallel Processing | Up to 5 files processed simultaneously via ThreadPoolExecutor |
| Session Resume | Load existing tasks.md state to continue work |
| Model | Purpose | Features |
|---|---|---|
| Claude Opus 4.5 | Orchestrator (remote mode) | Extended thinking support |
| Claude Sonnet 4.5 | Designer, Translator, Reviewer | Balanced performance |
| Claude Haiku 4.5 | Analyzer | Fast processing |
Phase 1: Analysis/Design
βββ analyze_workshop() β Analyze workshop structure
βββ generate_design() β Generate design document
β
βΌ
Phase 2: Workflow Initialization
βββ initialize_workflow() β Initialize TaskManager, create tasks.md
β
βΌ
Phase 3: Translation
βββ run_translation_phase() β Execute parallel translation
β
βΌ
Phase 4: Review
βββ run_review_phase() β Review completed translations only
β β Generate review_report.md
βΌ
Phase 5: Validation
βββ run_validate_phase() β Validate translated+reviewed files only
β β Generate validate_report.md
βΌ
Phase 6: Preview
βββ run_preview_phase() β Run local preview server
β β http://localhost:8080
βΌ
Phase 7: Complete
βββ get_workflow_status() β Final status report
| Tool | Description |
|---|---|
analyze_workshop |
Analyze workshop structure, return target file list |
generate_design |
Generate translation design document |
initialize_workflow |
Initialize workflow, create tasks.md |
run_translation_phase |
Execute translation phase in parallel |
run_review_phase |
Execute review phase in parallel, generate review_report.md |
run_validate_phase |
Execute validation phase in parallel, generate validate_report.md |
run_preview_phase |
Run local preview server (background) |
stop_preview |
Stop preview server |
get_workflow_status |
Query overall progress |
retry_failed_tasks |
Retry failed tasks |
check_phase_completion |
Check phase completion status |
The following files are created in the translation/ directory during translation:
| File | Description |
|---|---|
design.md |
Translation design document |
tasks.md |
Task progress status (checkbox format) |
review_report.md |
Review phase report (scores, PASS/FAIL list) |
validate_report.md |
Validation phase report (structure validation results) |
# Using uvx (run without installation)
uvx wstranslator
# Or install via pip
pip install wstranslator
wstranslator# After cloning the repository
cd workshop-translator/WsTranslator
# Using uv
uv sync
uv run wstranslator
# Or using pip
pip install -e .
wstranslatorwstranslatorIn interactive mode, the Orchestrator automatically progresses through the workflow.
Example conversation:
User: Please translate the /path/to/workshop directory to Korean
Orchestrator: Analyzing workshop structure...
β Found 10 files
β Workflow initialization complete
β Starting translation (5 files in parallel)
β Translation complete: 10/10 (100%)
β Starting review...
β Review complete. review_report.md generated
β Validation complete. validate_report.md generated
β Preview server started: http://localhost:8080
You can continue interrupted work from a previous session:
User: Please continue the previous translation work
Orchestrator: Resuming existing workflow. Loaded 25/30 tasks completed.
β Starting translation of remaining 5 files...
- Python 3.10+
- AWS credentials configured (AWS CLI or environment variables)
- Bedrock model access (Claude Opus, Sonnet, Haiku)
# AWS region setting (default: us-west-2)
export AWS_REGION=us-west-2
# AWS profile setting
export AWS_PROFILE=your-profileKey packages:
strands-agents: AI agent frameworkstrands-agents-tools: File read/write toolsbedrock-agentcore: AWS Bedrock AgentCore runtimemcp: Model Context Protocol clientboto3: AWS SDK
# AWS CLI configuration
aws configure
# Or set environment variables
export AWS_ACCESS_KEY_ID=your_key
export AWS_SECRET_ACCESS_KEY=your_secret
export AWS_REGION=us-west-2# On macOS with execution permission issues
# Control-click preview_build file in Finder β Open
# File open limit error
ulimit -n 10240# Check uvx installation
uvx --version
# Test AWS Documentation MCP server
uvx awslabs.aws-documentation-mcp-server@latest- Author: Jisan Bang (wltks2155@gmail.com)
- GitHub: https://github.com/onesuit/workshop-translator
- License: MIT
- Python Version: 3.10+