设置界面支持版本控制和github账号管理

This commit is contained in:
itpkcn@gmail.com
2026-03-21 11:33:48 +08:00
parent e801f041a0
commit 62fab2c3f2
22 changed files with 1595 additions and 4 deletions

View File

@@ -66,6 +66,7 @@
"mcp": "MCP",
"skills": "Skills",
"shortcuts": "快捷鍵",
"version_control": "版本控制",
"system": "系統"
}
},
@@ -128,6 +129,55 @@
"unknown": "更新失敗,請稍後再試。"
}
},
"VersionControlSettings": {
"loading": "載入中...",
"sectionTitle": "版本控制",
"sectionDescription": "設定 Git 執行檔並管理 GitHub 帳號。",
"gitTitle": "Git 設定",
"gitDescription": "設定應用程式使用的 Git 執行檔。",
"gitDetected": "已偵測到 Git",
"gitNotFound": "未在系統中找到 Git",
"gitVersion": "版本",
"gitPath": "路徑",
"customGitPath": "自訂 Git 路徑",
"customGitPathPlaceholder": "/usr/bin/git",
"customGitPathHint": "留空則使用自動偵測的路徑。",
"test": "測試",
"testing": "測試中...",
"testSuccess": "Git 執行檔有效。",
"testFailed": "Git 測試失敗:{message}",
"save": "儲存",
"saving": "儲存中...",
"saveSuccess": "Git 設定已儲存。",
"saveFailed": "儲存失敗:{message}",
"githubTitle": "GitHub 帳號",
"githubDescription": "管理用於身份驗證的 GitHub 帳號。權杖儲存在本機。",
"noAccounts": "尚未設定 GitHub 帳號。",
"addAccount": "新增帳號",
"serverUrl": "伺服器網址",
"serverUrlPlaceholder": "https://github.com",
"token": "個人存取權杖",
"tokenPlaceholder": "ghp_xxxxxxxxxxxx",
"tokenHint": "在 GitHub → Settings → Developer settings → Personal access tokens 中產生權杖。",
"validateAndAdd": "驗證並新增",
"validating": "驗證中...",
"addSuccess": "帳號 {username} 新增成功。",
"addFailed": "新增帳號失敗:{message}",
"testConnection": "測試",
"connectionSuccess": "連線成功。",
"connectionFailed": "連線失敗:{message}",
"setDefault": "設為預設",
"defaultLabel": "預設",
"defaultSet": "預設帳號已更新。",
"removeAccount": "刪除",
"removeConfirmTitle": "刪除帳號",
"removeConfirmMessage": "確定要刪除帳號「{username}」嗎?",
"removeConfirm": "刪除",
"removeCancel": "取消",
"removeSuccess": "帳號已刪除。",
"scopes": "權限範圍",
"loadFailed": "載入設定失敗:{message}"
},
"ShortcutSettings": {
"sectionTitle": "快捷鍵",
"resetDefault": "恢復預設",