# Translation

## Introduction

Talkbot can be used to translate one language to another using Google's translation API.&#x20;

To enable this use !tolang and a language code from [Supported languages](/talkbot/supported-languages.md). Talkbot will automatically attempt to detect which language you're speaking in and attempt to translate it to your target language.

Example, translate to German:

```
!tolang de
```

Once this is enabled the bot will translate all your text to the target language before speaking.&#x20;

To disable translation use the special keyword 'default':

```
!tolang default
```

When using translation the Talkbot will automatically change your personal language to the target language of !tolang to ensure that the translation works appropriately.

Translation resets every time you follow or permit with the bot. This means you will need to use !tolang each time you get the Talkbot to follow or permit.&#x20;


---

# 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://nullabork.gitbook.io/talkbot/use-cases/translation.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.
