> For the complete documentation index, see [llms.txt](https://docs.varbase.vardot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.varbase.vardot.com/content-designers/content-translation/language-switcher.md).

# Language Switcher

The language switcher lets visitors move between the translations of the page they are on. This page explains how it behaves and how it is added to the site.

## How It Works

The switcher lists the site's languages. Choosing one opens the same page in that language, for example from `/about-varbase` to `/ar/about-varbase`. If the page has no translation in that language, the visitor sees the original content with the interface in the chosen language.

## Adding the Switcher to the Header

On a Varbase site the switcher is a **Language switcher** component in the header of the page template. If your site's header does not show one, visitors reach other languages only through links and addresses. A **Site Admin** or **Super Admin** adds it:

1. Open any page in the Drupal Canvas editor.
2. Click **Templates**, then **Vartheme\_bs5 theme** under **Page templates**.
3. Click **Library** and search for `Language switcher`. It is in the **System** group. Drag it into the **Header**, for example next to the search.
4. Switch the preview to **Mobile** to check it still fits in the header, then publish the page template from **Review changes**.

{% hint style="warning" %}
Opening the page template can mark it **Changed** before you edit anything. Publish only the change you made; see [Page Templates](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/page-templates.md).
{% endhint %}

<figure><img src="https://410909369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcuWLZ87gvtX5vA2YGD%2Fuploads%2Fgit-blob-b66cbe1df6485d29d70a836881ebd1296897f191%2Ftranslation-switcher-01-component.png?alt=media" alt="The page template open in the Drupal Canvas editor, with the Library searched for Language switcher and the Language switcher component listed in the System group, next to the header with the logo, the main menu and the search"><figcaption><p>Finding the Language Switcher in the Library</p></figcaption></figure>

The switcher then shows on every page. See [Page Templates](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/page-templates.md).

## For Search Engines

Each page also tells search engines about its other language versions, so they show visitors the right one. This happens automatically.

## Tips

* Ask your site administrator to name each language in its own script, such as العربية and Français, so visitors recognise their language.
* Test the switcher on a page with translations and on one without.
