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.
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
- 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
| Decision | Alternative considered | Why |
|---|---|---|
| De-duplicate before export | Translate per resource | Pay once per unique string |
| Verify on the storefront | Verify through the API | The API read can return the same value for every locale |
| Parallel sub-agents | One long sequential run | Smaller context per job and much faster |
06Failure modes
| Risk | Mitigation |
|---|---|
| Translating a functional setting breaks the delivery estimate | A protected-key skip list |
| The model leaves English part names in titles | A 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