diff --git a/dashboard/src/i18n/locales/en-US/features/platform.json b/dashboard/src/i18n/locales/en-US/features/platform.json index 976aa3640..182627bc5 100644 --- a/dashboard/src/i18n/locales/en-US/features/platform.json +++ b/dashboard/src/i18n/locales/en-US/features/platform.json @@ -21,7 +21,14 @@ "refresh": "Refresh", "cancel": "Cancel", "save": "Save", - "addPlatform": "Add Platform Adapter" + "addPlatform": "Add Platform Adapter", + "connectTitle": "Connect {name}", + "viewTutorial": "View Tutorial", + "idConflict": { + "title": "ID Conflict Warning", + "message": "Detected duplicate ID \"{id}\". Please use a new ID.", + "confirm": "OK" + } }, "messages": { "updateSuccess": "Update successful!", diff --git a/dashboard/src/i18n/locales/zh-CN/features/platform.json b/dashboard/src/i18n/locales/zh-CN/features/platform.json index 4e624c8f3..26e672cb0 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/platform.json +++ b/dashboard/src/i18n/locales/zh-CN/features/platform.json @@ -21,7 +21,14 @@ "refresh": "刷新", "cancel": "取消", "save": "保存", - "addPlatform": "添加平台适配器" + "addPlatform": "添加平台适配器", + "connectTitle": "接入 {name}", + "viewTutorial": "查看接入教程", + "idConflict": { + "title": "ID 冲突警告", + "message": "检测到 ID \"{id}\" 重复。请使用一个新的 ID。", + "confirm": "好的" + } }, "messages": { "updateSuccess": "更新成功!", diff --git a/dashboard/src/views/PlatformPage.vue b/dashboard/src/views/PlatformPage.vue index 75a7beeca..e458e2963 100644 --- a/dashboard/src/views/PlatformPage.vue +++ b/dashboard/src/views/PlatformPage.vue @@ -93,7 +93,7 @@
- 接入 {{ name }} + {{ tm('dialog.connectTitle', { name }) }} {{ getPlatformDescription(template, name) }} @@ -139,7 +139,7 @@ mdi-book-open-variant - 查看接入教程 + {{ tm('dialog.viewTutorial') }} @@ -172,14 +172,14 @@ mdi-alert-circle-outline - ID 冲突警告 + {{ tm('dialog.idConflict.title') }} - 检测到 ID "{{ conflictId }}" 重复。请使用一个新的 ID。 + {{ tm('dialog.idConflict.message', { id: conflictId }) }} - 好的 + {{ tm('dialog.idConflict.confirm') }}