Skip to content

Commit d2089d0

Browse files
feat: i18n
1 parent bd751e3 commit d2089d0

File tree

3 files changed

+32
-30
lines changed

3 files changed

+32
-30
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
@click="toUrl(user.themeInfo?.forumUrl)"
6060
></AppIcon>
6161
</el-tooltip>
62-
<el-dropdown v-if="false" trigger="click" type="primary">
62+
<el-dropdown trigger="click" type="primary">
6363
<template #dropdown>
6464
<el-dropdown-menu>
6565
<el-dropdown-item

ui/src/locales/lang/en_US/views/application.ts

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default {
7070
defaultPrompt: `Known information: {data}
7171
Question: {question}
7272
Response requirements:
73-
- Please use concise and professional language to answer the user\'s question.
73+
- Please use concise and professional language to answer the user's question.
7474
`
7575
},
7676
historyRecord: {
@@ -90,26 +90,34 @@ export default {
9090
tooltip:
9191
'Optimize the current question based on historical chat to better match knowledge points.'
9292
},
93-
addModel: 'Add Model',
94-
paramSetting: 'Parameter Settings',
95-
add: 'Add',
96-
apptest: 'Debug Preview'
93+
94+
voiceInput: {
95+
label: 'Voice input',
96+
placeholder: 'Please select a speech recognition model',
97+
requiredMessage: 'Please select a speech input model',
98+
autoSend: 'Automatic sending'
99+
},
100+
voicePlay: {
101+
label: 'Voice playback',
102+
placeholder: 'Please select a speech synthesis model',
103+
requiredMessage: 'Please select a speech playback model',
104+
autoPlay: 'Automatic playback',
105+
browser: 'Browser playback (free)',
106+
tts: 'TTS Model',
107+
listeningTest: 'Preview'
108+
}
97109
},
98110
buttons: {
99-
confirm: 'Confirm',
100-
cancel: 'Cancel',
101-
create: 'Create',
102-
createSuccess: 'Create Success',
103-
save: 'Save',
104-
saveSuccess: 'Save Success',
105-
copy: 'Copy',
106-
copySuccess: 'Copy Success'
111+
publish: 'Save&Publish',
112+
paramSetting: 'Parameter Settings',
113+
addModel: 'Add Model'
107114
},
108-
dialogues: {
115+
dialog: {
109116
addDataset: 'Add Related Knowledge Base',
110-
removeDataset: 'Remove Knowledge Base',
111-
paramSettings: 'Parameter Settings',
112-
refresh: 'Refresh',
117+
addDatasetPlaceholder: 'The selected knowledge bases must use the same embedding model',
118+
selected: 'Selected',
119+
countDataset: 'Knowledge',
120+
113121
selectSearchMode: 'Search Mode',
114122
vectorSearch: 'Vector Search',
115123
vectorSearchTooltip:
@@ -126,18 +134,12 @@ export default {
126134
noReferencesAction: 'When there are no knowledge base references',
127135
continueQuestioning: 'Continue Questioning AI Model',
128136
provideAnswer: 'Provide a Specific Answer',
129-
prompt: 'Prompt',
130-
promptPlaceholder: 'Please enter a prompt',
131-
concent: 'Content',
132-
concentPlaceholder: 'Please enter content',
133137
designated_answer:
134-
'Hello, I am MaxKB Assistant. My knowledge base only contains information related to MaxKB products. Please rephrase your question.'
138+
'Hello, I am XXX Assistant. My knowledge base only contains information related to XXX products. Please rephrase your question.',
139+
defaultPrompt1:
140+
'The content inside the parentheses () represents the user\'s question. Based on the context, please speculate and complete the user\'s question ({question}). The requirement is to output a completed question and place it',
141+
defaultPrompt2: 'tag',
142+
copy: 'copy'
135143
}
136-
},
137-
prompt: {
138-
defaultPrompt:
139-
'Known information:\n{data}\nResponse requirements:\n- Please use concise and professional language to answer the user\'s question.\n- If you do not know the answer, reply, "No relevant information was found in the knowledge base; it is recommended to consult technical support or refer to the official documentation for operations."\n- Avoid mentioning that your knowledge is obtained from known information.\n- Ensure the answer is consistent with the information described in the known data.\n- Please use Markdown syntax to optimize the format of the answer.\n- Directly return any images, link addresses, and script languages found in the known information.\n- Please respond in the same language as the question.\nQuestion:\n{question}',
140-
defaultPrologue:
141-
'Hello, I am MaxKB Assistant. You can ask me questions about using MaxKB.\n- What are the main features of MaxKB?\n- Which large language models does MaxKB support?\n- What document types does MaxKB support?'
142144
}
143145
}

ui/src/views/application/component/TTSModeParamSettingDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<div class="flex-between">
2424
<span class="p-16">
2525
<el-button @click="testPlay" :loading="playLoading">
26-
<AppIcon iconName="app-video-play"></AppIcon>
26+
<AppIcon iconName="app-video-play" class="mr-4"></AppIcon>
2727
{{ $t('views.application.applicationForm.form.voicePlay.listeningTest') }}
2828

2929
</el-button>

0 commit comments

Comments
 (0)