diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 33badb95..712b8220 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -10,7 +10,8 @@ "confirm": "Confirm", "cancel": "Cancel", "system_manage": "System Management", - "next": "Next" + "next": "Next", + "save": "Save" }, "dashboard": { "length_1_64_characters": "Name field length must be 1-64 characters", @@ -119,6 +120,10 @@ "upload": { "button": "Upload", "tip": "Only support .xls, .xlsx, .csv, size less than 50MB." + }, + "connect": { + "success": "Connect success", + "failed": "Connect failed" } } } diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index fd3d91cb..9fb9b3eb 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -13,7 +13,8 @@ "system_manage": "系统管理", "update_success": "更新", "save_success": "保存成功", - "next": "下一步" + "next": "下一步", + "save": "保存" }, "dashboard": { "length_1_64_characters": "名称字段长度1-64个字符", @@ -125,6 +126,10 @@ "upload": { "button": "上传", "tip": "仅支持 .xls, .xlsx, .csv 格式,文件小于 50MB." + }, + "connect": { + "success": "连接成功", + "failed": "连接失败" } } } diff --git a/frontend/src/views/ds/form.vue b/frontend/src/views/ds/form.vue index f4425de0..6d1baee1 100644 --- a/frontend/src/views/ds/form.vue +++ b/frontend/src/views/ds/form.vue @@ -249,7 +249,7 @@ const open = (item: any, editTable: boolean = false) => { } if (editTable) { - dialogTitle.value = 'Choose Tables' + dialogTitle.value = t('ds.form.choose_tables') active.value = 1 isEditTable.value = true isCreate.value = false @@ -420,7 +420,7 @@ const next = async (formEl: FormInstance | undefined) => { }) } else { ElMessage({ - message: 'Connect failed', + message: t('ds.form.connect.failed'), type: 'error', showClose: true, })