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_switchon to send prompt text to the translation helper; turn it off when you want to preserve your wording exactly. - Use the multiline
trans_textfield for longer prompts, then inspect thestringoutput 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_switchis connected or set to eitheronoroff.
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_textor connect a STRING-producing node to it.
Translation helper error
- Explanation: With
trans_switchon, the node callstranslatorsand 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_switchis 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.
