# Translation by Flag

<figure><img src="https://840554241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwtZ7bWYVAuVnh9llGL79%2Fuploads%2FLPSrz6w6HgYpdI6XhYTU%2Fflagreaction1.gif?alt=media&#x26;token=4edbf077-6355-4c52-b6eb-bee025aaab76" alt=""><figcaption></figcaption></figure>

## Enable it

This is very simple just run the command `/flagreaction toggle` it will enable or disable the feature (be sure it is enabled)

## Keep the server clean

Some of you will want to keep the server clean, so you will want to make the translated message disappearing after a while, here is how you can do it. Run the command `/flagreaction config auto-disappear (delay)`, the delay is in seconds. After X second(s), the translated message will be automatically deleted. If you want to disable this feature set the delay to 0.

<figure><img src="https://840554241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwtZ7bWYVAuVnh9llGL79%2Fuploads%2FufWiPtDWu3F4dYUGFtNJ%2Fflagreaction3.gif?alt=media&#x26;token=f32bb546-9c6f-4383-96e9-34b8961f8d02" alt=""><figcaption></figcaption></figure>

## Sending translation in private messages (\*Premium only)

Some of you will want to send the translation in private message only and not on your server. This can be done using `/flagreaction config send-in-pm`.

<figure><img src="https://840554241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwtZ7bWYVAuVnh9llGL79%2Fuploads%2FSsHnnDgHscLYGFlRKnUG%2Fflagreaction4.gif?alt=media&#x26;token=484b72d6-c762-45b6-860f-8e711594dc1f" alt=""><figcaption></figcaption></figure>

## Send in thread

You can also send the translations in thread if needed. This is another way to "keep the server clean". This option can be enabled using `/flagreaction config send-in-thread`.

<figure><img src="https://840554241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwtZ7bWYVAuVnh9llGL79%2Fuploads%2FF8cZcq0hXMNF8I8owOlE%2Fflagreaction5.gif?alt=media&#x26;token=bdd20b0f-6862-48b2-adec-75420b544030" alt=""><figcaption></figcaption></figure>

## Configure the style

You can also choose a style from the list below:

* Embed (default)
* Text
* Webhook

The command is `/flagreaction config style`.

<figure><img src="https://840554241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwtZ7bWYVAuVnh9llGL79%2Fuploads%2FYGCT51vXnnMztQC6rPD8%2Fflagreaction2.gif?alt=media&#x26;token=da2966e9-7b5f-48af-980f-bf2eaaad7542" alt=""><figcaption></figcaption></figure>

## That's all

This is all! You can start reacting to any message (which is not too old) with a flag and it will automatically translate in every languages of the corresponding country.

{% hint style="danger" %}
**Need to know:** You might want this feature not working in some channels like announcements one to not spam it for example. Just remove the permission of iTranslator to send message in this specific channel and then it will not try to translate in this channel when a user react with a flag.
{% endhint %}


---

# 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.itranslator.app/amazing-features/translation-by-flag.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.
