Skip to content

Commit d2cd48a

Browse files
authored
chore(i18n): improve UI translation for AI chat page (#2160)
1 parent 0e817e1 commit d2cd48a

File tree

2 files changed

+49
-51
lines changed

2 files changed

+49
-51
lines changed

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

Lines changed: 47 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,95 @@
11
export default {
2-
noHistory: 'No History',
3-
createChat: 'New Chat',
2+
noHistory: 'No Chat History',
3+
createChat: 'New Conversation',
44
history: 'Chat History',
5-
only20history: 'Only showing the last 20 chats',
6-
question_count: 'Messages',
7-
exportRecords: 'Export Chat Records',
5+
only20history: 'Showing only the last 20 conversations',
6+
question_count: 'Questions',
7+
exportRecords: 'Export Chat History',
88
chatId: 'Chat ID',
99
userInput: 'User Input',
1010
quote: 'Quote',
11-
download: 'Download File',
11+
download: 'Click to Download',
1212
passwordValidator: {
13-
title: 'Enter password to open the link',
13+
title: 'Enter Password to Access',
1414
errorMessage1: 'Password cannot be empty',
1515
errorMessage2: 'Incorrect password'
1616
},
1717
operation: {
1818
play: 'Play',
19-
pause: 'Stop',
20-
regeneration: 'Re-answer',
21-
like: 'Agree',
22-
cancelLike: 'Cancel Agree',
23-
oppose: 'Disagree',
24-
cancelOppose: 'Cancel Disagree',
19+
pause: 'Pause',
20+
regeneration: 'Regenerate Response',
21+
like: 'Like',
22+
cancelLike: 'Unlike',
23+
oppose: 'Dislike',
24+
cancelOppose: 'Undo Dislike',
2525
continue: 'Continue',
26-
stopChat: 'Stop Output'
26+
stopChat: 'Stop Response'
2727
},
2828
tip: {
2929
error500Message: 'Sorry, the service is currently under maintenance. Please try again later!',
30-
errorIdentifyMessage: 'Unable to identify user',
31-
errorLimitMessage:
32-
'Sorry, you have reached the maximum number of questions. Please try again tomorrow!',
33-
answerMessage:
34-
'Sorry, no relevant content was found. Please rephrase your question or provide more information.',
35-
stopAnswer: 'Output stopped',
36-
answerLoading: 'Thinking',
37-
recorderTip: `<p>This feature requires the use of a microphone. Browsers prohibit recording on insecure pages. Solutions are as follows:<br/>
38-
1. Enable HTTPS to resolve;<br/>
39-
2. If there is no HTTPS configuration, modify the browser security settings. Chrome settings as follows:<br/>
30+
errorIdentifyMessage: 'Unable to verify user identity',
31+
errorLimitMessage: 'Sorry, you have reached the maximum number of questions. Please try again tomorrow!',
32+
answerMessage: 'Sorry, no relevant content found. Please rephrase your question or provide more details.',
33+
stopAnswer: 'Response Stopped',
34+
answerLoading: 'Generating Response...',
35+
recorderTip: `<p>This feature requires microphone access. Browsers block recording on insecure pages. Solutions:<br/>
36+
1. Enable HTTPS;<br/>
37+
2. If HTTPS is not available, adjust browser security settings. For Chrome:<br/>
4038
(1) Enter chrome://flags/#unsafely-treat-insecure-origin-as-secure in the address bar;<br/>
41-
(2) Add the HTTP site to the text box, e.g., http://127.0.0.1:8080.</p>`,
42-
recorderError: 'Recording failed',
43-
confirm: 'I understand',
39+
(2) Add your HTTP site, e.g., http://127.0.0.1:8080.</p>`,
40+
recorderError: 'Recording Failed',
41+
confirm: 'Got it',
4442
requiredMessage: 'Please fill in all required fields',
45-
inputParamMessage1: 'Please enter parameters in the URL',
43+
inputParamMessage1: 'Please specify a parameter in the URL',
4644
inputParamMessage2: 'value',
4745
prologueMessage: 'Sorry, the service is currently under maintenance. Please try again later!'
4846
},
4947
inputPlaceholder: {
50-
speaking: 'Speaking',
51-
recorderLoading: 'Transcribing',
52-
default: 'Enter your question, Ctrl+Enter for new line, Enter to send'
48+
speaking: 'Speaking...',
49+
recorderLoading: 'Transcribing...',
50+
default: 'Type your question, Ctrl+Enter for a new line, Enter to send'
5351
},
5452
uploadFile: {
5553
label: 'Upload File',
56-
most: 'Up to',
57-
limit: 'files, each file limited to',
54+
most: 'Maximum',
55+
limit: 'files allowed, each up to',
5856
fileType: 'File Type',
59-
tipMessage: 'Please select file types in the file upload configuration',
60-
limitMessage1: 'Up to',
57+
tipMessage: 'Please select allowed file types in the upload settings',
58+
limitMessage1: 'You can upload up to',
6159
limitMessage2: 'files',
62-
sizeLimit: 'Each file size cannot exceed',
63-
imageMessage: 'Please parse the image content',
64-
errorMessage: 'Upload failed'
60+
sizeLimit: 'Each file must not exceed',
61+
imageMessage: 'Please process the image content',
62+
errorMessage: 'Upload Failed'
6563
},
6664
executionDetails: {
6765
title: 'Execution Details',
6866
paramInput: 'Parameter Input',
6967
paramOutput: 'Parameter Output',
70-
paramOutputTooltip: 'Each document supports preview of up to 500 words',
68+
paramOutputTooltip: 'Each document supports previewing up to 500 characters',
7169
audioFile: 'Audio File',
72-
searchContent: 'Search Content',
70+
searchContent: 'Search Query',
7371
searchResult: 'Search Results',
74-
conditionResult: 'Condition Result',
75-
currentChat: 'Current Chat',
72+
conditionResult: 'Condition Evaluation',
73+
currentChat: 'Current Conversation',
7674
answer: 'AI Response',
7775
replyContent: 'Reply Content',
7876
textContent: 'Text Content',
7977
input: 'Input',
8078
output: 'Output',
81-
rerankerContent: 'Reranked Content',
82-
rerankerResult: 'Reranked Results',
79+
rerankerContent: 'Re-ranked Content',
80+
rerankerResult: 'Re-ranking Results',
8381
paragraph: 'Segment',
84-
noSubmit: 'User did not submit',
82+
noSubmit: 'No submission from user',
8583
errMessage: 'Error Log'
8684
},
8785
KnowledgeSource: {
8886
title: 'Knowledge Source',
89-
referenceParagraph: 'Quote',
90-
consume: 'Tokens',
91-
consumeTime: 'Run Time'
87+
referenceParagraph: 'Cited Segment',
88+
consume: 'Token Consumption',
89+
consumeTime: 'Processing Time'
9290
},
9391
paragraphSource: {
94-
title: 'Quote',
92+
title: 'Knowledge Quote',
9593
question: 'User Question',
9694
optimizationQuestion: 'Optimized Question'
9795
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ export default {
106106
queryCount: 'Total Queries',
107107
tokensTotal: 'Total Tokens Used',
108108
userSatisfaction: 'User Feedback Metrics',
109-
approval: 'Approval',
110-
disapproval: 'Disapproval'
109+
approval: 'Like',
110+
disapproval: 'Dislike'
111111
}
112112
}
113113
}

0 commit comments

Comments
 (0)