# HOW TO CHANGE LOCALES

## SETTING THE LANGUAGE IN OUR SCRIPTS

**TO CHANGE THE LANGUAGE, OPEN `SETTINGS.LUA` AND UPDATE THE `Settings.Locale` OPTION.**\
**YOU CAN FIND A LIST OF AVAILABLE TRANSLATIONS INSIDE THE `LOCALES` FOLDER.**

**THE NAME OF THE FILE (WITHOUT THE `.LUA` EXTENSION) IS THE VALUE YOU SHOULD SET `Settings.Locale` TO.**\
**FOR EXAMPLE, IF THERE IS A LOCALE FILE CALLED `DE.LUA`, UPDATE THE CONFIG TO:**

```lua
Settings.Locale = "de"
```

***

## GUIDELINES

1. **THE LOCALE FILE MUST BE NAMED USING THE LANGUAGE CODE AND HAVE A `.LUA` EXTENSION.**\
   **EXAMPLES: `EN.LUA`, `FR.LUA`, `DE.LUA`, ETC.**
2. **WHEN CREATING A NEW LOCALE FILE, COPY AN EXISTING ONE (ENGLISH IS RECOMMENDED) AND REPLACE THE TRANSLATIONS ACCORDINGLY.**
3. **THE START OF THE FILE MUST KEEP THE VARIABLE DECLARATION, AND YOU MUST REPLACE THE EXISTING LANGUAGE CODE TO MATCH THE FILE NAME.**


---

# 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.rdstoreredm.com/guides/how-to-change-locales.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.
