Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-Text-Translation > Text Translation

ComfyUI Node: Text Translation

Class Name

Text_Translation

Category
Text Translation
Author
pictorialink (Account age: 550days)
Extension
ComfyUI-Text-Translation
Latest Updated
2025-07-15
Github Stars
0.02K

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 Description

Translates multiline prompt text when enabled, or passes it through unchanged when disabled.

Text Translation:

Text_Translation lets you pass text through a translation helper as part of an AI art workflow. You can use it when preparing text for a prompt, or leave the text unchanged when translation is not needed. The node’s source shows when translation is called, but it does not show how the helper chooses a language or what translation service, if any, it uses. You should check the resulting wording before relying on it in a prompt.

Text Translation Input Parameters:

trans_switch

A required BOOLEAN setting that controls whether the node calls the translation helper. Its default is True, displayed as on; False is displayed as off. When it is on, the node sends the supplied text to the helper. When it is off, the node passes the text through unchanged. As a Boolean setting, it has no numeric minimum or maximum.

trans_text

The required STRING containing the text you want to process. This input accepts multiple lines, so you can enter a longer prompt or several lines of text. With translation on, the entire supplied string is passed to the translation helper; with translation off, that same string becomes the result. The source specifies no default value, character limit, or minimum or maximum length for this input.

Text Translation Output Parameters:

string

The node’s only output is a STRING. When trans_switch is off, it contains trans_text unchanged. When the switch is on, it contains the value returned by the translation helper. The provided source does not establish the target language or guarantee that the wording will change, so review this output when precise prompt language matters.

Text Translation Usage Tips:

  • Leave trans_switch on to send prompt text to the translation helper; turn it off when you want to preserve your wording exactly.
  • Use the multiline trans_text field for longer prompts, then inspect the string output before connecting it to a step where wording affects the image.
  • If you are unsure whether translation is appropriate, run the same text with the switch on and off and compare the results.

Text Translation Common Errors and Solutions:

Missing required input: trans_switch

  • Explanation: The node interface requires a Boolean switch. This is an illustrative validation message; the exact wording depends on the host application.
  • Solution: Ensure trans_switch is connected or set to either on or off.

Missing required input: trans_text

  • Explanation: The node interface requires a text value. This is an illustrative validation message; the exact wording depends on the host application.
  • Solution: Enter text in trans_text or connect a STRING-producing node to it.

Translation helper error

  • Explanation: With trans_switch on, the node calls translators and does not handle errors from that call. The helper’s implementation is not provided, so no specific error message or cause can be confirmed.
  • Solution: Turn the switch off to check whether the text passes through successfully. If it does, inspect the full error shown by your application for details about the translation helper.

Text was not translated

  • Explanation: When trans_switch is off, unchanged text is the expected result, not an error. When it is on, the provided source does not guarantee that the helper will change the wording.
  • Solution: Confirm that the switch is on. If the result remains unchanged, check the helper’s documentation or the application’s error details rather than assuming a particular translation language or service.

Text Translation 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.

Text Translation