Google requests
translate
translate(text: str, src_lang: str, dest_lang: str) -> str
Translate the text
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
The text to translate |
required |
src_lang
|
str
|
The source language |
required |
dest_lang
|
str
|
The destination language |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The translated text |