Skip to content

A powerful translation tool plugin based on Google Translate service, supporting text translation between multiple languages.

License

Notifications You must be signed in to change notification settings

svcvit/dify-plugin-google_translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Translate Plugin

google_translate

Author: svcvit Version: 0.0.1 Type: plugin

Description

A powerful translation tool plugin based on Google Translate service, supporting text translation between multiple languages.

Features

  • Automatic source language detection
  • Support for multiple target languages
  • No API key required
  • Fast response and accurate translation

Usage Guide

Parameters

  1. content (Required)

    • Type: string
    • Description: Text content to be translated
    • Example: "Hello World"
  2. 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 ...

Response Format

The plugin returns the translated text content. In case of any errors during translation, it will return the corresponding error message.

Example Usage

# Example parameters
parameters = {
    "content": "Hello, world",
    "dest": "zh-cn"
}

# Expected output
"你好,世界"

About

A powerful translation tool plugin based on Google Translate service, supporting text translation between multiple languages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages