@skillre/dsh-plugin-work-dashboard 0.0.0-stage → 0.6.0

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.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +253 -0
  3. package/README.md +347 -2
  4. package/UNINSTALL.md +7 -0
  5. package/compatibility.json +155 -0
  6. package/cordis.patch.yml +24 -0
  7. package/docs/DESIGN-0.3.md +122 -0
  8. package/docs/DETAIL.md +1 -0
  9. package/docs/DETAIL.zh.md +1 -0
  10. package/docs/preview.svg +254 -0
  11. package/docs/preview.zh.svg +254 -0
  12. package/icon.svg +17 -0
  13. package/lib/client/api.d.ts +35 -0
  14. package/lib/client/api.js +44 -0
  15. package/lib/client/contracts.d.ts +94 -0
  16. package/lib/client/contracts.js +21 -0
  17. package/lib/client/css/base.d.ts +31 -0
  18. package/lib/client/css/base.js +422 -0
  19. package/lib/client/css/charts.d.ts +14 -0
  20. package/lib/client/css/charts.js +191 -0
  21. package/lib/client/css/detail.d.ts +21 -0
  22. package/lib/client/css/detail.js +399 -0
  23. package/lib/client/css/insights.d.ts +27 -0
  24. package/lib/client/css/insights.js +660 -0
  25. package/lib/client/css/overview.d.ts +22 -0
  26. package/lib/client/css/overview.js +338 -0
  27. package/lib/client/preferences.d.ts +56 -0
  28. package/lib/client/preferences.js +118 -0
  29. package/lib/client/styles.d.ts +17 -0
  30. package/lib/client/styles.js +22 -0
  31. package/lib/client/text.d.ts +32 -0
  32. package/lib/client/text.js +934 -0
  33. package/lib/client/view-contract.d.ts +110 -0
  34. package/lib/client/view-contract.js +28 -0
  35. package/lib/client.js +5389 -0
  36. package/lib/config.d.ts +61 -0
  37. package/lib/config.js +67 -0
  38. package/lib/gap.d.ts +60 -0
  39. package/lib/gap.js +227 -0
  40. package/lib/index.d.ts +40 -0
  41. package/lib/index.js +130 -0
  42. package/lib/repo.d.ts +124 -0
  43. package/lib/repo.js +407 -0
  44. package/lib/risks.d.ts +24 -0
  45. package/lib/risks.js +85 -0
  46. package/lib/skill.d.ts +94 -0
  47. package/lib/skill.js +220 -0
  48. package/lib/store.d.ts +63 -0
  49. package/lib/store.js +494 -0
  50. package/lib/timeline.d.ts +23 -0
  51. package/lib/timeline.js +93 -0
  52. package/lib/transport.d.ts +61 -0
  53. package/lib/transport.js +121 -0
  54. package/lib/types.d.ts +612 -0
  55. package/lib/types.js +62 -0
  56. package/locale/en.json +7 -0
  57. package/locale/zh.json +7 -0
  58. package/package.json +117 -4
  59. package/skills/poc-export/SKILL.md +81 -0
  60. package/skills/poc-export/scripts/export-form.mjs +654 -0
  61. package/skills/poc-ledger/SKILL.md +171 -0
  62. package/skills/poc-submit/SKILL.md +186 -0
@@ -0,0 +1,934 @@
1
+ /**
2
+ * Client dictionaries.
3
+ *
4
+ * Two locales ship with the bundle: Simplified Chinese (the authoring language
5
+ * and the language the ledger itself is written in) and English. Keys are flat
6
+ * and dot-namespaced, resolved through the shared `locale` service, so switching
7
+ * the GUI language re-renders the console without a reload.
8
+ *
9
+ * Rule and dimension copy is keyed by the stable ids the Host sends
10
+ * (`gap.G0-why-customer.title`, `dim.evidence`) rather than by prose, so a new
11
+ * rule id only needs a dictionary entry on both halves of the same bundle.
12
+ */
13
+ /** The namespace registered with the Client locale service. */
14
+ export const NAMESPACE = 'skillreWorkDashboard';
15
+ /** Chinese dictionary; the key set is the source of truth. */
16
+ export const zh = {
17
+ nav: '工作看板',
18
+ title: '工作看板',
19
+ subtitle: '多模块运营看板:先把正在推进的事情看清楚,再决定下一步补什么。',
20
+ dataSource: '数据源',
21
+ eyebrow: '工作看板 · 只读',
22
+ modulePoc: 'POC 运营',
23
+ modulePocHint: '项目阶段、四维结果与缺口清单',
24
+ moduleMore: '更多模块陆续加入',
25
+ // Toolbar / refresh
26
+ refresh: '刷新',
27
+ refreshing: '正在拉取…',
28
+ refreshingHint: '首次拉取需要几秒',
29
+ refreshSettings: '刷新设置',
30
+ refreshedAt: '已刷新 {time}',
31
+ neverRefreshed: '尚未拉取',
32
+ autoRefresh: '自动刷新',
33
+ intervalOff: '关闭(仅手动)',
34
+ interval10m: '每 10 分钟',
35
+ interval1h: '每 1 小时',
36
+ intervalCustom: '自定义',
37
+ customMinutes: '分钟',
38
+ save: '保存',
39
+ cancel: '取消',
40
+ customMinutesError: '请输入 {min}–{max} 之间的整数分钟数',
41
+ autoRefreshOn: '自动刷新:每 {minutes} 分钟(仅本页打开时生效)',
42
+ autoRefreshOff: '自动刷新:关闭',
43
+ autoRefreshFailed: '定时刷新失败,将在下一周期重试',
44
+ // Empty / error states
45
+ emptyTitle: '还没有数据',
46
+ emptyCopy: '点【刷新】从 GitHub 拉取 POC 台账',
47
+ emptyRefresh: '立即刷新',
48
+ emptyPath: '缓存位置',
49
+ failureTitle: '拉取失败',
50
+ failureReason: '原因',
51
+ failureRetry: '重试',
52
+ failureHint: '检查网络与 gh 登录状态后重试。',
53
+ loading: '加载中…',
54
+ loadingDetail: '正在读取项目…',
55
+ // Stats
56
+ statActive: '进行中',
57
+ statG0: '待补 G0',
58
+ statRisk: '有风险',
59
+ statConvertible: '可转化',
60
+ statTotal: '项目总数',
61
+ statClosed: '已关闭',
62
+ // Table
63
+ tableTitle: '项目总览',
64
+ colProject: '项目',
65
+ colStage: '阶段',
66
+ colDimensions: '四维状态',
67
+ colGaps: '缺口',
68
+ colAction: '操作',
69
+ detail: '详情',
70
+ openDetail: '查看详情',
71
+ noProjects: '仓库里还没有项目',
72
+ warningsTitle: '解析提示',
73
+ // Dimensions
74
+ dimAchievement: '目标达成',
75
+ dimEvidence: '证据',
76
+ dimRecognition: '客户认可',
77
+ dimNextMilestone: '下一步',
78
+ dimPresent: '已有',
79
+ dimMissing: '缺',
80
+ dimensionCount: '{count}/4',
81
+ // Stage rail
82
+ stageTrack: '阶段轨道',
83
+ stageG0: 'G0 立项',
84
+ stageG1: 'G1 方案设计',
85
+ stageG2: 'G2 方案验证',
86
+ stageG3: 'G3 结果验证',
87
+ stageG4: 'G4 结果转化',
88
+ stageClosed: '已关闭',
89
+ stageDone: '已完成',
90
+ stageCurrent: '当前',
91
+ stagePending: '未开始',
92
+ stageUnknown: '阶段未识别',
93
+ // Pending list
94
+ pendingTitle: '待处理',
95
+ pendingEmpty: '没有扫出缺口,继续保持。',
96
+ pendingCount: '{count} 项',
97
+ gapPriority: '优先级 {value}',
98
+ // Detail page
99
+ back: '← 返回',
100
+ detailIdentity: '{pocId} · {stage} · {org}',
101
+ detailMissing: '项目不存在',
102
+ detailMissingCopy: '仓库里没有 poc_id 为 {pocId} 的项目,可能已被移除。请刷新后重试。',
103
+ sectionFourDim: '四维结果',
104
+ sectionG0: 'G0 立项三必填',
105
+ sectionGates: '阶段记录',
106
+ sectionScope: '指标 / 场景 / 风险',
107
+ sectionResult: '结果与下一步',
108
+ sectionTimeline: '时间线',
109
+ sectionGaps: '本项目缺口',
110
+ whyCustomerTest: '客户为什么测',
111
+ whyWeTest: '我们为什么测',
112
+ nextActionGoal: '下一步动作目标',
113
+ customerTechOwner: '客户技术责任人',
114
+ owner: '我方负责人',
115
+ salesInitiator: '发起销售',
116
+ type: '项目类型',
117
+ tier: '项目级别',
118
+ gateDate: '完成日期',
119
+ gateCounts: '指标 {indicators} · 场景 {scenarios} · 风险 {risks}',
120
+ gatePrereq: '前置就绪 {ready}',
121
+ gateEngineers: '已投人力 {invested}',
122
+ yes: '是',
123
+ no: '否',
124
+ criteriaTitle: '成功指标',
125
+ scenariosTitle: '验证场景',
126
+ risksTitle: '风险',
127
+ criteriaCount: '{count} 个',
128
+ scenariosCount: '{count} 个',
129
+ risksCount: '{count} 个',
130
+ criteriaLimitHint: '要求 2–3 个',
131
+ scenariosLimitHint: '要求 3–5 个',
132
+ risksLimitHint: '上限 3 个',
133
+ emptyField: '(空)',
134
+ riskLevel: '等级',
135
+ riskMitigation: '应对',
136
+ round: '第 {round} 轮',
137
+ roundUnnumbered: '记录',
138
+ noTimeline: '还没有时间线记录',
139
+ evidenceLabel: '证据',
140
+ feedbackLabel: '客户反馈',
141
+ recognitionLabel: '认可范围',
142
+ // Gap rules (keyed by the stable rule ids the Host sends)
143
+ // Errors the Host can report
144
+ 'error.network': '无法连接 github.com,请检查网络。',
145
+ 'error.not-found': '仓库不存在,或当前账号看不到它。',
146
+ 'error.timeout': '拉取超时,请稍后重试。',
147
+ 'error.git-missing': '本机找不到 git 命令。',
148
+ 'error.busy': '已有一次刷新正在进行,请稍后再试。',
149
+ 'error.no-projects': '仓库里没有 projects/ 目录。',
150
+ 'error.cache-not-owned': '缓存目录已存在且不是本插件创建的,已拒绝清空。',
151
+ 'error.unknown-project': '项目不存在。',
152
+ 'error.internal': 'Host 内部错误,请查看 DSH 日志。',
153
+ 'error.failed': '操作失败。',
154
+ // Submit errors the Host can report
155
+ // Milestone 3: export form
156
+ exportNav: '导出表单',
157
+ exportTitle: '导出给组员填写的表单',
158
+ exportSubtitle: '勾选项目,生成一个自包含 HTML 文件:双击即可填写,自动保存,实时校验,填完下载 YAML。',
159
+ exportSelectAll: '全选',
160
+ exportSelectNone: '清空',
161
+ exportSelected: '已选 {count} 个项目',
162
+ exportBlank: '只导出空白表单(新建项目用)',
163
+ exportBlankHint: '不勾选任何项目时,会生成一个空白的「新建项目」表单。',
164
+ exportGenerate: '生成并下载',
165
+ exportGenerating: '正在生成…',
166
+ exportDone: '已下载 {name}',
167
+ exportSize: '{kb} KB',
168
+ exportHint: '表单完全离线可用:没有 CDN、没有外部字体、没有服务器。填完导出的 .yaml 可以直接拖进本插件的导入页。',
169
+ exportNoProjects: '先点【刷新】拉到数据,才能导出已有项目的表单。',
170
+ exportFailed: '生成表单失败',
171
+ // Milestone 3: risk board
172
+ risksNav: '风险看板',
173
+ risksBoardTitle: '风险看板',
174
+ risksSubtitle: '所有项目的风险,按等级从高到低排。',
175
+ riskHigh: '高',
176
+ riskMedium: '中',
177
+ riskLow: '低',
178
+ riskUnset: '未评级',
179
+ riskNoRisks: '没有任何项目登记风险——这本身值得怀疑。',
180
+ riskCounts: '高 {high} · 中 {medium} · 低 {low} · 未评级 {unset}',
181
+ riskProjects: '{withRisks} / {total} 个项目有风险登记',
182
+ riskUnsetHint: '「未评级」不是「不严重」,而是还没判断;排序时放在最后。',
183
+ riskGapContext: '同项目还有 {count} 处缺口({high} 处高危)',
184
+ // Milestone 3: global timeline
185
+ timelineNav: '时间线',
186
+ timelineTitle: '全局时间线',
187
+ timelineSubtitle: '所有项目的复盘记录,按日期从新到旧。',
188
+ timelineRange: '{from} 至 {to}',
189
+ timelineCount: '{count} 条记录',
190
+ timelineEmpty: '还没有任何复盘记录。',
191
+ timelineSilent: '{count} 个项目完全没有时间线记录',
192
+ timelineSilentHint: '没有时间线,就说不清这些项目到底推进过没有。',
193
+ timelineMonth: '{month}:{count} 条',
194
+ timelineNoEvidence: '无证据',
195
+ timelineNoFeedback: '无客户反馈',
196
+ timelineActual: '实际结果',
197
+ timelineRoundShort: '第 {round} 轮',
198
+ statTotalProjects: 'POC 总数',
199
+ statTotalNote: '台账内全部项目',
200
+ statG0Passed: 'G0 通过',
201
+ statG0CompleteNote: 'G0 完整',
202
+ statInProgress: '进行中',
203
+ statStoppedNote: '暂停/关闭/取消',
204
+ statAmount: '金额合计',
205
+ statAmountUnit: '万元',
206
+ colOrg: '体系/公司',
207
+ colAmount: '金额',
208
+ colLatestProgress: '最新进展',
209
+ noProgressYet: '尚无进展',
210
+ progressGoal: '目标',
211
+ progressItems: '范围',
212
+ progressActual: '实际',
213
+ progressSyncedWith: '同步对象',
214
+ progressNext: '下一步',
215
+ progressDeadline: '截止',
216
+ progressTypeUnset: '未分类',
217
+ progressCount: '{count} 次进展',
218
+ sectionProgress: '进展流',
219
+ progressEmptyTitle: '还没有进展记录',
220
+ progressEmptyCopy: '第一次进展后,这里会显示完整时间线。',
221
+ sectionIdentity: '身份',
222
+ sectionPlan: '计划(G1/G2)',
223
+ sectionOutcome: '结论',
224
+ dimAuto: '自动推导',
225
+ dimManual: '人工填',
226
+ g0Complete: 'G0 完整',
227
+ g0Missing: '缺 {count} 项必填',
228
+ g0Conclusion: 'G0 评审结论',
229
+ g0Reviewer: 'G0 评审人',
230
+ g0ReviewedAt: '评审日期',
231
+ decisionChain: '项目流程/决策链',
232
+ postPocDecision: '测后客户决策',
233
+ competitor: '主要竞争对手',
234
+ customerPain: '客户核心痛点',
235
+ expectedRecognition: '期望客户认可',
236
+ ourEdge: '我方优势/赢点',
237
+ gate1Conclusion: 'G1 结论',
238
+ gate2Ready: 'G2 Ready 状态',
239
+ timelineWindow: '计划起止',
240
+ outcomeAchievement: '达成情况',
241
+ outcomeRecognition: '客户认可',
242
+ outcomeOurProof: '我方证据',
243
+ outcomeRemainingRisks: '剩余风险',
244
+ outcomeProved: '证明了什么',
245
+ outcomeRecognized: '客户认可了什么',
246
+ outcomeNextBusiness: '下一步业务动作',
247
+ outcomeMilestone: 'Next Milestone',
248
+ outcomeBusinessOwner: '里程碑负责人',
249
+ outcomeBusinessDeadline: '里程碑截止',
250
+ outcomeBusinessStatus: '里程碑状态',
251
+ outcomeOverall: 'POC 总体结论',
252
+ outcomeReviewedAt: '复盘日期',
253
+ execSponsor: '客户业务决策人',
254
+ priority: '优先级',
255
+ stageSince: '进入当前阶段',
256
+ daysInStage: '已停留 {days} 天',
257
+ completionLabel: '完成度',
258
+ gate3_1Label: 'G3-1',
259
+ gate3_2Label: 'G3-2',
260
+ 'gap.R1-gate0-missing.title': 'G0 必填未齐',
261
+ 'gap.R1-gate0-missing.copy': 'G0 五必填缺 {count} 项:{missing}。',
262
+ 'gap.R2-large-amount-no-g0.title': '{amountWan} 万项目 G0 未通过',
263
+ 'gap.R2-large-amount-no-g0.copy': '金额达到 300 万以上,G0 结论却是「{conclusion}」,承诺走在判断前面。',
264
+ 'gap.R3-g0-passed-no-plan.title': 'G0 通过但无成功标准',
265
+ 'gap.R3-g0-passed-no-plan.copy': '评审已通过,却没有定义「怎样算成功」,后面无法验收。',
266
+ 'gap.R4-criteria-count.title': '成功指标 {count} 个(要求 {min}–{max})',
267
+ 'gap.R4-criteria-count.copy': '指标 {count} 个,不在 {min}–{max} 区间;测得多等于没重点。',
268
+ 'gap.R5-scenarios-count.title': '场景 {count} 个(要求 {min}–{max})',
269
+ 'gap.R5-scenarios-count.copy': '场景 {count} 个,不在 {min}–{max} 区间;范围失控会拖长周期。',
270
+ 'gap.R6-risks-overflow.title': '风险 {count} 个(上限 {max})',
271
+ 'gap.R6-risks-overflow.copy': '列出 {count} 个风险,超过上限 {max};风险清单过长等于没有优先级。',
272
+ 'gap.R7-g2-not-ready.title': 'G2 未 Ready 但已有进展',
273
+ 'gap.R7-g2-not-ready.copy': '前置条件状态是「{ready}」,却已经开始产生进展,投入可能打水漂。',
274
+ 'gap.R8-progress-no-evidence.title': '有进展无证据',
275
+ 'gap.R8-progress-no-evidence.copy': '第 {seq} 次进展写了实际结果,但没有任何可点开的凭据。',
276
+ 'gap.R9-evidence-no-recognition.title': '有证据无客户认可',
277
+ 'gap.R9-evidence-no-recognition.copy': '证据齐了,客户认可度却是「{recognition}」,只是我们觉得好。',
278
+ 'gap.R10-g3-1-without-g3-2.title': 'G3-1 可证明但 G3-2 未确认',
279
+ 'gap.R10-g3-1-without-g3-2.copy': '结论标为「可证明」,但确认状态是「{gate3_2}」,还差客户书面确认。',
280
+ 'gap.R11-no-next-milestone.title': '已达成但无下一步里程碑',
281
+ 'gap.R11-no-next-milestone.copy': '结果已达成,却没有下一个里程碑:价值做出来了,没有转化路径。',
282
+ 'gap.R12-stage-stalled.title': '已在 {stage} 停留 {days} 天',
283
+ 'gap.R12-stage-stalled.copy': '当前阶段已停留 {days} 天(阈值 {stallDays} 天),没有任何推进。',
284
+ // ---------- 0.3 · 组合面板 ----------
285
+ bandTitle: '组合视图',
286
+ bandNote: '{count} 个项目 · {amount} 万元',
287
+ bandStages: '阶段分布',
288
+ bandStagesNote: '按当前阶段',
289
+ bandOrgs: '体系 / 公司',
290
+ bandOrgsNote: '按金额',
291
+ bandTypes: '项目类型',
292
+ bandTypesNote: '按数量',
293
+ bandAmounts: '金额集中度',
294
+ bandAmountsNote: '前 5 名',
295
+ bandDims: '四维覆盖',
296
+ bandDimsNote: '有值项目占比',
297
+ bandGapRules: '缺口规则命中',
298
+ bandGapRulesNote: '共 {count} 条',
299
+ bandActivity: '进展活跃度',
300
+ bandActivityNote: '每月进展条数',
301
+ chartNoData: '暂无数据',
302
+ stageCountLabel: '{count} 个',
303
+ stageAmountLabel: '{amount} 万',
304
+ stageHighLabel: '{count} 个有高危缺口',
305
+ orgProjectLabel: '{count} 个',
306
+ orgAmountLabel: '{amount} 万',
307
+ orgHighLabel: '{count} 个高危',
308
+ typeLegendNote: '{count} 个 · {amount} 万',
309
+ amountShareLabel: '{share}%',
310
+ amountConcentrationLabel: '最大单项目占 {share}%',
311
+ amountMissingLabel: '{count} 个项目未填金额',
312
+ concentrationHigh: '高度集中:一个项目的金额超过了总额的三分之一,风险没有分散。',
313
+ concentrationNormal: '分布正常:没有单项目超过总额的三分之一。',
314
+ coveragePresent: '{present} / {total}',
315
+ coverageMissingNote: '{count} 个缺',
316
+ activityLastLabel: '最近进展 {date}',
317
+ activityNoneLabel: '全库还没有任何进展记录',
318
+ gapRuleFiresLabel: '{count} 次',
319
+ gapRuleLegendHigh: '高危',
320
+ gapRuleLegendMedium: '提示',
321
+ // ---------- 0.3 · 工具栏 ----------
322
+ viewLabel: '视图',
323
+ viewCards: '卡片',
324
+ viewBoard: '看板',
325
+ viewTable: '表格',
326
+ viewCardsHint: '一屏看清每个项目缺什么',
327
+ viewBoardHint: '按阶段分列,看整体堆积',
328
+ viewTableHint: '紧凑列表,适合逐行对比',
329
+ searchLabel: '搜索',
330
+ searchPlaceholder: '项目名 / 编号 / 负责人 / 公司',
331
+ searchClear: '清除搜索',
332
+ filterLabel: '筛选',
333
+ filterAll: '全部',
334
+ filterSystem: '体系',
335
+ filterStage: '阶段',
336
+ filterStatus: '状态',
337
+ filterType: '类型',
338
+ filterClear: '清除筛选',
339
+ filterActiveNote: '{count} 个条件',
340
+ filterResult: '筛出 {shown} / {total} 个项目',
341
+ sortLabel: '排序',
342
+ sortAttention: '按待处理',
343
+ sortAmount: '按金额',
344
+ sortProgress: '按最新进展',
345
+ sortStage: '按阶段',
346
+ sortDirection: '切换升/降序',
347
+ keyboardHint: '↑↓ 选择 · Enter 打开 · Esc 返回 · / 搜索',
348
+ filteredEmptyTitle: '没有符合条件的项目',
349
+ filteredEmptyCopy: '把搜索词或筛选条件放宽一点,或者点「清除筛选」。',
350
+ filteredEmptyReset: '清除筛选',
351
+ // ---------- 0.3 · 卡片 / 看板 ----------
352
+ cardAmountLabel: '金额',
353
+ cardStageSince: '{days} 天未动',
354
+ cardNoStageSince: '阶段未填',
355
+ cardLatestProgress: '最新进展',
356
+ cardNoProgress: '还没有进展',
357
+ cardGapBadge: '{count} 处缺口',
358
+ cardGapBadgeHigh: '{count} 处高危',
359
+ cardOpen: '打开详情',
360
+ cardProgressCount: '{count} 次进展',
361
+ boardColumnCount: '{count} 个 · {amount} 万',
362
+ boardEmptyColumn: '这一列还没有项目',
363
+ boardClosedColumn: '已关闭',
364
+ boardUnknownColumn: '阶段未识别',
365
+ boardHighBadge: '{count} 高危',
366
+ tableProgressCell: '{date} · {count} 次',
367
+ tableStageSince: '{days} 天',
368
+ tableSortByThis: '按此列排序',
369
+ pendingGrouped: '按规则分组',
370
+ pendingUngrouped: '平铺列表',
371
+ pendingRuleCount: '{count} 个项目命中',
372
+ pendingExpand: '展开',
373
+ pendingCollapse: '收起',
374
+ pendingMoreProjects: '还有 {count} 个项目',
375
+ pendingEmptyFiltered: '当前筛选下没有缺口。',
376
+ // ---------- 0.3 · 详情页 ----------
377
+ dtRailTitle: '项目档案',
378
+ dtStageSection: '阶段',
379
+ dtDimensionSection: '四维结果',
380
+ dtGapSection: '缺口',
381
+ dtNoGaps: '这个项目没有扫出缺口。',
382
+ dtPrevProject: '上一个',
383
+ dtNextProject: '下一个',
384
+ dtPosition: '第 {index} / {total} 个',
385
+ dtAmountLabel: '金额',
386
+ dtOwnerLabel: '负责人',
387
+ dtTechOwnerLabel: '客户技术责任人',
388
+ dtSalesLabel: '销售',
389
+ dtSponsorLabel: '业务决策人',
390
+ dtStageSinceLabel: '进入阶段',
391
+ dtPriorityLabel: '优先级',
392
+ dtUnset: '未填',
393
+ dtProgressTitle: '进展流',
394
+ dtProgressEmptyTitle: '还没有进展记录',
395
+ dtProgressEmptyCopy: '第一次进展后,这里会显示完整时间线。',
396
+ dtProgressGoal: '目标',
397
+ dtProgressScope: '范围',
398
+ dtProgressActual: '实际',
399
+ dtProgressCompletion: '完成度',
400
+ dtProgressEvidence: '证据',
401
+ dtProgressEvidenceNone: '无证据',
402
+ dtProgressCustomer: '客户',
403
+ dtProgressCustomerNone: '未同步客户',
404
+ dtProgressFeedback: '反馈',
405
+ dtProgressNext: '下一步',
406
+ dtProgressNextNone: '没有安排下一步',
407
+ dtProgressDeadline: '截止',
408
+ dtProgressSeq: '第 {seq} 次',
409
+ dtProgressCount: '共 {count} 次',
410
+ dtDimensionAuto: '自动推导',
411
+ dtDimensionManual: '人工填',
412
+ dtDimensionEmptyReason: '结论里没有填,也没有从进展推导出来',
413
+ dtG0Title: 'G0 必填完整度',
414
+ dtG0Present: '已填',
415
+ dtG0Missing: '缺失',
416
+ dtG0FiveRequired: '{present} / 5 已填',
417
+ dtG0ReviewLine: '{reviewer} 于 {date} 评审,结论「{conclusion}」',
418
+ dtG0Unreviewed: '还没有评审结论',
419
+ dtPlanTitle: '计划(G1 / G2)',
420
+ dtPlanCriteria: '成功指标',
421
+ dtPlanCriteriaNone: '还没有定义成功指标',
422
+ dtPlanCriteriaCount: '{count} 项(要求 2–3)',
423
+ dtPlanMetric: '指标',
424
+ dtPlanBaseline: '基线',
425
+ dtPlanTarget: '目标',
426
+ dtPlanScenarios: '验证场景',
427
+ dtPlanScenariosNone: '还没有定义验证场景',
428
+ dtPlanScenariosCount: '{count} 个(要求 3–5)',
429
+ dtPlanRisks: '风险',
430
+ dtPlanRisksNone: '没有登记风险',
431
+ dtPlanRisksCount: '{count} 个(上限 3)',
432
+ dtPlanMitigation: '应对',
433
+ dtPlanPain: '客户痛点',
434
+ dtPlanRecognition: '期望认可',
435
+ dtPlanEdge: '我方赢点',
436
+ dtPlanWindow: '计划起止',
437
+ dtPlanReportNodes: '汇报节点',
438
+ dtPlanGate1: 'G1 结论',
439
+ dtPlanGate2: 'G2 Ready',
440
+ dtOutcomeTitle: '结论',
441
+ dtOutcomeProved: '我们证明了什么',
442
+ dtOutcomeRecognized: '客户认可了什么',
443
+ dtOutcomeNext: '下一步业务动作',
444
+ dtOutcomeMilestone: 'Next Milestone',
445
+ dtOutcomeMilestoneNone: '没有下一步里程碑——价值做出来了,没有转化路径',
446
+ dtOutcomeMilestoneOwner: '负责人 {owner}',
447
+ dtOutcomeMilestoneDeadline: '截止 {date}',
448
+ dtOutcomeMilestoneStatus: '状态 {status}',
449
+ dtOutcomeProof: '我方证据',
450
+ dtOutcomeRemaining: '剩余风险',
451
+ dtOutcomeOverall: '总体结论',
452
+ dtOutcomeReviewed: '复盘日期',
453
+ dtSectionNav: '跳到区块',
454
+ // ---------- 0.3 · 风险 / 时间线 ----------
455
+ riskLaneTitle: '严重度分布',
456
+ riskLaneNote: '高 {high} · 中 {medium} · 低 {low} · 未评级 {unset}',
457
+ riskBoardNote: '共 {count} 条风险,来自 {projects} 个项目',
458
+ riskSourceProject: '来源项目',
459
+ riskSeverityColumn: '等级',
460
+ riskMitigationColumn: '应对措施',
461
+ tlLaneTitle: '月度分布',
462
+ tlLaneNote: '共 {count} 条进展',
463
+ tlEntryGoal: '目标',
464
+ tlEntryActual: '实际',
465
+ tlEntryEvidence: '证据',
466
+ tlEntryCustomer: '客户',
467
+ tlEntryNext: '下一步',
468
+ tlSilentTitle: '完全没有进展记录的项目',
469
+ tlSilentNote: '{count} 个',
470
+ };
471
+ /** English dictionary; every key mirrors {@link zh}. */
472
+ export const en = {
473
+ nav: 'Work Dashboard',
474
+ title: 'Work Dashboard',
475
+ subtitle: 'A multi-module operations dashboard: see what is actually moving before deciding what to fix next.',
476
+ dataSource: 'Data source',
477
+ eyebrow: 'Work Dashboard · read-only',
478
+ modulePoc: 'POC Operations',
479
+ modulePocHint: 'Stage, four dimensions and gaps',
480
+ moduleMore: 'More modules to come',
481
+ refresh: 'Refresh',
482
+ refreshing: 'Pulling…',
483
+ refreshingHint: 'The first pull takes a few seconds',
484
+ refreshSettings: 'Refresh settings',
485
+ refreshedAt: 'Refreshed {time}',
486
+ neverRefreshed: 'Not pulled yet',
487
+ autoRefresh: 'Auto refresh',
488
+ intervalOff: 'Off (manual only)',
489
+ interval10m: 'Every 10 minutes',
490
+ interval1h: 'Every hour',
491
+ intervalCustom: 'Custom',
492
+ customMinutes: 'minutes',
493
+ save: 'Save',
494
+ cancel: 'Cancel',
495
+ customMinutesError: 'Enter a whole number of minutes between {min} and {max}',
496
+ autoRefreshOn: 'Auto refresh: every {minutes} min (only while this page is open)',
497
+ autoRefreshOff: 'Auto refresh: off',
498
+ autoRefreshFailed: 'Scheduled refresh failed; retrying next cycle',
499
+ emptyTitle: 'No data yet',
500
+ emptyCopy: 'Hit Refresh to pull the POC ledger from GitHub',
501
+ emptyRefresh: 'Refresh now',
502
+ emptyPath: 'Cache location',
503
+ failureTitle: 'Pull failed',
504
+ failureReason: 'Reason',
505
+ failureRetry: 'Retry',
506
+ failureHint: 'Check the network and gh login, then retry.',
507
+ loading: 'Loading…',
508
+ loadingDetail: 'Reading the project…',
509
+ statActive: 'Active',
510
+ statG0: 'Missing G0',
511
+ statRisk: 'At risk',
512
+ statConvertible: 'Convertible',
513
+ statTotal: 'Total',
514
+ statClosed: 'Closed',
515
+ tableTitle: 'Projects',
516
+ colProject: 'Project',
517
+ colStage: 'Stage',
518
+ colDimensions: 'Four dimensions',
519
+ colGaps: 'Gaps',
520
+ colAction: 'Action',
521
+ detail: 'Detail',
522
+ openDetail: 'Open detail',
523
+ noProjects: 'The repository has no projects yet',
524
+ warningsTitle: 'Parse notes',
525
+ dimAchievement: 'Goal met',
526
+ dimEvidence: 'Evidence',
527
+ dimRecognition: 'Recognition',
528
+ dimNextMilestone: 'Next step',
529
+ dimPresent: 'Present',
530
+ dimMissing: 'Missing',
531
+ dimensionCount: '{count}/4',
532
+ stageTrack: 'Stage track',
533
+ stageG0: 'G0 Intake',
534
+ stageG1: 'G1 Design',
535
+ stageG2: 'G2 Validation',
536
+ stageG3: 'G3 Results',
537
+ stageG4: 'G4 Conversion',
538
+ stageClosed: 'Closed',
539
+ stageDone: 'Done',
540
+ stageCurrent: 'Current',
541
+ stagePending: 'Not started',
542
+ stageUnknown: 'Unrecognized stage',
543
+ pendingTitle: 'Pending',
544
+ pendingEmpty: 'No gaps found. Keep it up.',
545
+ pendingCount: '{count} items',
546
+ gapPriority: 'Priority {value}',
547
+ back: '← Back',
548
+ detailIdentity: '{pocId} · {stage} · {org}',
549
+ detailMissing: 'Project not found',
550
+ detailMissingCopy: 'No project with poc_id {pocId} exists in the repository; it may have been removed. Refresh and retry.',
551
+ sectionG0: 'G0 intake prerequisites',
552
+ sectionGates: 'Stage records',
553
+ sectionScope: 'Indicators / scenarios / risks',
554
+ sectionResult: 'Result and next step',
555
+ sectionTimeline: 'Timeline',
556
+ sectionGaps: 'Gaps in this project',
557
+ whyCustomerTest: 'Why the customer tests',
558
+ whyWeTest: 'Why we test',
559
+ nextActionGoal: 'Next action goal',
560
+ customerTechOwner: 'Customer tech owner',
561
+ owner: 'Our owner',
562
+ salesInitiator: 'Sales initiator',
563
+ type: 'Project type',
564
+ tier: 'Tier',
565
+ gateDate: 'Completed',
566
+ gateCounts: 'Indicators {indicators} · Scenarios {scenarios} · Risks {risks}',
567
+ gatePrereq: 'Prerequisites ready {ready}',
568
+ gateEngineers: 'Engineers invested {invested}',
569
+ yes: 'yes',
570
+ no: 'no',
571
+ criteriaTitle: 'Success criteria',
572
+ scenariosTitle: 'Validation scenarios',
573
+ risksTitle: 'Risks',
574
+ criteriaCount: '{count}',
575
+ scenariosCount: '{count}',
576
+ risksCount: '{count}',
577
+ criteriaLimitHint: '2–3 required',
578
+ scenariosLimitHint: '3–5 required',
579
+ risksLimitHint: 'At most 3',
580
+ emptyField: '(empty)',
581
+ riskLevel: 'Level',
582
+ riskMitigation: 'Mitigation',
583
+ round: 'Round {round}',
584
+ roundUnnumbered: 'Entry',
585
+ noTimeline: 'No timeline entries yet',
586
+ evidenceLabel: 'Evidence',
587
+ feedbackLabel: 'Customer feedback',
588
+ recognitionLabel: 'Recognition scope',
589
+ 'error.network': 'Cannot reach github.com; check the network.',
590
+ 'error.not-found': 'The repository does not exist, or this account cannot see it.',
591
+ 'error.timeout': 'The pull timed out; try again shortly.',
592
+ 'error.git-missing': 'The git command is not available on this machine.',
593
+ 'error.busy': 'A refresh is already running; try again in a moment.',
594
+ 'error.no-projects': 'The repository has no projects/ directory.',
595
+ 'error.cache-not-owned': 'The cache directory exists and was not created by this plugin; refusing to clear it.',
596
+ 'error.unknown-project': 'Project not found.',
597
+ 'error.internal': 'Internal Host error; check the DSH log.',
598
+ 'error.failed': 'The operation failed.',
599
+ // Submit errors the Host can report
600
+ // Milestone 3: export form
601
+ exportNav: 'Export form',
602
+ exportTitle: 'Export a form for a colleague',
603
+ exportSubtitle: 'Pick projects and generate one self-contained HTML file: open it, fill it in, auto-saved, live-validated, then download the YAML.',
604
+ exportSelectAll: 'Select all',
605
+ exportSelectNone: 'Clear',
606
+ exportSelected: '{count} project(s) selected',
607
+ exportBlank: 'Export a blank form only (for a new project)',
608
+ exportBlankHint: 'With nothing selected, a blank "new project" form is generated.',
609
+ exportGenerate: 'Generate and download',
610
+ exportGenerating: 'Generating…',
611
+ exportDone: 'Downloaded {name}',
612
+ exportSize: '{kb} KB',
613
+ exportHint: 'The form works fully offline: no CDN, no external fonts, no server. The .yaml it produces can be dropped straight into this plugin\'s import page.',
614
+ exportNoProjects: 'Refresh first to pull the ledger before exporting an existing project.',
615
+ exportFailed: 'Could not generate the form',
616
+ // Milestone 3: risk board
617
+ risksNav: 'Risk board',
618
+ risksBoardTitle: 'Risk board',
619
+ risksSubtitle: 'Every project\'s risks, highest severity first.',
620
+ riskHigh: 'High',
621
+ riskMedium: 'Medium',
622
+ riskLow: 'Low',
623
+ riskUnset: 'Unrated',
624
+ riskNoRisks: 'No project registered a risk — which is itself worth questioning.',
625
+ riskCounts: 'High {high} · Medium {medium} · Low {low} · Unrated {unset}',
626
+ riskProjects: '{withRisks} / {total} project(s) have risks on record',
627
+ riskUnsetHint: '"Unrated" is not "harmless": it means nobody judged it yet, so it sorts last.',
628
+ riskGapContext: '{count} gap(s) in the same project ({high} high)',
629
+ // Milestone 3: global timeline
630
+ timelineNav: 'Timeline',
631
+ timelineTitle: 'Global timeline',
632
+ timelineSubtitle: 'Every review round of every project, newest first.',
633
+ timelineRange: '{from} to {to}',
634
+ timelineCount: '{count} entries',
635
+ timelineEmpty: 'No review rounds recorded yet.',
636
+ timelineSilent: '{count} project(s) have no timeline at all',
637
+ timelineSilentHint: 'Without a timeline there is no way to tell whether those projects moved.',
638
+ timelineMonth: '{month}: {count}',
639
+ timelineNoEvidence: 'No evidence',
640
+ timelineNoFeedback: 'No customer feedback',
641
+ timelineActual: 'Actual result',
642
+ timelineRoundShort: 'Round {round}',
643
+ statTotalProjects: 'POCs',
644
+ statTotalNote: 'All projects in the ledger',
645
+ statG0Passed: 'G0 passed',
646
+ statG0CompleteNote: 'G0 complete',
647
+ statInProgress: 'In progress',
648
+ statStoppedNote: 'Paused/closed/cancelled',
649
+ statAmount: 'Total amount',
650
+ statAmountUnit: '10k CNY',
651
+ colOrg: 'System / company',
652
+ colAmount: 'Amount',
653
+ colLatestProgress: 'Latest progress',
654
+ noProgressYet: 'No progress yet',
655
+ progressGoal: 'Goal',
656
+ progressItems: 'Scope',
657
+ progressActual: 'Actual',
658
+ progressSyncedWith: 'Synced with',
659
+ progressNext: 'Next',
660
+ progressDeadline: 'Due',
661
+ progressTypeUnset: 'Unclassified',
662
+ progressCount: '{count} entries',
663
+ sectionProgress: 'Progress stream',
664
+ sectionFourDim: 'Four dimensions',
665
+ progressEmptyTitle: 'No progress yet',
666
+ progressEmptyCopy: 'After the first update, the full timeline appears here.',
667
+ sectionIdentity: 'Identity',
668
+ sectionPlan: 'Plan (G1/G2)',
669
+ sectionOutcome: 'Outcome',
670
+ dimAuto: 'derived',
671
+ dimManual: 'manual',
672
+ g0Complete: 'G0 complete',
673
+ g0Missing: '{count} required fields missing',
674
+ g0Conclusion: 'G0 conclusion',
675
+ g0Reviewer: 'G0 reviewer',
676
+ g0ReviewedAt: 'Reviewed at',
677
+ decisionChain: 'Process / decision chain',
678
+ postPocDecision: 'Post-POC decision',
679
+ competitor: 'Main competitor',
680
+ customerPain: 'Customer pain',
681
+ expectedRecognition: 'Expected recognition',
682
+ ourEdge: 'Our edge',
683
+ gate1Conclusion: 'G1 conclusion',
684
+ gate2Ready: 'G2 ready state',
685
+ timelineWindow: 'Planned window',
686
+ outcomeAchievement: 'Achievement',
687
+ outcomeRecognition: 'Customer recognition',
688
+ outcomeOurProof: 'Our proof',
689
+ outcomeRemainingRisks: 'Remaining risks',
690
+ outcomeProved: 'What we proved',
691
+ outcomeRecognized: 'What was recognised',
692
+ outcomeNextBusiness: 'Next business action',
693
+ outcomeMilestone: 'Next milestone',
694
+ outcomeBusinessOwner: 'Milestone owner',
695
+ outcomeBusinessDeadline: 'Milestone due',
696
+ outcomeBusinessStatus: 'Milestone status',
697
+ outcomeOverall: 'Overall conclusion',
698
+ outcomeReviewedAt: 'Review date',
699
+ execSponsor: 'Exec sponsor',
700
+ priority: 'Priority',
701
+ stageSince: 'In current stage since',
702
+ daysInStage: '{days} days here',
703
+ completionLabel: 'Completion',
704
+ gate3_1Label: 'G3-1',
705
+ gate3_2Label: 'G3-2',
706
+ 'gap.R1-gate0-missing.title': 'G0 required fields missing',
707
+ 'gap.R1-gate0-missing.copy': '{count} of the five G0 fields are missing: {missing}.',
708
+ 'gap.R2-large-amount-no-g0.title': '{amountWan}k project has no G0 clearance',
709
+ 'gap.R2-large-amount-no-g0.copy': 'The amount reaches the large-project threshold while the G0 conclusion is "{conclusion}" — commitment ahead of judgement.',
710
+ 'gap.R3-g0-passed-no-plan.title': 'G0 passed but no success criteria',
711
+ 'gap.R3-g0-passed-no-plan.copy': 'The gate passed, yet nobody defined what success means, so acceptance is impossible.',
712
+ 'gap.R4-criteria-count.title': '{count} criteria (need {min}-{max})',
713
+ 'gap.R4-criteria-count.copy': '{count} criteria, outside the {min}-{max} range; measuring everything means measuring nothing.',
714
+ 'gap.R5-scenarios-count.title': '{count} scenarios (need {min}-{max})',
715
+ 'gap.R5-scenarios-count.copy': '{count} scenarios, outside the {min}-{max} range; an unbounded scope drags the cycle out.',
716
+ 'gap.R6-risks-overflow.title': '{count} risks (max {max})',
717
+ 'gap.R6-risks-overflow.copy': '{count} risks listed, above the {max} limit; an over-long risk list has no priority.',
718
+ 'gap.R7-g2-not-ready.title': 'Progress exists while G2 is not ready',
719
+ 'gap.R7-g2-not-ready.copy': 'Prerequisites are "{ready}" but progress has already been recorded, so effort may be wasted.',
720
+ 'gap.R8-progress-no-evidence.title': 'Progress without evidence',
721
+ 'gap.R8-progress-no-evidence.copy': 'Entry {seq} claims an actual result with nothing verifiable behind it.',
722
+ 'gap.R9-evidence-no-recognition.title': 'Evidence without customer recognition',
723
+ 'gap.R9-evidence-no-recognition.copy': 'Evidence exists while recognition is "{recognition}" — only we think it went well.',
724
+ 'gap.R10-g3-1-without-g3-2.title': 'G3-1 provable but G3-2 unconfirmed',
725
+ 'gap.R10-g3-1-without-g3-2.copy': 'The result is marked provable while confirmation is "{gate3_2}"; written customer sign-off is missing.',
726
+ 'gap.R11-no-next-milestone.title': 'Achieved but no next milestone',
727
+ 'gap.R11-no-next-milestone.copy': 'The result was achieved with no next milestone: value created, none banked.',
728
+ 'gap.R12-stage-stalled.title': '{days} days in {stage}',
729
+ 'gap.R12-stage-stalled.copy': 'The project has sat in its current stage for {days} days (threshold {stallDays}) with no movement.',
730
+ // ---------- 0.3 · portfolio band ----------
731
+ bandTitle: 'Portfolio view',
732
+ bandNote: '{count} projects · {amount} (10k CNY)',
733
+ bandStages: 'Stage distribution',
734
+ bandStagesNote: 'by current stage',
735
+ bandOrgs: 'System / company',
736
+ bandOrgsNote: 'by amount',
737
+ bandTypes: 'Project types',
738
+ bandTypesNote: 'by count',
739
+ bandAmounts: 'Amount concentration',
740
+ bandAmountsNote: 'top 5',
741
+ bandDims: 'Dimension coverage',
742
+ bandDimsNote: 'share of projects with a value',
743
+ bandGapRules: 'Gap rules fired',
744
+ bandGapRulesNote: '{count} findings',
745
+ bandActivity: 'Progress activity',
746
+ bandActivityNote: 'entries per month',
747
+ chartNoData: 'No data',
748
+ stageCountLabel: '{count}',
749
+ stageAmountLabel: '{amount} (10k)',
750
+ stageHighLabel: '{count} with a high gap',
751
+ orgProjectLabel: '{count}',
752
+ orgAmountLabel: '{amount} (10k)',
753
+ orgHighLabel: '{count} high',
754
+ typeLegendNote: '{count} · {amount} (10k)',
755
+ amountShareLabel: '{share}%',
756
+ amountConcentrationLabel: 'Largest project is {share}% of the total',
757
+ amountMissingLabel: '{count} project(s) have no amount',
758
+ concentrationHigh: 'Highly concentrated: one project holds more than a third of the total, so the risk is not spread.',
759
+ concentrationNormal: 'Normal spread: no single project holds more than a third of the total.',
760
+ coveragePresent: '{present} / {total}',
761
+ coverageMissingNote: '{count} missing',
762
+ activityLastLabel: 'Latest progress {date}',
763
+ activityNoneLabel: 'No progress recorded anywhere yet',
764
+ gapRuleFiresLabel: '{count}×',
765
+ gapRuleLegendHigh: 'High',
766
+ gapRuleLegendMedium: 'Notice',
767
+ // ---------- 0.3 · toolbar ----------
768
+ viewLabel: 'View',
769
+ viewCards: 'Cards',
770
+ viewBoard: 'Board',
771
+ viewTable: 'Table',
772
+ viewCardsHint: 'See what each project lacks, at a glance',
773
+ viewBoardHint: 'Columns by stage, to read the pile-up',
774
+ viewTableHint: 'Compact rows for line-by-line comparison',
775
+ searchLabel: 'Search',
776
+ searchPlaceholder: 'Name / id / owner / company',
777
+ searchClear: 'Clear search',
778
+ filterLabel: 'Filters',
779
+ filterAll: 'All',
780
+ filterSystem: 'System',
781
+ filterStage: 'Stage',
782
+ filterStatus: 'Status',
783
+ filterType: 'Type',
784
+ filterClear: 'Clear filters',
785
+ filterActiveNote: '{count} active',
786
+ filterResult: '{shown} of {total} projects',
787
+ sortLabel: 'Sort',
788
+ sortAttention: 'By attention',
789
+ sortAmount: 'By amount',
790
+ sortProgress: 'By latest progress',
791
+ sortStage: 'By stage',
792
+ sortDirection: 'Toggle ascending / descending',
793
+ keyboardHint: '↑↓ select · Enter open · Esc back · / search',
794
+ filteredEmptyTitle: 'No project matches',
795
+ filteredEmptyCopy: 'Loosen the search term or filters, or hit "Clear filters".',
796
+ filteredEmptyReset: 'Clear filters',
797
+ // ---------- 0.3 · cards / board ----------
798
+ cardAmountLabel: 'Amount',
799
+ cardStageSince: '{days} days idle',
800
+ cardNoStageSince: 'No stage date',
801
+ cardLatestProgress: 'Latest progress',
802
+ cardNoProgress: 'No progress yet',
803
+ cardGapBadge: '{count} gaps',
804
+ cardGapBadgeHigh: '{count} high',
805
+ cardOpen: 'Open detail',
806
+ cardProgressCount: '{count} entries',
807
+ boardColumnCount: '{count} · {amount} (10k)',
808
+ boardEmptyColumn: 'No project in this column',
809
+ boardClosedColumn: 'Closed',
810
+ boardUnknownColumn: 'Unrecognized stage',
811
+ boardHighBadge: '{count} high',
812
+ tableProgressCell: '{date} · {count} entries',
813
+ tableStageSince: '{days} days',
814
+ tableSortByThis: 'Sort by this column',
815
+ pendingGrouped: 'Group by rule',
816
+ pendingUngrouped: 'Flat list',
817
+ pendingRuleCount: '{count} project(s) hit',
818
+ pendingExpand: 'Expand',
819
+ pendingCollapse: 'Collapse',
820
+ pendingMoreProjects: '{count} more project(s)',
821
+ pendingEmptyFiltered: 'No gaps under the current filters.',
822
+ // ---------- 0.3 · detail ----------
823
+ dtRailTitle: 'Project file',
824
+ dtStageSection: 'Stage',
825
+ dtDimensionSection: 'Four dimensions',
826
+ dtGapSection: 'Gaps',
827
+ dtNoGaps: 'No gap found for this project.',
828
+ dtPrevProject: 'Previous',
829
+ dtNextProject: 'Next',
830
+ dtPosition: '{index} of {total}',
831
+ dtAmountLabel: 'Amount',
832
+ dtOwnerLabel: 'Owner',
833
+ dtTechOwnerLabel: 'Customer tech owner',
834
+ dtSalesLabel: 'Sales',
835
+ dtSponsorLabel: 'Business sponsor',
836
+ dtStageSinceLabel: 'In stage since',
837
+ dtPriorityLabel: 'Priority',
838
+ dtUnset: 'Not set',
839
+ dtProgressTitle: 'Progress stream',
840
+ dtProgressEmptyTitle: 'No progress yet',
841
+ dtProgressEmptyCopy: 'After the first update, the full timeline appears here.',
842
+ dtProgressGoal: 'Goal',
843
+ dtProgressScope: 'Scope',
844
+ dtProgressActual: 'Actual',
845
+ dtProgressCompletion: 'Completion',
846
+ dtProgressEvidence: 'Evidence',
847
+ dtProgressEvidenceNone: 'No evidence',
848
+ dtProgressCustomer: 'Customer',
849
+ dtProgressCustomerNone: 'Not synced yet',
850
+ dtProgressFeedback: 'Feedback',
851
+ dtProgressNext: 'Next',
852
+ dtProgressNextNone: 'No next step scheduled',
853
+ dtProgressDeadline: 'Due',
854
+ dtProgressSeq: 'Entry {seq}',
855
+ dtProgressCount: '{count} entries',
856
+ dtDimensionAuto: 'derived',
857
+ dtDimensionManual: 'manual',
858
+ dtDimensionEmptyReason: 'Not in the conclusion, and not derivable from progress',
859
+ dtG0Title: 'G0 completeness',
860
+ dtG0Present: 'Present',
861
+ dtG0Missing: 'Missing',
862
+ dtG0FiveRequired: '{present} of 5 present',
863
+ dtG0ReviewLine: 'Reviewed by {reviewer} on {date}: "{conclusion}"',
864
+ dtG0Unreviewed: 'No review conclusion yet',
865
+ dtPlanTitle: 'Plan (G1 / G2)',
866
+ dtPlanCriteria: 'Success criteria',
867
+ dtPlanCriteriaNone: 'No success criterion defined yet',
868
+ dtPlanCriteriaCount: '{count} (2–3 required)',
869
+ dtPlanMetric: 'Metric',
870
+ dtPlanBaseline: 'Baseline',
871
+ dtPlanTarget: 'Target',
872
+ dtPlanScenarios: 'Validation scenarios',
873
+ dtPlanScenariosNone: 'No validation scenario defined yet',
874
+ dtPlanScenariosCount: '{count} (3–5 required)',
875
+ dtPlanRisks: 'Risks',
876
+ dtPlanRisksNone: 'No risk registered',
877
+ dtPlanRisksCount: '{count} (max 3)',
878
+ dtPlanMitigation: 'Mitigation',
879
+ dtPlanPain: 'Customer pain',
880
+ dtPlanRecognition: 'Expected recognition',
881
+ dtPlanEdge: 'Our edge',
882
+ dtPlanWindow: 'Planned window',
883
+ dtPlanReportNodes: 'Report nodes',
884
+ dtPlanGate1: 'G1 conclusion',
885
+ dtPlanGate2: 'G2 ready',
886
+ dtOutcomeTitle: 'Conclusion',
887
+ dtOutcomeProved: 'What we proved',
888
+ dtOutcomeRecognized: 'What the customer recognised',
889
+ dtOutcomeNext: 'Next business action',
890
+ dtOutcomeMilestone: 'Next milestone',
891
+ dtOutcomeMilestoneNone: 'No next milestone — value was created, but none of it was banked',
892
+ dtOutcomeMilestoneOwner: 'Owner {owner}',
893
+ dtOutcomeMilestoneDeadline: 'Due {date}',
894
+ dtOutcomeMilestoneStatus: 'Status {status}',
895
+ dtOutcomeProof: 'Our proof',
896
+ dtOutcomeRemaining: 'Remaining risks',
897
+ dtOutcomeOverall: 'Overall conclusion',
898
+ dtOutcomeReviewed: 'Reviewed',
899
+ dtSectionNav: 'Jump to section',
900
+ // ---------- 0.3 · risks / timeline ----------
901
+ riskLaneTitle: 'Severity distribution',
902
+ riskLaneNote: 'High {high} · Medium {medium} · Low {low} · Unrated {unset}',
903
+ riskBoardNote: '{count} risks from {projects} projects',
904
+ riskSourceProject: 'Source project',
905
+ riskSeverityColumn: 'Level',
906
+ riskMitigationColumn: 'Mitigation',
907
+ tlLaneTitle: 'Monthly distribution',
908
+ tlLaneNote: '{count} entries',
909
+ tlEntryGoal: 'Goal',
910
+ tlEntryActual: 'Actual',
911
+ tlEntryEvidence: 'Evidence',
912
+ tlEntryCustomer: 'Customer',
913
+ tlEntryNext: 'Next',
914
+ tlSilentTitle: 'Projects with no progress at all',
915
+ tlSilentNote: '{count}',
916
+ };
917
+ /** Read one key from a dictionary, falling back to the key itself. */
918
+ export function textOf(dict, key) {
919
+ return dict[key] ?? key;
920
+ }
921
+ /** Pick the dictionary for a locale id, falling back to English. */
922
+ export function dictFor(locale) {
923
+ return locale.toLowerCase().startsWith('zh') ? zh : en;
924
+ }
925
+ /**
926
+ * Fill `{name}` placeholders from a parameter bag.
927
+ *
928
+ * The Client-side locale service interpolates the same way, but this helper is
929
+ * also used for dictionary lookups that bypass the service (the initial paint
930
+ * before the service's snapshot is available), and for the tests.
931
+ */
932
+ export function format(template, params = {}) {
933
+ return template.replace(/\{([A-Za-z0-9_]+)\}/g, (whole, key) => (key in params ? String(params[key]) : whole));
934
+ }