Skip to content
tezvyn:
Menu

Manage localized copy across many A/B tests

Source: interviewHardHow cards are made

Summary

localization plus experimentation at scale.

Key points

a keyed versioned string store, a translation workflow with per-locale status, and pooling or hierarchical analysis for small languages.

What's really being asked

It evaluates whether you can architect a translation-management system and reason about statistical validity when per-locale samples are wildly unequal and sometimes tiny.

The full answer

Represent copy as keys mapping to per-locale, versioned strings in a translation-management system. Code references stable keys, never literal text, so variants and locales are data rather than code. The translation workflow tracks each string's state per language, untranslated, machine-translated, human-translated, reviewed, with fallback to a base language when a translation is missing, plus versioning so you can roll back and audit changes. For the experiment layer, assign variants centrally and log the locale on every event. The hard part is statistics: high-traffic languages reach significance quickly, but small locales may never accumulate enough samples for an independent test. Address this by pooling related locales, or better, hierarchical or Bayesian partial-pooling models that share information across languages so a small locale borrows strength from the global effect while still allowing genuine per-locale deviation.

The mistakes people make

Hardcoding translated strings directly into templates. Treating each language as a fully independent test, so rare languages produce noisy results you nonetheless act on. No versioning or fallback for missing translations, so users see broken pages. Ignoring multiple-comparisons inflation across hundreds of concurrent tests.

What usually comes next

How exactly does partial pooling help small samples. How do you handle a missing translation at serve time. How do you control the false-positive rate across hundreds of simultaneous tests. How do you version and safely roll back copy that turned out worse.

A concrete example

A headline test runs in thirty languages. English reaches significance in days, but Finnish has too few visitors to decide alone. A hierarchical model estimates the global lift and shrinks Finnish's noisy estimate toward it, yielding a stable directional read, while English still gets its own confident verdict. Any missing translation falls back to English copy at serve time, so no user ever sees an empty or broken string while the test runs.

Interview question

How should you handle statistical analysis for a low-traffic language that cannot reach significance on its own in a multi-locale A/B test?

  • a.Use hierarchical or pooled analysis that borrows strength across localesCorrect
  • b.Stop testing in that language entirely and guess
  • c.Lower the significance threshold only for that language
  • d.Declare a winner anyway using the raw conversion rate
Why?

Hierarchical or partial-pooling models let a small locale borrow strength from the global effect, giving a stable estimate. Acting on raw rates or arbitrarily lowering the threshold just inflates false positives on noisy data.

Just read this? Test yourself on what you have been reading.

Read the original → nimdzi.com

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles