# AIChatShortcutTranslateDefinition

interface

A shortcut that interacts with the AI Translate.

**Note**: This shortcut type requires the [`AITranslate`](module_ai_aitranslate_aitranslate-AITranslate.md) plugin to be loaded.

This type of shortcut can run the translation with any of the available languages. It can be [one of the languages available by default](../features/ai/ckeditor-ai-translate.md#languages-list), or a custom language defined by the integrator via the [`config.ai.translate.languages`](module_ai_aitranslate_aitranslate-AITranslateConfig.md#member-languages) configuration option.

Example of a shortcut that opens the AI Translate mode:

```typescript
{
	id: 'open-translate',
	label: 'Open translate',
	type: 'translate'
}
```

Example of a shortcut that runs the translation to Spanish:

```typescript
{
	id: 'translate-to-spanish',
	label: 'Translate this document to Spanish',
	type: 'translate',
	language: 'spanish'
}
```

<a id="properties">

## Properties

<a id="member-icon">

### `icon?: string` _(readonly)_

The icon of the shortcut in SVG string format.

Learn more about setting the icon in the [`IconView` API reference](module_ui_icon_iconview-IconView.md#member-content).

**Note**: When not provided, a generic icon associated with the shortcut type will be used instead.

<a id="member-id">

### `id: string` _(readonly)_

The unique identifier of the shortcut.

<a id="member-label">

### `label: string` _(readonly)_

The human-readable label of the shortcut.

<a id="member-language">

### `language?: string` _(readonly)_

The language to be used for the translation.

See [`languages`](module_ai_aitranslate_aitranslate-AITranslateConfig.md#member-languages) for the list of supported languages.

**Note**: When not provided, the shortcut will switch the user interface to the AI Translate.

<a id="member-type">

### `type: 'translate'`

The type of the shortcut.

---

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