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.)
- Co-located
LocalizedStringfields: 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. - Server-only modular loading: Large bilingual datasets under
src/data/cases/modules/andsrc/data/patterns/stay strictly on the server whilesrc/messages/{en,zh}.jsoncarries only lightweight UI chrome labels — keeping client hydration bundles small. - Automated Vitest & Playwright parity gates:
src/lib/__tests__/blog.test.tsfails CI if any essay slug ordatediverges across locales, if an English title leaks Han characters, or if a Chinese essay falls back to untranslated English. Meanwhilee2e/crawler.spec.tsfails 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.