From 23c6863a3acd2326e7b456dca06dfa9b9f868562 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Mon, 8 Jun 2026 21:28:24 +0800 Subject: [PATCH] fix: batch URL download i18n and CSS polish (#936) - Add common.actions.remove/change translation keys across all locales - Remove hardcoded #e74c3c error colors, use --lora-error CSS variable --- locales/de.json | 4 +++- locales/en.json | 4 +++- locales/es.json | 4 +++- locales/fr.json | 4 +++- locales/he.json | 4 +++- locales/ja.json | 4 +++- locales/ko.json | 4 +++- locales/ru.json | 4 +++- locales/zh-CN.json | 4 +++- locales/zh-TW.json | 4 +++- static/css/components/modal/download-modal.css | 6 +++--- 11 files changed, 33 insertions(+), 13 deletions(-) diff --git a/locales/de.json b/locales/de.json index 19bf5620..be83698a 100644 --- a/locales/de.json +++ b/locales/de.json @@ -16,7 +16,9 @@ "help": "Hilfe", "add": "Hinzufügen", "close": "Schließen", - "menu": "Menü" + "menu": "Menü", + "remove": "Entfernen", + "change": "Ändern" }, "status": { "loading": "Wird geladen...", diff --git a/locales/en.json b/locales/en.json index a87601ce..02e7451a 100644 --- a/locales/en.json +++ b/locales/en.json @@ -16,7 +16,9 @@ "help": "Help", "add": "Add", "close": "Close", - "menu": "Menu" + "menu": "Menu", + "remove": "Remove", + "change": "Change" }, "status": { "loading": "Loading...", diff --git a/locales/es.json b/locales/es.json index f9442fd9..30f79641 100644 --- a/locales/es.json +++ b/locales/es.json @@ -16,7 +16,9 @@ "help": "Ayuda", "add": "Añadir", "close": "Cerrar", - "menu": "Menú" + "menu": "Menú", + "remove": "Eliminar", + "change": "Cambiar" }, "status": { "loading": "Cargando...", diff --git a/locales/fr.json b/locales/fr.json index 22c20321..3bfb6a69 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -16,7 +16,9 @@ "help": "Aide", "add": "Ajouter", "close": "Fermer", - "menu": "Menu" + "menu": "Menu", + "remove": "Supprimer", + "change": "Modifier" }, "status": { "loading": "Chargement...", diff --git a/locales/he.json b/locales/he.json index 8c890e4a..f44958f9 100644 --- a/locales/he.json +++ b/locales/he.json @@ -16,7 +16,9 @@ "help": "עזרה", "add": "הוספה", "close": "סגור", - "menu": "תפריט" + "menu": "תפריט", + "remove": "הסר", + "change": "שנה" }, "status": { "loading": "טוען...", diff --git a/locales/ja.json b/locales/ja.json index e0d93211..61021706 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -16,7 +16,9 @@ "help": "ヘルプ", "add": "追加", "close": "閉じる", - "menu": "メニュー" + "menu": "メニュー", + "remove": "削除", + "change": "変更" }, "status": { "loading": "読み込み中...", diff --git a/locales/ko.json b/locales/ko.json index f7f77dd3..cf1a1e50 100644 --- a/locales/ko.json +++ b/locales/ko.json @@ -16,7 +16,9 @@ "help": "도움말", "add": "추가", "close": "닫기", - "menu": "메뉴" + "menu": "메뉴", + "remove": "제거", + "change": "변경" }, "status": { "loading": "로딩 중...", diff --git a/locales/ru.json b/locales/ru.json index 3a828f22..a0a16bbb 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -16,7 +16,9 @@ "help": "Справка", "add": "Добавить", "close": "Закрыть", - "menu": "Меню" + "menu": "Меню", + "remove": "Удалить", + "change": "Изменить" }, "status": { "loading": "Загрузка...", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 887661c9..bd8422b1 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -16,7 +16,9 @@ "help": "帮助", "add": "添加", "close": "关闭", - "menu": "菜单" + "menu": "菜单", + "remove": "移除", + "change": "更换" }, "status": { "loading": "加载中...", diff --git a/locales/zh-TW.json b/locales/zh-TW.json index 79d0f776..4857fbac 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -16,7 +16,9 @@ "help": "說明", "add": "新增", "close": "關閉", - "menu": "選單" + "menu": "選單", + "remove": "移除", + "change": "更換" }, "status": { "loading": "載入中...", diff --git a/static/css/components/modal/download-modal.css b/static/css/components/modal/download-modal.css index a04772dd..1b341b1a 100644 --- a/static/css/components/modal/download-modal.css +++ b/static/css/components/modal/download-modal.css @@ -739,7 +739,7 @@ display: flex; align-items: center; justify-content: center; - color: #e74c3c; + color: var(--lora-error); font-size: 1.2em; } @@ -766,7 +766,7 @@ } .batch-preview-error-text { - color: #e74c3c; + color: var(--lora-error); opacity: 1; } @@ -798,7 +798,7 @@ .batch-preview-remove:hover { opacity: 1; - color: #e74c3c; + color: var(--lora-error); } .batch-preview-error {