fix(setup): translate docsUrl before opening in browser (#70)
This commit is contained in:
committed by
GitHub
Unverified
parent
748cd83c73
commit
712f379226
@@ -2,6 +2,7 @@
|
|||||||
"title": "Scheduled Tasks",
|
"title": "Scheduled Tasks",
|
||||||
"subtitle": "Automate AI workflows with scheduled tasks",
|
"subtitle": "Automate AI workflows with scheduled tasks",
|
||||||
"newTask": "New Task",
|
"newTask": "New Task",
|
||||||
|
"refresh": "Refresh",
|
||||||
"gatewayWarning": "Gateway is not running. Scheduled tasks cannot be managed without an active Gateway.",
|
"gatewayWarning": "Gateway is not running. Scheduled tasks cannot be managed without an active Gateway.",
|
||||||
"stats": {
|
"stats": {
|
||||||
"total": "Total Tasks",
|
"total": "Total Tasks",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"title": "定期タスク",
|
"title": "定期タスク",
|
||||||
"subtitle": "定期タスクでAIワークフローを自動化",
|
"subtitle": "定期タスクでAIワークフローを自動化",
|
||||||
"newTask": "新規タスク",
|
"newTask": "新規タスク",
|
||||||
|
"refresh": "更新",
|
||||||
"gatewayWarning": "ゲートウェイが稼働していません。アクティブなゲートウェイがないと定期タスクを管理できません。",
|
"gatewayWarning": "ゲートウェイが稼働していません。アクティブなゲートウェイがないと定期タスクを管理できません。",
|
||||||
"stats": {
|
"stats": {
|
||||||
"total": "タスク合計",
|
"total": "タスク合計",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"title": "定时任务",
|
"title": "定时任务",
|
||||||
"subtitle": "通过定时任务自动化 AI 工作流",
|
"subtitle": "通过定时任务自动化 AI 工作流",
|
||||||
"newTask": "新建任务",
|
"newTask": "新建任务",
|
||||||
|
"refresh": "刷新",
|
||||||
"gatewayWarning": "网关未运行。没有活跃的网关,无法管理定时任务。",
|
"gatewayWarning": "网关未运行。没有活跃的网关,无法管理定时任务。",
|
||||||
"stats": {
|
"stats": {
|
||||||
"total": "任务总数",
|
"total": "任务总数",
|
||||||
|
|||||||
@@ -1158,9 +1158,14 @@ function SetupChannelContent() {
|
|||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
try {
|
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 {
|
} catch {
|
||||||
window.open(meta.docsUrl, '_blank');
|
// ignore
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
className="flex items-center gap-1 text-xs text-blue-400 hover:text-blue-300 transition-colors"
|
className="flex items-center gap-1 text-xs text-blue-400 hover:text-blue-300 transition-colors"
|
||||||
|
|||||||
Reference in New Issue
Block a user