From b4ccaf4fec6436f9d09cf33fe3a057b02c9de1ce Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sun, 8 Dec 2024 17:22:09 -0800 Subject: [PATCH] Rename EditAttention to EditTokenWeight (#1848) * Rename EditAttention to EditTokenWeight * Update locales [skip ci] * Remove EditAttention * nit --------- Co-authored-by: github-actions --- src/extensions/core/editAttention.ts | 1 + src/locales/en.json | 4 ++-- src/locales/ja.json | 2 +- src/locales/ko.json | 2 +- src/locales/ru.json | 2 +- src/locales/zh.json | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/extensions/core/editAttention.ts b/src/extensions/core/editAttention.ts index 2fb288e4e..d2e70dfb5 100644 --- a/src/extensions/core/editAttention.ts +++ b/src/extensions/core/editAttention.ts @@ -7,6 +7,7 @@ app.registerExtension({ init() { const editAttentionDelta = app.ui.settings.addSetting({ id: 'Comfy.EditAttention.Delta', + category: ['Comfy', 'EditTokenWeight', 'Delta'], name: 'Ctrl+up/down precision', type: 'slider', attrs: { diff --git a/src/locales/en.json b/src/locales/en.json index 2cb6dad5f..8e8334abc 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -638,7 +638,6 @@ "LiteGraph": "Lite Graph", "Node Widget": "Node Widget", "Node": "Node", - "EditAttention": "Edit Attention", "Extension": "Extension", "Canvas": "Canvas", "Link": "Link", @@ -666,7 +665,8 @@ "Validation": "Validation", "Window": "Window", "Server-Config": "Server-Config", - "About": "About" + "About": "About", + "EditTokenWeight": "Edit Token Weight" }, "serverConfigItems": { "tls-keyfile": { diff --git a/src/locales/ja.json b/src/locales/ja.json index e5cf06bbf..96c71e2bd 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -1249,7 +1249,7 @@ "Comfy": "Comfy", "Comfy-Desktop": "Comfyデスクトップ", "DevMode": "開発モード", - "EditAttention": "編集Attention", + "EditTokenWeight": "トークンの重みを編集", "Extension": "拡張", "General": "一般", "Graph": "グラフ", diff --git a/src/locales/ko.json b/src/locales/ko.json index d373b9c63..2fcf48b5e 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -1232,7 +1232,7 @@ "Comfy": "Comfy", "Comfy-Desktop": "Comfy-Desktop", "DevMode": "개발자 모드", - "EditAttention": "토큰 가중치 편집", + "EditTokenWeight": "토큰 가중치 편집", "Extension": "확장", "General": "일반", "Graph": "그래프", diff --git a/src/locales/ru.json b/src/locales/ru.json index 34111de4c..57c0525f6 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -1249,7 +1249,7 @@ "Comfy": "Comfy", "Comfy-Desktop": "Comfy рабочий стол", "DevMode": "Режим разработчика", - "EditAttention": "Редактировать внимание", + "EditTokenWeight": "Редактировать вес токена", "Extension": "Расширение", "General": "Общие", "Graph": "Граф", diff --git a/src/locales/zh.json b/src/locales/zh.json index a6fa8cb0a..e7868b5e8 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -1249,7 +1249,7 @@ "Comfy": "Comfy", "Comfy-Desktop": "Comfy桌面版", "DevMode": "开发模式", - "EditAttention": "编辑Attention", + "EditTokenWeight": "编辑令牌权重", "Extension": "扩展", "General": "常规", "Graph": "图",