@huaqiu/dsh-hardware-ui 0.7.17 → 0.7.19

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.
@@ -0,0 +1,604 @@
1
+ /**
2
+ * Hardware Engineering dictionaries for DSH's locale service.
3
+ *
4
+ * Same shape as `@huaqiu/dsh-huaqiu-about/src/client/locales.ts`: `zh` is the
5
+ * source of truth for the key union and `en` is checked against it, so a key
6
+ * added to one language but not the other is a compile error. DSH dictionaries
7
+ * are flat strings with `{name}` placeholders (no functions or nested
8
+ * objects); `copy.ts` and `document/copy.ts` keep the structured call-site API
9
+ * and fill the placeholders for us.
10
+ *
11
+ * Untranslatable by convention: `kicad-cli`, file extensions, executable paths,
12
+ * agent tool names and unit symbols.
13
+ *
14
+ * @module @huaqiu/dsh-hardware-ui/client/locales
15
+ */
16
+
17
+ export const zh = {
18
+ // Product name and the five persistent destinations.
19
+ 'product.name': '硬件工程',
20
+ 'destinations.schematic': '原理图',
21
+ 'destinations.pcb': 'PCB',
22
+ 'destinations.bom': 'BOM',
23
+ 'destinations.3d': '3D 模型',
24
+ 'destinations.order': '下单',
25
+
26
+ // Navigation row and viewer strip.
27
+ 'viewer.discoveryFailed': '产物扫描失败:{detail}',
28
+ 'viewer.installationFailed': '安装检查失败:{detail}',
29
+ 'viewer.noArtifact': '未选择产物',
30
+ 'viewer.kicadMissing': '未找到 KiCad',
31
+ 'viewer.kicadVersion': 'KiCad {version}',
32
+ 'viewer.openInKicad': '用 KiCad 打开',
33
+ 'viewer.openInKicadTitle': '在 KiCad 中打开 {path}',
34
+ 'viewer.selectArtifactFirst': '请先选择一个产物',
35
+ 'viewer.configureKicad': '请在「设置 → 硬件工程」中配置 KiCad',
36
+ 'viewer.selectProject': '选择工程…',
37
+ 'viewer.projectField': '工程',
38
+ 'viewer.schematicSheetField': '原理图页',
39
+ 'viewer.boardField': '板文件',
40
+
41
+ // Empty viewers: what is missing, and how the agent can create it.
42
+ 'placeholder.title.schematic': '暂无原理图',
43
+ 'placeholder.title.pcb': '暂无 PCB',
44
+ 'placeholder.title.bom': '暂无 BOM',
45
+ 'placeholder.title.3d': '暂无 3D 模型',
46
+ 'placeholder.title.order': '暂无可下单的板',
47
+ 'placeholder.guide.schematic': '可以让智能体在当前工程中创建原理图(.kicad_sch),创建后会直接在这里显示。',
48
+ 'placeholder.guide.pcb': '可以让智能体创建 PCB 并完成布局(.kicad_pcb),保存后会直接在这里显示。',
49
+ 'placeholder.guide.bom': 'BOM 由原理图自动生成:让智能体先创建原理图,BOM 会自动更新。',
50
+ 'placeholder.guide.3d': '3D 模型由 PCB 生成:让智能体创建 PCB 后,这里会自动出现三维预览。',
51
+ 'placeholder.guide.order': '制板与贴片都需要 PCB:让智能体创建 PCB 后即可在这里报价下单。',
52
+ 'placeholder.noProject': '可以让智能体在当前工作区创建 KiCad 工程(.kicad_pro),工程出现后这里会自动刷新。',
53
+
54
+ // Discovery outcomes and host issue vocabulary.
55
+ 'discovery.selectionRequiredCount': '发现 {count} 个硬件工程,请明确选择一个。',
56
+ 'discovery.selectionRequiredArtifact': '该工程包含多个可选产物,请明确选择一个。',
57
+ 'discovery.noProjectSelected': '尚未选择硬件工程。请打开或选择一个硬件工程。',
58
+ 'discovery.noSchematic': '该工程没有可用的根原理图。',
59
+ 'discovery.noBoard': '该工程没有可用的 .kicad_pcb 板文件。',
60
+ 'discovery.noBoardToOrder': '请先选择板文件,再报价或下单制板。',
61
+ 'discovery.noProject': '未找到 .kicad_pro 工程文件',
62
+ 'discovery.noProjectIn': '{cwd} 下未找到 .kicad_pro 工程文件',
63
+ 'discovery.missingProject': '工程文件不存在:{path}',
64
+ 'discovery.badManifest': '配置文件 .hardware-engineering.json 无效:{detail}',
65
+
66
+ // Preview stages.
67
+ 'preview.loading': '正在加载已保存的产物…',
68
+ 'preview.kindSchematic': '原理图',
69
+ 'preview.kindBoard': 'PCB',
70
+ 'preview.revision': '版本 {revision}',
71
+ 'preview.ecadHint': '仅预览已保存的文件;文件必须存在且可解析。',
72
+ 'preview.ecadKindMismatch': '宿主返回的产物类型({actual})与预览类型({expected})不一致。',
73
+ 'preview.ecadOverlay': '已保存文件 · 滚轮缩放,拖拽平移',
74
+ 'preview.kicadNotConfigured': 'KiCad 尚未配置。',
75
+ 'preview.glbExporting': '正在用 kicad-cli 导出 PCB 的 GLB…',
76
+ 'preview.glbLoading': '正在加载 3D 模型…',
77
+ 'preview.glbCached': '缓存',
78
+ 'preview.glbGenerated': '已生成',
79
+ 'preview.glbOverlay': '拖拽旋转 · 滚轮缩放',
80
+ 'preview.bomHint': 'BOM 行来自 kicad-cli sch export bom。请在「设置 → 硬件工程」中配置 KiCad。',
81
+ 'preview.bomTitle': '物料清单 · {lines} 行',
82
+ 'preview.bomPlacements': '{count} 个元件位',
83
+ 'preview.bomColumn.reference': '位号',
84
+ 'preview.bomColumn.quantity': '数量',
85
+ 'preview.bomColumn.value': '值',
86
+ 'preview.bomColumn.footprint': '封装',
87
+ 'preview.bomColumn.notes': '备注',
88
+
89
+ // Order Placing destination.
90
+ 'order.title': '制板与贴片',
91
+ 'order.packaging': '打包中…',
92
+ 'order.packageReady': '打包完成',
93
+ 'order.packagePending': '尚未打包',
94
+ 'order.packageRunning': '正在运行 kicad-cli 导出 Gerber 与钻孔…',
95
+ 'order.packageNotPrepared': '尚未打包。',
96
+ 'order.packageCard': '制板文件包',
97
+ 'order.packageFiles': '{files} 个文件 · {size}',
98
+ 'order.pcbTitle': '裸板制板',
99
+ 'order.pcbSubtitle': '通过华秋制板服务对选中的板文件报价并下单。',
100
+ 'order.pcbSummary': '{zip} · {files} 个 Gerber/钻孔文件 · {size}',
101
+ 'order.pcbAction': '提交 PCB 订单',
102
+ 'order.smtTitle': '整包贴片',
103
+ 'order.smtSubtitle': '需要工程根原理图以生成 BOM 与元件坐标。',
104
+ 'order.smtSummary': '{placements} 个贴片点位 · {lines} 行 BOM · {size}',
105
+ 'order.smtAction': '提交贴片订单',
106
+ 'order.smtShort': '贴片',
107
+ 'order.boardFile': '板文件',
108
+ 'order.placements': '贴片点位',
109
+ 'order.bomLines': 'BOM 行数',
110
+ 'order.credential': '登录凭据',
111
+ 'order.signedIn': '华秋登录',
112
+ 'order.signedOut': '未登录',
113
+ 'order.signInToOrder': '请先登录华秋账号再下单——订单页将以你的账号打开。',
114
+ 'order.signInToOrderSmt': '请先登录华秋账号再下单贴片——订单页将以你的账号打开。',
115
+ 'order.waitingForPackage': '正在等待制板文件包。',
116
+ 'order.configureToPackage': '请配置 KiCad 以打包板文件。',
117
+ 'order.selectRootSchematic': '请选择根原理图,以便生成 BOM 与坐标。',
118
+ 'order.layers': '层数',
119
+ 'order.layersValue': '{layers} 层',
120
+ 'order.outline': '外形尺寸',
121
+ 'order.thickness': '板厚',
122
+ 'order.minTrace': '最小线宽',
123
+ 'order.minDrill': '最小钻孔',
124
+ 'order.outerCopper': '外层铜厚',
125
+ 'order.defaultValue': '默认',
126
+ 'order.copperValue': '{oz} oz',
127
+ 'order.agentEntryPoints': 'Agent 入口',
128
+ 'order.submitting': '提交中…',
129
+ 'order.tabTitle': '华秋订单',
130
+ 'order.tabOrder': '订单 {id}',
131
+ 'order.tabMissing': '没有可显示的订单页。',
132
+ 'order.tabAddressHint': '订单页在本页签中打开;链接包含你的登录凭据,因此只显示订单号。',
133
+ 'order.openInSystemBrowser': '在系统浏览器打开',
134
+ 'order.resultTitlePcb': 'PCB 订单已创建',
135
+ 'order.resultTitleSmt': '贴片订单已创建',
136
+ 'order.resultLaunched': '已在右侧面板打开',
137
+ 'order.resultReady': '待打开',
138
+ 'order.resultNote': '与 KiCad 在下单窗口中展示的是同一个页面,已在本页右侧的浏览器页签中打开。',
139
+ 'order.resultLaunchedMessage': '已在右侧面板的浏览器页签中打开「{kind}」订单页。',
140
+ 'order.resultReadyMessage': '「{kind}」订单页已就绪,点击「在右侧面板打开」即可继续。',
141
+ 'order.openInBrowser': '在右侧面板打开',
142
+ 'order.opening': '正在打开…',
143
+ 'order.copyUrl': '复制链接',
144
+ 'order.copied': '已复制',
145
+ 'order.confirmAria': '确认下单上传',
146
+ 'order.confirmTitlePcb': '上传板文件并创建 PCB 订单?',
147
+ 'order.confirmTitleSmt': '上传贴片文件包?',
148
+ 'order.confirmBody': '以下文件将发送到华秋下单服务。订单在那里创建,其页面会在右侧面板中打开;付款仍在该页面完成。',
149
+ 'order.confirmZip': '{zip} — Gerber 与钻孔文件({size})',
150
+ 'order.confirmPositions': '元件坐标({size})',
151
+ 'order.confirmBom': '贴片 BOM({size})',
152
+ 'order.confirmHostFallback': '已配置的下单服务',
153
+ 'order.confirmAck': '我了解这些板文件将离开本机。',
154
+ 'order.cancel': '取消',
155
+ 'order.uploadAndOpen': '上传并打开订单页',
156
+ 'order.uploading': '正在上传…',
157
+ 'order.batch': '生产数量',
158
+ 'order.batchUnits': '{count} 片',
159
+ 'order.quoteBasis': '报价基准 · {count} 片',
160
+
161
+ // First-run setup wizard.
162
+
163
+ // Settings section.
164
+ 'settings.title': '硬件工程',
165
+ 'settings.lead': '用于预览、制板打包、一键调用本地程序以及 Agent 环境上下文的本地 EDA / MCAD 可执行文件。',
166
+ 'settings.kicadTitle': 'KiCad EDA 套件',
167
+ 'settings.kicadPlaceholder': '粘贴可执行文件路径,或点「浏览…」选择',
168
+ 'settings.solidcraftTitle': 'SolidCraft 三维 CAD',
169
+ 'settings.solidcraftPlaceholder': 'C:\\Program Files\\SolidCraft\\bin\\SolidCraft.exe',
170
+ 'settings.pathField': '{title}路径',
171
+ 'settings.validate': '校验并保存',
172
+ 'settings.validating': '校验中…',
173
+ 'settings.configured': '已配置',
174
+ 'settings.notConfigured': '未配置',
175
+ 'settings.notDetected': '未检测到',
176
+ 'settings.savedAndValidated': '{application} 校验通过并已保存。',
177
+ 'settings.savedButInvalid': '{application} 已保存,但校验失败:{detail}',
178
+ 'settings.hostSettingsUnavailable': '宿主未提供设置服务,无法保存。',
179
+ 'settings.hostRejected': '宿主拒绝了{application}的设置。',
180
+
181
+ // Host error sentences, keyed by the stable route `code`.
182
+ 'errors.unauthorized': '没有权限访问该产物:它不在当前会话的工作区授权范围内。',
183
+ 'errors.forbidden': '没有权限执行该操作。',
184
+ 'errors.missing-artifact': '该产物不存在。',
185
+ 'errors.unsupported-artifact': '不支持该产物类型。',
186
+ 'errors.invalid-identity': '产物路径无效。',
187
+ 'errors.missing-executable': '已配置的 KiCad 中没有可打开该产物的程序。',
188
+ 'errors.not-configured': '尚未配置 KiCad。请在「设置 → 硬件工程」中填写安装位置。',
189
+ 'errors.too-large': '产物超过可预览的大小上限。',
190
+ 'errors.export-timeout': 'kicad-cli 执行超时。',
191
+ 'errors.export-failed': 'kicad-cli 导出失败。',
192
+ 'errors.stale-revision': '文件已变化,请刷新后重试。',
193
+ 'errors.invalid-request': '请求参数不完整。',
194
+ 'errors.invalid-application': '不支持该本地程序。',
195
+ 'errors.confirmation-required': '下单需要先在上传确认框中确认。',
196
+ 'errors.invalid-order-url': '订单链接无效,已拒绝打开。',
197
+ 'errors.order-unreachable': '无法连接下单服务。',
198
+ 'errors.order-rejected': '下单服务未能返回可用的订单页。',
199
+ 'errors.not-found': '未找到该接口。',
200
+ 'errors.method-not-allowed': '该接口不支持此请求方式。',
201
+ 'errors.unknown-job': '没有这个安装作业,可能已经结束。',
202
+ 'errors.internal': '服务内部错误。',
203
+ /** Detail appended by describeHostError for the codes that keep technical output. */
204
+ 'error.detail': '({detail})',
205
+
206
+ // Document-rendering surfaces.
207
+ 'document.viewer.schematic': '原理图',
208
+ 'document.viewer.pcb': 'PCB',
209
+ 'document.viewer.model': '3D 模型',
210
+ 'document.state.loading': '正在解析并渲染…',
211
+ 'document.state.stepLoading': '正在解析 STEP 几何…',
212
+ 'document.state.tooLarge': '文件超过 {limit} 上限,文档预览不渲染该文件。',
213
+ 'document.state.parseFailed': '解析失败:{message}',
214
+ 'document.state.renderFailed': '渲染失败:{message}',
215
+ 'document.state.aborted': '渲染已取消。',
216
+ 'document.state.noWebgl': '当前环境无法创建 WebGL 上下文,无法渲染该文档。',
217
+ 'document.state.stepInvalid': '该 STEP/STP 文件不含可用实体几何,无法预览。',
218
+ 'document.state.wasmFailed': '3D 解析组件加载失败。',
219
+ 'document.hint.schematic': '拖动平移 · 滚轮缩放',
220
+ 'document.hint.model': '左键旋转 · 右键平移 · 滚轮缩放',
221
+ 'document.sheets.title': '本图引用 {count} 个子图(未合并显示)',
222
+ 'document.sheets.missing': '{label}:无法读取',
223
+ 'document.sheets.found': '{label}',
224
+ 'document.sheets.hint': '子图在各自的文件中单独打开预览;本预览只渲染当前文档。',
225
+
226
+ // Toolchain capability: discovery, validation, download, notices.
227
+ 'toolchain.checking': '正在检查现有安装…',
228
+ 'toolchain.kicadMissing': 'KiCad 未配置',
229
+ 'toolchain.solidcraftMissing': 'SolidCraft 未配置',
230
+ 'toolchain.discovering': '正在查找已安装版本…',
231
+ 'toolchain.detected': '发现 {path}(v{version})',
232
+ 'toolchain.detectedInvalid': '发现 {path},但校验未通过:{detail}',
233
+ 'toolchain.notDetected': '未检测到',
234
+ 'toolchain.browse': '浏览…',
235
+ 'toolchain.download': '下载 {name} v{version}',
236
+ 'toolchain.downloadUnavailable': '{name} 暂时无法在应用内下载,请使用官方安装包。',
237
+ 'toolchain.downloadUnavailableWith': '{name} 暂时无法在应用内下载:{detail}',
238
+ 'toolchain.official': '官方下载页',
239
+ 'toolchain.cancel': '取消',
240
+ 'toolchain.retryCheck': '重新检查',
241
+ 'toolchain.statusUnconfigured': '未配置',
242
+ 'toolchain.statusValidating': '校验中…',
243
+ 'toolchain.statusConfigured': '已配置',
244
+ 'toolchain.statusInvalid': '校验失败',
245
+ 'toolchain.statusDownloading': '下载中 {percent}',
246
+ 'toolchain.statusExtracting': '解压中',
247
+ 'toolchain.statusDone': '已安装',
248
+ 'toolchain.statusFailed': '安装失败',
249
+ 'toolchain.toastStarted': '开始下载 {name} v{version}',
250
+ 'toolchain.toastDownloaded': '{name} v{version} 下载完成,正在校验…',
251
+ 'toolchain.toastExtracting': '正在解压 {name}…',
252
+ 'toolchain.toastInstalled': '{name} v{version} 已安装并通过校验。',
253
+ 'toolchain.toastFailed': '{name} 安装失败:{detail}',
254
+ 'toolchain.toastChecksum': '{name} 下载包校验值不匹配,已丢弃。',
255
+ 'toolchain.toastCancelled': '{name} 的安装已取消。',
256
+ 'toolchain.toastSaved': '{name} v{version} 校验通过并已保存。',
257
+ 'toolchain.toastInvalid': '{name} 校验失败:{detail}',
258
+ 'toolchain.toastSkipped': '已跳过工具链设置,可在「设置 → 硬件工程」中随时配置。',
259
+ 'toolchain.browseUnsupported': '宿主无法打开文件选择器:{detail}',
260
+ 'toolchain.onboardingTitle': '配置硬件工具链',
261
+ 'toolchain.onboardingLead': '硬件工程会调用本机的 KiCad 与 SolidCraft。现在配置最快;也可以稍后在设置里配置,配置完成前相关功能无法使用。',
262
+ 'toolchain.onboardingAria': '硬件工程工具链设置',
263
+ 'toolchain.skip': '稍后配置',
264
+ 'toolchain.finish': '完成',
265
+ 'toolchain.footNote': '随时可在「设置 → 硬件工程」中修改。',
266
+ 'toolchain.indicator': '硬件工具链:{summary}',
267
+ 'toolchain.pending': '待配置',
268
+
269
+ // First-run wizard and the Settings cards, following
270
+ // `docs/prototype/huaqiu_eda_hardware_toolchain_ux_prototype.html`.
271
+ 'wizard.title': '欢迎使用 HuaQiu EDA Agent',
272
+ 'wizard.badge': '首次配置',
273
+ 'wizard.lead': '连接本机的 EDA 与 MCAD 引擎,即可启用原理图预览、3D PCB 渲染以及 BOM / Gerber 导出。',
274
+ 'wizard.callout': '本机已经装好 KiCad 或 SolidCraft?点「选择本地文件」定位它们,或直接从下方高速镜像下载经过 HuaQiu 验证的安装包。',
275
+ 'wizard.kicadName': 'KiCad EDA 套件',
276
+ 'wizard.kicadPlaceholder': 'C:\\Program Files\\KiCad\\10.0\\bin\\kicad-cli.exe',
277
+ 'wizard.solidcraftPlaceholder': 'C:\\Program Files\\SolidCraft\\bin\\SolidCraft.exe',
278
+ 'wizard.kicadChip': 'PCB / 原理图必需',
279
+ 'wizard.kicadBlurb': '用于 .kicad_sch / .kicad_pcb 预览、GLB 导出与 Gerber 打包。',
280
+ 'wizard.solidcraftName': 'SolidCraft 3D CAD',
281
+ 'wizard.solidcraftChip': '可选 · MCAD',
282
+ 'wizard.solidcraftBlurb': '提供结构外壳上下文与 3D CAD 互操作能力。',
283
+ 'wizard.selectFile': '选择本地文件…',
284
+ 'wizard.dontHave': '还没有 {name}?',
285
+ 'wizard.serverDownload': '从 HuaQiu 服务器下载',
286
+ 'wizard.footer': '你随时可以在「设置 → 硬件工程」中配置或更新这些路径',
287
+ 'wizard.skipNow': '暂时跳过',
288
+ 'wizard.save': '保存并开始使用',
289
+ 'settings.kicadCardBlurb': '填入 KiCad 安装目录或 kicad-cli 路径,用系统文件浏览器选择,或下载 HuaQiu 验证过的安装包。用于 .kicad_sch / .kicad_pcb 预览、GLB 导出、BOM、Gerber 打包与本地打开。',
290
+ 'settings.solidcraftCardBlurb': '当前阶段它只作为 Agent 的环境上下文。用文件浏览器选择已有的 SolidCraft.exe,或从服务器下载官方构建。',
291
+ 'settings.statusVerified': '已验证可执行文件',
292
+ 'settings.statusAwaiting': '等待可执行文件路径',
293
+ 'settings.statusUnsaved': '未保存 · 点「校验并保存」',
294
+ 'settings.downloadKicad': '下载 KiCad(v{version})',
295
+ 'settings.downloadSolidCraft': '下载 SolidCraft(v{version})',
296
+ 'toolchain.downloading': '正在从 down.eda.cn 下载…',
297
+ 'toolchain.statusNotConfigured': '未配置',
298
+ 'toolchain.browseTitle': '在系统文件浏览器中选择可执行文件',
299
+
300
+ // Executable picker (the list modal Browse opens), prototype §3.
301
+ 'toolchain.pickerTitle': '在系统文件浏览器中选择 {name} 可执行文件',
302
+ 'toolchain.pickerHint': '点下面的可执行文件,或用右上角的「打开系统选择器」在系统对话框里挑一个…',
303
+ 'toolchain.pickerNative': '打开系统选择器 ↗',
304
+ 'toolchain.pickerNativeWaiting': '等待系统对话框…',
305
+ 'toolchain.pickerRoot': '此电脑',
306
+ 'toolchain.pickerNoSelection': '未选择文件',
307
+ 'toolchain.pickerOpen': '打开',
308
+ 'toolchain.pickerCancel': '取消',
309
+ 'toolchain.pickerOriginSystem': '系统安装',
310
+ 'toolchain.pickerOriginUserLocal': '用户安装',
311
+ 'toolchain.pickerOriginManaged': 'HuaQiu 托管',
312
+ 'toolchain.pickerValid': '可用',
313
+ 'toolchain.pickerInvalid': '校验未通过',
314
+ } as const
315
+
316
+ export type HardwareCopyKey = keyof typeof zh
317
+
318
+ export const en: Record<HardwareCopyKey, string> = {
319
+ 'product.name': 'Hardware Engineering',
320
+ 'destinations.schematic': 'Schematic',
321
+ 'destinations.pcb': 'PCB',
322
+ 'destinations.bom': 'BOM',
323
+ 'destinations.3d': '3D model',
324
+ 'destinations.order': 'Order',
325
+
326
+ 'viewer.discoveryFailed': 'Artifact scan failed: {detail}',
327
+ 'viewer.installationFailed': 'Installation check failed: {detail}',
328
+ 'viewer.noArtifact': 'No artifact selected',
329
+ 'viewer.kicadMissing': 'KiCad not found',
330
+ 'viewer.kicadVersion': 'KiCad {version}',
331
+ 'viewer.openInKicad': 'Open in KiCad',
332
+ 'viewer.openInKicadTitle': 'Open {path} in KiCad',
333
+ 'viewer.selectArtifactFirst': 'Select an artifact first',
334
+ 'viewer.configureKicad': 'Configure KiCad in Settings → Hardware Engineering',
335
+ 'viewer.selectProject': 'Select project…',
336
+ 'viewer.projectField': 'Project',
337
+ 'viewer.schematicSheetField': 'Schematic sheet',
338
+ 'viewer.boardField': 'Board file',
339
+
340
+ 'placeholder.title.schematic': 'No schematic yet',
341
+ 'placeholder.title.pcb': 'No PCB yet',
342
+ 'placeholder.title.bom': 'No BOM yet',
343
+ 'placeholder.title.3d': 'No 3D model yet',
344
+ 'placeholder.title.order': 'No board to order',
345
+ 'placeholder.guide.schematic': 'Ask the agent to create a schematic (.kicad_sch) in the current project; it will appear here once created.',
346
+ 'placeholder.guide.pcb': 'Ask the agent to create a PCB and finish its layout (.kicad_pcb); it will appear here once saved.',
347
+ 'placeholder.guide.bom': 'The BOM is generated from the schematic: ask the agent to create the schematic first and the BOM updates automatically.',
348
+ 'placeholder.guide.3d': 'The 3D model is generated from the PCB: once the agent creates the PCB, a 3D preview appears here.',
349
+ 'placeholder.guide.order': 'Fabrication and assembly both need a PCB: once the agent creates it, you can get a quote and order here.',
350
+ 'placeholder.noProject': 'Ask the agent to create a KiCad project (.kicad_pro) in the current workspace; this view refreshes when it appears.',
351
+
352
+ 'discovery.selectionRequiredCount': 'Found {count} hardware projects; select one explicitly.',
353
+ 'discovery.selectionRequiredArtifact': 'This project has several possible artifacts; select one explicitly.',
354
+ 'discovery.noProjectSelected': 'No hardware project selected. Open or select a hardware project.',
355
+ 'discovery.noSchematic': 'This project has no usable root schematic.',
356
+ 'discovery.noBoard': 'This project has no usable .kicad_pcb board file.',
357
+ 'discovery.noBoardToOrder': 'Select a board file before getting a quote or ordering fabrication.',
358
+ 'discovery.noProject': 'No .kicad_pro project file found',
359
+ 'discovery.noProjectIn': 'No .kicad_pro project file found under {cwd}',
360
+ 'discovery.missingProject': 'Project file does not exist: {path}',
361
+ 'discovery.badManifest': 'Configuration file .hardware-engineering.json is invalid: {detail}',
362
+
363
+ 'preview.loading': 'Loading saved artifacts…',
364
+ 'preview.kindSchematic': 'Schematic',
365
+ 'preview.kindBoard': 'PCB',
366
+ 'preview.revision': 'Revision {revision}',
367
+ 'preview.ecadHint': 'Only saved files are previewed; the file must exist and be parseable.',
368
+ 'preview.ecadKindMismatch': 'The host returned artifact type ({actual}) does not match the preview type ({expected}).',
369
+ 'preview.ecadOverlay': 'Saved file · scroll to zoom, drag to pan',
370
+ 'preview.kicadNotConfigured': 'KiCad is not configured.',
371
+ 'preview.glbExporting': 'Exporting the PCB GLB with kicad-cli…',
372
+ 'preview.glbLoading': 'Loading the 3D model…',
373
+ 'preview.glbCached': 'Cached',
374
+ 'preview.glbGenerated': 'Generated',
375
+ 'preview.glbOverlay': 'Drag to rotate · scroll to zoom',
376
+ 'preview.bomHint': 'BOM lines come from kicad-cli sch export bom. Configure KiCad in Settings → Hardware Engineering.',
377
+ 'preview.bomTitle': 'Bill of materials · {lines} lines',
378
+ 'preview.bomPlacements': '{count} placements',
379
+ 'preview.bomColumn.reference': 'Ref',
380
+ 'preview.bomColumn.quantity': 'Qty',
381
+ 'preview.bomColumn.value': 'Value',
382
+ 'preview.bomColumn.footprint': 'Footprint',
383
+ 'preview.bomColumn.notes': 'Notes',
384
+
385
+ 'order.title': 'Fabrication and assembly',
386
+ 'order.packaging': 'Packaging…',
387
+ 'order.packageReady': 'Package ready',
388
+ 'order.packagePending': 'Not packaged yet',
389
+ 'order.packageRunning': 'Running kicad-cli to export Gerbers and drill files…',
390
+ 'order.packageNotPrepared': 'Not packaged yet.',
391
+ 'order.packageCard': 'Fabrication package',
392
+ 'order.packageFiles': '{files} files · {size}',
393
+ 'order.pcbTitle': 'Bare PCB fabrication',
394
+ 'order.pcbSubtitle': 'Get a quote and order the selected board through the Huaqiu fabrication service.',
395
+ 'order.pcbSummary': '{zip} · {files} Gerber/drill files · {size}',
396
+ 'order.pcbAction': 'Place PCB order',
397
+ 'order.smtTitle': 'Assembly',
398
+ 'order.smtSubtitle': 'Needs the project root schematic to generate the BOM and component positions.',
399
+ 'order.smtSummary': '{placements} placements · {lines} BOM lines · {size}',
400
+ 'order.smtAction': 'Place assembly order',
401
+ 'order.smtShort': 'assembly',
402
+ 'order.boardFile': 'Board file',
403
+ 'order.placements': 'Placements',
404
+ 'order.bomLines': 'BOM lines',
405
+ 'order.credential': 'Sign-in status',
406
+ 'order.signedIn': 'Signed in to Huaqiu',
407
+ 'order.signedOut': 'Not signed in',
408
+ 'order.signInToOrder': 'Sign in to your Huaqiu account before ordering — the order page opens as your account.',
409
+ 'order.signInToOrderSmt': 'Sign in to your Huaqiu account before placing an assembly order — the order page opens as your account.',
410
+ 'order.waitingForPackage': 'Waiting for the fabrication package.',
411
+ 'order.configureToPackage': 'Configure KiCad to package the board files.',
412
+ 'order.selectRootSchematic': 'Select the root schematic to generate the BOM and component positions.',
413
+ 'order.layers': 'Layers',
414
+ 'order.layersValue': '{layers} layers',
415
+ 'order.outline': 'Outline',
416
+ 'order.thickness': 'Thickness',
417
+ 'order.minTrace': 'Min trace width',
418
+ 'order.minDrill': 'Min drill',
419
+ 'order.outerCopper': 'Outer copper',
420
+ 'order.defaultValue': 'Default',
421
+ 'order.copperValue': '{oz} oz',
422
+ 'order.agentEntryPoints': 'Agent entry points',
423
+ 'order.submitting': 'Submitting…',
424
+ 'order.tabTitle': 'Huaqiu order',
425
+ 'order.tabOrder': 'Order {id}',
426
+ 'order.tabMissing': 'There is no order page to display.',
427
+ 'order.tabAddressHint': 'The order page opens in this tab; its link contains your sign-in credentials, so only the order id is shown.',
428
+ 'order.openInSystemBrowser': 'Open in system browser',
429
+ 'order.resultTitlePcb': 'PCB order created',
430
+ 'order.resultTitleSmt': 'Assembly order created',
431
+ 'order.resultLaunched': 'Opened in the right panel',
432
+ 'order.resultReady': 'Ready to open',
433
+ 'order.resultNote': 'This is the same page KiCad shows in its ordering window, opened in a browser tab on the right of this panel.',
434
+ 'order.resultLaunchedMessage': 'Opened the "{kind}" order page in a browser tab in the right panel.',
435
+ 'order.resultReadyMessage': 'The "{kind}" order page is ready; click "Open in right panel" to continue.',
436
+ 'order.openInBrowser': 'Open in right panel',
437
+ 'order.opening': 'Opening…',
438
+ 'order.copyUrl': 'Copy link',
439
+ 'order.copied': 'Copied',
440
+ 'order.confirmAria': 'Confirm order upload',
441
+ 'order.confirmTitlePcb': 'Upload board files and create a PCB order?',
442
+ 'order.confirmTitleSmt': 'Upload the assembly package?',
443
+ 'order.confirmBody': 'The following files will be sent to the Huaqiu ordering service. The order is created there and its page opens in the right panel; payment is completed on that page.',
444
+ 'order.confirmZip': '{zip} — Gerber and drill files ({size})',
445
+ 'order.confirmPositions': 'Component positions ({size})',
446
+ 'order.confirmBom': 'Assembly BOM ({size})',
447
+ 'order.confirmHostFallback': 'the configured ordering service',
448
+ 'order.confirmAck': 'I understand these board files will leave this machine.',
449
+ 'order.cancel': 'Cancel',
450
+ 'order.uploadAndOpen': 'Upload and open order page',
451
+ 'order.uploading': 'Uploading…',
452
+ 'order.batch': 'Quantity',
453
+ 'order.batchUnits': '{count} boards',
454
+ 'order.quoteBasis': 'Quote basis · {count} boards',
455
+
456
+
457
+ 'settings.title': 'Hardware Engineering',
458
+ 'settings.lead': 'Local EDA / MCAD executables used for previews, fabrication packaging, one-click local open and agent environment context.',
459
+ 'settings.kicadTitle': 'KiCad EDA suite',
460
+ 'settings.kicadPlaceholder': 'Paste executable path or click Browse...',
461
+ 'settings.solidcraftTitle': 'SolidCraft 3D CAD',
462
+ 'settings.solidcraftPlaceholder': 'C:\\Program Files\\SolidCraft\\bin\\SolidCraft.exe',
463
+ 'settings.pathField': '{title} path',
464
+ 'settings.validate': 'Validate and save',
465
+ 'settings.validating': 'Validating…',
466
+ 'settings.configured': 'Configured',
467
+ 'settings.notConfigured': 'Not configured',
468
+ 'settings.notDetected': 'Not detected',
469
+ 'settings.savedAndValidated': '{application} validated and saved.',
470
+ 'settings.savedButInvalid': '{application} saved, but validation failed: {detail}',
471
+ 'settings.hostSettingsUnavailable': 'The host did not provide a settings service; nothing was saved.',
472
+ 'settings.hostRejected': 'The host rejected the {application} setting.',
473
+
474
+ 'errors.unauthorized': 'No permission to access this artifact: it is outside the workspace authorized for this session.',
475
+ 'errors.forbidden': 'No permission to perform this operation.',
476
+ 'errors.missing-artifact': 'This artifact does not exist.',
477
+ 'errors.unsupported-artifact': 'This artifact type is not supported.',
478
+ 'errors.invalid-identity': 'The artifact path is invalid.',
479
+ 'errors.missing-executable': 'The configured KiCad has no program that can open this artifact.',
480
+ 'errors.not-configured': 'KiCad is not configured. Enter its installation location in Settings → Hardware Engineering.',
481
+ 'errors.too-large': 'The artifact exceeds the size limit for previews.',
482
+ 'errors.export-timeout': 'kicad-cli timed out.',
483
+ 'errors.export-failed': 'kicad-cli export failed.',
484
+ 'errors.stale-revision': 'The file changed; refresh and try again.',
485
+ 'errors.invalid-request': 'The request parameters are incomplete.',
486
+ 'errors.invalid-application': 'This local application is not supported.',
487
+ 'errors.confirmation-required': 'Confirm the upload dialog before placing an order.',
488
+ 'errors.invalid-order-url': 'The order link is invalid and was refused.',
489
+ 'errors.order-unreachable': 'Could not connect to the ordering service.',
490
+ 'errors.order-rejected': 'The ordering service did not return a usable order page.',
491
+ 'errors.not-found': 'This endpoint was not found.',
492
+ 'errors.method-not-allowed': 'This endpoint does not accept that request method.',
493
+ 'errors.unknown-job': 'No such installation job — it may already have finished.',
494
+ 'errors.internal': 'An internal service error occurred.',
495
+ 'error.detail': ' ({detail})',
496
+
497
+ 'document.viewer.schematic': 'Schematic',
498
+ 'document.viewer.pcb': 'PCB',
499
+ 'document.viewer.model': '3D model',
500
+ 'document.state.loading': 'Parsing and rendering…',
501
+ 'document.state.stepLoading': 'Parsing STEP geometry…',
502
+ 'document.state.tooLarge': 'The file exceeds the {limit} limit; document preview does not render it.',
503
+ 'document.state.parseFailed': 'Parse failed: {message}',
504
+ 'document.state.renderFailed': 'Render failed: {message}',
505
+ 'document.state.aborted': 'Rendering was cancelled.',
506
+ 'document.state.noWebgl': 'This environment cannot create a WebGL context, so the document cannot be rendered.',
507
+ 'document.state.stepInvalid': 'This STEP/STP file has no usable solid geometry to preview.',
508
+ 'document.state.wasmFailed': 'The 3D parser failed to load.',
509
+ 'document.hint.schematic': 'Drag to pan · scroll to zoom',
510
+ 'document.hint.model': 'Left-drag to rotate · right-drag to pan · scroll to zoom',
511
+ 'document.sheets.title': 'This sheet references {count} child sheets (not merged)',
512
+ 'document.sheets.missing': '{label}: unreadable',
513
+ 'document.sheets.found': '{label}',
514
+ 'document.sheets.hint': 'Child sheets preview in their own files; this preview renders only the current document.',
515
+
516
+ // Toolchain capability: discovery, validation, download, notices.
517
+ 'toolchain.checking': 'Checking for an existing installation…',
518
+ 'toolchain.kicadMissing': 'KiCad not configured',
519
+ 'toolchain.solidcraftMissing': 'SolidCraft not configured',
520
+ 'toolchain.discovering': 'Looking for installed versions…',
521
+ 'toolchain.detected': 'Found {path} (v{version})',
522
+ 'toolchain.detectedInvalid': 'Found {path}, but it did not validate: {detail}',
523
+ 'toolchain.notDetected': 'not detected',
524
+ 'toolchain.browse': 'Browse…',
525
+ 'toolchain.download': 'Download {name} v{version}',
526
+ 'toolchain.downloadUnavailable': '{name} cannot be downloaded in-app right now — use the official installer.',
527
+ 'toolchain.downloadUnavailableWith': '{name} cannot be downloaded in-app: {detail}',
528
+ 'toolchain.official': 'Official download page',
529
+ 'toolchain.cancel': 'Cancel',
530
+ 'toolchain.retryCheck': 'Check again',
531
+ 'toolchain.statusUnconfigured': 'Not configured',
532
+ 'toolchain.statusValidating': 'Checking…',
533
+ 'toolchain.statusConfigured': 'Configured',
534
+ 'toolchain.statusInvalid': 'Invalid',
535
+ 'toolchain.statusDownloading': 'Downloading {percent}',
536
+ 'toolchain.statusExtracting': 'Extracting',
537
+ 'toolchain.statusDone': 'Installed',
538
+ 'toolchain.statusFailed': 'Install failed',
539
+ 'toolchain.toastStarted': 'Downloading {name} v{version}',
540
+ 'toolchain.toastDownloaded': '{name} v{version} downloaded — verifying…',
541
+ 'toolchain.toastExtracting': 'Extracting {name}…',
542
+ 'toolchain.toastInstalled': '{name} v{version} installed and validated.',
543
+ 'toolchain.toastFailed': '{name} install failed: {detail}',
544
+ 'toolchain.toastChecksum': '{name} download did not match its checksum and was discarded.',
545
+ 'toolchain.toastCancelled': '{name} installation cancelled.',
546
+ 'toolchain.toastSaved': '{name} v{version} validated and saved.',
547
+ 'toolchain.toastInvalid': '{name} did not validate: {detail}',
548
+ 'toolchain.toastSkipped': 'Toolchain setup skipped — you can configure it any time in Settings → Hardware Engineering.',
549
+ 'toolchain.browseUnsupported': 'The host could not open a file chooser: {detail}',
550
+ 'toolchain.onboardingTitle': 'Set up the hardware toolchain',
551
+ 'toolchain.onboardingLead': 'Hardware Engineering drives the KiCad and SolidCraft installed on this machine. Setting them up now is fastest; you can also do it later in Settings — the features stay unavailable until it is done.',
552
+ 'toolchain.onboardingAria': 'Hardware toolchain setup',
553
+ 'toolchain.skip': 'Skip for now',
554
+ 'toolchain.finish': 'Done',
555
+ 'toolchain.footNote': 'You can change this any time in Settings → Hardware Engineering.',
556
+ 'toolchain.indicator': 'Hardware toolchain: {summary}',
557
+ 'toolchain.pending': 'Setup needed',
558
+
559
+ // First-run wizard and the Settings cards, following
560
+ // `docs/prototype/huaqiu_eda_hardware_toolchain_ux_prototype.html`.
561
+ 'wizard.title': 'Welcome to HuaQiu EDA Agent',
562
+ 'wizard.badge': 'First-Time Setup',
563
+ 'wizard.lead': 'Connect your local EDA & MCAD engines to unlock schematic previews, 3D PCB rendering, and BOM/Gerber exports.',
564
+ 'wizard.callout': 'Already have KiCad or SolidCraft installed? Click Select Local File to locate them on your computer, or download the verified HuaQiu builds directly from our high-speed mirror below.',
565
+ 'wizard.kicadName': 'KiCad EDA Suite',
566
+ 'wizard.kicadPlaceholder': 'C:\\Program Files\\KiCad\\10.0\\bin\\kicad-cli.exe',
567
+ 'wizard.solidcraftPlaceholder': 'C:\\Program Files\\SolidCraft\\bin\\SolidCraft.exe',
568
+ 'wizard.kicadChip': 'Required for PCB/Sch',
569
+ 'wizard.kicadBlurb': 'Used for .kicad_sch / .kicad_pcb previews, GLB export, and Gerber packaging.',
570
+ 'wizard.solidcraftName': 'SolidCraft 3D CAD',
571
+ 'wizard.solidcraftChip': 'Optional • MCAD',
572
+ 'wizard.solidcraftBlurb': 'Provides structural enclosure context and 3D CAD interoperability.',
573
+ 'wizard.selectFile': 'Select Local File...',
574
+ 'wizard.dontHave': "Don't have {name}?",
575
+ 'wizard.serverDownload': 'Download from HuaQiu Server',
576
+ 'wizard.footer': 'You can configure or update these anytime in Settings → Hardware Engineering',
577
+ 'wizard.skipNow': 'Skip for Now',
578
+ 'wizard.save': 'Save & Get Started',
579
+ 'settings.kicadCardBlurb': 'Enter a KiCad installation directory or a kicad-cli path, browse via system file explorer, or download the HuaQiu-verified package. Used for .kicad_sch / .kicad_pcb previews, GLB export, BOM, Gerber packaging and local open.',
580
+ 'settings.solidcraftCardBlurb': 'In this POC it is only agent environment context. Select an existing SolidCraft.exe via file explorer or download the official build from our server.',
581
+ 'settings.statusVerified': 'Verified executable',
582
+ 'settings.statusAwaiting': 'Awaiting executable path',
583
+ 'settings.statusUnsaved': 'Not saved · click Validate and save',
584
+ 'settings.downloadKicad': 'Download KiCad (v{version})',
585
+ 'settings.downloadSolidCraft': 'Download SolidCraft (v{version})',
586
+ 'toolchain.downloading': 'Downloading from down.eda.cn...',
587
+ 'toolchain.statusNotConfigured': 'Not configured',
588
+ 'toolchain.browseTitle': 'Select the executable in the system file explorer',
589
+
590
+ // Executable picker (the list modal Browse opens), prototype §3.
591
+ 'toolchain.pickerTitle': 'Select {name} Executable — System File Explorer',
592
+ 'toolchain.pickerHint': 'Click a detected executable below or open Native OS Picker...',
593
+ 'toolchain.pickerNative': 'Open Native OS Picker ↗',
594
+ 'toolchain.pickerNativeWaiting': 'Waiting for the OS dialog…',
595
+ 'toolchain.pickerRoot': 'This PC',
596
+ 'toolchain.pickerNoSelection': 'No file selected',
597
+ 'toolchain.pickerOpen': 'Open',
598
+ 'toolchain.pickerCancel': 'Cancel',
599
+ 'toolchain.pickerOriginSystem': 'System install',
600
+ 'toolchain.pickerOriginUserLocal': 'User install',
601
+ 'toolchain.pickerOriginManaged': 'HuaQiu managed',
602
+ 'toolchain.pickerValid': 'usable',
603
+ 'toolchain.pickerInvalid': 'fails validation',
604
+ }