diff --git a/src/i18n/en/sizingTool.json b/src/i18n/en/sizingTool.json index b9050f8b..4484a164 100644 --- a/src/i18n/en/sizingTool.json +++ b/src/i18n/en/sizingTool.json @@ -10,10 +10,10 @@ "offloading": "Offloading Fields to Disk", "mmp": "Milvus uses <0>Mmap0> to enable direct memory access to large files on disk without reading the entire files into memory.", "indexType": "Index Type", - "withRawData": "With_raw_data", - "m": "M(Maximum degree of the node)", + "withRawData": "with_raw_data", + "m": "m(maximum degree of the node)", "nlist": "nlist", - "maxDegree": "Max Degree", + "maxDegree": "max_degree", "segmentSize": "Segment Size", "dependencyComp": "Dependency Component", "mode": "Mode", @@ -71,8 +71,8 @@ "disk": "Local Disk", "storage": "Storage", "podNum": "Pod Number", - "pvc": "Pcv per Pod: <0>{{pvc}} GB0>", - "pvcLabel": "Pcv per Pod", + "pvc": "Pvc per Pod: <0>{{pvc}} GB0>", + "pvcLabel": "Pvc per Pod", "journal": "Journal", "ledger": "Ledgers", "config": "{{cpu}} Core {{memory}} GB", diff --git a/src/parts/sizing/indexTypeComponent.tsx b/src/parts/sizing/indexTypeComponent.tsx index ad34af16..a3cd1cbe 100644 --- a/src/parts/sizing/indexTypeComponent.tsx +++ b/src/parts/sizing/indexTypeComponent.tsx @@ -8,6 +8,7 @@ import { N_LIST_RANGE_CONFIG, M_RANGE_CONFIG, } from '@/consts/sizing'; +import { useTranslation } from 'react-i18next'; type IndexTypeComponentProps = { data: IIndexType; @@ -16,11 +17,16 @@ type IndexTypeComponentProps = { const SCANNComponent = (props: IndexTypeComponentProps) => { const { data, onChange } = props; + const { t } = useTranslation('sizingTool'); return (
Index Parameters
-With_raw_data
++ {t('form.indexType')} +
++ {t('form.withRawData')} +
True
False
Index Parameters
-- M(Maximum degree of the node) +
+ {t('form.indexType')}
+{t('form.m')}
Index Parameters
-nlist
++ {t('form.indexType')} +
++ {t('form.maxDegree')} +
Index Parameters
-nlist
++ {t('form.indexType')} +
++ {t('form.nlist')} +
Index Parameters
-nlist
++ {t('form.indexType')} +
++ {t('form.nlist')} +