> For the complete documentation index, see [llms.txt](https://docs.thunkable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thunkable.com/snap-to-place/translator.md).

# 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>
