> 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/fundamentals/context-commands.md).

# Context Commands

Translate a message or detect its language with a right-click.

Context commands are shortcuts for the slash commands. Right-click a message (or long-press it on mobile), open **Apps** and choose one of them:

* **Translate Text** translates the message.
* **Detect Language** tells you in which language the message is written.

<figure><img src="https://3955709218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuW8Vjy8RHWcWMwcAWdcy%2Fuploads%2Fgit-blob-615df8e0326f43f00f8d86055da3018c46081b59%2Ftranslate2.gif?alt=media" alt="Translating a message from the Apps menu"><figcaption><p>Translate Text</p></figcaption></figure>

<figure><img src="https://3955709218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuW8Vjy8RHWcWMwcAWdcy%2Fuploads%2Fgit-blob-0a2e50bdb3fc2806690aba4ca6fdd89f00f44181%2Fdetect2.gif?alt=media" alt="Detecting the language of a message from the Apps menu"><figcaption><p>Detect Language</p></figcaption></figure>

{% hint style="info" %}
The message is translated into the language of your Discord app. In the example above Discord is set to French, so the message is translated into French. You can choose another language: see [Manually change native language](/fundamentals/context-commands/manually-change-native-language.md).
{% endhint %}

Context commands also work in private messages and in servers that do not have the bot, once iTranslator is added to your account. See [User-Installable App](/user-installable-app/user-installable-app.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.itranslator.app/fundamentals/context-commands.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
