ComfyUI Extension: NX_Translator

Authored by Franck-Demongin

Created

Updated

1 stars

A custom node for translating prompts with Google Translate or DeeplL directly in ComfyUI.

Custom Nodes (0)

    README

    NX_Translator

    hero

    <img src="https://img.shields.io/badge/Python-3.10-blue" /> <img src="https://img.shields.io/badge/ComfyUI-orange" /> GPLv3 license

    A custom node for translating prompts with Google Translate or DeeplL directly in ComfyUI.

    Installation

    If GIT is installed on your system, go to the custom_nodes subfolder of your ComfyUI installation, open a terminal and type:

    git clone https://github.com/Franck-Demongin/NX_Translator.git
    

    If GIT is not installed, retrieve the ZIP file, unzip it into the custom nodes folder and rename it NX_translator.

    IMPORTANT Activate the Python virtual environment used by ComfyUI from the ComfyUI installation directory:

    # Linux, Mac
    source venv/bin/activate
    
    # Windows
    venv\Scripts\activate
    

    The command line must be preceded by (venv), indicating that the virtual environment is active.

    Install the dependencies used by the node:

    pip install -r requirements.txt
    

    Restart ComfyUI. Translator should be available in the NX_Nodes category.

    Features

    UI

    • translates from any language into English
    • uses Google or DeepL services
    • allows you to replace or add one translation to another by choosing the separator
    • indicates usage quota for DeepL
    • import API key DeepL from node