diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json
index 650b038f..8124832a 100644
--- a/apps/web/messages/en.json
+++ b/apps/web/messages/en.json
@@ -195,7 +195,10 @@
"hostView": "Hosts",
"topoView": "Topology",
"waitingHostData": "Waiting for host data...",
- "dashboardConnecting": "Dashboard API connecting..."
+ "dashboardConnecting": "Dashboard API connecting...",
+ "alertBadge": "{count} alerts",
+ "alertBadgeZero": "0 alerts",
+ "awaitingConfirm": "⏳ Awaiting Confirmation"
},
"openclaw": {
"name": "OpenClaw",
diff --git a/apps/web/messages/zh-TW.json b/apps/web/messages/zh-TW.json
index 74a03094..a56312d9 100644
--- a/apps/web/messages/zh-TW.json
+++ b/apps/web/messages/zh-TW.json
@@ -196,7 +196,10 @@
"hostView": "主機",
"topoView": "拓撲",
"waitingHostData": "等待主機資料...",
- "dashboardConnecting": "Dashboard API 連線中"
+ "dashboardConnecting": "Dashboard API 連線中",
+ "alertBadge": "{count} 告警",
+ "alertBadgeZero": "0 告警",
+ "awaitingConfirm": "⏳ 等待確認"
},
"openclaw": {
"name": "OpenClaw",
diff --git a/apps/web/src/app/[locale]/page.tsx b/apps/web/src/app/[locale]/page.tsx
index 6264ef4f..679ae2fb 100644
--- a/apps/web/src/app/[locale]/page.tsx
+++ b/apps/web/src/app/[locale]/page.tsx
@@ -373,7 +373,7 @@ function MonitoringTools() {
fontSize: 10, padding: '1px 7px', borderRadius: 8, fontWeight: 600,
background: 'rgba(245,158,11,0.12)', color: '#F59E0B',
}}>
- {tool.firing_count} 告警
+ {tDash('alertBadge', { count: tool.firing_count })}
) : (
- 0 告警
+ {tDash('alertBadgeZero')}
)}
@@ -683,7 +683,7 @@ export default function Home({ params }: { params: { locale: string } }) {
label: tDashboard('pendingApprovals'),
value: pendingApprovals ?? '--',
sub: hasPendingApprovals ? undefined : tDashboard('stable'),
- badge: hasPendingApprovals ? { text: `⏳ 等待確認`, color: '#F59E0B', bg: 'rgba(245,158,11,0.08)' } : undefined,
+ badge: hasPendingApprovals ? { text: tDashboard('awaitingConfirm'), color: '#F59E0B', bg: 'rgba(245,158,11,0.08)' } : undefined,
valueColor: hasPendingApprovals ? '#F59E0B' : undefined,
},
{
@@ -998,7 +998,7 @@ export default function Home({ params }: { params: { locale: string } }) {
color: infraView === 'host' ? '#d97757' : '#87867f',
boxShadow: infraView === 'host' ? '0 1px 2px rgba(0,0,0,0.06)' : 'none',
}}
- >主機
+ >{tDashboard('hostView')}
+ >{tDashboard('topoView')}
{/* 主機網格 (預設) */}