Nodes Browser

ComfyDeploy: How NX_Translator works in ComfyUI?

What is NX_Translator?

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

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for NX_Translator and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

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