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 5c63acc75b..06d3821e6a 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 615eebcd7d..c84bbefc58 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 d9dc26cc05..d78850ad83 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 e4283e58ff..addb9618b9 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 565465dc43..104606789f 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 20efc89990..b6330fe79f 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 eced79a90d..63496f58b5 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 8e97de0ef0..a94b7d06ca 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 f7871e6458..cefe0b742f 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 351e4fc4ce..73eb5da3dd 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 8f4247ea97..f23bc97910 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 a570b96bc4..bb580c3de4 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: '回覆',