ComfyUI > Nodes > ComfyUI_Text_Translation > Text Translation V2

ComfyUI Node: Text Translation V2

Class Name

Text_Translation_V2

Category
Text Translation
Author
TFL-TFL (Account age: 2213days)
Extension
ComfyUI_Text_Translation
Latest Updated
2025-05-25
Github Stars
0.12K

How to Install ComfyUI_Text_Translation

Install this extension via the ComfyUI Manager by searching for ComfyUI_Text_Translation
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_Text_Translation in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Text Translation V2 Description

Facilitates multilingual text translation using services like Google, Bing, and DeepL for AI artists.

Text Translation V2:

Text_Translation_V2 is a powerful node designed to facilitate the translation of text from one language to another using a variety of translation services. This node is particularly beneficial for AI artists and content creators who need to work with multilingual text data, as it provides a seamless way to convert text into different languages without requiring deep technical knowledge. The node supports a wide range of translators, including popular services like Google, Bing, and DeepL, among others, allowing users to choose the most suitable service for their needs. By leveraging these translation services, Text_Translation_V2 ensures that the translated text is accurate and contextually appropriate, enhancing the quality and accessibility of your content across different languages.

Text Translation V2 Input Parameters:

trans_switch

The trans_switch parameter is a boolean toggle that determines whether the translation functionality is active. When set to True, the node will perform the translation using the specified translator and language settings. If set to False, the node will bypass the translation process and return the original text. This parameter is crucial for controlling the node's behavior, allowing you to easily switch between translating and not translating text without altering other settings. The default value is True, meaning translation is enabled by default.

trans_text

The trans_text parameter is a string input that contains the text you wish to translate. This parameter supports multiline text, allowing you to input large blocks of text for translation. The content of this parameter directly impacts the output, as it is the text that will be processed and translated by the node. There are no specific minimum or maximum values for this parameter, but it should be noted that excessively large text blocks may affect performance depending on the chosen translation service.

translator

The translator parameter allows you to select from a list of available translation services. Options include Alibaba, Apertium, Argos, Baidu, Bing, Caiyun, CloudTranslation, DeepL, Elia, Google, Hujiang, Iciba, Iflytek, Iflyrec, Itranslate, Judic, LanguageWire, Lingvanex, Niutrans, Mglip, Mirai, ModernMt, MyMemory, Papago, QqFanyi, QqTranSmart, Reverso, Sogou, SysTran, Tilde, TranslateCom, TranslateMe, Utibet, VolcEngine, Yandex, Yeekit, and Youdao. The choice of translator can affect the quality and speed of the translation, as different services may have varying strengths in handling specific languages or dialects.

source_language

The source_language parameter specifies the language of the input text. You can choose from a wide range of languages, including auto-detection, which allows the node to automatically determine the language of the input text. This parameter is essential for ensuring accurate translation, as it informs the translation service of the language context of the input text. If set to auto, the node will attempt to detect the language automatically, which is useful when the language of the input text is unknown.

target_language

The target_language parameter defines the language into which the input text should be translated. Similar to the source_language parameter, it offers a wide selection of languages to choose from. This parameter is critical for directing the translation process, as it determines the final language of the translated text. Selecting the correct target language ensures that the output text is in the desired language, making it accessible to the intended audience.

Text Translation V2 Output Parameters:

string

The string output parameter is the translated text resulting from the node's processing. If the trans_switch is set to True, this parameter will contain the text translated into the specified target language using the chosen translation service. If trans_switch is False, it will simply return the original input text. This output is crucial for verifying the success of the translation process and for further use in your projects, as it provides the final text in the desired language.

Text Translation V2 Usage Tips:

  • Ensure that the trans_switch is set to True when you want to perform translations, and switch it to False if you need to retain the original text without translation.
  • Choose the appropriate translator based on your specific language needs and the quality of translation required, as different services may excel in different areas.
  • Use auto for source_language if you are unsure of the input text's language, but be aware that automatic detection may not always be perfect.
  • Double-check the target_language setting to ensure that the translated text is in the correct language for your audience.

Text Translation V2 Common Errors and Solutions:

Invalid Translator Selection

  • Explanation: This error occurs when an unsupported or incorrect translator is selected.
  • Solution: Verify that the translator parameter is set to one of the supported services listed in the node's options.

Language Detection Failure

  • Explanation: This error happens when the node is unable to automatically detect the source language.
  • Solution: Manually specify the source_language if automatic detection fails, ensuring that the input text is in a language supported by the selected translator.

Translation Service Unavailable

  • Explanation: This error indicates that the chosen translation service is currently unavailable or experiencing issues.
  • Solution: Try selecting a different translator from the available options or check the service's status for any known outages.

Text Translation V2 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_Text_Translation
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.