Blog Translate, SEO-Optimized Blog Translation
Translates an existing blog post into one or more target languages. Unlike
generic translation, this skill produces SEO-optimized, publication-ready
content with localized keywords, meta tags, and culturally correct
formatting.
Adapted from claude-blog-multilingual by Chris Mueller (Pro Hub Challenge,
March 2026). Original: https://github.com/Chriss54/multilingual-int
Key References
Load on demand:
references/translation-rules.md, format preservation, number/date/currency
formats per locale, quote handling, quality criteria.
references/cultural-adaptation.md, cultural profiles per locale (DACH,
Francophone, Hispanic, Japanese, custom). This file is shared with
blog-localize (do not duplicate).
Workflow
Phase 1: Input Parsing
- Read the source file (markdown, MDX, or HTML) only after resolving it
against the project root/current working directory. Reject symlinked paths,
traversal outside the root, files over 10 MB, and binary files.
- Auto-detect source language. Order of preference:
- Frontmatter
lang field.
- HTML
lang attribute.
- Content analysis (script, common stop words).
- Parse target languages from
--to as comma-separated Google-compatible
hreflang tags (de, fr, es-MX, ja, pt-BR, zh-Hant).
If --to is missing, ask the user once: "Which languages should I
translate to? Provide hreflang tags such as de, fr, es-MX, ja, pt-BR."
- Normalize every code with the shared multilingual locale rules used by
blog-multilingual, blog-localize, and blog-locale-audit: ISO 639-1
language in lowercase, optional ISO 15924 script in title case, optional
ISO 3166-1 Alpha-2 region in uppercase. Reject invalid codes with a
suggestion (jp becomes "Did you mean ja for Japanese?"). Require a
region or explicit neutral mode for ambiguous language-only targets such as
es, pt, and zh. If a target equals the normalized source language,
skip it with a notice.
Phase 2: Content Analysis
Extract the translatable surface:
- Frontmatter:
title, description, tags, author (only when
translatable, e.g. role labels, not personal names).
- All headings (H1, H2, H3).
- Body paragraphs.
- Image
alt text and <figcaption> content.
- Chart
<text> and <tspan> content; preserve every SVG attribute (x,
y, font-size, fill, transform).
- FAQ questions and answers.
- Evidence-backed explanation text.
- Key Takeaways or summary box.
- CTA text.
- Internal-link zone anchor text.
Preserve unchanged:
- Markdown and HTML structure, tags, attributes.
- Image URLs, link URLs, frontmatter keys.
- Executable code fences and inline code. Translate comments only outside
executable code, or when the user explicitly asks for localized tutorial
comments.
- Internal-link zone markers (
[INTERNAL-LINK: ...]).
- Source organization names in citations (Gartner, McKinsey, etc.).
- Person names.
- Schema JSON-LD blocks (translate user-facing content strings only; never
translate Person, Organization, or Brand names, URLs, IDs,
@id, or
sameAs).
Identify the primary and secondary keywords for Phase 3.
Phase 3: Keyword Localization
For each target language:
- Decide whether the source keyword is the established term in the target
market. If yes (e.g., "Content Marketing" stays in German), keep it.
- If a local equivalent has real search behavior, swap to it.
- Apply the same logic to secondary keywords.
- Record the mapping. The translator agent uses it to update title, meta
description, and H2 headings consistently.
Phase 4: Translation
Spawn the blog-translator agent (via Task) for each target language with:
- The source content.
- The keyword localization map from Phase 3.
- The target language code.
- Pointer to
references/translation-rules.md.
- Instruction to limit this phase to language, register, natural topical
coverage, and formatting. Reserve brand, legal, statistic, and cultural
substitutions for
blog-localize.
Run agents in parallel when translating into multiple languages.
The agent returns the fully translated post in the same format as the input.
Phase 5: Post-Processing
For each translated version:
- Add or update locale frontmatter:
lang: "de"
translatedFrom: "en"
translatedDate: "YYYY-MM-DD"
slug: "wie-man-ki-slop-vermeidet"
- Verify structural integrity:
- Same number of H2 and H3 sections as the original.
- All images present with translated alt text.
- All SVG charts present with translated text labels (length-adjusted:
DE +30%, FR +15%, JA -20%, others see
references/translation-rules.md).
- FAQ count matches.
- Evidence-backed explanations from the source remain intact where present.
- Save translated files:
translations/
{lang}/{localized-slug}.{ext}
When invoked from blog-multilingual, save into
multilingual/{lang}/{localized-slug}.{ext} instead.
Before writing, slugify {localized-slug} to lowercase ASCII with only
a-z, 0-9, and hyphens, rejecting empty or reserved names. Create the
language directory from the normalized hreflang code only. Resolve the
final path and require it to stay inside the intended output root; reject
symlinked output paths.
Phase 6: Translation-Quality Guardrails
Scan the output for machine-translation artifacts before reporting done:
- Literal idioms (English idioms transliterated, not adapted).
- Unnatural word order (SOV translated as SVO into a non-SVO language, or
the reverse).
- Mixed-language sentences (other than established loanwords).
- Number, date, or currency strings still in source format.
- Frontmatter strings still in the source language.
Flag every issue inline (file path, line number, fix suggestion). The
translator agent should re-pass any flagged passage before delivery.
Phase 7: Delivery
## Translation complete: [Original title]
### Source
- Language: [source]
- File: [source path]
### Translations
| Language | File | Keywords adapted | Status |
|----------|------|------------------|--------|
| de | translations/de/{slug}.md | [N] | ok |
| fr | translations/fr/{slug}.md | [N] | ok |
### Quality checks
- Structural integrity: pass / fail per language
- Meta tags localized: pass / fail per language
- Numbers, dates, currencies formatted per locale: pass / fail
- Keywords localized: [N] keywords adapted
- Machine-translation artifacts flagged: [N] (see notes above)
### Next steps
- Run `/blog localize <file> --locale <code>` for cultural deep-adaptation.
- Run `/blog locale-audit translations/` to verify completeness.
- Use `/blog multilingual` to combine write, translate, localize, hreflang
in one command.
Error Handling
| Scenario |
Action |
| Unsupported language code |
Suggest the correct Google-compatible hreflang code |
| Source equals a target |
Skip with "Source is already in [lang]" |
| File not found |
Report error with suggested path |
| Translator agent timeout |
Retry once, then report partial results |
| Binary or non-text file |
Report error, suggest correct file |
Cross-References
- Next step (cultural depth):
/blog localize <file> --locale <code>
- QA sweep across all language versions:
/blog locale-audit <directory>
- One-command pipeline:
/blog multilingual <topic> --languages <codes>
1---2name: blog-translate3description: Translate existing blog posts into one or more target languages with SEO-optimized localization. Produces native-quality translations that preserve markdown structure, frontmatter, schema JSON-LD, image and chart embeds, and evidence-backed explanations. Localizes keywords, meta tags, numbers, dates, currencies, and quote styles per locale. Flags machine-translation artifacts for review. Run BEFORE blog-localize: this handles language conversion; localize handles cultural adaptation after translation completes. Use when user says "translate blog", "blog translate", "uebersetzen", "traduire", "traducir", "translate post", "blog auf Deutsch", "blog en espanol".4license: MIT5---6
7# Blog Translate, SEO-Optimized Blog Translation
8
9Translates an existing blog post into one or more target languages. Unlike
10generic translation, this skill produces SEO-optimized, publication-ready
11content with localized keywords, meta tags, and culturally correct
12formatting.
13
14> Adapted from `claude-blog-multilingual` by Chris Mueller (Pro Hub Challenge,
15> March 2026). Original: https://github.com/Chriss54/multilingual-int
16
17## Key References
18
19Load on demand:
20
21- `references/translation-rules.md`, format preservation, number/date/currency
22 formats per locale, quote handling, quality criteria.
23- `references/cultural-adaptation.md`, cultural profiles per locale (DACH,
24 Francophone, Hispanic, Japanese, custom). This file is shared with
25 `blog-localize` (do not duplicate).
26
27## Workflow
28
29### Phase 1: Input Parsing
30
311. Read the source file (markdown, MDX, or HTML) only after resolving it
32 against the project root/current working directory. Reject symlinked paths,
33 traversal outside the root, files over 10 MB, and binary files.
342. Auto-detect source language. Order of preference:
35 - Frontmatter `lang` field.
36 - HTML `lang` attribute.
37 - Content analysis (script, common stop words).
383. Parse target languages from `--to` as comma-separated Google-compatible
39 hreflang tags (`de`, `fr`, `es-MX`, `ja`, `pt-BR`, `zh-Hant`).
40 If `--to` is missing, ask the user once: "Which languages should I
41 translate to? Provide hreflang tags such as de, fr, es-MX, ja, pt-BR."
424. Normalize every code with the shared multilingual locale rules used by
43 `blog-multilingual`, `blog-localize`, and `blog-locale-audit`: ISO 639-1
44 language in lowercase, optional ISO 15924 script in title case, optional
45 ISO 3166-1 Alpha-2 region in uppercase. Reject invalid codes with a
46 suggestion (`jp` becomes "Did you mean `ja` for Japanese?"). Require a
47 region or explicit neutral mode for ambiguous language-only targets such as
48 `es`, `pt`, and `zh`. If a target equals the normalized source language,
49 skip it with a notice.
50
51### Phase 2: Content Analysis
52
53Extract the translatable surface:
54
55- Frontmatter: `title`, `description`, `tags`, `author` (only when
56 translatable, e.g. role labels, not personal names).
57- All headings (H1, H2, H3).
58- Body paragraphs.
59- Image `alt` text and `<figcaption>` content.
60- Chart `<text>` and `<tspan>` content; preserve every SVG attribute (`x`,
61 `y`, `font-size`, `fill`, `transform`).
62- FAQ questions and answers.
63- Evidence-backed explanation text.
64- Key Takeaways or summary box.
65- CTA text.
66- Internal-link zone anchor text.
67
68Preserve unchanged:
69
70- Markdown and HTML structure, tags, attributes.
71- Image URLs, link URLs, frontmatter keys.
72- Executable code fences and inline code. Translate comments only outside
73 executable code, or when the user explicitly asks for localized tutorial
74 comments.
75- Internal-link zone markers (`[INTERNAL-LINK: ...]`).
76- Source organization names in citations (Gartner, McKinsey, etc.).
77- Person names.
78- Schema JSON-LD blocks (translate user-facing content strings only; never
79 translate Person, Organization, or Brand names, URLs, IDs, `@id`, or
80 `sameAs`).
81
82Identify the primary and secondary keywords for Phase 3.
83
84### Phase 3: Keyword Localization
85
86For each target language:
87
881. Decide whether the source keyword is the established term in the target
89 market. If yes (e.g., "Content Marketing" stays in German), keep it.
902. If a local equivalent has real search behavior, swap to it.
913. Apply the same logic to secondary keywords.
924. Record the mapping. The translator agent uses it to update title, meta
93 description, and H2 headings consistently.
94
95### Phase 4: Translation
96
97Spawn the `blog-translator` agent (via Task) for each target language with:
98
99- The source content.
100- The keyword localization map from Phase 3.
101- The target language code.
102- Pointer to `references/translation-rules.md`.
103- Instruction to limit this phase to language, register, natural topical
104 coverage, and formatting. Reserve brand, legal, statistic, and cultural
105 substitutions for `blog-localize`.
106
107Run agents in parallel when translating into multiple languages.
108
109The agent returns the fully translated post in the same format as the input.
110
111### Phase 5: Post-Processing
112
113For each translated version:
114
1151. Add or update locale frontmatter:
116 ```yaml
117 lang: "de"
118 translatedFrom: "en"
119 translatedDate: "YYYY-MM-DD"
120 slug: "wie-man-ki-slop-vermeidet"
121 ```
1222. Verify structural integrity:
123 - Same number of H2 and H3 sections as the original.
124 - All images present with translated alt text.
125 - All SVG charts present with translated text labels (length-adjusted:
126 DE +30%, FR +15%, JA -20%, others see `references/translation-rules.md`).
127 - FAQ count matches.
128 - Evidence-backed explanations from the source remain intact where present.
1293. Save translated files:
130 ```
131 translations/
132 {lang}/{localized-slug}.{ext}
133 ```
134 When invoked from `blog-multilingual`, save into
135 `multilingual/{lang}/{localized-slug}.{ext}` instead.
136 Before writing, slugify `{localized-slug}` to lowercase ASCII with only
137 `a-z`, `0-9`, and hyphens, rejecting empty or reserved names. Create the
138 language directory from the normalized hreflang code only. Resolve the
139 final path and require it to stay inside the intended output root; reject
140 symlinked output paths.
141
142### Phase 6: Translation-Quality Guardrails
143
144Scan the output for machine-translation artifacts before reporting done:
145
146- Literal idioms (English idioms transliterated, not adapted).
147- Unnatural word order (SOV translated as SVO into a non-SVO language, or
148 the reverse).
149- Mixed-language sentences (other than established loanwords).
150- Number, date, or currency strings still in source format.
151- Frontmatter strings still in the source language.
152
153Flag every issue inline (file path, line number, fix suggestion). The
154translator agent should re-pass any flagged passage before delivery.
155
156### Phase 7: Delivery
157
158```
159## Translation complete: [Original title]
160
161### Source
162- Language: [source]
163- File: [source path]
164
165### Translations
166| Language | File | Keywords adapted | Status |
167|----------|------|------------------|--------|
168| de | translations/de/{slug}.md | [N] | ok |
169| fr | translations/fr/{slug}.md | [N] | ok |
170
171### Quality checks
172- Structural integrity: pass / fail per language
173- Meta tags localized: pass / fail per language
174- Numbers, dates, currencies formatted per locale: pass / fail
175- Keywords localized: [N] keywords adapted
176- Machine-translation artifacts flagged: [N] (see notes above)
177
178### Next steps
179- Run `/blog localize <file> --locale <code>` for cultural deep-adaptation.
180- Run `/blog locale-audit translations/` to verify completeness.
181- Use `/blog multilingual` to combine write, translate, localize, hreflang
182 in one command.
183```
184
185## Error Handling
186
187| Scenario | Action |
188|----------|--------|
189| Unsupported language code | Suggest the correct Google-compatible hreflang code |
190| Source equals a target | Skip with "Source is already in [lang]" |
191| File not found | Report error with suggested path |
192| Translator agent timeout | Retry once, then report partial results |
193| Binary or non-text file | Report error, suggest correct file |
194
195## Cross-References
196
197- Next step (cultural depth): `/blog localize <file> --locale <code>`
198- QA sweep across all language versions: `/blog locale-audit <directory>`
199- One-command pipeline: `/blog multilingual <topic> --languages <codes>`