INTRODUCTION
Most multilingual websites ask the same question in the top corner: which language? Many answer it with a row of flags, or skip the question and guess from the visitor's location. Both feel helpful and both quietly fail people. A Spanish speaker in Paraguay, a French speaker in Montreal and an engineer in Berlin who prefers to read documentation in English do not fit a flag or an IP address.
A language switcher is a small component with a simple job: let people read in the language they choose, on the page they were already looking at. Here is how to make it do that job.
Flags name countries, not languages
The W3C's internationalization guidance on helping people find their language version is direct: resist the temptation to use country flags to identify languages. Some countries have more than one language, and some languages are spoken in many countries. Which flag means Spanish: Spain, Mexico, Argentina? Which one means English? Switzerland has several official languages under one flag.
The same page notes where flags do make sense: linking to geographically tailored versions of a site, such as a UK, Canadian and Australian shop. A translation is not that. Using a flag for it asks people to identify with a country before they can read.
Write each language in its own words
The W3C recommends writing each language link in the language it points to: Français, Español, Deutsch, not French, Spanish, German. The reason is practical. Someone who lands on a page they cannot read needs to recognise their own language in a list of words that mean nothing to them. On an English page you can add a gloss, such as français (French), but the native name comes first.
Mark each name with its lang attribute. WCAG 2.2 Success Criterion 3.1.2, Language of Parts, exists because a speech synthesizer reads words with the rules of the page language unless told otherwise; its example is the French word voiture pronounced as an English word. A screen reader on an English page will mangle Español in the same way. The W3C also shows translate="no" on these names, so automatic translation tools do not turn your language list into a column of identical words.
Guess politely, never overrule
Browsers send an Accept-Language header built from the person's settings, and the W3C considers it helpful to use it as a first suggestion. It also warns to be wary of IP addresses and location: where someone is does not tell you what they read. Google Search Central goes further: avoid automatically redirecting people from one language version to another based on what you think their language is, and do not use IP analysis to adapt content. Those redirects can hide versions from people and from search engines alike.
The rule we follow: a guess may suggest, a choice must win. When someone picks a language manually, remember it with a cookie or local storage, as the W3C describes, and stop second-guessing them on the next page.
Switch the page, not the site
A switcher that sends people back to the home page in the new language makes them search again for what they were reading. Link each language option to the same page in that language. If a translation does not exist, say so in the menu instead of hiding the option or dropping people on a page they did not ask for. Tell search engines about the alternates too, with the hreflang annotations Google documents.
Keep the switcher in the same place on every page, as with help that stays in one place, and make each option say exactly where it goes, as any good link should.
Where flags still belong
The strongest counterargument comes from commerce. A shop that changes prices, currency, shipping, taxes and legal terms by country really is asking a country question, and a flag can label a country well. Flags are also fast to spot, while a word in a list is not. Dropping them can make the control harder to find.
We take the first point fully: ask the country question when the answer changes the offer. But ask it separately from the language. A Swiss customer chooses Switzerland, then Deutsch, Français or Italiano. For findability, a consistent position, a clear language icon and the native names do the job without implying that a language belongs to one country.
A hypothetical check
Picture a hypothetical software company with its site in English, French and Spanish. A colleague in Madrid shares the English pricing page with a friend whose browser is set to Spanish. A redirect-happy site sends the friend to the Spanish home page, and the pricing page is gone. A better site opens the English pricing page that was shared, offers a quiet suggestion written in Spanish to read it in Español, and, once the friend accepts, opens the Spanish pricing page and remembers the choice. Nothing here describes a real client; it is the sequence worth testing.
What to check this week
Open your site in a private window with the browser set to another language. Land on a deep page from a shared link, switch language and note where you arrive. Then read your switcher aloud with a screen reader, look for flags standing in for languages, and check that a manual choice survives the next click.
Sources checked on 1 December 2026: the W3C internationalization article on language negotiation and site navigation, Google Search Central's guide to multi-regional and multilingual sites (last updated 10 December 2025) and its hreflang documentation, and the WCAG 2.2 Understanding document for Success Criterion 3.1.2. The software company and its pricing page are hypothetical.