diff --git a/README.md b/README.md index 236f738..2b3272b 100644 --- a/README.md +++ b/README.md @@ -1,81 +1,26 @@ -ComfyUI-SimpleGoogleTranslate - -A lightweight text-translation node for ComfyUI. -It provides an easy way to translate any text inside your workflow using Google Translate (googletrans). -Useful for prompt translation, multilingual workflows, script generation, and automations. - -โœจ Features - -Translate text directly inside ComfyUI - -Supports all languages available in googletrans - -Automatic source language detection (auto) - -Very small & fast โ€” no API keys, no external setup - -Ideal for: - -translating prompts - -converting captions into another language - -combining with text-processing nodes - -workflows that require multilingual output - -๐Ÿ“ฆ Installation - -Clone this repository into your ComfyUI custom_nodes directory: - -cd ComfyUI/custom_nodes -git clone https://github.com/yourusername/ComfyUI-SimpleGoogleTranslate.git - - -Install dependency: - -pip install googletrans==4.0.0-rc1 - - -Restart ComfyUI. - -๐Ÿงฉ Node Description +SimpleGoogleTranslate for ComfyUI +

A minimal and easy-to-use Google Translate text node for ComfyUI. This extension provides a simple interface to translate text directly inside your workflow using Google Translate.

+๐ŸŒŸ Features + +๐Ÿงฉ Node Overview Simple Google Translate Text -Input Type Description -source_lang dropdown Input language (or "auto" for auto-detect) -target_lang dropdown Translation language -text STRING Text to translate + +๐Ÿ“ฆ Installation +
  1. Clone or copy this folder into your ComfyUI custom_nodes directory:

    cd ComfyUI/custom_nodes git clone https://github.com/yourname/ComfyUI-SimpleGoogleTranslate.git
  2. Or manually create the folder:

    ComfyUI/custom_nodes/ComfyUI_SimpleGoogleTranslate/
  3. Restart ComfyUI

+๐Ÿ“š Requirements +

This package will auto-install when ComfyUI loads the extension, as long as your folder contains:

+requirements.txt -Output: - -Output Type Description -translated STRING Translated result -๐Ÿ“ Repository Structure -ComfyUI-SimpleGoogleTranslate/ +๐Ÿ“ File Structure +ComfyUI_SimpleGoogleTranslate/ โ”‚ -โ”œโ”€โ”€ simple_google_translate.py โ”œโ”€โ”€ __init__.py -โ”œโ”€โ”€ requirements.txt -โ””โ”€โ”€ README.md +โ”œโ”€โ”€ simple_google_translate.py +โ””โ”€โ”€ requirements.txt -๐Ÿ“ Requirements - -ComfyUI - -googletrans==4.0.0-rc1 - -โœ”๏ธ Notes - -googletrans ใฏ API ใ‚ญใƒผไธ่ฆใงไฝฟใˆใพใ™ใŒใ€Google ๅดใฎไป•ๆง˜ๅค‰ๆ›ดใซใ‚ˆใ‚Šไธ€ๆ™‚็š„ใซไธๅฎ‰ๅฎšใซใชใ‚‹ใ“ใจใŒใ‚ใ‚Šใพใ™ใ€‚ใใฎๅ ดๅˆใฏๅ†่ฉฆ่กŒใ—ใฆใใ ใ•ใ„ใ€‚ - -ใƒŽใƒผใƒ‰ใฏ utils/Text ใ‚ซใƒ†ใ‚ดใƒชใซ่ฟฝๅŠ ใ•ใ‚Œใพใ™ใ€‚ - -๐Ÿ“ธ Example - -๏ผˆใ‚ใชใŸใŒ่ฒผใฃใฆใใ‚ŒใŸใ‚นใ‚ฏใ‚ทใƒงใฎใ‚ˆใ†ใซใ€็ฟป่จณๅ‰ๅพŒใ‚’ Show Text ใงใคใชใ’ใŸ็”ปๅƒใ‚’ๆฎ‹ใ›ใพใ™ใ€‚๏ผ‰ - -๐Ÿ‘ License - -Free to use, modify, and include in any workflow. - -Happy translating! +๐Ÿ“ Example Workflow +

Workflow Example

+โš ๏ธ Notes + +๐Ÿ“„ License +

Free to use, modify, and integrate into your own projects. Attribution is not required but appreciated. ๐Ÿ™‚