diff --git a/web/app/components/workflow/run/tracing-panel.tsx b/web/app/components/workflow/run/tracing-panel.tsx index 7684dc84b65830..613c10198de884 100644 --- a/web/app/components/workflow/run/tracing-panel.tsx +++ b/web/app/components/workflow/run/tracing-panel.tsx @@ -11,6 +11,7 @@ import { RiArrowDownSLine, RiMenu4Line, } from '@remixicon/react' +import { useTranslation } from 'react-i18next' import NodePanel from './node' import { BlockEnum, @@ -37,7 +38,7 @@ type TracingNodeProps = { hideNodeProcessDetail?: boolean } -function buildLogTree(nodes: NodeTracing[]): TracingNodeProps[] { +function buildLogTree(nodes: NodeTracing[], t: (key: string) => string): TracingNodeProps[] { const rootNodes: TracingNodeProps[] = [] const parallelStacks: { [key: string]: TracingNodeProps } = {} const levelCounts: { [key: string]: number } = {} @@ -58,7 +59,7 @@ function buildLogTree(nodes: NodeTracing[]): TracingNodeProps[] { const parentTitle = parentId ? parallelStacks[parentId]?.parallelTitle : '' const levelNumber = parentTitle ? parseInt(parentTitle.split('-')[1]) + 1 : 1 const letter = parallelChildCounts[levelKey]?.size > 1 ? String.fromCharCode(64 + levelCounts[levelKey]) : '' - return `PARALLEL-${levelNumber}${letter}` + return `${t('workflow.common.parallel')}-${levelNumber}${letter}` } const getBranchTitle = (parentId: string | null, branchNum: number): string => { @@ -67,7 +68,7 @@ function buildLogTree(nodes: NodeTracing[]): TracingNodeProps[] { const levelNumber = parentTitle ? parseInt(parentTitle.split('-')[1]) + 1 : 1 const letter = parallelChildCounts[levelKey]?.size > 1 ? String.fromCharCode(64 + levelCounts[levelKey]) : '' const branchLetter = String.fromCharCode(64 + branchNum) - return `BRANCH-${levelNumber}${letter}-${branchLetter}` + return `${t('workflow.common.branch')}-${levelNumber}${letter}-${branchLetter}` } // Count parallel children (for figuring out if we need to use letters) @@ -163,7 +164,8 @@ const TracingPanel: FC = ({ hideNodeInfo = false, hideNodeProcessDetail = false, }) => { - const treeNodes = buildLogTree(list) + const { t } = useTranslation() + const treeNodes = buildLogTree(list, t) const [collapsedNodes, setCollapsedNodes] = useState>(new Set()) const [hoveredParallel, setHoveredParallel] = useState(null) diff --git a/web/i18n/de-DE/workflow.ts b/web/i18n/de-DE/workflow.ts index 5e154aeca52a0c..c01d0e6f99418c 100644 --- a/web/i18n/de-DE/workflow.ts +++ b/web/i18n/de-DE/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: 'Trennen', jumpToNode: 'Zu diesem Knoten springen', addParallelNode: 'Parallelen Knoten hinzufügen', + parallel: 'PARALLEL', + branch: 'ZWEIG', }, env: { envPanelTitle: 'Umgebungsvariablen', diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index b83d213cb851d7..a7e768911ffecd 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: 'Disconnect', jumpToNode: 'Jump to this node', addParallelNode: 'Add Parallel Node', + parallel: 'PARALLEL', + branch: 'BRANCH', }, env: { envPanelTitle: 'Environment Variables', diff --git a/web/i18n/es-ES/workflow.ts b/web/i18n/es-ES/workflow.ts index 0efc996f91ab95..2260631d0fa963 100644 --- a/web/i18n/es-ES/workflow.ts +++ b/web/i18n/es-ES/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: 'Desconectar', jumpToNode: 'Saltar a este nodo', addParallelNode: 'Agregar nodo paralelo', + parallel: 'PARALELO', + branch: 'RAMA', }, env: { envPanelTitle: 'Variables de Entorno', diff --git a/web/i18n/fa-IR/workflow.ts b/web/i18n/fa-IR/workflow.ts index 67020f50250d70..eb36dfdc888362 100644 --- a/web/i18n/fa-IR/workflow.ts +++ b/web/i18n/fa-IR/workflow.ts @@ -93,6 +93,8 @@ const translation = { jumpToNode: 'پرش به این گره', parallelRun: 'اجرای موازی', addParallelNode: 'افزودن گره موازی', + parallel: 'موازی', + branch: 'شاخه', }, env: { envPanelTitle: 'متغیرهای محیطی', diff --git a/web/i18n/fr-FR/workflow.ts b/web/i18n/fr-FR/workflow.ts index 3e56246e0c2013..878d25804e3b36 100644 --- a/web/i18n/fr-FR/workflow.ts +++ b/web/i18n/fr-FR/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: 'Déconnecter', jumpToNode: 'Aller à ce nœud', addParallelNode: 'Ajouter un nœud parallèle', + parallel: 'PARALLÈLE', + branch: 'BRANCHE', }, env: { envPanelTitle: 'Variables d\'Environnement', diff --git a/web/i18n/hi-IN/workflow.ts b/web/i18n/hi-IN/workflow.ts index 072e4874e35df3..ac356c206758fb 100644 --- a/web/i18n/hi-IN/workflow.ts +++ b/web/i18n/hi-IN/workflow.ts @@ -96,6 +96,8 @@ const translation = { parallelRun: 'समानांतर रन', jumpToNode: 'इस नोड पर जाएं', addParallelNode: 'समानांतर नोड जोड़ें', + parallel: 'समानांतर', + branch: 'शाखा', }, env: { envPanelTitle: 'पर्यावरण चर', diff --git a/web/i18n/it-IT/workflow.ts b/web/i18n/it-IT/workflow.ts index f5d6fc8bf57c4c..0427a45cd95f08 100644 --- a/web/i18n/it-IT/workflow.ts +++ b/web/i18n/it-IT/workflow.ts @@ -97,6 +97,8 @@ const translation = { disconnect: 'Disconnettere', jumpToNode: 'Vai a questo nodo', addParallelNode: 'Aggiungi nodo parallelo', + parallel: 'PARALLELO', + branch: 'RAMO', }, env: { envPanelTitle: 'Variabili d\'Ambiente', diff --git a/web/i18n/ja-JP/workflow.ts b/web/i18n/ja-JP/workflow.ts index 755061e8f65772..48c20196016b03 100644 --- a/web/i18n/ja-JP/workflow.ts +++ b/web/i18n/ja-JP/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: '切る', jumpToNode: 'このノードにジャンプします', addParallelNode: '並列ノードを追加', + parallel: '並列', + branch: 'ブランチ', }, env: { envPanelTitle: '環境変数', diff --git a/web/i18n/ko-KR/workflow.ts b/web/i18n/ko-KR/workflow.ts index 8fed0e0417fc2f..4a97943790903a 100644 --- a/web/i18n/ko-KR/workflow.ts +++ b/web/i18n/ko-KR/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: '분리하다', jumpToNode: '이 노드로 이동', addParallelNode: '병렬 노드 추가', + parallel: '병렬', + branch: '브랜치', }, env: { envPanelTitle: '환경 변수', diff --git a/web/i18n/pl-PL/workflow.ts b/web/i18n/pl-PL/workflow.ts index de05ee7169d3d7..41927668f7bcd8 100644 --- a/web/i18n/pl-PL/workflow.ts +++ b/web/i18n/pl-PL/workflow.ts @@ -93,6 +93,8 @@ const translation = { jumpToNode: 'Przejdź do tego węzła', disconnect: 'Odłączyć', addParallelNode: 'Dodaj węzeł równoległy', + parallel: 'RÓWNOLEGŁY', + branch: 'GAŁĄŹ', }, env: { envPanelTitle: 'Zmienne Środowiskowe', diff --git a/web/i18n/pt-BR/workflow.ts b/web/i18n/pt-BR/workflow.ts index ef589c0bde2a4e..222fc788bfdfec 100644 --- a/web/i18n/pt-BR/workflow.ts +++ b/web/i18n/pt-BR/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: 'Desligar', jumpToNode: 'Ir para este nó', addParallelNode: 'Adicionar nó paralelo', + parallel: 'PARALELO', + branch: 'RAMIFICAÇÃO', }, env: { envPanelTitle: 'Variáveis de Ambiente', diff --git a/web/i18n/ro-RO/workflow.ts b/web/i18n/ro-RO/workflow.ts index 689ebdead9d237..ac4b718b072abc 100644 --- a/web/i18n/ro-RO/workflow.ts +++ b/web/i18n/ro-RO/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: 'Deconecta', jumpToNode: 'Sari la acest nod', addParallelNode: 'Adăugare nod paralel', + parallel: 'PARALEL', + branch: 'RAMURĂ', }, env: { envPanelTitle: 'Variabile de Mediu', diff --git a/web/i18n/ru-RU/workflow.ts b/web/i18n/ru-RU/workflow.ts index 9d3ce1235cc512..19318638957f0f 100644 --- a/web/i18n/ru-RU/workflow.ts +++ b/web/i18n/ru-RU/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: 'Разъединять', jumpToNode: 'Перейти к этому узлу', addParallelNode: 'Добавить параллельный узел', + parallel: 'ПАРАЛЛЕЛЬНЫЙ', + branch: 'ВЕТКА', }, env: { envPanelTitle: 'Переменные среды', diff --git a/web/i18n/tr-TR/workflow.ts b/web/i18n/tr-TR/workflow.ts index 96313d6d6b6fdd..a33a3724ad48ea 100644 --- a/web/i18n/tr-TR/workflow.ts +++ b/web/i18n/tr-TR/workflow.ts @@ -93,6 +93,8 @@ const translation = { addParallelNode: 'Paralel Düğüm Ekle', disconnect: 'Ayırmak', parallelRun: 'Paralel Koşu', + parallel: 'PARALEL', + branch: 'DAL', }, env: { envPanelTitle: 'Çevre Değişkenleri', diff --git a/web/i18n/uk-UA/workflow.ts b/web/i18n/uk-UA/workflow.ts index 03471348c8a047..e1bea99bcd2a88 100644 --- a/web/i18n/uk-UA/workflow.ts +++ b/web/i18n/uk-UA/workflow.ts @@ -93,6 +93,8 @@ const translation = { parallelRun: 'Паралельний біг', jumpToNode: 'Перейти до цього вузла', addParallelNode: 'Додати паралельний вузол', + parallel: 'ПАРАЛЕЛЬНИЙ', + branch: 'ГІЛКА', }, env: { envPanelTitle: 'Змінні середовища', diff --git a/web/i18n/vi-VN/workflow.ts b/web/i18n/vi-VN/workflow.ts index 5be19ab7fd18ee..5e6f0e00631f37 100644 --- a/web/i18n/vi-VN/workflow.ts +++ b/web/i18n/vi-VN/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: 'Ngắt kết nối', jumpToNode: 'Chuyển đến nút này', addParallelNode: 'Thêm nút song song', + parallel: 'SONG SONG', + branch: 'NHÁNH', }, env: { envPanelTitle: 'Biến Môi Trường', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index 39311649f44f69..3579ec5df3440e 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: '断开连接', jumpToNode: '跳转到节点', addParallelNode: '添加并行节点', + parallel: '并行', + branch: '分支', }, env: { envPanelTitle: '环境变量', diff --git a/web/i18n/zh-Hant/workflow.ts b/web/i18n/zh-Hant/workflow.ts index eef3ffaebd9be3..8e1b7529fe18db 100644 --- a/web/i18n/zh-Hant/workflow.ts +++ b/web/i18n/zh-Hant/workflow.ts @@ -93,6 +93,8 @@ const translation = { disconnect: '斷開', jumpToNode: '跳轉到此節點', addParallelNode: '添加並行節點', + parallel: '並行', + branch: '分支', }, env: { envPanelTitle: '環境變數',