Skip to content

Commit 554f6ae

Browse files
feat(i18n): translate remaining hardcoded trace column headers and sync locale files
1 parent 72a71e2 commit 554f6ae

8 files changed

Lines changed: 54 additions & 12 deletions

File tree

src/frontend/src/locales/de.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,14 +1061,20 @@
10611061
"trace.endDate": "Enddatum",
10621062
"trace.input": "Eingabe",
10631063
"trace.invalidDateRange": "Ungültiger Datumsbereich",
1064+
"trace.latency": "Latenz",
10641065
"trace.output": "Ausgabe",
10651066
"trace.reload": "Erneut laden",
1067+
"trace.run": "Ausführen",
10661068
"trace.searchRuns": "Die Suche läuft...",
10671069
"trace.spanTree": "Spannweiten",
10681070
"trace.startDate": "Startdatum",
1071+
"trace.status": "Status",
1072+
"trace.timestamp": "Zeitstempel (UTC)",
1073+
"trace.token": "Token",
1074+
"trace.traceId": "Trace-ID",
10691075
"ui.resizeSidebar": "Seitenleiste in der Größe anpassen (mit den Pfeiltasten oder durch Ziehen)",
10701076
"ui.toggleSidebar": "Seitenleiste ein-/ausblenden",
10711077
"voice.selectLanguage": "Sprache auswählen",
10721078
"voice.selectMicrophone": "Mikrofon auswählen",
10731079
"voice.selectVoice": "Wählen"
1074-
}
1080+
}

src/frontend/src/locales/en.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,12 @@
10501050
"trace.allStatus": "All Status",
10511051
"trace.input": "Input",
10521052
"trace.output": "Output",
1053+
"trace.run": "Run",
1054+
"trace.traceId": "Trace ID",
1055+
"trace.timestamp": "Timestamp (UTC)",
1056+
"trace.token": "Token",
1057+
"trace.latency": "Latency",
1058+
"trace.status": "Status",
10531059
"flow.restoreVersion": "Restore this version of your flow",
10541060
"flow.saveVersion": "Save a version of your flow",
10551061
"flow.moreOptions": "More options",

src/frontend/src/locales/es.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,14 +1061,20 @@
10611061
"trace.endDate": "Fecha de finalización",
10621062
"trace.input": "Entrada",
10631063
"trace.invalidDateRange": "Intervalo de fechas no válido",
1064+
"trace.latency": "Latencia",
10641065
"trace.output": "Resultado",
10651066
"trace.reload": "Recargar",
1067+
"trace.run": "Ejecute",
10661068
"trace.searchRuns": "Se está realizando una búsqueda...",
10671069
"trace.spanTree": "Longitudes de tramos",
10681070
"trace.startDate": "Fecha de inicio",
1071+
"trace.status": "Estado",
1072+
"trace.timestamp": "Fecha y hora (UTC)",
1073+
"trace.token": "Señal",
1074+
"trace.traceId": "ID de rastreo",
10691075
"ui.resizeSidebar": "Cambiar el tamaño de la barra lateral (utiliza las teclas de flecha o arrastra para cambiar el tamaño)",
10701076
"ui.toggleSidebar": "Mostrar/ocultar la barra lateral",
10711077
"voice.selectLanguage": "Seleccionar idioma",
10721078
"voice.selectMicrophone": "Seleccionar micrófono",
10731079
"voice.selectVoice": "Seleccionar"
1074-
}
1080+
}

src/frontend/src/locales/fr.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,14 +1061,20 @@
10611061
"trace.endDate": "Date de fin",
10621062
"trace.input": "Entrée",
10631063
"trace.invalidDateRange": "Plage de dates non valide",
1064+
"trace.latency": "Temps d'attente",
10641065
"trace.output": "Sortie",
10651066
"trace.reload": "Recharger",
1067+
"trace.run": "Exécuter",
10661068
"trace.searchRuns": "La recherche est en cours...",
10671069
"trace.spanTree": "Portées de tracé",
10681070
"trace.startDate": "Date de début",
1071+
"trace.status": "Statut",
1072+
"trace.timestamp": "Horodatage (UTC)",
1073+
"trace.token": "Jeton",
1074+
"trace.traceId": "ID de la trace",
10691075
"ui.resizeSidebar": "Redimensionner la barre latérale (utilisez les touches fléchées ou faites glisser pour redimensionner)",
10701076
"ui.toggleSidebar": "Afficher/masquer la barre latérale",
10711077
"voice.selectLanguage": "Sélectionner une langue",
10721078
"voice.selectMicrophone": "Sélectionner un microphone",
10731079
"voice.selectVoice": "Sélectionner"
1074-
}
1080+
}

src/frontend/src/locales/ja.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,14 +1061,20 @@
10611061
"trace.endDate": "終了日",
10621062
"trace.input": "入力",
10631063
"trace.invalidDateRange": "日付範囲が不正です",
1064+
"trace.latency": "待ち時間",
10641065
"trace.output": "出力",
10651066
"trace.reload": "再ロード",
1067+
"trace.run": "実行",
10661068
"trace.searchRuns": "検索が実行されます...",
10671069
"trace.spanTree": "トレースのスパン",
10681070
"trace.startDate": "開始日",
1071+
"trace.status": "状況",
1072+
"trace.timestamp": "タイムスタンプ(UTC)",
1073+
"trace.token": "トークン",
1074+
"trace.traceId": "トレース ID",
10691075
"ui.resizeSidebar": "サイドバーのサイズを変更する(矢印キーを使用するか、ドラッグしてサイズを変更してください)",
10701076
"ui.toggleSidebar": "サイドバーの表示/非表示を切り替える",
10711077
"voice.selectLanguage": "言語の選択",
10721078
"voice.selectMicrophone": "マイクを選択",
10731079
"voice.selectVoice": "選択"
1074-
}
1080+
}

src/frontend/src/locales/pt.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,14 +1061,20 @@
10611061
"trace.endDate": "Data de encerramento",
10621062
"trace.input": "Entrada",
10631063
"trace.invalidDateRange": "Intervalo de datas inválido",
1064+
"trace.latency": "Latência",
10641065
"trace.output": "Saída",
10651066
"trace.reload": "Recarregar",
1067+
"trace.run": "Executar o",
10661068
"trace.searchRuns": "Pesquisa em andamento...",
10671069
"trace.spanTree": "Intervalos de rastreamento",
10681070
"trace.startDate": "Data de Início",
1071+
"trace.status": "Estado",
1072+
"trace.timestamp": "Data e hora (UTC)",
1073+
"trace.token": "Token",
1074+
"trace.traceId": "ID de rastreio",
10691075
"ui.resizeSidebar": "Redimensione a barra lateral (use as setas do teclado ou arraste para redimensionar)",
10701076
"ui.toggleSidebar": "Alternar a barra lateral",
10711077
"voice.selectLanguage": "Selecionar idioma",
10721078
"voice.selectMicrophone": "Selecionar microfone",
10731079
"voice.selectVoice": "Selecionar"
1074-
}
1080+
}

src/frontend/src/locales/zh-Hans.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,14 +1061,20 @@
10611061
"trace.endDate": "结束日期",
10621062
"trace.input": "输入",
10631063
"trace.invalidDateRange": "日期范围无效",
1064+
"trace.latency": "等待时间",
10641065
"trace.output": "输出",
10651066
"trace.reload": "重新装入",
1067+
"trace.run": "运行",
10661068
"trace.searchRuns": "正在搜索……",
10671069
"trace.spanTree": "轨迹跨度",
10681070
"trace.startDate": "开始日期",
1071+
"trace.status": "状态",
1072+
"trace.timestamp": "时间戳(UTC)",
1073+
"trace.token": "令牌",
1074+
"trace.traceId": "跟踪标识",
10691075
"ui.resizeSidebar": "调整侧边栏大小(使用方向键或拖动来调整大小)",
10701076
"ui.toggleSidebar": "切换侧边栏",
10711077
"voice.selectLanguage": "选择语言",
10721078
"voice.selectMicrophone": "选择麦克风",
10731079
"voice.selectVoice": "选择"
1074-
}
1080+
}

src/frontend/src/pages/FlowPage/components/TraceComponent/config/flowTraceColumns.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function createFlowTracesColumns({
1818
} = {}): ColDef[] {
1919
return [
2020
{
21-
headerName: "Run",
21+
headerName: i18n.t("trace.run"),
2222
field: "run",
2323
flex: 1.0,
2424
minWidth: 240,
@@ -28,7 +28,7 @@ export function createFlowTracesColumns({
2828
valueGetter: () => formatRunValue(flowName, flowId),
2929
},
3030
{
31-
headerName: "Trace ID",
31+
headerName: i18n.t("trace.traceId"),
3232
field: "id",
3333
flex: 0.3,
3434
minWidth: 240,
@@ -38,7 +38,7 @@ export function createFlowTracesColumns({
3838
},
3939

4040
{
41-
headerName: "Timestamp (UTC)",
41+
headerName: i18n.t("trace.timestamp"),
4242
field: "startTime",
4343
flex: 0.5,
4444
minWidth: 70,
@@ -68,7 +68,7 @@ export function createFlowTracesColumns({
6868
valueGetter: (params) => formatObjectValue(params.data?.output),
6969
},
7070
{
71-
headerName: "Token",
71+
headerName: i18n.t("trace.token"),
7272
field: "totalTokens",
7373
flex: 0.5,
7474
minWidth: 50,
@@ -84,7 +84,7 @@ export function createFlowTracesColumns({
8484
},
8585
},
8686
{
87-
headerName: "Latency",
87+
headerName: i18n.t("trace.latency"),
8888
field: "totalLatencyMs",
8989
flex: 0.6,
9090
minWidth: 50,
@@ -100,7 +100,7 @@ export function createFlowTracesColumns({
100100
},
101101
},
102102
{
103-
headerName: "Status",
103+
headerName: i18n.t("trace.status"),
104104
field: "status",
105105
flex: 0.6,
106106
minWidth: 100,

0 commit comments

Comments
 (0)