translate-content
Translate marketing content. Use when: localizing with brand voice preservation, quality scoring, or transcreation.
What this skill does
# /digital-marketing-pro:translate-content
## Purpose
Translate marketing content with intelligent service routing and quality assurance. This command automatically selects the best translation service based on the target language — Sarvam AI for Indic languages (Hindi, Tamil, Bengali, etc.), DeepL for European languages (German, French, Spanish, etc.), Google Cloud Translation for broad coverage, and Lara Translate for specialized needs — preserving brand voice, formatting, and key terminology throughout.
Beyond literal translation, this command analyzes content for elements that require transcreation rather than translation: idioms, wordplay, humor, emotional calls-to-action, and cultural references. When these are detected (or when the user explicitly requests transcreation), it produces multiple creative options with intent-preservation scoring, ensuring the emotional impact and marketing effectiveness carry across languages. Every translation is quality-scored and brand-voice-checked before delivery.
## Input Required
The user must provide (or will be prompted for):
- **Content to translate**: Text inline, file path, or pasted content block. Can be a single piece (headline, email, ad copy) or a structured document (landing page, email template with sections)
- **Target language(s)**: One or more target languages — accepts language codes (hi, de, ja, fr-CA, pt-BR) or plain names (Hindi, German, Japanese, Canadian French, Brazilian Portuguese). Multiple targets can be specified for batch translation
- **Source language**: Optional — the language of the original content. Auto-detected via language-router.py if omitted
- **Transcreation flag**: Optional — set to `true` to force transcreation approach on all content, regardless of content analysis. Useful when the user knows the content is highly creative or culturally sensitive
- **Do-not-translate terms**: Optional — specific terms, product names, or brand elements that must remain in the source language. Overrides any do-not-translate list already defined in the brand profile
- **Formality level**: Optional — `formal` or `informal`. Supported by DeepL for languages with formal/informal registers (German Sie/du, French vous/tu, etc.). If omitted, defaults to brand profile preference or formal
- **Glossary entries**: Optional — term pairs (source: target) to enforce specific translations for key terminology. Supplements any brand-level glossary
## Process
1. **Load brand context**: Read `~/.claude-marketing/brands/_active-brand.json` for the active slug, then load `~/.claude-marketing/brands/{slug}/profile.json`. Extract language configuration — `do_not_translate` term list, `translation_preferences` (preferred services per language pair, formality defaults, glossary), and `locale_formatting` rules (date formats, number separators, currency symbols). Load compliance rules for target markets from `skills/context-engine/compliance-rules.md`. Check for guidelines at `~/.claude-marketing/brands/{slug}/guidelines/_manifest.json` — if present, load voice-and-tone rules (these inform brand voice scoring of the translation). Check for agency SOPs at `~/.claude-marketing/sops/`. If no brand exists, ask: "Set up a brand first (/digital-marketing-pro:brand-setup)?" — or proceed with defaults.
2. **Detect source language**: If the source language was not specified, run `python scripts/language-router.py --action detect --text "{content_or_path}"` to identify the source language with confidence score. Report the detected language to the user for confirmation if confidence is below 95%.
3. **Route to optimal translation service**: For each target language, run `python scripts/language-router.py --action route --source "{source_lang}" --target "{target_lang}"` to select the best translation service. The router considers language pair quality, service specialization (Sarvam AI for Indic languages, DeepL for European languages with formality support, Google Cloud for broad coverage), and any brand-level service preferences. Report the selected service to the user.
4. **Analyze content for transcreation needs**: Scan the source content for elements that resist literal translation — idioms and colloquialisms, wordplay or puns, humor and sarcasm, emotional CTAs and slogans, cultural references and analogies, rhyme or rhythm patterns, double meanings. If the transcreation flag is set or the content contains significant transcreation-requiring elements, prepare a transcreation brief using the methodology defined in `skills/context-engine/transcreation-framework.md`. For each flagged element, document the original intent, emotional tone, and desired audience response to guide creative adaptation.
5. **Execute translation**: Call the routed translation MCP server for each target language:
- For DeepL: Use the `deepl` MCP server with formality parameter, glossary entries, and tag handling for HTML/XML preservation
- For Sarvam AI: Use the `sarvam-ai` MCP server with script and dialect preferences for Indic languages
- For Google Cloud: Use the `google-cloud-translation` MCP server with model selection (NMT) and glossary
- For Lara Translate: Use the `lara-translate` MCP server with domain-specific model selection
- Pass do-not-translate terms (merged from brand profile and user-provided list), formality settings, glossary entries, and any formatting preservation flags (HTML tags, placeholders like {{first_name}}, Markdown syntax)
6. **Score translation quality**: Run `python scripts/language-router.py --action score --source "{source}" --target "{target}" --original "{source_content}" --translated "{translated_content}"` to assess quality across dimensions:
- Length ratio (translated vs. source — flags unusual expansion or compression)
- Formatting preservation (HTML tags, Markdown, placeholders intact)
- Key term consistency (do-not-translate terms respected, glossary terms applied correctly)
- Placeholder integrity (all dynamic variables like {{name}}, {price} preserved)
- Completeness (no missing sentences or paragraphs)
7. **Handle quality issues**: If the translation quality score is below 85, identify specific issues from the scoring breakdown. Attempt targeted corrections — re-translate problematic segments, fix formatting breaks, restore missing placeholders. Re-score after corrections. If quality remains below 85, flag the specific issues for human review.
8. **Execute transcreation** (if applicable): For content flagged for transcreation or when the transcreation flag is set, produce 2-3 creative adaptation options per flagged element. Each option includes:
- The creative adaptation in the target language
- Back-translation to English for review
- Intent-preservation score (how well the original marketing intent carries through)
- Cultural fit notes (why this adaptation works for the target market)
- Tone alignment assessment (formal/playful/urgent matches the original tone)
9. **Run brand voice check**: Execute `python scripts/brand-voice-scorer.py --brand {slug} --text "{translated_content}"` to assess whether the translated content maintains brand voice characteristics. Flag any voice drift with specific examples and suggestions.
10. **Present translated content with quality metrics**: Deliver the final translated content alongside all quality data, formatted for easy review and approval.
## Output
A structured translation delivery containing:
- **Translated content**: The final translated text for each target language, preserving original formatting (HTML, Markdown, placeholders)
- **Translation quality score**: Overall score (0-100) with per-dimension breakdown — length ratio, formatting preservation, key term consistency, placeholder integrity, completeness
- **Service used**: Which translation service handled this language pair and why it was selected
- **Source language**: Detected or confirmed source language with confidence level
- **Do-not-transRelated in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".