# Translator

{% embed url="<https://youtu.be/eM0vqO8gM6Q>" %}

## Properties

Source Language: Language of text that is to be translated. Can be changed in blocks.

Target Language: Language to translate text to. Can be changed in blocks.

Google Cloud Translation API Key: If you have your own Google API key, enter it here. Uses Thunkable's `default` key by default.

## Blocks

### Functions

#### Translate

![](/files/-MYdfp6ZZe1J48cFwSfE)

Translates a given piece of text from Source Language to Target Language. Returns result.

### Properties

#### Set/Get Source Language

Set source language using drop-down menu. Can also be set with [Text](/snap-to-place/text.md) blocks or [variables](/snap-to-place/variables.md). Any language code from [this list ](https://yandex.com/dev/translate/doc/dg/concepts/api-overview.html)can be used.

Get source language.

![](/files/-MYdgJTn2PqXTIWvq5_I)

#### Set/Get Target Language

Set target language using drop-down menu. Can also be set with [Text](/snap-to-place/text.md) blocks or [variables](/snap-to-place/variables.md). Any language code from [this list ](https://yandex.com/dev/translate/doc/dg/concepts/api-overview.html)can be used.

Get target language.

![](/files/-MYdgfb7VGa1X-CpRXin)

#### Set/Get Google Key

Set Google Cloud Translation API Key.&#x20;

<figure><img src="/files/rvw2l6gAOe7h2w7neqYk" alt=""><figcaption></figcaption></figure>

Get Google Cloud Translation API Key.

<figure><img src="/files/je96tTuAy2PzKmpfCKir" alt=""><figcaption></figcaption></figure>


---

# 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.thunkable.com/snap-to-place/translator.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.
