> ## Documentation Index
> Fetch the complete documentation index at: https://sleekplan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How visitors get their language

> Where each visitor's language comes from in the widget and on the portal, how users pick one, how to see or change a customer's language, the language addresses of your portal, emails in each user's language, and popups, action items and segments by language.

Every visitor sees your board in one of the languages you offer. Sleekplan picks it for them, and they can change it. This page explains where the language comes from and everything that follows it.

## How the language is chosen

Sleekplan goes through these sources in order and takes the first one that names a language you offer.

**In the widget**

1. The language your product sets through the JavaScript SDK.
2. The signed-in user's own language.
3. The visitor's browser language, when **Detect the browser language** is on.
4. Your default language.

**On the portal, and in an embedded iFrame**

1. The signed-in user's own language.
2. The language in the address, like `/de/feedback/123`. A link shared in one language stays in that language.
3. The language the visitor picked in the portal's language switcher.
4. The visitor's browser language, when **Detect the browser language** is on.
5. Your default language.

The browser detection is set on [**Settings → Public Portal & Widget → Languages**](https://app.sleekplan.com/settings/languages), under **Behavior**.

## A user's own language

Every customer can have a language stored on their account. It comes from:

* **your product, through single sign-on**: your developers add the user's language to the sign-in token, and it's updated at every sign-in;
* **your product, through the JavaScript SDK**: when your product sets the language while a user is signed in, it's saved for them;
* **the user**: in their account settings in the widget or on the portal;
* **their first sign-in**: a user who has no language yet gets the one they were using the board in when they sign in or sign up;
* **you**: on the customer's page in the dashboard (see below).

Your developers find the details in the [developer docs](https://sleekplan.com/docs/sdk/languages.md). A stored language you don't offer, or no longer offer, is kept on the customer and counts again as soon as you offer it.

## The language switcher on the portal

When **Language switcher on the portal** is on and you offer at least two languages, visitors who aren't signed in see a language menu in the portal's header. It lists every language you offer by its own name, like *Deutsch* or *Français*.

Picking a language loads the page in that language and remembers the choice in the visitor's browser for a year. Signed-in users don't see the menu: they get their own language, which they change in their account settings.

The widget has no language switcher. There, the language comes from your product, the user's account or their browser.

## Users pick their language

When you offer at least two languages, signed-in users find a **Language** field in their account settings, in the widget and on the portal. Their pick is saved at once and stored on their account, so their emails follow it too. The widget switches right away, and the portal reloads the page in the new language.

## See or change a customer's language

**1. Open the customer**

Go to [**Customers**](https://app.sleekplan.com/customers) and open the customer. Their language is shown in the **Record** section, or **Not set** when they have none.

**2. Edit the language**

Click **Edit** at the top of the page, then pick a language in **Language**. Choose **Not set** to remove it. A language you no longer offer is marked **(inactive)**.

![A customer's page in edit mode with the Language select open, offering Not set, English, German, French and Spanish](https://mintcdn.com/sleekplangmbh/uDctJrrSVBArIq_q/images/portal-languages-customer.png?fit=max\&auto=format\&n=uDctJrrSVBArIq_q\&q=85\&s=15a1b0b3e414e2afc54b12a19820b8ad)

**3. Save**

Click **Save**.

If your product sends languages through single sign-on, the customer's next sign-in sets the language your product sends.

## Language addresses on your portal

Your portal shows your default language at its plain addresses and every other language under its own prefix:

| Page | Default language | Another language |
| - | - | - |
| Feedback board | `/feedback` | `/de/feedback` |
| A post | `/feedback/123` | `/fr/feedback/123` |
| Changelog | `/changelog` | `/ja/changelog` |

Most prefixes are the language's code, like `de`, `fr` or `ja`. Czech is `cs`, Chinese (traditional) `zh-hant`, Chinese (simplified) `zh-cn` and Portuguese (Brazil) `pt-br`.

* A visitor who opens a plain address is taken to their language when it's one you offer: the language they picked, or with detection on, their browser's.
* An address with a language you don't offer goes to the plain address.
* Links copied from the widget, like a post's share link, point to the portal in the visitor's language.
* Each language has its own changelog RSS feed, such as `/de/changelog/rss.xml`.

**Search engines** see every language as its own page. The language versions of a page are linked to each other, and your sitemap lists each language version that has content. Search engines don't ask for a language, so they aren't redirected and can list every version. Whether they list your portal at all is decided by [search engine indexing](https://sleekplan.com/help/portal-widget/search-engine-indexing.md).

## Emails in each user's language

* Notification emails go out in the user's language when you offer it, and in your default language otherwise.
* The post, comment or changelog entry in the email is shown in the user's language, and so are your category and status names.
* Links in the email open your portal in the user's language.
* The sign-in code email uses the language the visitor is using your board in.
* With automatic translation on, a changelog notification waits up to 10 minutes for the entry's translations, then goes out with what's ready.
* Your [customized email templates](https://sleekplan.com/help/portal-widget/email-templates.md#templates-and-languages) are used for your default language. The other languages get Sleekplan's standard template in their language, inside your email layout.

Emails to your team stay in English and show the original content.

## Show popups and action items in some languages

You can limit popups and widget action items to visitors who use your board in certain languages. The field appears once you offer at least two languages.

* **Popups**: in the popup's **Audience**, pick the languages in **Languages**. See [Popups](https://sleekplan.com/help/portal-widget/popups.md). This works for visitors who aren't signed in too.

  ![The Audience section of a popup with the Languages select open, listing English, German, French and Spanish](https://mintcdn.com/sleekplangmbh/uDctJrrSVBArIq_q/images/portal-languages-popup-audience.png?fit=max\&auto=format\&n=uDctJrrSVBArIq_q\&q=85\&s=942b5aa527b0423d39af91083d9d80b9)

* **Action items**: when you edit an item of the widget's action screen, pick the languages in **Languages**. See [Set up a widget action screen](https://sleekplan.com/help/portal-widget/widget-action-screen.md).

  ![The Edit action item dialog with the Languages field highlighted below Audience](https://mintcdn.com/sleekplangmbh/uDctJrrSVBArIq_q/images/portal-languages-action-item.png?fit=max\&auto=format\&n=uDctJrrSVBArIq_q\&q=85\&s=4144de515d1e55e86278e4e5e0e35dcc)

No selection means every language. To show a popup in every language with different wording, create one popup per language.

For signed-in users, [segments](https://sleekplan.com/help/account-security/segments.md) can also filter by the **Language** field, the language stored on the customer.

## Related

> [card] [Set up your languages](https://sleekplan.com/help/portal-widget/languages/set-up.md)
>
> Default language, additional languages and the behavior switches.

> [card] [Web storage and browser cookies](https://sleekplan.com/help/portal-widget/cookies.md)
>
> The cookies the portal uses to remember a visitor's language.

> [card] [Set the visitor's language (developer docs)](https://sleekplan.com/docs/sdk/languages.md)
>
> Single sign-on, the JavaScript SDK, iFrame addresses and the REST API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.