feat: implement tray functionality with status updates and localization support

This commit is contained in:
duanshuwen
2026-04-22 07:19:53 +08:00
parent 197f644d53
commit be8298af2f
6 changed files with 341 additions and 120 deletions

View File

@@ -31,6 +31,17 @@ export const runtimeLocaleMessages: Record<'en' | 'zh' | 'th', RuntimeMessageTre
tray: {
tooltip: 'ZN-AI',
showWindow: 'Show Window',
gatewayStatus: 'Gateway Status',
status: {
running: 'Running',
stopped: 'Stopped',
restarting: 'Restarting',
},
quickActions: 'Quick Actions',
openChat: 'Open Chat',
openSettings: 'Open Settings',
checkForUpdates: 'Check for Updates...',
quit: 'Quit ZN-AI',
exit: 'Exit',
},
},
@@ -62,6 +73,17 @@ export const runtimeLocaleMessages: Record<'en' | 'zh' | 'th', RuntimeMessageTre
tray: {
tooltip: 'ZN-AI',
showWindow: '显示窗口',
gatewayStatus: '网关状态',
status: {
running: '运行中',
stopped: '已停止',
restarting: '重启中',
},
quickActions: '快捷操作',
openChat: '打开聊天',
openSettings: '打开设置',
checkForUpdates: '检查更新...',
quit: '退出 ZN-AI',
exit: '退出',
},
},
@@ -93,6 +115,17 @@ export const runtimeLocaleMessages: Record<'en' | 'zh' | 'th', RuntimeMessageTre
tray: {
tooltip: 'ZN-AI',
showWindow: 'แสดงหน้าต่าง',
gatewayStatus: 'สถานะเกตเวย์',
status: {
running: 'กำลังทำงาน',
stopped: 'หยุดทำงาน',
restarting: 'กำลังรีสตาร์ต',
},
quickActions: 'การดำเนินการด่วน',
openChat: 'เปิดแชท',
openSettings: 'เปิดการตั้งค่า',
checkForUpdates: 'ตรวจสอบการอัปเดต...',
quit: 'ออกจาก ZN-AI',
exit: 'ออก',
},
},