diff --git a/apps/desktop/src/app/settings/gateway-settings.tsx b/apps/desktop/src/app/settings/gateway-settings.tsx index 9c7ffdbbe4d..0130dab6cc1 100644 --- a/apps/desktop/src/app/settings/gateway-settings.tsx +++ b/apps/desktop/src/app/settings/gateway-settings.tsx @@ -10,6 +10,7 @@ import type { DesktopConnectionProbeResult } from '@/global' import { useI18n } from '@/i18n' +import { ExternalLink } from '@/lib/external-link' import { AlertCircle, Check, Cloud, FileText, Globe, Loader2, LogIn, Monitor, RefreshCw } from '@/lib/icons' import { cn } from '@/lib/utils' import { notify, notifyError } from '@/store/notifications' @@ -795,7 +796,13 @@ export function GatewaySettings() { ) : cloudAgents.length === 0 ? (
- {g.cloudNoAgents} + + {g.cloudNoAgents.before} + + {g.cloudNoAgents.linkText} + + {g.cloudNoAgents.after} +
) : (
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts index b465ac5e742..d0bbdb6e9fd 100644 --- a/apps/desktop/src/i18n/en.ts +++ b/apps/desktop/src/i18n/en.ts @@ -544,7 +544,11 @@ export const en: Translations = { cloudOrgChange: 'Change org', cloudOrgRole: role => `Role: ${role}`, cloudLoadingAgents: 'Loading your agents…', - cloudNoAgents: 'No agents found on this account. Create one in the Nous portal, then refresh.', + cloudNoAgents: { + before: 'No agents found on this account. Create one in the ', + linkText: 'Nous portal', + after: ', then refresh.' + }, cloudRefresh: 'Refresh', cloudConnect: 'Connect', cloudConnecting: 'Connecting…', diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts index 19e682d00d0..2d3e3d4bc12 100644 --- a/apps/desktop/src/i18n/types.ts +++ b/apps/desktop/src/i18n/types.ts @@ -455,7 +455,7 @@ export interface Translations { cloudOrgChange: string cloudOrgRole: (role: string) => string cloudLoadingAgents: string - cloudNoAgents: string + cloudNoAgents: { before: string; linkText: string; after: string } cloudRefresh: string cloudConnect: string cloudConnecting: string diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts index df768258edb..9af001ba736 100644 --- a/apps/desktop/src/i18n/zh.ts +++ b/apps/desktop/src/i18n/zh.ts @@ -733,7 +733,11 @@ export const zh: Translations = { cloudOrgChange: '切换组织', cloudOrgRole: role => `角色:${role}`, cloudLoadingAgents: '正在加载你的智能体…', - cloudNoAgents: '此账户下未找到智能体。请在 Nous 门户中创建一个,然后刷新。', + cloudNoAgents: { + before: '此账户下未找到智能体。请在', + linkText: 'Nous 门户', + after: '中创建一个,然后刷新。' + }, cloudRefresh: '刷新', cloudConnect: '连接', cloudConnecting: '正在连接…',