Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(desktop): 精简菜单栏用量管理文案 (#5927)

lengjingxu5d82cc37b727
diff --git a/apps/desktop/native/menubar/macos-menubar-helper.swift b/apps/desktop/native/menubar/macos-menubar-helper.swift
index b4c841105e..92161c10c1 100644
--- a/apps/desktop/native/menubar/macos-menubar-helper.swift
+++ b/apps/desktop/native/menubar/macos-menubar-helper.swift
@@ -2578,26 +2578,13 @@ struct ManagePage: View {
private var content: some View {
VStack(alignment: .leading, spacing: 0) {
- VStack(alignment: .leading, spacing: 4) {
- Text(store.s("manageHero"))
- .font(.system(size: 19, weight: .semibold))
- .tracking(-0.4)
- .fixedSize(horizontal: false, vertical: true)
- Text(store.s("manageHeroSub"))
- .font(.system(size: 12, weight: .medium))
- .foregroundStyle(Palette.ink3)
- .lineSpacing(2)
- .fixedSize(horizontal: false, vertical: true)
- }
- .padding(EdgeInsets(top: 8, leading: 18, bottom: 0, trailing: 18))
-
section(store.s("sources"), store.s("sourcesShown", [
"a": String(view.manage.filter { !$0.hidden }.count),
"b": String(view.manage.count),
]))
sourceList
- section(store.s("statusIcon"), store.s("statusIconSub"))
+ section(store.s("statusIcon"), nil)
StatusPreview(store: store, view: view)
.padding(.horizontal, 12)
// Four labels never fit one segmented row in every language; two columns always do.
@@ -2611,12 +2598,12 @@ struct ManagePage: View {
section(store.s("other"), nil)
Tile {
VStack(spacing: 0) {
- settingRow(store.s("lowAlert"), store.s("lowAlertSub")) {
+ settingRow(store.s("lowAlert"), nil) {
Toggle("", isOn: Binding(get: { view.settings.lowAlert }, set: { Bridge.emitSettings(["lowAlert": $0]) }))
.toggleStyle(.switch).controlSize(.small).labelsHidden()
}
Divider().overlay(Palette.line)
- settingRow(store.s("privacy"), store.s("privacySub")) {
+ settingRow(store.s("privacy"), nil) {
Toggle("", isOn: Binding(get: { view.settings.privacy }, set: { Bridge.emitSettings(["privacy": $0]) }))
.toggleStyle(.switch).controlSize(.small).labelsHidden()
}
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index b7954160ac..0505784157 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -1135,12 +1135,9 @@
"today": "Today",
"manageTitle": "Manage",
"done": "Done",
- "manageHero": "What the menu shows,\nand in what order.",
- "manageHeroSub": "Drag to reorder. Sources you turn off don't appear in the menu and aren't part of the summary above.",
"sources": "Sources",
"sourcesShown": "{{a}} of {{b}} shown",
"statusIcon": "Menu bar icon",
- "statusIconSub": "Monochrome, follows the menu bar",
"statusIconMode": {
"icon": "Icon only",
"lowest": "Lowest left",
@@ -1149,11 +1146,9 @@
},
"other": "Other",
"lowAlert": "Notify when running low",
- "lowAlertSub": "Sends a system notification when every source with room left is nearly empty",
"privacy": "Hide personal info",
- "privacySub": "Shows only the first and last letter of accounts and hides task titles. Good for recordings and screenshots.",
"usageScope": "Usage covers",
- "manageFoot": "Sign in to accounts and connect them in Cindy Settings › Model Providers.",
+ "manageFoot": "Manage providers",
"showSource": "Show {{name}} in the menu",
"reorderHint": "Drag, or use the actions menu to reorder",
"moveUp": "Move up",
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index 10a643e4c8..2769e2a78a 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -1112,12 +1112,9 @@
"today": "今日",
"manageTitle": "管理",
"done": "完了",
- "manageHero": "メニューに何を、\nどの順で表示するか。",
- "manageHeroSub": "ドラッグで並べ替えます。オフにしたソースはメニューに表示されず、上の判断にも含まれません。",
"sources": "ソース",
"sourcesShown": "{{b}} 件中 {{a}} 件を表示",
"statusIcon": "メニューバーのアイコン",
- "statusIconSub": "モノクロで、メニューバーの明暗に合わせて変わります",
"statusIconMode": {
"icon": "アイコンのみ",
"lowest": "最小の残り",
@@ -1126,11 +1123,9 @@
},
"other": "その他",
"lowAlert": "残りわずかで通知",
- "lowAlertSub": "余裕のあるソースがどれも上限に近づいたら、システム通知を送ります",
"privacy": "個人情報を隠す",
- "privacySub": "アカウントは最初と最後の文字だけ表示し、タスク名も隠します。録画やスクリーンショットに便利です",
"usageScope": "使用量の集計範囲",
- "manageFoot": "アカウントのログインと接続は Cindy の設定 › モデルプロバイダー で管理します。",
+ "manageFoot": "プロバイダーを管理",
"showSource": "{{name}} をメニューに表示",
"reorderHint": "ドラッグするか、アクションメニューで並べ替えます",
"moveUp": "上へ移動",
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index 1d15eafb99..075db039fe 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -1112,12 +1112,9 @@
"today": "오늘",
"manageTitle": "관리",
"done": "완료",
- "manageHero": "메뉴에 무엇을,\n어떤 순서로 보여 줄지.",
- "manageHeroSub": "드래그해서 순서를 바꿔요. 끈 소스는 메뉴에 나타나지 않고 위의 판단에도 포함되지 않아요.",
"sources": "소스",
"sourcesShown": "{{b}}개 중 {{a}}개 표시",
"statusIcon": "메뉴 막대 아이콘",
- "statusIconSub": "단색이며 메뉴 막대 밝기에 맞춰 바뀌어요",
"statusIconMode": {
"icon": "아이콘만",
"lowest": "가장 적게 남음",
@@ -1126,11 +1123,9 @@
},
"other": "기타",
"lowAlert": "곧 소진될 때 알림",
- "lowAlertSub": "여유가 남은 소스가 모두 거의 다 찼을 때 시스템 알림을 보내요",
"privacy": "개인 정보 숨기기",
- "privacySub": "계정은 첫 글자와 마지막 글자만 보이고 작업 제목도 숨겨요. 녹화나 스크린샷에 좋아요",
"usageScope": "사용량 집계 범위",
- "manageFoot": "계정 로그인과 연결은 Cindy 설정 › 모델 제공자에서 관리해요.",
+ "manageFoot": "제공자 관리",
"showSource": "메뉴에 {{name}} 표시",
"reorderHint": "드래그하거나 작업 메뉴로 순서를 바꿔요",
"moveUp": "위로 이동",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
index be3e49dc92..75a4cca36d 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -1112,12 +1112,9 @@
"today": "今天",
"manageTitle": "管理",
"done": "完成",
- "manageHero": "菜单里显示什么,\n按什么顺序。",
- "manageHeroSub": "拖动调整顺序;关掉的来源不在菜单里出现,也不参与上面的余量判断。",
"sources": "余量来源",
"sourcesShown": "{{a}} / {{b}} 显示",
"statusIcon": "菜单栏图标",
- "statusIconSub": "单色,随菜单栏深浅变化",
"statusIconMode": {
"icon": "只图标",
"lowest": "最低余量",
@@ -1126,11 +1123,9 @@
},
"other": "其他",
"lowAlert": "快用完时通知",
- "lowAlertSub": "所有还有余量的来源都快见底时,发一条系统通知",
"privacy": "隐藏个人信息",
- "privacySub": "账号只显示首尾字母,任务标题也会隐藏,适合录屏和截图",
"usageScope": "用量统计范围",
- "manageFoot": "账号登录和连接在 Cindy 设置 › 模型供应商 里管理。",
+ "manageFoot": "管理模型供应商",
"showSource": "在菜单里显示 {{name}}",
"reorderHint": "拖动,或用操作菜单调整顺序",
"moveUp": "上移",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
index 4cb59a903a..7019b2f375 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -1112,12 +1112,9 @@
"today": "今天",
"manageTitle": "管理",
"done": "完成",
- "manageHero": "選單裡顯示什麼,\n按什麼順序。",
- "manageHeroSub": "拖動調整順序;關掉的來源不在選單裡出現,也不參與上面的餘量判斷。",
"sources": "餘量來源",
"sourcesShown": "{{a}} / {{b}} 顯示",
"statusIcon": "選單列圖示",
- "statusIconSub": "單色,隨選單列深淺變化",
"statusIconMode": {
"icon": "只圖標",
"lowest": "最低餘量",
@@ -1126,11 +1123,9 @@
},
"other": "其他",
"lowAlert": "快用完時通知",
- "lowAlertSub": "所有還有餘量的來源都快見底時,發一則系統通知",
"privacy": "隱藏個人資訊",
- "privacySub": "帳號只顯示首尾字母,任務標題也會隱藏,適合錄影和截圖",
"usageScope": "用量統計範圍",
- "manageFoot": "帳號登入和連線在 Cindy 設定 › 模型供應商 裡管理。",
+ "manageFoot": "管理模型供應商",
"showSource": "在選單裡顯示 {{name}}",
"reorderHint": "拖動,或用操作選單調整順序",
"moveUp": "上移",