@hncode/hncode 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/hncode +54 -8
- package/package.json +1 -1
- package/src/agent-task.js +14 -12
- package/src/agent.js +1465 -1421
- package/src/animate.js +21 -0
- package/src/colors.js +615 -593
- package/src/config.js +36 -11
- package/src/context-bar.js +280 -277
- package/src/doctor.js +4 -3
- package/src/i18n.js +1438 -1214
- package/src/index.js +822 -730
- package/src/keybindings.js +2 -1
- package/src/markdown.js +37 -10
- package/src/mcp-server.js +409 -0
- package/src/mcp.js +279 -29
- package/src/memory-profile.js +19 -16
- package/src/plan.js +7 -5
- package/src/plugin.js +37 -21
- package/src/registry-browser.js +17 -15
- package/src/rows-tool-result.js +251 -235
- package/src/settings-schema.js +9 -0
- package/src/swarm-progress.js +1 -1
- package/src/tasks-browser.js +28 -28
- package/src/term.js +57 -21
- package/src/text.js +62 -0
- package/src/tools/agent.js +7 -2
- package/src/tools/bash.js +446 -440
- package/src/tools/edit.js +14 -1
- package/src/tui.js +542 -330
package/src/i18n.js
CHANGED
|
@@ -1,1214 +1,1438 @@
|
|
|
1
|
-
// UI strings for the web interface — the ONE place they are defined.
|
|
2
|
-
//
|
|
3
|
-
// Both sides read this file: the browser imports it as a plain script (see
|
|
4
|
-
// web-public/i18n.js, which is generated from this module so the two can never
|
|
5
|
-
// drift), and the server uses it for the few strings it returns to the client
|
|
6
|
-
// (error messages, the login page).
|
|
7
|
-
// drift), and the server uses it for the few strings it returns to the client
|
|
8
|
-
// (error messages, the login page).
|
|
9
|
-
//
|
|
10
|
-
// Adding a language: add a key to every entry in `MESSAGES`. A missing key falls
|
|
11
|
-
// back to English at lookup time rather than printing the key, so a partly
|
|
12
|
-
// translated language degrades readably instead of showing `nav.chat`.
|
|
13
|
-
|
|
14
|
-
export const LANGUAGES = [
|
|
15
|
-
{ id: 'zh', label: '中文' },
|
|
16
|
-
{ id: 'en', label: 'English' },
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
// The WEB UI's default. The terminal never reads this file: TUI copy is English
|
|
20
|
-
// by construction. A browser keeps its choice in localStorage (`hncode.lang`), so
|
|
21
|
-
// this only decides the FIRST visit — and English is the safer default there,
|
|
22
|
-
// since a link can be opened by anyone.
|
|
23
|
-
export const DEFAULT_LANG = 'en';
|
|
24
|
-
|
|
25
|
-
export const MESSAGES = {
|
|
26
|
-
// ---- document / login ----------------------------------------------------
|
|
27
|
-
'app.title': { zh: 'hncode', en: 'hncode' },
|
|
28
|
-
'login.heading': { zh: 'hncode', en: 'hncode' },
|
|
29
|
-
'login.lede': {
|
|
30
|
-
zh: '访问令牌保存在 config.toml 里,第一次运行时自动生成,之后一直不变。',
|
|
31
|
-
en: 'The access token lives in config.toml. It is generated once and stays the same.',
|
|
32
|
-
},
|
|
33
|
-
'login.tokenLabel': { zh: '访问令牌', en: 'Access token' },
|
|
34
|
-
'login.submit': { zh: '进入', en: 'Sign in' },
|
|
35
|
-
'login.badToken': { zh: '令牌不对。', en: 'Invalid token.' },
|
|
36
|
-
'login.failed': { zh: '登录失败。', en: 'Sign-in failed.' },
|
|
37
|
-
'login.unreachable': { zh: '连不上服务:', en: 'Cannot reach the server: ' },
|
|
38
|
-
'login.foot': {
|
|
39
|
-
zh: '本地服务,只监听回环地址。在任意一个终端里运行 /web 都能看到这台机器上的所有会话。',
|
|
40
|
-
en: 'Local service, loopback only. Run /web in any terminal to see every session on this machine.',
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
// ---- home (the session directory) ---------------------------------------
|
|
44
|
-
'home.brandSuffix': { zh: '会话', en: 'sessions' },
|
|
45
|
-
'home.lede': {
|
|
46
|
-
zh: '这台机器上的所有会话。运行中的可以继续对话,已退出的只能查看。',
|
|
47
|
-
en: 'Every session on this machine. Running ones accept input; exited ones are read-only.',
|
|
48
|
-
},
|
|
49
|
-
'home.empty': {
|
|
50
|
-
zh: '还没有任何会话。在终端里运行 hncode 开始一个。',
|
|
51
|
-
en: 'No sessions yet. Start one by running hncode in a terminal.',
|
|
52
|
-
},
|
|
53
|
-
'home.live': { zh: '运行中', en: 'Running' },
|
|
54
|
-
'home.saved': { zh: '已退出', en: 'Exited' },
|
|
55
|
-
'home.readonly': { zh: '只读', en: 'Read-only' },
|
|
56
|
-
'home.untitled': { zh: '未命名', en: 'Untitled' },
|
|
57
|
-
'home.noWorkspace': { zh: '未知目录', en: 'Unknown directory' },
|
|
58
|
-
'home.refresh': { zh: '刷新', en: 'Refresh' },
|
|
59
|
-
'home.logout': { zh: '退出登录', en: 'Sign out' },
|
|
60
|
-
'home.colTitle': { zh: '会话', en: 'Session' },
|
|
61
|
-
'home.colUpdated': { zh: '最后活动', en: 'Last active' },
|
|
62
|
-
'home.colRounds': { zh: '回合', en: 'Turns' },
|
|
63
|
-
'home.sessionCount': { zh: '{n} 个会话', en: '{n} session(s)' },
|
|
64
|
-
'home.loadFailed': { zh: '读取会话列表失败:', en: 'Could not load sessions: ' },
|
|
65
|
-
// Relative timestamps. They live in the table rather than as ternaries in the
|
|
66
|
-
// renderer so Chinese and English keep the same shape ("3 分钟前" / "3m ago"),
|
|
67
|
-
// and so both the landing page and the rail say it the same way.
|
|
68
|
-
'home.justNow': { zh: '刚刚', en: 'just now' },
|
|
69
|
-
'home.minutesAgo': { zh: '{n} 分钟前', en: '{n}m ago' },
|
|
70
|
-
'home.hoursAgo': { zh: '{n} 小时前', en: '{n}h ago' },
|
|
71
|
-
'home.daysAgo': { zh: '{n} 天前', en: '{n}d ago' },
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
// ---- navigation ----------------------------------------------------------
|
|
75
|
-
'nav.chat': { zh: '对话', en: 'Chat' },
|
|
76
|
-
'nav.readonly': { zh: '只读', en: 'read-only' },
|
|
77
|
-
'nav.ariaLabel': { zh: '视图切换', en: 'views' },
|
|
78
|
-
'rail.ariaLabel': { zh: '会话列表', en: 'sessions' },
|
|
79
|
-
'nav.tasks': { zh: '任务', en: 'Tasks' },
|
|
80
|
-
'nav.files': { zh: '文件', en: 'Files' },
|
|
81
|
-
'nav.logs': { zh: '日志', en: 'Logs' },
|
|
82
|
-
'nav.tools': { zh: '工具', en: 'Tools' },
|
|
83
|
-
'nav.commands': { zh: '命令', en: 'Commands' },
|
|
84
|
-
'nav.connecting': { zh: '连接中', en: 'Connecting' },
|
|
85
|
-
'nav.connected': { zh: '已连接', en: 'Connected' },
|
|
86
|
-
'nav.disconnected': { zh: '断开,重连中', en: 'Disconnected, retrying' },
|
|
87
|
-
'nav.language': { zh: '语言', en: 'Language' },
|
|
88
|
-
|
|
89
|
-
// ---- session rail --------------------------------------------------------
|
|
90
|
-
'rail.heading': { zh: '会话', en: 'Sessions' },
|
|
91
|
-
'rail.empty': { zh: '还没有其它会话', en: 'No other sessions' },
|
|
92
|
-
'rail.noMatch': { zh: '没有匹配的会话', en: 'No session matches' },
|
|
93
|
-
'rail.noWorkspace': { zh: '未知目录', en: 'Unknown directory' },
|
|
94
|
-
'rail.current': { zh: '当前', en: 'Current' },
|
|
95
|
-
'rail.search': { zh: '搜索 id / 标题 / 目录', en: 'search id / title / workspace' },
|
|
96
|
-
'rail.all': { zh: '所有会话', en: 'All sessions' },
|
|
97
|
-
'rail.open': { zh: '会话列表', en: 'Sessions' },
|
|
98
|
-
// ---- chat pane -----------------------------------------------------------
|
|
99
|
-
'chat.untitled': { zh: '会话', en: 'Session' },
|
|
100
|
-
'chat.interrupt': { zh: '中断', en: 'Interrupt' },
|
|
101
|
-
'chat.placeholder': {
|
|
102
|
-
zh: '输入消息,Enter 发送,Shift+Enter 换行',
|
|
103
|
-
en: 'Message the agent. Enter sends, Shift+Enter adds a line',
|
|
104
|
-
},
|
|
105
|
-
'chat.send': { zh: '发送', en: 'Send' },
|
|
106
|
-
'chat.shellHint': { zh: '行首加 ! 直接执行命令', en: 'A leading ! runs the line in the shell' },
|
|
107
|
-
'chat.running': { zh: '运行中', en: 'Running' },
|
|
108
|
-
'chat.idle': { zh: '空闲', en: 'Idle' },
|
|
109
|
-
'chat.toggleHint': { zh: '点击展开原文', en: 'Click to expand' },
|
|
110
|
-
|
|
111
|
-
// ---- roles ---------------------------------------------------------------
|
|
112
|
-
'role.user': { zh: '你', en: 'You' },
|
|
113
|
-
'role.assistant': { zh: 'AI', en: 'AI' },
|
|
114
|
-
'role.tool': { zh: '工具', en: 'Tool' },
|
|
115
|
-
'role.toolResult': { zh: '输出', en: 'Output' },
|
|
116
|
-
'role.system': { zh: '系统', en: 'System' },
|
|
117
|
-
'role.warn': { zh: '警告', en: 'Warn' },
|
|
118
|
-
'role.thinking': { zh: '思考', en: 'Thinking' },
|
|
119
|
-
'role.shell': { zh: 'shell', en: 'shell' },
|
|
120
|
-
'role.plan': { zh: '计划', en: 'Plan' },
|
|
121
|
-
'role.compaction': { zh: '压缩', en: 'Compact' },
|
|
122
|
-
'role.aborted': { zh: '中止', en: 'Aborted' },
|
|
123
|
-
'role.bgTask': { zh: '任务', en: 'Task' },
|
|
124
|
-
'role.error': { zh: '错误', en: 'Error' },
|
|
125
|
-
'role.queued': { zh: '队列', en: 'Queued' },
|
|
126
|
-
'role.steer': { zh: '注入', en: 'Steer' },
|
|
127
|
-
|
|
128
|
-
// ---- tool states ---------------------------------------------------------
|
|
129
|
-
'tool.running': { zh: '运行中', en: 'running' },
|
|
130
|
-
'tool.done': { zh: '完成', en: 'done' },
|
|
131
|
-
'tool.failed': { zh: '失败', en: 'failed' },
|
|
132
|
-
|
|
133
|
-
// ---- compaction ----------------------------------------------------------
|
|
134
|
-
'compact.running': { zh: '正在压缩', en: 'Compacting' },
|
|
135
|
-
'compact.done': { zh: '压缩完成', en: 'Compaction complete' },
|
|
136
|
-
'compact.cancelled': { zh: '压缩取消', en: 'Compaction cancelled' },
|
|
137
|
-
// `before → after`. "tokens" is a noun here, not a bare unit, so it is a word to
|
|
138
|
-
// translate; `tok/s` elsewhere is a symbol and is not.
|
|
139
|
-
'compact.amount': { zh: '{before} → {after} tokens', en: '{before} → {after} tokens' },
|
|
140
|
-
|
|
141
|
-
// ---- tasks pane ----------------------------------------------------------
|
|
142
|
-
'tasks.heading': { zh: '后台任务', en: 'Background tasks' },
|
|
143
|
-
'tasks.refresh': { zh: '刷新', en: 'Refresh' },
|
|
144
|
-
'tasks.empty': { zh: '没有后台任务。', en: 'No background tasks.' },
|
|
145
|
-
'tasks.colId': { zh: 'ID', en: 'ID' },
|
|
146
|
-
'tasks.colKind': { zh: '类型', en: 'Kind' },
|
|
147
|
-
'tasks.colStatus': { zh: '状态', en: 'Status' },
|
|
148
|
-
'tasks.colSummary': { zh: '摘要', en: 'Summary' },
|
|
149
|
-
'tasks.stop': { zh: '停止', en: 'Stop' },
|
|
150
|
-
|
|
151
|
-
// ---- files pane ----------------------------------------------------------
|
|
152
|
-
'files.heading': { zh: '会话改动', en: 'Session changes' },
|
|
153
|
-
'files.sub': { zh: '本轮对话读写过的文件', en: 'Files this conversation read or wrote' },
|
|
154
|
-
'files.empty': { zh: '本会话还没有读写文件。', en: 'No files read or written yet.' },
|
|
155
|
-
'files.colPath': { zh: '路径', en: 'Path' },
|
|
156
|
-
'files.colOps': { zh: '操作', en: 'Ops' },
|
|
157
|
-
'files.colCount': { zh: '次数', en: 'Count' },
|
|
158
|
-
|
|
159
|
-
// ---- logs pane -----------------------------------------------------------
|
|
160
|
-
'logs.heading': { zh: '事件日志', en: 'Event log' },
|
|
161
|
-
'logs.clear': { zh: '清空', en: 'Clear' },
|
|
162
|
-
'logs.sub': { zh: '最近的会话事件,最新的在最下面', en: 'Recent session events, newest last' },
|
|
163
|
-
|
|
164
|
-
// ---- tools / commands panes ----------------------------------------------
|
|
165
|
-
'tools.heading': { zh: '可用工具', en: 'Tools available' },
|
|
166
|
-
'tools.sub': { zh: '由本会话的模型调用', en: 'Callable by the model in this session' },
|
|
167
|
-
'commands.heading': { zh: '斜杠命令', en: 'Slash commands' },
|
|
168
|
-
'commands.sub': { zh: '与终端完全一致', en: 'Identical to the terminal' },
|
|
169
|
-
|
|
170
|
-
// ---- status panel --------------------------------------------------------
|
|
171
|
-
'side.runtime': { zh: '运行', en: 'Runtime' },
|
|
172
|
-
'settings.open': { zh: '设置', en: 'Settings' },
|
|
173
|
-
'settings.title': { zh: '设置', en: 'Settings' },
|
|
174
|
-
'settings.close': { zh: '关闭', en: 'Close' },
|
|
175
|
-
'settings.save': { zh: '保存', en: 'Save' },
|
|
176
|
-
'settings.session': { zh: '会话', en: 'Session' },
|
|
177
|
-
'settings.titleLabel': { zh: '标题', en: 'Title' },
|
|
178
|
-
'settings.titleSaved': { zh: '标题已保存', en: 'Title saved' },
|
|
179
|
-
'settings.providers': { zh: 'Provider', en: 'Providers' },
|
|
180
|
-
'settings.noProviders': { zh: '还没有配置 provider', en: 'No providers configured' },
|
|
181
|
-
'settings.discover': { zh: '拉取模型', en: 'discover' },
|
|
182
|
-
'settings.foundModels': { zh: '找到 {n} 个模型', en: 'Found {n} model(s)' },
|
|
183
|
-
'settings.import': { zh: '导入', en: 'import' },
|
|
184
|
-
'settings.imported': { zh: '已导入 {name},新增 {n} 个模型', en: 'Imported {name}, {n} new model(s)' },
|
|
185
|
-
'settings.importKnown': { zh: '从 models.dev 导入', en: 'Import from models.dev' },
|
|
186
|
-
'settings.keyPrompt': { zh: '请输入 {name} 的 API key:', en: 'API key for {name}:' },
|
|
187
|
-
'settings.addProvider': { zh: '添加', en: 'Add' },
|
|
188
|
-
'settings.added': { zh: '已添加 {name}', en: 'Added {name}' },
|
|
189
|
-
'settings.remove': { zh: '删除', en: 'remove' },
|
|
190
|
-
'settings.removed': { zh: '已删除 {name}', en: 'Removed {name}' },
|
|
191
|
-
'settings.confirmRemove': { zh: '删除 provider {name}?它的模型也会一并移除。', en: 'Delete provider {name}? Its models go too.' },
|
|
192
|
-
'settings.noMatch': { zh: '没有匹配项', en: 'No match' },
|
|
193
|
-
'settings.nameRequired': { zh: '名称不能为空', en: 'Name is required' },
|
|
194
|
-
'settings.failed': { zh: '操作失败:', en: 'Failed: ' },
|
|
195
|
-
'settings.prefs': { zh: '偏好', en: 'Preferences' },
|
|
196
|
-
'settings.info': { zh: '当前生效', en: 'In force' },
|
|
197
|
-
'settings.model': { zh: '模型', en: 'Model' },
|
|
198
|
-
'settings.provider': { zh: 'Provider', en: 'Provider' },
|
|
199
|
-
'settings.protocol': { zh: '协议', en: 'Protocol' },
|
|
200
|
-
'settings.endpoint': { zh: '端点', en: 'Endpoint' },
|
|
201
|
-
'settings.key': { zh: '密钥', en: 'API key' },
|
|
202
|
-
'settings.workspace': { zh: '目录', en: 'Workspace' },
|
|
203
|
-
'settings.ctx': { zh: '上下文窗口', en: 'Context window' },
|
|
204
|
-
// Placeholders for the "add provider" row and the models.dev filter.
|
|
205
|
-
'settings.phName': { zh: '名称', en: 'name' },
|
|
206
|
-
'settings.phUrl': { zh: '接口地址', en: 'base URL' },
|
|
207
|
-
'settings.phKey': { zh: 'API key', en: 'API key' },
|
|
208
|
-
'settings.phFilter': { zh: '筛选', en: 'filter' },
|
|
209
|
-
// Provider row tags / sub-line fragments.
|
|
210
|
-
'settings.tagKey': { zh: '已设密钥', en: 'key' },
|
|
211
|
-
'settings.tagNoKey': { zh: '无密钥', en: 'no key' },
|
|
212
|
-
'settings.noUrl': { zh: '未设置地址', en: '(no url)' },
|
|
213
|
-
'settings.modelCount': { zh: '{n} 个模型', en: '{n} model(s)' },
|
|
214
|
-
'settings.valSet': { zh: '已设置', en: 'set' },
|
|
215
|
-
'settings.valNotSet': { zh: '未设置', en: 'not set' },
|
|
216
|
-
'pref.calm': { zh: '简洁模式', en: 'Calm mode' },
|
|
217
|
-
'pref.autoCompact': { zh: '自动压缩', en: 'Auto compact' },
|
|
218
|
-
'pref.autoUpdate': { zh: '自动更新', en: 'Auto update' },
|
|
219
|
-
'pref.promptCache': { zh: '提示缓存', en: 'Prompt cache' },
|
|
220
|
-
'pref.external': { zh: '允许工作区外路径', en: 'Allow external paths' },
|
|
221
|
-
|
|
222
|
-
'side.model': { zh: '模型', en: 'Model' },
|
|
223
|
-
'side.provider': { zh: 'Provider', en: 'Provider' },
|
|
224
|
-
'side.mode': { zh: '权限', en: 'Permission' },
|
|
225
|
-
'side.cwd': { zh: '目录', en: 'Directory' },
|
|
226
|
-
'side.plan': { zh: '计划模式', en: 'Plan mode' },
|
|
227
|
-
'side.effort': { zh: '思考', en: 'Thinking' },
|
|
228
|
-
'side.focus': { zh: '专注模式', en: 'Focus mode' },
|
|
229
|
-
'side.busy': { zh: '状态', en: 'State' },
|
|
230
|
-
'side.context': { zh: '上下文', en: 'Context' },
|
|
231
|
-
'side.usage': { zh: '用量', en: 'Usage' },
|
|
232
|
-
'side.rounds': { zh: '轮次', en: 'Rounds' },
|
|
233
|
-
'side.steps': { zh: '步骤', en: 'Steps' },
|
|
234
|
-
'side.rate': { zh: '速度', en: 'Rate' },
|
|
235
|
-
// Unit suffixes for the values above. Chinese writes the unit straight after
|
|
236
|
-
// the number with no space (`3轮`), English needs one (`3 turns`) — so the
|
|
237
|
-
// separator belongs INSIDE the string rather than being concatenated at the
|
|
238
|
-
// call site. `tok/s` is a unit in both languages and is left as is.
|
|
239
|
-
'unit.rounds': { zh: '{n}轮', en: '{n} turns' },
|
|
240
|
-
'unit.steps': { zh: '{n}步', en: '{n} steps' },
|
|
241
|
-
'unit.rate': { zh: '{n} tok/s', en: '{n} tok/s' },
|
|
242
|
-
// The placeholder a card's field shows when it has no value at all. Distinct
|
|
243
|
-
// from `side.none` (「(无)」) which labels an EMPTY LIST in the rail; a field
|
|
244
|
-
// placeholder sits inline next to its label and is dimmed instead.
|
|
245
|
-
'unit.none': { zh: '—', en: '—' },
|
|
246
|
-
'side.todos': { zh: '待办', en: 'Todos' },
|
|
247
|
-
'side.queue': { zh: '队列', en: 'Queue' },
|
|
248
|
-
'side.quick': { zh: '快捷', en: 'Quick' },
|
|
249
|
-
'side.on': { zh: '开', en: 'on' },
|
|
250
|
-
'side.off': { zh: '关', en: 'off' },
|
|
251
|
-
'side.none': { zh: '(无)', en: '(none)' },
|
|
252
|
-
|
|
253
|
-
// ---- queue pane ----------------------------------------------------------
|
|
254
|
-
// The terminal steers a queued message into the running turn with Ctrl-S; a
|
|
255
|
-
// browser cannot use that key, so each queued row carries its own button with
|
|
256
|
-
// the same effect.
|
|
257
|
-
// ---- copy / drawer / tool detail ------------------------------------------
|
|
258
|
-
// A copy button reports its own result in place: the label IS the feedback.
|
|
259
|
-
// ---- transcript markers ---------------------------------------------------
|
|
260
|
-
// The glyph the terminal prints in the gutter for each kind of row. They live
|
|
261
|
-
// here because the terminal and the browser must agree on them: a `>` in the
|
|
262
|
-
// terminal and a `>` in the browser are the same message.
|
|
263
|
-
'mark.user': { zh: '>', en: '>' },
|
|
264
|
-
'mark.queued': { zh: '>', en: '>' },
|
|
265
|
-
'mark.steer': { zh: '>', en: '>' },
|
|
266
|
-
'mark.bash': { zh: '!', en: '!' },
|
|
267
|
-
'mark.warn': { zh: '⚑', en: '⚑' },
|
|
268
|
-
'mark.thinking': { zh: '●', en: '●' },
|
|
269
|
-
'mark.tool': { zh: '●', en: '●' },
|
|
270
|
-
'mark.toolFailed': { zh: '✗', en: '✗' },
|
|
271
|
-
'mark.result': { zh: '↳', en: '↳' },
|
|
272
|
-
'mark.bgTask': { zh: '●', en: '●' },
|
|
273
|
-
'mark.bgTaskFailed': { zh: '✗', en: '✗' },
|
|
274
|
-
|
|
275
|
-
'tool.verb': { zh: '调用', en: 'Used' },
|
|
276
|
-
// The verb carries the STATE, as in the terminal: `Using …` while a call runs,
|
|
277
|
-
// `Used …` once it finished.
|
|
278
|
-
'tool.using': { zh: '调用', en: 'Using' },
|
|
279
|
-
'tool.used': { zh: '调用', en: 'Used' },
|
|
280
|
-
'chat.thinking': { zh: '思考…', en: 'thinking…' },
|
|
281
|
-
'tool.compacting': { zh: '正在压缩上下文…', en: 'Compacting context…' },
|
|
282
|
-
'tool.compacted': { zh: '压缩完成', en: 'Compaction complete' },
|
|
283
|
-
'tool.compactCancelled': { zh: '压缩取消', en: 'Compaction cancelled' },
|
|
284
|
-
// "show more" for a capped tool result. It is a button, so it says what
|
|
285
|
-
// clicking it does rather than describing a state.
|
|
286
|
-
'tool.moreLines': { zh: '还有 {n} 行,展开', en: '{n} more lines, expand' },
|
|
287
|
-
'tool.collapse': { zh: '收起', en: 'collapse' },
|
|
288
|
-
'tool.noChanges': { zh: '没有改动', en: 'no changes' },
|
|
289
|
-
'chat.shellMode': { zh: 'shell 模式,Enter 执行', en: 'shell mode, Enter runs it' },
|
|
290
|
-
|
|
291
|
-
// ---- status line ----------------------------------------------------------
|
|
292
|
-
// Same shape as the terminal's footer: `3 turns | 7 steps | 42 tok/s`. Kept in
|
|
293
|
-
// English on purpose — the terminal does not translate it either, and one
|
|
294
|
-
// person reading both screens should not see two different sentences.
|
|
295
|
-
'status.usage': {
|
|
296
|
-
zh: '{turns} 轮 | {steps} 步 | {rate} tok/s',
|
|
297
|
-
en: '{turns} turns | {steps} steps | {rate} tok/s',
|
|
298
|
-
},
|
|
299
|
-
'status.context': {
|
|
300
|
-
zh: '上下文 {pct}% ({used}/{max})',
|
|
301
|
-
en: 'context {pct}% ({used}/{max})',
|
|
302
|
-
},
|
|
303
|
-
'status.tasksBash': { zh: '[{n} 个任务运行中]', en: '[{n} task(s) running]' },
|
|
304
|
-
'status.tasksAgent': { zh: '[{n} 个 agent 运行中]', en: '[{n} agent(s) running]' },
|
|
305
|
-
'status.expandTodos': { zh: '展开全部待办', en: 'Show every todo' },
|
|
306
|
-
|
|
307
|
-
'copy.copy': { zh: '复制', en: 'copy' },
|
|
308
|
-
'copy.copyTitle': { zh: '复制到剪贴板', en: 'Copy to clipboard' },
|
|
309
|
-
'copy.done': { zh: '已复制', en: 'copied' },
|
|
310
|
-
'copy.failed': { zh: '复制失败', en: 'failed' },
|
|
311
|
-
'drawer.close': { zh: 'Esc 关闭', en: 'esc \u2715' },
|
|
312
|
-
'tool.args': { zh: '参数', en: 'args' },
|
|
313
|
-
|
|
314
|
-
'queue.steer': { zh: '注入', en: 'Steer' },
|
|
315
|
-
'queue.steering': { zh: '注入中…', en: 'Steering…' },
|
|
316
|
-
'queue.steerHint': { zh: '立即注入到正在进行的回合', en: 'Inject this into the running turn now' },
|
|
317
|
-
'queue.edit': { zh: '编辑', en: 'Edit' },
|
|
318
|
-
'queue.editHint': { zh: '取回输入框修改,不再排队', en: 'Pull it back into the composer to change it' },
|
|
319
|
-
'queue.drop': { zh: '移除', en: 'Drop' },
|
|
320
|
-
'queue.dropHint': { zh: '从队列中删除这条消息', en: 'Remove this message from the queue' },
|
|
321
|
-
'queue.moreHint': { zh: '… 还有 {n} 条', en: '… +{n} more' },
|
|
322
|
-
'queue.hintRunning': { zh: '等待本回合结束', en: 'Sent when this turn ends' },
|
|
323
|
-
'queue.hintIdle': { zh: '回合结束后依次发送', en: 'Sent in order once the turn ends' },
|
|
324
|
-
|
|
325
|
-
// ---- popover -------------------------------------------------------------
|
|
326
|
-
// The status line's values are buttons; these are the menu's own strings.
|
|
327
|
-
'popover.click': { zh: '点击切换', en: 'Click to change' },
|
|
328
|
-
'popover.effortLabel': { zh: '思考等级', en: 'Thinking Effort' },
|
|
329
|
-
'popover.effort': { zh: '思考 {v}', en: 'think {v}' },
|
|
330
|
-
'popover.off': { zh: 'off', en: 'off' },
|
|
331
|
-
'popover.unknown': { zh: '—', en: '—' },
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
// NOTE: the bottom status line and context line are deliberately NOT translated.
|
|
336
|
-
// tui.js prints them as fixed English (`3 turns | 7 steps | 42 tok/s | context:
|
|
337
|
-
// 20% (…)`) with no i18n key, and these two rows exist to be the browser's copy
|
|
338
|
-
// of that readout. Translating one side would make the same person read two
|
|
339
|
-
// different sentences for the same state.
|
|
340
|
-
|
|
341
|
-
// ---- modal ---------------------------------------------------------------
|
|
342
|
-
// ---- modal ---------------------------------------------------------------
|
|
343
|
-
'modal.approve': { zh: '批准', en: 'Approve' },
|
|
344
|
-
'modal.reject': { zh: '拒绝', en: 'Reject' },
|
|
345
|
-
'modal.allow': { zh: '允许', en: 'Allow' },
|
|
346
|
-
'modal.deny': { zh: '拒绝', en: 'Deny' },
|
|
347
|
-
'modal.question': { zh: '需要选择', en: 'Question' },
|
|
348
|
-
'modal.submit': { zh: '提交', en: 'Submit' },
|
|
349
|
-
'modal.cancel': { zh: '取消', en: 'Cancel' },
|
|
350
|
-
'modal.other': { zh: 'Other', en: 'Other' },
|
|
351
|
-
'modal.otherHint': { zh: '自己输入答案', en: 'Type your own answer' },
|
|
352
|
-
'modal.note': { zh: '补充说明', en: 'Add a note' },
|
|
353
|
-
'modal.noteHint': { zh: '写给整轮问题的补充,可留空', en: 'Optional notes for the whole request' },
|
|
354
|
-
'modal.next': { zh: '下一题', en: 'Next' },
|
|
355
|
-
'modal.progress': { zh: '第 {n}/{total} 题', en: 'Question {n}/{total}' },
|
|
356
|
-
|
|
357
|
-
// ---- errors --------------------------------------------------------------
|
|
358
|
-
'err.actionFailed': { zh: '操作失败', en: 'Action failed' },
|
|
359
|
-
'err.unreachable': { zh: '连不上服务:', en: 'Cannot reach the server: ' },
|
|
360
|
-
'err.unauthorized': { zh: '未授权', en: 'Unauthorized' },
|
|
361
|
-
// Plain-text responses from the server itself (a direct visit, a curl call) —
|
|
362
|
-
// these have no page to carry a client-side language choice, so the server
|
|
363
|
-
// negotiates from Accept-Language.
|
|
364
|
-
'http.notFound': { zh: '找不到', en: 'not found' },
|
|
365
|
-
'http.badMethod': { zh: '不支持该请求方法', en: 'method not allowed' },
|
|
366
|
-
'http.unauthorized': { zh: '未授权', en: 'unauthorized' },
|
|
367
|
-
|
|
368
|
-
// ---- settings UI chrome ----
|
|
369
|
-
'setting.hint.navigate': { zh: "↑↓ 移动 · Enter 修改 · Tab 切换分类 · /search · Esc 关闭" },
|
|
370
|
-
'setting.hint.choose': { zh: "← → 选择 · Enter 保存 · Esc 取消" },
|
|
371
|
-
'setting.hint.editor': { zh: "Ctrl+S 保存 · Esc 取消 · Enter 换行 · 方向键移动" },
|
|
372
|
-
'setting.value': { zh: "值" },
|
|
373
|
-
'setting.tab.all': { zh: "全部" },
|
|
374
|
-
'setting.tab.appearance': { zh: "外观" },
|
|
375
|
-
'setting.tab.prompt': { zh: "提示" },
|
|
376
|
-
'setting.tab.model': { zh: "模型" },
|
|
377
|
-
'setting.tab.context': { zh: "上下文" },
|
|
378
|
-
'setting.tab.tools': { zh: "工具" },
|
|
379
|
-
'setting.tab.advanced': { zh: "高级" },
|
|
380
|
-
'setting.group.Display': { zh: "显示" },
|
|
381
|
-
'setting.group.Motion': { zh: "动效" },
|
|
382
|
-
'setting.group.Performance': { zh: "性能" },
|
|
383
|
-
'setting.group.Transcript': { zh: "对话记录" },
|
|
384
|
-
'setting.group.System': { zh: "系统" },
|
|
385
|
-
'setting.group.Modes': { zh: "模式" },
|
|
386
|
-
'setting.group.Provider': { zh: "服务商" },
|
|
387
|
-
'setting.group.Delegation': { zh: "委派" },
|
|
388
|
-
'setting.group.Thinking': { zh: "思考" },
|
|
389
|
-
'setting.group.Compaction': { zh: "压缩" },
|
|
390
|
-
'setting.group.Tool results': { zh: "工具结果" },
|
|
391
|
-
'setting.group.Sampling': { zh: "采样" },
|
|
392
|
-
'setting.group.Updates': { zh: "更新" },
|
|
393
|
-
'setting.group.Plugins': { zh: "插件" },
|
|
394
|
-
'setting.group.Experimental': { zh: "实验" },
|
|
395
|
-
'setting.group.Paths': { zh: "路径" },
|
|
396
|
-
|
|
397
|
-
// ---- settings schema (terminal UI) ----
|
|
398
|
-
"setting.label.theme": { zh: "配色主题" },
|
|
399
|
-
"setting.hint.theme": { zh: "配色方案。`auto` 跟随终端背景" },
|
|
400
|
-
"setting.label.calm_mode": { zh: "简洁模式" },
|
|
401
|
-
"setting.hint.calm_mode": { zh: "少一些装饰效果;保留信息,去掉动画" },
|
|
402
|
-
"setting.label.reduced_motion": { zh: "减弱动效" },
|
|
403
|
-
"setting.hint.reduced_motion": { zh: "不用扫光和脉冲,适合慢速终端连接,或纯粹出于偏好" },
|
|
404
|
-
"setting.label.render_fps": { zh: "渲染帧率" },
|
|
405
|
-
"setting.hint.render_fps": { zh: "屏幕重绘的频率。0 表示 1,终端无法以零帧率渲染。越高越流畅,也越费 CPU" },
|
|
406
|
-
"setting.label.shimmer_edge": { zh: "扫光边缘" },
|
|
407
|
-
"setting.hint.shimmer_edge": { zh: "正在运行的工具名上流动的高亮" },
|
|
408
|
-
"setting.label.show_tool_details": { zh: "工具详情" },
|
|
409
|
-
"setting.hint.show_tool_details": { zh: "在工具行上显示参数和输出预览" },
|
|
410
|
-
"setting.label.save_history": { zh: "保存显示记录" },
|
|
411
|
-
"setting.hint.save_history": { zh: "把提示、警告、计划卡片和思考过程存进会话" },
|
|
412
|
-
"setting.label.save_thinking": { zh: "保存思考" },
|
|
413
|
-
"setting.hint.save_thinking": { zh: "持久化思考块,而不只是可见的回答" },
|
|
414
|
-
"setting.label.title_display": { zh: "标题显示" },
|
|
415
|
-
"setting.hint.title_display": { zh: "在屏幕顶部显示会话标题栏" },
|
|
416
|
-
"setting.label.auto_title": { zh: "自动标题" },
|
|
417
|
-
"setting.hint.auto_title": { zh: "让模型根据第一条消息给会话起名" },
|
|
418
|
-
"setting.label.cost_currency": { zh: "成本货币" },
|
|
419
|
-
"setting.hint.cost_currency": { zh: "/cost 用哪种货币报告" },
|
|
420
|
-
"setting.label.cny_per_usd": { zh: "美元兑人民币" },
|
|
421
|
-
"setting.hint.cny_per_usd": { zh: "用人民币报告成本时的汇率;0 表示自动获取" },
|
|
422
|
-
"setting.label.system_prompt": { zh: "系统提示" },
|
|
423
|
-
"setting.hint.system_prompt": { zh: "设置后完全替换内置提示" },
|
|
424
|
-
"setting.label.append_system_prompt": { zh: "追加到系统提示" },
|
|
425
|
-
"setting.hint.append_system_prompt": { zh: "接在内置提示之后,是两者里更安全的做法" },
|
|
426
|
-
"setting.label.plan_instructions": { zh: "计划模式提示" },
|
|
427
|
-
"setting.hint.plan_instructions": { zh: "计划模式开启时的额外指引" },
|
|
428
|
-
"setting.label.focus_instructions": { zh: "专注模式提示" },
|
|
429
|
-
"setting.hint.focus_instructions": { zh: "专注模式开启时的额外指引" },
|
|
430
|
-
"setting.label.swarm_instructions": { zh: "群组模式提示" },
|
|
431
|
-
"setting.hint.swarm_instructions": { zh: "群组模式开启时的额外指引" },
|
|
432
|
-
"setting.label.provider": { zh: "服务商" },
|
|
433
|
-
"setting.hint.provider": { zh: "由哪个服务商处理请求" },
|
|
434
|
-
"setting.label.model": { zh: "模型" },
|
|
435
|
-
"setting.hint.model": { zh: "provider/model,按 config.toml 里的写法" },
|
|
436
|
-
"setting.label.default_model": { zh: "默认模型" },
|
|
437
|
-
"setting.hint.default_model": { zh: "会话没有指定模型时使用" },
|
|
438
|
-
"setting.label.secondary_model": { zh: "副模型" },
|
|
439
|
-
"setting.hint.secondary_model": { zh: "用于旁支任务:标题、压缩摘要" },
|
|
440
|
-
"setting.label.subagent_model": { zh: "子 agent 模型" },
|
|
441
|
-
"setting.hint.subagent_model": { zh: "Agent 工具使用的模型;为空表示用主模型" },
|
|
442
|
-
"setting.label.effort": { zh: "思考等级" },
|
|
443
|
-
"setting.hint.effort": { zh: "只提供当前模型声明的等级" },
|
|
444
|
-
"setting.label.max_context_tokens": { zh: "上下文窗口" },
|
|
445
|
-
"setting.hint.max_context_tokens": { zh: "目录数据不对时覆盖模型的窗口;0 表示使用它提供的值" },
|
|
446
|
-
"setting.label.prompt_cache": { zh: "提示缓存" },
|
|
447
|
-
"setting.hint.prompt_cache": { zh: "让服务商缓存请求前缀" },
|
|
448
|
-
"setting.label.auto_compact": { zh: "自动压缩" },
|
|
449
|
-
"setting.hint.auto_compact": { zh: "窗口变满时总结较旧的历史" },
|
|
450
|
-
"setting.label.compact_threshold": { zh: "压缩阈值" },
|
|
451
|
-
"setting.hint.compact_threshold": { zh: "触发压缩的窗口占比" },
|
|
452
|
-
"setting.label.compact_keep_ratio": { zh: "保留比例" },
|
|
453
|
-
"setting.hint.compact_keep_ratio": { zh: "压缩后保留当前用量的比例" },
|
|
454
|
-
"setting.label.auto_trim": { zh: "自动裁剪" },
|
|
455
|
-
"setting.hint.auto_trim": { zh: "从请求里省略旧的工具输出" },
|
|
456
|
-
"setting.label.trim_threshold": { zh: "裁剪阈值" },
|
|
457
|
-
"setting.hint.trim_threshold": { zh: "触发裁剪的窗口占比" },
|
|
458
|
-
"setting.label.trim_keep_ratio": { zh: "保留比例" },
|
|
459
|
-
"setting.hint.trim_keep_ratio": { zh: "裁剪后保留工具结果文本的比例,和触发阈值的刻度不同" },
|
|
460
|
-
"setting.label.tool_result_max_bytes": { zh: "结果最大字节" },
|
|
461
|
-
"setting.hint.tool_result_max_bytes": { zh: "更大的输出写入磁盘,并用指针替代" },
|
|
462
|
-
"setting.label.tool_result_preview_bytes": { zh: "预览字节" },
|
|
463
|
-
"setting.hint.tool_result_preview_bytes": { zh: "溢出的结果里保留多少内容在行内" },
|
|
464
|
-
"setting.label.tool_allow_external_paths": { zh: "允许外部路径" },
|
|
465
|
-
"setting.hint.tool_allow_external_paths": { zh: "让文件工具读写工作区之外的路径" },
|
|
466
|
-
"setting.label.swarm_mode": { zh: "群组模式" },
|
|
467
|
-
"setting.hint.swarm_mode": { zh: "开放 AgentSwarm,用于把工作分给多个子 agent" },
|
|
468
|
-
"setting.label.output_style": { zh: "输出风格" },
|
|
469
|
-
"setting.hint.output_style": { zh: "覆盖回答写法的命名风格" },
|
|
470
|
-
"setting.label.web_search_api_key": { zh: "WebSearch API key" },
|
|
471
|
-
"setting.hint.web_search_api_key": { zh: "一行一个 key,按顺序尝试;第一个额度用完就用第二个。可在 https://app.tavily.com 免费获取(登录后从面板复制)。留空则使用无 key 模式,按 IP 限流" },
|
|
472
|
-
"setting.label.auto_update": { zh: "自动更新" },
|
|
473
|
-
"setting.hint.auto_update": { zh: "启动时和每 30 分钟检查一次 npm" },
|
|
474
|
-
"setting.label.experiments": { zh: "实验功能" },
|
|
475
|
-
"setting.hint.experiments": { zh: "要启用的功能开关,用逗号分隔" },
|
|
476
|
-
"setting.label.telemetry": { zh: "遥测" },
|
|
477
|
-
"setting.hint.telemetry": { zh: "发送匿名用量统计" },
|
|
478
|
-
"setting.label.vim_mode": { zh: "Vim 模式" },
|
|
479
|
-
"setting.hint.vim_mode": { zh: "输入框里的模态按键" },
|
|
480
|
-
"setting.label.shell": { zh: "Shell" },
|
|
481
|
-
"setting.hint.shell": { zh: "Bash 工具使用的程序;为空表示自动检测" },
|
|
482
|
-
"setting.label.mcp_config_path": { zh: "MCP 配置路径" },
|
|
483
|
-
"setting.hint.mcp_config_path": { zh: "默认是 ~/.hncode/mcp.json" },
|
|
484
|
-
"setting.label.checkpoints_max": { zh: "最大检查点数" },
|
|
485
|
-
"setting.hint.checkpoints_max": { zh: "每个会话的文件历史条目上限" },
|
|
486
|
-
"setting.label.log_level": { zh: "日志级别" },
|
|
487
|
-
"setting.hint.log_level": { zh: "有多少内容写入 session-errors.log" },
|
|
488
|
-
"setting.label.probe_timeout_ms": { zh: "探测超时(毫秒)" },
|
|
489
|
-
"setting.hint.probe_timeout_ms": { zh: "/doctor --probe 等待回复的时间" },
|
|
490
|
-
"setting.label.base_url": { zh: "Base URL" },
|
|
491
|
-
"setting.hint.base_url": { zh: "服务商没有指定地址时使用的端点" },
|
|
492
|
-
"setting.label.protocol": { zh: "协议" },
|
|
493
|
-
"setting.hint.protocol": { zh: "线上的格式;为空时根据服务商推断" },
|
|
494
|
-
"setting.label.max_context_size": { zh: "最大上下文大小" },
|
|
495
|
-
"setting.hint.max_context_size": { zh: "目录没有窗口数据时的启动默认值;0 表示再次回退" },
|
|
496
|
-
"setting.label.max_output_size": { zh: "最大输出大小" },
|
|
497
|
-
"setting.hint.max_output_size": { zh: "回答长度的启动默认值;0 表示回退" },
|
|
498
|
-
"setting.label.reasoning": { zh: "默认开启思考" },
|
|
499
|
-
"setting.hint.reasoning": { zh: "新会话是否默认开启思考" },
|
|
500
|
-
"setting.label.plugins_dir": { zh: "插件目录" },
|
|
501
|
-
"setting.hint.plugins_dir": { zh: "插件从哪里加载;默认是 ~/.hncode/plugins" },
|
|
502
|
-
"setting.label.web_host": { zh: "Web 主机" },
|
|
503
|
-
"setting.hint.web_host": { zh: "/web 守护进程绑定的地址" },
|
|
504
|
-
"setting.label.web_port": { zh: "Web 端口" },
|
|
505
|
-
"setting.hint.web_port": { zh: "全局唯一守护进程的固定端口" },
|
|
506
|
-
|
|
507
|
-
// ---- terminal UI ---------------------------------------------------------
|
|
508
|
-
//
|
|
509
|
-
// The TUI used to be English by construction, and that is wrong: the person reading
|
|
510
|
-
// the screen is not always the person who wrote the code. Only what the USER reads is
|
|
511
|
-
// here — command descriptions, the help panel, menu hints. The system prompt and
|
|
512
|
-
// anything the model reads stay English, because they are instructions to the model,
|
|
513
|
-
// not text for a reader.
|
|
514
|
-
//
|
|
515
|
-
// Command names, tool names, `token`, `MCP`, `git` and friends are left untranslated:
|
|
516
|
-
// they are the words the user types, so translating them would make the help wrong.
|
|
517
|
-
'tui.help.commands': { zh: 'hncode — 命令', en: 'hncode — commands' },
|
|
518
|
-
'tui.help.matching': { zh: 'hncode — 匹配 “{filter}” 的命令', en: 'hncode — commands matching "{filter}"' },
|
|
519
|
-
'tui.help.noMatch': { zh: '没有匹配 “{filter}” 的命令。', en: 'No command matches "{filter}".' },
|
|
520
|
-
'tui.help.other': { zh: '其他', en: 'Other' },
|
|
521
|
-
'tui.help.skillRun': { zh: '运行已安装的技能(Tab 补全名字)', en: 'run an installed skill (Tab completes the name)' },
|
|
522
|
-
'tui.help.skillImport': { zh: '从文件添加技能,或安装一个仓库里的全部技能', en: 'add a skill from a file, or install a repository of them' },
|
|
523
|
-
'tui.help.skillOpen': { zh: '打开技能管理器(Tab 切换页签)', en: 'open the skill manager (Tab switches tabs)' },
|
|
524
|
-
'tui.help.skillInstall': { zh: '从仓库下载一个技能,不经过面板', en: 'download one from the repo, without the panel' },
|
|
525
|
-
'tui.help.skillRemove': { zh: '删除本地副本', en: 'delete the local copy' },
|
|
526
|
-
'tui.help.pluginOpen': { zh: '打开插件管理器', en: 'open the plugin manager' },
|
|
527
|
-
'tui.help.pluginInstall': { zh: '从仓库下载一个插件', en: 'download one from the repo' },
|
|
528
|
-
'tui.help.groupEveryday': { zh: '常用', en: 'Everyday' },
|
|
529
|
-
'tui.help.groupSession': { zh: '会话', en: 'Session' },
|
|
530
|
-
'tui.help.groupContext': { zh: '上下文', en: 'Context' },
|
|
531
|
-
'tui.help.groupWork': { zh: '工作方式', en: 'Work' },
|
|
532
|
-
'tui.help.groupExtend': { zh: '扩展', en: 'Extend' },
|
|
533
|
-
'tui.help.groupDiagnostics': { zh: '诊断', en: 'Diagnostics' },
|
|
534
|
-
|
|
535
|
-
// The shortcut column. The KEY stays as it is printed on the keyboard; only the
|
|
536
|
-
// sentence beside it is translated.
|
|
537
|
-
'tui.key.send': { zh: '发送消息', en: 'send the message' },
|
|
538
|
-
'tui.key.newline': { zh: '插入换行', en: 'insert a newline' },
|
|
539
|
-
'tui.key.copy': { zh: '复制选中内容(或最后一条回答)', en: 'copy the selection (or the last answer)' },
|
|
540
|
-
'tui.key.paste': { zh: '粘贴剪贴板(多行粘贴会折叠)', en: 'paste the clipboard (multi-line pastes collapse)' },
|
|
541
|
-
'tui.key.history': { zh: '输入历史(输入框为空时)· 滚动对话', en: 'input history (empty composer) · scroll the chat' },
|
|
542
|
-
'tui.key.commands': { zh: '打开命令菜单 · Tab 补全', en: 'open the command menu · Tab completes' },
|
|
543
|
-
'tui.key.shell': { zh: '输入框为空时:切到 shell 模式(Esc/Backspace 退出)', en: 'on an empty prompt: switch to shell mode (Esc/Backspace to leave)' },
|
|
544
|
-
'tui.key.esc': { zh: '关闭菜单/对话框 · 中断当前回合', en: 'cancel the menu / dialog · interrupt the turn' },
|
|
545
|
-
'tui.key.viewOutput': { zh: '在新面板里查看完整的工具输出或回复', en: 'open the full tool output or reply in a viewer' },
|
|
546
|
-
'tui.key.background': { zh: '把运行中的 Bash 命令转到后台', en: 'move a running Bash command to the background' },
|
|
547
|
-
'tui.key.steer': { zh: '把排队的内容注入当前回合', en: 'steer queued input into the running turn' },
|
|
548
|
-
'tui.key.recall': { zh: '取回最后一条排队消息来编辑', en: 'recall the last queued message for editing' },
|
|
549
|
-
'tui.key.expand': { zh: '展开/收起工具输出和思考', en: 'expand/collapse tool output and thinking' },
|
|
550
|
-
'tui.key.todo': { zh: '展开/收起待办面板', en: 'expand/collapse the todo panel' },
|
|
551
|
-
'tui.key.quit': { zh: '退出 hncode', en: 'exit hncode' },
|
|
552
|
-
'tui.key.tab': { zh: '补全 · 在面板和选项之间切换', en: 'complete · switch between panels and options' },
|
|
553
|
-
|
|
554
|
-
// Menu and prompt hints.
|
|
555
|
-
'tui.hint.insertDismiss': { zh: 'Enter 或 Tab 插入 · Esc 关闭', en: 'Enter or Tab to insert · Esc to dismiss' },
|
|
556
|
-
'tui.hint.escClose': { zh: 'Esc 关闭', en: 'esc to close' },
|
|
557
|
-
'tui.hint.typeToSearch': { zh: '输入以搜索', en: 'type to search' },
|
|
558
|
-
'tui.hint.navSelect': { zh: '↑↓ 移动 · Enter 选择 · Esc 取消', en: '↑↓ navigate · Enter select · Esc cancel' },
|
|
559
|
-
'tui.title.addModelTo': { zh: '向 {name} 添加模型' },
|
|
560
|
-
|
|
561
|
-
// States the user watches for, rather than descriptions of a feature.
|
|
562
|
-
'tui.state.thinking': { zh: '思考中', en: 'thinking' },
|
|
563
|
-
'tui.state.working': { zh: '处理中', en: 'working' },
|
|
564
|
-
'tui.state.
|
|
565
|
-
'tui.state.
|
|
566
|
-
'tui.state.
|
|
567
|
-
'tui.state.
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
//
|
|
571
|
-
//
|
|
572
|
-
//
|
|
573
|
-
//
|
|
574
|
-
//
|
|
575
|
-
//
|
|
576
|
-
//
|
|
577
|
-
//
|
|
578
|
-
|
|
579
|
-
'cmd.
|
|
580
|
-
'cmd.
|
|
581
|
-
'cmd.
|
|
582
|
-
'cmd.
|
|
583
|
-
'cmd.
|
|
584
|
-
'cmd.
|
|
585
|
-
'cmd.
|
|
586
|
-
'cmd.
|
|
587
|
-
'cmd.
|
|
588
|
-
'cmd.
|
|
589
|
-
'cmd.
|
|
590
|
-
'cmd.
|
|
591
|
-
'cmd.
|
|
592
|
-
'cmd.
|
|
593
|
-
'cmd.
|
|
594
|
-
'cmd.
|
|
595
|
-
'cmd.
|
|
596
|
-
'cmd.
|
|
597
|
-
'cmd.
|
|
598
|
-
'cmd.
|
|
599
|
-
'cmd.
|
|
600
|
-
'cmd.
|
|
601
|
-
'cmd.
|
|
602
|
-
'cmd.
|
|
603
|
-
'cmd.
|
|
604
|
-
'cmd.
|
|
605
|
-
'cmd.
|
|
606
|
-
'cmd.
|
|
607
|
-
'cmd.
|
|
608
|
-
'cmd.
|
|
609
|
-
'cmd.
|
|
610
|
-
'cmd.
|
|
611
|
-
'cmd.
|
|
612
|
-
'cmd.
|
|
613
|
-
'cmd.
|
|
614
|
-
'cmd.
|
|
615
|
-
'cmd.
|
|
616
|
-
'cmd.
|
|
617
|
-
'cmd.
|
|
618
|
-
'cmd.
|
|
619
|
-
'cmd.
|
|
620
|
-
'cmd.
|
|
621
|
-
'cmd.
|
|
622
|
-
'cmd.
|
|
623
|
-
'cmd.
|
|
624
|
-
'cmd.
|
|
625
|
-
'cmd.
|
|
626
|
-
'cmd.
|
|
627
|
-
'cmd.
|
|
628
|
-
'cmd.mcp
|
|
629
|
-
'cmd.
|
|
630
|
-
'cmd.
|
|
631
|
-
'cmd.
|
|
632
|
-
'cmd.
|
|
633
|
-
'cmd.
|
|
634
|
-
'cmd.
|
|
635
|
-
'cmd.
|
|
636
|
-
'cmd.
|
|
637
|
-
'cmd.
|
|
638
|
-
'cmd.
|
|
639
|
-
'cmd.
|
|
640
|
-
'cmd.
|
|
641
|
-
'cmd.
|
|
642
|
-
'cmd.
|
|
643
|
-
'cmd.
|
|
644
|
-
'cmd.
|
|
645
|
-
'cmd.
|
|
646
|
-
'cmd.
|
|
647
|
-
'cmd.
|
|
648
|
-
'cmd.
|
|
649
|
-
'cmd.
|
|
650
|
-
'cmd.reload
|
|
651
|
-
'cmd.
|
|
652
|
-
'cmd.
|
|
653
|
-
'cmd.
|
|
654
|
-
'cmd.
|
|
655
|
-
'cmd.
|
|
656
|
-
'cmd.
|
|
657
|
-
'cmd.
|
|
658
|
-
'cmd.
|
|
659
|
-
'cmd.
|
|
660
|
-
'cmd.
|
|
661
|
-
'cmd.
|
|
662
|
-
'cmd.
|
|
663
|
-
'cmd.
|
|
664
|
-
'cmd.
|
|
665
|
-
'cmd.
|
|
666
|
-
'cmd.
|
|
667
|
-
'cmd.
|
|
668
|
-
'cmd.
|
|
669
|
-
'cmd.
|
|
670
|
-
'cmd.
|
|
671
|
-
'cmd.
|
|
672
|
-
'cmd.auto-
|
|
673
|
-
'cmd.
|
|
674
|
-
'cmd.
|
|
675
|
-
'cmd.
|
|
676
|
-
|
|
677
|
-
"…
|
|
678
|
-
"… {n} more
|
|
679
|
-
"… {n} more
|
|
680
|
-
"…
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
*
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
//
|
|
728
|
-
//
|
|
729
|
-
//
|
|
730
|
-
//
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
'
|
|
742
|
-
'
|
|
743
|
-
'
|
|
744
|
-
'
|
|
745
|
-
'
|
|
746
|
-
'
|
|
747
|
-
'
|
|
748
|
-
'
|
|
749
|
-
'
|
|
750
|
-
'
|
|
751
|
-
'
|
|
752
|
-
'
|
|
753
|
-
'
|
|
754
|
-
'
|
|
755
|
-
'
|
|
756
|
-
'
|
|
757
|
-
'
|
|
758
|
-
'Nothing
|
|
759
|
-
'
|
|
760
|
-
'
|
|
761
|
-
'
|
|
762
|
-
'
|
|
763
|
-
'
|
|
764
|
-
'
|
|
765
|
-
'
|
|
766
|
-
'
|
|
767
|
-
'
|
|
768
|
-
'
|
|
769
|
-
'
|
|
770
|
-
'
|
|
771
|
-
'Nothing to
|
|
772
|
-
'
|
|
773
|
-
'
|
|
774
|
-
'
|
|
775
|
-
'
|
|
776
|
-
'
|
|
777
|
-
'
|
|
778
|
-
'
|
|
779
|
-
'
|
|
780
|
-
'
|
|
781
|
-
'
|
|
782
|
-
'
|
|
783
|
-
'
|
|
784
|
-
'
|
|
785
|
-
'
|
|
786
|
-
'
|
|
787
|
-
'
|
|
788
|
-
'
|
|
789
|
-
'
|
|
790
|
-
'
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
"
|
|
801
|
-
"
|
|
802
|
-
"
|
|
803
|
-
"
|
|
804
|
-
"
|
|
805
|
-
"
|
|
806
|
-
"
|
|
807
|
-
"
|
|
808
|
-
"
|
|
809
|
-
"
|
|
810
|
-
"
|
|
811
|
-
"
|
|
812
|
-
"Usage: /
|
|
813
|
-
"
|
|
814
|
-
"
|
|
815
|
-
"
|
|
816
|
-
"
|
|
817
|
-
"
|
|
818
|
-
"Usage: /
|
|
819
|
-
"
|
|
820
|
-
"
|
|
821
|
-
"
|
|
822
|
-
"
|
|
823
|
-
"
|
|
824
|
-
"No
|
|
825
|
-
"
|
|
826
|
-
"
|
|
827
|
-
"
|
|
828
|
-
"
|
|
829
|
-
"Usage: /
|
|
830
|
-
"
|
|
831
|
-
"Usage: /
|
|
832
|
-
"
|
|
833
|
-
"
|
|
834
|
-
"
|
|
835
|
-
"
|
|
836
|
-
"
|
|
837
|
-
"
|
|
838
|
-
"Usage: /
|
|
839
|
-
"
|
|
840
|
-
"Usage: /
|
|
841
|
-
"
|
|
842
|
-
"
|
|
843
|
-
"
|
|
844
|
-
"Usage: /
|
|
845
|
-
"Usage: /
|
|
846
|
-
"Usage: /
|
|
847
|
-
"Usage: /
|
|
848
|
-
"
|
|
849
|
-
"
|
|
850
|
-
"
|
|
851
|
-
"
|
|
852
|
-
"
|
|
853
|
-
"
|
|
854
|
-
"Usage: /
|
|
855
|
-
"
|
|
856
|
-
"
|
|
857
|
-
"
|
|
858
|
-
"
|
|
859
|
-
"
|
|
860
|
-
"
|
|
861
|
-
"
|
|
862
|
-
"
|
|
863
|
-
"
|
|
864
|
-
"
|
|
865
|
-
"
|
|
866
|
-
"
|
|
867
|
-
"
|
|
868
|
-
"
|
|
869
|
-
"Usage: /
|
|
870
|
-
"
|
|
871
|
-
"
|
|
872
|
-
"
|
|
873
|
-
"
|
|
874
|
-
"Usage: /
|
|
875
|
-
"
|
|
876
|
-
"
|
|
877
|
-
"
|
|
878
|
-
"Usage: /
|
|
879
|
-
"Usage: /
|
|
880
|
-
"
|
|
881
|
-
"
|
|
882
|
-
"Nothing to
|
|
883
|
-
"Usage: /
|
|
884
|
-
"
|
|
885
|
-
"
|
|
886
|
-
"
|
|
887
|
-
"
|
|
888
|
-
"
|
|
889
|
-
"
|
|
890
|
-
"
|
|
891
|
-
"Nothing to
|
|
892
|
-
"
|
|
893
|
-
"
|
|
894
|
-
"
|
|
895
|
-
"
|
|
896
|
-
"
|
|
897
|
-
"
|
|
898
|
-
"
|
|
899
|
-
"
|
|
900
|
-
"
|
|
901
|
-
"
|
|
902
|
-
"
|
|
903
|
-
"
|
|
904
|
-
"
|
|
905
|
-
"
|
|
906
|
-
"
|
|
907
|
-
"
|
|
908
|
-
"
|
|
909
|
-
"
|
|
910
|
-
"
|
|
911
|
-
"
|
|
912
|
-
"
|
|
913
|
-
"
|
|
914
|
-
"
|
|
915
|
-
"
|
|
916
|
-
"
|
|
917
|
-
"
|
|
918
|
-
"
|
|
919
|
-
"
|
|
920
|
-
"
|
|
921
|
-
"
|
|
922
|
-
"
|
|
923
|
-
"
|
|
924
|
-
"
|
|
925
|
-
"
|
|
926
|
-
"
|
|
927
|
-
"
|
|
928
|
-
"
|
|
929
|
-
"
|
|
930
|
-
"
|
|
931
|
-
"
|
|
932
|
-
"
|
|
933
|
-
"
|
|
934
|
-
"
|
|
935
|
-
"
|
|
936
|
-
"
|
|
937
|
-
"
|
|
938
|
-
"
|
|
939
|
-
"
|
|
940
|
-
"
|
|
941
|
-
"
|
|
942
|
-
"
|
|
943
|
-
"
|
|
944
|
-
"
|
|
945
|
-
"
|
|
946
|
-
"
|
|
947
|
-
"
|
|
948
|
-
"
|
|
949
|
-
"
|
|
950
|
-
"
|
|
951
|
-
"↑↓ navigate ·
|
|
952
|
-
"↑↓ navigate · Enter
|
|
953
|
-
"↑↓ navigate · Enter
|
|
954
|
-
"↑↓ navigate · Enter
|
|
955
|
-
"↑↓ navigate · type to
|
|
956
|
-
"
|
|
957
|
-
"
|
|
958
|
-
"
|
|
959
|
-
"
|
|
960
|
-
"
|
|
961
|
-
"
|
|
962
|
-
"↑↓
|
|
963
|
-
"
|
|
964
|
-
"
|
|
965
|
-
"
|
|
966
|
-
"
|
|
967
|
-
"
|
|
968
|
-
"
|
|
969
|
-
"
|
|
970
|
-
"
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
"
|
|
974
|
-
"
|
|
975
|
-
"
|
|
976
|
-
"
|
|
977
|
-
"
|
|
978
|
-
"
|
|
979
|
-
"
|
|
980
|
-
"/
|
|
981
|
-
"
|
|
982
|
-
"
|
|
983
|
-
"
|
|
984
|
-
"
|
|
985
|
-
"
|
|
986
|
-
"
|
|
987
|
-
"
|
|
988
|
-
"
|
|
989
|
-
"
|
|
990
|
-
"
|
|
991
|
-
"/
|
|
992
|
-
"
|
|
993
|
-
"/
|
|
994
|
-
"
|
|
995
|
-
"
|
|
996
|
-
"/
|
|
997
|
-
"
|
|
998
|
-
"
|
|
999
|
-
"/
|
|
1000
|
-
"/
|
|
1001
|
-
"/
|
|
1002
|
-
"/
|
|
1003
|
-
"/
|
|
1004
|
-
"/
|
|
1005
|
-
"/
|
|
1006
|
-
"/
|
|
1007
|
-
"/
|
|
1008
|
-
"/
|
|
1009
|
-
"/
|
|
1010
|
-
"/
|
|
1011
|
-
"/
|
|
1012
|
-
"/
|
|
1013
|
-
"/
|
|
1014
|
-
"/
|
|
1015
|
-
"/
|
|
1016
|
-
"/
|
|
1017
|
-
"/
|
|
1018
|
-
"/
|
|
1019
|
-
"/
|
|
1020
|
-
"/
|
|
1021
|
-
"/
|
|
1022
|
-
"/
|
|
1023
|
-
"/
|
|
1024
|
-
"/
|
|
1025
|
-
"
|
|
1026
|
-
"
|
|
1027
|
-
"
|
|
1028
|
-
"
|
|
1029
|
-
"
|
|
1030
|
-
"
|
|
1031
|
-
"
|
|
1032
|
-
"
|
|
1033
|
-
"
|
|
1034
|
-
"
|
|
1035
|
-
"
|
|
1036
|
-
"
|
|
1037
|
-
"
|
|
1038
|
-
"
|
|
1039
|
-
"
|
|
1040
|
-
"
|
|
1041
|
-
"
|
|
1042
|
-
"
|
|
1043
|
-
"
|
|
1044
|
-
"
|
|
1045
|
-
"
|
|
1046
|
-
"
|
|
1047
|
-
"
|
|
1048
|
-
"
|
|
1049
|
-
"
|
|
1050
|
-
"
|
|
1051
|
-
"
|
|
1052
|
-
"
|
|
1053
|
-
"
|
|
1054
|
-
"
|
|
1055
|
-
"
|
|
1056
|
-
"
|
|
1057
|
-
"
|
|
1058
|
-
"
|
|
1059
|
-
"
|
|
1060
|
-
"
|
|
1061
|
-
"
|
|
1062
|
-
"
|
|
1063
|
-
"
|
|
1064
|
-
"
|
|
1065
|
-
"
|
|
1066
|
-
"
|
|
1067
|
-
"
|
|
1068
|
-
"
|
|
1069
|
-
"
|
|
1070
|
-
"
|
|
1071
|
-
"…
|
|
1072
|
-
"…
|
|
1073
|
-
"
|
|
1074
|
-
"
|
|
1075
|
-
"
|
|
1076
|
-
"
|
|
1077
|
-
"
|
|
1078
|
-
"
|
|
1079
|
-
"
|
|
1080
|
-
"… +{n} more": "… 还有 {n} 条",
|
|
1081
|
-
"drag top rule to resize": "拖动顶部横线调整大小",
|
|
1082
|
-
"
|
|
1083
|
-
"
|
|
1084
|
-
"… {n} more
|
|
1085
|
-
"…
|
|
1086
|
-
"…
|
|
1087
|
-
"… {n} more
|
|
1088
|
-
"
|
|
1089
|
-
"
|
|
1090
|
-
"
|
|
1091
|
-
"
|
|
1092
|
-
"
|
|
1093
|
-
"
|
|
1094
|
-
"
|
|
1095
|
-
"
|
|
1096
|
-
"
|
|
1097
|
-
"
|
|
1098
|
-
"
|
|
1099
|
-
"
|
|
1100
|
-
"
|
|
1101
|
-
"
|
|
1102
|
-
"
|
|
1103
|
-
"
|
|
1104
|
-
"
|
|
1105
|
-
"
|
|
1106
|
-
"
|
|
1107
|
-
"
|
|
1108
|
-
"
|
|
1109
|
-
"
|
|
1110
|
-
"
|
|
1111
|
-
"
|
|
1112
|
-
"
|
|
1113
|
-
"
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1116
|
-
"
|
|
1117
|
-
"
|
|
1118
|
-
"
|
|
1119
|
-
"
|
|
1120
|
-
"
|
|
1121
|
-
"
|
|
1122
|
-
"
|
|
1123
|
-
"
|
|
1124
|
-
"
|
|
1125
|
-
"
|
|
1126
|
-
"
|
|
1127
|
-
"
|
|
1128
|
-
"
|
|
1129
|
-
"
|
|
1130
|
-
"
|
|
1131
|
-
"
|
|
1132
|
-
"
|
|
1133
|
-
"
|
|
1134
|
-
"
|
|
1135
|
-
"
|
|
1136
|
-
"
|
|
1137
|
-
"
|
|
1138
|
-
"
|
|
1139
|
-
"
|
|
1140
|
-
"
|
|
1141
|
-
"
|
|
1142
|
-
"
|
|
1143
|
-
"
|
|
1144
|
-
"
|
|
1145
|
-
"
|
|
1146
|
-
"
|
|
1147
|
-
"
|
|
1148
|
-
"
|
|
1149
|
-
"
|
|
1150
|
-
"
|
|
1151
|
-
"
|
|
1152
|
-
"
|
|
1153
|
-
"
|
|
1154
|
-
"
|
|
1155
|
-
"
|
|
1156
|
-
"
|
|
1157
|
-
"
|
|
1158
|
-
"
|
|
1159
|
-
"
|
|
1160
|
-
"
|
|
1161
|
-
"
|
|
1162
|
-
"
|
|
1163
|
-
"
|
|
1164
|
-
"
|
|
1165
|
-
"
|
|
1166
|
-
"
|
|
1167
|
-
"
|
|
1168
|
-
"
|
|
1169
|
-
"
|
|
1170
|
-
"
|
|
1171
|
-
"
|
|
1172
|
-
"
|
|
1173
|
-
"
|
|
1174
|
-
"
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1
|
+
// UI strings for the web interface — the ONE place they are defined.
|
|
2
|
+
//
|
|
3
|
+
// Both sides read this file: the browser imports it as a plain script (see
|
|
4
|
+
// web-public/i18n.js, which is generated from this module so the two can never
|
|
5
|
+
// drift), and the server uses it for the few strings it returns to the client
|
|
6
|
+
// (error messages, the login page).
|
|
7
|
+
// drift), and the server uses it for the few strings it returns to the client
|
|
8
|
+
// (error messages, the login page).
|
|
9
|
+
//
|
|
10
|
+
// Adding a language: add a key to every entry in `MESSAGES`. A missing key falls
|
|
11
|
+
// back to English at lookup time rather than printing the key, so a partly
|
|
12
|
+
// translated language degrades readably instead of showing `nav.chat`.
|
|
13
|
+
|
|
14
|
+
export const LANGUAGES = [
|
|
15
|
+
{ id: 'zh', label: '中文' },
|
|
16
|
+
{ id: 'en', label: 'English' },
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
// The WEB UI's default. The terminal never reads this file: TUI copy is English
|
|
20
|
+
// by construction. A browser keeps its choice in localStorage (`hncode.lang`), so
|
|
21
|
+
// this only decides the FIRST visit — and English is the safer default there,
|
|
22
|
+
// since a link can be opened by anyone.
|
|
23
|
+
export const DEFAULT_LANG = 'en';
|
|
24
|
+
|
|
25
|
+
export const MESSAGES = {
|
|
26
|
+
// ---- document / login ----------------------------------------------------
|
|
27
|
+
'app.title': { zh: 'hncode', en: 'hncode' },
|
|
28
|
+
'login.heading': { zh: 'hncode', en: 'hncode' },
|
|
29
|
+
'login.lede': {
|
|
30
|
+
zh: '访问令牌保存在 config.toml 里,第一次运行时自动生成,之后一直不变。',
|
|
31
|
+
en: 'The access token lives in config.toml. It is generated once and stays the same.',
|
|
32
|
+
},
|
|
33
|
+
'login.tokenLabel': { zh: '访问令牌', en: 'Access token' },
|
|
34
|
+
'login.submit': { zh: '进入', en: 'Sign in' },
|
|
35
|
+
'login.badToken': { zh: '令牌不对。', en: 'Invalid token.' },
|
|
36
|
+
'login.failed': { zh: '登录失败。', en: 'Sign-in failed.' },
|
|
37
|
+
'login.unreachable': { zh: '连不上服务:', en: 'Cannot reach the server: ' },
|
|
38
|
+
'login.foot': {
|
|
39
|
+
zh: '本地服务,只监听回环地址。在任意一个终端里运行 /web 都能看到这台机器上的所有会话。',
|
|
40
|
+
en: 'Local service, loopback only. Run /web in any terminal to see every session on this machine.',
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
// ---- home (the session directory) ---------------------------------------
|
|
44
|
+
'home.brandSuffix': { zh: '会话', en: 'sessions' },
|
|
45
|
+
'home.lede': {
|
|
46
|
+
zh: '这台机器上的所有会话。运行中的可以继续对话,已退出的只能查看。',
|
|
47
|
+
en: 'Every session on this machine. Running ones accept input; exited ones are read-only.',
|
|
48
|
+
},
|
|
49
|
+
'home.empty': {
|
|
50
|
+
zh: '还没有任何会话。在终端里运行 hncode 开始一个。',
|
|
51
|
+
en: 'No sessions yet. Start one by running hncode in a terminal.',
|
|
52
|
+
},
|
|
53
|
+
'home.live': { zh: '运行中', en: 'Running' },
|
|
54
|
+
'home.saved': { zh: '已退出', en: 'Exited' },
|
|
55
|
+
'home.readonly': { zh: '只读', en: 'Read-only' },
|
|
56
|
+
'home.untitled': { zh: '未命名', en: 'Untitled' },
|
|
57
|
+
'home.noWorkspace': { zh: '未知目录', en: 'Unknown directory' },
|
|
58
|
+
'home.refresh': { zh: '刷新', en: 'Refresh' },
|
|
59
|
+
'home.logout': { zh: '退出登录', en: 'Sign out' },
|
|
60
|
+
'home.colTitle': { zh: '会话', en: 'Session' },
|
|
61
|
+
'home.colUpdated': { zh: '最后活动', en: 'Last active' },
|
|
62
|
+
'home.colRounds': { zh: '回合', en: 'Turns' },
|
|
63
|
+
'home.sessionCount': { zh: '{n} 个会话', en: '{n} session(s)' },
|
|
64
|
+
'home.loadFailed': { zh: '读取会话列表失败:', en: 'Could not load sessions: ' },
|
|
65
|
+
// Relative timestamps. They live in the table rather than as ternaries in the
|
|
66
|
+
// renderer so Chinese and English keep the same shape ("3 分钟前" / "3m ago"),
|
|
67
|
+
// and so both the landing page and the rail say it the same way.
|
|
68
|
+
'home.justNow': { zh: '刚刚', en: 'just now' },
|
|
69
|
+
'home.minutesAgo': { zh: '{n} 分钟前', en: '{n}m ago' },
|
|
70
|
+
'home.hoursAgo': { zh: '{n} 小时前', en: '{n}h ago' },
|
|
71
|
+
'home.daysAgo': { zh: '{n} 天前', en: '{n}d ago' },
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// ---- navigation ----------------------------------------------------------
|
|
75
|
+
'nav.chat': { zh: '对话', en: 'Chat' },
|
|
76
|
+
'nav.readonly': { zh: '只读', en: 'read-only' },
|
|
77
|
+
'nav.ariaLabel': { zh: '视图切换', en: 'views' },
|
|
78
|
+
'rail.ariaLabel': { zh: '会话列表', en: 'sessions' },
|
|
79
|
+
'nav.tasks': { zh: '任务', en: 'Tasks' },
|
|
80
|
+
'nav.files': { zh: '文件', en: 'Files' },
|
|
81
|
+
'nav.logs': { zh: '日志', en: 'Logs' },
|
|
82
|
+
'nav.tools': { zh: '工具', en: 'Tools' },
|
|
83
|
+
'nav.commands': { zh: '命令', en: 'Commands' },
|
|
84
|
+
'nav.connecting': { zh: '连接中', en: 'Connecting' },
|
|
85
|
+
'nav.connected': { zh: '已连接', en: 'Connected' },
|
|
86
|
+
'nav.disconnected': { zh: '断开,重连中', en: 'Disconnected, retrying' },
|
|
87
|
+
'nav.language': { zh: '语言', en: 'Language' },
|
|
88
|
+
|
|
89
|
+
// ---- session rail --------------------------------------------------------
|
|
90
|
+
'rail.heading': { zh: '会话', en: 'Sessions' },
|
|
91
|
+
'rail.empty': { zh: '还没有其它会话', en: 'No other sessions' },
|
|
92
|
+
'rail.noMatch': { zh: '没有匹配的会话', en: 'No session matches' },
|
|
93
|
+
'rail.noWorkspace': { zh: '未知目录', en: 'Unknown directory' },
|
|
94
|
+
'rail.current': { zh: '当前', en: 'Current' },
|
|
95
|
+
'rail.search': { zh: '搜索 id / 标题 / 目录', en: 'search id / title / workspace' },
|
|
96
|
+
'rail.all': { zh: '所有会话', en: 'All sessions' },
|
|
97
|
+
'rail.open': { zh: '会话列表', en: 'Sessions' },
|
|
98
|
+
// ---- chat pane -----------------------------------------------------------
|
|
99
|
+
'chat.untitled': { zh: '会话', en: 'Session' },
|
|
100
|
+
'chat.interrupt': { zh: '中断', en: 'Interrupt' },
|
|
101
|
+
'chat.placeholder': {
|
|
102
|
+
zh: '输入消息,Enter 发送,Shift+Enter 换行',
|
|
103
|
+
en: 'Message the agent. Enter sends, Shift+Enter adds a line',
|
|
104
|
+
},
|
|
105
|
+
'chat.send': { zh: '发送', en: 'Send' },
|
|
106
|
+
'chat.shellHint': { zh: '行首加 ! 直接执行命令', en: 'A leading ! runs the line in the shell' },
|
|
107
|
+
'chat.running': { zh: '运行中', en: 'Running' },
|
|
108
|
+
'chat.idle': { zh: '空闲', en: 'Idle' },
|
|
109
|
+
'chat.toggleHint': { zh: '点击展开原文', en: 'Click to expand' },
|
|
110
|
+
|
|
111
|
+
// ---- roles ---------------------------------------------------------------
|
|
112
|
+
'role.user': { zh: '你', en: 'You' },
|
|
113
|
+
'role.assistant': { zh: 'AI', en: 'AI' },
|
|
114
|
+
'role.tool': { zh: '工具', en: 'Tool' },
|
|
115
|
+
'role.toolResult': { zh: '输出', en: 'Output' },
|
|
116
|
+
'role.system': { zh: '系统', en: 'System' },
|
|
117
|
+
'role.warn': { zh: '警告', en: 'Warn' },
|
|
118
|
+
'role.thinking': { zh: '思考', en: 'Thinking' },
|
|
119
|
+
'role.shell': { zh: 'shell', en: 'shell' },
|
|
120
|
+
'role.plan': { zh: '计划', en: 'Plan' },
|
|
121
|
+
'role.compaction': { zh: '压缩', en: 'Compact' },
|
|
122
|
+
'role.aborted': { zh: '中止', en: 'Aborted' },
|
|
123
|
+
'role.bgTask': { zh: '任务', en: 'Task' },
|
|
124
|
+
'role.error': { zh: '错误', en: 'Error' },
|
|
125
|
+
'role.queued': { zh: '队列', en: 'Queued' },
|
|
126
|
+
'role.steer': { zh: '注入', en: 'Steer' },
|
|
127
|
+
|
|
128
|
+
// ---- tool states ---------------------------------------------------------
|
|
129
|
+
'tool.running': { zh: '运行中', en: 'running' },
|
|
130
|
+
'tool.done': { zh: '完成', en: 'done' },
|
|
131
|
+
'tool.failed': { zh: '失败', en: 'failed' },
|
|
132
|
+
|
|
133
|
+
// ---- compaction ----------------------------------------------------------
|
|
134
|
+
'compact.running': { zh: '正在压缩', en: 'Compacting' },
|
|
135
|
+
'compact.done': { zh: '压缩完成', en: 'Compaction complete' },
|
|
136
|
+
'compact.cancelled': { zh: '压缩取消', en: 'Compaction cancelled' },
|
|
137
|
+
// `before → after`. "tokens" is a noun here, not a bare unit, so it is a word to
|
|
138
|
+
// translate; `tok/s` elsewhere is a symbol and is not.
|
|
139
|
+
'compact.amount': { zh: '{before} → {after} tokens', en: '{before} → {after} tokens' },
|
|
140
|
+
|
|
141
|
+
// ---- tasks pane ----------------------------------------------------------
|
|
142
|
+
'tasks.heading': { zh: '后台任务', en: 'Background tasks' },
|
|
143
|
+
'tasks.refresh': { zh: '刷新', en: 'Refresh' },
|
|
144
|
+
'tasks.empty': { zh: '没有后台任务。', en: 'No background tasks.' },
|
|
145
|
+
'tasks.colId': { zh: 'ID', en: 'ID' },
|
|
146
|
+
'tasks.colKind': { zh: '类型', en: 'Kind' },
|
|
147
|
+
'tasks.colStatus': { zh: '状态', en: 'Status' },
|
|
148
|
+
'tasks.colSummary': { zh: '摘要', en: 'Summary' },
|
|
149
|
+
'tasks.stop': { zh: '停止', en: 'Stop' },
|
|
150
|
+
|
|
151
|
+
// ---- files pane ----------------------------------------------------------
|
|
152
|
+
'files.heading': { zh: '会话改动', en: 'Session changes' },
|
|
153
|
+
'files.sub': { zh: '本轮对话读写过的文件', en: 'Files this conversation read or wrote' },
|
|
154
|
+
'files.empty': { zh: '本会话还没有读写文件。', en: 'No files read or written yet.' },
|
|
155
|
+
'files.colPath': { zh: '路径', en: 'Path' },
|
|
156
|
+
'files.colOps': { zh: '操作', en: 'Ops' },
|
|
157
|
+
'files.colCount': { zh: '次数', en: 'Count' },
|
|
158
|
+
|
|
159
|
+
// ---- logs pane -----------------------------------------------------------
|
|
160
|
+
'logs.heading': { zh: '事件日志', en: 'Event log' },
|
|
161
|
+
'logs.clear': { zh: '清空', en: 'Clear' },
|
|
162
|
+
'logs.sub': { zh: '最近的会话事件,最新的在最下面', en: 'Recent session events, newest last' },
|
|
163
|
+
|
|
164
|
+
// ---- tools / commands panes ----------------------------------------------
|
|
165
|
+
'tools.heading': { zh: '可用工具', en: 'Tools available' },
|
|
166
|
+
'tools.sub': { zh: '由本会话的模型调用', en: 'Callable by the model in this session' },
|
|
167
|
+
'commands.heading': { zh: '斜杠命令', en: 'Slash commands' },
|
|
168
|
+
'commands.sub': { zh: '与终端完全一致', en: 'Identical to the terminal' },
|
|
169
|
+
|
|
170
|
+
// ---- status panel --------------------------------------------------------
|
|
171
|
+
'side.runtime': { zh: '运行', en: 'Runtime' },
|
|
172
|
+
'settings.open': { zh: '设置', en: 'Settings' },
|
|
173
|
+
'settings.title': { zh: '设置', en: 'Settings' },
|
|
174
|
+
'settings.close': { zh: '关闭', en: 'Close' },
|
|
175
|
+
'settings.save': { zh: '保存', en: 'Save' },
|
|
176
|
+
'settings.session': { zh: '会话', en: 'Session' },
|
|
177
|
+
'settings.titleLabel': { zh: '标题', en: 'Title' },
|
|
178
|
+
'settings.titleSaved': { zh: '标题已保存', en: 'Title saved' },
|
|
179
|
+
'settings.providers': { zh: 'Provider', en: 'Providers' },
|
|
180
|
+
'settings.noProviders': { zh: '还没有配置 provider', en: 'No providers configured' },
|
|
181
|
+
'settings.discover': { zh: '拉取模型', en: 'discover' },
|
|
182
|
+
'settings.foundModels': { zh: '找到 {n} 个模型', en: 'Found {n} model(s)' },
|
|
183
|
+
'settings.import': { zh: '导入', en: 'import' },
|
|
184
|
+
'settings.imported': { zh: '已导入 {name},新增 {n} 个模型', en: 'Imported {name}, {n} new model(s)' },
|
|
185
|
+
'settings.importKnown': { zh: '从 models.dev 导入', en: 'Import from models.dev' },
|
|
186
|
+
'settings.keyPrompt': { zh: '请输入 {name} 的 API key:', en: 'API key for {name}:' },
|
|
187
|
+
'settings.addProvider': { zh: '添加', en: 'Add' },
|
|
188
|
+
'settings.added': { zh: '已添加 {name}', en: 'Added {name}' },
|
|
189
|
+
'settings.remove': { zh: '删除', en: 'remove' },
|
|
190
|
+
'settings.removed': { zh: '已删除 {name}', en: 'Removed {name}' },
|
|
191
|
+
'settings.confirmRemove': { zh: '删除 provider {name}?它的模型也会一并移除。', en: 'Delete provider {name}? Its models go too.' },
|
|
192
|
+
'settings.noMatch': { zh: '没有匹配项', en: 'No match' },
|
|
193
|
+
'settings.nameRequired': { zh: '名称不能为空', en: 'Name is required' },
|
|
194
|
+
'settings.failed': { zh: '操作失败:', en: 'Failed: ' },
|
|
195
|
+
'settings.prefs': { zh: '偏好', en: 'Preferences' },
|
|
196
|
+
'settings.info': { zh: '当前生效', en: 'In force' },
|
|
197
|
+
'settings.model': { zh: '模型', en: 'Model' },
|
|
198
|
+
'settings.provider': { zh: 'Provider', en: 'Provider' },
|
|
199
|
+
'settings.protocol': { zh: '协议', en: 'Protocol' },
|
|
200
|
+
'settings.endpoint': { zh: '端点', en: 'Endpoint' },
|
|
201
|
+
'settings.key': { zh: '密钥', en: 'API key' },
|
|
202
|
+
'settings.workspace': { zh: '目录', en: 'Workspace' },
|
|
203
|
+
'settings.ctx': { zh: '上下文窗口', en: 'Context window' },
|
|
204
|
+
// Placeholders for the "add provider" row and the models.dev filter.
|
|
205
|
+
'settings.phName': { zh: '名称', en: 'name' },
|
|
206
|
+
'settings.phUrl': { zh: '接口地址', en: 'base URL' },
|
|
207
|
+
'settings.phKey': { zh: 'API key', en: 'API key' },
|
|
208
|
+
'settings.phFilter': { zh: '筛选', en: 'filter' },
|
|
209
|
+
// Provider row tags / sub-line fragments.
|
|
210
|
+
'settings.tagKey': { zh: '已设密钥', en: 'key' },
|
|
211
|
+
'settings.tagNoKey': { zh: '无密钥', en: 'no key' },
|
|
212
|
+
'settings.noUrl': { zh: '未设置地址', en: '(no url)' },
|
|
213
|
+
'settings.modelCount': { zh: '{n} 个模型', en: '{n} model(s)' },
|
|
214
|
+
'settings.valSet': { zh: '已设置', en: 'set' },
|
|
215
|
+
'settings.valNotSet': { zh: '未设置', en: 'not set' },
|
|
216
|
+
'pref.calm': { zh: '简洁模式', en: 'Calm mode' },
|
|
217
|
+
'pref.autoCompact': { zh: '自动压缩', en: 'Auto compact' },
|
|
218
|
+
'pref.autoUpdate': { zh: '自动更新', en: 'Auto update' },
|
|
219
|
+
'pref.promptCache': { zh: '提示缓存', en: 'Prompt cache' },
|
|
220
|
+
'pref.external': { zh: '允许工作区外路径', en: 'Allow external paths' },
|
|
221
|
+
|
|
222
|
+
'side.model': { zh: '模型', en: 'Model' },
|
|
223
|
+
'side.provider': { zh: 'Provider', en: 'Provider' },
|
|
224
|
+
'side.mode': { zh: '权限', en: 'Permission' },
|
|
225
|
+
'side.cwd': { zh: '目录', en: 'Directory' },
|
|
226
|
+
'side.plan': { zh: '计划模式', en: 'Plan mode' },
|
|
227
|
+
'side.effort': { zh: '思考', en: 'Thinking' },
|
|
228
|
+
'side.focus': { zh: '专注模式', en: 'Focus mode' },
|
|
229
|
+
'side.busy': { zh: '状态', en: 'State' },
|
|
230
|
+
'side.context': { zh: '上下文', en: 'Context' },
|
|
231
|
+
'side.usage': { zh: '用量', en: 'Usage' },
|
|
232
|
+
'side.rounds': { zh: '轮次', en: 'Rounds' },
|
|
233
|
+
'side.steps': { zh: '步骤', en: 'Steps' },
|
|
234
|
+
'side.rate': { zh: '速度', en: 'Rate' },
|
|
235
|
+
// Unit suffixes for the values above. Chinese writes the unit straight after
|
|
236
|
+
// the number with no space (`3轮`), English needs one (`3 turns`) — so the
|
|
237
|
+
// separator belongs INSIDE the string rather than being concatenated at the
|
|
238
|
+
// call site. `tok/s` is a unit in both languages and is left as is.
|
|
239
|
+
'unit.rounds': { zh: '{n}轮', en: '{n} turns' },
|
|
240
|
+
'unit.steps': { zh: '{n}步', en: '{n} steps' },
|
|
241
|
+
'unit.rate': { zh: '{n} tok/s', en: '{n} tok/s' },
|
|
242
|
+
// The placeholder a card's field shows when it has no value at all. Distinct
|
|
243
|
+
// from `side.none` (「(无)」) which labels an EMPTY LIST in the rail; a field
|
|
244
|
+
// placeholder sits inline next to its label and is dimmed instead.
|
|
245
|
+
'unit.none': { zh: '—', en: '—' },
|
|
246
|
+
'side.todos': { zh: '待办', en: 'Todos' },
|
|
247
|
+
'side.queue': { zh: '队列', en: 'Queue' },
|
|
248
|
+
'side.quick': { zh: '快捷', en: 'Quick' },
|
|
249
|
+
'side.on': { zh: '开', en: 'on' },
|
|
250
|
+
'side.off': { zh: '关', en: 'off' },
|
|
251
|
+
'side.none': { zh: '(无)', en: '(none)' },
|
|
252
|
+
|
|
253
|
+
// ---- queue pane ----------------------------------------------------------
|
|
254
|
+
// The terminal steers a queued message into the running turn with Ctrl-S; a
|
|
255
|
+
// browser cannot use that key, so each queued row carries its own button with
|
|
256
|
+
// the same effect.
|
|
257
|
+
// ---- copy / drawer / tool detail ------------------------------------------
|
|
258
|
+
// A copy button reports its own result in place: the label IS the feedback.
|
|
259
|
+
// ---- transcript markers ---------------------------------------------------
|
|
260
|
+
// The glyph the terminal prints in the gutter for each kind of row. They live
|
|
261
|
+
// here because the terminal and the browser must agree on them: a `>` in the
|
|
262
|
+
// terminal and a `>` in the browser are the same message.
|
|
263
|
+
'mark.user': { zh: '>', en: '>' },
|
|
264
|
+
'mark.queued': { zh: '>', en: '>' },
|
|
265
|
+
'mark.steer': { zh: '>', en: '>' },
|
|
266
|
+
'mark.bash': { zh: '!', en: '!' },
|
|
267
|
+
'mark.warn': { zh: '⚑', en: '⚑' },
|
|
268
|
+
'mark.thinking': { zh: '●', en: '●' },
|
|
269
|
+
'mark.tool': { zh: '●', en: '●' },
|
|
270
|
+
'mark.toolFailed': { zh: '✗', en: '✗' },
|
|
271
|
+
'mark.result': { zh: '↳', en: '↳' },
|
|
272
|
+
'mark.bgTask': { zh: '●', en: '●' },
|
|
273
|
+
'mark.bgTaskFailed': { zh: '✗', en: '✗' },
|
|
274
|
+
|
|
275
|
+
'tool.verb': { zh: '调用', en: 'Used' },
|
|
276
|
+
// The verb carries the STATE, as in the terminal: `Using …` while a call runs,
|
|
277
|
+
// `Used …` once it finished.
|
|
278
|
+
'tool.using': { zh: '调用', en: 'Using' },
|
|
279
|
+
'tool.used': { zh: '调用', en: 'Used' },
|
|
280
|
+
'chat.thinking': { zh: '思考…', en: 'thinking…' },
|
|
281
|
+
'tool.compacting': { zh: '正在压缩上下文…', en: 'Compacting context…' },
|
|
282
|
+
'tool.compacted': { zh: '压缩完成', en: 'Compaction complete' },
|
|
283
|
+
'tool.compactCancelled': { zh: '压缩取消', en: 'Compaction cancelled' },
|
|
284
|
+
// "show more" for a capped tool result. It is a button, so it says what
|
|
285
|
+
// clicking it does rather than describing a state.
|
|
286
|
+
'tool.moreLines': { zh: '还有 {n} 行,展开', en: '{n} more lines, expand' },
|
|
287
|
+
'tool.collapse': { zh: '收起', en: 'collapse' },
|
|
288
|
+
'tool.noChanges': { zh: '没有改动', en: 'no changes' },
|
|
289
|
+
'chat.shellMode': { zh: 'shell 模式,Enter 执行', en: 'shell mode, Enter runs it' },
|
|
290
|
+
|
|
291
|
+
// ---- status line ----------------------------------------------------------
|
|
292
|
+
// Same shape as the terminal's footer: `3 turns | 7 steps | 42 tok/s`. Kept in
|
|
293
|
+
// English on purpose — the terminal does not translate it either, and one
|
|
294
|
+
// person reading both screens should not see two different sentences.
|
|
295
|
+
'status.usage': {
|
|
296
|
+
zh: '{turns} 轮 | {steps} 步 | {rate} tok/s',
|
|
297
|
+
en: '{turns} turns | {steps} steps | {rate} tok/s',
|
|
298
|
+
},
|
|
299
|
+
'status.context': {
|
|
300
|
+
zh: '上下文 {pct}% ({used}/{max})',
|
|
301
|
+
en: 'context {pct}% ({used}/{max})',
|
|
302
|
+
},
|
|
303
|
+
'status.tasksBash': { zh: '[{n} 个任务运行中]', en: '[{n} task(s) running]' },
|
|
304
|
+
'status.tasksAgent': { zh: '[{n} 个 agent 运行中]', en: '[{n} agent(s) running]' },
|
|
305
|
+
'status.expandTodos': { zh: '展开全部待办', en: 'Show every todo' },
|
|
306
|
+
|
|
307
|
+
'copy.copy': { zh: '复制', en: 'copy' },
|
|
308
|
+
'copy.copyTitle': { zh: '复制到剪贴板', en: 'Copy to clipboard' },
|
|
309
|
+
'copy.done': { zh: '已复制', en: 'copied' },
|
|
310
|
+
'copy.failed': { zh: '复制失败', en: 'failed' },
|
|
311
|
+
'drawer.close': { zh: 'Esc 关闭', en: 'esc \u2715' },
|
|
312
|
+
'tool.args': { zh: '参数', en: 'args' },
|
|
313
|
+
|
|
314
|
+
'queue.steer': { zh: '注入', en: 'Steer' },
|
|
315
|
+
'queue.steering': { zh: '注入中…', en: 'Steering…' },
|
|
316
|
+
'queue.steerHint': { zh: '立即注入到正在进行的回合', en: 'Inject this into the running turn now' },
|
|
317
|
+
'queue.edit': { zh: '编辑', en: 'Edit' },
|
|
318
|
+
'queue.editHint': { zh: '取回输入框修改,不再排队', en: 'Pull it back into the composer to change it' },
|
|
319
|
+
'queue.drop': { zh: '移除', en: 'Drop' },
|
|
320
|
+
'queue.dropHint': { zh: '从队列中删除这条消息', en: 'Remove this message from the queue' },
|
|
321
|
+
'queue.moreHint': { zh: '… 还有 {n} 条', en: '… +{n} more' },
|
|
322
|
+
'queue.hintRunning': { zh: '等待本回合结束', en: 'Sent when this turn ends' },
|
|
323
|
+
'queue.hintIdle': { zh: '回合结束后依次发送', en: 'Sent in order once the turn ends' },
|
|
324
|
+
|
|
325
|
+
// ---- popover -------------------------------------------------------------
|
|
326
|
+
// The status line's values are buttons; these are the menu's own strings.
|
|
327
|
+
'popover.click': { zh: '点击切换', en: 'Click to change' },
|
|
328
|
+
'popover.effortLabel': { zh: '思考等级', en: 'Thinking Effort' },
|
|
329
|
+
'popover.effort': { zh: '思考 {v}', en: 'think {v}' },
|
|
330
|
+
'popover.off': { zh: 'off', en: 'off' },
|
|
331
|
+
'popover.unknown': { zh: '—', en: '—' },
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
// NOTE: the bottom status line and context line are deliberately NOT translated.
|
|
336
|
+
// tui.js prints them as fixed English (`3 turns | 7 steps | 42 tok/s | context:
|
|
337
|
+
// 20% (…)`) with no i18n key, and these two rows exist to be the browser's copy
|
|
338
|
+
// of that readout. Translating one side would make the same person read two
|
|
339
|
+
// different sentences for the same state.
|
|
340
|
+
|
|
341
|
+
// ---- modal ---------------------------------------------------------------
|
|
342
|
+
// ---- modal ---------------------------------------------------------------
|
|
343
|
+
'modal.approve': { zh: '批准', en: 'Approve' },
|
|
344
|
+
'modal.reject': { zh: '拒绝', en: 'Reject' },
|
|
345
|
+
'modal.allow': { zh: '允许', en: 'Allow' },
|
|
346
|
+
'modal.deny': { zh: '拒绝', en: 'Deny' },
|
|
347
|
+
'modal.question': { zh: '需要选择', en: 'Question' },
|
|
348
|
+
'modal.submit': { zh: '提交', en: 'Submit' },
|
|
349
|
+
'modal.cancel': { zh: '取消', en: 'Cancel' },
|
|
350
|
+
'modal.other': { zh: 'Other', en: 'Other' },
|
|
351
|
+
'modal.otherHint': { zh: '自己输入答案', en: 'Type your own answer' },
|
|
352
|
+
'modal.note': { zh: '补充说明', en: 'Add a note' },
|
|
353
|
+
'modal.noteHint': { zh: '写给整轮问题的补充,可留空', en: 'Optional notes for the whole request' },
|
|
354
|
+
'modal.next': { zh: '下一题', en: 'Next' },
|
|
355
|
+
'modal.progress': { zh: '第 {n}/{total} 题', en: 'Question {n}/{total}' },
|
|
356
|
+
|
|
357
|
+
// ---- errors --------------------------------------------------------------
|
|
358
|
+
'err.actionFailed': { zh: '操作失败', en: 'Action failed' },
|
|
359
|
+
'err.unreachable': { zh: '连不上服务:', en: 'Cannot reach the server: ' },
|
|
360
|
+
'err.unauthorized': { zh: '未授权', en: 'Unauthorized' },
|
|
361
|
+
// Plain-text responses from the server itself (a direct visit, a curl call) —
|
|
362
|
+
// these have no page to carry a client-side language choice, so the server
|
|
363
|
+
// negotiates from Accept-Language.
|
|
364
|
+
'http.notFound': { zh: '找不到', en: 'not found' },
|
|
365
|
+
'http.badMethod': { zh: '不支持该请求方法', en: 'method not allowed' },
|
|
366
|
+
'http.unauthorized': { zh: '未授权', en: 'unauthorized' },
|
|
367
|
+
|
|
368
|
+
// ---- settings UI chrome ----
|
|
369
|
+
'setting.hint.navigate': { zh: "↑↓ 移动 · Enter 修改 · Tab 切换分类 · /search · Esc 关闭" },
|
|
370
|
+
'setting.hint.choose': { zh: "← → 选择 · Enter 保存 · Esc 取消" },
|
|
371
|
+
'setting.hint.editor': { zh: "Ctrl+S 保存 · Esc 取消 · Enter 换行 · 方向键移动" },
|
|
372
|
+
'setting.value': { zh: "值" },
|
|
373
|
+
'setting.tab.all': { zh: "全部" },
|
|
374
|
+
'setting.tab.appearance': { zh: "外观" },
|
|
375
|
+
'setting.tab.prompt': { zh: "提示" },
|
|
376
|
+
'setting.tab.model': { zh: "模型" },
|
|
377
|
+
'setting.tab.context': { zh: "上下文" },
|
|
378
|
+
'setting.tab.tools': { zh: "工具" },
|
|
379
|
+
'setting.tab.advanced': { zh: "高级" },
|
|
380
|
+
'setting.group.Display': { zh: "显示" },
|
|
381
|
+
'setting.group.Motion': { zh: "动效" },
|
|
382
|
+
'setting.group.Performance': { zh: "性能" },
|
|
383
|
+
'setting.group.Transcript': { zh: "对话记录" },
|
|
384
|
+
'setting.group.System': { zh: "系统" },
|
|
385
|
+
'setting.group.Modes': { zh: "模式" },
|
|
386
|
+
'setting.group.Provider': { zh: "服务商" },
|
|
387
|
+
'setting.group.Delegation': { zh: "委派" },
|
|
388
|
+
'setting.group.Thinking': { zh: "思考" },
|
|
389
|
+
'setting.group.Compaction': { zh: "压缩" },
|
|
390
|
+
'setting.group.Tool results': { zh: "工具结果" },
|
|
391
|
+
'setting.group.Sampling': { zh: "采样" },
|
|
392
|
+
'setting.group.Updates': { zh: "更新" },
|
|
393
|
+
'setting.group.Plugins': { zh: "插件" },
|
|
394
|
+
'setting.group.Experimental': { zh: "实验" },
|
|
395
|
+
'setting.group.Paths': { zh: "路径" },
|
|
396
|
+
|
|
397
|
+
// ---- settings schema (terminal UI) ----
|
|
398
|
+
"setting.label.theme": { zh: "配色主题" },
|
|
399
|
+
"setting.hint.theme": { zh: "配色方案。`auto` 跟随终端背景" },
|
|
400
|
+
"setting.label.calm_mode": { zh: "简洁模式" },
|
|
401
|
+
"setting.hint.calm_mode": { zh: "少一些装饰效果;保留信息,去掉动画" },
|
|
402
|
+
"setting.label.reduced_motion": { zh: "减弱动效" },
|
|
403
|
+
"setting.hint.reduced_motion": { zh: "不用扫光和脉冲,适合慢速终端连接,或纯粹出于偏好" },
|
|
404
|
+
"setting.label.render_fps": { zh: "渲染帧率" },
|
|
405
|
+
"setting.hint.render_fps": { zh: "屏幕重绘的频率。0 表示 1,终端无法以零帧率渲染。越高越流畅,也越费 CPU" },
|
|
406
|
+
"setting.label.shimmer_edge": { zh: "扫光边缘" },
|
|
407
|
+
"setting.hint.shimmer_edge": { zh: "正在运行的工具名上流动的高亮" },
|
|
408
|
+
"setting.label.show_tool_details": { zh: "工具详情" },
|
|
409
|
+
"setting.hint.show_tool_details": { zh: "在工具行上显示参数和输出预览" },
|
|
410
|
+
"setting.label.save_history": { zh: "保存显示记录" },
|
|
411
|
+
"setting.hint.save_history": { zh: "把提示、警告、计划卡片和思考过程存进会话" },
|
|
412
|
+
"setting.label.save_thinking": { zh: "保存思考" },
|
|
413
|
+
"setting.hint.save_thinking": { zh: "持久化思考块,而不只是可见的回答" },
|
|
414
|
+
"setting.label.title_display": { zh: "标题显示" },
|
|
415
|
+
"setting.hint.title_display": { zh: "在屏幕顶部显示会话标题栏" },
|
|
416
|
+
"setting.label.auto_title": { zh: "自动标题" },
|
|
417
|
+
"setting.hint.auto_title": { zh: "让模型根据第一条消息给会话起名" },
|
|
418
|
+
"setting.label.cost_currency": { zh: "成本货币" },
|
|
419
|
+
"setting.hint.cost_currency": { zh: "/cost 用哪种货币报告" },
|
|
420
|
+
"setting.label.cny_per_usd": { zh: "美元兑人民币" },
|
|
421
|
+
"setting.hint.cny_per_usd": { zh: "用人民币报告成本时的汇率;0 表示自动获取" },
|
|
422
|
+
"setting.label.system_prompt": { zh: "系统提示" },
|
|
423
|
+
"setting.hint.system_prompt": { zh: "设置后完全替换内置提示" },
|
|
424
|
+
"setting.label.append_system_prompt": { zh: "追加到系统提示" },
|
|
425
|
+
"setting.hint.append_system_prompt": { zh: "接在内置提示之后,是两者里更安全的做法" },
|
|
426
|
+
"setting.label.plan_instructions": { zh: "计划模式提示" },
|
|
427
|
+
"setting.hint.plan_instructions": { zh: "计划模式开启时的额外指引" },
|
|
428
|
+
"setting.label.focus_instructions": { zh: "专注模式提示" },
|
|
429
|
+
"setting.hint.focus_instructions": { zh: "专注模式开启时的额外指引" },
|
|
430
|
+
"setting.label.swarm_instructions": { zh: "群组模式提示" },
|
|
431
|
+
"setting.hint.swarm_instructions": { zh: "群组模式开启时的额外指引" },
|
|
432
|
+
"setting.label.provider": { zh: "服务商" },
|
|
433
|
+
"setting.hint.provider": { zh: "由哪个服务商处理请求" },
|
|
434
|
+
"setting.label.model": { zh: "模型" },
|
|
435
|
+
"setting.hint.model": { zh: "provider/model,按 config.toml 里的写法" },
|
|
436
|
+
"setting.label.default_model": { zh: "默认模型" },
|
|
437
|
+
"setting.hint.default_model": { zh: "会话没有指定模型时使用" },
|
|
438
|
+
"setting.label.secondary_model": { zh: "副模型" },
|
|
439
|
+
"setting.hint.secondary_model": { zh: "用于旁支任务:标题、压缩摘要" },
|
|
440
|
+
"setting.label.subagent_model": { zh: "子 agent 模型" },
|
|
441
|
+
"setting.hint.subagent_model": { zh: "Agent 工具使用的模型;为空表示用主模型" },
|
|
442
|
+
"setting.label.effort": { zh: "思考等级" },
|
|
443
|
+
"setting.hint.effort": { zh: "只提供当前模型声明的等级" },
|
|
444
|
+
"setting.label.max_context_tokens": { zh: "上下文窗口" },
|
|
445
|
+
"setting.hint.max_context_tokens": { zh: "目录数据不对时覆盖模型的窗口;0 表示使用它提供的值" },
|
|
446
|
+
"setting.label.prompt_cache": { zh: "提示缓存" },
|
|
447
|
+
"setting.hint.prompt_cache": { zh: "让服务商缓存请求前缀" },
|
|
448
|
+
"setting.label.auto_compact": { zh: "自动压缩" },
|
|
449
|
+
"setting.hint.auto_compact": { zh: "窗口变满时总结较旧的历史" },
|
|
450
|
+
"setting.label.compact_threshold": { zh: "压缩阈值" },
|
|
451
|
+
"setting.hint.compact_threshold": { zh: "触发压缩的窗口占比" },
|
|
452
|
+
"setting.label.compact_keep_ratio": { zh: "保留比例" },
|
|
453
|
+
"setting.hint.compact_keep_ratio": { zh: "压缩后保留当前用量的比例" },
|
|
454
|
+
"setting.label.auto_trim": { zh: "自动裁剪" },
|
|
455
|
+
"setting.hint.auto_trim": { zh: "从请求里省略旧的工具输出" },
|
|
456
|
+
"setting.label.trim_threshold": { zh: "裁剪阈值" },
|
|
457
|
+
"setting.hint.trim_threshold": { zh: "触发裁剪的窗口占比" },
|
|
458
|
+
"setting.label.trim_keep_ratio": { zh: "保留比例" },
|
|
459
|
+
"setting.hint.trim_keep_ratio": { zh: "裁剪后保留工具结果文本的比例,和触发阈值的刻度不同" },
|
|
460
|
+
"setting.label.tool_result_max_bytes": { zh: "结果最大字节" },
|
|
461
|
+
"setting.hint.tool_result_max_bytes": { zh: "更大的输出写入磁盘,并用指针替代" },
|
|
462
|
+
"setting.label.tool_result_preview_bytes": { zh: "预览字节" },
|
|
463
|
+
"setting.hint.tool_result_preview_bytes": { zh: "溢出的结果里保留多少内容在行内" },
|
|
464
|
+
"setting.label.tool_allow_external_paths": { zh: "允许外部路径" },
|
|
465
|
+
"setting.hint.tool_allow_external_paths": { zh: "让文件工具读写工作区之外的路径" },
|
|
466
|
+
"setting.label.swarm_mode": { zh: "群组模式" },
|
|
467
|
+
"setting.hint.swarm_mode": { zh: "开放 AgentSwarm,用于把工作分给多个子 agent" },
|
|
468
|
+
"setting.label.output_style": { zh: "输出风格" },
|
|
469
|
+
"setting.hint.output_style": { zh: "覆盖回答写法的命名风格" },
|
|
470
|
+
"setting.label.web_search_api_key": { zh: "WebSearch API key" },
|
|
471
|
+
"setting.hint.web_search_api_key": { zh: "一行一个 key,按顺序尝试;第一个额度用完就用第二个。可在 https://app.tavily.com 免费获取(登录后从面板复制)。留空则使用无 key 模式,按 IP 限流" },
|
|
472
|
+
"setting.label.auto_update": { zh: "自动更新" },
|
|
473
|
+
"setting.hint.auto_update": { zh: "启动时和每 30 分钟检查一次 npm" },
|
|
474
|
+
"setting.label.experiments": { zh: "实验功能" },
|
|
475
|
+
"setting.hint.experiments": { zh: "要启用的功能开关,用逗号分隔" },
|
|
476
|
+
"setting.label.telemetry": { zh: "遥测" },
|
|
477
|
+
"setting.hint.telemetry": { zh: "发送匿名用量统计" },
|
|
478
|
+
"setting.label.vim_mode": { zh: "Vim 模式" },
|
|
479
|
+
"setting.hint.vim_mode": { zh: "输入框里的模态按键" },
|
|
480
|
+
"setting.label.shell": { zh: "Shell" },
|
|
481
|
+
"setting.hint.shell": { zh: "Bash 工具使用的程序;为空表示自动检测" },
|
|
482
|
+
"setting.label.mcp_config_path": { zh: "MCP 配置路径" },
|
|
483
|
+
"setting.hint.mcp_config_path": { zh: "默认是 ~/.hncode/mcp.json" },
|
|
484
|
+
"setting.label.checkpoints_max": { zh: "最大检查点数" },
|
|
485
|
+
"setting.hint.checkpoints_max": { zh: "每个会话的文件历史条目上限" },
|
|
486
|
+
"setting.label.log_level": { zh: "日志级别" },
|
|
487
|
+
"setting.hint.log_level": { zh: "有多少内容写入 session-errors.log" },
|
|
488
|
+
"setting.label.probe_timeout_ms": { zh: "探测超时(毫秒)" },
|
|
489
|
+
"setting.hint.probe_timeout_ms": { zh: "/doctor --probe 等待回复的时间" },
|
|
490
|
+
"setting.label.base_url": { zh: "Base URL" },
|
|
491
|
+
"setting.hint.base_url": { zh: "服务商没有指定地址时使用的端点" },
|
|
492
|
+
"setting.label.protocol": { zh: "协议" },
|
|
493
|
+
"setting.hint.protocol": { zh: "线上的格式;为空时根据服务商推断" },
|
|
494
|
+
"setting.label.max_context_size": { zh: "最大上下文大小" },
|
|
495
|
+
"setting.hint.max_context_size": { zh: "目录没有窗口数据时的启动默认值;0 表示再次回退" },
|
|
496
|
+
"setting.label.max_output_size": { zh: "最大输出大小" },
|
|
497
|
+
"setting.hint.max_output_size": { zh: "回答长度的启动默认值;0 表示回退" },
|
|
498
|
+
"setting.label.reasoning": { zh: "默认开启思考" },
|
|
499
|
+
"setting.hint.reasoning": { zh: "新会话是否默认开启思考" },
|
|
500
|
+
"setting.label.plugins_dir": { zh: "插件目录" },
|
|
501
|
+
"setting.hint.plugins_dir": { zh: "插件从哪里加载;默认是 ~/.hncode/plugins" },
|
|
502
|
+
"setting.label.web_host": { zh: "Web 主机" },
|
|
503
|
+
"setting.hint.web_host": { zh: "/web 守护进程绑定的地址" },
|
|
504
|
+
"setting.label.web_port": { zh: "Web 端口" },
|
|
505
|
+
"setting.hint.web_port": { zh: "全局唯一守护进程的固定端口" },
|
|
506
|
+
|
|
507
|
+
// ---- terminal UI ---------------------------------------------------------
|
|
508
|
+
//
|
|
509
|
+
// The TUI used to be English by construction, and that is wrong: the person reading
|
|
510
|
+
// the screen is not always the person who wrote the code. Only what the USER reads is
|
|
511
|
+
// here — command descriptions, the help panel, menu hints. The system prompt and
|
|
512
|
+
// anything the model reads stay English, because they are instructions to the model,
|
|
513
|
+
// not text for a reader.
|
|
514
|
+
//
|
|
515
|
+
// Command names, tool names, `token`, `MCP`, `git` and friends are left untranslated:
|
|
516
|
+
// they are the words the user types, so translating them would make the help wrong.
|
|
517
|
+
'tui.help.commands': { zh: 'hncode — 命令', en: 'hncode — commands' },
|
|
518
|
+
'tui.help.matching': { zh: 'hncode — 匹配 “{filter}” 的命令', en: 'hncode — commands matching "{filter}"' },
|
|
519
|
+
'tui.help.noMatch': { zh: '没有匹配 “{filter}” 的命令。', en: 'No command matches "{filter}".' },
|
|
520
|
+
'tui.help.other': { zh: '其他', en: 'Other' },
|
|
521
|
+
'tui.help.skillRun': { zh: '运行已安装的技能(Tab 补全名字)', en: 'run an installed skill (Tab completes the name)' },
|
|
522
|
+
'tui.help.skillImport': { zh: '从文件添加技能,或安装一个仓库里的全部技能', en: 'add a skill from a file, or install a repository of them' },
|
|
523
|
+
'tui.help.skillOpen': { zh: '打开技能管理器(Tab 切换页签)', en: 'open the skill manager (Tab switches tabs)' },
|
|
524
|
+
'tui.help.skillInstall': { zh: '从仓库下载一个技能,不经过面板', en: 'download one from the repo, without the panel' },
|
|
525
|
+
'tui.help.skillRemove': { zh: '删除本地副本', en: 'delete the local copy' },
|
|
526
|
+
'tui.help.pluginOpen': { zh: '打开插件管理器', en: 'open the plugin manager' },
|
|
527
|
+
'tui.help.pluginInstall': { zh: '从仓库下载一个插件', en: 'download one from the repo' },
|
|
528
|
+
'tui.help.groupEveryday': { zh: '常用', en: 'Everyday' },
|
|
529
|
+
'tui.help.groupSession': { zh: '会话', en: 'Session' },
|
|
530
|
+
'tui.help.groupContext': { zh: '上下文', en: 'Context' },
|
|
531
|
+
'tui.help.groupWork': { zh: '工作方式', en: 'Work' },
|
|
532
|
+
'tui.help.groupExtend': { zh: '扩展', en: 'Extend' },
|
|
533
|
+
'tui.help.groupDiagnostics': { zh: '诊断', en: 'Diagnostics' },
|
|
534
|
+
|
|
535
|
+
// The shortcut column. The KEY stays as it is printed on the keyboard; only the
|
|
536
|
+
// sentence beside it is translated.
|
|
537
|
+
'tui.key.send': { zh: '发送消息', en: 'send the message' },
|
|
538
|
+
'tui.key.newline': { zh: '插入换行', en: 'insert a newline' },
|
|
539
|
+
'tui.key.copy': { zh: '复制选中内容(或最后一条回答)', en: 'copy the selection (or the last answer)' },
|
|
540
|
+
'tui.key.paste': { zh: '粘贴剪贴板(多行粘贴会折叠)', en: 'paste the clipboard (multi-line pastes collapse)' },
|
|
541
|
+
'tui.key.history': { zh: '输入历史(输入框为空时)· 滚动对话', en: 'input history (empty composer) · scroll the chat' },
|
|
542
|
+
'tui.key.commands': { zh: '打开命令菜单 · Tab 补全', en: 'open the command menu · Tab completes' },
|
|
543
|
+
'tui.key.shell': { zh: '输入框为空时:切到 shell 模式(Esc/Backspace 退出)', en: 'on an empty prompt: switch to shell mode (Esc/Backspace to leave)' },
|
|
544
|
+
'tui.key.esc': { zh: '关闭菜单/对话框 · 中断当前回合', en: 'cancel the menu / dialog · interrupt the turn' },
|
|
545
|
+
'tui.key.viewOutput': { zh: '在新面板里查看完整的工具输出或回复', en: 'open the full tool output or reply in a viewer' },
|
|
546
|
+
'tui.key.background': { zh: '把运行中的 Bash 命令转到后台', en: 'move a running Bash command to the background' },
|
|
547
|
+
'tui.key.steer': { zh: '把排队的内容注入当前回合', en: 'steer queued input into the running turn' },
|
|
548
|
+
'tui.key.recall': { zh: '取回最后一条排队消息来编辑', en: 'recall the last queued message for editing' },
|
|
549
|
+
'tui.key.expand': { zh: '展开/收起工具输出和思考', en: 'expand/collapse tool output and thinking' },
|
|
550
|
+
'tui.key.todo': { zh: '展开/收起待办面板', en: 'expand/collapse the todo panel' },
|
|
551
|
+
'tui.key.quit': { zh: '退出 hncode', en: 'exit hncode' },
|
|
552
|
+
'tui.key.tab': { zh: '补全 · 在面板和选项之间切换', en: 'complete · switch between panels and options' },
|
|
553
|
+
|
|
554
|
+
// Menu and prompt hints.
|
|
555
|
+
'tui.hint.insertDismiss': { zh: 'Enter 或 Tab 插入 · Esc 关闭', en: 'Enter or Tab to insert · Esc to dismiss' },
|
|
556
|
+
'tui.hint.escClose': { zh: 'Esc 关闭', en: 'esc to close' },
|
|
557
|
+
'tui.hint.typeToSearch': { zh: '输入以搜索', en: 'type to search' },
|
|
558
|
+
'tui.hint.navSelect': { zh: '↑↓ 移动 · Enter 选择 · Esc 取消', en: '↑↓ navigate · Enter select · Esc cancel' },
|
|
559
|
+
'tui.title.addModelTo': { zh: '向 {name} 添加模型' },
|
|
560
|
+
|
|
561
|
+
// States the user watches for, rather than descriptions of a feature.
|
|
562
|
+
'tui.state.thinking': { zh: '思考中', en: 'thinking' },
|
|
563
|
+
'tui.state.working': { zh: '处理中', en: 'working' },
|
|
564
|
+
'tui.state.restoring': { zh: '正在恢复 {n} 条消息…', en: 'Restoring {n} messages…' },
|
|
565
|
+
'tui.state.interrupted': { zh: '已中断', en: 'interrupted' },
|
|
566
|
+
'tui.state.stopped': { zh: '已停止', en: 'stopped' },
|
|
567
|
+
'tui.state.done': { zh: '完成', en: 'done' },
|
|
568
|
+
'tui.state.failed': { zh: '失败', en: 'failed' },
|
|
569
|
+
|
|
570
|
+
// ---- command descriptions ------------------------------------------------
|
|
571
|
+
//
|
|
572
|
+
// One key per slash command, `<cmd>.<name>`. These carry `zh` ONLY on purpose: the
|
|
573
|
+
// English text already lives beside the command in tui.js, and duplicating it here
|
|
574
|
+
// would create a second copy that drifts. A language with no entry falls back to that
|
|
575
|
+
// in-code description, so a partly translated command list still reads correctly
|
|
576
|
+
// instead of showing a key.
|
|
577
|
+
//
|
|
578
|
+
// Command NAMES are never translated — they are what the user types.
|
|
579
|
+
'cmd.yolo': { zh: 'Yolo 模式:工作区内的改动、写入和命令都自动执行;工作区外的路径、危险命令、提问和计划仍会询问' },
|
|
580
|
+
'cmd.permission': { zh: '选择权限模式' },
|
|
581
|
+
'cmd.settings': { zh: '按区域浏览并修改所有设置' },
|
|
582
|
+
'cmd.set': { zh: '按 key 设置一项配置,或列出与默认值不同的项' },
|
|
583
|
+
'cmd.sampling': { zh: '查看或设置 temperature、top_p 和 presence_penalty' },
|
|
584
|
+
'cmd.plan': { zh: '切换计划模式' },
|
|
585
|
+
'cmd.websearch-api': { zh: '编辑 WebSearch 的 API key(一行一个,按顺序尝试)' },
|
|
586
|
+
'cmd.focus': { zh: '切换专注模式(先用最小工具集,之后放全部工具)' },
|
|
587
|
+
'cmd.auto': { zh: '自动模式:从不打断你,一切都自动执行并自动决定' },
|
|
588
|
+
'cmd.ask': { zh: '询问模式:只读操作自动执行,其他动作都先询问' },
|
|
589
|
+
'cmd.model': { zh: '切换 LLM 模型' },
|
|
590
|
+
'cmd.effort': { zh: '切换思考等级' },
|
|
591
|
+
'cmd.provider': { zh: '管理 AI 服务商(增删)' },
|
|
592
|
+
'cmd.help': { zh: '显示可用命令和快捷键' },
|
|
593
|
+
'cmd.new': { zh: '在当前工作区开始一个新会话' },
|
|
594
|
+
'cmd.sessions': { zh: '浏览并恢复会话' },
|
|
595
|
+
'cmd.all-sessions': { zh: '浏览所有工作区的会话' },
|
|
596
|
+
'cmd.tasks': { zh: '浏览后台任务(全屏面板)' },
|
|
597
|
+
'cmd.swarm': { zh: '切换群组模式:把工作拆分给多个并行子 agent' },
|
|
598
|
+
'cmd.subagent-model': { zh: '子 agent 用哪个模型,Agent 和 AgentSwarm 都适用(默认是本会话的模型)' },
|
|
599
|
+
'cmd.compact': { zh: '压缩对话上下文(AI 总结 + 保留最后 20%)' },
|
|
600
|
+
'cmd.goal': { zh: '开始或管理一个自主目标' },
|
|
601
|
+
'cmd.init': { zh: '从代码库生成或更新 AGENTS.md' },
|
|
602
|
+
'cmd.fork': { zh: '把当前会话复制一份,但不切过去' },
|
|
603
|
+
'cmd.undo': { zh: '回到更早的一条提示:对话截断,那些回合改过的文件一并还原' },
|
|
604
|
+
'cmd.trim': { zh: '立即按保留比例裁剪旧的工具结果(手动)' },
|
|
605
|
+
'cmd.auto-trim': { zh: '自动裁剪工具结果:阈值是窗口的比例,keep 是工具结果文本的比例' },
|
|
606
|
+
'cmd.title': { zh: '设置或查看会话标题(同时改窗口标题)' },
|
|
607
|
+
'cmd.auto-title': { zh: '让模型根据第一条消息给会话起名(会持久化)' },
|
|
608
|
+
'cmd.ptc': { zh: 'PTC 模式:所有工具调用都走程序化沙箱,不直接调用工具' },
|
|
609
|
+
'cmd.status': { zh: '显示当前会话和运行状态' },
|
|
610
|
+
'cmd.doctor': { zh: '诊断环境:配置、存储、MCP、hooks、磁盘、git、终端' },
|
|
611
|
+
'cmd.memory-profile': { zh: '本次会话的内存都花在哪:文本、工具结果还是工具参数' },
|
|
612
|
+
'cmd.usage': { zh: '显示真实 token 用量(服务商上报)和上下文窗口' },
|
|
613
|
+
'cmd.stats': { zh: '本会话做过什么:回合数、工具、碰过的文件、耗时和 token' },
|
|
614
|
+
'cmd.cost': { zh: '显示本会话花了多少钱,美元或人民币' },
|
|
615
|
+
'cmd.context': { zh: '拆解上下文窗口被什么占满' },
|
|
616
|
+
'cmd.raw': { zh: '原样显示助手回复:不渲染 Markdown,不自动折行' },
|
|
617
|
+
'cmd.reduced-motion': { zh: '用慢速呼吸指示器代替所有动画' },
|
|
618
|
+
'cmd.shimmer-edge': { zh: '扫光边缘:cosine(两侧柔和)或 linear(前沿硬)' },
|
|
619
|
+
'cmd.output-style': { zh: '套用 ~/.hncode/output-styles/*.md 里的输出风格' },
|
|
620
|
+
'cmd.experiments': { zh: '列出或切换尚未完成的功能' },
|
|
621
|
+
'cmd.btw': { zh: '在不进入对话的旁支里问一个问题' },
|
|
622
|
+
'cmd.recap': { zh: '说说本会话进行到哪了,不改动任何东西' },
|
|
623
|
+
'cmd.secondary-model': { zh: '选择旁支问答和回顾用的模型' },
|
|
624
|
+
'cmd.replay': { zh: '逐步回放本会话:每一步模型看到的内容' },
|
|
625
|
+
'cmd.schedule': { zh: '在运行中的会话上排定的定时提示' },
|
|
626
|
+
'cmd.teleport': { zh: '导出或导入本会话,用于另一台机器或另一份代码' },
|
|
627
|
+
'cmd.search': { zh: '搜索项目并把命中插入输入框' },
|
|
628
|
+
'cmd.mcp': { zh: '显示 MCP 服务状态' },
|
|
629
|
+
'cmd.mcp-config': { zh: '管理 MCP 服务(交互式,或列出/添加/删除)' },
|
|
630
|
+
'cmd.statusline': { zh: '配置状态行显示哪些项目' },
|
|
631
|
+
'cmd.theme': { zh: '切换配色主题' },
|
|
632
|
+
'cmd.keybindings': { zh: '把某个键改映射到另一个键或一条斜杠命令' },
|
|
633
|
+
'cmd.agents': { zh: '列出运行中的子 agent,并给他们发消息、中断或关闭' },
|
|
634
|
+
'cmd.team': { zh: '带领一个团队:查看并给成员发消息、添加成员、从旧会话打开团队' },
|
|
635
|
+
'cmd.files': { zh: '以树状浏览工作区,Enter 插入路径' },
|
|
636
|
+
'cmd.checkpoints': { zh: '列出单文件检查点,单独还原某个文件' },
|
|
637
|
+
'cmd.save-history': { zh: '把只用于显示的记录(提示、警告、压缩、计划卡片、思考)存进会话' },
|
|
638
|
+
'cmd.export-md': { zh: '把当前会话导出为 Markdown 文件' },
|
|
639
|
+
'cmd.import-session': { zh: '把一个 Markdown 文件附到提示里,让 AI 直接读,不调用工具' },
|
|
640
|
+
'cmd.copy': { zh: '复制最后一条助手消息到剪贴板' },
|
|
641
|
+
'cmd.set-system-prompt': { zh: '编辑系统提示,或载入某个模型系列的预设' },
|
|
642
|
+
'cmd.personal': { zh: '编辑注入到每条提示里的个人偏好(全局或按项目)' },
|
|
643
|
+
'cmd.permissions': { zh: '查看或编辑工具的常驻允许/询问/拒绝规则' },
|
|
644
|
+
'cmd.external': { zh: '开关工作区外路径的访问权限(会持久化)' },
|
|
645
|
+
'cmd.web': { zh: '把这个会话提供给浏览器(需要令牌,默认只听回环)' },
|
|
646
|
+
'cmd.calm-mode': { zh: '简洁回复:不再叙述将要做什么和为什么,除非你问' },
|
|
647
|
+
'cmd.add-dir': { zh: '添加或列出额外的工作区目录' },
|
|
648
|
+
'cmd.move': { zh: '把当前会话移到另一个目录(目录必须存在)' },
|
|
649
|
+
'cmd.vim': { zh: '用 $EDITOR 编辑输入框内容(默认 vim),保存后回填' },
|
|
650
|
+
'cmd.reload': { zh: '不重启就重新加载配置和插件' },
|
|
651
|
+
'cmd.reload-config': { zh: '只重新加载 config.toml 里的设置' },
|
|
652
|
+
'cmd.plugins': { zh: '打开插件管理器(已安装 + 仓库里可安装的)' },
|
|
653
|
+
'cmd.skills': { zh: '打开技能管理器(已安装 + 仓库里可安装的)' },
|
|
654
|
+
'cmd.import-skill': { zh: '从 Markdown 文件添加技能,或安装一个 GitHub 仓库里的全部技能(owner/repo)' },
|
|
655
|
+
'cmd.hooks': { zh: '显示已配置的 shell 钩子,或测试其中一个' },
|
|
656
|
+
'cmd.git': { zh: '显示仓库状态(分支、改动、远端)' },
|
|
657
|
+
'cmd.commit': { zh: '暂存并提交,附一条信息(也可以让 agent 起草)' },
|
|
658
|
+
'cmd.branch': { zh: '列出、创建或切换 git 分支' },
|
|
659
|
+
'cmd.worktree': { zh: '列出、创建或删除用于并行工作的 git worktree' },
|
|
660
|
+
'cmd.pr': { zh: '显示为当前分支开 pull request 的链接' },
|
|
661
|
+
'cmd.add': { zh: '暂存改动(默认全部,也可指定路径)' },
|
|
662
|
+
'cmd.diff': { zh: '显示未提交的改动' },
|
|
663
|
+
'cmd.review': { zh: '让 agent 审查未提交的改动并报告真实问题' },
|
|
664
|
+
'cmd.log': { zh: '显示最近的提交' },
|
|
665
|
+
'cmd.push': { zh: '推送当前分支(会先问)' },
|
|
666
|
+
'cmd.stash': { zh: '暂存改动:list / push / pop' },
|
|
667
|
+
'cmd.rebase': { zh: '把当前分支变基到另一个分支(会先问)' },
|
|
668
|
+
'cmd.cache': { zh: '开关长稳定前缀的提示缓存(省输入 token)' },
|
|
669
|
+
'cmd.logout': { zh: '退出已配置的服务商登录' },
|
|
670
|
+
'cmd.feedback': { zh: '打开预填好的 GitHub issue(标题 + 正文)' },
|
|
671
|
+
'cmd.update': { zh: '检查并安装新版本' },
|
|
672
|
+
'cmd.auto-update': { zh: '开关后台自动更新(启动时检查,之后每 30 分钟)' },
|
|
673
|
+
'cmd.auto-compact': { zh: '自动上下文压缩:开关,或设置触发/保留比例' },
|
|
674
|
+
'cmd.version': { zh: '显示版本信息' },
|
|
675
|
+
'cmd.exit': { zh: '退出应用' },
|
|
676
|
+
'cmd.lang': { zh: '切换界面语言(zh / en)' },
|
|
677
|
+
"… {n} more lines, ctrl+o to expand": "… {n} 行未显示,ctrl+o 展开",
|
|
678
|
+
"… ({n} more lines not shown; press ctrl+e for the whole thing)": "…({n} 行未显示,ctrl+e 查看全部)",
|
|
679
|
+
"… {n} more line not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
680
|
+
"… {n} more lines not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
681
|
+
"… +{n} more (done: {n}) · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条(已完成 {n})· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
682
|
+
'plan.summary': { zh: "步骤:{steps} 行数:{lines} 涉及文件:{files}", en: "Steps: {steps} Lines: {lines} Files mentioned: {files}" },
|
|
683
|
+
'plan.andMore': { zh: "… 另有 {n} 个", en: "… and {n} more" },
|
|
684
|
+
'keybindings.header': { zh: "快捷键({n})— {file}", en: "Keybindings ({n}) — {file}" },
|
|
685
|
+
// ---- the status row tallies ----
|
|
686
|
+
'status.turns': { zh: "{n} 轮", en: "{n} turns" },
|
|
687
|
+
'status.turnsOne': { zh: "{n} 轮", en: "{n} turn" },
|
|
688
|
+
'status.steps': { zh: "{n} 步", en: "{n} steps" },
|
|
689
|
+
'status.stepsOne': { zh: "{n} 步", en: "{n} step" },
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Look up one key. `lang` is a language id; anything unknown falls back to the
|
|
696
|
+
* default, then to English, then to the key itself (which makes a missing string
|
|
697
|
+
* obvious in situ instead of rendering as `undefined`).
|
|
698
|
+
*/
|
|
699
|
+
export function t(lang, key, vars) {
|
|
700
|
+
const entry = MESSAGES[key];
|
|
701
|
+
if (!entry) return key;
|
|
702
|
+
let s = entry[lang] || entry[DEFAULT_LANG] || entry.en || key;
|
|
703
|
+
if (vars) {
|
|
704
|
+
for (const k of Object.keys(vars)) s = s.split('{' + k + '}').join(String(vars[k]));
|
|
705
|
+
}
|
|
706
|
+
return s;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Look up a string that may be TRANSLATED-OR-NOT, returning `fallback` when there is no
|
|
711
|
+
* entry for this language.
|
|
712
|
+
*
|
|
713
|
+
* This is what the terminal UI uses. A command's English description lives beside the
|
|
714
|
+
* command in tui.js, where it is read by whoever maintains the command — copying it into
|
|
715
|
+
* MESSAGES as well would make two copies that drift. So the table holds only the
|
|
716
|
+
* translations, and an untranslated string comes back from the code itself.
|
|
717
|
+
*
|
|
718
|
+
* `undefined` is returned only when there is nothing to say in either place, which lets a
|
|
719
|
+
* caller distinguish "not translated" from "no text at all".
|
|
720
|
+
*/
|
|
721
|
+
export function tOr(lang, key, fallback) {
|
|
722
|
+
const entry = MESSAGES[key];
|
|
723
|
+
if (!entry || !entry[lang]) return fallback;
|
|
724
|
+
return entry[lang];
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
// ---- exact-string translations ------------------------------------------------
|
|
728
|
+
//
|
|
729
|
+
// The terminal UI's notices are built at the call site, often from a template, so they
|
|
730
|
+
// have no key to look up. Rather than rewrite two hundred call sites — which would put a
|
|
731
|
+
// key between every message and the code that composes it — the FINAL string is matched
|
|
732
|
+
// here.
|
|
733
|
+
//
|
|
734
|
+
// The key is the exact English text. A message that interpolates a value cannot match, and
|
|
735
|
+
// is deliberately left English: a half-substituted sentence is worse than a correct one in
|
|
736
|
+
// the wrong language. Templates that matter are translated at their call site with `tr()`.
|
|
737
|
+
//
|
|
738
|
+
// This is a MAP, not a table of entries: there is nothing to fall back to, because the
|
|
739
|
+
// English is already the key.
|
|
740
|
+
export const NOTICE_ZH = {
|
|
741
|
+
'Loading provider list…': '正在加载服务商列表…',
|
|
742
|
+
'No known providers found in catalog.': '目录里找不到已知的服务商',
|
|
743
|
+
'That is the session you are in. Use /new first, or pick another one.': '这就是你当前所在的会话。先用 /new 开一个,再选别的',
|
|
744
|
+
'No models configured. Add one first: /provider': '没有配置模型。先用 /provider 添加一个',
|
|
745
|
+
'Invalid ratio; use 0-1 (e.g., 0.2 to drop the oldest 20% of messages)': '比例不合法,请用 0-1(比如 0.2 表示丢掉最旧的 20% 消息)',
|
|
746
|
+
'System prompt override cleared; the built-in prompt is in use again.': '已清除自定义系统提示,重新使用内置提示',
|
|
747
|
+
'No permission rules set — /permissions edit to add some.': '还没有权限规则,用 /permissions edit 添加',
|
|
748
|
+
'Goal resumed.': '目标已恢复',
|
|
749
|
+
'Output style cleared.': '已清除输出风格',
|
|
750
|
+
'Takes effect on the next request.': '下一次请求生效',
|
|
751
|
+
'Side thread box open — type a question and press Enter. Esc closes it.': '旁支输入框已打开,输入问题按 Enter,Esc 关闭',
|
|
752
|
+
'Side thread closed.': '旁支已关闭',
|
|
753
|
+
'Nothing to jump to yet.': '还没有可以跳转的内容',
|
|
754
|
+
'Jumped to the top of the session.': '已跳到会话开头',
|
|
755
|
+
'Jumped to the last failure.': '已跳到最后一次失败',
|
|
756
|
+
'Jumped to the last reply.': '已跳到最近一条回复',
|
|
757
|
+
'Use /jump top, /jump error, or /jump reply.': '用法:/jump top、/jump error 或 /jump reply',
|
|
758
|
+
'Nothing to recap yet — this session has no conversation.': '还没有可回顾的内容,本会话还没有对话',
|
|
759
|
+
'Secondary model cleared.': '已清除副模型',
|
|
760
|
+
'Checking for updates...': '正在检查更新…',
|
|
761
|
+
'Config and plugins reloaded.': '配置和插件已重新加载',
|
|
762
|
+
'Reload them with /plugins reload, or restart hncode.': '用 /plugins reload 重新加载,或重启 hncode',
|
|
763
|
+
'Issue link copied to the transcript (Ctrl+Shift+C to copy).': 'issue 链接已写入对话(Ctrl+Shift+C 复制)',
|
|
764
|
+
'The last background update failed. Run /update to see why.': '上次后台更新失败,运行 /update 查看原因',
|
|
765
|
+
'Clipboard empty or unavailable': '剪贴板为空或不可用',
|
|
766
|
+
'Nothing to steer into (the agent is idle)': '没有正在进行的回合可以注入(agent 空闲)',
|
|
767
|
+
'Nothing queued to steer': '排队里没有内容可以注入',
|
|
768
|
+
'Interrupted': '已中断',
|
|
769
|
+
'Pick at least one option with Space, or type an answer under Other.': '至少用空格选中一个选项,或在 Other 下自己输入答案',
|
|
770
|
+
'No provider selected — use /model to pick one.': '没有选择服务商,用 /model 选一个',
|
|
771
|
+
'Nothing to select': '没有可选中的内容',
|
|
772
|
+
'Nothing selected to cut': '没有选中可剪切的内容',
|
|
773
|
+
'Nothing to copy — select text first (or use the right-click menu)': '没有可复制的内容,先选中文字(或用右键菜单)',
|
|
774
|
+
'Nothing is waiting for input — no command is running in the foreground': '没有在等待输入,前台没有正在运行的命令',
|
|
775
|
+
'Use `@name message` to send straight to a member.': '用 `@名字 消息` 直接发给某个成员',
|
|
776
|
+
'No team. Create one: /team create <name>': '还没有团队。用 /team create <名字> 创建一个',
|
|
777
|
+
'That command has finished — input goes to the model again': '该命令已结束,输入重新交给模型',
|
|
778
|
+
'Add members with /team add <name>; it asks which model each should run.': '用 /team add <名字> 添加成员,会询问每个人用哪个模型',
|
|
779
|
+
'Nothing to background — no command is running in the foreground': '没有可转到后台的命令,前台没有正在运行的命令',
|
|
780
|
+
'Nothing to background — the agent is idle': '没有可转到后台的内容,agent 空闲',
|
|
781
|
+
'Input goes to the running command (Ctrl+G to stop)': '输入发送给正在运行的命令(Ctrl+G 停止)',
|
|
782
|
+
'Input goes back to the model': '输入重新交给模型',
|
|
783
|
+
'No todos yet': '还没有待办',
|
|
784
|
+
'Expanded tool output': '已展开工具输出',
|
|
785
|
+
'Collapsed tool output': '已收起工具输出',
|
|
786
|
+
'Changes stashed.': '已 stash 改动',
|
|
787
|
+
'Restored from stash.': '已从 stash 恢复',
|
|
788
|
+
'Stashed changes.': '已 stash 改动',
|
|
789
|
+
'No staged changes to review.': '没有已暂存的改动可审查',
|
|
790
|
+
'Staged all changes.': '已暂存全部改动',
|
|
791
|
+
'Auto title: OFF — the name comes only from /title.': '自动标题:关,名字只来自 /title',
|
|
792
|
+
'Swarm mode OFF': '群组模式:关',
|
|
793
|
+
'Raw mode: OFF — Markdown rendering restored.': '原样模式:关,Markdown 渲染已恢复',
|
|
794
|
+
'Reduced motion: OFF — animation restored.': '减弱动效:关,动画已恢复',
|
|
795
|
+
'Auto-update OFF': '自动更新:关',
|
|
796
|
+
'Auto-compaction OFF — history is no longer trimmed automatically (use /compact manually)': '自动压缩:关,不再自动裁剪历史(需要时用 /compact)',
|
|
797
|
+
'Auto-trim OFF — tool results are no longer elided from the request': '自动裁剪:关,请求里不再省略旧工具结果',
|
|
798
|
+
'External paths: OFF — tools are confined to the workspace.': '外部路径:关,工具被限制在工作区内',
|
|
799
|
+
'PTC mode: OFF — direct tool calls are available again.': 'PTC 模式:关,重新可以直接调用工具',
|
|
800
|
+
"Plan cleared.": "计划已清除",
|
|
801
|
+
"Usage: /sampling [on|off] | temperature <0-2> | top_p <0-1> | presence_penalty <-2-2>": "用法:/sampling [on|off] | temperature <0-2> | top_p <0-1> | presence_penalty <-2-2>",
|
|
802
|
+
"Usage: /lang zh|en": "用法:/lang zh|en",
|
|
803
|
+
"No providers configured. Add one first: /provider": "还没有配置服务商,先用 /provider 添加一个",
|
|
804
|
+
"Select a model first, then Ctrl+E to edit it.": "先选一个模型,再按 Ctrl+E 编辑",
|
|
805
|
+
"Cancelled: model id is required.": "已取消:必须填模型 ID",
|
|
806
|
+
"The current model has no thinking control.": "当前模型没有思考控制",
|
|
807
|
+
"Select a provider first, then Ctrl+R to refresh its models.": "先选一个服务商,再按 Ctrl+R 刷新它的模型列表",
|
|
808
|
+
"Cancelled: provider name is required.": "已取消:必须填服务商名称",
|
|
809
|
+
"Cancelled: choose a Type (OpenAI / OpenAI Responses / Anthropic).": "已取消:必须选一个类型(OpenAI / OpenAI Responses / Anthropic)",
|
|
810
|
+
"Nothing to undo.": "没有可撤销的内容",
|
|
811
|
+
"Rewind cancelled.": "已取消回退",
|
|
812
|
+
"Usage: /auto-title [on|off]": "用法:/auto-title [on|off]",
|
|
813
|
+
"Usage: /ptc [on|off]": "用法:/ptc [on|off]",
|
|
814
|
+
"Nothing to compact yet.": "还没有可压缩的内容",
|
|
815
|
+
"Busy — wait for the current turn to finish.": "正在忙,等当前回合结束",
|
|
816
|
+
"Usage: /personal [global|project]": "用法:/personal [global|project]",
|
|
817
|
+
"Usage: /memory [global|project|clear]": "用法:/memory [global|project|clear]",
|
|
818
|
+
"Usage: /external [on|off]": "用法:/external [on|off]",
|
|
819
|
+
"Note: HNCODE_ALLOW_EXTERNAL=1 is set, so access stays ON until you unset it.": "注意:已设置 HNCODE_ALLOW_EXTERNAL=1,在取消它之前访问权限一直开着",
|
|
820
|
+
"Web UI is unavailable in this build.": "这个构建里没有 Web UI",
|
|
821
|
+
"Usage: /calm-mode [on|off]": "用法:/calm-mode [on|off]",
|
|
822
|
+
"LLM not set. Configure a provider with /provider first.": "还没有配置 LLM,先用 /provider 配置一个服务商",
|
|
823
|
+
"Goal paused. Use /goal resume to continue.": "目标已暂停,用 /goal resume 继续",
|
|
824
|
+
"No goal to resume.": "没有可恢复的目标",
|
|
825
|
+
"Goal cancelled.": "目标已取消",
|
|
826
|
+
"Goal replaced.": "目标已替换",
|
|
827
|
+
"Usage: /raw [on|off]": "用法:/raw [on|off]",
|
|
828
|
+
"Usage: /reduced-motion [on|off]": "用法:/reduced-motion [on|off]",
|
|
829
|
+
"Usage: /shimmer-edge cosine|linear": "用法:/shimmer-edge cosine|linear",
|
|
830
|
+
"No style selected. Pick one with /output-style, or create one with /output-style new <name>.": "还没有选择风格,用 /output-style 选一个,或 /output-style new <名字> 新建一个",
|
|
831
|
+
"Usage: /experiments <name> [on|off]": "用法:/experiments <名字> [on|off]",
|
|
832
|
+
"The side-thread box is already open — type a question, or press Esc to close it.": "旁支输入框已经打开了,直接输入问题,或按 Esc 关闭",
|
|
833
|
+
"No failure in this session.": "本会话没有失败",
|
|
834
|
+
"No reply to jump to.": "没有可跳转的回复",
|
|
835
|
+
"The recap request failed.": "回顾请求失败",
|
|
836
|
+
"The recap came back empty.": "回顾返回了空内容",
|
|
837
|
+
"This session has nothing to replay.": "本会话没有可回放的内容",
|
|
838
|
+
"Usage: /schedule [list | run <id>]": "用法:/schedule [list | run <id>]",
|
|
839
|
+
"Usage: /teleport import <file>": "用法:/teleport import <文件>",
|
|
840
|
+
"Usage: /teleport [export [path] | import <file>]": "用法:/teleport [export [路径] | import <文件>]",
|
|
841
|
+
"Nothing to trim.": "没有可裁剪的内容",
|
|
842
|
+
"Nothing to trim — no tool result is large enough to elide.": "没有可裁剪的内容,没有哪个工具结果大到需要省略",
|
|
843
|
+
"Name and command/URL are required.": "名称和命令/URL 都必须填",
|
|
844
|
+
"Usage: /mcp-config add <name> <command|url> [args...]": "用法:/mcp-config add <名字> <命令|URL> [参数...]",
|
|
845
|
+
"Usage: /mcp-config (manage) | list | add <name> <command|url> [args...] | remove <name>": "用法:/mcp-config (管理) | list | add <名字> <命令|URL> [参数...] | remove <名字>",
|
|
846
|
+
"Usage: /save-history [on|off|thinking|nothinking]": "用法:/save-history [on|off|thinking|nothinking]",
|
|
847
|
+
"Usage: /keybindings add <key> <key|/command> e.g. /keybindings add ctrl+e /theme": "用法:/keybindings add <键> <键|/命令> 例如 /keybindings add ctrl+e /theme",
|
|
848
|
+
"A key cannot be bound to itself.": "不能把一个键绑定到它自己",
|
|
849
|
+
"Usage: /keybindings remove <key>": "用法:/keybindings remove <键>",
|
|
850
|
+
"Target must be a different key or a /command.": "目标必须是另一个键或一条 /命令",
|
|
851
|
+
"Usage: /keybindings [list | add <key> <key|/command> | remove <key> | edit]": "用法:/keybindings [list | add <键> <键|/命令> | remove <键> | edit]",
|
|
852
|
+
"Usage: /agents message <agent-id> <text>": "用法:/agents message <agent-id> <文本>",
|
|
853
|
+
"Usage: /agents close <agent-id>": "用法:/agents close <agent-id>",
|
|
854
|
+
"Usage: /agents [list | message <id> <text> | interrupt [id|all] | close <id>]": "用法:/agents [list | message <id> <文本> | interrupt [id|all] | close <id>]",
|
|
855
|
+
"Usage: /team create <name>": "用法:/team create <名字>",
|
|
856
|
+
"Usage: /team add <name> [model]": "用法:/team add <名字> [模型]",
|
|
857
|
+
"Usage: /team msg <name> <text> -- \"*\" reaches every member": "用法:/team msg <名字> <文本> -- \"*\" 发给每个成员",
|
|
858
|
+
"There is nobody else on the team.": "团队里没有其他人",
|
|
859
|
+
"No team to delete.": "没有可删除的团队",
|
|
860
|
+
"Cancelled: a team needs a name.": "已取消:团队需要一个名字",
|
|
861
|
+
"No team. Create one first.": "还没有团队,先创建一个",
|
|
862
|
+
"Cancelled: a member needs a name.": "已取消:成员需要一个名字",
|
|
863
|
+
"Usage: /checkpoints [list | restore <n> | diff <n>]": "用法:/checkpoints [list | restore <n> | diff <n>]",
|
|
864
|
+
"No size comparison available for that checkpoint.": "那个检查点没有可比较的大小信息",
|
|
865
|
+
"Nothing to export (empty session).": "没有可导出的内容(空会话)",
|
|
866
|
+
"Only Markdown files are supported (.md / .markdown).": "只支持 Markdown 文件(.md / .markdown)",
|
|
867
|
+
"No assistant message to copy.": "没有可复制的助手消息",
|
|
868
|
+
"Clipboard unavailable.": "剪贴板不可用",
|
|
869
|
+
"Usage: /move <target-directory>": "用法:/move <目标目录>",
|
|
870
|
+
"External editor is unavailable in this session.": "本会话里外部编辑器不可用",
|
|
871
|
+
"Usage: /plugins remove <name>": "用法:/plugins remove <名字>",
|
|
872
|
+
"Reload is unavailable in this host.": "这个宿主里不支持重新加载",
|
|
873
|
+
"Usage: /plugins [list] | install <name> | remove <name> | reload": "用法:/plugins [list] | install <名字> | remove <名字> | reload",
|
|
874
|
+
"Usage: /skills remove <name>": "用法:/skills remove <名字>",
|
|
875
|
+
"Usage: /skills [list] | install <name> | remove <name>": "用法:/skills [list] | install <名字> | remove <名字>",
|
|
876
|
+
"Usage: /import-skill <file.md | owner/repo[/subdir]> [name]": "用法:/import-skill <文件.md | owner/repo[/子目录]> [名字]",
|
|
877
|
+
"Push cancelled.": "已取消推送",
|
|
878
|
+
"Usage: /stash [list] | push [message] | pop": "用法:/stash [list] | push [信息] | pop",
|
|
879
|
+
"Usage: /rebase <branch>": "用法:/rebase <分支>",
|
|
880
|
+
"Rebase cancelled.": "已取消变基",
|
|
881
|
+
"No uncommitted changes to review.": "没有未提交的改动可审查",
|
|
882
|
+
"Nothing to commit — working tree is clean.": "没有可提交的内容,工作区是干净的",
|
|
883
|
+
"Usage: /branch -c <name> [from]": "用法:/branch -c <名字> [起点]",
|
|
884
|
+
"No git remote named \"origin\" — cannot build a PR URL.": "没有名为 \"origin\" 的 git 远端,无法生成 PR 链接",
|
|
885
|
+
"PR link copied to your clipboard": "PR 链接已复制到剪贴板",
|
|
886
|
+
"Could not reach the clipboard — the link is on screen above.": "读不到剪贴板,链接在上面屏幕上",
|
|
887
|
+
"Usage: /worktree add <dir> [branch]": "用法:/worktree add <目录> [分支]",
|
|
888
|
+
"Usage: /worktree remove <dir>": "用法:/worktree remove <目录>",
|
|
889
|
+
"Worktree removal cancelled.": "已取消删除 worktree",
|
|
890
|
+
"Usage: /worktree [list] | new [name] [--branch] | add <dir> [branch] | remove <dir>": "用法:/worktree [list] | new [名字] [--branch] | add <目录> [分支] | remove <目录>",
|
|
891
|
+
"Nothing to logout.": "没有可退出的登录",
|
|
892
|
+
"Usage: /feedback <title> | <body>": "用法:/feedback <标题> | <正文>",
|
|
893
|
+
"Ctrl+Click to expand it": "Ctrl+点击展开",
|
|
894
|
+
"Nothing to copy": "没有可复制的内容",
|
|
895
|
+
"Clipboard unavailable": "剪贴板不可用",
|
|
896
|
+
"Nothing selected": "没有选中内容",
|
|
897
|
+
"Clipboard is empty": "剪贴板是空的",
|
|
898
|
+
"Nothing to copy — select text first": "没有可复制的内容,先选中文字",
|
|
899
|
+
"No assistant message to copy": "没有可复制的助手消息",
|
|
900
|
+
"Nothing to copy — the selection is empty": "没有可复制的内容,选中的是空的",
|
|
901
|
+
"Nothing to show yet": "还没有可显示的内容",
|
|
902
|
+
"Web UI is not running": "Web UI 没有在运行",
|
|
903
|
+
"Actions": "操作",
|
|
904
|
+
"Add A Custom Provider": "添加自定义服务商",
|
|
905
|
+
"Add MCP server": "添加 MCP 服务",
|
|
906
|
+
"Add a member": "添加成员",
|
|
907
|
+
"Add a provider": "添加服务商",
|
|
908
|
+
"Add model — choose a provider": "添加模型 — 选择服务商",
|
|
909
|
+
"Agent memory — choose a scope": "Agent 内存 — 选择范围",
|
|
910
|
+
"Clear agent memory — choose a scope": "清除 Agent 内存 — 选择范围",
|
|
911
|
+
"Commands": "命令",
|
|
912
|
+
"Create a team": "创建团队",
|
|
913
|
+
"Edit": "编辑",
|
|
914
|
+
"Experiments": "实验功能",
|
|
915
|
+
"Import a Markdown file into the prompt": "把 Markdown 文件导入到提示里",
|
|
916
|
+
"Output styles": "输出风格",
|
|
917
|
+
"Permissions": "权限",
|
|
918
|
+
"Personal preferences — choose a scope": "个人偏好 — 选择范围",
|
|
919
|
+
"Recap": "回顾",
|
|
920
|
+
"Replay": "回放",
|
|
921
|
+
"Review plan — edit before executing": "审查计划 — 执行前可编辑",
|
|
922
|
+
"Rewind to just before…": "回退到这之前…",
|
|
923
|
+
"Schedules": "定时任务",
|
|
924
|
+
"Search project": "搜索项目",
|
|
925
|
+
"Secondary model (side questions, recaps)": "副模型(旁支问答、回顾)",
|
|
926
|
+
"Select a known provider": "选择已知服务商",
|
|
927
|
+
"Select a model": "选择模型",
|
|
928
|
+
"Select a provider": "选择服务商",
|
|
929
|
+
"Select a provider to log out": "选择要退出的服务商",
|
|
930
|
+
"Select a subagent model": "选择子 agent 模型",
|
|
931
|
+
"Select permission mode": "选择权限模式",
|
|
932
|
+
"Select thinking effort": "选择思考等级",
|
|
933
|
+
"Session title": "会话标题",
|
|
934
|
+
"Settings": "设置",
|
|
935
|
+
"Status line items": "状态行项目",
|
|
936
|
+
"System prompt": "系统提示",
|
|
937
|
+
"System prompt presets": "系统提示预设",
|
|
938
|
+
"Teleport exported": "Teleport 已导出",
|
|
939
|
+
"Theme": "主题",
|
|
940
|
+
"WebSearch API keys — one per line, tried in order": "WebSearch API key — 一行一个,按顺序尝试",
|
|
941
|
+
"What will run - ": "将要执行 - ",
|
|
942
|
+
"hncode — checkpoints": "hncode — 检查点",
|
|
943
|
+
"hncode — doctor": "hncode — 诊断",
|
|
944
|
+
"hncode — git": "hncode — git",
|
|
945
|
+
"hncode — hooks": "hncode — hooks",
|
|
946
|
+
"hncode — keybindings": "hncode — 键位",
|
|
947
|
+
"hncode — mcp": "hncode — mcp",
|
|
948
|
+
"hncode — memory": "hncode — 内存",
|
|
949
|
+
"hncode — saved plans": "hncode — 已保存的计划",
|
|
950
|
+
"hncode — subagents": "hncode — 子 agent",
|
|
951
|
+
"↑↓ navigate · Enter select · Esc cancel": "↑↓ 移动 · Enter 选择 · Esc 取消",
|
|
952
|
+
"↑↓ navigate · Enter change · Tab category · /search · Esc close": "↑↓ 移动 · Enter 修改 · Tab 切换分类 · /search · Esc 关闭",
|
|
953
|
+
"↑↓ navigate · Enter select · Tab category · Ctrl+E edit": "↑↓ 移动 · Enter 选择 · Tab 切换分类 · Ctrl+E 编辑",
|
|
954
|
+
"↑↓ navigate · Enter edit · Del remove · Ctrl+R refresh": "↑↓ 移动 · Enter 编辑 · Del 删除 · Ctrl+R 刷新",
|
|
955
|
+
"↑↓ navigate · type to search · Enter select · Esc cancel": "↑↓ 移动 · 输入搜索 · Enter 选择 · Esc 取消",
|
|
956
|
+
"↑↓ navigate · Tab switch category · Enter select · Esc cancel": "↑↓ 移动 · Tab 切换分类 · Enter 选择 · Esc 取消",
|
|
957
|
+
"↑↓ navigate · type to filter · Enter rewind · Esc cancel": "↑↓ 移动 · 输入过滤 · Enter 回退 · Esc 取消",
|
|
958
|
+
"↑↓ navigate · Enter insert · Esc cancel": "↑↓ 移动 · Enter 插入 · Esc 取消",
|
|
959
|
+
"↑↓ navigate · Enter manage · Esc close": "↑↓ 移动 · Enter 管理 · Esc 关闭",
|
|
960
|
+
"↑↓ navigate · Tab category · Enter choose · Esc cancel": "↑↓ 移动 · Tab 切换分类 · Enter 选定 · Esc 取消",
|
|
961
|
+
"↑↓ navigate · Enter choose · Esc cancel": "↑↓ 移动 · Enter 选定 · Esc 取消",
|
|
962
|
+
"↑↓ navigate · Enter toggle · Esc close": "↑↓ 移动 · Enter 开关 · Esc 关闭",
|
|
963
|
+
"↑↓ navigate · Enter run · Esc cancel": "↑↓ 移动 · Enter 运行 · Esc 取消",
|
|
964
|
+
"↑↓ navigate · type to filter · Enter insert · Esc cancel": "↑↓ 移动 · 输入过滤 · Enter 插入 · Esc 取消",
|
|
965
|
+
"… more lines, ctrl+o to expand": "… 行未显示,ctrl+o 展开",
|
|
966
|
+
"… more line, ctrl+o to expand": "… 行未显示,ctrl+o 展开",
|
|
967
|
+
"… more lines not shown; ctrl+o collapses, ctrl+e shows all of it": "… 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
968
|
+
"… more line not shown; ctrl+o collapses, ctrl+e shows all of it": "… 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
969
|
+
"Ctrl+O expands tool output and Edit diffs": "Ctrl+O 展开工具输出和 Edit 的改动",
|
|
970
|
+
"Long tool results collapse — Ctrl+O expands them": "较长的工具结果会折叠,Ctrl+O 展开",
|
|
971
|
+
"↑↓ move · →/← open · Enter insert · Ctrl+O all · Esc close": "↑↓ 移动 · →/← 打开 · Enter 插入 · Ctrl+O 全部 · Esc 关闭",
|
|
972
|
+
" Todo": " 待办",
|
|
973
|
+
" Queue": " 队列",
|
|
974
|
+
"done": "已完成",
|
|
975
|
+
"in progress": "进行中",
|
|
976
|
+
"pending": "待处理",
|
|
977
|
+
"Untitled": "未命名",
|
|
978
|
+
"Press Esc to interrupt the current turn": "按 Esc 中断当前回合",
|
|
979
|
+
"!git status runs a shell command directly": "!git status 直接运行 shell 命令",
|
|
980
|
+
"/init writes an AGENTS.md from your codebase": "/init 从你的代码库生成 AGENTS.md",
|
|
981
|
+
"Use /mcp to manage MCP servers": "用 /mcp 管理 MCP 服务",
|
|
982
|
+
"The context line shows live token usage": "上下文那一行显示实时 token 用量",
|
|
983
|
+
"/goal starts a self-driving objective": "/goal 启动一个自主推进的目标",
|
|
984
|
+
"Paste multiline content — it becomes one token": "粘贴多行内容,它会变成一个 token",
|
|
985
|
+
"/usage shows token and context statistics": "/usage 显示 token 和上下文统计",
|
|
986
|
+
"Ctrl+C aborts the current turn": "Ctrl+C 中止当前回合",
|
|
987
|
+
"The spinner cycles status messages while working": "工作时转圈图标会轮流显示状态文字",
|
|
988
|
+
"/model opens a picker — Tab switches providers": "/model 打开选择器,Tab 切换服务商",
|
|
989
|
+
"/provider lets you add or switch AI providers": "/provider 添加或切换 AI 服务商",
|
|
990
|
+
"Tool calls stream their arguments live": "工具调用的参数会实时流出",
|
|
991
|
+
"/think adds inline reasoning instructions": "/think 添加行内推理指令",
|
|
992
|
+
"The todo list updates live as the agent progresses": "待办列表随 agent 进度实时更新",
|
|
993
|
+
"/focus gives the agent Read, Write, Edit, and Bash": "/focus 给 agent 只留 Read、Write、Edit 和 Bash",
|
|
994
|
+
"System messages are green — instructions, not chat": "系统消息是绿色的,是指令不是聊天",
|
|
995
|
+
"Queued messages wait for the turn to finish": "排队的消息等本回合结束后发送",
|
|
996
|
+
"/steer injects a message into the running turn": "/steer 把消息注入正在进行的回合",
|
|
997
|
+
"Ctrl+R reloads the current session from disk": "Ctrl+R 从磁盘重新加载当前会话",
|
|
998
|
+
"Alt+R re-fetches the provider's model list": "Alt+R 重新拉取服务商的模型列表",
|
|
999
|
+
"/help shows available commands at any time": "/help 随时显示可用命令",
|
|
1000
|
+
"/undo rolls back the transcript AND the files": "/undo 同时回退对话和文件",
|
|
1001
|
+
"/fork copies the session so you can branch": "/fork 复制会话,方便你另开分支",
|
|
1002
|
+
"/sessions lists saved conversations here": "/sessions 在这里列出已保存的会话",
|
|
1003
|
+
"/all-sessions lists them from every workspace": "/all-sessions 列出所有工作区的会话",
|
|
1004
|
+
"/title names the current session": "/title 给当前会话命名",
|
|
1005
|
+
"/compact [ratio] summarizes older history": "/compact [比例] 总结较旧的历史",
|
|
1006
|
+
"/tasks lists background Bash jobs": "/tasks 列出后台 Bash 任务",
|
|
1007
|
+
"/status prints model, provider, endpoint": "/status 打印模型、服务商、端点",
|
|
1008
|
+
"/statusline toggles the bottom status bar items": "/statusline 切换底部状态栏的项目",
|
|
1009
|
+
"/memory shows or edits notes for later sessions": "/memory 查看或编辑给后续会话用的笔记",
|
|
1010
|
+
"/personal edits your standing preferences": "/personal 编辑你常驻的偏好",
|
|
1011
|
+
"/permissions shows allow/ask/deny rules for tools": "/permissions 查看工具的允许/询问/拒绝规则",
|
|
1012
|
+
"/external toggles access outside the workspace": "/external 切换工作区外路径的访问权限",
|
|
1013
|
+
"/web serves this session to a browser": "/web 把这个会话提供给浏览器",
|
|
1014
|
+
"/add-dir grants access to another directory": "/add-dir 授权访问另一个目录",
|
|
1015
|
+
"/reload re-reads config.toml without restarting": "/reload 不重启就重新读取 config.toml",
|
|
1016
|
+
"/skills install <name> pulls one from the repo": "/skills install <名字> 从仓库拉取一个技能",
|
|
1017
|
+
"/logout clears the stored API key": "/logout 清除已保存的 API key",
|
|
1018
|
+
"/version prints the hncode version string": "/version 打印 hncode 版本",
|
|
1019
|
+
"/feedback opens a prefilled GitHub issue": "/feedback 打开预填好的 GitHub issue",
|
|
1020
|
+
"/copy puts the last answer on the clipboard": "/copy 把最后一条回答复制到剪贴板",
|
|
1021
|
+
"/export-md writes the session to a Markdown file": "/export-md 把会话写成 Markdown 文件",
|
|
1022
|
+
"/import-session attaches a Markdown file": "/import-session 附加一个 Markdown 文件",
|
|
1023
|
+
"/new starts a fresh conversation": "/new 开始一段新对话",
|
|
1024
|
+
"/goal pause pauses the objective": "/goal pause 暂停目标",
|
|
1025
|
+
"/goal resume resumes the objective": "/goal resume 恢复目标",
|
|
1026
|
+
"/plan on makes every tool read-only": "/plan on 让所有工具只读",
|
|
1027
|
+
"/focus on gives the agent Write tools and Bash": "/focus on 给 agent Write 工具和 Bash",
|
|
1028
|
+
"/permission opens the picker for Ask / Yolo / Auto": "/permission 打开 Ask / Yolo / Auto 选择器",
|
|
1029
|
+
"/settings opens the combined settings menu": "/settings 打开合并后的设置菜单",
|
|
1030
|
+
"/yolo auto-approves anything inside the workspace": "/yolo 自动批准工作区内的一切操作",
|
|
1031
|
+
"/auto never interrupts you; everything runs": "/auto 从不打断你,一切都自动执行",
|
|
1032
|
+
"/usage shows the real token totals, not an estimate": "/usage 显示真实的 token 总量,不是估算",
|
|
1033
|
+
"/cost [usd|cny] shows what this session has spent": "/cost [usd|cny] 显示本会话花了多少钱",
|
|
1034
|
+
"The session cost appears in the status row once prices are known": "价格已知后,会话成本会显示在状态行",
|
|
1035
|
+
"Shift+Arrow selects text in the composer": "Shift+方向键在输入框里选中文字",
|
|
1036
|
+
"Shift+Enter inserts a newline without sending": "Shift+Enter 换行但不发送",
|
|
1037
|
+
"Ctrl+T expands or collapses the todo panel": "Ctrl+T 展开或收起待办面板",
|
|
1038
|
+
"Ctrl+P opens the command palette": "Ctrl+P 打开命令面板",
|
|
1039
|
+
"Ctrl+B backgrounds a running Bash command": "Ctrl+B 把运行中的 Bash 命令转到后台",
|
|
1040
|
+
"Ctrl+Shift+V pastes as a bracketed paste": "Ctrl+Shift+V 以括号粘贴方式粘贴",
|
|
1041
|
+
"Ctrl+Shift+C copies the selection or last answer": "Ctrl+Shift+C 复制选中内容或最后一条回答",
|
|
1042
|
+
"Ctrl+L expands or collapses the plugin load log": "Ctrl+L 展开或收起插件加载日志",
|
|
1043
|
+
"Ctrl+Up / Ctrl+Down scroll the AI output area": "Ctrl+上 / Ctrl+下 滚动 AI 输出区域",
|
|
1044
|
+
"↑ recalls the newest queued message": "↑ 取回最新一条排队消息",
|
|
1045
|
+
"↑/↓ walks through your input history": "↑/↓ 浏览你的输入历史",
|
|
1046
|
+
"PgUp / PgDn scroll the transcript": "PgUp / PgDn 滚动对话",
|
|
1047
|
+
"Mouse-wheel over the composer scrolls the chat": "鼠标滚轮在输入框上滚动对话",
|
|
1048
|
+
"Drag the right-edge scrollbar to jump": "拖动右边缘的滚动条跳转",
|
|
1049
|
+
"Double-click a row to select the whole line": "双击某一行选中整行",
|
|
1050
|
+
"Right-click a row for the copy / paste menu": "右键某一行打开复制/粘贴菜单",
|
|
1051
|
+
"Esc closes any open picker, form, or menu": "Esc 关闭任何打开的选择器、表单或菜单",
|
|
1052
|
+
"Esc aborts the in-flight model request": "Esc 中止进行中的模型请求",
|
|
1053
|
+
"Ctrl+C twice exits hncode": "连按两次 Ctrl+C 退出 hncode",
|
|
1054
|
+
"Ctrl+C with a dialog open closes the dialog": "对话框打开时按 Ctrl+C 关闭它",
|
|
1055
|
+
"The `/` menu filters as you type": "`/` 菜单随输入过滤",
|
|
1056
|
+
"Enter on a `/` item runs it": "在 `/` 项上按 Enter 执行",
|
|
1057
|
+
"Tab on a `/` item completes its name": "在 `/` 项上按 Tab 补全名字",
|
|
1058
|
+
"The context gauge turns red near the limit": "接近上限时上下文仪表会变红",
|
|
1059
|
+
"Auto-compaction triggers at 85% of the context": "自动压缩在上下文到 85% 时触发",
|
|
1060
|
+
"Old tool results are elided at 50% of the window": "窗口到 50% 时省略旧的工具结果",
|
|
1061
|
+
"/compact summarizes older history, keeping 20%": "/compact 总结较旧历史,保留 20%",
|
|
1062
|
+
"Long tool results collapse — Ctrl+O expands them": "较长的工具结果会折叠,Ctrl+O 展开",
|
|
1063
|
+
"A red bullet means the command exited non-zero": "红色圆点表示命令以非零状态退出",
|
|
1064
|
+
"A green bullet means the tool succeeded": "绿色圆点表示工具执行成功",
|
|
1065
|
+
"The `[turn took …]` line shows the turn duration": "`[turn took …]` 那一行显示本回合耗时",
|
|
1066
|
+
"/provider add picks a provider from models.dev": "/provider add 从 models.dev 选择服务商",
|
|
1067
|
+
"/model groups models by provider — Tab cycles": "/model 按服务商分组,Tab 切换",
|
|
1068
|
+
"Typing `/` opens the command palette": "输入 `/` 打开命令面板",
|
|
1069
|
+
"Compaction complete": "压缩完成",
|
|
1070
|
+
"Compaction cancelled": "压缩已取消",
|
|
1071
|
+
"Compacting context…": "正在压缩上下文…",
|
|
1072
|
+
" thinking…": " 思考中…",
|
|
1073
|
+
" (Ctrl-O to hide compaction summary)": "(Ctrl-O 收起压缩摘要)",
|
|
1074
|
+
" (Ctrl-O to show compaction summary)": "(Ctrl-O 显示压缩摘要)",
|
|
1075
|
+
" earlier messages left the screen — summarised above, still in the session file (/recap to read it back)": " 条更早的消息移出了屏幕,已在上方总结,仍在会话文件里(/recap 可读回)",
|
|
1076
|
+
" earlier message left the screen — summarised above, still in the session file (/recap to read it back)": " 条更早的消息移出了屏幕,已在上方总结,仍在会话文件里(/recap 可读回)",
|
|
1077
|
+
"the full conversation is still in the session file (/recap to read it back)": "完整对话仍在会话文件里(/recap 可读回)",
|
|
1078
|
+
"Plan": "计划",
|
|
1079
|
+
"background task finished": "后台任务已完成",
|
|
1080
|
+
"… +{n} more · ↑ to edit · ctrl-s to steer immediately · drag top rule to resize": "… 还有 {n} 条 · ↑ 编辑 · ctrl-s 立即注入 · 拖动顶部横线调整大小",
|
|
1081
|
+
"… +{n} more · ↑ to edit · will send now · drag top rule to resize": "… 还有 {n} 条 · ↑ 编辑 · 本回合结束后发送 · 拖动顶部横线调整大小",
|
|
1082
|
+
"↑ to edit · ctrl-s to steer immediately": "↑ 编辑 · ctrl-s 立即注入",
|
|
1083
|
+
"↑ to edit · will send now": "↑ 编辑 · 本回合结束后发送",
|
|
1084
|
+
"… +{n} more (done: {n}) · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条(已完成 {n})· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1085
|
+
"… +{n} more (in progress: {n}) · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条(进行中 {n})· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1086
|
+
"… +{n} more (pending: {n}) · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条(待处理 {n})· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1087
|
+
"… +{n} more · ctrl+t to expand · drag the top rule to resize": "… 还有 {n} 条 · ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1088
|
+
"· ctrl+t to expand · drag the top rule to resize": "· ctrl+t 展开 · 拖动顶部横线调整大小",
|
|
1089
|
+
"… +{n} more": "… 还有 {n} 条",
|
|
1090
|
+
"drag top rule to resize": "拖动顶部横线调整大小",
|
|
1091
|
+
"Files matching {s} — {n} file(s)": "匹配 {s} 的文件 — {n} 个文件",
|
|
1092
|
+
"Files — {n} file(s)": "文件 — {n} 个",
|
|
1093
|
+
"… {n} more lines, ctrl+o to expand": "… {n} 行未显示,ctrl+o 展开",
|
|
1094
|
+
"… ({n} more lines, ctrl+o to expand)": "…({n} 行未显示,ctrl+o 展开)",
|
|
1095
|
+
"… ({n} more lines not shown; press ctrl+e for the whole thing)": "…({n} 行未显示,ctrl+e 查看全部)",
|
|
1096
|
+
"… {n} more line not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
1097
|
+
"… {n} more lines not shown; ctrl+o collapses, ctrl+e shows all of it": "… {n} 行未显示;ctrl+o 收起,ctrl+y 全部显示",
|
|
1098
|
+
"Copy": "复制",
|
|
1099
|
+
"Cut": "剪切",
|
|
1100
|
+
"Paste": "粘贴",
|
|
1101
|
+
"Select all": "全选",
|
|
1102
|
+
"copy the selected text": "复制选中文字",
|
|
1103
|
+
"cut the selected text": "剪切选中文字",
|
|
1104
|
+
"nothing selected": "没有选中内容",
|
|
1105
|
+
"paste at the caret, replacing any selection": "粘贴到光标处,替换选中内容",
|
|
1106
|
+
"select the whole text": "选中全部文字",
|
|
1107
|
+
"copy the selected composer text": "复制输入框里选中的文字",
|
|
1108
|
+
"cut the selected composer text to the clipboard": "把输入框里选中的文字剪切到剪贴板",
|
|
1109
|
+
"Copy last answer": "复制最后一条回答",
|
|
1110
|
+
"copy the last assistant message": "复制最后一条助手消息",
|
|
1111
|
+
"Clear selection": "清除选中",
|
|
1112
|
+
"drop the current selection": "取消当前选中",
|
|
1113
|
+
"Clear composer selection": "清除输入框选中",
|
|
1114
|
+
"drop the composer selection": "取消输入框里的选中",
|
|
1115
|
+
"paste the clipboard into the composer": "把剪贴板内容粘贴到输入框",
|
|
1116
|
+
"Queued…": "排队中…",
|
|
1117
|
+
"Prompting…": "提示中…",
|
|
1118
|
+
"Working…": "工作中…",
|
|
1119
|
+
"Rate limited…": "限流中…",
|
|
1120
|
+
"Completed.": "已完成。",
|
|
1121
|
+
"Failed.": "失败。",
|
|
1122
|
+
"Cancelled.": "已取消。",
|
|
1123
|
+
"Aborted.": "已中止。",
|
|
1124
|
+
"running": "运行中",
|
|
1125
|
+
"completed": "已完成",
|
|
1126
|
+
"failed": "失败",
|
|
1127
|
+
"timed out": "超时",
|
|
1128
|
+
"killed": "已终止",
|
|
1129
|
+
"lost": "已失联",
|
|
1130
|
+
"TASK BROWSER": "任务浏览器",
|
|
1131
|
+
"No active tasks. Tab = show all.": "没有进行中的任务。Tab 显示全部。",
|
|
1132
|
+
"No background tasks in this session.": "本会话没有后台任务。",
|
|
1133
|
+
"Status:": "状态:",
|
|
1134
|
+
"Agent ID:": "Agent ID:",
|
|
1135
|
+
"Agent type:": "Agent 类型:",
|
|
1136
|
+
"Installed": "已安装",
|
|
1137
|
+
"Available": "可用",
|
|
1138
|
+
"Loaded": "已加载",
|
|
1139
|
+
"On disk": "在磁盘上",
|
|
1140
|
+
"ALL": "全部",
|
|
1141
|
+
"ACTIVE": "进行中",
|
|
1142
|
+
" TASK BROWSER ": " 任务浏览器 ",
|
|
1143
|
+
" running ": " 运行中 ",
|
|
1144
|
+
" completed ": " 已完成 ",
|
|
1145
|
+
" interrupted ": " 已中断 ",
|
|
1146
|
+
" total ": " 总计 ",
|
|
1147
|
+
"Searching…": "搜索中…",
|
|
1148
|
+
"No matches": "没有匹配项",
|
|
1149
|
+
" ← current": " ← 当前",
|
|
1150
|
+
" ← choose": " ← 选择",
|
|
1151
|
+
"Tab next field · Enter submit · Esc cancel": "Tab 下一个字段 · Enter 提交 · Esc 取消",
|
|
1152
|
+
"Tab next field · ↑/↓ field · ←/→ type · Enter save · Esc cancel": "Tab 下一个字段 · ↑/↓ 字段 · ←/→ 类型 · Enter 保存 · Esc 取消",
|
|
1153
|
+
"Tab next field · Enter save · Esc cancel": "Tab 下一个字段 · Enter 保存 · Esc 取消",
|
|
1154
|
+
"Type": "类型",
|
|
1155
|
+
"Provider Name": "服务商名称",
|
|
1156
|
+
"Base URL": "Base URL",
|
|
1157
|
+
"API Key": "API Key",
|
|
1158
|
+
"+ Add provider…": "+ 添加服务商…",
|
|
1159
|
+
"create a new [providers.*] entry": "新建一个 [providers.*] 条目",
|
|
1160
|
+
"(no base_url)": "(无 base_url)",
|
|
1161
|
+
"Known provider": "已知服务商",
|
|
1162
|
+
"browse models.dev catalog": "浏览 models.dev 目录",
|
|
1163
|
+
"Custom provider": "自定义服务商",
|
|
1164
|
+
"enter base URL, key and protocol yourself": "自己填写 Base URL、key 和协议",
|
|
1165
|
+
"Add provider": "添加服务商",
|
|
1166
|
+
"OpenAI Compatible": "OpenAI 兼容",
|
|
1167
|
+
"OpenAI Responses": "OpenAI Responses",
|
|
1168
|
+
"Anthropic": "Anthropic",
|
|
1169
|
+
"+ Add model…": "+ 添加模型…",
|
|
1170
|
+
"register a model under a provider": "在某个服务商下注册模型",
|
|
1171
|
+
"Model ID": "模型 ID",
|
|
1172
|
+
"Display Name": "显示名称",
|
|
1173
|
+
"Tab next field · Enter save · Esc cancel (display name defaults to the id)": "Tab 下一个字段 · Enter 保存 · Esc 取消(显示名称默认是 ID)",
|
|
1174
|
+
"(no model set)": "(未设置模型)",
|
|
1175
|
+
"(nothing yet)": "(暂无内容)",
|
|
1176
|
+
"what it is doing": "正在做什么",
|
|
1177
|
+
"← back · Enter message · k kill · s stop · m mode": "← 返回 · Enter 发消息 · k 终止 · s 停止 · m 模式",
|
|
1178
|
+
"No members. Add one with /team add <name>.": "没有成员。用 /team add <名字> 添加。",
|
|
1179
|
+
"Enter send · Esc cancel": "Enter 发送 · Esc 取消",
|
|
1180
|
+
"Enter write · Tab next · ↑↓ select · Esc close": "Enter 编辑 · Tab 下一个 · ↑↓ 选择 · Esc 关闭",
|
|
1181
|
+
"k kill · s stop · p prune idle · m mode · r read": "k 终止 · s 停止 · p 清理空闲 · m 模式 · r 查看",
|
|
1182
|
+
"a member": "某个成员",
|
|
1183
|
+
"a tool call": "一次工具调用",
|
|
1184
|
+
"Terminal too small (need >= {n} x {n})": "终端太小(至少需要 {n} x {n})",
|
|
1185
|
+
" Skills": " 技能",
|
|
1186
|
+
" Plugins": " 插件",
|
|
1187
|
+
" / search · Tab switch · ↑↓ select · Enter install/remove · Esc close": " / 搜索 · Tab 切换 · ↑↓ 选择 · Enter 安装/移除 · Esc 关闭",
|
|
1188
|
+
"Not Install": "未安装",
|
|
1189
|
+
"loaded in this session": "本次会话已加载",
|
|
1190
|
+
"not loaded — Need Restart": "未加载,需要重启",
|
|
1191
|
+
"Need Restart": "需要重启",
|
|
1192
|
+
"loaded": "已加载",
|
|
1193
|
+
"already installed locally": "本地已安装",
|
|
1194
|
+
"available in the repository": "仓库中可获取",
|
|
1195
|
+
"(no description)": "(无描述)",
|
|
1196
|
+
"(no SKILL.md — cannot install)": "(没有 SKILL.md,无法安装)",
|
|
1197
|
+
" Could not fetch from the repo: ": " 无法从仓库获取:",
|
|
1198
|
+
" Nothing published in the repo yet.": " 仓库里还没有发布内容。",
|
|
1199
|
+
" Nothing here.": " 这里没有内容。",
|
|
1200
|
+
" Loading…": " 加载中…",
|
|
1201
|
+
" ↑ ↑ ↑ {n} above": " ↑ ↑ ↑ 上方还有 {n} 条",
|
|
1202
|
+
" ↓ ↓ ↓ {n} below": " ↓ ↓ ↓ 下方还有 {n} 条",
|
|
1203
|
+
"Enter does nothing — this entry has no SKILL.md": "Enter 无操作,这个条目没有 SKILL.md",
|
|
1204
|
+
"Enter reinstalls ": "Enter 重新安装 ",
|
|
1205
|
+
" (replaces the local copy)": "(替换本地副本)",
|
|
1206
|
+
"Enter installs ": "Enter 安装 ",
|
|
1207
|
+
" from the repository": " 来自仓库",
|
|
1208
|
+
"Enter removes the local copy of ": "Enter 删除本地副本 ",
|
|
1209
|
+
"loaded plugin — switch to the On disk tab to remove it": "已加载的插件,切到“在磁盘上”标签才能删除",
|
|
1210
|
+
"Model: ": "模型:",
|
|
1211
|
+
"(no model)": "(无模型)",
|
|
1212
|
+
"Tool results dominate — /compact or a narrower search would free the most.": "工具结果占了大部分,用 /compact 或缩小搜索范围最有效",
|
|
1213
|
+
"The system prompt is large — trim AGENTS.md / personal prompt.": "系统提示很大,精简 AGENTS.md 或个人偏好",
|
|
1214
|
+
"Over 80% — auto-compaction is close. /compact now to keep control.": "已超过 80%,快触发自动压缩了,用 /compact 主动控制",
|
|
1215
|
+
"just now": "刚刚",
|
|
1216
|
+
"m ago": "分钟前",
|
|
1217
|
+
"h ago": "小时前",
|
|
1218
|
+
"d ago": "天前",
|
|
1219
|
+
"Stop": "停止",
|
|
1220
|
+
"confirm": "确认",
|
|
1221
|
+
"cancel": "取消",
|
|
1222
|
+
"select": "选择",
|
|
1223
|
+
"output": "输出",
|
|
1224
|
+
"stop": "停止",
|
|
1225
|
+
"refresh": "刷新",
|
|
1226
|
+
"filter": "过滤",
|
|
1227
|
+
"close": "关闭",
|
|
1228
|
+
"Select a task from the list.": "从列表中选择一个任务。",
|
|
1229
|
+
"Task ID:": "任务 ID:",
|
|
1230
|
+
"Kind:": "类型:",
|
|
1231
|
+
"Description:": "描述:",
|
|
1232
|
+
"Command:": "命令:",
|
|
1233
|
+
"Pid:": "Pid:",
|
|
1234
|
+
"Exit code:": "退出码:",
|
|
1235
|
+
"Model:": "模型:",
|
|
1236
|
+
"Effort:": "思考等级:",
|
|
1237
|
+
"Questions:": "问题数:",
|
|
1238
|
+
"Tool call:": "工具调用:",
|
|
1239
|
+
"Time:": "时间:",
|
|
1240
|
+
"Reason:": "原因:",
|
|
1241
|
+
"Detail": "详情",
|
|
1242
|
+
"No task selected.": "没有选中任务。",
|
|
1243
|
+
"Preview Output": "输出预览",
|
|
1244
|
+
"running ": "运行中 ",
|
|
1245
|
+
"finished ": "已完成 ",
|
|
1246
|
+
"system prompt": "系统提示",
|
|
1247
|
+
"user messages": "用户消息",
|
|
1248
|
+
"tool results": "工具结果",
|
|
1249
|
+
"Memory profile — {n} MB across the forms a session holds": "内存概况 — 会话各种形态共 {n} MB",
|
|
1250
|
+
" content (session.messages)": " 内容(session.messages)",
|
|
1251
|
+
" transcript (display-only, on disk)": " 对话记录(仅显示,在磁盘上)",
|
|
1252
|
+
"of which >=16 KB:": "其中 >=16 KB:",
|
|
1253
|
+
"largest row:": "最大行:",
|
|
1254
|
+
" other copies held at the same time": " 同时持有的其它副本",
|
|
1255
|
+
" as one JSON document (a different measure of the same data)": " 作为单个 JSON 文档(同一数据的另一种度量)",
|
|
1256
|
+
" (structure is larger than the content — that is normal for many short messages)": " (结构大于内容,很多短消息时这很正常)",
|
|
1257
|
+
" tool arguments by tool": " 各工具的工具参数",
|
|
1258
|
+
"tool arguments": "工具参数",
|
|
1259
|
+
"all rows": "全部行",
|
|
1260
|
+
"state.chat (render)": "state.chat(渲染)",
|
|
1261
|
+
"serialised size": "序列化大小",
|
|
1262
|
+
"structure + escapes": "结构 + 转义",
|
|
1263
|
+
"agent task": "agent 任务",
|
|
1264
|
+
"question task": "问答任务",
|
|
1265
|
+
"bash task": "bash 任务",
|
|
1266
|
+
"started in background": "已在后台启动",
|
|
1267
|
+
"completed in background": "已在后台完成",
|
|
1268
|
+
"failed in background": "在后台失败",
|
|
1269
|
+
"stopped": "已停止",
|
|
1270
|
+
"session restarted before completion": "会话在完成前重启了",
|
|
1271
|
+
"Agent Swarm": "Agent 群组",
|
|
1272
|
+
"context": "上下文",
|
|
1273
|
+
"Session usage": "会话用量",
|
|
1274
|
+
"messages": "消息数",
|
|
1275
|
+
"requests": "请求数",
|
|
1276
|
+
"input tokens": "输入 token",
|
|
1277
|
+
"output tokens": "输出 token",
|
|
1278
|
+
"reasoning": "推理",
|
|
1279
|
+
"total tokens": "token 总量",
|
|
1280
|
+
"est. cost": "预估费用",
|
|
1281
|
+
"approx tokens": "约计 token",
|
|
1282
|
+
"token totals": "token 总计",
|
|
1283
|
+
"Context window": "上下文窗口",
|
|
1284
|
+
"used": "已用",
|
|
1285
|
+
"Where it goes": "token 去向",
|
|
1286
|
+
"conversation": "对话",
|
|
1287
|
+
"tool schemas": "工具定义",
|
|
1288
|
+
"assistant": "模型回答",
|
|
1289
|
+
"thinking": "思考",
|
|
1290
|
+
"setting.label.lang": { zh: "界面语言" },
|
|
1291
|
+
"setting.hint.lang": { zh: "终端界面使用的语言。模型读到的仍然是英文" },
|
|
1292
|
+
"setting.label.thinking_tags": { zh: "行内推理标签" },
|
|
1293
|
+
"setting.hint.thinking_tags": { zh: "要求模型把推理包在 <|thinking|> 标签里。auto 表示只对没有独立推理通道的模型生效" },
|
|
1294
|
+
// ---- user-visible notices and panel labels ----
|
|
1295
|
+
"Activated skill: ": "已激活技能:",
|
|
1296
|
+
"Clipboard unavailable: ": "剪贴板不可用:",
|
|
1297
|
+
"Config problems:": "配置问题:",
|
|
1298
|
+
"Could not clear ": "无法清除 ",
|
|
1299
|
+
"Could not read ": "无法读取 ",
|
|
1300
|
+
"Could not write ": "无法写入 ",
|
|
1301
|
+
"Could not write config.toml: ": "无法写入 config.toml:",
|
|
1302
|
+
"Could not write: ": "无法写入:",
|
|
1303
|
+
"Discovered tools:": "发现的工具:",
|
|
1304
|
+
"Files touched": "改动过的文件",
|
|
1305
|
+
"Interface language: English": "界面语言:English",
|
|
1306
|
+
"No commits yet.": "还没有提交。",
|
|
1307
|
+
"No Markdown files found in ": "没有找到 Markdown 文件:",
|
|
1308
|
+
"No pricing for this model.": "这个模型没有价格信息。",
|
|
1309
|
+
"No saved plans yet. Approve a plan in Plan mode to save it.": "还没有保存的计划。在计划模式下批准一个计划即可保存。",
|
|
1310
|
+
"No staged changes.": "没有已暂存的改动。",
|
|
1311
|
+
"No subagent is running.": "没有正在运行的子 agent。",
|
|
1312
|
+
"No uncommitted changes.": "没有未提交的改动。",
|
|
1313
|
+
"Not a file: ": "不是文件:",
|
|
1314
|
+
"ON (read-only planning)": "开(只读规划)",
|
|
1315
|
+
"ON (Read/Write/Edit/Bash only)": "开(只有 Read/Write/Edit/Bash)",
|
|
1316
|
+
"Pasted image": "已粘贴图片",
|
|
1317
|
+
"Rebase complete.": "rebase 完成。",
|
|
1318
|
+
"Save failed: ": "保存失败:",
|
|
1319
|
+
"Search: ": "搜索:",
|
|
1320
|
+
"Skill imported": "技能已导入",
|
|
1321
|
+
"Skill overwritten": "技能已覆盖",
|
|
1322
|
+
"Stash popped.": "已 pop stash。",
|
|
1323
|
+
"Summary: ": "摘要:",
|
|
1324
|
+
"Switch back with /cost usd.": "用 /cost usd 切回去。",
|
|
1325
|
+
"That Markdown file is empty: ": "那个 Markdown 文件是空的:",
|
|
1326
|
+
"The agent is waiting for permission to run ": "agent 正在等待运行许可:",
|
|
1327
|
+
"Tools used": "用到的工具",
|
|
1328
|
+
"Update check failed: ": "更新检查失败:",
|
|
1329
|
+
"Update check: ": "更新检查:",
|
|
1330
|
+
"Web UI is not running.": "Web UI 没有运行。",
|
|
1331
|
+
"Web UI stopped (this session is no longer listed).": "Web UI 已停止(本会话已不在列表里)。",
|
|
1332
|
+
"OFF": "关",
|
|
1333
|
+
"OFF (all tools)": "关(全部工具)",
|
|
1334
|
+
"Interface language: 中文": "界面语言:中文",
|
|
1335
|
+
"Ctrl+G: send a line to this command": "Ctrl+G:给这个命令发送一行输入",
|
|
1336
|
+
// ---- the /doctor report and the plan review panel ----
|
|
1337
|
+
"Restart, or check the server command.": "重启,或检查服务端命令",
|
|
1338
|
+
"Fix the command/URL in /mcp-config.": "在 /mcp-config 里修正命令/URL",
|
|
1339
|
+
"No problems found.": "没有发现问题",
|
|
1340
|
+
"Run /doctor --all to include the passing checks.": "运行 /doctor --all 以包含通过的检查",
|
|
1341
|
+
"Run /model.": "运行 /model",
|
|
1342
|
+
"Files this plan will touch:": "这个计划会改动的文件:",
|
|
1343
|
+
"No specific files named in the plan.": "计划里没有点名具体文件",
|
|
1344
|
+
"Steps: ": "步骤:",
|
|
1345
|
+
"Lines: ": "行数:",
|
|
1346
|
+
"Files mentioned: ": "涉及文件:",
|
|
1347
|
+
"Enter = approve & execute e = edit the plan Esc = keep planning": "Enter = 批准并执行 e = 编辑计划 Esc = 继续规划",
|
|
1348
|
+
"… and ": "… 另有 ",
|
|
1349
|
+
" more": " 个",
|
|
1350
|
+
"Press Ctrl+B to run in background": "按 Ctrl+B 转到后台运行",
|
|
1351
|
+
"Categories: ": "分类:",
|
|
1352
|
+
"Experiment": "实验",
|
|
1353
|
+
"ON": "开",
|
|
1354
|
+
// ---- multi-line command panels ----
|
|
1355
|
+
"Auto-trim OFF — tool results are sent in full (use /trim to elide them once)": "自动裁剪已关 — 工具结果完整发送(用 /trim 手动裁剪一次)",
|
|
1356
|
+
"No additional directories.": "没有额外目录",
|
|
1357
|
+
"Config reloaded.": "配置已重新加载",
|
|
1358
|
+
"Prompt caching disabled — every request sends the full prompt as fresh input.": "提示缓存已关 — 每次请求都把完整提示作为新输入发送",
|
|
1359
|
+
"Sampling parameters": "采样参数",
|
|
1360
|
+
"OpenAI-compatible only": "仅限 OpenAI 兼容接口",
|
|
1361
|
+
"No saved sessions.": "没有保存的会话",
|
|
1362
|
+
"Swarm mode ON - the model will decompose work across parallel subagents (AgentSwarm)": "Swarm 模式开 — 模型会把工作拆分给并行子 agent(AgentSwarm)",
|
|
1363
|
+
"Auto title: ON — the first message names the session.": "自动标题开 — 用第一条消息给会话命名",
|
|
1364
|
+
"PTC mode: ON — the model gets only the PTC tool and reaches everything else through its sandbox.": "PTC 模式开 — 模型只有 PTC 一个工具,其余全通过它的沙箱访问",
|
|
1365
|
+
"External paths: ON — tools may read and write outside the workspace.": "外部路径开 — 工具可以读写工作区之外",
|
|
1366
|
+
"Access token (paste it into the login page):": "访问令牌(粘贴到登录页):",
|
|
1367
|
+
"Anyone with this token can run commands as you. Stop this session with": "拿到这个令牌的人可以以你的身份运行命令。停止本会话用",
|
|
1368
|
+
"Raw mode: ON — replies shown exactly as the model sent them.": "原始模式开 — 按模型发来的原样显示回复",
|
|
1369
|
+
"Reduced motion: ON — animation is replaced by a slow-breathing dot.": "减弱动效开 — 动画换成缓慢呼吸的点",
|
|
1370
|
+
"Auto-update ON — checks npm at startup and every 30 min, installs in the background": "自动更新开 — 启动时检查 npm,之后每 30 分钟一次,后台安装",
|
|
1371
|
+
"What travels: the conversation, with paths rewritten.": "会带走的:整个对话,路径已重写",
|
|
1372
|
+
"What does not: background jobs, token totals, and session approvals —": "不会带走的:后台任务、token 统计、会话内的批准记录 —",
|
|
1373
|
+
"Move it with scp/ssh, then on the other side:": "用 scp/ssh 传过去,然后在另一边:",
|
|
1374
|
+
"The machine-wide daemon is unavailable, so this session is served": "全局守护进程不可用,因此本会话直接由",
|
|
1375
|
+
"The root page lists every workspace and session — running ones live,": "首页列出所有工作区和会话 — 运行中的会实时更新,",
|
|
1376
|
+
"read-only tools and read-only shell commands run automatically; everything else asks": "只读工具和只读 shell 命令自动运行,其他一律先问",
|
|
1377
|
+
"never asks and never waits for approval: everything runs and is decided automatically (an explicit deny or ask rule still wins)": "从不询问也不等待批准:全部自动运行并自行决定(显式的 deny 或 ask 规则仍然优先)",
|
|
1378
|
+
"Nothing to background — no command is running in the foreground": "没有可转后台的 — 前台没有正在运行的命令",
|
|
1379
|
+
"Nothing to background — the agent is idle": "没有可转后台的 — agent 空闲",
|
|
1380
|
+
"Input goes to the running command (Ctrl+G to stop)": "输入会发给正在运行的命令(Ctrl+G 停止)",
|
|
1381
|
+
"Input goes back to the model": "输入回到模型",
|
|
1382
|
+
"Staged changes": "已暂存的改动",
|
|
1383
|
+
"Uncommitted changes": "未提交的改动",
|
|
1384
|
+
"Calm mode": "Calm 模式",
|
|
1385
|
+
"ON — the model will keep explanations to a minimum": "开 — 模型会尽量少解释",
|
|
1386
|
+
"Yes, for this session": "是,仅本会话",
|
|
1387
|
+
"Yes, and remember this directory": "是,并记住这个目录",
|
|
1388
|
+
"No": "否",
|
|
1389
|
+
"Add directory to workspace": "把目录加入工作区",
|
|
1390
|
+
"Directory does not exist": "目录不存在",
|
|
1391
|
+
"Saved": "已保存",
|
|
1392
|
+
"key": "个密钥",
|
|
1393
|
+
"The next search uses them.": "下次搜索就会用它们",
|
|
1394
|
+
"Nothing is set away from its default.": "没有任何项被改成非默认值",
|
|
1395
|
+
"Browse everything with /settings,": "用 /settings 浏览全部,",
|
|
1396
|
+
"or set one directly: /set <key> <value>": "或直接设置:/set <key> <value>",
|
|
1397
|
+
"WebSearch keys cleared — searches use keyless mode (rate-limited per IP).": "WebSearch 密钥已清除 — 搜索改用无密钥模式(按 IP 限流)",
|
|
1398
|
+
"cost": "费用",
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
// The UI's active language, shared with the render modules (rows, panels, file tree)
|
|
1402
|
+
// that draw strings which are not notices and have no tui.js key at their call site.
|
|
1403
|
+
// tui.js's setUiLang updates this; a getter keeps every renderer on the same source.
|
|
1404
|
+
let uiLang = 'en';
|
|
1405
|
+
export function setUiLang(lang) { uiLang = lang === 'zh' ? 'zh' : 'en'; }
|
|
1406
|
+
export function getUiLang() { return uiLang; }
|
|
1407
|
+
|
|
1408
|
+
/** Translate a line rendered OUTSIDE tui.js using the UI's active language. */
|
|
1409
|
+
export function uiText(text) {
|
|
1410
|
+
const s = String(text == null ? '' : text);
|
|
1411
|
+
if (uiLang !== 'zh') return s;
|
|
1412
|
+
// Direct hit first — the common case for fixed labels.
|
|
1413
|
+
if (NOTICE_ZH[s]) return NOTICE_ZH[s];
|
|
1414
|
+
// Numbers and quoted values vary; normalise both to placeholders and look up the
|
|
1415
|
+
// pattern. The translation carries the same placeholders, filled back with the
|
|
1416
|
+
// originals in order.
|
|
1417
|
+
const vars = [];
|
|
1418
|
+
const key = s
|
|
1419
|
+
.replace(/"[^"]*"/g, (m) => { vars.push(m); return '{s}'; })
|
|
1420
|
+
.replace(/\d+/g, (m) => { vars.push(m); return '{n}'; });
|
|
1421
|
+
const pattern = NOTICE_ZH[key];
|
|
1422
|
+
if (!pattern) return s;
|
|
1423
|
+
let i = 0;
|
|
1424
|
+
return pattern.replace(/\{[sn]\}/g, () => vars[i++] || '');
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
/** Translate a final, non-templated notice string. Unknown text comes back unchanged. */
|
|
1428
|
+
export function noticeText(lang, text) {
|
|
1429
|
+
if (lang !== 'zh') return text;
|
|
1430
|
+
return NOTICE_ZH[text] || text;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/** The whole table for one language, as a flat { key: string } map. */
|
|
1434
|
+
export function catalog(lang) {
|
|
1435
|
+
const out = {};
|
|
1436
|
+
for (const key of Object.keys(MESSAGES)) out[key] = t(lang, key);
|
|
1437
|
+
return out;
|
|
1438
|
+
}
|