From 01ef86d658edac880cc663e0b93bd82b92469758 Mon Sep 17 00:00:00 2001 From: IGCrystal Date: Mon, 23 Jun 2025 14:44:06 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=AF=B9PlatformPage?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=BF=BB=E8=AF=91=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/i18n/locales/en-US/features/platform.json | 9 ++++++++- .../src/i18n/locales/zh-CN/features/platform.json | 9 ++++++++- dashboard/src/views/PlatformPage.vue | 10 +++++----- 3 files changed, 21 insertions(+), 7 deletions(-) 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') }}