Skip to content

Commit

Permalink
fix: i18n bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdan-fit2cloud committed Jan 23, 2025
1 parent 1e47927 commit 83c5404
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ui/src/views/application-workflow/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ async function publicHandle() {
const node = res.node
const err_message = res.errMessage
if (typeof err_message == 'string') {
MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node')},` + err_message)
MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node').toLowerCase()} ` + err_message.toLowerCase())
} else {
const keys = Object.keys(err_message)
MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node')},` + err_message[keys[0]]?.[0]?.message)
MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node').toLowerCase()} ` + err_message[keys[0]]?.[0]?.message.toLowerCase())
}
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>
</template>
</el-table-column>
<el-table-column :label="$t('common.operation')" align="left" width="80">
<el-table-column :label="$t('common.operation')" align="left" width="90">
<template #default="{ row, $index }">
<span class="mr-4">
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:data="props.nodeModel.properties.user_input_field_list"
class="mb-16"
>
<el-table-column prop="field" :label="$t('dynamicsForm.paramForm.field.label')">
<el-table-column prop="field" :label="$t('dynamicsForm.paramForm.field.label')" width="95">
<template #default="{ row }">
<span :title="row.field" class="ellipsis-1">{{ row.field }}</span>
</template>
Expand Down Expand Up @@ -71,7 +71,7 @@
</div>
</template>
</el-table-column>
<el-table-column :label="$t('common.operation')" align="left" width="80">
<el-table-column :label="$t('common.operation')" align="left" width="90">
<template #default="{ row, $index }">
<span class="mr-4">
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
Expand Down
5 changes: 3 additions & 2 deletions ui/src/workflow/nodes/form-node/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<el-table-column
prop="field"
:label="$t('dynamicsForm.paramForm.field.label')"
width="95"
>
<template #default="{ row }">
<span :title="row.field" class="ellipsis-1">{{ row.field }}</span>
Expand Down Expand Up @@ -117,14 +118,14 @@
}}</span>
</template>
</el-table-column>
<el-table-column :label="$t('common.required')">
<el-table-column :label="$t('common.required')" width="85">
<template #default="{ row }">
<div @click.stop>
<el-switch disabled size="small" v-model="row.required" />
</div>
</template>
</el-table-column>
<el-table-column :label="$t('common.operation')" align="left" width="80">
<el-table-column :label="$t('common.operation')" align="left" width="90">
<template #default="{ row, $index }">
<span class="mr-4">
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
Expand Down
1 change: 0 additions & 1 deletion ui/src/workflow/nodes/search-dataset-node/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ function refresh() {
}
const validate = () => {
console.log(DatasetNodeFormRef.value)
return Promise.all([
nodeCascaderRef.value.validate(),
DatasetNodeFormRef.value?.validate()
Expand Down

0 comments on commit 83c5404

Please sign in to comment.