Language Switching Without Losing the Reader's Place

Language Switching Without Losing the Reader's Place

user avatar

by me1afon

10 minutes ago


AI tools helped gather research and write the first draft of this article. I edited it and checked every quote and figure against the source page listed at the end, read on 30 November 2026. The cover and inline illustrations are AI-generated. Details at the end.

A reader who clicks the language switch on an article expects the same article in the other language. If the switch lands on a home page, a section index or a search box, the reader has lost their place. Make the switch a plain link to the same article in the other language, visible on every page; label each language in its own words; and when no translation exists, say so and offer a way forward instead of a silent reset. Remember a language only when the reader chose it.

Below: what "place" means, what published guidance says about links, redirects and labels, what to do when a translation is missing, a fictional example and a test list.

What "the reader's place" means

Three things can be lost in a switch:

  1. The page. The reader was on one article and is now somewhere else.
  2. The position. The reader was halfway down, at a particular section, and is now at the top.
  3. The choice. The reader picked a language, and the next page is in another one.

Losing the page is the largest loss; a lost choice shows up on the next page; position is smaller and can be reduced, as shown below. This split is the author's framing, not a standard.

The switch is a link, and it is on every page

Google's documentation on multilingual sites recommends "using different URLs for each language version of a page rather than using cookies or browser settings to adjust the content language on the page" [1]. The reason is crawling: if you reroute by language settings, "Google might not find and crawl all your variations", because the crawler "usually originates from the USA" and "sends HTTP requests without setting Accept-Language in the request header" [1].

For the reader, a link to a language-specific address can be opened in a new tab, bookmarked, shared and reached with the back button. A switch that rewrites the page in place gives none of that. Google's page adds, under "Let the user switch the page language": "Consider adding hyperlinks to other language versions of a page" [1].

The W3C's guidance on guiding users to translated pages, first published in 2016 according to the page's own metadata, is more specific about where the links go: "it is always best to add links to alternate language versions, and to do so on every page" [2]. The page puts them in the top right corner and says such links "should not be hidden, since the user may be looking at a page full of text that means nothing to them" [2].

So the link points to this article in the other language, not to a home page, and sits in the same place on every page.

Who decides the first language

A reader's first page often comes from a shared link, in whatever language the sender picked. How much the site should guess before the reader acts is where the sources differ.

The W3C recommends server-based language negotiation, which reads the browser's Accept-Language header, together with the links described above [2]. It also warns: "Be wary about using IP addresses or other location services to guess the language of the user", since location does not necessarily match preferred language [2]. Google goes further: "Avoid automatically redirecting users from one language version of a site to a different language version of a site", because such redirections "could prevent users (and search engines) from viewing all the versions of your site" [1].

MDN's reference for the header describes it as a hint. It "serves as a hint when the server cannot determine the target content language otherwise", its value is "often out of a user's control (when traveling, for instance)", and "The server should never override an explicit user language choice" [3]. MDN adds that, for privacy, the header may not list the user's full preferences; Safari always lists only one language [3].

The advice differs. The author's reading, not a quotation: an address that names a language should get that language; at a language-neutral address, such as a bare home page, the header can choose a default; everywhere else it can at most suggest ("This article is also available in English") and let the reader accept. A wrong suggestion costs one click; a wrong redirect costs a lost page.

Label the switch so people can find it

The W3C's pages on language links give several concrete rules.

Write each language in its own language. Links to other versions should be "in the language of the page they point to" [2]. Its 2005 page on selection lists gives an example: not "French" but "français" [4].

Do not use flags for languages. The W3C says to "resist the temptation to use country flags to identify languages", because a country can have several languages and a language can be spoken in several countries [2]. It allows flags only for geographically tailored versions, such as national retail sites [2].

Prefer visible links over a menu when the list is short. The same 2005 W3C page lists the downsides of menus: "users cannot see or access the links straight away", and "it is hard to find a label for the list that is not language-specific". It says that with "only a handful of localized versions, it is probably better to avoid using a pull-down menu altogether and simply include links directly on the page" [4].

If a menu is used, do not navigate on selection without warning. WCAG 2.2 success criterion 3.2.2 says that "Changing the setting of any user interface component does not automatically cause a change of context unless the user has been advised of the behavior before using the component" [5]. Its explanation counts "changing the selected option in a list control" as changing a setting, and "activating a link or a button" as not [5]. A language menu that loads a new page the moment an option is selected therefore falls under the rule. This is the author's reading of how the criterion applies, not a statement from the page.

Put the control in the same place on every page. WCAG 3.2.3 asks that repeated navigation "occur in the same relative order each time they are repeated" [6]; keeping the same position as well is the author's suggestion.

A reader's path on a fictional publication, shown as two routes from the same article page: the language switch that leads to the home page of the other language, and the one that leads to the same article, each step labelled with what the reader sees.

When there is no translation

The "same article" rule cannot be met when the other-language article does not exist.

Options: hide the switch on that page, so the reader never meets a control that cannot work; show it but explain that this article has no translation, and offer the original or a related page; or send the reader to a section page and say nothing, which is the failure this article started from.

The W3C's page on link languages adds a caution: a link labelled with its target's language becomes wrong if the target is later translated, unless every page carrying it is updated [7]. Generate a "not available" state from whether the translation exists now, not from a note somebody wrote earlier.

A page that does fall back needs to be honest about its language. To help it detect a page's language, Google advises "using a single language for content and navigation on each page" and "avoiding side-by-side translations"; it adds that translating "only the boilerplate text of your pages while keeping the bulk of your content in a single language" can hurt users when the same content shows up in search results with different boilerplate languages [1]. For the reader, an English interface around an untranslated Russian article is a two-language page, and the reader should be told which is which. WCAG 3.1.2 expects passages in a different language to be marked so that assistive technology can use the right pronunciation rules [8].

Remembering the choice

The third loss, the choice, has a documented fix. The W3C suggests: "If the user switches to a different language, offer them the opportunity to remember that choice and serve up subsequent pages in that language, overriding their browser settings" [2]. Its own site sets a cookie when a reader clicks its language links; it says localStorage would work too [2].

The word is offer: remembering is a choice, not a side effect. And the remembered choice overrides the header, which matches MDN's rule that an explicit choice should never be overridden [3].

A fictional example

The following example is invented: Example Ledger, its reader, its articles and their behaviour are fictional.

Example Ledger publishes in English and Spanish. Maya's browser is set to Spanish. A colleague sends her the English link to an article on how a lending protocol sets interest rates. Halfway down, she wants the Spanish version of one dense section.

On the first version of the site, the switch is a footer dropdown. She picks "Spanish" and lands on the Spanish home page, with the article and her position gone. The next English article she opens is English again, because nothing remembered her choice.

On the redesigned site, a header link reading "Español" is on every page. It opens the Spanish address of this article, and a small line offers to keep Spanish for later pages. She accepts. A week later she opens another English link; because the address names English, she gets English with a one-line suggestion that a Spanish version exists. On an article with no Spanish version, the header shows no "Español" link and a short line under the title says: "Not translated into Spanish yet."

Moment First version Redesigned version
Switch on an article with a translation Home page of the other language The same article in the other language
A page opened from the site's own links after switching Back in the first language Her language, after she accepted the offer
Shared English link, later Redirect by header English page, suggestion only
Article with no translation Switch goes to the home page, no message No false link; a plain note says why

Keeping the position

The sources reviewed say little about position, so this is a proposal, not a finding, and it has not been tested here.

A link can carry the reader to a place in a page by a fragment: the part of the address after a hash sign, which matches an element's identifier. If the English and Spanish versions give the same section the same identifier, the switch can point to the matching section, and the reader lands where they were reading. The page needs to know which section is in view, which means a little script that updates the switch link as the reader scrolls. If it fails, the link still goes to the top of the same article, the right fallback. A check that both versions share the same section identifiers keeps it working.

A fictional article page shown twice side by side, one in each language, with a marker on the same section in both and a link joining the language switch on the left page to that section on the right page.

A test list

These checks are the author's proposal. For each page type:

  • From an article with a translation, does the switch open that translation, and does the back button return to the original?
  • From an article without one, does the reader learn why, and is there a way to the original?
  • Is the control in the same place on every page, with each language in its own name?
  • After accepting the offer to remember, is the choice respected on later pages, and can it be changed?
  • With scripts off, do the language links still work as ordinary links?

What this article does not settle

It gives no measurements: none of the sources shows that any of these choices changes how long readers stay, how many return or how many find the translation. The W3C page on selection lists dates from 2005 (last substantive update 2014). The sources disagree on automatic negotiation, and the reading above is the author's. The fragment approach is untested. It does not cover how originals and translations are declared to search engines (Google mentions hreflang annotations [1]), what localization includes beyond text, or right-to-left layouts. Dapp.Expert publishes English originals with Russian versions under /ru/; no data from that site is used here.

How this article was made

Task What the AI did What a person did How it was checked
Research Gathered candidate sources and drafted notes Chose the question and which pages to rely on Every quote checked against the raw text of the page named in the sources, downloaded on 30 November 2026
Draft Wrote the first draft from the notes Edited the text, the example and the checks An independent review compares claims with the sources before publication
Images Generated the cover and inline illustrations Chose and checked them Labelled as AI-generated in the disclosure line and alt text
Not done by AI — The decision to publish and responsibility for the text —

Conflicts of interest: none. The author has no commercial relationship with the organisations named here.

Responsible for this article: Dmitriy Lastovka, author. Corrections: contact form.

Sources

Labels: guidance (platform documentation), standard (a specification or its explanatory document), reference (developer documentation). Quotes as on the pages downloaded on 30 November 2026.

  1. Google Search Central, "Managing multi-regional and multilingual sites" ("Last updated 2025-12-10 UTC"). https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites Guidance.
  2. W3C Internationalization, "Guiding users to translated pages" (first published 2016-03-11 per the page). https://www.w3.org/International/questions/qa-site-conneg Standard body guidance.
  3. MDN Web Docs, "Accept-Language header" (last modified 4 July 2025). https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language Reference.
  4. W3C Internationalization, "Using select to link to localized content" (first published 2005-07-26, last substantive update 2014-09-29, per the page). https://www.w3.org/International/questions/qa-navigation-select Standard body guidance; dated.
  5. W3C WAI, "Understanding Success Criterion 3.2.2: On Input" (WCAG 2.2). https://www.w3.org/WAI/WCAG22/Understanding/on-input.html Standard.
  6. W3C WAI, "Understanding Success Criterion 3.2.3: Consistent Navigation" (WCAG 2.2). https://www.w3.org/WAI/WCAG22/Understanding/consistent-navigation.html Standard.
  7. W3C Internationalization, "Indicating the language of a link destination". https://www.w3.org/International/questions/qa-link-lang Standard body guidance.
  8. W3C WAI, "Understanding Success Criterion 3.1.2: Language of Parts" (WCAG 2.2). https://www.w3.org/WAI/WCAG22/Understanding/language-of-parts.html Standard.

Tier I

Sector: #18291

Sealed Hiding Place Room

Resource Cache

Resource Cache

Tier I

Requires 25% Tier Progress to Claim
Meme Cache

Meme Cache

Tier I

Requires 50% Tier Progress to Claim
Equipment Cache

Equipment Cache

Tier I

Requires 75% Tier Progress to Claim

After collecting, hiding places will be stored in your inventory and can be opened with Keys.

Other articles

What Localization Includes Beyond Translation

What to adapt along with an article's text: metadata, images, interface labels, numbers, dates, plurals and language marks. A checklist and a fictional example.

user avatarme1afon

When a Topic Page Is Better Than Another Tag

A tag files an article; a topic page serves a reader. A five-question test, what Google's documentation says, a fictional example and a template.

user avatarme1afon

Sections, Topics, and Entities Serve Different Purposes

A section is where a story lives, a topic is the subject it belongs to, an entity is a specific thing it covers. Three questions, a fictional example, limits.

user avatarme1afon

What Image Provenance Metadata Can Establish

What a signed Content Credential, an IPTC label and an invisible watermark each prove about an AI image, what they cannot, and one real file check.

user avatarme1afon

Keeping a Consistent Visual Style Across AI Images

How to keep one look across many AI illustrations: a written style card, reference images, adapters, seeds, fixed finishing and checks.

user avatarme1afon

Reading an Image Model's License Before Publishing

Image-model licences and service terms read on official pages: what each says about running the model, owning the output and publishing it.

user avatarme1afon

Important disclaimer: The information presented on the Dapp.Expert portal is intended solely for informational purposes and does not constitute an investment recommendation or a guide to action in the field of cryptocurrencies. The Dapp.Expert team is not responsible for any potential losses or missed profits associated with the use of materials published on the site. Before making investment decisions in cryptocurrencies, we recommend consulting a qualified financial advisor.