算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
blog-localize【设计与创意】Cultural adaptation for translated content. Run AFTER blog-translate completes. Adjusts brand examples, CTAs, legal references, and formality for the target market (German, French, Japanese, Spanish, etc.). Deep cultural adaptation of translated blog posts. Goes beyond translation to swap brand examples, adapt CTAs, substitute legal references, local…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Takes a translated blog post and performs cultural adaptation so the result
feels like it was written for the target market, not translated into it.
This is the layer above blog-translate: it replaces examples, adjusts
tone, swaps references, and localizes the entire reading experience.
Adapted from
claude-blog-multilingualby Chris Mueller (Pro Hub Challenge, March 2026). Original: https://github.com/Chriss54/multilingual-int
../blog-translate/references/cultural-adaptation.md, the shared cultural
profiles file with substitution tables for DACH, Francophone, Hispanic,
Japanese, and a custom template. Do not duplicate this file.blog-translate produces a base translation.blog-translate, blog-multilingual, 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. Accept full codes (de-DE,
fr-CA, es-MX, pt-BR, zh-Hant) and unambiguous plain language codes
(de, fr). Require a region or explicit neutral mode for ambiguous
language-only targets such as es, pt, and zh.../blog-translate/references/cultural-adaptation.md.
Scan for elements that signal foreign origin:
| Element | What to look for |
|---|---|
| Brand examples | US or UK brands with no relevance locally |
| Statistics sources | US-only studies and surveys |
| CTAs | American-style aggressive calls-to-action |
| Idioms | Literally translated English expressions |
| Legal references | Foreign laws (CCPA, FTC) where local law applies (DSGVO, RGPD) |
| Cultural references | Foreign holidays, events, customs |
| Currency and pricing | USD without conversion or context |
| Tone | Too casual or too formal for the target market |
| Address form | Inconsistent Sie/du, tu/vous, formal/informal |
Output an audit report listing every target with severity (critical, recommended, optional).
Swap foreign examples for local equivalents:
https URLs only; reject
javascript:, data:, file:, localhost, loopback, private, link-local,
multicast, and reserved IPs after DNS resolution; disable redirects or
validate the final URL with the same checks; cap redirects, response size,
and request time; log the final URL and access date.Rewrite calls-to-action per the cultural profile:
Profiles in ../blog-translate/references/cultural-adaptation.md provide
substitution tables. Common examples:
| Source (US) | DACH | FR | ES (Spain) | LATAM | JA |
|---|---|---|---|---|---|
| Walmart | MediaMarkt | Carrefour | El Corte Inglés | Walmart MX | Aeon |
| Target | Saturn | Auchan | Hipercor | Liverpool | Ito-Yokado |
| FTC | Bundeskartellamt | DGCCRF | CNMC | PROFECO (MX) | JFTC |
| CCPA | DSGVO | RGPD | RGPD | LFPDPPP (MX), Ley 1581 (CO), Ley 25.326 (AR), LGPD (BR) | APPI |
inLanguage.Save the localized version. Default: write a reviewed copy as
{slug}-localized.{ext}. Only overwrite the translated file when the user
asks for overwrite; before overwriting, create a timestamped backup and
show a diff summary. Resolve every output path inside the project root and
reject traversal, symlinked paths, or writes outside that root.
Present the summary:
## Localization complete: [Title]
### Target locale: [locale-code] ([locale-name])
### Adaptations made
| Type | Count | Examples |
|------|-------|----------|
| Brand examples | [N] | Walmart -> MediaMarkt |
| Statistics | [N] | US survey -> DACH survey |
| CTAs | [N] | "Buy now" -> "Jetzt entdecken" |
| Tone adjustments | [N] | Casual -> Sie |
| Legal references | [N] | CCPA -> DSGVO |
| Cultural references | [N] | Thanksgiving -> Weihnachtsgeschaeft |
### Cultural fit score
- Naturalness: [1-10]
- Market relevance: [1-10]
- Tone match: [1-10]
- Overall: [N]/30
### Remaining recommendations
- [Optional adaptations not applied]
| Scenario | Action |
|---|---|
| No cultural profile for the locale | Build a minimal profile from the custom-locale template, proceed |
| File is not in the expected language | Warn the user, offer to translate first |
| No local statistics available | Keep the original stat with a geographic-scope note |
Locale code ambiguous (e.g., pt) | Ask: "Did you mean pt-BR (Brazil) or pt-PT (Portugal)?" |
/blog translate <file> --to <code>/blog locale-audit <directory>/blog multilingual <topic> --languages <codes>