From 61c46bea40dfd3057ec95f132a25406bc1767110 Mon Sep 17 00:00:00 2001 From: hjlarry Date: Thu, 9 Oct 2025 16:55:53 +0800 Subject: [PATCH] fix missing i18n --- .../components/workflow/panel/comments-panel/index.tsx | 8 +++++--- web/i18n/de-DE/workflow.ts | 2 ++ web/i18n/en-US/workflow.ts | 2 ++ web/i18n/es-ES/workflow.ts | 2 ++ web/i18n/fa-IR/workflow.ts | 2 ++ web/i18n/fr-FR/workflow.ts | 2 ++ web/i18n/hi-IN/workflow.ts | 2 ++ web/i18n/id-ID/workflow.ts | 2 ++ web/i18n/it-IT/workflow.ts | 2 ++ web/i18n/ja-JP/workflow.ts | 2 ++ web/i18n/ko-KR/workflow.ts | 2 ++ web/i18n/zh-Hans/workflow.ts | 2 ++ web/i18n/zh-Hant/workflow.ts | 2 ++ 13 files changed, 29 insertions(+), 3 deletions(-) diff --git a/web/app/components/workflow/panel/comments-panel/index.tsx b/web/app/components/workflow/panel/comments-panel/index.tsx index 1bb7e27c51..8f68ecbf0e 100644 --- a/web/app/components/workflow/panel/comments-panel/index.tsx +++ b/web/app/components/workflow/panel/comments-panel/index.tsx @@ -1,5 +1,6 @@ import { memo, useCallback, useMemo, useState } from 'react' import { RiCheckLine, RiCheckboxCircleFill, RiCheckboxCircleLine, RiCloseLine, RiFilter3Line } from '@remixicon/react' +import { useTranslation } from 'react-i18next' import { useStore } from '@/app/components/workflow/store' import type { WorkflowCommentList } from '@/service/workflow-comment' import { useWorkflowComment } from '@/app/components/workflow/hooks/use-workflow-comment' @@ -13,6 +14,7 @@ import { useAppContext } from '@/context/app-context' import { collaborationManager } from '@/app/components/workflow/collaboration' const CommentsPanel = () => { + const { t } = useTranslation() const activeCommentId = useStore(s => s.activeCommentId) const setActiveCommentId = useStore(s => s.setActiveCommentId) const setControlMode = useStore(s => s.setControlMode) @@ -63,7 +65,7 @@ const CommentsPanel = () => { return (
-
Comments
+
{t('workflow.comments.panelTitle')}
diff --git a/web/i18n/de-DE/workflow.ts b/web/i18n/de-DE/workflow.ts index 23a78063b7..b45c3f2c35 100644 --- a/web/i18n/de-DE/workflow.ts +++ b/web/i18n/de-DE/workflow.ts @@ -195,6 +195,8 @@ const translation = { comments: { panelTitle: 'Kommentar', loading: 'Laden…', + reply: 'Antworten', + noComments: 'Noch keine Kommentare', placeholder: { add: 'Kommentar hinzufügen', reply: 'Antworten', diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index 3f4e722543..9109a4601f 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -201,6 +201,8 @@ const translation = { comments: { panelTitle: 'Comment', loading: 'Loading…', + reply: 'Reply', + noComments: 'No comments yet', placeholder: { add: 'Add a comment', reply: 'Reply', diff --git a/web/i18n/es-ES/workflow.ts b/web/i18n/es-ES/workflow.ts index 631cb473fb..e47ad076b4 100644 --- a/web/i18n/es-ES/workflow.ts +++ b/web/i18n/es-ES/workflow.ts @@ -195,6 +195,8 @@ const translation = { comments: { panelTitle: 'Comentario', loading: 'Cargando…', + reply: 'Responder', + noComments: 'Aún no hay comentarios', placeholder: { add: 'Añadir un comentario', reply: 'Responder', diff --git a/web/i18n/fa-IR/workflow.ts b/web/i18n/fa-IR/workflow.ts index 8fb1aac21a..b57d37e745 100644 --- a/web/i18n/fa-IR/workflow.ts +++ b/web/i18n/fa-IR/workflow.ts @@ -195,6 +195,8 @@ const translation = { comments: { panelTitle: 'دیدگاه', loading: 'در حال بارگذاری…', + reply: 'پاسخ', + noComments: 'هنوز دیدگاهی ثبت نشده است', placeholder: { add: 'افزودن دیدگاه', reply: 'پاسخ', diff --git a/web/i18n/fr-FR/workflow.ts b/web/i18n/fr-FR/workflow.ts index 8af75e2d07..c6eda423c5 100644 --- a/web/i18n/fr-FR/workflow.ts +++ b/web/i18n/fr-FR/workflow.ts @@ -195,6 +195,8 @@ const translation = { comments: { panelTitle: 'Commentaire', loading: 'Chargement…', + reply: 'Répondre', + noComments: 'Aucun commentaire pour l’instant', placeholder: { add: 'Ajouter un commentaire', reply: 'Répondre', diff --git a/web/i18n/hi-IN/workflow.ts b/web/i18n/hi-IN/workflow.ts index fd1df11199..ce0900d2ad 100644 --- a/web/i18n/hi-IN/workflow.ts +++ b/web/i18n/hi-IN/workflow.ts @@ -198,6 +198,8 @@ const translation = { comments: { panelTitle: 'टिप्पणी', loading: 'लोड हो रहा है…', + reply: 'जवाब दें', + noComments: 'अभी तक कोई टिप्पणी नहीं', placeholder: { add: 'टिप्पणी जोड़ें', reply: 'जवाब दें', diff --git a/web/i18n/id-ID/workflow.ts b/web/i18n/id-ID/workflow.ts index 9fc0293380..f6ef6e08f1 100644 --- a/web/i18n/id-ID/workflow.ts +++ b/web/i18n/id-ID/workflow.ts @@ -189,6 +189,8 @@ const translation = { comments: { panelTitle: 'Komentar', loading: 'Memuat…', + reply: 'Balas', + noComments: 'Belum ada komentar', placeholder: { add: 'Tambahkan komentar', reply: 'Balas', diff --git a/web/i18n/it-IT/workflow.ts b/web/i18n/it-IT/workflow.ts index 62382c1b74..e4602df5a8 100644 --- a/web/i18n/it-IT/workflow.ts +++ b/web/i18n/it-IT/workflow.ts @@ -200,6 +200,8 @@ const translation = { comments: { panelTitle: 'Commento', loading: 'Caricamento…', + reply: 'Rispondi', + noComments: 'Ancora nessun commento', placeholder: { add: 'Aggiungi un commento', reply: 'Rispondi', diff --git a/web/i18n/ja-JP/workflow.ts b/web/i18n/ja-JP/workflow.ts index 8e1edad026..5a947c4209 100644 --- a/web/i18n/ja-JP/workflow.ts +++ b/web/i18n/ja-JP/workflow.ts @@ -200,6 +200,8 @@ const translation = { comments: { panelTitle: 'コメント', loading: '読み込み中…', + reply: '返信', + noComments: 'まだコメントがありません', placeholder: { add: 'コメントを追加', reply: '返信', diff --git a/web/i18n/ko-KR/workflow.ts b/web/i18n/ko-KR/workflow.ts index b058fba5eb..6f87ffb5ce 100644 --- a/web/i18n/ko-KR/workflow.ts +++ b/web/i18n/ko-KR/workflow.ts @@ -203,6 +203,8 @@ const translation = { comments: { panelTitle: '댓글', loading: '불러오는 중…', + reply: '답글', + noComments: '아직 댓글이 없습니다', placeholder: { add: '댓글 추가', reply: '답글', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index 8cb195d87e..f92d923bc1 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -201,6 +201,8 @@ const translation = { comments: { panelTitle: '评论', loading: '加载中…', + reply: '回复', + noComments: '暂无评论', placeholder: { add: '添加评论', reply: '回复', diff --git a/web/i18n/zh-Hant/workflow.ts b/web/i18n/zh-Hant/workflow.ts index d00961fbef..df737dc1eb 100644 --- a/web/i18n/zh-Hant/workflow.ts +++ b/web/i18n/zh-Hant/workflow.ts @@ -195,6 +195,8 @@ const translation = { comments: { panelTitle: '評論', loading: '載入中…', + reply: '回覆', + noComments: '暫無評論', placeholder: { add: '新增評論', reply: '回覆',