Description Usage Arguments Value Examples
Translates text to the specified language
1 | yandex_translate(yandex_api_key, text = "", lang = "")
|
yandex_api_key |
yandex API key |
text |
The text to translate. The maximum size of the text being passed is 10000 characters. |
lang |
The translation direction. You can use any of the following ways to set it: As a pair of language codes separated by a hyphen ("from"-"to"). For example, en-ru indicates translating from English to Russian. As the final language code (for example, ru). In this case, the service tries to detect the source language automatically. |
translated text (character type) See https://tech.yandex.com/translate/doc/dg/reference/translate-docpage/ for more details
1 | translated_text = yandex_translate(yandex_api_key, text="voglio mangiare cena", lang="it-en")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.