Skip to content

Commit 914cb63

Browse files
fix: Missing i18n messages in English(##3673)
1 parent 1df333b commit 914cb63

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

ui/src/components/ai-chat/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@ const initialApiFormData = ref({})
171171
const isUserInput = computed(
172172
() =>
173173
props.applicationDetails.work_flow?.nodes?.filter((v: any) => v.id === 'base-node')[0]
174-
.properties.user_input_field_list.length > 0,
174+
?.properties.user_input_field_list.length > 0,
175175
)
176176
177177
const userInputTitle = computed(
178178
() =>
179179
props.applicationDetails.work_flow?.nodes?.filter((v: any) => v.id === 'base-node')[0]
180-
.properties?.user_input_config?.title,
180+
?.properties?.user_input_config?.title,
181181
)
182182
const isAPIInput = computed(
183183
() =>

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default {
1515
export: 'Export to',
1616
download: 'Download',
1717
},
18+
1819
tip: {
1920
saveMessage: 'Current changes have not been saved. Confirm exit?',
2021
cancelSuccess: 'Successful',
@@ -23,6 +24,9 @@ export default {
2324
nameMessage: 'Document name cannot be empty!',
2425
importMessage: 'Successful',
2526
migrationSuccess: 'Successful',
27+
fileLimitCountTip1: 'Maximum upload per time',
28+
fileLimitCountTip2: 'files',
29+
fileLimitSizeTip1: 'each file must not exceed',
2630
},
2731
upload: {
2832
selectFile: 'Select File',
@@ -162,7 +166,7 @@ export default {
162166
movePosition: {
163167
title: 'Move position',
164168
moveUp: 'Move up',
165-
moveDown: 'Move down'
169+
moveDown: 'Move down',
166170
},
167171
generateQuestion: {
168172
title: 'Generate Questions',

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export default {
2323
nameMessage: '文件名稱不能为空!',
2424
importMessage: '導入成功',
2525
migrationSuccess: '遷移成功',
26+
fileLimitCountTip1: '每次最多上傳',
27+
fileLimitCountTip2: '個文件',
28+
fileLimitSizeTip1: '每個文件不超過',
2629
},
2730
upload: {
2831
selectFile: '選擇文件',
@@ -159,7 +162,7 @@ export default {
159162
movePosition: {
160163
title: '移動位置',
161164
moveUp: '上移',
162-
moveDown: '下移'
165+
moveDown: '下移',
163166
},
164167
generateQuestion: {
165168
title: '生成問題',

ui/src/views/document/upload/UploadComponent.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</p>
3838
<p>{{ $t('views.document.fileType.QA.tip2') }}</p>
3939
<p>
40-
3{{ $t('views.document.tip.fileLimitCountTip1') }} {{ file_count_limit }}
40+
3. {{ $t('views.document.tip.fileLimitCountTip1') }} {{ file_count_limit }}
4141
{{ $t('views.document.tip.fileLimitCountTip2') }},
4242
{{ $t('views.document.tip.fileLimitSizeTip1') }} {{ file_size_limit }} MB
4343
</p>
@@ -95,7 +95,7 @@
9595
<p>{{ $t('views.document.fileType.table.tip2') }}</p>
9696
<p>{{ $t('views.document.fileType.table.tip3') }}</p>
9797
<p>
98-
4{{ $t('views.document.tip.fileLimitCountTip1') }} {{ file_count_limit }}
98+
4. {{ $t('views.document.tip.fileLimitCountTip1') }} {{ file_count_limit }}
9999
{{ $t('views.document.tip.fileLimitCountTip2') }},
100100
{{ $t('views.document.tip.fileLimitSizeTip1') }} {{ file_size_limit }} MB
101101
</p>
@@ -141,7 +141,7 @@
141141
<div class="ml-16 lighter">
142142
<p>{{ $t('views.document.fileType.txt.tip1') }}</p>
143143
<p>
144-
2{{ $t('views.document.tip.fileLimitCountTip1') }} {{ file_count_limit }}
144+
2. {{ $t('views.document.tip.fileLimitCountTip1') }} {{ file_count_limit }}
145145
{{ $t('views.document.tip.fileLimitCountTip2') }},
146146
{{ $t('views.document.tip.fileLimitSizeTip1') }} {{ file_size_limit }} MB
147147
</p>

0 commit comments

Comments
 (0)