From b2963b8a9c4d6b0d4bf6ecce8fd485b42627da5e Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 26 Mar 2025 18:59:50 +0800 Subject: [PATCH] Add unit to progress indicator on pipeline status dialog --- .../src/components/documents/PipelineStatusDialog.tsx | 2 +- lightrag_webui/src/locales/ar.json | 1 + lightrag_webui/src/locales/en.json | 1 + lightrag_webui/src/locales/fr.json | 1 + lightrag_webui/src/locales/zh.json | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lightrag_webui/src/components/documents/PipelineStatusDialog.tsx b/lightrag_webui/src/components/documents/PipelineStatusDialog.tsx index 642285df..3544be27 100644 --- a/lightrag_webui/src/components/documents/PipelineStatusDialog.tsx +++ b/lightrag_webui/src/components/documents/PipelineStatusDialog.tsx @@ -159,7 +159,7 @@ export default function PipelineStatusDialog({
{t('documentPanel.pipelineStatus.jobName')}: {status?.job_name || '-'}
{t('documentPanel.pipelineStatus.startTime')}: {status?.job_start ? new Date(status.job_start).toLocaleString() : '-'} - {t('documentPanel.pipelineStatus.progress')}: {status ? `${status.cur_batch}/${status.batchs}` : '-'} + {t('documentPanel.pipelineStatus.progress')}: {status ? `${status.cur_batch}/${status.batchs} ${t('documentPanel.pipelineStatus.unit')}` : '-'}
diff --git a/lightrag_webui/src/locales/ar.json b/lightrag_webui/src/locales/ar.json index 7c99739c..aa034f4a 100644 --- a/lightrag_webui/src/locales/ar.json +++ b/lightrag_webui/src/locales/ar.json @@ -99,6 +99,7 @@ "jobName": "اسم المهمة", "startTime": "وقت البدء", "progress": "التقدم", + "unit": "دفعة", "latestMessage": "آخر رسالة", "historyMessages": "سجل الرسائل", "errors": { diff --git a/lightrag_webui/src/locales/en.json b/lightrag_webui/src/locales/en.json index 5ec6624c..1f01f397 100644 --- a/lightrag_webui/src/locales/en.json +++ b/lightrag_webui/src/locales/en.json @@ -99,6 +99,7 @@ "jobName": "Job Name", "startTime": "Start Time", "progress": "Progress", + "unit": "batch", "latestMessage": "Latest Message", "historyMessages": "History Message", "errors": { diff --git a/lightrag_webui/src/locales/fr.json b/lightrag_webui/src/locales/fr.json index 5c9975de..c3779328 100644 --- a/lightrag_webui/src/locales/fr.json +++ b/lightrag_webui/src/locales/fr.json @@ -99,6 +99,7 @@ "jobName": "Nom du travail", "startTime": "Heure de début", "progress": "Progression", + "unit": "lot", "latestMessage": "Dernier message", "historyMessages": "Historique des messages", "errors": { diff --git a/lightrag_webui/src/locales/zh.json b/lightrag_webui/src/locales/zh.json index e356404c..ee37fa87 100644 --- a/lightrag_webui/src/locales/zh.json +++ b/lightrag_webui/src/locales/zh.json @@ -99,6 +99,7 @@ "jobName": "作业名称", "startTime": "开始时间", "progress": "进度", + "unit": "批", "latestMessage": "最新消息", "historyMessages": "历史消息", "errors": {