Visit ComfyUI Online for ready-to-use ComfyUI environment
Translate English text to Chinese using YouDao service, with caching and direct output printing for AI artists.
The Translate2Chinese| Translate Text to Chinese ๐ผ node is designed to translate English text into Chinese, providing a seamless way to convert text from one language to another. This node leverages the YouDao translation service to ensure accurate and reliable translations. It is particularly useful for AI artists who need to translate prompts, descriptions, or any other text content into Chinese. The node also includes caching functionality to store previously translated texts, which can significantly speed up repeated translations and reduce redundant API calls. Additionally, it offers an option to print the translated output directly, making it easier to verify the results immediately.
This parameter accepts the text that you want to translate from English to Chinese. It should be a string and can support multiline input, allowing you to translate longer texts or paragraphs. The text is trimmed of any leading or trailing whitespace before translation. There is no minimum or maximum length specified, but extremely long texts may be subject to API limitations.
This parameter controls whether the node should use a cache to store and retrieve previously translated texts. It has two options: "enable" and "disable", with "enable" being the default. When enabled, the node will first check if the text has already been translated and stored in the cache, which can save time and reduce API calls. If disabled, the node will always perform a fresh translation.
This parameter determines whether the translated text should be printed to the console. It also has two options: "enable" and "disable", with "enable" being the default. When enabled, the translated text will be printed, allowing you to quickly verify the translation. If disabled, the text will not be printed, which can be useful for reducing console clutter in automated workflows.
The output parameter is a string that contains the translated text in Chinese. This is the main result of the translation process and can be used in subsequent nodes or processes. The output will be an empty string if the translation fails or if the input text is empty or null.
ยฉ Copyright 2024 RunComfy. All Rights Reserved.