소스 검색

fix i18n

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 년 전
부모
커밋
c7d2b5353e

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

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

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

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

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

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

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

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

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

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

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

@@ -1,13 +1,13 @@
 const searchTrans = {
   firstTip: '2. Enter search vector {{dimensionTip}}',
   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]',
   collection: 'loaded collection',
   noCollection: 'No loaded collection',
   field: 'Vector field',
-  startTip: 'Start your vector search',
-  empty: 'No result',
+  startTip: '<- Start your vector search',
+  empty: 'No Result',
   result: 'Search Results',
   topK: 'TopK {{number}}',
   filter: 'Advanced Filter',

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

@@ -1,12 +1,12 @@
 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',
   thIP: 'IP',
   thCPUCount: 'CPU Core Count',
@@ -14,9 +14,9 @@ const systemViewTrans = {
   thDiskUsage: 'Disk Usage',
   thMemUsage: 'Memory Usage',
   thVersion: 'version',
-  thDeployMode: 'deploy mode',
-  thCreateTime: 'create time',
-  thUpdateTime: 'updated time',
+  thDeployMode: 'Deploy Mode',
+  thCreateTime: 'Create Time',
+  thUpdateTime: 'Updated Time',
 };
 
 export default systemViewTrans;

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

@@ -8,7 +8,7 @@ const userTrans = {
   oldPassword: 'Current Password',
   newPassword: 'New Password',
   confirmPassword: 'Confirm Password',
-  update: 'Update password',
+  update: 'Update Password',
   isNotSame: 'Not same as new password',
   deleteTip:
     '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]);
 
   const indexNameConfig: ITextfieldConfig = {
-    label: 'Index Name',
+    label: indexTrans('indexName'),
     key: 'index_name',
     onChange: (value: string) => updateForm('index_name', value),
     variant: 'filled',

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

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