You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[fix] Prevent null values in translated node definition outputs
Adds cleanup step to i18n workflow to remove null entries that can occur
when translation service encounters timing issues with node output changes.
Also adds concise documentation for the node definition translation script.
The `collect-i18n-node-defs.ts` script automatically extracts translatable content from ComfyUI node definitions to generate structured JSON files for internationalization (i18n).
6
+
7
+
## What It Does
8
+
9
+
- Uses Playwright to load ComfyUI frontend and fetch node definitions via the ComfyUI HTTP API
10
+
- Extracts data types, node categories, input/output names, and descriptions
11
+
- Discovers runtime widget labels by creating actual node instances
12
+
- Normalizes keys for i18n compatibility (replaces dots with underscores)
13
+
- Generates `src/locales/en/main.json` (data types & categories) and `src/locales/en/nodeDefs.json`
14
+
15
+
## How It Works
16
+
17
+
1.**Browser Setup**: Uses Playwright to load ComfyUI frontend and access the HTTP API
18
+
2.**Data Collection**: Fetches node definitions via API and filters out DevTools nodes
19
+
3.**Widget Discovery**: Creates LiteGraph node instances to find runtime-generated widgets
0 commit comments