Martijn Hoogeveen
01 Software · SW-05

AI Localisation Pipeline

Translates the whole storefront (theme, catalogue and product data) into nine languages using parallel LLM agents, with validation that never lets broken markup or leftover English through.

Ticket
SW-05
Type
Feature · i18n
Status
In use
Owner
Martijn Hoogeveen
Started
Oct 2026

01Problem statement

The storefront was English-first while traffic was international. Plain API translation broke HTML and Liquid, re-translated unchanged text, and left English behind.

02Goals

In scope

  • Theme, catalogue and metadata in 9 languages
  • Translate only what's missing or changed
  • Never break markup

Out of scope

  • Translating customer review quotes, which stay verbatim

03Acceptance criteria

  • HTML / Liquid structure identical after translation
  • No English left in target languages (QA pass)
  • Protected settings never translated
  • Term list respected, e.g. 'Carbon' stays 'Carbon'
  • Registered through the API with 0 invalid values

04Design

  • Export de-duplicated strings into job files
  • 38 job groups fanned out to parallel sub-agents with shared instructions and a term list
  • Agents self-check; import validates every value before registering
  • QA on the live storefront
PARALLEL AGENTS ×38Exportdedupe stringsJobs38 groupsagent ruagent koagent …ValidateHTML · Liquid · termsRegister0 invalid12,035 values · 9 locales · storefront QA after register
Fig. 1 · System architecture
Scope
Theme, catalogue, metafields, metaobjects
Locales
en · de · fr · es · it · nl · ja · ko · ru
Volume
12,035 values in one pass (ru + ko)
Fan-out
38 job groups to parallel agents
Validation
HTML / Liquid integrity, leftover English, protected keys, term list
Result
0 invalid on register

05Key decisions

DecisionAlternative consideredWhy
De-duplicate before exportTranslate per resourcePay once per unique string
Verify on the storefrontVerify through the APIThe API read can return the same value for every locale
Parallel sub-agentsOne long sequential runSmaller context per job and much faster

06Failure modes

RiskMitigation
Translating a functional setting breaks the delivery estimateA protected-key skip list
The model leaves English part names in titlesA regex clean-up pass fixed ~450 titles

07Testing & rollout

Testing

  • Validation on import
  • Storefront crawl of every locale

Rollout

  • Registered unpublished, checked, then published locale by locale

08Outcome

  • 12,035 values registered for Russian and Korean with 0 invalid
  • 9 languages live

09Follow-ups

  • Per-locale SEO checks

Labels

  • Python
  • Claude sub-agents
  • Shopify Translations API
  • LLM fan-out
  • Sub-agents
  • Batching
  • Schema validation
  • Evals
  • i18n / l10n