From 0fbe55f5c3149bee86cf326a5c0122cc8a294245 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Mon, 12 Jan 2026 14:58:52 +0800 Subject: [PATCH] fix(deeplink): use primary endpoint for usage script base_url - Fix usage_script.base_url getting comma-separated string when multiple endpoints - Add i18n support for primary endpoint label in DeepLinkImportDialog --- src-tauri/src/deeplink/provider.rs | 13 +++++++++---- src/components/DeepLinkImportDialog.tsx | 2 +- src/i18n/locales/en.json | 1 + src/i18n/locales/ja.json | 1 + src/i18n/locales/zh.json | 1 + 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src-tauri/src/deeplink/provider.rs b/src-tauri/src/deeplink/provider.rs index 305a1d5ad..e69c7c357 100644 --- a/src-tauri/src/deeplink/provider.rs +++ b/src-tauri/src/deeplink/provider.rs @@ -205,6 +205,7 @@ fn build_provider_meta(request: &DeepLinkImportRequest) -> Result Result - (主) + ({t("deeplink.primaryEndpoint")}) )} diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 8923534fb..385f11408 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -958,6 +958,7 @@ "configDetails": "Config Details", "configUrl": "Config File URL", "configMergeError": "Failed to merge configuration file", + "primaryEndpoint": "Primary", "mcp": { "title": "Batch Import MCP Servers", "targetApps": "Target Apps", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index badc04b91..504729737 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -958,6 +958,7 @@ "configDetails": "設定の詳細", "configUrl": "設定ファイル URL", "configMergeError": "設定ファイルのマージに失敗しました", + "primaryEndpoint": "メイン", "mcp": { "title": "MCP サーバーを一括インポート", "targetApps": "ターゲットアプリ", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index d7011167c..a27c59985 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -958,6 +958,7 @@ "configDetails": "配置详情", "configUrl": "配置文件 URL", "configMergeError": "合并配置文件失败", + "primaryEndpoint": "主", "mcp": { "title": "批量导入 MCP Servers", "targetApps": "目标应用",