by jingfelix · v0.1.0
Text translation using NiuTrans API
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: jingfelix
Version: 0.1.0
Type: tool
This plugin integrates with the NiuTrans API to provide high-quality text translation services. It supports translating text between various languages, offering automatic source language detection when the source language is not specified.
Functionality:
The translate_text tool translates input text from a source language to a target language using the NiuTrans API.
Parameters:
text (string, required): The text content to be translated.from_language (string, optional, default: "auto"): Source language code (e.g., en, zh, ja). If set to "auto", the plugin will auto-detect the source language.to_language (string, required): Target language code (e.g., en, zh, ja).Return Values: The tool returns a generator that yields:
translated_text (string): The translated text.source_language (string): The detected or specified source language code.target_language (string): The specified target language code.original_text (string): The original input text.error_code (string): Error code if the translation fails (empty string if successful).error_msg (string): Error message if the translation fails (empty string if successful).To use this plugin, you need to set up the NiuTrans API key. You can get your API key from the NiuTrans website at https://niutrans.com/cloud/api/list .
Fill in the APPID and APIKEY in the plugin's configuration page.
Enjoy using the plugin for text translation!
|
|
Please refer to the Privacy Policy for details on data collection, processing, and user rights.