From f7928263c00b37edcfd99f4f2b6ce013f96fdf2b Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 26 Mar 2025 17:29:09 +0800 Subject: [PATCH] Fix i18n translation --- lightrag_webui/src/locales/ar.json | 2 +- lightrag_webui/src/locales/en.json | 30 +++++++++++++++--------------- lightrag_webui/src/locales/fr.json | 9 +++++++-- lightrag_webui/src/locales/zh.json | 4 ++-- 4 files changed, 25 insertions(+), 20 deletions(-) diff --git a/lightrag_webui/src/locales/ar.json b/lightrag_webui/src/locales/ar.json index 92f1f80f..7c99739c 100644 --- a/lightrag_webui/src/locales/ar.json +++ b/lightrag_webui/src/locales/ar.json @@ -94,7 +94,7 @@ }, "pipelineStatus": { "title": "حالة خط المعالجة", - "busy": "مشغول", + "busy": "خط المعالجة مشغول", "requestPending": "الطلب معلق", "jobName": "اسم المهمة", "startTime": "وقت البدء", diff --git a/lightrag_webui/src/locales/en.json b/lightrag_webui/src/locales/en.json index 2123c26f..5ec6624c 100644 --- a/lightrag_webui/src/locales/en.json +++ b/lightrag_webui/src/locales/en.json @@ -59,6 +59,8 @@ "title": "Document Management", "scanButton": "Scan", "scanTooltip": "Scan documents", + "pipelineStatusButton": "Pipeline Status", + "pipelineStatusTooltip": "View pipeline status", "uploadedTitle": "Uploaded Documents", "uploadedDescription": "List of uploaded documents and their statuses.", "emptyTitle": "No Documents", @@ -89,6 +91,19 @@ "hideButton": "Hide", "showFileNameTooltip": "Show file name", "hideFileNameTooltip": "Hide file name" + }, + "pipelineStatus": { + "title": "Pipeline Status", + "busy": "Pipeline Busy", + "requestPending": "Reques Pending", + "jobName": "Job Name", + "startTime": "Start Time", + "progress": "Progress", + "latestMessage": "Latest Message", + "historyMessages": "History Message", + "errors": { + "fetchFailed": "Fail to get pipeline status\n{{error}}" + } } }, "graphPanel": { @@ -113,7 +128,6 @@ "save": "Save", "refreshLayout": "Refresh Layout" }, - "zoomControl": { "zoomIn": "Zoom In", "zoomOut": "Zoom Out", @@ -121,7 +135,6 @@ "rotateCamera": "Clockwise Rotate", "rotateCameraCounterClockwise": "Counter-Clockwise Rotate" }, - "layoutsControl": { "startAnimation": "Continue layout animation", "stopAnimation": "Stop layout animation", @@ -135,7 +148,6 @@ "Force Atlas": "Force Atlas" } }, - "fullScreenControl": { "fullScreen": "Full Screen", "windowed": "Windowed" @@ -224,7 +236,6 @@ "querySettings": { "parametersTitle": "Parameters", "parametersDescription": "Configure your query parameters", - "queryMode": "Query Mode", "queryModeTooltip": "Select the retrieval strategy:\n• Naive: Basic search without advanced techniques\n• Local: Context-dependent information retrieval\n• Global: Utilizes global knowledge base\n• Hybrid: Combines local and global retrieval\n• Mix: Integrates knowledge graph with vector retrieval", "queryModeOptions": { @@ -234,7 +245,6 @@ "hybrid": "Hybrid", "mix": "Mix" }, - "responseFormat": "Response Format", "responseFormatTooltip": "Defines the response format. Examples:\n• Multiple Paragraphs\n• Single Paragraph\n• Bullet Points", "responseFormatOptions": { @@ -242,37 +252,27 @@ "singleParagraph": "Single Paragraph", "bulletPoints": "Bullet Points" }, - "topK": "Top K Results", "topKTooltip": "Number of top items to retrieve. Represents entities in 'local' mode and relationships in 'global' mode", "topKPlaceholder": "Number of results", - "maxTokensTextUnit": "Max Tokens for Text Unit", "maxTokensTextUnitTooltip": "Maximum number of tokens allowed for each retrieved text chunk", - "maxTokensGlobalContext": "Max Tokens for Global Context", "maxTokensGlobalContextTooltip": "Maximum number of tokens allocated for relationship descriptions in global retrieval", - "maxTokensLocalContext": "Max Tokens for Local Context", "maxTokensLocalContextTooltip": "Maximum number of tokens allocated for entity descriptions in local retrieval", - "historyTurns": "History Turns", "historyTurnsTooltip": "Number of complete conversation turns (user-assistant pairs) to consider in the response context", "historyTurnsPlaceholder": "Number of history turns", - "hlKeywords": "High-Level Keywords", "hlKeywordsTooltip": "List of high-level keywords to prioritize in retrieval. Separate with commas", "hlkeywordsPlaceHolder": "Enter keywords", - "llKeywords": "Low-Level Keywords", "llKeywordsTooltip": "List of low-level keywords to refine retrieval focus. Separate with commas", - "onlyNeedContext": "Only Need Context", "onlyNeedContextTooltip": "If True, only returns the retrieved context without generating a response", - "onlyNeedPrompt": "Only Need Prompt", "onlyNeedPromptTooltip": "If True, only returns the generated prompt without producing a response", - "streamResponse": "Stream Response", "streamResponseTooltip": "If True, enables streaming output for real-time responses" } diff --git a/lightrag_webui/src/locales/fr.json b/lightrag_webui/src/locales/fr.json index 25237cf2..5c9975de 100644 --- a/lightrag_webui/src/locales/fr.json +++ b/lightrag_webui/src/locales/fr.json @@ -85,11 +85,16 @@ "loadFailed": "Échec du chargement des documents\n{{error}}", "scanFailed": "Échec de la numérisation des documents\n{{error}}", "scanProgressFailed": "Échec de l'obtention de la progression de la numérisation\n{{error}}" - } + }, + "fileNameLabel": "Nom du fichier", + "showButton": "Afficher", + "hideButton": "Masquer", + "showFileNameTooltip": "Afficher le nom du fichier", + "hideFileNameTooltip": "Masquer le nom du fichier" }, "pipelineStatus": { "title": "État du Pipeline", - "busy": "Occupé", + "busy": "Pipeline occupé", "requestPending": "Requête en attente", "jobName": "Nom du travail", "startTime": "Heure de début", diff --git a/lightrag_webui/src/locales/zh.json b/lightrag_webui/src/locales/zh.json index 2379863c..e356404c 100644 --- a/lightrag_webui/src/locales/zh.json +++ b/lightrag_webui/src/locales/zh.json @@ -94,8 +94,8 @@ }, "pipelineStatus": { "title": "流水线状态", - "busy": "忙碌", - "requestPending": "请求等待中", + "busy": "流水线忙碌", + "requestPending": "待处理请求", "jobName": "作业名称", "startTime": "开始时间", "progress": "进度",