@nbtca/prompt 1.5.16 → 1.5.18

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.
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "back": "Back",
4
- "exit": "Exit",
5
4
  "cancel": "Cancel",
6
- "confirm": "Confirm",
7
5
  "loading": "Loading...",
8
6
  "error": "Error",
9
7
  "success": "Success",
@@ -11,7 +9,7 @@
11
9
  "current": "current",
12
10
  "moreAbove": "{count} more above",
13
11
  "moreBelow": "{count} more below",
14
- "offline": "Offline, showing last fetched data"
12
+ "offline": "Offline, showing cached data"
15
13
  },
16
14
  "help": {
17
15
  "title": "Keys",
@@ -37,16 +35,15 @@
37
35
  "status": "Status",
38
36
  "statusDesc": "Online status",
39
37
  "timetable": "My Timetable",
40
- "timetableDesc": "Sign in to JWXT, choose a term and export ICS",
38
+ "timetableDesc": "Log in to JWXT, choose a term and export ICS",
41
39
  "links": "Links",
42
- "linksDesc": "website · GitHub · roadmap",
43
40
  "settings": "Settings",
44
- "settingsDesc": "language · theme · about",
45
41
  "chooseAction": "nbtca",
46
42
  "hintMove": "move",
47
43
  "hintTabs": "switch",
48
44
  "hintBack": "back",
49
45
  "hintOpen": "open",
46
+ "hintConfirm": "confirm",
50
47
  "hintQuit": "quit"
51
48
  },
52
49
  "about": {
@@ -76,7 +73,7 @@
76
73
  "viewDetail": "Select an event for details:",
77
74
  "noDescription": "No additional details",
78
75
  "heatmap": {
79
- "title": "Activity (last 12 months)",
76
+ "title": "Activity (Last 12 Months)",
80
77
  "legendLess": "Less",
81
78
  "legendMore": "More"
82
79
  },
@@ -95,8 +92,9 @@
95
92
  "thisMonth": "This Month",
96
93
  "search": "Search",
97
94
  "searchPrompt": "Search events",
98
- "searchPlaceholder": "keyword…",
95
+ "searchPlaceholder": "Enter keyword...",
99
96
  "searchNoResults": "No matching events",
97
+ "searchResultsTitle": "Results for “{query}” {sep} {count}",
100
98
  "exportIcs": "Export .ics",
101
99
  "exportSuccess": "Saved",
102
100
  "exportError": "Could not write the .ics file",
@@ -108,7 +106,9 @@
108
106
  "days": "{days}d {hours}h",
109
107
  "hours": "{hours}h {minutes}m",
110
108
  "minutes": "{minutes}m"
111
- }
109
+ },
110
+ "offlineError": "Couldn't load the events calendar. You may be offline.",
111
+ "retry": "Retry"
112
112
  },
113
113
  "docs": {
114
114
  "loading": "Loading documentation list...",
@@ -141,11 +141,12 @@
141
141
  "opening": "Opening browser...",
142
142
  "browserOpened": "Knowledge base opened in browser",
143
143
  "browserError": "Failed to open browser",
144
+ "browserErrorManual": "Failed to open browser. Open manually: {url}",
144
145
  "retry": "Retry?",
145
146
  "tocTitle": "Table of Contents",
146
147
  "tableHint": "diagrams and tables render better in browser",
147
148
  "mermaidHint": "open in browser to view",
148
- "endOfDocument": "end of document · q quit · / search",
149
+ "endOfDocument": "end of document {sep} q quit {sep} / search",
149
150
  "githubRateLimited": "GitHub API rate limit reached. Resets at {time}.",
150
151
  "githubForbidden": "GitHub API access denied (403).",
151
152
  "githubTokenHint": "Tip: set GITHUB_TOKEN for a higher rate limit.",
@@ -159,7 +160,12 @@
159
160
  "loadingFile": "Loading",
160
161
  "readerLinksTitle": "Jump to",
161
162
  "readerLinksHint": "links",
162
- "readerNoLinks": "This page has no links to other docs"
163
+ "readerNoLinks": "This page has no links to other docs",
164
+ "offlineError": "Couldn't load the docs. You may be offline.",
165
+ "offlineHint": "Try again later, or read them at https://docs.nbtca.space",
166
+ "retryLoad": "Retry",
167
+ "searchResultsTitle": "Results for “{query}” {sep} {count}",
168
+ "searchProgress": "Searching every document: {done} of {total} checked"
163
169
  },
164
170
  "links": {
165
171
  "choose": "Links",
@@ -209,8 +215,8 @@
209
215
  "menuTitle": "My Timetable",
210
216
  "actionExport": "Export ICS",
211
217
  "actionTerms": "List terms",
212
- "actionLogin": "Sign in or refresh session",
213
- "actionLogout": "Sign out",
218
+ "actionLogin": "Log in or refresh session",
219
+ "actionLogout": "Log out",
214
220
  "actionStatus": "Login status",
215
221
  "termPrompt": "Term code",
216
222
  "termPromptHint": "Leave empty for current, for example 2026:3",
@@ -224,7 +230,7 @@
224
230
  "sessionRefreshFailed": "The operation completed, but the saved session expiry could not be refreshed.",
225
231
  "candidateTerms": "Candidate JWXT terms (not every term necessarily has a personal timetable):",
226
232
  "semesterNumber": "Semester {number}",
227
- "expiredRelogin": "The saved login session expired. Please sign in again.",
233
+ "expiredRelogin": "The saved login session expired. Please log in again.",
228
234
  "studentId": "Student id",
229
235
  "studentIdHint": "Sent only to the school authentication service",
230
236
  "password": "Password",
@@ -242,7 +248,7 @@
242
248
  "accountLocked": "The account is temporarily locked. Try later or use the official school page.",
243
249
  "accountInactive": "The account is inactive. Activate it on the official school page first.",
244
250
  "challenge": "The school requires a slider or browser challenge; CLI login stopped safely.",
245
- "sessionExpired": "The login session expired. Please sign in again.",
251
+ "sessionExpired": "The login session expired. Please log in again.",
246
252
  "timeout": "The school service timed out.",
247
253
  "network": "Could not connect to the school service.",
248
254
  "profileIncomplete": "The school wants this account's profile completed first; finish it in a browser, then try again.",
@@ -281,7 +287,7 @@
281
287
  "semester2": "Term 2",
282
288
  "weekLabel2": "Week {week}",
283
289
  "academicYearSuffix": "{year}",
284
- "onBreak": "On break · {title}",
290
+ "onBreak": "On break {sep} {title}",
285
291
  "publicUnavailable": "Academic calendar not available yet",
286
292
  "daysUntilBreak": "{days} days until {title}",
287
293
  "publicLoginAction": "Log in to see my timetable",
@@ -294,16 +300,22 @@
294
300
  "weekdayFri": "Fri",
295
301
  "weekdaySat": "Sat",
296
302
  "weekdaySun": "Sun",
297
- "todayHeading": "Today · {weekday} · Week {week}",
303
+ "todayHeading": "Today {sep} {weekday} {sep} Week {week}",
298
304
  "classDone": "Done",
299
305
  "classLive": "In progress",
300
306
  "minutesRemaining": "{minutes} min left",
301
307
  "timelineEnd": "End of day",
302
308
  "termNotStarted": "Term hasn't started yet",
303
- "termStartsIn": "Classes begin {date} · {days} days to go",
309
+ "termStartsIn": "Classes begin {date} {sep} {days} days to go",
304
310
  "hubTermDensity": "Term density",
305
311
  "termDensityTitle": "Term density",
306
312
  "termDensityThisWeek": "This week",
313
+ "termDensityWeeks": "{weeks} weeks",
314
+ "termDensityPerWeek": "{periods} periods a week",
315
+ "termDensityFreeWeeks": "{count} without classes",
316
+ "termDensityCurrent": "{periods} this week",
317
+ "termDensityEmpty": "No classes scheduled this term",
318
+ "exportSaved": "Saved: {path}",
307
319
  "weekOverviewTitle": "Week overview",
308
320
  "weekAheadClasses": "Classes",
309
321
  "weekAheadBusy": "Busy",
@@ -339,13 +351,18 @@
339
351
  "modeOn": "On",
340
352
  "modeOff": "Off",
341
353
  "backToMenu": "Back to menu",
342
- "iconMode": "Icon mode",
343
- "colorMode": "Color mode",
354
+ "iconMode": "Icon Mode",
355
+ "colorMode": "Color Mode",
344
356
  "updated": "Theme setting updated",
345
357
  "updatedSessionOnly": "Theme setting updated for this session only (failed to save config)",
346
358
  "reset": "Theme settings reset",
347
- "resetLabel": "Reset to defaults",
359
+ "resetLabel": "Reset to Defaults",
348
360
  "resetSessionOnly": "Theme settings reset for this session only (failed to save config)",
361
+ "resetConfirm": "Reset icon mode and color mode to their defaults?",
362
+ "iconUpdated": "Icon mode updated",
363
+ "iconUpdatedSessionOnly": "Icon mode changed for this session only (failed to save config)",
364
+ "colorUpdated": "Color mode updated",
365
+ "colorUpdatedSessionOnly": "Color mode changed for this session only (failed to save config)",
349
366
  "usage": "Usage: nbtca theme | nbtca theme icon <auto|ascii|unicode> | nbtca theme color <auto|on|off> | nbtca theme reset",
350
367
  "invalidValue": "Invalid value. Use one of:"
351
368
  },
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "back": "返回",
4
- "exit": "退出",
5
4
  "cancel": "取消",
6
- "confirm": "确认",
7
5
  "loading": "加载中...",
8
6
  "error": "错误",
9
7
  "success": "成功",
@@ -39,14 +37,13 @@
39
37
  "timetable": "我的课表",
40
38
  "timetableDesc": "登录教务、查询学期并导出 ICS",
41
39
  "links": "链接",
42
- "linksDesc": "官网 · GitHub · 路线图",
43
40
  "settings": "设置",
44
- "settingsDesc": "语言 · 主题 · 关于",
45
41
  "chooseAction": "nbtca",
46
42
  "hintMove": "移动",
47
43
  "hintTabs": "切换",
48
44
  "hintBack": "返回",
49
45
  "hintOpen": "打开",
46
+ "hintConfirm": "确认",
50
47
  "hintQuit": "退出"
51
48
  },
52
49
  "about": {
@@ -73,7 +70,7 @@
73
70
  "untitledEvent": "未命名活动",
74
71
  "tbdLocation": "待定",
75
72
  "subscribeHint": "订阅日历",
76
- "viewDetail": "选择活动查看详情:",
73
+ "viewDetail": "选择活动查看详情:",
77
74
  "noDescription": "暂无详细信息",
78
75
  "heatmap": {
79
76
  "title": "近一年活跃度",
@@ -84,7 +81,7 @@
84
81
  "pastEvents": "历史活动",
85
82
  "pastEventsDesc": "近期活动记录",
86
83
  "noPastEvents": "近一年没有已结束的活动",
87
- "viewPastDetail": "选择活动查看详情:",
84
+ "viewPastDetail": "选择活动查看详情:",
88
85
  "next": "下一场",
89
86
  "recentActivity": "近期安排",
90
87
  "browse": "浏览",
@@ -95,8 +92,9 @@
95
92
  "thisMonth": "本月",
96
93
  "search": "搜索",
97
94
  "searchPrompt": "搜索活动",
98
- "searchPlaceholder": "关键词…",
95
+ "searchPlaceholder": "输入关键词...",
99
96
  "searchNoResults": "没有匹配的活动",
97
+ "searchResultsTitle": "“{query}”的搜索结果 {sep} {count} 场",
100
98
  "exportIcs": "导出 .ics",
101
99
  "exportSuccess": "已保存",
102
100
  "exportError": "无法写入 .ics 文件",
@@ -108,7 +106,9 @@
108
106
  "days": "{days} 天 {hours} 小时",
109
107
  "hours": "{hours} 小时 {minutes} 分钟",
110
108
  "minutes": "{minutes} 分钟"
111
- }
109
+ },
110
+ "offlineError": "无法获取活动日历,可能是网络没有连接。",
111
+ "retry": "重试"
112
112
  },
113
113
  "docs": {
114
114
  "loading": "正在加载文档列表...",
@@ -141,16 +141,17 @@
141
141
  "opening": "正在打开浏览器...",
142
142
  "browserOpened": "已在浏览器中打开知识库",
143
143
  "browserError": "无法打开浏览器",
144
+ "browserErrorManual": "无法打开浏览器,请手动打开:{url}",
144
145
  "retry": "是否重试?",
145
146
  "tocTitle": "目录",
146
147
  "tableHint": "图表与表格在浏览器中效果更佳",
147
148
  "mermaidHint": "在浏览器中查看图表",
148
- "endOfDocument": "文档结束 · q 退出 · / 搜索",
149
+ "endOfDocument": "文档结束 {sep} q 退出 {sep} / 搜索",
149
150
  "githubRateLimited": "GitHub API 速率限制已达上限,将在 {time} 重置。",
150
151
  "githubForbidden": "GitHub API 拒绝访问 (403)。",
151
- "githubTokenHint": "提示: 设置 GITHUB_TOKEN 环境变量可获得更高的速率限制。",
152
- "fetchDirFailed": "无法获取目录内容: {error}",
153
- "fetchFileFailed": "无法获取文件内容: {error}",
152
+ "githubTokenHint": "提示:设置 GITHUB_TOKEN 环境变量可获得更高的速率限制。",
153
+ "fetchDirFailed": "无法获取目录内容:{error}",
154
+ "fetchFileFailed": "无法获取文件内容:{error}",
154
155
  "searchPrompt": "搜索文档",
155
156
  "searchPlaceholder": "输入关键词...",
156
157
  "searching": "正在搜索文档...",
@@ -159,7 +160,12 @@
159
160
  "loadingFile": "正在加载",
160
161
  "readerLinksTitle": "跳转到",
161
162
  "readerLinksHint": "链接",
162
- "readerNoLinks": "本页没有指向其他文档的链接"
163
+ "readerNoLinks": "本页没有指向其他文档的链接",
164
+ "offlineError": "无法加载文档目录,可能是网络没有连接。",
165
+ "offlineHint": "请稍后重试,或者到 https://docs.nbtca.space 阅读",
166
+ "retryLoad": "重试",
167
+ "searchResultsTitle": "“{query}”的搜索结果 {sep} {count} 篇",
168
+ "searchProgress": "正在逐篇检索文档,已检索 {done} / {total} 篇"
163
169
  },
164
170
  "links": {
165
171
  "choose": "链接",
@@ -170,7 +176,7 @@
170
176
  "opening": "正在打开...",
171
177
  "opened": "已在浏览器中打开",
172
178
  "error": "无法打开浏览器",
173
- "openManually": "请手动打开: {url}"
179
+ "openManually": "请手动打开:{url}"
174
180
  },
175
181
  "status": {
176
182
  "checking": "正在检查服务状态...",
@@ -281,7 +287,7 @@
281
287
  "semester2": "第二学期",
282
288
  "weekLabel2": "第 {week} 周",
283
289
  "academicYearSuffix": "{year}学年",
284
- "onBreak": "假期中 · {title}",
290
+ "onBreak": "假期中 {sep} {title}",
285
291
  "publicUnavailable": "校历数据暂不可用",
286
292
  "daysUntilBreak": "距离{title}还有 {days} 天",
287
293
  "publicLoginAction": "登录查看我的课表",
@@ -294,16 +300,22 @@
294
300
  "weekdayFri": "五",
295
301
  "weekdaySat": "六",
296
302
  "weekdaySun": "日",
297
- "todayHeading": "今日 · 周{weekday} · 第{week}教学周",
303
+ "todayHeading": "今日 {sep} 周{weekday} {sep} 第 {week} 教学周",
298
304
  "classDone": "已结束",
299
305
  "classLive": "进行中",
300
306
  "minutesRemaining": "还剩 {minutes} 分钟",
301
307
  "timelineEnd": "放学",
302
308
  "termNotStarted": "本学期尚未开始",
303
- "termStartsIn": "{date} 开学 · 还有 {days} 天",
309
+ "termStartsIn": "{date} 开学 {sep} 还有 {days} 天",
304
310
  "hubTermDensity": "学期活跃度",
305
311
  "termDensityTitle": "学期活跃度",
306
312
  "termDensityThisWeek": "本周",
313
+ "termDensityWeeks": "共 {weeks} 周",
314
+ "termDensityPerWeek": "每周 {periods} 节",
315
+ "termDensityFreeWeeks": "其中 {count} 周无课",
316
+ "termDensityCurrent": "本周 {periods} 节",
317
+ "termDensityEmpty": "本学期还没有课程安排",
318
+ "exportSaved": "已保存:{path}",
307
319
  "weekOverviewTitle": "本周概览",
308
320
  "weekAheadClasses": "课程",
309
321
  "weekAheadBusy": "较满",
@@ -346,8 +358,13 @@
346
358
  "reset": "主题设置已重置",
347
359
  "resetLabel": "恢复默认",
348
360
  "resetSessionOnly": "主题设置仅在当前会话重置(无法写入配置文件)",
361
+ "resetConfirm": "把图标模式和颜色模式恢复为默认值?",
362
+ "iconUpdated": "图标模式已更新",
363
+ "iconUpdatedSessionOnly": "图标模式仅在当前会话生效(无法写入配置文件)",
364
+ "colorUpdated": "颜色模式已更新",
365
+ "colorUpdatedSessionOnly": "颜色模式仅在当前会话生效(无法写入配置文件)",
349
366
  "usage": "用法: nbtca theme | nbtca theme icon <auto|ascii|unicode> | nbtca theme color <auto|on|off> | nbtca theme reset",
350
- "invalidValue": "无效取值,可选:"
367
+ "invalidValue": "无效取值,可选:"
351
368
  },
352
369
  "language": {
353
370
  "selectLanguage": "语言",
@@ -357,10 +374,10 @@
357
374
  "changedSessionOnly": "语言仅在当前会话生效(无法写入配置文件)"
358
375
  },
359
376
  "update": {
360
- "available": "有新版本可用: {current} → {latest}",
361
- "upToDate": "已是最新版本 ({version})",
377
+ "available": "有新版本可用:{current} → {latest}",
378
+ "upToDate": "已是最新版本({version})",
362
379
  "checkFailed": "无法检查更新",
363
- "command": "运行: npm i -g @nbtca/prompt"
380
+ "command": "运行:npm i -g @nbtca/prompt"
364
381
  },
365
382
  "cli": {
366
383
  "usage": "用法:",
@@ -397,16 +414,16 @@
397
414
  "flagTerm": "选择学年学期(例如 2026:3)",
398
415
  "flagOutput": "ICS 输出路径",
399
416
  "flagWeekOne": "第一教学周周一(教务未返回日期时使用)",
400
- "unknownCommand": "未知命令: {command}",
417
+ "unknownCommand": "未知命令:{command}",
401
418
  "unknownCommandHint": "运行 `nbtca --help` 查看可用命令。",
402
- "unknownFlag": "未知选项: {flag}",
419
+ "unknownFlag": "未知选项:{flag}",
403
420
  "unknownFlagHint": "运行 `nbtca --help` 查看可用选项。",
404
421
  "invalidFlag": "选项 {flag} 对此命令无效。",
405
422
  "invalidFlagHint": "运行 `nbtca --help` 查看命令用法。",
406
423
  "invalidLang": "无效语言。请使用 `zh` 或 `en`。",
407
424
  "invalidNext": "无效的 --next 值。请使用 --next=<数字>(>= 1)。",
408
425
  "eventsHeatmapConflict": "--heatmap 不能与 --today、--week、--month、--next 或 --search 同时使用。",
409
- "eventsRangeConflict": "活动时间范围只能选择一个: --today、--week 或 --month。",
426
+ "eventsRangeConflict": "活动时间范围只能选择一个:--today、--week 或 --month。",
410
427
  "unexpectedArguments": "{command} 不接受多余参数。",
411
428
  "requiresTty": "交互模式需要 TTY 终端。",
412
429
  "requiresTtyHint": "使用 `nbtca --help` 查看命令模式。"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbtca/prompt",
3
- "version": "1.5.16",
3
+ "version": "1.5.18",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -46,7 +46,7 @@
46
46
  "interactive"
47
47
  ],
48
48
  "dependencies": {
49
- "@nbtca/docs": "^0.3.2",
49
+ "@nbtca/docs": "^0.3.4",
50
50
  "@nbtca/nbtcal": "^0.4.3",
51
51
  "chalk": "^5.6.2",
52
52
  "marked": "^15.0.12"