Documentation reviewed 23 November 2026.
Quick answer
Localization testing checks that a product works and reads correctly in every language and region it ships in. It has three parts: internationalization testing (can the code handle any locale), functional localization testing (does each locale work) and linguistic testing (is the text right). Most of it can be automated in layers: static checks on the translation files, unit tests on formatting logic, screenshot and clipping tests in a browser, and a short end-to-end run per locale. Start with pseudo-localization, because it finds hardcoded strings, concatenation and truncation before any translation exists. Meaning, tone and cultural fit still need a native speaker reading the text in the product.
Who this guide is for
This guide is for QA leads and engineers who own the quality of a product in more than one language. For the process that comes before testing, read the software localization guide.
At the end you will have:
- A test pyramid for localization, with what each layer catches and costs.
- A script that pseudo-localizes a JSON file without breaking placeholders or ICU syntax.
- A static checker for keys, placeholders, ICU syntax, plural forms, length and forbidden terms.
- Playwright tests that run per locale, compare screenshots and detect clipped text.
- Unit tests for dates, time zones, numbers, currency, sorting, search and Unicode input.
- A linguistic bug report template, severity levels and a review score.
Every script was run on Node.js 22.15. Details are in "How this guide was checked".
Part 1: three kinds of testing
The terms are often used as synonyms. They test different things and are run by different people.
| Internationalization testing | Localization (functional) testing | Linguistic testing | |
|---|---|---|---|
| Short form | i18n testing | l10n testing, localization QA | LQA, linguistic review |
| Question | Can the code handle any language and region? | Does the product work in this locale? | Is the text correct and natural in this language? |
| Tests | The code, with no real translation needed | The built product, in each locale | The translated text, in context |
| Typical defects | Hardcoded strings, concatenated sentences, fixed widths, hand-built dates, layouts that do not mirror | Clipped text, untranslated screens, wrong currency or date, broken input, wrong sort order | Wrong meaning, wrong term, grammar, tone, a correct word in the wrong place |
| Who runs it | Engineers, in CI | QA, mostly automated | A native speaker |
| When | From the first commit | Every build and release | Per release, on changed and high-traffic text |
| Needs to know the language | No | No, for most of it | Yes |
The split follows the W3C definitions: internationalization makes a product localizable, localization adapts it to one market. An internationalization defect appears in every language and is fixed once in code. A localization defect appears in one locale. A linguistic defect is fixed in the translation.
Classify every localization bug as one of the three before assigning it. A clipped button sent to a translator comes back as a worse, shorter translation. The fix was in the CSS.
Part 2: the localization test pyramid
Run the cheapest test that can catch a defect. A missing placeholder can be found in a JSON file in milliseconds. In a browser it takes minutes, and in production it takes a support ticket.
| Layer | What it catches | Run by | When | Cost |
|---|---|---|---|---|
| 1. Static file checks | Missing and extra keys, lost placeholders, invalid ICU syntax, missing plural forms, over-length strings, forbidden terms | A script in CI | Every commit | Seconds, no browser |
| 2. Unit tests | Wrong date, number, currency and plural logic, wrong sorting, Unicode handling | The test runner | Every commit | Seconds |
| 3. Visual and layout tests | Clipping, overlap, layouts that do not mirror, missing glyphs | A browser with a pseudo-locale and a few real locales | Every pull request or nightly | Minutes per locale, plus baseline upkeep |
| 4. End-to-end per locale | Flows that break in one locale only: sign-up with a non-Latin name, checkout with a decimal comma | Browser or device automation | A subset per commit, all nightly | Minutes per locale per flow |
| 5. Human linguistic review | Meaning, tone, terminology in context, cultural fit | A native speaker | Per release | Hours of a person |

Two existing posts go deeper on single layers and are not repeated here. Automated localization QA covers which checks can run without a person. React localization CI checks builds a dependency-free checker for i18next catalogs and wires it into GitHub Actions.
Part 3: pseudo-localization
What it is
Pseudo-localization replaces every source string with an altered copy that is still readable in the source language. Microsoft's globalization documentation describes it as a way to verify that a product is localizable without localizing it into a real language. You run the product in the pseudo-locale and look at it. Nobody needs to speak another language.
The transformations
| Transformation | Example for "Save" | What it reveals |
|---|---|---|
| Accents | Šávé | Text without accents is hardcoded, or comes from somewhere your files do not reach. Also shows encoding and font problems |
| Expansion | Šávé one | Truncation and overlap, before a long language arrives |
| Brackets | [Šávé one] | A missing closing bracket means the string was cut. Two bracket pairs in one sentence mean it was concatenated |
| Right-to-left mirroring | Characters reversed, layout mirrored | Elements that do not mirror, misplaced punctuation, mixed-direction bugs |
How much to expand: Microsoft suggests 40% as a heuristic for English source text and notes that strings of one or two words grow proportionally more. W3C's article on text size gives averages from IBM: strings of up to 10 characters expand by 200 to 300%, strings over 70 characters by about 130%. The script below doubles strings of up to 10 letters and adds 40% to the rest.
A script that protects placeholders and ICU syntax
A naive script accents every letter, including {count, plural, one {...}}, and produces messages that fail at render time. This one copies placeholders, ICU keywords, selectors, printf tokens and HTML tags unchanged, and transforms only the text a user reads.
Given this source file:
it wrote this:
Each output message was parsed with an ICU parser and compared with its source: same arguments, same plural branches, same tags. With --bidi the script also wraps each run of text in U+202E (right-to-left override) and U+202C (pop directional formatting), defined in Unicode Standard Annex #9, so the letters display in reverse order. That output passed the same comparison.
Its limits: it does not understand ICU apostrophe quoting, such as '{' for a literal brace, and --bidi does not mirror your layout. For that, load the result with dir="rtl" on the html element.
Built-in options on each platform
| Platform | What is built in | How to turn it on |
|---|---|---|
| Android | Two pseudolocales. English (XA), en-XA, adds accents, expands the text and brackets each message. AR (XB), ar-XB, sets right-to-left direction and reverses the characters | pseudoLocalesEnabled true in the debug build type (isPseudoLocalesEnabled = true in Kotlin), then pick the pseudolocale in the device language settings. Needs developer options enabled |
| Xcode | Five pseudolanguages: Double-Length, Right-to-Left, Accented, Bounded String, and Right-to-Left With Right-to-Left Strings | Product > Scheme > Edit Scheme, select Run, open Options, choose from the App Language menu |
| Windows | Three pseudo locales: qps-ploc (base), qps-plocm (mirrored), qps-ploca (East Asian) | Listed in Microsoft's globalization documentation, which also names the Multilingual App Toolkit Editor for pseudotranslation |
| Chromium's own build | ar-XB and en-XA are packaged into builds that are not official builds | A build argument, enable_pseudolocales. Its comment says it only packages the locales and adds no interface to select them. This helps people who build Chromium, not web developers |
On the web there is no built-in pseudo-locale for your own app. Generate one with a script like the one above and register it as a locale that exists only in development builds.
Never ship the pseudo-locale, and give it a tag that cannot collide with a real one. Microsoft's documentation tells how its early pseudo-locale used tk-TM, which later became a real Windows locale and caused many bugs.Part 4: static checks on the translation files
These run on the files alone. The checker below compares every target file with the source and reports six kinds of finding. It parses ICU MessageFormat with @formatjs/icu-messageformat-parser (version 3.5.23), which the i18next checker in the React post does not.
The configuration file names the folder, the source locale, per-key length limits and per-locale forbidden terms:
Run against a Polish file with one defect of each kind planted in it, it printed:
What each rule is for:
- Missing and extra keys. A missing key shows the source language or a raw key to the user. An extra key is dead text that still gets translated.
- Placeholder parity. The translation must keep every argument with the same name and type, and every tag.
- ICU syntax. One unclosed brace makes the message unparseable.
- Plural coverage.
Intl.PluralRules(locale).resolvedOptions().pluralCategoriesreturns the categories a language uses. Polish returns four. A Polish message with onlyone,fewandotherusesotherfor 5, 12 and 100, which is the wrong form. The parser itself rejects a plural with nootherbranch. - Length. Set limits only where the space is fixed: notification titles, store listing fields, SMS. Count grapheme clusters, since one emoji can be several code units (see Part 8).
- Forbidden terms. Words your glossary bans in a language: a competitor's trademark, a risky promise, an old product name. Glossary and terminology at scale covers how to build that list.
CLDR's documentation says the plural category names "are only mnemonics". one is the category for any number that behaves like 1, which in Russian includes 21. A test that feeds only 1 and 2 into a plural message proves little. Use the numbers in Part 7.Part 5: layout and truncation
How much room to leave
W3C's guidance is to let text reflow and to avoid small fixed-width containers. Its article on text size gives the cases a layout test has to cover:
- Short strings grow the most. The word "views" on Flickr became "visualizzazioni" in Italian, three times the length.
- Long words do not wrap. English "Input processing features" is one German word, "Eingabeverarbeitungsfunktionen".
- Width is not character count. Japanese "デスクトップ" has one character fewer than "desktop" and takes more horizontal space.
- Height changes too. The article's Thai example needs about 150% of the vertical space of the Latin text.
- Shorter is also a defect. A much shorter translation leaves gaps and misaligned columns.
Per-locale projects in Playwright
Playwright's locale option sets navigator.language, the Accept-Language header and the browser's number and date formatting. timezoneId sets its time zone. One project per locale runs the same specs in each. The samples target Playwright 1.65.
The options only affect the browser. Playwright's documentation points to the TZ environment variable for the test runner's own time zone. If your app picks its language from a URL prefix or a cookie, set that in the test as well.
Screenshot tests and a clipped-text detector
On a demo page with a 110 pixel wide button, the clipping test passed in English and Arabic and failed in German with <button> Änderungen speichern. With a minimum width in place of the fixed width, all 15 tests passed.
Notes on using it:
- The first screenshot run fails by design. Playwright writes the baseline and later runs compare. Update on purpose with
npx playwright test --update-snapshots. - Baselines are per project and platform. The file was named
order-de-darwin.png. Playwright's documentation warns that rendering varies with the host OS and hardware, so generate baselines in the environment CI uses. - Intentional truncation is flagged too. Exclude elements that truncate by design, and make sure their full text is reachable.
- The raw key pattern is a starting point. It also matches a domain name in the page. Narrow it to your key naming.
- Run the clipping test on the pseudo-locale first. It covers expansion for every language in one run.

Part 6: right-to-left testing checklist
Run the product in Arabic or Hebrew, or in a right-to-left pseudo-locale, and check each row. The web rows follow W3C's guidance. The icon, control and numeral rows follow Apple's Human Interface Guidelines. Confirm them against your own platform's guidance.
| Check | Correct | Common defect |
|---|---|---|
| Base direction | dir="rtl" on the html element, set in markup. W3C says not to use CSS for base direction | Direction set in a stylesheet, lost when CSS fails to load |
| Layout mirroring | Sidebars, columns and table columns run right to left. Text aligns to the start | Physical left and right in CSS, so some blocks stay put |
| Navigation controls | A back button points right. Next and previous swap sides | Arrows that still point left |
| Progress controls | Sliders and progress bars fill from the right | A bar that fills left to right under mirrored labels |
| Icons that show direction or motion | Flipped | Not flipped |
| Logos, checkmarks, clocks, real-world objects | Not flipped | Flipped by a blanket transform on every icon |
| Photos and illustrations | Not flipped | Mirrored images, including mirrored text inside them |
| Digits inside a number | Same order as everywhere: "541", phone numbers, card numbers | Reversed digits |
| Numeral shapes | Decided per locale. Hebrew uses Western Arabic numerals. Arabic may use Western or Eastern Arabic numerals depending on the region | Assuming one shape for all right-to-left locales |
| Mixed-direction text | Each opposite-direction phrase wrapped tightly in an element with dir, or in bdi when the direction is unknown | A Latin product name followed by a number or punctuation, with the number on the wrong side |
| User input and inserted data | dir="auto" on inputs and on elements that show user text | An English comment right-aligned with its full stop at the wrong end |
| Punctuation | At the logical end of the sentence | "!olleh" style misplacement |
W3C's article on inline bidirectional text lists the cases that fail without markup: an opposite-direction phrase that begins or ends with punctuation, begins with a number, or is followed by a number. Put those strings in your test data.
A pseudo-locale tests mirroring. Bidirectional text needs real mixed strings: a Latin brand name, a number and a question mark inside an Arabic sentence.
Part 7: locale-sensitive logic
Dates, numbers, currency, sorting and search are code, so unit test them. The suite below uses only Intl and Node's built-in test runner.
What the suite teaches about writing such tests:
- Never compare formatted output with a string you typed. Formatters insert non-breaking spaces. Assert on
formatToParts, or write the expected value with an escape. - Pin the runtime. Expected strings come from the CLDR data inside it. Node prints its versions in
process.versions.icuandprocess.versions.cldr. - Set the time zone in every date test. A test that passes on a laptop and fails in CI is usually reading the machine's zone.
- Test a daylight saving change and a year boundary.
2026-01-01T02:00:00Zis still 31 December 2025 in Los Angeles. - Sort and search with a collator. Default
sort()put "Zebra" before "apple". German and Swedish disagree on where "Ä" goes, and both are correct. - Test case mapping in Turkish. The lower case of "I" is a dotless "ı" there, which breaks matching written for English.
Part 8: input and data
Users also type, paste and upload in their own language.
Unicode normalization. The same visible text can be stored as different code points. W3C's example is the Hungarian word "világ", where "á" is either one code point (U+00E1) or "a" followed by a combining accent (U+0301). The two are canonically equivalent. W3C's advice is to be consistent, with a preference for NFC, and to avoid the K forms for this purpose. Test: sign up with a decomposed name, then search for it in the composed form.
Emoji and surrogate pairs. In UTF-16, which JavaScript strings use, characters above U+FFFF take two 16-bit code units called a surrogate pair. The Unicode FAQ notes that popular emoji are among them and that an unpaired surrogate is invalid. Test: fill a field to its limit with emoji, then save, reload and export. Look for a character cut in half, storage that rejects or mangles it, and counters that disagree with what the user sees.
Names. W3C's article on personal names lists what forms get wrong: single names, family name first (China, Japan, Korea, Hungary), two or more family names (Spanish and Brazilian usage), patronymics, and long names. It advises asking whether you need separate given and family name fields at all, not requiring a family name, allowing hyphens, apostrophes and spaces, and not forcing capitalization. Each is a test case.
Addresses and phone numbers. MQM lists address format and telephone format as locale convention errors (see Part 10). Test that validation accepts real examples from each market you sell in. Country-by-country rules were not verified for this guide, so take the examples from your own customers.
Part 9: end-to-end smoke tests per locale
A smoke test per locale answers one question: can a user in this locale complete the main flow. Keep it to three or four flows, such as sign up, the core action and payment. The first three specs in Part 5 are the minimum assertions on each screen.
Running every flow in every locale on every commit is slow, and most locales fail in the same way. Choose a small set that fails differently.
| Run | Locales | Why |
|---|---|---|
| Every commit | Source language | Baseline behaviour |
| Every commit | Pseudo-locale with expansion | Hardcoded strings and truncation for all languages at once |
| Every commit | One right-to-left locale | Mirroring and bidirectional text |
| Every commit | One locale with four or more plural categories and a decimal comma, such as Polish | Plural and number parsing |
| Every commit | One CJK locale | Fonts, character width, line height, no spaces between words |
| Nightly | Every shipped locale | Missing translations and one-off defects |
| Before release | Every shipped locale, plus screenshots for human review | Sign-off |
If one slot finds nothing for a month, swap in the locale with the most escaped defects (see Part 14).
Part 10: linguistic testing
In-context review
A reviewer who reads strings in a spreadsheet can confirm grammar and cannot confirm fit. A correct sentence can still be wrong for its screen. Give reviewers the running product in their locale, or the per-locale screenshots your Playwright run already produces. Review what changed since the last release and the screens with the most traffic. Sample the rest.
A bug report template for linguistic issues
The key is the field people leave out. Without it an engineer has to search for the text, which may exist under several keys.
Error types: the MQM typology
MQM (Multidimensional Quality Metrics) is an error typology published at themqm.org. Using its names keeps reports comparable across reviewers and vendors. MQM Core has seven top-level dimensions.
| Dimension | Covers | Example subtypes |
|---|---|---|
| Terminology | Terms that break a termbase or the domain | Inconsistent with terminology resource, wrong term |
| Accuracy | Meaning that differs from the source | Mistranslation, addition, omission, untranslated, do not translate |
| Linguistic conventions | Well-formedness in the target language | Grammar, punctuation, spelling, character encoding |
| Style | Acceptable grammar, wrong style | Language register, unidiomatic style, organization style |
| Locale conventions | Formats for the locale | Number, currency, date, time, measurement, address, telephone, shortcut key |
| Audience appropriateness | Content unsuitable for the audience | Culture-specific reference, offensive |
| Design and markup | Presentation of the translated product | Layout, markup tag, truncation or text expansion, missing text, link |
Locale conventions and Design and markup overlap with functional testing. A truncated label is a Design and markup error whether a reviewer or a Playwright test finds it.
Severity levels
MQM's scoring model defines four severity levels and recommends multipliers on an exponential scale.
| Severity | Multiplier | Meaning | Action in a product team |
|---|---|---|---|
| Neutral | 0 | A preference or a note. The translation is acceptable | Log, no fix required |
| Minor | 1 | Limited impact, does not seriously impede use | Fix in the next batch |
| Major | 5 | Seriously affects understanding or usability, or sits in a highly visible place | Fix before release |
| Critical | 25 | Makes the content unfit for purpose, or risks physical, financial or reputational harm | Block the release |
The meanings and multipliers are MQM's. The action column is this guide's suggestion. To score a review, add the multipliers for all errors, then normalize: penalty total times a reference word count, often 1,000, divided by the words evaluated. A sample of 2,000 words with three minor errors and one major error has a penalty total of 8, or 4 per 1,000 words. Track that number per language. MQM notes that in many systems a single critical error fails the sample.
Part 11: accessibility in localized UI
- Declare the page language. WCAG success criterion 3.1.1, Language of Page, is Level A: the default human language of each page can be programmatically determined. The reason given is that screen readers can then load the correct pronunciation rules.
- Declare the language of parts. Criterion 3.1.2, Language of Parts, is Level AA. W3C's advice is to put a
langattribute on an element around content in another language. In a localized product that includes strings that fell back to the source language and the names in a language switcher. - Use the
htmlelement. W3C says to setlangthere so it covers thehead, and never to use ametaelement withhttp-equivset toContent-Language. - Translate what is not visible.
alttext,aria-label,titleand placeholder attributes are strings like any other. - Listen once per locale. Run a screen reader over the main flow in each language once per release. A test can confirm that
langmatches the locale. It cannot confirm that the text sounds right.
Part 12: test data and environments
Keep one fixture file of hard values for unit, end-to-end and manual tests.
| Kind | Values to include |
|---|---|
| Names | A single name. A family-first name. Two family names. A name with an apostrophe and a hyphen. A name of 60 or more characters. A name in a non-Latin script |
| Text | A composed and a decomposed spelling of the same word. A family emoji. A right-to-left sentence containing a Latin brand name, a number and a question mark |
| Numbers | 0, 1, 2, 5, 11, 12, 21, 22, 100, 1,000,000 and 1.5 for plurals. 1234567.891 and a negative amount for formatting |
| Dates | The day of a daylight saving change. 23:30 on 31 December. A date where day and month are both 12 or less, so a swapped order is visible |
| Time zones | One ahead of UTC, one behind, and one with a half-hour offset such as Asia/Kolkata |
| Currency | One with two decimals, one with none such as JPY |
For environments:
- Ship the pseudo-locale in development and staging builds only.
- Make the locale switchable without changing the device, with a URL parameter or a debug menu.
- Generate screenshot baselines in CI, not on laptops.
- Test with the fonts production uses. A CI image without fonts for a script renders empty boxes.
- Seed data in the target language. English sample data hides sorting and wrapping defects.
Part 13: what to automate and what needs a person
| Check | Automate | Needs a person |
|---|---|---|
| Missing and extra keys, placeholders, ICU syntax, plural coverage | Yes, fully | No |
| Length against a stated limit | Yes | To set the limit |
| Forbidden and required terms | Yes, as string matching | To write the glossary, and to judge inflected forms |
| Hardcoded strings, concatenation | Mostly, with a pseudo-locale and the clipping test | To look at screens no test visits |
| Clipping and overflow | Yes | To judge intentional truncation |
| Layout mirroring | Partly, with screenshots | To approve the first baseline and each change |
| Bidirectional text | Partly, with fixed test strings | To read it. Needs someone who reads the script |
| Date, number, currency, sorting logic | Yes | No |
| Meaning, tone, register | No. AI review can rank what to read first | Yes |
| Cultural fit, images, colours, examples | No | Yes |
| Screen reader pronunciation | Only that lang is correct | Yes |
| Legal and regulated text | No | Yes, a qualified one |
Part 14: regression strategy and metrics
In continuous localization the strings change on every merge, so the tests run on every merge too.
- Source change. Run the static checks and regenerate the pseudo-locale in the same pull request. A translation whose source changed is stale: flag it and do not count it as covered.
- Translations arrive. Run the static checker on the changed locales and the per-commit smoke set.
- Nightly. Run all locales, all smoke flows and all screenshots. Send a reviewer only the screenshots that differ.
- Before release. Human review of changed strings and top screens. Fix or waive every major finding. No critical findings.
- After an escaped defect. Add a test at the lowest layer that could have caught it. A wrong plural becomes a static rule, not a new end-to-end flow.

Treat a screenshot baseline update as a reviewed change, not a routine one.
| Metric | Definition | Use |
|---|---|---|
| Defect escape rate by locale | Localization defects found after release divided by all localization defects found, per locale | Shows which locale your tests cover worst. Move it into the per-commit set |
| Defects by type | Escaped defects grouped as i18n, functional or linguistic, then by MQM dimension | Shows which layer of the pyramid is too thin |
| Translation coverage | Translated keys divided by total keys, per locale | Below 100% means users see the source language |
| Reviewed coverage | Human-reviewed keys divided by total keys, per locale | How much of what ships a person has read |
| Test coverage by locale | Smoke flows run in a locale divided by flows defined | Exposes locales that ship untested |
| Static check failures per run | Findings from the checker, by rule | A rising count points at source text, glossary or engine problems |
| Normed penalty per 1,000 words | The MQM figure from Part 10, per language | Linguistic quality trend |
| Time to fix | From report to corrected string in production, per locale | Whether the reviewer loop works |
Doing this with Transglot
Transglot is a continuous localization platform. This section states which checks from this guide it runs and which it leaves to you, going by its quality checks documentation and CLI reference.
What it does, on every plan, on every string before it is written:
- Placeholder parity. It flags a missing, added or changed placeholder, such as
{name},%sor an HTML tag. - Plural coverage. It flags a plural key that lacks a form the target language needs. How placeholders and plurals are read depends on the project's Message syntax setting. See plural forms.
- Length. It flags a translation longer than the key's maximum length, and with screenshots a translation likely to overflow its space.
- Glossary and forbidden terms. It flags a departure from a glossary term, a forbidden word, or a translated term marked Do not translate.
- Failure handling. A draft that still breaks a placeholder, a plural form or a forbidden glossary term after one retry is not written, and the run reports it. A length overrun is written as a draft, not refused.
- ICU validity. The CLI reference states that invalid ICU translations are omitted from a pull and named in the output.
On Team and above, an AI review pass gives each translation a 0 to 100 score and findings grouped by MQM categories, each blocking or warning. It counts toward usage. It ranks what a reviewer should read first and is not linguistic sign-off. Reviewers can correct wording on the running page with the in-context editor.
What it does not do:
- Pseudo-localization. The documentation describes no pseudo-locale feature. Use the script in Part 3 or your platform's built-in option.
- A missing-key gate in your repository. Untranslated keys are absent from pulled files, so the key comparison in Part 4 is still yours to run.
- Layout, screenshot and clipping tests. Its length check works from a limit or a captured screenshot. It does not render your build.
- Right-to-left rendering,
Intllogic, input handling and accessibility. These test your code, not the translations. - Human linguistic review. It does not supply reviewers.
Other limits: the Free plan is the browser console only, the CLI, GitHub Action and API start on Starter, and it cannot be self-hosted. See pricing.
Common mistakes
- Testing only the source language and one similar target. Pick locales that fail differently: a long one, a right-to-left one, one with four plural forms, one CJK.
- Starting pseudo-localization after translation. Its value is finding code defects before you pay for words.
- Accenting placeholders. A pseudo-localizer that does not protect ICU syntax produces failures that look like real bugs.
- Testing plurals with 1 and 2. The failures are at 0, 5, 11, 21 and 22.
- Comparing formatted numbers with typed strings. The invisible non-breaking space fails the test.
- Screenshot baselines made on a laptop. They do not match CI.
- Sending layout bugs to translators. The translation gets shorter and worse. The container stays broken.
- Mirroring every icon. Clocks, checkmarks and logos do not flip.
- Counting characters with
.length. One emoji can count as eight.
Checklist
Frequently asked questions
What is localization testing?
Localization testing verifies that a product works and reads correctly in a specific language and region. It covers function, such as layout, formats, input and sorting, and language, such as meaning, grammar and terminology. It is run on the built product, per locale.
What is the difference between internationalization testing and localization testing?
Internationalization testing checks that the code can support any locale: no hardcoded strings, no concatenated sentences, flexible layouts, platform formatters. It needs no real translation and is usually done with a pseudo-locale. Localization testing checks one real locale in the built product.
What is pseudo-localization?
Pseudo-localization replaces source strings with altered but readable copies: accented letters, extra length, brackets around each message, and optionally reversed direction. It exposes hardcoded text, truncation, concatenation and mirroring defects before any translation exists. Android and Xcode have it built in.
What is linguistic testing?
Linguistic testing is a native speaker reviewing translated text in context for meaning, grammar, terminology, tone and cultural fit. Findings are classified with an error typology such as MQM and given a severity.
Can localization testing be automated?
Most of the structural and functional part can: key parity, placeholders, ICU syntax, plural forms, length, formatting logic, clipping and screenshots per locale. Meaning, tone, cultural fit and screen reader pronunciation need a person.
How do I test a right-to-left layout if I do not read Arabic or Hebrew?
Use a right-to-left pseudo-locale, such as Android's ar-XB or Xcode's Right-to-Left Pseudolanguage. That covers mirroring, icons and alignment. Bidirectional text, such as a Latin name inside an Arabic sentence, still needs a reader of the script.
Which locales should I test on every commit?
A small set that fails in different ways: the source language, an expansion pseudo-locale, one right-to-left locale, one locale with four or more plural categories, and one CJK locale. Run every shipped locale nightly and before release.
How this guide was checked
- Scripts that were run. All on Node.js 22.15.1 (ICU 77.1, CLDR 47), macOS.
pseudo.mjswas run on the sample file shown, with and without--bidi, and each output was compared with its source usingisStructurallySamefrom@formatjs/icu-messageformat-parser3.5.23.check-locales.mjswas run on a broken Polish file (output shown, exit code 1) and a corrected one (0 findings, exit code 0).tests/intl.test.mjspassed 9 of 9. The Playwright config and spec were run with@playwright/test1.65.1 against a small demo page: 15 tests, with the German clipping failure shown, then 15 passing after the CSS fix. - How the Playwright run differed. It used a Chromium headless shell already cached on the machine, set through
launchOptions.executablePath, not the build Playwright 1.65.1 downloads. Firefox and WebKit were not run. Screenshots were compared on macOS only. - Pseudo-localization. The transformations, the 40% heuristic, the Windows pseudo locales and the
tk-TMstory follow Microsoft's globalization documentation. Android's pseudolocales follow the Android developer documentation. The Xcode pseudolanguage names come from Xcode Help and the scheme path from Apple's developer documentation. Neither was run on a device or in Xcode. The Chromium note comes frombuild/config/locales.gni. - Static checks.
pluralCategoriesfollows MDN. The parser's error names and node types are not listed on its documentation page and are as observed in version 3.5.23. - Layout. Expansion figures are from W3C's "Text size in translation", which attributes its averages to IBM. Playwright options follow its emulation, snapshot and test options pages.
- Right to left. Web rows follow W3C's two articles. Icon, control and numeral rows follow Apple's Human Interface Guidelines. Material Design's bidirectionality page could not be read in this session and is not cited.
- Input and data. Normalization follows W3C and MDN. Surrogate pairs follow the Unicode FAQ. Names follow W3C. Address rules per country were not verified and are not described.
- Linguistic testing. The MQM dimensions, subtypes, severities, multipliers and normalization are from themqm.org. Its quality score formulas are images and are not reproduced. The action column and the bug report template are this guide's own.
- Accessibility. WCAG 3.1.1 and 3.1.2 follow W3C's Understanding document. No screen reader was run.
- Not measured. The cost column of the pyramid, the per-commit locale set and the regression steps are working practice, not a study. The Polish and German sample strings were not reviewed by a professional translator.
- Other tools. Transglot's behaviour is taken from its documentation, not from a test run for this guide. No other localization platform was tested or benchmarked.
Sources
- W3C: Localization vs. Internationalization
- W3C: Text size in translation
- W3C: Structural markup and right-to-left text in HTML
- W3C: Inline markup and bidirectional text in HTML
- W3C: Normalization in HTML and CSS
- W3C: Personal names around the world
- W3C: Declaring language in HTML
- W3C: Understanding WCAG 3.1.1, Language of Page
- Unicode: UTF-8, UTF-16, UTF-32 and BOM FAQ
- Unicode Standard Annex #9: Unicode Bidirectional Algorithm
- Unicode CLDR: Plural rules
- Android: Test your app with pseudolocales
- Apple: Testing localizations when running your app
- Xcode Help: Test localizations
- Apple Human Interface Guidelines: Right to left
- Microsoft: Pseudolocalization
- Chromium source: build/config/locales.gni
- Playwright: Emulation
- Playwright: Visual comparisons
- Playwright: TestOptions
- MDN: Intl.PluralRules.prototype.resolvedOptions()
- MDN: Intl.Segmenter
- MDN: String.prototype.normalize()
- FormatJS: ICU MessageFormat parser
- MQM: Multidimensional Quality Metrics
- MQM: the MQM typology
- MQM: scoring models
- Transglot: quality checks
- Transglot: CLI commands