# Change App Language

{% hint style="warning" %}
[Multi Language](/extensions/multi-language.md) feature must be enable to use this JS Bridge.
{% endhint %}

To make it easy for you to update the app language based on user preferences or location, we’ve exposed the JavaScript function twinr\_language\_onchange("LANGUAGE CODE"). This function allows you to switch languages instantly in your app.

To change the app language, call the `twinr_language_onchange()` function from your website’s JavaScript and pass the appropriate language code as a parameter.

```javascript
// Change app language to Spanish
twinr_language_onchange("es");

// Change app language to French
twinr_language_onchange("fr");
```


---

# 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://help.twinr.dev/js-bridge/change-app-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.
