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

# Language and theme

> How the customer changes the portal language and light or dark theme.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | Top bar of every section |
| Menu | Language selector and theme selector |
| Feature flag | None |
| Who sees it | Every customer |
| Last verified | 2026-11-10 against `develop` (`c10d24f33d`) |

## What it is for

The customer chooses the portal language (Spanish, English, French, Italian or Portuguese) and whether it looks light, dark or follows the device setting.

## How to get there

In the top bar: the selector with the flag and language, and the three theme buttons. On mobile the language is only the flag and the theme is a single button with the current theme's icon.

![Language: the selector changes the address language prefix and remembers it. Theme: Light, Dark or System is stored in a cookie the server also reads.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/preferences-process.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=73e5a3db6e4659c340813f781ba5b633)

How language and theme are kept

## What the customer sees

> [tab] Desktop
>
> ![Language selector open with English, Español, Français, Italiano and Português.](https://mintcdn.com/bbrands/Gtthq4FwpUS-9kET/images/portal-customer-screens/preferences/language.en.desktop.webp?fit=max\&auto=format\&n=Gtthq4FwpUS-9kET\&q=85\&s=4c8c86a1572884ff905df4a4536300b1)

> [tab] Mobile
>
> ![Language selector open with English, Español, Français, Italiano and Português.](https://mintcdn.com/bbrands/RmQmo8S4AibSINhm/images/portal-customer-screens/preferences/language.en.mobile.webp?fit=max\&auto=format\&n=RmQmo8S4AibSINhm\&q=85\&s=c223c18ef90242c2433d65b0009bf5c0)

| Element | What it does |
| - | - |
| Language selector | Change language |
| Theme | **Light**, **Dark**, **System** |

## Step by step

**1. Change language**

Opens the selector and picks the language. The address changes (for example from `/es/account` to `/en/account`) and the portal shows in that language.

**2. Change theme**

Taps **Light**, **Dark** or **System**. On mobile, taps the theme button and picks from the menu.

> [tab] Desktop
>
> ![The Account section in dark theme.](https://mintcdn.com/bbrands/Gtthq4FwpUS-9kET/images/portal-customer-screens/preferences/dark-theme.en.desktop.webp?fit=max\&auto=format\&n=Gtthq4FwpUS-9kET\&q=85\&s=8a21a05dc8af8a2319eb0d6563fff72e)
>
> Dark theme

> [tab] Mobile
>
> ![Theme button menu open on mobile with Light checked, Dark and System.](https://mintcdn.com/bbrands/RmQmo8S4AibSINhm/images/portal-customer-screens/preferences/theme-menu.en.mobile.webp?fit=max\&auto=format\&n=RmQmo8S4AibSINhm\&q=85\&s=94d8e27e0e8f5dcb5f2aa60e283b1a6e)
>
> Theme menu on mobile

## Business rules

| ID | Rule |
| - | - |
| R-01 | Languages: Spanish (default), English, French, Italian and Portuguese |
| R-02 | The language is in the address; a link in another language opens the portal in that language |
| R-03 | The theme is kept in the `portal-customer-theme` cookie (and `localStorage` as a fallback) |
| R-04 | System follows the device's light or dark setting |

## States and messages

| State | What the customer sees | Why | What to do |
| - | - | - | - |
| Active language | Its flag and name in the selector | Address prefix | — |
| Active theme | Its button highlighted; on mobile, its icon on the theme button and a ✓ in the menu | Theme cookie | — |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| — (no errors of its own) | — | — | — |

## Why it works this way

The language in the address lets shared links open in the right language, and the theme cookie lets the server paint the chosen theme from the very first moment, without flicker.

## Technical detail

| Aspect | Detail |
| - | - |
| Language | `app/lib/shell/language-switcher.tsx`, `app/i18n/*` |
| Theme | `app/lib/theme/*` (`THEME_COOKIE_NAME`) |
| Texts | `messages/{es,en,fr,it,pt}.json` |

## FAQ and support cases

> [accordion] Some texts show in Spanish with the portal in another language
>
> That key's translation may be missing, or the text comes from the CMS or the merchant in a single language.

## Related and history

* [Navigation map](https://docs.bbrands.io/portal-customer/navigation-map.md)

| Date | Change |
| - | - |
| 2026-11-10 | First version |


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