# Localization

## i18n Languages

Both the Overleaf Community Edition and Server Pro have been translated into multiple languages.

The language can be set via `OVERLEAF_SITE_LANGUAGE` with one of the following options:

* `en` - English (default)
* `es` - Spanish
* `pt` - Portuguese
* `de` - German
* `fr` - French
* `cs` - Czech
* `nl` - Dutch
* `sv` - Swedish
* `it` - Italian
* `tr` - Turkish
* `zh-CN` - Chinese (simplified)
* `no` - Norwegian
* `da` - Danish
* `ru` - Russian
* `ko` - Korean
* `ja` - Japanese
* `pl` - Polish
* `fi` - Finnish

Some of these are more complete than others, we always endeavor to have all supported languages fully translated, if you would like to help with our translations please get in touch!

## Multi-language support

Overleaf can support multiple languages per container. This is done via different domains configured to respond in a set language using the environment variable `OVERLEAF_LANG_DOMAIN_MAPPING` with an escaped JSON string.

```
OVERLEAF_LANG_DOMAIN_MAPPING = '
    {
        "www": {
        "lngCode": "en",
        "url": "https:\/\/www.example.com"
        },
        "fr": {
        "lngCode": "fr",
        "url": "https:\/\/fr.example.com"
        },
        "de": {
        "lngCode": "de",
        "url": "https:\/\/de.example.com"
        },
        "sv": {
        "lngCode": "sv",
        "url": "https:\/\/sv.example.com"
        },
        "zh": {
        "lngCode": "zh-CN",
        "url": "https:\/\/zh.example.com"
        },
        "es": {
        "lngCode": "es",
        "url": "https:\/\/es.example.com"
        }
    }'
```


---

# 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.overleaf.com/on-premises/configuration/overleaf-toolkit/localization.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.
