Skip to content

Commit 1010de5

Browse files
fix: optimize language
1 parent 4ddc491 commit 1010de5

File tree

14 files changed

+101
-93
lines changed

14 files changed

+101
-93
lines changed

ui/src/locales/lang/en-US/ai-chat.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
oppose: 'Dislike',
2424
cancelOppose: 'Cancel Dislike',
2525
continue: 'Continue',
26-
stopChat: 'Stop Answering'
26+
stopChat: 'Stop Output'
2727
},
2828
tip: {
2929
error500Message: 'Sorry, the service is currently under maintenance. Please try again later!',
@@ -32,8 +32,8 @@ export default {
3232
'Sorry, you have reached the maximum number of questions. Please try again tomorrow!',
3333
answerMessage:
3434
'Sorry, no relevant content was found. Please rephrase your question or provide more information.',
35-
stopAnswer: 'Answering stopped',
36-
answerLoading: 'Answering',
35+
stopAnswer: 'Output stopped',
36+
answerLoading: 'Thinking',
3737
recorderTip: `<p>This feature requires the use of a microphone. Browsers prohibit recording on insecure pages. Solutions are as follows:<br/>
3838
1. Enable HTTPS to resolve;<br/>
3939
2. If there is no HTTPS configuration, modify the browser security settings. Chrome settings as follows:<br/>
@@ -80,13 +80,13 @@ export default {
8080
output: 'Output',
8181
rerankerContent: 'Reranked Content',
8282
rerankerResult: 'Reranked Results',
83-
paragraph: 'Paragraph',
83+
paragraph: 'Segment',
8484
noSubmit: 'User did not submit',
8585
errMessage: 'Error Log'
8686
},
8787
KnowledgeSource: {
8888
title: 'Knowledge Source',
89-
referenceParagraph: 'Referenced Paragraph',
89+
referenceParagraph: 'Referenced Segment',
9090
consume: 'Consumption',
9191
consumeTime: 'Time Consumed'
9292
},

ui/src/locales/lang/en-US/common.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
export default {
22
create: 'Create',
3-
createSuccess: 'Create successful',
3+
createSuccess: 'Successful',
44
copy: 'Copy',
5-
copySuccess: 'Copy successful',
5+
copySuccess: 'Successful',
66
copyError: 'Copy Failed',
77
save: 'Save',
8-
saveSuccess: 'Save successful',
8+
saveSuccess: 'Successful',
99
delete: 'Delete',
10-
deleteSuccess: 'Deleted successful',
10+
deleteSuccess: 'Successful',
1111
setting: 'Settings',
12-
settingSuccess: 'Setting successful',
12+
settingSuccess: 'Successful',
1313
submit: 'Submit',
14-
submitSuccess: 'Submitted successfully',
14+
submitSuccess: 'Successful',
1515
edit: 'Edit',
16-
editSuccess: 'Edit successful',
16+
editSuccess: 'Successful',
1717
modify: 'Modify',
18-
modifySuccess: 'Modify successful',
18+
modifySuccess: 'Successful',
1919
cancel: 'Cancel',
2020
confirm: 'OK',
21-
tip: 'Prompt',
21+
tip: 'Tips',
2222
add: 'Add',
2323
refresh: 'Refresh',
2424
search: 'Search',
@@ -27,9 +27,9 @@ export default {
2727
createDate: 'Create Date',
2828
createTime: 'Create Time',
2929
operation: 'Operation',
30-
character: 'words',
30+
character: 'charcters',
3131
export: 'Export',
32-
exportSuccess: 'Export successful',
32+
exportSuccess: 'Successful',
3333
unavailable: '(Unavailable)',
3434
public: 'Public',
3535
private: 'Private',
@@ -47,8 +47,8 @@ export default {
4747
},
4848
status: {
4949
label: 'Status',
50-
enableSuccess: 'Enable successful',
51-
disableSuccess: 'Disable successful'
50+
enableSuccess: 'Successful',
51+
disableSuccess: 'Successful'
5252
},
5353
inputPlaceholder: 'Please input',
5454
title: 'Title',

ui/src/locales/lang/en-US/views/application-overview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
msgConfirm1: 'Do you want to regenerate the public access link?',
1818
msgConfirm2:
1919
'Regenerating the public access link will affect third-party embedded scripts changes and will require re-embedding the new script into third-party sites. Please proceed with caution!',
20-
refreshSuccess: 'Refresh successful'
20+
refreshSuccess: 'Successful'
2121
},
2222
APIKeyDialog: {
2323
saveSettings: 'Save Settings',
@@ -63,7 +63,7 @@ export default {
6363
languageLabel: 'Language',
6464
showSourceLabel: 'Show Source',
6565
showExecutionDetail: 'Show Execution Detail',
66-
restoreDefault: 'Restore Default',
66+
restoreDefault: 'Reset to default',
6767
customThemeColor: 'Custom Theme Color',
6868
headerTitleFontColor: 'Header Title Font Color',
6969
default: 'Default',

ui/src/locales/lang/en-US/views/application-workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default {
110110
searchDatasetNode: {
111111
label: 'Knowledge Search',
112112
text: 'Associate knowledge and find relevant segments',
113-
paragraph_list: 'List of retrieved paragraphs',
113+
paragraph_list: 'List of retrieved segments',
114114
is_hit_handling_method_list: 'List of segments that meet direct response criteria',
115115
result: 'Search Result',
116116
directly_return: 'Content of segments that meet direct response criteria',

ui/src/locales/lang/en-US/views/application.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ export default {
3333
},
3434
form: {
3535
appName: {
36-
label: 'APP Name',
36+
label: 'Name',
3737
placeholder: 'Please enter the APP name',
3838
requiredMessage: 'APP name is required'
3939
},
4040
appDescription: {
41-
label: 'APP Description',
41+
label: 'Description',
4242
placeholder:
4343
'Describe the APP scenario and use, e.g.: XXX assistant answering user questions about XXX product usage'
4444
},
4545
appType: {
46-
label: 'Please select the APP type',
46+
label: 'Type',
4747
simplePlaceholder: 'Suitable for beginners to create assistant.',
4848
workflowPlaceholder: 'Suitable for advanced users to customize the workflow of assistant'
4949
},
@@ -131,10 +131,10 @@ export default {
131131
similarityThreshold: 'Similarity Threshold',
132132
similarityTooltip: 'The higher the similarity, the stronger the correlation.',
133133
topReferences: 'Top N References',
134-
maxCharacters: 'Maximum words per Reference',
134+
maxCharacters: 'Maximum Characters per Reference',
135135
noReferencesAction: 'When there are no knowledge references',
136136
continueQuestioning: 'Continue to ask questions to the Al model',
137-
provideAnswer: 'Provide a specific answer',
137+
provideAnswer: 'Specify Reply Content',
138138
designated_answer:
139139
'Hello, I am XXX Assistant. My knowledge only contains information related to XXX products. Please rephrase your question.',
140140
defaultPrompt1:
@@ -168,7 +168,7 @@ export default {
168168
secretPlaceholder: 'Please enter secret',
169169
tokenPlaceholder: 'Please enter token',
170170
encodingAesKeyPlaceholder: 'Please enter EncodingAESKey',
171-
authenticationSuccessful: 'Authentication successful',
171+
authenticationSuccessful: 'Successful',
172172
urlInfo:
173173
'-APP management-Self-built-Created APP-Receive messages-Set the "URL" received by the API'
174174
},
@@ -204,8 +204,8 @@ export default {
204204
},
205205
hitTest: {
206206
title: 'Retrieval Test',
207-
text: 'Ensure effective response by matching paragraphs to user inquiries.',
208-
emptyMessage1: 'The matching paragraph is displayed here',
207+
text: 'Ensure effective response by matching segments to user inquiries.',
208+
emptyMessage1: 'The matching segment is displayed here',
209209
emptyMessage2: 'No matching sections found'
210210
}
211211
}

ui/src/locales/lang/en-US/views/dataset.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export default {
3131
},
3232
form: {
3333
datasetName: {
34-
label: 'Knowledge Name',
34+
label: 'Name',
3535
placeholder: 'Please enter the knowledge name',
3636
requiredMessage: 'Please enter the knowledge name'
3737
},
3838
datasetDescription: {
39-
label: 'Knowledge Description',
39+
label: 'Description',
4040
placeholder:
4141
'Describe the content of the knowledge. A detailed description will help AI understand the content better, improving the accuracy of content retrieval and hit rate.',
4242
requiredMessage: 'Please enter the knowledge description'
@@ -47,7 +47,7 @@ export default {
4747
requiredMessage: 'Please select the embedding model'
4848
},
4949
datasetType: {
50-
label: 'Knowledge Type',
50+
label: 'Type',
5151
generalInfo: 'Upload local documents',
5252
webInfo: 'Sync text data from a web site'
5353
},
@@ -64,8 +64,8 @@ export default {
6464
},
6565
ResultSuccess: {
6666
title: 'Knowledge Created Successfully',
67-
paragraph: 'Paragraphs',
68-
paragraph_count: 'Paragraphs',
67+
paragraph: 'Segments',
68+
paragraph_count: 'Segments',
6969
documentList: 'Document List',
7070
loading: 'Importing',
7171
buttons: {

ui/src/locales/lang/en-US/views/document.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export default {
1515
},
1616
tip: {
1717
saveMessage: 'Current changes have not been saved. Confirm exit?',
18-
cancelSuccess: 'Batch cancellation successful',
19-
sendMessage: 'Sent successfully',
20-
vectorizationSuccess: 'Batch vectorization successful',
18+
cancelSuccess: 'Successful',
19+
sendMessage: 'Successful',
20+
vectorizationSuccess: 'Successful',
2121
nameMessage: 'Document name cannot be empty!',
22-
importMessage: 'Import successful',
23-
migrationSuccess: 'Move successful'
22+
importMessage: 'Successful',
23+
migrationSuccess: 'Successful'
2424
},
2525
upload: {
2626
selectFile: 'Select File',
@@ -39,7 +39,7 @@ export default {
3939
fileType: {
4040
txt: {
4141
label: 'Text File',
42-
tip1: '1. It is recommended to standardize the paragraph markers in the file before uploading.',
42+
tip1: '1. It is recommended to standardize the segment markers in the file before uploading.',
4343
tip2: '2. Up to 50 files can be uploaded at once, with each file not exceeding 100MB.'
4444
},
4545
table: {
@@ -59,11 +59,11 @@ export default {
5959
setRules: {
6060
title: {
6161
setting: 'Set Segment Rules',
62-
preview: 'Segment Preview'
62+
preview: 'Preview'
6363
},
6464
intelligent: {
65-
label: 'Intelligent Segmentation (Recommended)',
66-
text: 'If you are unsure how to set segmentation rules, it is recommended to use intelligent segmentation.'
65+
label: 'Automatic Segmentation (Recommended)',
66+
text: 'If you are unsure how to set segmentation rules, it is recommended to use automatic segmentation.'
6767
},
6868
advanced: {
6969
label: 'Advanced Segmentation',
@@ -91,11 +91,11 @@ export default {
9191
prev: 'Previous',
9292
next: 'Next',
9393
import: 'Start Import',
94-
preview: 'Generate Preview'
94+
preview: 'Apply'
9595
},
9696
table: {
9797
name: 'Document Name',
98-
char_length: 'Words',
98+
char_length: 'Charcter',
9999
paragraph: 'Segment',
100100
all: 'All',
101101
updateTime: 'Update Time'
@@ -105,7 +105,7 @@ export default {
105105
SUCCESS: 'Success',
106106
FAILURE: 'Failure',
107107
EMBEDDING: 'Indexing',
108-
PENDING: 'Queued',
108+
PENDING: 'Queuing',
109109
GENERATE: 'Generating',
110110
SYNC: 'Syncing',
111111
REVOKE: 'Cancelling',
@@ -122,14 +122,14 @@ export default {
122122
confirmMessage1:
123123
'Syncing will delete existing data and retrieve new data. Please proceed with caution.',
124124
confirmMessage2: 'Cannot sync, please set the document URL first.',
125-
successMessage: 'Document synced successfully'
125+
successMessage: 'Successful'
126126
},
127127
delete: {
128128
confirmTitle1: 'Confirm batch deletion of',
129129
confirmTitle2: 'documents?',
130130
confirmMessage:
131131
'Segments within the selected documents will also be deleted. Please proceed with caution.',
132-
successMessage: 'Batch deletion successful',
132+
successMessage: 'Successful',
133133
confirmTitle3: 'Confirm deleting document:',
134134
confirmMessage1: 'Under this document',
135135
confirmMessage2: 'All segments will be deleted, please operate with caution. '
@@ -161,11 +161,11 @@ export default {
161161
},
162162
hitHandlingMethod: {
163163
optimization: 'Model optimization',
164-
directly_return: 'Direct answer'
164+
directly_return: 'Respond directly'
165165
},
166166
generateQuestion: {
167167
title: 'Generate Questions',
168-
successMessage: 'Question generation successful',
168+
successMessage: 'Successful',
169169
tip1: 'The {data} in the prompt is a placeholder for segmented content, which is replaced by the segmented content when executed and sent to the AI model;',
170170
tip2: 'The AI model generates relevant questions based on the segmented content. Please place the generated questions within the',
171171
tip3: 'tags, and the system will automatically associate the questions within these tags;',

ui/src/locales/lang/en-US/views/function-lib.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default {
2929
},
3030
form: {
3131
functionName: {
32-
label: 'Function Name',
32+
label: 'Name',
3333
placeholder: 'Please enter the function name',
3434
requiredMessage: 'Please enter the function name'
3535
},
@@ -66,13 +66,13 @@ export default {
6666
outputParam: 'Output Parameters',
6767
paramInfo1: 'Displayed when using the function',
6868
paramInfo2: 'Not displayed when using the function',
69-
code: 'Function Content (Python)'
69+
code: 'Content (Python)'
7070
},
7171
debug: {
7272
run: 'Run',
7373
output: 'Output',
7474
runResult: 'Run Result',
75-
runSuccess: 'Run successful',
75+
runSuccess: 'Successful',
7676
runFailed: 'Run Failed'
7777
}
7878
}

ui/src/locales/lang/en-US/views/log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default {
33
delete: {
44
confirmTitle: 'Confirm deletion of question:',
55
confirmMessage1: 'Deleting this question will cancel the association of',
6-
confirmMessage2: 'paragraphs. Please proceed with caution.'
6+
confirmMessage2: 'segments. Please proceed with caution.'
77
},
88
buttons: {
99
clearStrategy: 'Clear Strategy',

ui/src/locales/lang/en-US/views/paragraph.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
export default {
2-
title: 'Paragraph',
3-
editParagraph: 'Edit Paragraph',
4-
addParagraph: 'Add Paragraph',
5-
paragraphDetail: 'Paragraph Details',
6-
character_count: 'words',
2+
title: 'Segment',
3+
editParagraph: 'Edit Segment',
4+
addParagraph: 'Add Segment',
5+
paragraphDetail: 'Segment Details',
6+
character_count: 'charcters',
77
setting: {
88
batchSelected: 'Batch Select',
99
cancelSelected: 'Cancel Selection'
1010
},
1111
delete: {
12-
confirmTitle: 'Confirm deletion of paragraph:',
12+
confirmTitle: 'Confirm deletion of segment:',
1313
confirmMessage: 'Deletion cannot be undone. Please proceed with caution.'
1414
},
1515
relatedProblem: {
@@ -18,13 +18,13 @@ export default {
1818
},
1919
form: {
2020
paragraphTitle: {
21-
label: 'Paragraph Title',
22-
placeholder: 'Please enter the paragraph title'
21+
label: 'Segment Title',
22+
placeholder: 'Please enter the segment title'
2323
},
2424
content: {
25-
label: 'Paragraph Content',
26-
placeholder: 'Please enter the paragraph content',
27-
requiredMessage1: 'Please enter the paragraph content',
25+
label: 'Segment Content',
26+
placeholder: 'Please enter the segment content',
27+
requiredMessage1: 'Please enter the segment content',
2828
requiredMessage2: 'Content must not exceed 100,000 words'
2929
}
3030
}

0 commit comments

Comments
 (0)