Translation vendors hand you back a pile of translated strings. Your CI pipeline doesn't know or care whether those strings break your layout, mangle your plural logic, or silently drop a variable. That gap is exactly where most localisation bugs slip into production.

There's a good breakdown of the linguistic vs. functional split in localisation testing over on M21Global's blog. It covers what a native-speaking reviewer should check for tone, terminology and cultural fit. This article picks up the other half: what you, as a developer, can actually automate and test in CI before a human ever opens the app.

The bugs that only show up after translation

If you've shipped an i18n'd product, you've seen at least one of these:

  • A button that says "Submit" in English and overflows its container when it becomes "Soumettre votre candidature" in French
  • A price formatted as $1,200.50 in your test locale but rendered as 1.200,50 $ somewhere else, breaking a regex that assumed US formatting
  • A sentence like "You have {count} new messages" that reads fine in English but is grammatically wrong in Arabic or Polish because they have more plural categories than "one" and "other"
  • A %s placeholder that got translated along with the surrounding text and now throws at runtime

None of these are caught by a linguist reading a spreadsheet of exported strings. They only appear once the string is rendered in a real UI, in a real locale, with real data.

Pseudolocalization: catch layout bugs before translations exist

You don't need real translations to catch truncation and layout bugs. Pseudolocalization generates fake "translated" strings that simulate the characteristics of real languages: longer text, accented characters, bidi markers.

A basic pseudolocalizer takes "Submit" and turns it into something like "[!!! Šúƀmíţ Șúbmít !!!]" — padded 30-40% longer, with accented characters, wrapped in brackets so truncation is obvious.

function pseudoLocalize(str) { const accentMap = { a: 'á', e: 'é', i: 'í', o: 'ó', u: 'ú', A: 'Á', E: 'É', I: 'Í', O: 'Ó', U: 'Ú' }; const accented = str.replace(/[aeiouAEIOU]/g, c => accentMap[c] || c); const padding = '~'.repeat(Math.ceil(str.length * 0.3)); return `[${accented}${padding}]`; } pseudoLocalize("Submit your application"); // "[Śúƀmít yóúr áppĺícátíón~~~~~~~~]" 

Run your UI tests (Playwright, Cypress, whatever you use) against the pseudolocalized build. If something truncates or overflows, you've found a layout bug without waiting for a translation vendor to deliver anything.

Tools that do this for you:

  • i18next has pseudolocalization plugins for React/Vue projects
  • Android supports it natively via adb shell setprop persist.sys.locale en-XA (accented) and en-XB (RTL simulation)
  • Lingui and Format.js both support pseudolocale generation in their CLI tooling

Automating pluralization checks

CLDR (Unicode Common Locale Data Repository) defines plural categories per language: zero, one, two, few, many, other. English only uses one and other. Arabic uses all six. Polish uses four.

If your i18n library supports ICU MessageFormat, use it instead of hand-rolled conditionals:

const messages = { en: '{count, plural, one {# message} other {# messages}}', pl: '{count, plural, one {# wiadomość} few {# wiadomości} many {# wiadomości} other {# wiadomości}}', ar: '{count, plural, zero {} one {رسالة واحدة} two {رسالتان} few {# رسائل} many {# رسالة} other {# رسالة}}' }; 

Then write a test that iterates every supported locale and every plural category CLDR defines for it, asserting that a translation exists for each category your language requires:

import { getPluralCategories } from '@formatjs/intl-pluralrules'; function checkPluralCoverage(locale, messageKeys, translations) { const categories = getPluralCategories(locale); const missing = []; for (const key of messageKeys) { for (const cat of categories) { if (!translations[locale][key]?.[cat]) { missing.push(`${locale}:${key}:${cat}`); } } } return missing; } 

Run this in CI against every string file. A missing plural category is a release blocker, not a nice-to-have fix.

Checking regional formats automatically

Don't hand-roll date, currency or number formatting. Use Intl (built into every modern JS runtime) and write snapshot tests per locale:

const formatter = new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }); formatter.format(1200.5); // "1.200,50 €" const formatterPT = new Intl.NumberFormat('pt-PT', { style: 'currency', currency: 'EUR' }); formatterPT.format(1200.5); // "1200,50 €" 

Snapshot these outputs for every locale you support. If a build changes the output unexpectedly, your snapshot test fails and you catch a formatting regression before it ships, rather than after a user in Lisbon reports a broken price.

A practical CI pipeline for localisation QA

Here's a rough pipeline that catches most of what functional localisation testing is looking for, before a human tester gets involved:

  1. Lint string files for unused placeholders, mismatched variable counts between source and target, and missing plural categories
  2. Build a pseudolocalized version of the app and run your existing UI test suite against it, specifically checking for overflow/truncation (element.scrollWidth > element.clientWidth)
  3. Snapshot test Intl formatting output for dates, currency, and numbers across every supported locale
  4. Run RTL smoke tests using en-XB or an actual Arabic/Hebrew build, checking that layout direction flips and nothing is visually mirrored incorrectly (icons, especially)
  5. Visual regression testing per locale using Percy, Chromatic or Playwright's screenshot comparison, flagging anything that shifted more than a threshold

This doesn't replace the native-speaker linguistic review covered in the M21Global piece. It replaces the manual, error-prone functional pass that usually happens once, right before launch, under time pressure.

Where this fits with translation vendors

If you're working with a localisation vendor, ask for machine-readable deliverables: ICU MessageFormat strings, not flat key-value pairs with pluralization baked into the English assumption. Ask whether their QA process covers the same CLDR plural categories your codebase needs to support. The earlier this is a shared contract between your codebase and the vendor's output, the less you'll be debugging a broken Polish plural form three days before launch.

Catching these bugs in CI is cheap. Catching them during a native-speaker review, or worse, after a user reports it, is not.