BLOG
BlogGuides

Test a multilingual site and its language switcher

The switcher sends French visitors to an English page, or loses the page on switch. Test each language version, and browse from the country you need.

Where multilingual sites break#

A multilingual site has more ways to go wrong than a single-language one, and the person checking it usually reads only one of the languages:

  • The switcher sends a visitor to the home page of the other language, instead of the same page.
  • A translated page is missing, and the switcher 404s.
  • The form on the translated page shows English errors, or posts to the English thank-you page.
  • The site picks a language from the visitor's location or browser, and gets it wrong.

The test#

Open https://client.example/en/services/whitening/.
Switch the language to Français.
Check the address is the French version of the same page (/fr/...)
and the heading reads "Blanchiment des dents".
Switch back to English and check the heading reads "Teeth whitening".
Open the French contact page, submit the form empty, and check the
error message is in French.

Name the heading in each language. That catches the switch that lands on the right address with the wrong content.

Results in your language#

Write the test in the language you prefer. Results are written in the language the test was written in (the headline, the checks and their reasons), and what the tester saw is never translated: a French heading stays in French in the evidence. See results.

Browse from a country#

Sites that choose a language or currency from the visitor's location need the tester to appear in that country. The workspace's Browse from setting is automatic (the country the site's address points to, such as .fr or /de/) or a country you choose; sites then see a visitor from that country, with a matching time zone and language. It applies to every test in the workspace, so a workspace per region can be easier for a client with several. See network.

Workspace settings: the addresses to allow and the country tests browse from.
Workspace settings: the addresses to allow and the country tests browse from.

Keep each language on the schedule#

A translation plugin update or a missing string breaks one language while the other stays fine. Put one test per language on a nightly schedule, not just the default.

This post is part of Find the bug before your client does.

Filed underWebBrowser behaviourClient sites