> ## Documentation Index
> Fetch the complete documentation index at: https://docs.poly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Languages

> Configure the default language and additional languages that a PolyAI agent supports.

Languages configure which languages your agent supports. A project has one default language and zero or more additional languages.

Language configuration drives translation validation — every configured language must have an entry in each translation key.

## Location

Languages are defined in:

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
agent_settings/languages.yaml
```

The file is optional. When absent, the project runs as a single-language agent in the platform default.

## What languages contains

| Field | Description |
| - | - |
| `default_language` | The primary language code in BCP 47 format (e.g. `en-GB`). |
| `additional_languages` | List of additional language codes the agent supports. |

## Example

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
default_language: en-GB
additional_languages:
  - fr-FR
  - de-DE
```

## Validation

* `default_language` is required and must be a valid BCP 47 language tag.
* Each entry in `additional_languages` must be a valid BCP 47 language tag.
* A language code cannot appear as both the default and an additional language.
* Duplicate additional language codes are not allowed.

> [!TIP]
>
> **Use region subtags**
>
> Use standard BCP 47 codes with region subtags (e.g. `en-GB`, `fr-FR`, `de-DE`) so downstream voice and TTS configuration can resolve unambiguously.

## Best practices

* set the default language to the primary language of your user base
* add additional languages only when translations are ready for every translation key
* keep BCP 47 codes consistent across `languages.yaml`, `translations.yaml`, and voice settings

## Related pages

> [card] [Translations](https://docs.poly.ai/adk/reference/resources/translations.md)
>
> Define the localized text strings used for each configured language.

> [card] [Agent settings](https://docs.poly.ai/adk/reference/resources/agent_settings.md)
>
> See how `languages.yaml` fits alongside the persona and rules.

> [card] [Voice settings](https://docs.poly.ai/adk/reference/resources/voice_settings.md)
>
> Configure per-language voice and TTS behaviour for multilingual agents.
