[PR #1420] [MERGED] Enable dynamic destination language selection in Google Translate tool #1878

Closed
opened 2026-02-16 10:24:15 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/1420
Author: @shamspias
Created: 8/5/2025
Status: Merged
Merged: 8/5/2025
Merged by: @crazywoola

Base: mainHead: feat/dynamic-translation-lang


📝 Commits (6)

  • 34c2175 feat: add support for bangla and custom destination language in translate tool
  • a403b32 chore: bump plugin version from 0.0.2 to 0.0.3 in manifest
  • 53e7d38 docs: add usage details for custom destination language with variable example
  • 7f16869 docs: add image for custom destination language configuration
  • 1e5ef4c chore: bump dify_plugin version to 0.4.3 in requirements.txt
  • 5d0a772 feat: add custom destination language support and improve error handling in GoogleTranslate tool

📊 Changes

6 files changed (+66 additions, -13 deletions)

View changed files

📝 tools/google_translate/README.md (+21 -5)
tools/google_translate/_assets/google_translate_configure_custom.png (+0 -0)
📝 tools/google_translate/manifest.yaml (+1 -1)
📝 tools/google_translate/requirements.txt (+1 -1)
📝 tools/google_translate/tools/translate.py (+24 -6)
📝 tools/google_translate/tools/translate.yaml (+19 -0)

📄 Description

Related Issues or Context

  • Related discussion: langgenius/dify#23378
  • Added support for custom destination language input to enable more flexible translations (e.g., for Bangla bn), updated related documentation and configuration images, and bumped dify_plugin version for compatibility.

This PR contains Changes to Non-Plugin

  • Documentation
  • Other

This PR contains Changes to Non-LLM Models Plugin

  • I have Run Comprehensive Tests Relevant to My Changes
  • Added screenshot for custom destination language configuration

This PR contains Changes to LLM Models Plugin

  • My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking)
  • My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node)
  • My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.)
  • My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.)
  • My Changes Affect Structured Output Format (JSON, XML, etc.)
  • My Changes Affect Token Consumption Metrics
  • My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.)
  • Other Changes (Add New Models, Fix Model Parameters etc.)

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.5.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: , I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/1420 **Author:** [@shamspias](https://github.com/shamspias) **Created:** 8/5/2025 **Status:** ✅ Merged **Merged:** 8/5/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `feat/dynamic-translation-lang` --- ### 📝 Commits (6) - [`34c2175`](https://github.com/langgenius/dify-official-plugins/commit/34c2175b2bb28fb02bae05a9658127c1809f0237) feat: add support for bangla and custom destination language in translate tool - [`a403b32`](https://github.com/langgenius/dify-official-plugins/commit/a403b327a05fa746967138ce1611b637a43d9a41) chore: bump plugin version from 0.0.2 to 0.0.3 in manifest - [`53e7d38`](https://github.com/langgenius/dify-official-plugins/commit/53e7d38fdcdb545fe5bd70e725e1aab612600c12) docs: add usage details for custom destination language with variable example - [`7f16869`](https://github.com/langgenius/dify-official-plugins/commit/7f16869b893b7afbd16fdfa6c33b1a07cfb04d7e) docs: add image for custom destination language configuration - [`1e5ef4c`](https://github.com/langgenius/dify-official-plugins/commit/1e5ef4cb2073cb544a9f8a72e4a04e1e84792bff) chore: bump dify_plugin version to 0.4.3 in requirements.txt - [`5d0a772`](https://github.com/langgenius/dify-official-plugins/commit/5d0a772ed40bde6704b3c4e98ec3d259f355a46d) feat: add custom destination language support and improve error handling in GoogleTranslate tool ### 📊 Changes **6 files changed** (+66 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `tools/google_translate/README.md` (+21 -5) ➕ `tools/google_translate/_assets/google_translate_configure_custom.png` (+0 -0) 📝 `tools/google_translate/manifest.yaml` (+1 -1) 📝 `tools/google_translate/requirements.txt` (+1 -1) 📝 `tools/google_translate/tools/translate.py` (+24 -6) 📝 `tools/google_translate/tools/translate.yaml` (+19 -0) </details> ### 📄 Description ## Related Issues or Context <!-- ⚠️ NOTE: This repository is for Dify Official Plugins only. For community contributions, please submit to https://github.com/langgenius/dify-plugins instead. - Link Related Issues if Applicable: #issue_number - Or Provide Context about Why this Change is Needed --> * Related discussion: [langgenius/dify#23378](https://github.com/langgenius/dify/discussions/23378) * Added support for custom destination language input to enable more flexible translations (e.g., for Bangla `bn`), updated related documentation and configuration images, and bumped dify\_plugin version for compatibility. ## This PR contains Changes to *Non-Plugin* <!-- Put an `x` in all the boxes that apply by replacing [ ] with [x] For example: - [x] Documentation --> * [x] Documentation * [ ] Other ## This PR contains Changes to *Non-LLM Models Plugin* * [x] I have Run Comprehensive Tests Relevant to My Changes <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> * Added screenshot for custom destination language configuration ## This PR contains Changes to *LLM Models Plugin* <!-- LLM Models Test Example: --> <!-- https://github.com/langgenius/dify-official-plugins/blob/main/.assets/test-examples/llm-plugin-tests/llm_test_example.md --> * [ ] My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking) * [ ] My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node) * [ ] My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.) * [ ] My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.) * [ ] My Changes Affect Structured Output Format (JSON, XML, etc.) * [ ] My Changes Affect Token Consumption Metrics * [ ] My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.) * [ ] Other Changes (Add New Models, Fix Model Parameters etc.) ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) * [x] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) ## Dify Plugin SDK Version * [x] I have Ensured `dify_plugin>=0.3.0,<0.5.0` is in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) <!-- ⚠️ NOTE: At Least One Environment Must Be Tested. --> ### Local Deployment Environment * [x] Dify Version is: <!-- Specify Your Version (e.g., 1.2.0) -->, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt - No Breaking Changes in Dify That May Affect the Testing Result --> ### SaaS Environment * [ ] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:24:15 -05:00
yindo closed this issue 2026-02-16 10:24:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1878