yangdx
commited on
Commit
·
06e76f6
1
Parent(s):
957e35a
Update i18n translation
Browse files
lightrag_webui/src/components/graph/Settings.tsx
CHANGED
@@ -54,6 +54,7 @@ const LabeledNumberInput = ({
|
|
54 |
max?: number
|
55 |
defaultValue?: number
|
56 |
}) => {
|
|
|
57 |
const [currentValue, setCurrentValue] = useState<number | null>(value)
|
58 |
|
59 |
const onValueChange = useCallback(
|
@@ -120,7 +121,7 @@ const LabeledNumberInput = ({
|
|
120 |
className="h-6 w-6 flex-shrink-0 hover:bg-muted text-muted-foreground hover:text-foreground"
|
121 |
onClick={handleReset}
|
122 |
type="button"
|
123 |
-
title=
|
124 |
>
|
125 |
<Undo2 className="h-3.5 w-3.5" />
|
126 |
</Button>
|
|
|
54 |
max?: number
|
55 |
defaultValue?: number
|
56 |
}) => {
|
57 |
+
const { t } = useTranslation();
|
58 |
const [currentValue, setCurrentValue] = useState<number | null>(value)
|
59 |
|
60 |
const onValueChange = useCallback(
|
|
|
121 |
className="h-6 w-6 flex-shrink-0 hover:bg-muted text-muted-foreground hover:text-foreground"
|
122 |
onClick={handleReset}
|
123 |
type="button"
|
124 |
+
title={t('graphPanel.sideBar.settings.resetToDefault')}
|
125 |
>
|
126 |
<Undo2 className="h-3.5 w-3.5" />
|
127 |
</Button>
|
lightrag_webui/src/locales/ar.json
CHANGED
@@ -150,6 +150,7 @@
|
|
150 |
"maxQueryDepth": "أقصى عمق للاستعلام",
|
151 |
"maxNodes": "الحد الأقصى للعقد",
|
152 |
"maxLayoutIterations": "أقصى تكرارات التخطيط",
|
|
|
153 |
"depth": "D",
|
154 |
"max": "Max",
|
155 |
"degree": "الدرجة",
|
|
|
150 |
"maxQueryDepth": "أقصى عمق للاستعلام",
|
151 |
"maxNodes": "الحد الأقصى للعقد",
|
152 |
"maxLayoutIterations": "أقصى تكرارات التخطيط",
|
153 |
+
"resetToDefault": "إعادة التعيين إلى الافتراضي",
|
154 |
"depth": "D",
|
155 |
"max": "Max",
|
156 |
"degree": "الدرجة",
|
lightrag_webui/src/locales/en.json
CHANGED
@@ -150,6 +150,7 @@
|
|
150 |
"maxQueryDepth": "Max Query Depth",
|
151 |
"maxNodes": "Max Nodes",
|
152 |
"maxLayoutIterations": "Max Layout Iterations",
|
|
|
153 |
"depth": "D",
|
154 |
"max": "Max",
|
155 |
"degree": "Degree",
|
|
|
150 |
"maxQueryDepth": "Max Query Depth",
|
151 |
"maxNodes": "Max Nodes",
|
152 |
"maxLayoutIterations": "Max Layout Iterations",
|
153 |
+
"resetToDefault": "Reset to default",
|
154 |
"depth": "D",
|
155 |
"max": "Max",
|
156 |
"degree": "Degree",
|
lightrag_webui/src/locales/fr.json
CHANGED
@@ -150,6 +150,7 @@
|
|
150 |
"maxQueryDepth": "Profondeur maximale de la requête",
|
151 |
"maxNodes": "Nombre maximum de nœuds",
|
152 |
"maxLayoutIterations": "Itérations maximales de mise en page",
|
|
|
153 |
"depth": "D",
|
154 |
"max": "Max",
|
155 |
"degree": "Degré",
|
|
|
150 |
"maxQueryDepth": "Profondeur maximale de la requête",
|
151 |
"maxNodes": "Nombre maximum de nœuds",
|
152 |
"maxLayoutIterations": "Itérations maximales de mise en page",
|
153 |
+
"resetToDefault": "Réinitialiser par défaut",
|
154 |
"depth": "D",
|
155 |
"max": "Max",
|
156 |
"degree": "Degré",
|
lightrag_webui/src/locales/zh.json
CHANGED
@@ -150,6 +150,7 @@
|
|
150 |
"maxQueryDepth": "最大查询深度",
|
151 |
"maxNodes": "最大返回节点数",
|
152 |
"maxLayoutIterations": "最大布局迭代次数",
|
|
|
153 |
"depth": "深",
|
154 |
"max": "Max",
|
155 |
"degree": "邻边",
|
|
|
150 |
"maxQueryDepth": "最大查询深度",
|
151 |
"maxNodes": "最大返回节点数",
|
152 |
"maxLayoutIterations": "最大布局迭代次数",
|
153 |
+
"resetToDefault": "重置为默认值",
|
154 |
"depth": "深",
|
155 |
"max": "Max",
|
156 |
"degree": "邻边",
|