# AITranslateConfig

interface

The configuration of the [AI Translate feature](module_ai_aitranslate_aitranslate-AITranslate.md).

The properties defined in this config are set in the `config.ai.translate` namespace.

```typescript
ClassicEditor
	.create( {
		ai: {
			translate: {
				// AI Translate configuration.
			}
		}
	} )
	.then( ... )
	.catch( ... );
```

See [the full AI configuration](module_ai_aiconfig-AIConfig.md).

See [all editor options](module_core_editor_editorconfig-EditorConfig.md).

<a id="properties">

## Properties

<a id="member-languages">

### `languages?: Array<AITranslateLanguage>`

The list of languages available in the AI Translate feature.

The list must be an array of objects containing the `id` and `label` properties like on example below:

```typescript
ClassicEditor
	.create( {
		ai: {
			translate: {
				languages: [
					{
						id: 'german',
						label: 'German'
					},
					{
						id: 'french',
						label: 'French'
					}
				]
			}
		}
	} )
	.then( ... )
	.catch( ... );
```

Languages available by default are:

```
{
	label: 'English',
	id: 'english'
},
{
	label: 'Spanish',
	id: 'spanish'
},
{
	label: 'French',
	id: 'french'
},
{
	label: 'German',
	id: 'german'
},
{
	label: 'Chinese (Simplified)',
	id: 'chinese'
},
{
	label: 'Japanese',
	id: 'japanese'
},
{
	label: 'Russian',
	id: 'russian'
},
{
	label: 'Portuguese',
	id: 'portuguese'
},
{
	label: 'Korean',
	id: 'korean'
},
{
	label: 'Italian',
	id: 'italian'
}
```

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
