Giter Site home page Giter Site logo

aigodlike / aigodlike-comfyui-translation Goto Github PK

View Code? Open in Web Editor NEW
766.0 6.0 59.0 1.1 MB

A plugin for multilingual translation of ComfyUI,This plugin implements translation of resident menu bar/search bar/right-click context menu/node, etc

Home Page: https://www.aigodlike.com/

JavaScript 89.27% Python 10.73%
comfyui translation

aigodlike-comfyui-translation's Introduction

AIGODLIKE-ComfyUI-Translation

A plugin for multilingual translation of ComfyUI,This plugin implements translation of resident menu bar/search bar/right-click context menu/node, etc

ComfyUI users in other languages, I need your help

I hope ComfyUI can support more languages besides Chinese and English, such as French, German, Japanese, Korean, etc. However, I believe that translation should be done by native speakers of each language. So I need your help, let's go fight for ComfyUI together!

[Korean] Korean translation needs help~

[Japanese] Japanese translation needs help~

Language supported

COMFYUI Translation 简体中文 繁體中文 English 日本語 한국어 Русский Your language
Menu TODO
NodeCategory TODO
Nodes TODO

Function

  1. Translate all UI of ComfyUI image image image
  2. Direct language switching (limitation: custom names will be removed) https://github.com/AIGODLIKE/AIGODLIKE-COMFYUI-TRANSLATION/assets/116185401/e43182b7-8932-4358-bc65-ade7bddf27c5
  3. Support for adding other languages
  4. Support translation custom nodes
  5. (2023/8/16) Support one-click switching between English/currently set language
  6. (2023/8/19) Support for multilingual translation of custom nodes * (in production)
Custom Node Name 简中 繁中 English 日本語 한국어 Русский
3D-Pack TODO TODO TODO TODO
Advanced Encode TODO TODO TODO
Advanced ControlNet TODO TODO TODO
AGL-ComfyUI-Translation TODO TODO
AlekPet Nodes TODO TODO
AnimateAnyone TODO TODO TODO TODO
AnimateDiff TODO TODO
AnimateDiff-Evolved TODO TODO TODO
Automatic CFG TODO TODO TODO TODO
BiRefNet TODO TODO TODO TODO
BrushNet (kijai) TODO TODO TODO TODO
BrushNet (nullquant) TODO TODO TODO TODO
CCSR TODO TODO TODO TODO
Champ TODO TODO TODO TODO
CLIP Seg TODO TODO
ComfyRoll TODO TODO TODO
ControlNet LLLite TODO TODO TODO
ControlNet Preprocessors TODO TODO
ControlNet Preprocessors AUX TODO TODO
Crystools TODO TODO TODO
Cutoff TODO TODO
Custom-Scripts TODO TODO TODO
cg-use-everywhere TODO TODO TODO TODO
cg-image-picker TODO TODO TODO TODO
Davemane42 Nodes TODO TODO
Dagthomas Nodes TODO TODO
DynamiCrafter (kijai) TODO TODO TODO TODO
DynamiCrafter (ExponentialML) TODO TODO TODO TODO
Dynamic Thresholding TODO TODO TODO
Easy Animate TODO TODO TODO TODO
Easy Tools TODO TODO TODO TODO
Easy Use TODO TODO TODO TODO
Efficiency Nodes TODO TODO
ELLA(ExponentialML) TODO TODO TODO TODO
ELLA(Tencent) TODO TODO TODO TODO
EllangoK Postprocessing TODO TODO TODO
Essentials TODO TODO TODO TODO
ExLlama nodes TODO TODO TODO
experiments TODO TODO TODO
Face Analysis TODO TODO TODO TODO
Fast Decode TODO TODO
Flowty CRM TODO TODO TODO TODO
Flowty TripoSR TODO TODO TODO TODO
Frame Interpolation TODO TODO TODO TODO
FreeU Advanced TODO TODO TODO TODO
IC-Light (kijai) TODO TODO TODO TODO
IC-Light-Wrapper (kijai) TODO TODO TODO TODO
IF AI tools TODO TODO TODO TODO
IPAdapter TODO TODO TODO
IPAdapter_plus TODO TODO TODO
Image Grid TODO TODO TODO
Impact Pack TODO TODO TODO
Impact Subpack TODO TODO TODO
Inpaint Nodes TODO TODO TODO TODO
Inspire Pack TODO TODO TODO
InstantID (cubiq) TODO TODO TODO TODO
InstantID (ZHO) TODO TODO TODO TODO
KJ Nodes TODO TODO TODO TODO
kkTranslator TODO TODO TODO TODO
LaMa Preprocessor TODO TODO TODO TODO
Latent2RGB TODO TODO
LayerDiffuse TODO TODO TODO TODO
LayerStyle TODO TODO TODO TODO
LCM TODO TODO TODO TODO
Literals TODO TODO TODO TODO
LoadLoraWithTags TODO TODO TODO TODO
Logic TODO TODO TODO TODO
LoraAutoTrigger TODO TODO TODO TODO
MagicClothing TODO TODO TODO TODO
Manager TODO TODO
Marigold TODO TODO TODO TODO
Masquerade Nodes TODO TODO TODO
Math TODO TODO TODO TODO
Mixlab Nodes TODO TODO TODO TODO
MoonDream TODO TODO TODO TODO
MotionCtrl TODO TODO TODO TODO
MotionCtrl-SVD TODO TODO TODO TODO
MTB TODO TODO TODO TODO
Noise TODO TODO TODO
NormalLighting TODO TODO TODO TODO
Perturbed-Attention TODO TODO TODO TODO
Portrai Master TODO TODO TODO TODO
Power Noise Suite TODO TODO TODO TODO
Prompt Composer TODO TODO TODO TODO
Prompt MZ TODO TODO TODO TODO
Prompt Reader TODO TODO TODO TODO
PuLID (cubiq) TODO TODO TODO TODO
QR TODO TODO TODO
OneButtonPrompt TODO TODO TODO TODO
ReActor TODO TODO TODO TODO
ResAdapter TODO TODO TODO TODO
Restart-Sampling TODO TODO TODO
Roop TODO TODO TODO TODO
rgthree TODO TODO TODO TODO
SD-Latent-Interposer TODO TODO TODO TODO
SDXL_prompt_styler TODO TODO TODO
SeargeSDXL TODO TODO TODO
Segment Anything TODO TODO TODO TODO
StabilityNodes TODO TODO TODO
SUPIR TODO TODO TODO TODO
TiledDiffusion TODO TODO TODO TODO
TiledKSampler TODO TODO
TinyTerra TODO TODO TODO TODO
TripoAPI TODO TODO TODO TODO
UltimateSDUpscale TODO TODO TODO
Vextra Nodes TODO TODO TODO
Video Matting TODO TODO TODO TODO
Visual Style Prompting TODO TODO TODO TODO
VLM Nodes TODO TODO TODO TODO
WAS Suite TODO TODO TODO
WD14-Tagger TODO TODO TODO
zfkun TODO TODO TODO TODO

The above only includes translations for the UI. If you are a developer and need me to help you translate your interface, you can go directly to the ComfyUI Plugins List to add your custom node project, or send an issue, as long as I can see it, I will translate it (it will take some time)

How to install

AIGODLIKE-COMFYUI-TRANSLATION is equivalent to a custom node, you can use any method you like, just put it in folder custom_nodes Then run:

cd ComfyUI/custom_nodes
git clone https://github.com/AIGODLIKE/AIGODLIKE-COMFYUI-TRANSLATION.git

image

How to use

Launch ComfyUI and open the menu. Click on the language option to switch languages. image

How to add other languages(translator)

  1. Create a new 'Language Name' folder in the plugin directory (e.g. example folder) image

  2. Find the LocaleMap.js file and add the language code with the same name as the first step folder in it image

    export const LOCALES = {
        "zh-CN": {
            "nativeName": "中文",
            "englishName": "Chinese Simplified"
        },
        "en-US": {
            "nativeName": "English (US)",
            "englishName": "English (US)"                    
        },
        "example": {
            "nativeName": "exampleDisplayName",
            "englishName": "enName"
        },
    }
  3. After completing the above two steps, restart the ComfyUI service to find the 'exampleDisplayName' language type in the 'AGLTranslation language' settings bar image

How to add custom node translations(translator)

  1. Translation files are currently divided into three types
    1. Node information translation (including node name, node connector, node component) corresponding translation file Your language folder/Nodes/somenode.json
    2. Node classification information (used for right-click the new node menu) corresponds to the translation file Your language folder/NodeCategory.json
    3. Menu information (including resident menu, settings panel, right-click context menu, search menu, etc.) corresponds to translated files Your language folder/Menu.json
  2. Node information translation can be placed in multiple JSON files under 'Your language folder/Nodes/' based on different nodes
  3. All translation files are in JSON format, please fill in strictly according to the JSON file format

Translation examples

  1. Node Translation Format
    {
        "KSampler": {
            "title": "KSampler[example translation]",
            "inputs": {
                "model": "模型",
                "positive": "正向提示词",
                "negative": "反向提示词",
                "latent_image": "潜空间"
            },
            "widgets": {
                "seed": "随机种",
                "control_after_generate": "运行后操作",
                "steps": "步数",
                "cfg": "CFG",
                "sampler_name": "采样器",
                "scheduler": "调度器",
                "denoise": "降噪"
            },
            "outputs": {
                "LATENT": "潜空间",
            }
        },
        "Load VAE": {}
    }
  2. Node classification translation format
    {
        "Add Node": "Add Node[example]",
        "Add Group": "Add Group[example]",
        "Search": "Search[example]",
        "Queue size:": "Queue size[example]:",
        "Queue Prompt": "Queue Prompt[example]",
        "Extra options": "Extra options[example]"
    }
  3. Menu information translation format
    {
        "conditioning": "conditioning[example]",
        "latent": "latent[example]",
        "loaders": "loaders[example]",
        "image": "image[example]"
    }

Limitations

  1. Supports direct switching of any language node to the target language, but will lose custom names
  2. A small portion of options that use Enum type data cannot be translated image

aigodlike-comfyui-translation's People

Contributors

akegarasu avatar dorotaluna avatar karrycharon avatar ltdrdata avatar mcmonkey4eva avatar nestorchik avatar nightaway avatar shiertier avatar soulteary avatar yorha4d avatar ytchen175 avatar zfkun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aigodlike-comfyui-translation's Issues

KR translation!

I don't know why, but the poll creation failed. Too difficult. Collaborator? It doesn't work when it pops up. I don't know... I translated about 35kb more. custom node.

2023-12-13 19 00 09

Menu.json
NodeCategory.json

开启中文后,ComfyUI-Manager插件管理器编译失败

报告一个“BUG”,开启中文后,ComfyUI-Manager插件管理器没有翻译,而且会编译失败,特征是点插件管理器的Install Custom Nodes后,后台提示: File "L:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager_init_.py", line 330, in get_data
json_text = f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 6223: illegal multibyte sequence
更新插件管理器、更新翻译插件、重启软件,都无法恢复插件管理器的功能

求翻译https://github.com/florestefano1975/comfyui-portrait-master

这个插件相当于一个提示词生成插件,主要用来画肖像,其他的也没问题。它作用于CLIP文本编码器之前,通过插件上面的滑条来控制提示词。然后把提示词写入文本编码器,一个非常简单但是特别实用的插件,对于很多不会写提示词的人来说。这个插件可以做到让他精细控制画面中某些元素,而且是简简单单的通过拉动可视化的滑条来实现。恳求大佬汉化此插件,
可以参考这个作者的汉化https://github.com/ZHO-ZHO-ZHO/comfyui-portrait-master-zh-cn
我有强迫症。不愿意安装第三方插件包裹住的这个插件。所以。恳请作者汉化。谢谢

切换语言时,丢失原来设置的title内容

现象:当设置过title后再切换语言,会将组件的title设置成配置的文本,担切回来时却无法还原丢失了。

期望:两种结果均可 A:语言设置不改变自定义的title B:语言切换时将源语言内容进行存档还原

issue: category error

en
kr

When applying the locale, there's an issue where the categories don't appear consistently and get distorted.

能否汉化comfyroll

目前只是汉化了一级二目录,不知道是否可以汉化最后的子目录。

启用插件后,输入框的选项不能通过点击来选择了

        环境:win10, 最新版 comfyui,chrome浏览器 
        问题描述:启用插件后,输入框的选项不能通过点击来选择了(不管切换中文还是英文,都还存在问题 )。
        比如采样器里的选择项如下—— 
        "control_after_generate": "运行后操作",
            "fixed": "固定",
            "increment": "增加",
            "decrement": "减少",
            "randomize": "随机",

右键点击不能加载节点菜单

ComfyUI Revision: 1759 [c97be4db] | Released on '2023-11-30'

comfyui更新到最新版本后,鼠标右键不能弹出菜单。切换成英语可以。

在节点右键切换为输入时,会有严重延迟和意外情况

image
image

我不知道怎么发视频,情况是这样的:
ComfyUI版本:b935bea3a0201221eca7b0337bc60a329871300a
AIGODLIKE-COMFYUI-TRANSLATION:18e1079c6d872c8f4aa0706e2f1f7ccc7223df46
如果是在英文、韩语模式下,右键把节点中的组件、选项转为输入接口,是很快速的,转换也不会有什么问题;
切换为中文、繁体中文、日语等模式之后,切换为输入接口会有严重延迟,出现如上图的情况。有时要刷新页面才能正常显示,有时因为延迟,多点了几下菜单,就变成了多个输入接口了,刷新也不会恢复正常。

我想这应该是插件的问题,因为英语和韩语都是正常的,也只是一个小问题。

【功能】是否可以增加中间缓存文件,来保留用户自定义的节点名称

这是我的思路,不知道是否方便实现。
1、增加一个按钮,选择是否保留自定义节点名称。
2、如果选择保留自定义节点名称,程序先读取加载的工作流文件,保留自定义节点名称的记录缓存文件。
3、然后切换语言时,最后用自定义节点名称的记录缓存文件覆盖。

感谢作者提供的插件!

一些小建议

pipe应该翻译成管线,unclip翻译成逆clip太出戏了建议保持原样

How to access translations from another node

I'm the author of the Use Everywhere nodes, and they include a couple of nodes which transmit data to inputs that match a certain string pattern or regex. So this is a non-visual element which needs to be translated in order to match visual elements...

chrisgoringe/cg-use-everywhere#81

I'm wondering if it is possible for a third party node to access the translations in this node - it looks like it would be a case of accessing the static T object, but wanted to do it cleanly!

My thought would be to add a new entry to cg-use-everywhere.json which isn't a node - like:

 "Use Everywhere extra translations" : { "seed-regex" : ".*seed.*" }

which could be accessed something like

T.Nodes["Use Everywhere extra translations"]["seed-regex"]

I'm happy to do the PR, but want to check if you are comfortable with this slight misuse of the json structure!

右键菜单出不来了

更新到最新的comfyui后,中文模式下右键菜单出不来,切换到英文可以出来,是不是哪里出了问题?

Cannot import H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\zh-CN module for custom nodes: [Errno 2] No such file or directory: 'H:\\ai\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\zh-CN\\__init__.py'

why????

Total VRAM 6144 MB, total RAM 16236 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 Laptop GPU : native
VAE dtype: torch.bfloat16
Using pytorch cross attention
Adding extra search path checkpoints H:\ai\novelai-webui-aki-v2_2\models/Stable-diffusion
Adding extra search path configs H:\ai\novelai-webui-aki-v2_2\models/Stable-diffusion
Adding extra search path vae H:\ai\novelai-webui-aki-v2_2\models/VAE
Adding extra search path loras H:\ai\novelai-webui-aki-v2_2\models/Lora
Adding extra search path loras H:\ai\novelai-webui-aki-v2_2\models/LyCORIS
Adding extra search path upscale_models H:\ai\novelai-webui-aki-v2_2\models/ESRGAN
Adding extra search path upscale_models H:\ai\novelai-webui-aki-v2_2\models/RealESRGAN
Adding extra search path upscale_models H:\ai\novelai-webui-aki-v2_2\models/SwinIR
Adding extra search path embeddings H:\ai\novelai-webui-aki-v2_2\embeddings
Adding extra search path hypernetworks H:\ai\novelai-webui-aki-v2_2\models/hypernetworks
Adding extra search path controlnet H:\ai\novelai-webui-aki-v2_2\models/ControlNet
Traceback (most recent call last):
File "H:\ai\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1800, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 936, in exec_module
File "", line 1073, in get_code
File "", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\zh-TW\init.py'
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

Cannot import H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\zh-TW module for custom nodes: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\zh-TW\init.py'
[agl/register error]: [WinError 1] 函数不正确。
Traceback (most recent call last):
File "H:\ai\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1800, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 936, in exec_module
File "", line 1073, in get_code
File "", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\example\init.py'
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

Cannot import H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\example module for custom nodes: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\example\init.py'
Traceback (most recent call last):
File "H:\ai\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1800, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 936, in exec_module
File "", line 1073, in get_code
File "", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ja-JP\init.py'
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

Cannot import H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ja-JP module for custom nodes: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ja-JP\init.py'
Traceback (most recent call last):
File "H:\ai\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1800, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 936, in exec_module
File "", line 1073, in get_code
File "", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ko-KR\init.py'
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

Cannot import H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ko-KR module for custom nodes: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ko-KR\init.py'
Traceback (most recent call last):
File "H:\ai\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1800, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 936, in exec_module
File "", line 1073, in get_code
File "", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\zh-CN\init.py'
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

Cannot import H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\zh-CN module for custom nodes: [Errno 2] No such file or directory: 'H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\zh-CN\init.py'

Import times for custom nodes:
0.0 seconds (IMPORT FAILED): H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\zh-CN
0.0 seconds (IMPORT FAILED): H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ja-JP
0.0 seconds (IMPORT FAILED): H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ko-KR
0.0 seconds (IMPORT FAILED): H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\example
0.0 seconds (IMPORT FAILED): H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\zh-TW
0.1 seconds: H:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes_init_.py

Starting server

To see the GUI go to: http://127.0.0.1:8188

I can not switch language

在中文界面点击 切换语言 可以正常切换英文,但在英文界面点击 Switch Locale没反应,不能正常切换,重装后也没用

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.