Author: svcvit Version: 0.0.1 Type: plugin
A powerful translation tool plugin based on Google Translate service, supporting text translation between multiple languages.
- Automatic source language detection
- Support for multiple target languages
- No API key required
- Fast response and accurate translation
-
content (Required)
- Type: string
- Description: Text content to be translated
- Example:
"Hello World"
-
dest (Required)
- Type: string
- Description: Target language code
- Supported language codes:
- ar: Arabic
- bg: Bulgarian
- ca: Catalan
- zh-cn: Chinese (Simplified)
- zh-tw: Chinese (Traditional)
- cs: Czech
- da: Danish
- nl: Dutch
- en: English ...
The plugin returns the translated text content. In case of any errors during translation, it will return the corresponding error message.
# Example parameters
parameters = {
"content": "Hello, world",
"dest": "zh-cn"
}
# Expected output
"你好,世界"