# Setting visitor's language

By default your project appears in default (source) language to the user. There are two ways to switch to the desired language.

## 1. BabelShark language drop-down

<figure><img src="/files/V5sr6dJo7SMmEQ93rypB" alt=""><figcaption><p>Language drop-down in BabelShark account</p></figcaption></figure>

Read more here about language drop-down code snippet.

## 2. Change via JavaScript API

Call *babelShark.setLanguage(languageCode)* to switch current user to the desired language. The language setting will be stored within the user's browser.


---

# 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://docs.babelshark.net/babelshark-basics/setting-visitors-language.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.
