Browse Source

fix i18n

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 year ago
parent
commit
c7d2b5353e

+ 1 - 0
client/src/i18n/cn/index.ts

@@ -5,6 +5,7 @@ const indexTrans = {
   create: '创建索引',
   create: '创建索引',
   index: '索引',
   index: '索引',
   desc: '描述',
   desc: '描述',
+  indexName: '索引名称',
 
 
   creating: '正在创建索引',
   creating: '正在创建索引',
 
 

+ 2 - 2
client/src/i18n/en/button.ts

@@ -17,12 +17,12 @@ const btnTrans = {
   next: 'Next',
   next: 'Next',
   previous: 'Previous',
   previous: 'Previous',
   done: 'Done',
   done: 'Done',
-  vectorSearch: 'Vector search',
+  vectorSearch: 'Vector Search',
   query: 'Query',
   query: 'Query',
   importSampleData: 'Import Sample data',
   importSampleData: 'Import Sample data',
   loading: 'Loading...',
   loading: 'Loading...',
   importing: 'Importing...',
   importing: 'Importing...',
-  example: 'Generate random vector',
+  example: 'Generate Random Vector',
   rename: 'Rename',
   rename: 'Rename',
   duplicate: 'Duplicate',
   duplicate: 'Duplicate',
   export: 'Export'
   export: 'Export'

+ 2 - 2
client/src/i18n/en/collection.ts

@@ -99,13 +99,13 @@ const collectionTrans = {
   queryTab: 'Data Query',
   queryTab: 'Data Query',
   previewTab: 'Data Preview',
   previewTab: 'Data Preview',
   segmentsTab: 'Segments',
   segmentsTab: 'Segments',
-  startTip: 'Start your data query',
+  startTip: 'Start Your Data Query',
   dataQuerylimits:
   dataQuerylimits:
     ' Please note that the maximum number of results for your data query is 16384.',
     ' Please note that the maximum number of results for your data query is 16384.',
   exprPlaceHolder: 'Please enter your data query, for example id > 0',
   exprPlaceHolder: 'Please enter your data query, for example id > 0',
 
 
   // alias dialog
   // alias dialog
-  aliasCreatePlaceholder: 'Alias name',
+  aliasCreatePlaceholder: 'Alias Name',
 
 
   // rename dialog
   // rename dialog
   newColNamePlaceholder: 'New Collection Name',
   newColNamePlaceholder: 'New Collection Name',

+ 1 - 1
client/src/i18n/en/common.ts

@@ -57,7 +57,7 @@ const commonTrans = {
     pb: 'PB',
     pb: 'PB',
   },
   },
 
 
-  size: 'Approximate size',
+  size: 'Approximate Size',
   tip: 'Use 100k vectors and 1024 segment file size as example',
   tip: 'Use 100k vectors and 1024 segment file size as example',
   disk: 'Disk',
   disk: 'Disk',
   memory: 'Memory',
   memory: 'Memory',

+ 1 - 0
client/src/i18n/en/index.ts

@@ -5,6 +5,7 @@ const indexTrans = {
   create: 'Create Index',
   create: 'Create Index',
   index: 'Index',
   index: 'Index',
   desc: 'Description',
   desc: 'Description',
+  indexName: 'Index Name',
 
 
   creating: 'Creating Index',
   creating: 'Creating Index',
 
 

+ 3 - 3
client/src/i18n/en/search.ts

@@ -1,13 +1,13 @@
 const searchTrans = {
 const searchTrans = {
   firstTip: '2. Enter search vector {{dimensionTip}}',
   firstTip: '2. Enter search vector {{dimensionTip}}',
   secondTip: '1. Choose collection and field',
   secondTip: '1. Choose collection and field',
-  thirdTip: 'Search parameters',
+  thirdTip: 'Search Parameters',
   vectorPlaceholder: 'Please input your vector value here, e.g. [1, 2, 3, 4]',
   vectorPlaceholder: 'Please input your vector value here, e.g. [1, 2, 3, 4]',
   collection: 'loaded collection',
   collection: 'loaded collection',
   noCollection: 'No loaded collection',
   noCollection: 'No loaded collection',
   field: 'Vector field',
   field: 'Vector field',
-  startTip: 'Start your vector search',
-  empty: 'No result',
+  startTip: '<- Start your vector search',
+  empty: 'No Result',
   result: 'Search Results',
   result: 'Search Results',
   topK: 'TopK {{number}}',
   topK: 'TopK {{number}}',
   filter: 'Advanced Filter',
   filter: 'Advanced Filter',

+ 11 - 11
client/src/i18n/en/systemView.ts

@@ -1,12 +1,12 @@
 const systemViewTrans = {
 const systemViewTrans = {
-  diskTitle: 'disk',
-  memoryTitle: 'memory',
-  qpsTitle: 'qps',
-  latencyTitle: 'latency',
-  hardwareTitle: 'hardware',
-  configTitle: 'config',
-  valueTitle: 'value',
-  systemTitle: 'system',
+  diskTitle: 'Disk',
+  memoryTitle: 'Memory',
+  qpsTitle: 'QPS',
+  latencyTitle: 'Latency',
+  hardwareTitle: 'Hardware',
+  configTitle: 'Config',
+  valueTitle: 'Value',
+  systemTitle: 'System',
   thName: 'Node Name',
   thName: 'Node Name',
   thIP: 'IP',
   thIP: 'IP',
   thCPUCount: 'CPU Core Count',
   thCPUCount: 'CPU Core Count',
@@ -14,9 +14,9 @@ const systemViewTrans = {
   thDiskUsage: 'Disk Usage',
   thDiskUsage: 'Disk Usage',
   thMemUsage: 'Memory Usage',
   thMemUsage: 'Memory Usage',
   thVersion: 'version',
   thVersion: 'version',
-  thDeployMode: 'deploy mode',
-  thCreateTime: 'create time',
-  thUpdateTime: 'updated time',
+  thDeployMode: 'Deploy Mode',
+  thCreateTime: 'Create Time',
+  thUpdateTime: 'Updated Time',
 };
 };
 
 
 export default systemViewTrans;
 export default systemViewTrans;

+ 1 - 1
client/src/i18n/en/user.ts

@@ -8,7 +8,7 @@ const userTrans = {
   oldPassword: 'Current Password',
   oldPassword: 'Current Password',
   newPassword: 'New Password',
   newPassword: 'New Password',
   confirmPassword: 'Confirm Password',
   confirmPassword: 'Confirm Password',
-  update: 'Update password',
+  update: 'Update Password',
   isNotSame: 'Not same as new password',
   isNotSame: 'Not same as new password',
   deleteTip:
   deleteTip:
     'Please select at least one item to drop and the root user can not be dropped.',
     'Please select at least one item to drop and the root user can not be dropped.',

+ 1 - 1
client/src/pages/schema/CreateForm.tsx

@@ -152,7 +152,7 @@ const CreateForm = (
   }, [updateForm, warningTrans, indexParams, formValue]);
   }, [updateForm, warningTrans, indexParams, formValue]);
 
 
   const indexNameConfig: ITextfieldConfig = {
   const indexNameConfig: ITextfieldConfig = {
-    label: 'Index Name',
+    label: indexTrans('indexName'),
     key: 'index_name',
     key: 'index_name',
     onChange: (value: string) => updateForm('index_name', value),
     onChange: (value: string) => updateForm('index_name', value),
     variant: 'filled',
     variant: 'filled',

+ 1 - 1
client/src/pages/schema/Schema.tsx

@@ -187,7 +187,7 @@ const Schema: FC<{
       id: 'indexName',
       id: 'indexName',
       align: 'left',
       align: 'left',
       disablePadding: true,
       disablePadding: true,
-      label: 'Index name',
+      label: indexTrans('indexName')
     },
     },
     {
     {
       id: '_indexTypeElement',
       id: '_indexTypeElement',