---
title: "Let people pick their language · Agent Wranglers"
url: https://agentwranglers.se/playbook/website/languages-and-regions/language-switcher
updated: 2026-10-20
licence: "All rights reserved"
---

# Let people pick their language

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

- Level: Recommended
- Chapter: [Languages and regions](https://agentwranglers.se/playbook/website/languages-and-regions)
- Rule: On sites with several languages, offer a switcher that names each language in that language and keeps people on the same page.
- How: Link each language by its own name, to the same page in that language. Never use flags, because a flag stands for a country, not a language. Mark each link with `lang` and `hreflang`.
- Check: From any page, each switcher link leads to the same page in the other language and answers 200.

Example:

```html
<nav aria-label="Language">
  <a href="/en/pricing" hreflang="en" lang="en" aria-current="page">English</a>
  <a href="/sv/pricing" hreflang="sv" lang="sv">Svenska</a>
  <a href="/de/pricing" hreflang="de" lang="de">Deutsch</a>
</nav>
```

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers website playbook: https://agentwranglers.se/playbook/website/languages-and-regions/language-switcher`.

- Previous: [Keep names out of machine translation](https://agentwranglers.se/playbook/website/languages-and-regions/translate-attribute)
- Next: [Support right-to-left text](https://agentwranglers.se/playbook/website/languages-and-regions/rtl-support)
- [Languages and regions](https://agentwranglers.se/playbook/website/languages-and-regions)
