Overview
TranslatePro is a professional-grade translation and localization skill that automates content adaptation across 100+ languages while maintaining brand voice, cultural context, and technical accuracy. Built for content creators, global marketers, software teams, and enterprises, this skill eliminates manual translation bottlenecks and ensures consistency across language pairs through integrated translation memory systems.
Why TranslatePro Matters
- - Scale globally overnight: Convert English content to 50+ languages in minutes instead of weeks
- Preserve voice & context: Maintains tone, terminology, and brand consistency across all translations
- Integration-ready: Works with WordPress, Contentful, Slack, GitHub, Google Workspace, and REST APIs
- Cost-efficient: Hybrid approach uses cached translation memory + AI for 60-70% faster turnaround
- Quality assurance: Built-in terminology validation, glossary enforcement, and back-translation verification
Real-World Use Cases
- 1. E-commerce platforms: Translate product descriptions, pricing, shipping details, and customer reviews automatically
- SaaS localization: Adapt UI strings, help documentation, and marketing copy for 20+ markets
- Content marketing: Repurpose blog posts, whitepapers, and video captions in target languages
- Legal/compliance: Maintain glossaries for regulated industries (healthcare, fintech, government)
Quick Start
Try these prompts immediately:
Prompt 1: Basic Translation with Language Detection
CODEBLOCK0
Prompt 2: Localization with Cultural Adaptation
CODEBLOCK1
Prompt 3: Translation Memory + Glossary Consistency
CODEBLOCK2
Prompt 4: Bulk Content Localization
Localize my entire product website to Mandarin Chinese, Thai, and Korean:
- Input folder: /content/pages/
- File types: .md, .html
- Preserve HTML structure and attributes
- Output format: /localized/{language_code}/
- Use professional (formal) register for all languages
Capabilities
1. Multi-Engine Translation
- - Google Translate API: 100+ languages, real-time updates, cost-effective
- DeepL API: Superior neural translation for 29 language pairs, highest quality
- Intelligent fallback: Routes high-stakes content to DeepL, bulk content to Google
- Custom engine selection: Specify per-language preference in configuration
Example Usage:
CODEBLOCK4
2. Translation Memory (TM) Integration
- - TMX/XLIFF format support: Import existing translation memories from Trados, memoQ, SDL
- Cached terminology: Reuse past translations for consistent terminology
- Fuzzy matching: Leverage 75%+ matches from TM for faster, cheaper turnarounds
- Build incremental TM: Every translation adds to your organizational memory
Example:
CODEBLOCK5
3. Glossary & Terminology Management
- - Enforce custom glossaries: Prevents mistranslation of proprietary terms, brand names, acronyms
- Multi-level terminology: Brand terms, product names, domain-specific vocabulary
- Automatic validation: Flags glossary deviations with confidence scores
- Bidirectional glossaries: Support source→target and context-aware definitions
Example:
CODEBLOCK6
4. Content-Type Specific Translation
- - Plain text: Simple, fast, no formatting preservation
- HTML/XML: Preserves structure, attributes, semantic tags
- Markdown: Keeps formatting, code blocks, links intact
- Video/subtitle files: SRT, VTT, SUB formats with timing preservation
- JSON/YAML: Translates values only, preserves keys and structure
- Office documents: DOCX, XLSX, PPTX with layout preservation
Example:
CODEBLOCK7
5. Quality Assurance & Validation
- - Back-translation: Reverse-translate to source language to catch errors
- Tone analysis: Ensures formal/informal register matches target audience
- Terminology consistency: Scans entire project for glossary violations
- Character limit enforcement: Respects UI constraints (buttons, headers, SMS)
- Placeholder preservation: Keeps
{variable}, {{handlebars}}, ${env_vars} intact
Example:
CODEBLOCK8
6. Workflow Automation
- - Batch processing: Translate 500+ files in parallel (respects API rate limits)
- Scheduled jobs: Nightly translations of new content from CMS
- Integration webhooks: Listen for content changes, auto-trigger localization
- Status tracking: Real-time progress for large projects
Example:
Automate WordPress localization:
Trigger: Post published in English
Action: Auto-translate to es, de, fr, ja
Target: WPML plugin custom fields
Notify: /slack #translation-updates
Fallback: Flag for human review if confidence < 85%
Configuration
Environment Variables
CODEBLOCK10
Setup Instructions
Step 1: Get API Keys
- - Google Translate: https://console.cloud.google.com → Enable Translation API
- DeepL: https://www.deepl.com/pro/change-plan → Get API key from account settings
Step 2: Prepare Translation Memory (Optional)
CODEBLOCK11
Step 3: Create Glossaries
CODEBLOCK12
Step 4: Test Connection
claw test-skill translatepro --api-key $GOOGLE_TRANSLATE_API_KEY
# Output: ✓ Google Translate API connected
# Output: ✓ DeepL API connected
# Output: ✓ Translation Memory loaded (1,247 entries)
Example Outputs
Example 1: Product Description Translation
Input (English):
CODEBLOCK14
Output (Spanish):
CODEBLOCK15
Output (Japanese):
CODEBLOCK16
Output (German):
Unsere Premium-Wireless-Ohrhörer bieten aktive Geräuschunterdrückung,
8 Stunden Akkulaufzeit und nahtlose Bluetooth 5.3-Konnektivität.
Ideal für Pendler, Sportler und Musikbegeisterte.
Example 2: Website Localization Report
CODEBLOCK18
Example 3: Video Subtitle Localization
Input SRT (English):
CODEBLOCK19
Output SRT (Spanish):
CODEBLOCK20
Output SRT (Mandarin Chinese):
1
00:00:15,000 --> 00:00:20,000
欢迎来到我们的云架构高级教程系列。
2
00:00:20,000 --> 00:00:25,000
今天,我们将探索可扩展性模式和最佳实践。
Tips & Best Practices
1. Leverage Translation Memory for Consistency
- - Build incrementally: Every translation strengthens your organizational memory
- Regular exports: Backup TMs quarterly; share across teams
- Fuzzy matching workflow: Set thresholds (75%+ = auto-accept, 50-74% = review, <50% = new translation)
- Metric: Mature TMs reduce translation costs by 40-60%
2. Create Comprehensive Glossaries
- - Start with high-value terms: Brand names, product names, acronyms, domain-specific vocabulary
- Document context: "API" in different contexts may need different translations
- Version control: Track glossary changes; enforce across all language pairs
- Collaborative review: Have native speakers validate glossaries before enforcement
3. Choose the Right Engine Per Task
- - DeepL: Premium quality for marketing copy, customer-facing content, creative writing
- Google Translate: Fast, cost-effective for technical docs, high volume, less nuanced content
- Hybrid strategy: DeepL for first 20% of content (highest ROI), Google for remainder
4. Optimize for Target Audiences
- - Tone matching: Use "formal" register for corporate/legal content, "casual" for social media
- Regional variants: Spanish differs significantly between Spain and Latin America
- Cultural adaptation: Dates, currencies, measurements, idioms need localization beyond translation
- Test with native speakers: Budget 10-15% of translation time for native review
5. Automate Repetitive Tasks
- - Webhook triggers: Connect to WordPress, Contentful, GitHub to auto-translate on publish
- Scheduled jobs: Nightly batch translations for content-heavy platforms
- API integration: Custom scripts for your specific CMS or workflow
- Parallel processing: Translate to 10+ languages simultaneously (respects rate limits)
6. Quality Assurance Workflow
- 1. Machine translation: Initial pass (DeepL or Google)
- TM/Glossary validation: Enforce terminology consistency
- Back-translation check: Alert if variance > 15%
- Native review: 10-20% sampling for critical content (legal, medical, marketing)
- User testing: Real-world validation in target markets (optional, high-ROI)
7. Cost Optimization
- - Cache translations: Reuse TM matches to reduce API calls by 50-80%
- Batch processing: Translate in off-peak hours for better rate limits
- Language prioritization: Translate to highest-value markets first (ROI-driven)
- Character counting: Monitor usage to stay within budget; set alerts at 80% threshold
Safety & Guardrails
What TranslatePro Will NOT Do
- 1. Sensitive Data Handling
-
Will not: Translate or store PII (emails, phone numbers, SSNs, credit cards)
-
Will not: Process without encryption for PHI (health records) or PCI (payment data)
概述
TranslatePro 是一款专业级翻译与本地化技能,可在100多种语言间自动完成内容适配,同时保持品牌调性、文化语境和技术准确性。该技能专为内容创作者、全球营销人员、软件团队和企业打造,通过集成翻译记忆系统消除人工翻译瓶颈,确保跨语言对的一致性。
TranslatePro 的重要性
- - 一夜实现全球扩展:将英文内容转换为50多种语言,从数周缩短至数分钟
- 保留调性与语境:在所有翻译中保持语气、术语和品牌一致性
- 即插即用集成:支持WordPress、Contentful、Slack、GitHub、Google Workspace及REST API
- 成本高效:混合策略利用缓存翻译记忆+AI,周转速度提升60-70%
- 质量保障:内置术语验证、词汇表强制执行和回译校验
真实应用场景
- 1. 电商平台:自动翻译产品描述、定价、配送详情和客户评论
- SaaS本地化:适配20多个市场的UI字符串、帮助文档和营销文案
- 内容营销:将博客文章、白皮书和视频字幕重新用于目标语言
- 法律/合规:为受监管行业(医疗、金融科技、政府)维护词汇表
快速入门
立即尝试以下提示:
提示1:带语言检测的基础翻译
将以下英文产品描述翻译成西班牙语、法语和德语:
我们的高级降噪耳机提供录音室级音质,续航30小时。
适合专业人士和发烧友。
西班牙语使用正式语气(usted)。品牌名称保持不变。
提示2:文化适配本地化
将以下邮件主题行本地化为日语、阿拉伯语和葡萄牙语市场:
五折优惠 - 黑色星期五促销今晚结束!
调整文化引用、数字格式和时区。
保持紧迫感,但尊重当地习俗。
提示3:翻译记忆+词汇表一致性
使用以下内容将技术文档翻译成德语:
- - 翻译记忆:existing-glossary.tmx
- 强制术语:Dashboard → Instrumententafel,API → API(保持不变)
源文本:
通过仪表盘设置面板访问API,配置Webhook URL。
提示4:批量内容本地化
将整个产品网站本地化为简体中文、泰语和韩语:
- - 输入文件夹:/content/pages/
- 文件类型:.md、.html
- 保留HTML结构和属性
- 输出格式:/localized/{language_code}/
- 所有语言使用专业(正式)语体
功能
1. 多引擎翻译
- - Google翻译API:100多种语言,实时更新,成本效益高
- DeepL API:29种语言对的高级神经翻译,质量最高
- 智能回退:高风险内容路由至DeepL,批量内容路由至Google
- 自定义引擎选择:在配置中指定每种语言偏好
使用示例:
使用DeepL翻译成法语(医疗精度):
患者表现出急性心肌梗死的迹象。
引擎:deepl
领域:医疗
2. 翻译记忆(TM)集成
- - TMX/XLIFF格式支持:从Trados、memoQ、SDL导入现有翻译记忆
- 缓存术语:复用过往翻译,确保术语一致性
- 模糊匹配:利用TM中75%以上的匹配,实现更快、更便宜的周转
- 增量构建TM:每次翻译都丰富组织记忆
示例:
从CAT工具加载TM:
来源:/translations/memories/global-brand.tmx
语言对:en-es、en-de、en-fr、en-ja
匹配阈值:75%
自动接受模糊匹配:是
3. 词汇表与术语管理
- - 强制执行自定义词汇表:防止专有术语、品牌名称、缩写的误译
- 多层次术语:品牌术语、产品名称、领域特定词汇
- 自动验证:标记词汇表偏差并附置信度评分
- 双向词汇表:支持源→目标及上下文感知定义
示例:
应用企业词汇表:
- - Platform → Plataforma(而非Plataforma de software)
- Cloud sync → Sincronización en la nube(而非Sincronización de nube)
- Bandwidth → Ancho de banda(仅技术语境)
语言对:en-es
严格度:高(要求80%匹配)
4. 内容类型特定翻译
- - 纯文本:简单快速,不保留格式
- HTML/XML:保留结构、属性、语义标签
- Markdown:保留格式、代码块、链接
- 视频/字幕文件:SRT、VTT、SUB格式,保留时间轴
- JSON/YAML:仅翻译值,保留键和结构
- 办公文档:DOCX、XLSX、PPTX,保留布局
示例:
将Markdown翻译成西班牙语:
输入:/blog/kubernetes-guide.md
保留:代码块、YAML、链接、图片
输出格式:/blog/es/kubernetes-guide.md
5. 质量保障与验证
- - 回译:反向翻译至源语言以发现错误
- 语气分析:确保正式/非正式语体匹配目标受众
- 术语一致性:扫描整个项目,检查词汇表违规
- 字符限制执行:尊重UI约束(按钮、标题、短信)
- 占位符保留:保持{variable}、{{handlebars}}、${env_vars}不变
示例:
QA检查西班牙语翻译:
- - 回译至英语(若差异>15%则告警)
- 检查:所有{variables}已保留
- 检查:字符数≤120(短信限制)
- 检查:正式语体(tú vs. usted)
- 报告:偏差及严重程度评分
6. 工作流自动化
- - 批量处理:并行翻译500+文件(尊重API速率限制)
- 定时任务:每晚自动翻译CMS新增内容
- 集成Webhook:监听内容变更,自动触发本地化
- 状态跟踪:大型项目实时进度
示例:
自动化WordPress本地化:
触发:英文文章发布
操作:自动翻译为es、de、fr、ja
目标:WPML插件自定义字段
通知:/slack #translation-updates
回退:若置信度<85%,标记人工审核
配置
环境变量
bash
必需
export GOOGLE
TRANSLATEAPI_KEY=your-google-api-key
export DEEPL
APIKEY=your-deepl-api-key
可选
export TRANSLATION
MEMORYPATH=/path/to/translation-memories/
export GLOSSARY_PATH=/path/to/glossaries/
export OUTPUT
LANGUAGECODES=es,de,fr,ja,pt,zh
export DEFAULT_ENGINE=deepl # 或 google
export QA
BACKTRANSLATION=true
export CONFIDENCE_THRESHOLD=0.85
export SLACK
WEBHOOKURL=https://hooks.slack.com/services/YOUR/WEBHOOK/URL
export RATE
LIMITREQUESTS
PERMINUTE=100
设置说明
步骤1:获取API密钥
- - Google翻译:https://console.cloud.google.com → 启用翻译API
- DeepL:https://www.deepl.com/pro/change-plan → 从账户设置获取API密钥
步骤2:准备翻译记忆(可选)
bash
从现有CAT工具(Trados、memoQ、SDL)导出
保存为TMX或XLIFF格式
mkdir -p ~/.translatepro/memories/
cp your-glossary.tmx ~/.translatepro/memories/
步骤3:创建词汇表
json
{
glossaries: [
{
name: brand-terms,
language_pair: en-es,
terms: {
Dashboard: Panel de Control,
API: API,
Webhook: Webhook
}
}
]
}
步骤4:测试连接
bash
claw test-skill translatepro --api-key $GOOGLETRANSLATEAPI_KEY
输出:✓ Google翻译API已连接
输出:✓ DeepL API已连接
输出:✓ 翻译记忆已加载(1,247条)
示例输出
示例1:产品描述翻译
输入(英文):
我们的高级无线耳塞具备主动降噪功能,
8小时电池续航,以及无缝蓝牙5.3连接。
适合通勤者、运动员和音乐爱好者。
输出(西班牙语):
Nuestros aur