All jobs / Frontend / web developer / Testing
Frontend / web developer interview question · 5+ years
How do you catch layout breakage before you translate into German and Hebrew?
The strongest answer
Pseudo-localization plus string-length budgets — no concatenated sentences, every UI string extracted
Why it works
Pseudo-loc expands, wraps, and injects accents/RTL markers so layout fails in CI instead of in market.
What a good answer covers
- Break layout in a fake locale first.
- Extract every string.
- Run pseudo-loc in CI.
- Forbid concatenated sentences.
Answers that fall short
- Close, but not the strongest: Ship English and wait for bugs
Waiting for real translators is late and expensive. - Weak: Run the JSON through a machine translator once
A one-shot machine pass misses concatenation and plural bugs. - Red flag: Rasterize every string as an image per locale
Images of text kill i18n, a11y, and search.
Who gets asked this
More Testing questions
- What is the difference between a unit test, a component test and an end-to-end test on the frontend, and…
- How do you assert a login button in React Testing Library?
- How do you test a search box that debounces input by 300 ms, in Jest or Vitest, without slowing the suite…
- A test passes when run alone and fails when the whole file runs, and the failing test changes when you…
- A Playwright or Cypress suite fails about one run in five on CI, in different places. The tests are full of…
- After a bad release, management asks you to enforce 90% code coverage on the frontend repository as a merge…