From fe72b9d65dc36e9b5346e0879d003b4921eaa8f7 Mon Sep 17 00:00:00 2001 From: yangdx Date: Sat, 22 Mar 2025 15:07:46 +0800 Subject: [PATCH] Updated relationships label in locale files. --- lightrag_webui/src/hooks/useLightragGraph.tsx | 4 ++-- lightrag_webui/src/locales/ar.json | 2 +- lightrag_webui/src/locales/en.json | 2 +- lightrag_webui/src/locales/fr.json | 2 +- lightrag_webui/src/locales/zh.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lightrag_webui/src/hooks/useLightragGraph.tsx b/lightrag_webui/src/hooks/useLightragGraph.tsx index c2c8f7b8..2ee28749 100644 --- a/lightrag_webui/src/hooks/useLightragGraph.tsx +++ b/lightrag_webui/src/hooks/useLightragGraph.tsx @@ -686,11 +686,11 @@ const useLightrangeGraph = () => { updateNodeSizes(sigmaGraph, nodesWithDiscardedEdges, minDegree, maxDegree); if (sigmaGraph.hasNode(nodeId)) { - const finalDegree = sigmaGraph.degree(nodeId); + const finalDegree = sigmaGraph.degree(nodeId); const limitedDegree = Math.min(finalDegree, maxDegree + 1); const newSize = Math.round( Constants.minNodeSize + scale * Math.pow((limitedDegree - minDegree) / range, 0.5) - ); + ); sigmaGraph.setNodeAttribute(nodeId, 'size', newSize); nodeToExpand.size = newSize; nodeToExpand.degree = finalDegree; diff --git a/lightrag_webui/src/locales/ar.json b/lightrag_webui/src/locales/ar.json index c77a946a..9205aa5a 100644 --- a/lightrag_webui/src/locales/ar.json +++ b/lightrag_webui/src/locales/ar.json @@ -164,7 +164,7 @@ "labels": "التسميات", "degree": "الدرجة", "properties": "الخصائص", - "relationships": "العلاقات", + "relationships": "العلاقات (داخل الرسم الفرعي)", "expandNode": "توسيع العقدة", "pruneNode": "تقليم العقدة", "deleteAllNodesError": "رفض حذف جميع العقد في الرسم البياني", diff --git a/lightrag_webui/src/locales/en.json b/lightrag_webui/src/locales/en.json index cea90a56..88840da3 100644 --- a/lightrag_webui/src/locales/en.json +++ b/lightrag_webui/src/locales/en.json @@ -167,7 +167,7 @@ "labels": "Labels", "degree": "Degree", "properties": "Properties", - "relationships": "Relationships", + "relationships": "Relations(within subgraph)", "expandNode": "Expand Node", "pruneNode": "Prune Node", "deleteAllNodesError": "Refuse to delete all nodes in the graph", diff --git a/lightrag_webui/src/locales/fr.json b/lightrag_webui/src/locales/fr.json index a4e3b280..889f7f97 100644 --- a/lightrag_webui/src/locales/fr.json +++ b/lightrag_webui/src/locales/fr.json @@ -164,7 +164,7 @@ "labels": "Étiquettes", "degree": "Degré", "properties": "Propriétés", - "relationships": "Relations", + "relationships": "Relations(dans le sous-graphe)", "expandNode": "Développer le nœud", "pruneNode": "Élaguer le nœud", "deleteAllNodesError": "Refus de supprimer tous les nœuds du graphe", diff --git a/lightrag_webui/src/locales/zh.json b/lightrag_webui/src/locales/zh.json index a87e9c1d..6fabd392 100644 --- a/lightrag_webui/src/locales/zh.json +++ b/lightrag_webui/src/locales/zh.json @@ -164,7 +164,7 @@ "labels": "标签", "degree": "度数", "properties": "属性", - "relationships": "关系", + "relationships": "关系(子图内)", "expandNode": "扩展节点", "pruneNode": "修剪节点", "deleteAllNodesError": "拒绝删除图中的所有节点",