# Change the active language

By default an app will display the text and apply the formatting settings for the [default language](/reference/resources/internationalization.md). To set a different language you need to run an [action](/reference/actions.md), either automatically or triggered by the user, that contains the [Set client language action node](/library/action-nodes/set-client-language.md). The selected language is stored in the [built-in App variable](/reference/apps/data/app-variables.md#built-in-app-variables) **Active Language**.

## Step 1

Add a Select component to the UI with **Value** bound to `App Variables.Active Language`. In the app, the drop-down list will be populated with the [languages](/reference/resources/internationalization.md#add-a-new-language) that you have added to your solution and the active language will be selected.

## Step 2

Use the **On Value Change** event handler of the Select component to run a new action. In that action, add the [Set client language action node](/library/action-nodes/set-client-language.md). Set the **Language from data** property to `App Variables.Active Language`. Now, when a new selection is made from the drop-down in the UI, the active language will be applied to the app for that user.

Note that this configuration will not store the user's selection for future sessions. To do that, you might want to store their preference in an object attached to their user. Then, you can run an action using the [On app load event handler](/reference/apps/app-settings.md#event-handlers) with [Set client language](/library/action-nodes/set-client-language.md) and **Language from data** bound to the object class property where you have the preference stored.


---

# 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.appfarm.io/how-to/enhance-your-app/change-the-active-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.
