From b191f4737592e9cbcdca8b21ad4b93725e85a25c Mon Sep 17 00:00:00 2001 From: CaIon Date: Wed, 24 Jun 2026 21:43:41 +0800 Subject: [PATCH] fix: use neutral drawing task labels --- .../system-info/components/system-tasks-panel.tsx | 8 ++++++-- web/default/src/i18n/locales/en.json | 2 +- web/default/src/i18n/locales/fr.json | 2 +- web/default/src/i18n/locales/ja.json | 2 +- web/default/src/i18n/locales/ru.json | 2 +- web/default/src/i18n/locales/vi.json | 2 +- web/default/src/i18n/locales/zh.json | 2 +- web/default/src/i18n/static-keys.ts | 1 + 8 files changed, 13 insertions(+), 8 deletions(-) diff --git a/web/default/src/features/system-info/components/system-tasks-panel.tsx b/web/default/src/features/system-info/components/system-tasks-panel.tsx index cf0af770..f3c439e0 100644 --- a/web/default/src/features/system-info/components/system-tasks-panel.tsx +++ b/web/default/src/features/system-info/components/system-tasks-panel.tsx @@ -79,10 +79,14 @@ const TYPE_LABEL: Record = { log_cleanup: 'Log cleanup', channel_test: 'Batch channel test', model_update: 'Batch upstream model update', - midjourney_poll: 'Midjourney task polling', + midjourney_poll: 'Drawing task polling', async_task_poll: 'Async task polling', } +const TYPE_DISPLAY_ID: Record = { + midjourney_poll: 'drawing_task_poll', +} + function isActiveStatus(status: SystemTaskStatus) { return status === 'pending' || status === 'running' } @@ -136,7 +140,7 @@ function SystemTasksTable(props: SystemTasksTableProps) { {t(TYPE_LABEL[task.type] ?? task.type)}
- {task.type} + {TYPE_DISPLAY_ID[task.type] ?? task.type}
diff --git a/web/default/src/i18n/locales/en.json b/web/default/src/i18n/locales/en.json index f89be6fa..6566822f 100644 --- a/web/default/src/i18n/locales/en.json +++ b/web/default/src/i18n/locales/en.json @@ -1373,6 +1373,7 @@ "Drawing logs": "Drawing logs", "Drawing Logs": "Drawing Logs", "Drawing task records": "Drawing task records", + "Drawing task polling": "Drawing task polling", "Duplicate": "Duplicate", "Duplicate group names: {{names}}": "Duplicate group names: {{names}}", "Duplicate source model mappings are not allowed": "Duplicate source model mappings are not allowed", @@ -2472,7 +2473,6 @@ "Merge into Other": "Merge into Other", "Message Priority": "Message Priority", "Metadata": "Metadata", - "Midjourney task polling": "Midjourney task polling", "min downtime": "min downtime", "Min Top-up": "Min Top-up", "Min Top-up:": "Min Top-up:", diff --git a/web/default/src/i18n/locales/fr.json b/web/default/src/i18n/locales/fr.json index fef41e38..348e2f29 100644 --- a/web/default/src/i18n/locales/fr.json +++ b/web/default/src/i18n/locales/fr.json @@ -1373,6 +1373,7 @@ "Drawing logs": "Journaux de dessin", "Drawing Logs": "Journaux de dessin", "Drawing task records": "Historique des tâches de dessin", + "Drawing task polling": "Interrogation des tâches de dessin", "Duplicate": "Dupliquer", "Duplicate group names: {{names}}": "Noms de groupe en double : {{names}}", "Duplicate source model mappings are not allowed": "Les mappages de modèles source en double ne sont pas autorisés", @@ -2472,7 +2473,6 @@ "Merge into Other": "Fusionner dans Autres", "Message Priority": "Priorité du message", "Metadata": "Métadonnées", - "Midjourney task polling": "Interrogation des tâches Midjourney", "min downtime": "min d'interruption", "Min Top-up": "Recharge min.", "Min Top-up:": "Recharge min. :", diff --git a/web/default/src/i18n/locales/ja.json b/web/default/src/i18n/locales/ja.json index bdd89bb6..379d3e6f 100644 --- a/web/default/src/i18n/locales/ja.json +++ b/web/default/src/i18n/locales/ja.json @@ -1373,6 +1373,7 @@ "Drawing logs": "描画ログ", "Drawing Logs": "画像生成履歴", "Drawing task records": "描画タスク記録", + "Drawing task polling": "描画タスクのポーリング", "Duplicate": "複製", "Duplicate group names: {{names}}": "重複するグループ名: {{names}}", "Duplicate source model mappings are not allowed": "重複したソースモデルのマッピングは許可されていません", @@ -2472,7 +2473,6 @@ "Merge into Other": "その他にまとめる", "Message Priority": "メッセージの優先度", "Metadata": "メタデータ", - "Midjourney task polling": "Midjourney タスクのポーリング", "min downtime": "分のダウンタイム", "Min Top-up": "最低チャージ額", "Min Top-up:": "最小チャージ額:", diff --git a/web/default/src/i18n/locales/ru.json b/web/default/src/i18n/locales/ru.json index 7dea299a..3d90855c 100644 --- a/web/default/src/i18n/locales/ru.json +++ b/web/default/src/i18n/locales/ru.json @@ -1373,6 +1373,7 @@ "Drawing logs": "Журналы рисования", "Drawing Logs": "Журнал рисования", "Drawing task records": "Записи задач рисования", + "Drawing task polling": "Опрос задач рисования", "Duplicate": "Дублировать", "Duplicate group names: {{names}}": "Повторяющиеся имена групп: {{names}}", "Duplicate source model mappings are not allowed": "Повторяющиеся сопоставления исходных моделей не допускаются", @@ -2472,7 +2473,6 @@ "Merge into Other": "Объединить в «Другое»", "Message Priority": "Приоритет сообщения", "Metadata": "Метаданные", - "Midjourney task polling": "Опрос задач Midjourney", "min downtime": "мин простоя", "Min Top-up": "Мин. пополнение", "Min Top-up:": "Мин. пополнение:", diff --git a/web/default/src/i18n/locales/vi.json b/web/default/src/i18n/locales/vi.json index 7c533fce..278b9d74 100644 --- a/web/default/src/i18n/locales/vi.json +++ b/web/default/src/i18n/locales/vi.json @@ -1373,6 +1373,7 @@ "Drawing logs": "Nhật ký vẽ", "Drawing Logs": "Nhật ký bản vẽ", "Drawing task records": "Lịch sử tác vụ vẽ", + "Drawing task polling": "Thăm dò tác vụ vẽ", "Duplicate": "Nhân bản", "Duplicate group names: {{names}}": "Tên nhóm bị trùng: {{names}}", "Duplicate source model mappings are not allowed": "Không cho phép ánh xạ mô hình nguồn trùng lặp", @@ -2472,7 +2473,6 @@ "Merge into Other": "Gộp vào Khác", "Message Priority": "Ưu tiên tin nhắn", "Metadata": "Siêu dữ liệu", - "Midjourney task polling": "Thăm dò tác vụ Midjourney", "min downtime": "phút gián đoạn", "Min Top-up": "Nạp tối thiểu", "Min Top-up:": "Nạp tối thiểu:", diff --git a/web/default/src/i18n/locales/zh.json b/web/default/src/i18n/locales/zh.json index 9582219e..23927dbd 100644 --- a/web/default/src/i18n/locales/zh.json +++ b/web/default/src/i18n/locales/zh.json @@ -1373,6 +1373,7 @@ "Drawing logs": "绘制日志", "Drawing Logs": "绘图日志", "Drawing task records": "绘图任务记录", + "Drawing task polling": "绘图任务轮询", "Duplicate": "重复", "Duplicate group names: {{names}}": "存在重复的分组名称:{{names}}", "Duplicate source model mappings are not allowed": "不允许重复的源模型映射", @@ -2472,7 +2473,6 @@ "Merge into Other": "合并为其他", "Message Priority": "消息优先级", "Metadata": "元信息", - "Midjourney task polling": "Midjourney 任务轮询", "min downtime": "分钟停机", "Min Top-up": "最低充值", "Min Top-up:": "最低充值:", diff --git a/web/default/src/i18n/static-keys.ts b/web/default/src/i18n/static-keys.ts index 4bf4e66e..60f51f73 100644 --- a/web/default/src/i18n/static-keys.ts +++ b/web/default/src/i18n/static-keys.ts @@ -50,6 +50,7 @@ export const STATIC_I18N_KEYS = [ 'stale', 'Master instances run scheduled background tasks.', 'Worker instances do not run master-only background tasks.', + 'Drawing task polling', // Pricing constants 'Name',