Skip to content

Commit 6009d92

Browse files
fix: i18n bugs
1 parent 495ac39 commit 6009d92

File tree

17 files changed

+39
-27
lines changed

17 files changed

+39
-27
lines changed

ui/src/layout/components/top-bar/avatar/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</el-dropdown>
6161
</el-dropdown-item>
6262
<el-dropdown-item class="border-t" @click="openAbout">
63-
{{ $t('layout.about.label') }}
63+
{{ $t('layout.about.title') }}
6464
</el-dropdown-item>
6565

6666
<el-dropdown-item class="border-t" @click="logout">

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ export default {
126126
label: 'Question Optimization',
127127
text: 'Optimize and improve the current question based on historical chat records to better match knowledge segments',
128128
result: 'Optimized Question Result',
129-
defaultPrompt: `Optimize and improve the user's question based on context: {{start.question}}
130-
Please output an optimized question.`,
129+
defaultPrompt1: `Optimize and improve the user's question based on context:`,
130+
defaultPrompt2: `Please output an optimized question.`,
131131
systemDefault: 'You are a question optimization expert'
132132
},
133133
conditionNode: {
@@ -178,8 +178,10 @@ Please output an optimized question.`,
178178
form_data: 'All Form Content',
179179
formContent: {
180180
label: 'Form Output Content',
181-
requiredMessage: 'Please set the output content of this node, { form } is a placeholder for the form.',
182-
tooltip: 'Set the content output by executing this node, { form } is a placeholder for the form.'
181+
requiredMessage:
182+
'Please set the output content of this node, { form } is a placeholder for the form.',
183+
tooltip:
184+
'Set the content output by executing this node, { form } is a placeholder for the form.'
183185
},
184186
formAllContent: 'All Form Content',
185187
formSetting: 'Form Configuration'
@@ -212,12 +214,15 @@ Please output an optimized question.`,
212214
},
213215
prompt: {
214216
label: 'Positive Prompt',
215-
tooltip: 'Positive prompt words, used to describe elements and visual features expected in the generated image'
217+
tooltip:
218+
'Positive prompt words, used to describe elements and visual features expected in the generated image'
216219
},
217220
negative_prompt: {
218221
label: 'Negative Prompt',
219-
tooltip: 'Negative prompt words, used to describe content that should not appear in the image, which can limit the image.',
220-
placeholder: 'Please describe content you do not want to generate, such as color, bloody content'
222+
tooltip:
223+
'Negative prompt words, used to describe content that should not appear in the image, which can limit the image.',
224+
placeholder:
225+
'Please describe content you do not want to generate, such as color, bloody content'
221226
}
222227
},
223228
speechToTextNode: {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export default {
6262
references: ' (References Knowledge)',
6363
placeholder: 'Please enter prompt',
6464
requiredMessage: 'Please enter prompt',
65+
tooltip:'By adjusting the content of the prompt, you can guide the direction of the large model conversation.',
66+
6567
noReferencesTooltip:
6668
'By adjusting the content of the prompt, you can guide the direction of the large model conversation. This prompt will be fixed at the beginning of the context. Variables used: {question} is the question posed by the user.',
6769
referencesTooltip:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default {
4848
},
4949
datasetType: {
5050
label: 'Knowledge Type',
51-
generalInfo: 'Upload local files or manually enter',
51+
generalInfo: 'Upload local documents',
5252
webInfo: 'Sync text data from a Web site'
5353
},
5454
source_url: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default {
9595
},
9696
table: {
9797
name: 'File Name',
98-
char_length: 'words',
98+
char_length: 'Words',
9999
paragraph: 'Segment',
100100
all: 'All',
101101
updateTime: 'Update Time'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default {
7676
base_model: {
7777
label: 'Base Model',
7878
tooltip:
79-
'For models not listed in the list, enter the model name directly and press Enter to add',
79+
'For models not listed, enter the model name and press Enter.',
8080
placeholder: 'Enter the base model name and press Enter to add',
8181
requiredMessage: 'Base model cannot be empty'
8282
}

ui/src/locales/lang/zh-CN/views/application-workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ export default {
127127
label: '问题优化',
128128
text: '根据历史聊天记录优化完善当前问题,更利于匹配知识库分段',
129129
result: '问题优化结果',
130-
defaultPrompt: `根据上下文优化和完善用户问题:{{开始.question}}
131-
请输出一个优化后的问题。`,
130+
defaultPrompt1: `根据上下文优化和完善用户问题`,
131+
defaultPrompt2: `请输出一个优化后的问题。`,
132132
systemDefault: '你是一个问题优化大师'
133133
},
134134
conditionNode: {

ui/src/locales/lang/zh-CN/views/dataset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default {
4747
},
4848
datasetType: {
4949
label: '知识库类型',
50-
generalInfo: '上传本地文件或手动录入',
50+
generalInfo: '上传本地文档',
5151
webInfo: '同步Web网站文本数据'
5252
},
5353
source_url: {

ui/src/locales/lang/zh-Hant/views/application-workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ export default {
127127
label: '問題優化',
128128
text: '根據歷史聊天記錄優化完善當前問題,更利於匹配知識庫分段',
129129
result: '問題優化結果',
130-
defaultPrompt: `根據上下文優化和完善用戶問題:{{開始.question}}
131-
請輸出一個優化後的問題。`,
130+
defaultPrompt1: `根據上下文優化和完善用戶問題:`,
131+
defaultPrompt2: `請輸出一個優化後的問題。`,
132132
systemDefault: '你是一個問題優化大師'
133133
},
134134
conditionNode: {

ui/src/locales/lang/zh-Hant/views/application.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export default {
5656
references: ' (引用知識庫)',
5757
placeholder: '請輸入提示詞',
5858
requiredMessage: '請輸入提示詞',
59+
tooltip:'透過調整提示詞內容,可以引導大模型對話方向,該提示詞會被固定在上下文的開頭。',
60+
5961
noReferencesTooltip:
6062
'透過調整提示詞內容,可以引導大模型對話方向,該提示詞會被固定在上下文的開頭。可以使用變數:{question} 是用戶提出問題的佔位符。',
6163
referencesTooltip:

0 commit comments

Comments
 (0)