Skip to content

Commit 013ed83

Browse files
committed
feat(datasource): i18n
1 parent 1611d85 commit 013ed83

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

frontend/src/i18n/en.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"confirm": "Confirm",
1111
"cancel": "Cancel",
1212
"system_manage": "System Management",
13-
"next": "Next"
13+
"next": "Next",
14+
"save": "Save"
1415
},
1516
"dashboard": {
1617
"length_1_64_characters": "Name field length must be 1-64 characters",
@@ -119,6 +120,10 @@
119120
"upload": {
120121
"button": "Upload",
121122
"tip": "Only support .xls, .xlsx, .csv, size less than 50MB."
123+
},
124+
"connect": {
125+
"success": "Connect success",
126+
"failed": "Connect failed"
122127
}
123128
}
124129
}

frontend/src/i18n/zh-CN.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"system_manage": "系统管理",
1414
"update_success": "更新",
1515
"save_success": "保存成功",
16-
"next": "下一步"
16+
"next": "下一步",
17+
"save": "保存"
1718
},
1819
"dashboard": {
1920
"length_1_64_characters": "名称字段长度1-64个字符",
@@ -125,6 +126,10 @@
125126
"upload": {
126127
"button": "上传",
127128
"tip": "仅支持 .xls, .xlsx, .csv 格式,文件小于 50MB."
129+
},
130+
"connect": {
131+
"success": "连接成功",
132+
"failed": "连接失败"
128133
}
129134
}
130135
}

frontend/src/views/ds/form.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const open = (item: any, editTable: boolean = false) => {
249249
}
250250
251251
if (editTable) {
252-
dialogTitle.value = 'Choose Tables'
252+
dialogTitle.value = t('ds.form.choose_tables')
253253
active.value = 1
254254
isEditTable.value = true
255255
isCreate.value = false
@@ -420,7 +420,7 @@ const next = async (formEl: FormInstance | undefined) => {
420420
})
421421
} else {
422422
ElMessage({
423-
message: 'Connect failed',
423+
message: t('ds.form.connect.failed'),
424424
type: 'error',
425425
showClose: true,
426426
})

0 commit comments

Comments
 (0)