# Locale switcher

The **Locale Switcher** component enables users to change the language of the application effortlessly. It dynamically adjusts the locale based on user selection and supports multiple languages as defined in the configuration.

<figure><img src="/files/FH4lma63wys0GFMOHDUF" alt="" width="165"><figcaption></figcaption></figure>

* **Multi-language support** – Displays available languages from `SUPPORTED_LOCALES`.
* **Automatic detection** – Identifies the current locale based on the URL path.
* **Visual indicators** – Uses country flags (`LOCALE_ICON`) to represent languages.
* **Customizable** – Easily extendable by adding more supported locales.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://accelerator.gitbook.io/docs/features/locale-switcher.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
