fix(setup): translate docsUrl before opening in browser (#70)

This commit is contained in:
paisley
2026-02-13 11:19:56 +08:00
committed by GitHub
Unverified
parent 748cd83c73
commit 712f379226
4 changed files with 10 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
"title": "Scheduled Tasks",
"subtitle": "Automate AI workflows with scheduled tasks",
"newTask": "New Task",
"refresh": "Refresh",
"gatewayWarning": "Gateway is not running. Scheduled tasks cannot be managed without an active Gateway.",
"stats": {
"total": "Total Tasks",

View File

@@ -2,6 +2,7 @@
"title": "定期タスク",
"subtitle": "定期タスクでAIワークフローを自動化",
"newTask": "新規タスク",
"refresh": "更新",
"gatewayWarning": "ゲートウェイが稼働していません。アクティブなゲートウェイがないと定期タスクを管理できません。",
"stats": {
"total": "タスク合計",

View File

@@ -2,6 +2,7 @@
"title": "定时任务",
"subtitle": "通过定时任务自动化 AI 工作流",
"newTask": "新建任务",
"refresh": "刷新",
"gatewayWarning": "网关未运行。没有活跃的网关,无法管理定时任务。",
"stats": {
"total": "任务总数",

View File

@@ -1158,9 +1158,14 @@ function SetupChannelContent() {
<button
onClick={() => {
try {
window.electron?.openExternal?.(meta.docsUrl!);
const url = t(meta.docsUrl!);
if (window.electron?.openExternal) {
window.electron.openExternal(url);
} else {
window.open(url, '_blank');
}
} catch {
window.open(meta.docsUrl, '_blank');
// ignore
}
}}
className="flex items-center gap-1 text-xs text-blue-400 hover:text-blue-300 transition-colors"