← Blog
Engineering

Designing Bilingual Technical Case Studies Without Translation Drift

Translating finished prose after launch turns English and Chinese sites into two diverging stories. How Zod schemas, parallel EN/ZH fields, and automated symmetry gates prevent drift.

Date
November 24, 2026
Reading time
2 min read
Author
Lewis Dong
Topics
Engineering · Bilingual UX

Most bilingual portfolios treat the second language as an afterthought: ship English pages first, batch-translate copy weeks later, and hope metrics, dates, and honest caveats never go out of sync. Within two edits, the Chinese page promises something the English page already retracted.

Structural parity enforced at schema level#

In this portfolio, bilingual parity lives inside the data contract rather than in manual spreadsheets. (A smaller version of the same idea is in Lamplight Nook, where to-do items follow the language the person writes in.)

  1. Co-located LocalizedString fields: Every case study decision (CaseRecordSchema), deep interaction module (CaseModulesRecordSchema), and Pattern Atlas entry (InteractionPatternSchema) stores { en, zh } side-by-side inside the same TypeScript object.
  2. Server-only modular loading: Large bilingual datasets under src/data/cases/modules/ and src/data/patterns/ stay strictly on the server while src/messages/{en,zh}.json carries only lightweight UI chrome labels — keeping client hydration bundles small.
  3. Automated Vitest & Playwright parity gates: src/lib/__tests__/blog.test.ts fails CI if any essay slug or date diverges across locales, if an English title leaks Han characters, or if a Chinese essay falls back to untranslated English. Meanwhile e2e/crawler.spec.ts fails if any /zh/blog/ internal link accidentally drops its /zh/ prefix.

Writing the nuance natively, never machine-translating idioms#

Because English technical brevity and Chinese structural phrasing follow different rhythms, keeping { en, zh } adjacent lets both versions stay natural while pointing at the same evidence. The tests above check slugs, dates and titles, not the numbers in the body, so keeping those identical still depends on review: an audit in November 2026 found several essays where the English and Chinese numbers disagreed, and they were corrected. See the cross-case evidence index in the AI Lab.

Share:

Related Articles

Designing Bilingual Technical Case Studies Without Translation Drift | Lewis Dong