From 68883c0e7aa7bb92922ee163e228e358fc429f5e Mon Sep 17 00:00:00 2001 From: yangdx Date: Sat, 20 Sep 2025 23:27:34 +0800 Subject: [PATCH] Fix legend translation keys by removing spaces from node types --- lightrag_webui/src/components/graph/Legend.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag_webui/src/components/graph/Legend.tsx b/lightrag_webui/src/components/graph/Legend.tsx index d26d11a3..e4a45857 100644 --- a/lightrag_webui/src/components/graph/Legend.tsx +++ b/lightrag_webui/src/components/graph/Legend.tsx @@ -28,7 +28,7 @@ const Legend: React.FC = ({ className }) => { style={{ backgroundColor: color }} /> - {t(`graphPanel.nodeTypes.${type.toLowerCase()}`, type)} + {t(`graphPanel.nodeTypes.${type.toLowerCase().replace(/\s+/g, '')}`, type)} ))}