snomiao
5bc50500fd
fix: Fix Playwright i18n collection by handling TypeScript declare fields in litegraph
...
- Add prebuild script that temporarily removes 'declare' keyword from litegraph TypeScript files
- Add restore script to revert files to original state after i18n collection
- Update collect-i18n script to use prebuild/restore workflow
- Add babel dependencies for TypeScript transformation
- Update playwright.i18n.config.ts with global setup/teardown
This fix addresses an issue where Playwright's Babel transformation couldn't handle TypeScript 'declare' fields in litegraph classes, causing the i18n collection to fail.
Fixes the issue where 'pnpm collect-i18n' would fail with:
"TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript"
2025-09-01 23:21:01 +00:00
Benjamin Lu
7f849e9a44
Update remaining @comfyorg/litegraph references
2025-08-04 10:16:24 -04:00
Christian Byrne
eb63b5c536
[feat] Add Traditional Chinese language support ( #4410 )
...
Co-authored-by: github-actions <github-actions@github.com >
2025-07-10 01:52:47 -07:00
Christian Byrne
22c70d5d1b
[fix] use getter functions for sidebar tab command labels to resolve i18n collection issues ( #4370 )
...
Co-authored-by: github-actions <github-actions@github.com >
2025-07-08 23:50:49 -07:00
Christian Byrne
7befec5b17
Add unused i18n keys detection to pre-commit hook ( #4328 )
2025-07-03 10:53:56 -07:00
filtered
a5729c9e06
Revert "[fix] Automatically fix malformed node def translations" ( #4045 )
2025-06-02 05:37:30 +10:00
Christian Byrne
ec4ced26e7
[fix] Automatically fix malformed node def translations ( #4042 )
2025-06-01 06:45:40 -07:00
Christian Byrne
2daa51421c
Remove fetch-templates script ( #3500 )
2025-04-18 20:34:03 -04:00
Chenlei Hu
bde518fa13
[CI] Update i18n-node-defs GH action ( #3047 )
2025-03-14 12:08:08 -04:00
Chenlei Hu
680268bb29
Generate json schema for node def ( #2862 )
2025-03-04 17:40:26 -05:00
Chenlei Hu
30c750f787
[i18n] Ignore devtools nodes for i18n ( #2835 )
2025-03-03 16:57:52 -05:00
Chenlei Hu
b30aac6f98
[CI] Use gh action to update electron types ( #2811 )
2025-03-02 17:15:16 -05:00
Chenlei Hu
fd4263065b
[CI] Use gh action to bump version ( #2810 )
2025-03-02 17:10:30 -05:00
Chenlei Hu
5b2b3cdacf
[CI] Use gh action to update litegraph ( #2808 )
2025-03-02 16:57:30 -05:00
Chenlei Hu
e6a583e11b
[Cleanup] Remove deploy script ( #2806 )
2025-03-02 15:36:54 -05:00
Chenlei Hu
9431c955a6
[CI] Include workflow templates at build time ( #2775 )
2025-03-02 15:22:18 -05:00
bymyself
76818b54e6
Fix widget label extraction ( #2737 )
2025-02-26 13:44:05 -05:00
bymyself
e7420fe2e3
Translate runtime-generated widget labels ( #2688 )
2025-02-23 10:16:25 -05:00
bymyself
365fd1e047
Fix error translating legacy setting options ( #2648 )
2025-02-20 10:12:46 -05:00
Chenlei Hu
150b4341b2
Update litegraph 0.8.77 ( #2530 )
2025-02-12 11:11:05 -05:00
Chenlei Hu
d7a0ee8703
Update litegraph 0.8.76 ( #2496 )
...
Co-authored-by: github-actions <github-actions@github.com >
2025-02-10 15:30:46 -05:00
filtered
78f43b1e06
[Desktop] Add electron types update script ( #2290 )
2025-01-19 14:16:27 -05:00
Chenlei Hu
1d02cd3c47
[Docs] Extract comfy workflow zod schema as json schema ( #2206 )
2025-01-09 11:30:47 -05:00
Chenlei Hu
549a2fdc92
Remove main_repo_release.py ( #2147 )
2025-01-06 17:01:41 -05:00
Chenlei Hu
e82d795ff9
Trigger node def locale update manually ( #2170 )
2025-01-06 10:54:59 -05:00
Chenlei Hu
d8f074fea0
[Lint] Sort imports ( #2104 )
2024-12-30 17:26:37 -05:00
Chenlei Hu
f1eee96ebc
Ignore hidden settings for translation ( #2050 )
...
Co-authored-by: github-actions <github-actions@github.com >
2024-12-25 21:26:52 -05:00
Chenlei Hu
569a131624
[i18n] Add gihtub action to translate custom nodes ( #1987 )
2024-12-18 17:04:35 -08:00
Chenlei Hu
b1d02c6a7b
[i18n] Split settings locale to separate json files ( #1986 )
...
Co-authored-by: github-actions <github-actions@github.com >
2024-12-18 14:57:05 -08:00
Chenlei Hu
4997d13219
[i18n] Add commands label translation ( #1890 )
...
* [i18n] Add commands label translation
* Use translation
2024-12-12 09:28:47 -08:00
Chenlei Hu
c60645d9f4
[i18n] Translate node input label ( #1880 )
2024-12-11 14:57:49 -08:00
Chenlei Hu
a39c04d56e
[i18n] Split nodeDefs translations to a separate json file ( #1878 )
...
* [i18n] Split nodeDefs translations to a separate json file
* build locale
2024-12-11 11:51:54 -08:00
Chenlei Hu
0c511d08e6
[i18n] Use folder mode for locale ( #1876 )
...
* [i18n] Use folder mode for locale
* try pipe
2024-12-11 11:29:52 -08:00
Chenlei Hu
ac6130a556
[i18n] Translate node input/output label and tooltip ( #1860 )
...
* [i18n] Translate node input/output labels
* nit
* Impl actual translation
* Remove outputs where name is the type
* Pick outputs key
* Translate outputs
* Properly persist label
* Translate input tooltips
* Translate single node
* Translate first node
* Translate 10 nodes
* Exclude input name translation
* Update test expectations [skip ci]
* nit
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-12-10 17:08:45 -08:00
Chenlei Hu
86797d2492
[i18n] Collect node data types ( #1859 )
...
* [i18n] Collect node data types
* nit
* Update locales [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-12-10 11:29:54 -08:00
Chenlei Hu
112a693f3d
[i18n] Translate setting options ( #1858 )
...
* Collect options
* Translate setting options
* Update locales [skip ci]
* Normalize key
* Revert change of logic
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-12-10 09:31:13 -08:00
Chenlei Hu
a76159e9a0
[i18n] Translate node categories ( #1842 )
...
* [i18n] Translate node categories
* nit
* Update locales [skip ci]
* Fix some translations
* Do translate
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-12-07 21:25:40 -05:00
Chenlei Hu
517ae56763
Translate node title and description ( #1822 )
...
* Collect node def i18n
* Add collected en locale
* Sort by node id
* Add translations
* Show translated node def
* Update locales [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-12-06 16:56:54 -05:00
Chenlei Hu
dac2a2ec86
[Electron] Translate server config panel ( #1817 )
...
* Update i18 collection to include server config items
* Use translation
* Update locales [skip ci]
* nit
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-12-05 19:56:51 -05:00
Chenlei Hu
5206939c78
Translate setting categories ( #1797 )
...
* Add i18n for setting categories
* Update locales
* Translate about
* nit
* nit
2024-12-04 16:32:28 -05:00
Chenlei Hu
d04cc4e272
Translate dynamically added settings ( #1794 )
...
* Collect settings i18n at runtime
* Translation
* Remove unused file
2024-12-04 13:51:37 -05:00
Chenlei Hu
7986aebf27
Translate command label on top command dropdown menu ( #1792 )
...
* collect i18n with playwright
* Add command label translation
* Normalize i18n object key
2024-12-04 13:19:53 -05:00
Chenlei Hu
1856479de9
Translate topbar command menu ( #1784 )
...
* Rename script
* Translate menu labels
* Update translations
* Display translated menu items
2024-12-03 22:51:15 -05:00
Chenlei Hu
d953b8fa46
Merge core settings with existing translations ( #1782 )
2024-12-03 22:04:19 -05:00
Chenlei Hu
a56462fc7c
Translate core setting name & tooltip ( #1765 )
...
* lazy eval default value
* Add setting translation
* Adjust hooks
* Add all translations
* nit
* Normalized setting id
* Update locales
* Fallback
* Locale => Language
* Locale => Language
* Update translations
2024-12-02 17:34:21 -05:00
Chenlei Hu
05fab91bda
Build comfyui-frontend-types library ( #1725 )
...
* Install vite-plugin-dts
* Explicitly type workflowStore
* Working rollup
* Hide diff type
* Inline primevue toast mesage types
* Add prepare-types script to generate package.json for type package
* Add global declaration
* Add publish types Github action
* Update litegraph
* Add @comfyorg to package name
2024-11-28 11:21:19 -05:00
Chenlei Hu
69f0da06f8
Add update-litegraph script ( #1495 )
...
* Add update script
* nit
2024-11-10 10:15:46 -05:00
Chenlei Hu
09d5e29f01
Create new branch in release script ( #1423 )
2024-11-04 09:02:33 -05:00
Chenlei Hu
d11d07334b
Add npm release script to automatically create release PR ( #1392 )
...
* Add release script
* nit
2024-10-31 19:14:35 -04:00
Chenlei Hu
f9fc36f0ed
Cleanup zip file on release ( #1057 )
2024-10-01 13:13:18 -04:00