> For the complete documentation index, see [llms.txt](https://docs.itranslator.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.itranslator.app/amazing-features/automatic-translation/configure-style-and-format.md).

# Configure style & format

Choose how the translations look, and write your own message format.

The **style** decides how a translation is posted. The **format** lets you rewrite its content with your own text and variables.

<figure><img src="https://3955709218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuW8Vjy8RHWcWMwcAWdcy%2Fuploads%2Fgit-blob-2e4e53ee22e05d7768b72abcd2919284319a7a66%2Fautotranslate2.gif?alt=media" alt="Changing the style of an Auto-Translate configuration"><figcaption></figcaption></figure>

## Style <a href="#style" id="style"></a>

Three styles are available.

{% tabs %}
{% tab title="Text" %}
A regular message sent by iTranslator.

<figure><img src="https://3955709218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuW8Vjy8RHWcWMwcAWdcy%2Fuploads%2Fgit-blob-761b763371d8f5da235e940a98c3baa43688cc3e%2Fimage%20(21).png?alt=media" alt="A translation in the Text style"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Embed" %}
A translation inside an embed.

<figure><img src="https://3955709218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuW8Vjy8RHWcWMwcAWdcy%2Fuploads%2Fgit-blob-c28d882f29a3ed39809789161d1e917461fcbe72%2Fimage%20(23).png?alt=media" alt="A translation in the Embed style"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Webhook" %}
A message that takes the name and the avatar of the original author, as if they had written it themselves.

<figure><img src="https://3955709218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuW8Vjy8RHWcWMwcAWdcy%2Fuploads%2Fgit-blob-0cf606987fc8d72819ccc786ab9606738f07903f%2Fimage%20(22).png?alt=media" alt="A translation in the Webhook style"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Change the style

{% tabs %}
{% tab title="Dashboard" %}
On the **Auto-Translation** page of the [dashboard](https://docs.itranslator.app/fundamentals/dashboard.md), click **Edit** on your configuration and choose the **Message Style**.
{% endtab %}

{% tab title="Command" %}
Run `/autotranslate config style`:

<figure><img src="https://3955709218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuW8Vjy8RHWcWMwcAWdcy%2Fuploads%2Fgit-blob-dc806fdd84f2b600cbfe8d10e5590de975095b2d%2Fimage%20(24).png?alt=media" alt="The /autotranslate config style command"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Format <a href="#format" id="format"></a>

{% hint style="info" %}
This feature requires [**Premium**](https://docs.itranslator.app/overview/premium.md).
{% endhint %}

Once you have a style, you can change what it contains: add the name of the author, a link to the original message, the flag of the language, and so on.

<figure><img src="https://3955709218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuW8Vjy8RHWcWMwcAWdcy%2Fuploads%2Fgit-blob-70da080d6802d341d42d0e16e172ddf8d8b9cad0%2Fautotranslate3.gif?alt=media" alt="Customizing the format of an Auto-Translate configuration"><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Dashboard" %}
Click **Edit** on your configuration and turn on **Use Custom Message Format**. The fields depend on the style of the configuration.
{% endtab %}

{% tab title="Command" %}
Run `/autotranslate config format`. A form opens with the fields of the current style:

<figure><img src="https://3955709218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuW8Vjy8RHWcWMwcAWdcy%2Fuploads%2Fgit-blob-b90f8fd6c76dbaa0131f4d6cc33bc6e1be94994a%2Fimage%20(25).png?alt=media" alt="The /autotranslate config format command"><figcaption></figcaption></figure>

Fill in the fields, then click **Submit**.
{% endtab %}
{% endtabs %}

| Style   | Fields you can customize                         |
| ------- | ------------------------------------------------ |
| Text    | Message                                          |
| Embed   | Title, Description, Thumbnail URL, Footer, Color |
| Webhook | Username, Content, Avatar URL                    |

{% hint style="warning" %}
Your format must contain the `{translation}` variable, otherwise there is nothing to display. It goes in the **Message** (Text), the **Description** (Embed) or the **Content** (Webhook).
{% endhint %}

**Example** for the Embed style:

| Field       | Value                                      |
| ----------- | ------------------------------------------ |
| Title       | `{source_language_flag} → {language_flag}` |
| Description | `{translation}`                            |
| Footer      | `{user_name} in #{source_channel_name}`    |

### Variables you can use everywhere in formats <a href="#variables-you-can-use-everywhere-in-formats" id="variables-you-can-use-everywhere-in-formats"></a>

Variables are replaced by their value each time a translation is sent.

| Variable                  | Description                                              |
| ------------------------- | -------------------------------------------------------- |
| {translation}             | Translated text.                                         |
| {original\_message}       | Content of the original message.                         |
| {original\_message\_link} | Jump URL to the original message.                        |
| {source\_language}        | Source language of the translation.                      |
| {language}                | Target language of the translation.                      |
| {source\_language\_flag}  | Flag emoji(s) of the source language of the translation. |
| {language\_flag}          | Flag emoji(s) of the target language of the translation. |
| {billed}                  | Cost of the translation (in billing).                    |
| {source\_channel}         | Mention of the source channel.                           |
| {source\_channel\_name}   | Name of the source channel.                              |
| {user}                    | Mention of the message author.                           |
| {user\_name}              | Effective name of the message author.                    |
| {user\_avatar}            | URL of the message author's avatar.                      |
| {user\_role}              | Name of the highest role of the user.                    |
| {user\_role\_mention}     | Mention of the highest role of the user.                 |
| {member}                  | Mention of the server member (if available).             |
| {member\_name}            | Effective name of the server member (if available).      |
| {member\_avatar}          | URL of the server member's avatar (if available).        |
| {guild\_member\_count}    | Total number of members in the server.                   |
| {guild\_boost\_count}     | Number of server boosts.                                 |
| {guild\_boost\_tier}      | Server boost level.                                      |
| {guild\_icon}             | URL of the server icon.                                  |
| {guild\_banner}           | URL of the server banner.                                |
| {guild\_channel\_count}   | Total number of channels in the server.                  |
| {guild\_role\_count}      | Total number of roles in the server.                     |
| {guild\_owner}            | Mention of the server owner (if available).              |

{% hint style="info" %}
**Is a variable missing?** Ask us to add it on our [Discord Support](https://discord.itranslator.app).
{% endhint %}
