reactive-md 0.3.1 → 0.4.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 (172) hide show
  1. package/CHANGELOG-ch.md +96 -0
  2. package/CHANGELOG.md +82 -39
  3. package/CONTRIBUTING-ch.md +62 -0
  4. package/CONTRIBUTING.md +64 -65
  5. package/README-ch.md +122 -0
  6. package/README-en.md +146 -0
  7. package/README.md +146 -89
  8. package/SECURITY-ch.md +80 -0
  9. package/SECURITY.md +58 -49
  10. package/THIRD_PARTY_NOTICES.md +85 -1
  11. package/bin/reactive-md.mjs +40 -0
  12. package/cli/args.mjs +181 -0
  13. package/cli/assets.mjs +390 -0
  14. package/cli/build.mjs +268 -0
  15. package/cli/document.mjs +130 -0
  16. package/cli/errors.mjs +61 -0
  17. package/cli/fs-utils.mjs +133 -0
  18. package/cli/glob.mjs +203 -0
  19. package/cli/help.mjs +138 -0
  20. package/cli/lint.mjs +177 -0
  21. package/cli/main.mjs +55 -0
  22. package/cli/migrate.mjs +368 -0
  23. package/cli/package.mjs +209 -0
  24. package/dist-library/reactive-md-react.js +3425 -1647
  25. package/dist-library/reactive-md.css +1 -1
  26. package/dist-library/reactive-md.js +1798 -4
  27. package/dist-library/runtime-DtjdPXxJ.js +15410 -0
  28. package/dist-library/types/index.d.ts +1 -0
  29. package/dist-library/types/local/LocalDocumentView.d.ts +66 -3
  30. package/dist-library/types/local/authoring.d.ts +63 -0
  31. package/dist-library/types/local/collection-functions.d.ts +4 -0
  32. package/dist-library/types/local/colors.d.ts +2 -0
  33. package/dist-library/types/local/computations.d.ts +53 -0
  34. package/dist-library/types/local/data-functions.d.ts +22 -0
  35. package/dist-library/types/local/data-table.d.ts +65 -0
  36. package/dist-library/types/local/dates.d.ts +2 -0
  37. package/dist-library/types/local/dependencies.d.ts +31 -0
  38. package/dist-library/types/local/diagnostics.d.ts +1450 -0
  39. package/dist-library/types/local/expression.d.ts +13 -3
  40. package/dist-library/types/local/formatting.d.ts +41 -0
  41. package/dist-library/types/local/heading-anchors.d.ts +13 -2
  42. package/dist-library/types/local/i18n.d.ts +18 -0
  43. package/dist-library/types/local/index.d.ts +18 -1
  44. package/dist-library/types/local/limits.d.ts +32 -1
  45. package/dist-library/types/local/locale.d.ts +1 -0
  46. package/dist-library/types/local/math.d.ts +6 -1
  47. package/dist-library/types/local/parser.d.ts +10 -4
  48. package/dist-library/types/local/render-types.d.ts +5 -1
  49. package/dist-library/types/local/retention.d.ts +23 -0
  50. package/dist-library/types/local/schema.d.ts +25 -3
  51. package/dist-library/types/local/source-migration.d.ts +35 -0
  52. package/dist-library/types/local/state.d.ts +80 -0
  53. package/dist-library/types/local/text-length.d.ts +13 -0
  54. package/dist-library/types/local/theme.d.ts +30 -0
  55. package/dist-library/types/local/types.d.ts +112 -4
  56. package/dist-library/types/local/validation.d.ts +32 -0
  57. package/dist-library/types/local/version.d.ts +1 -1
  58. package/dist-library/types/local/worker.d.ts +82 -0
  59. package/dist-library/types/react/index.d.ts +4 -1
  60. package/dist-library/types/shareable.d.ts +64 -0
  61. package/dist-standalone/reactive-md-standalone.css +2 -0
  62. package/dist-standalone/reactive-md-standalone.js +57 -0
  63. package/docs/author-tools-ch.md +56 -0
  64. package/docs/author-tools-en.md +56 -0
  65. package/docs/compatibility-ch.md +103 -0
  66. package/docs/compatibility-en.md +103 -0
  67. package/docs/{component-development.md → component-development-ch.md} +210 -206
  68. package/docs/component-development-en.md +210 -0
  69. package/docs/{component-protocol.md → component-protocol-ch.md} +710 -685
  70. package/docs/component-protocol-en.md +710 -0
  71. package/docs/computations-formatting-ch.md +87 -0
  72. package/docs/computations-formatting-en.md +87 -0
  73. package/docs/constraints-collections-ch.md +84 -0
  74. package/docs/constraints-collections-en.md +84 -0
  75. package/docs/diagnostics-counting-ch.md +84 -0
  76. package/docs/diagnostics-counting-en.md +84 -0
  77. package/docs/local-components-v2-ch.md +138 -0
  78. package/docs/local-components-v2-en.md +104 -0
  79. package/docs/{local-guide.md → local-guide-ch.md} +28 -8
  80. package/docs/local-guide-en.md +961 -0
  81. package/docs/local-integration-ch.md +363 -0
  82. package/docs/local-integration-en.md +363 -0
  83. package/docs/{local-interaction-syntax.md → local-interaction-syntax-ch.md} +66 -20
  84. package/docs/local-interaction-syntax-en.md +483 -0
  85. package/docs/{performance.md → performance-ch.md} +12 -3
  86. package/docs/performance-en.md +76 -0
  87. package/docs/release-0.4.0-ch.md +89 -0
  88. package/docs/release-0.4.0-en.md +89 -0
  89. package/docs/releasing-ch.md +101 -0
  90. package/docs/releasing-en.md +101 -0
  91. package/docs/shareable-export-ch.md +205 -0
  92. package/docs/shareable-export-en.md +207 -0
  93. package/docs/source-versioning-ch.md +159 -0
  94. package/docs/source-versioning-en.md +159 -0
  95. package/docs/theme-protocol-ch.md +107 -0
  96. package/docs/theme-protocol-en.md +107 -0
  97. package/examples/conformance/README.md +33 -31
  98. package/examples/conformance/component-protocol-1.json +482 -194
  99. package/examples/conformance/component-protocol-1.schema.json +76 -76
  100. package/examples/conformance/history/v0.3.1/catalog.reactive.md +20 -0
  101. package/examples/conformance/history/v0.3.1/charts.reactive.md +73 -0
  102. package/examples/conformance/history/v0.3.1/checklist.reactive.md +32 -0
  103. package/examples/conformance/history/v0.3.1/comparison.reactive.md +47 -0
  104. package/examples/conformance/history/v0.3.1/components.reactive.md +44 -0
  105. package/examples/conformance/history/v0.3.1/counter.reactive.md +7 -0
  106. package/examples/conformance/history/v0.3.1/diagnostics.reactive.md +54 -0
  107. package/examples/conformance/history/v0.3.1/diagram.reactive.md +44 -0
  108. package/examples/conformance/history/v0.3.1/gallery.reactive.md +61 -0
  109. package/examples/conformance/history/v0.3.1/local-draft-1.json +50 -0
  110. package/examples/conformance/history/v0.3.1/parameters.reactive.md +36 -0
  111. package/examples/conformance/history/v0.3.1/planning.reactive.md +24 -0
  112. package/examples/conformance/history/v0.3.1/pricing.reactive.md +20 -0
  113. package/examples/conformance/history/v0.3.1/provenance.json +72 -0
  114. package/examples/conformance/local-draft-2.json +212 -0
  115. package/examples/integration/README.md +45 -29
  116. package/examples/integration/core/index.mjs +32 -19
  117. package/examples/integration/react/index.html +1 -1
  118. package/examples/integration/react/main.jsx +5 -5
  119. package/examples/integration/worker/index.html +19 -0
  120. package/examples/integration/worker/main.js +61 -0
  121. package/examples/integration/worker/package.json +13 -0
  122. package/examples/integration/worker/worker.js +3 -0
  123. package/examples/local/README.md +64 -58
  124. package/examples/local/catalog.reactive.md +14 -14
  125. package/examples/local/charts.reactive.md +34 -34
  126. package/examples/local/checklist.reactive.md +19 -19
  127. package/examples/local/comparison.reactive.md +23 -23
  128. package/examples/local/components.reactive.md +20 -20
  129. package/examples/local/counter.reactive.md +4 -4
  130. package/examples/local/diagnostics.reactive.md +25 -25
  131. package/examples/local/diagram.reactive.md +20 -20
  132. package/examples/local/gallery.reactive.md +31 -31
  133. package/examples/local/parameters.reactive.md +19 -19
  134. package/examples/local/planning.reactive.md +15 -15
  135. package/examples/local/pricing.reactive.md +10 -10
  136. package/examples/local/recipes/invoice-zh.reactive.md +36 -0
  137. package/examples/local/recipes/invoice.reactive.md +36 -0
  138. package/examples/local/recipes/workshop-zh.reactive.md +33 -0
  139. package/examples/local/recipes/workshop.reactive.md +33 -0
  140. package/examples/local/showcase/README.md +25 -0
  141. package/examples/local/showcase/explore.reactive.md +102 -0
  142. package/examples/local/showcase/flow.reactive.md +86 -0
  143. package/examples/local/showcase/forms.reactive.md +126 -0
  144. package/examples/local/showcase/functions.reactive.md +119 -0
  145. package/examples/local/showcase/layout.reactive.md +100 -0
  146. package/examples/local/showcase/statistics.reactive.md +108 -0
  147. package/examples/local/showcase/tasks.reactive.md +89 -0
  148. package/examples/local/showcase/zh/explore.reactive.md +102 -0
  149. package/examples/local/showcase/zh/flow.reactive.md +86 -0
  150. package/examples/local/showcase/zh/forms.reactive.md +126 -0
  151. package/examples/local/showcase/zh/functions.reactive.md +119 -0
  152. package/examples/local/showcase/zh/layout.reactive.md +100 -0
  153. package/examples/local/showcase/zh/statistics.reactive.md +108 -0
  154. package/examples/local/showcase/zh/tasks.reactive.md +89 -0
  155. package/examples/local/zh/catalog.reactive.md +20 -0
  156. package/examples/local/zh/charts.reactive.md +73 -0
  157. package/examples/local/zh/checklist.reactive.md +32 -0
  158. package/examples/local/zh/comparison.reactive.md +47 -0
  159. package/examples/local/zh/components.reactive.md +44 -0
  160. package/examples/local/zh/counter.reactive.md +7 -0
  161. package/examples/local/zh/diagnostics.reactive.md +54 -0
  162. package/examples/local/zh/diagram.reactive.md +44 -0
  163. package/examples/local/zh/gallery.reactive.md +61 -0
  164. package/examples/local/zh/parameters.reactive.md +36 -0
  165. package/examples/local/zh/planning.reactive.md +24 -0
  166. package/examples/local/zh/pricing.reactive.md +20 -0
  167. package/package.json +16 -3
  168. package/README.en.md +0 -76
  169. package/dist-library/runtime-CPzMEMcW.js +0 -11111
  170. package/docs/compatibility.md +0 -68
  171. package/docs/local-integration.md +0 -218
  172. package/docs/releasing.md +0 -92
@@ -0,0 +1,1450 @@
1
+ import type { Diagnostic, LocalDiagnosticParams } from './types.js';
2
+ /**
3
+ * Central diagnostic message registry.
4
+ *
5
+ * `code` stays the coarse, machine-stable classification; `messageKey` selects
6
+ * one English/Chinese template and `params` carries the values needed to render
7
+ * it. Construction sites never repeat translations, and formatting never parses
8
+ * an English sentence. Unknown host diagnostics keep their original message.
9
+ */
10
+ export type LocalDiagnosticLocale = 'en' | 'zh';
11
+ /** Structured metadata attached by a reporting site. */
12
+ export interface LocalDiagnosticDetails {
13
+ key: string;
14
+ params?: LocalDiagnosticParams;
15
+ }
16
+ /** Keep metadata JSON/worker-safe and bounded even if a caller passes junk. */
17
+ export declare function sanitizeDiagnosticParams(params: Record<string, unknown>): LocalDiagnosticParams | undefined;
18
+ /**
19
+ * Build structured metadata at a reporting site. `key` is validated against the
20
+ * template registry by tests, not at runtime: unknown host keys must still be
21
+ * carried through so display code can fall back to `message`.
22
+ */
23
+ export declare function localDiagnosticDetails(key: string, params?: Record<string, unknown> | LocalDiagnosticParams): LocalDiagnosticDetails;
24
+ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
25
+ readonly 'local.version.unsupported': {
26
+ readonly en: 'This reader accepts {supported}; migrate {declared} or use a compatible reader.';
27
+ readonly zh: '此阅读器支持 {supported};请迁移 {declared} 或使用兼容的阅读器。';
28
+ };
29
+ readonly 'local.version.malformed': {
30
+ readonly en: 'Use <!-- reactive-md: local-draft-2 --> on one line.';
31
+ readonly zh: '请在单独一行使用 <!-- reactive-md: local-draft-2 -->。';
32
+ };
33
+ readonly 'local.version.duplicate': {
34
+ readonly en: 'Only one source syntax declaration is allowed.';
35
+ readonly zh: '源码只能声明一次语法版本。';
36
+ };
37
+ readonly 'local.version.placement': {
38
+ readonly en: 'The syntax declaration must be on its own line before the theme and document body.';
39
+ readonly zh: '语法版本声明必须独占一行,位于主题声明和正文之前。';
40
+ };
41
+ readonly 'local.upgrade.from-version': {
42
+ readonly en: 'Cannot migrate from {from}: {detail}.';
43
+ readonly zh: '无法从 {from} 迁移:{detail}。';
44
+ };
45
+ readonly 'local.upgrade.reserved-binding': {
46
+ readonly en: 'Binding {name} becomes reserved in local-draft-2; rename it with a compatible old editor before migration.';
47
+ readonly zh: '绑定 {name} 在 local-draft-2 中成为保留名;迁移前请用兼容旧版本的编辑器重命名。';
48
+ };
49
+ readonly 'local.upgrade.tag': {
50
+ readonly en: 'Tag {name} was inert in local-draft-1 and becomes active in local-draft-2; preserve it as literal code before migration.';
51
+ readonly zh: '标签 {name} 在 local-draft-1 中不执行,在 local-draft-2 中会激活;迁移前请将其保留为代码原文。';
52
+ };
53
+ readonly 'local.upgrade.text-length': {
54
+ readonly en: 'Text length constraints change from UTF-16 units to Unicode code points; explicitly accept this semantic change before migration.';
55
+ readonly zh: '文本长度约束从 UTF-16 单元改为 Unicode 码点计数;迁移前须明确接受这一语义变化。';
56
+ };
57
+ readonly 'local.upgrade.expression': {
58
+ readonly en: 'This expression uses array syntax or a function introduced in local-draft-2; it is outside automatic draft-1 migration.';
59
+ readonly zh: '此表达式使用了 local-draft-2 新增的数组语法或函数,不属于 draft-1 自动迁移范围。';
60
+ };
61
+ readonly 'local.upgrade.version-missing': {
62
+ readonly en: 'The source has no syntax declaration; migration will pin {version}.';
63
+ readonly zh: '源码尚未声明语法版本;迁移将固定为 {version}。';
64
+ };
65
+ readonly 'parse.sourceType': {
66
+ readonly en: 'Document source must be a string.';
67
+ readonly zh: '文档源必须是字符串。';
68
+ };
69
+ readonly 'parse.markdownFailed': {
70
+ readonly en: 'Cannot parse the Markdown document.';
71
+ readonly zh: '无法解析 Markdown 文档。';
72
+ };
73
+ readonly 'parse.failed': {
74
+ readonly en: 'Cannot parse document: {detail}';
75
+ readonly zh: '无法解析文档:{detail}';
76
+ };
77
+ readonly 'budget.document': {
78
+ readonly en: 'Document exceeds the {limit}-character limit.';
79
+ readonly zh: '文档超过 {limit} 个字符的上限。';
80
+ };
81
+ readonly 'budget.syntaxNodes': {
82
+ readonly en: 'Syntax nodes exceed the limit of {limit}.';
83
+ readonly zh: '语法节点数量超过上限 {limit}。';
84
+ };
85
+ readonly 'budget.nesting': {
86
+ readonly en: 'Component nesting exceeds the {limit}-level limit.';
87
+ readonly zh: '组件嵌套超过 {limit} 层上限。';
88
+ };
89
+ readonly 'options.notObject': {
90
+ readonly en: 'Compile options must be an object.';
91
+ readonly zh: '编译选项必须是对象。';
92
+ };
93
+ readonly 'options.limitsNotObject': {
94
+ readonly en: 'Compile option limits must be an object.';
95
+ readonly zh: '编译选项 limits 必须是对象。';
96
+ };
97
+ readonly 'options.maxSyntaxNodes': {
98
+ readonly en: 'Compile option limits.maxSyntaxNodes must be a positive safe integer.';
99
+ readonly zh: '编译选项 limits.maxSyntaxNodes 必须是正安全整数。';
100
+ };
101
+ readonly 'theme.expression': {
102
+ readonly en: 'Theme names must be static text, not expressions.';
103
+ readonly zh: '主题名称必须是静态文本,不能是表达式。';
104
+ };
105
+ readonly 'theme.nameRequired': {
106
+ readonly en: 'A theme declaration requires a quoted name attribute.';
107
+ readonly zh: '主题声明需要一个带引号的 name 属性。';
108
+ };
109
+ readonly 'theme.attributeOnly': {
110
+ readonly en: 'Theme declarations only accept a quoted name attribute.';
111
+ readonly zh: '主题声明只接受带引号的 name 属性。';
112
+ };
113
+ readonly 'theme.nameInvalid': {
114
+ readonly en: 'Theme name "{name}" must use lowercase letters, digits and single hyphens (maximum {limit} characters).';
115
+ readonly zh: '主题名称“{name}”只能使用小写字母、数字和单个连字符(最多 {limit} 个字符)。';
116
+ };
117
+ readonly 'theme.malformedMissingClose': {
118
+ readonly en: 'Theme declaration is missing >.';
119
+ readonly zh: '主题声明缺少 >。';
120
+ };
121
+ readonly 'theme.malformedClosing': {
122
+ readonly en: 'A theme declaration cannot be a closing tag.';
123
+ readonly zh: '主题声明不能是结束标签。';
124
+ };
125
+ readonly 'theme.malformedStandalone': {
126
+ readonly en: 'A theme declaration must be on its own line before the document content.';
127
+ readonly zh: '主题声明必须单独占一行并位于文档内容之前。';
128
+ };
129
+ readonly 'theme.duplicateDeclaration': {
130
+ readonly en: 'Only one theme declaration is allowed before the document content; this declaration is ignored.';
131
+ readonly zh: '文档内容之前只允许一个主题声明;此声明将被忽略。';
132
+ };
133
+ readonly 'theme.late': {
134
+ readonly en: 'Theme declarations after document content are ignored.';
135
+ readonly zh: '文档内容之后的主题声明将被忽略。';
136
+ };
137
+ readonly 'theme.nested': {
138
+ readonly en: 'Theme declarations inside document content are ignored.';
139
+ readonly zh: '文档内容内部的主题声明将被忽略。';
140
+ };
141
+ readonly 'theme.invalidDeclaration': {
142
+ readonly en: 'Invalid theme declaration.';
143
+ readonly zh: '无效的主题声明。';
144
+ };
145
+ readonly 'attribute.lowercase': {
146
+ readonly en: 'Attribute names must use lowercase kebab-case.';
147
+ readonly zh: '属性名必须使用小写 kebab-case。';
148
+ };
149
+ readonly 'budget.attributeName': {
150
+ readonly en: 'Attribute name exceeds the {limit}-character limit.';
151
+ readonly zh: '属性名超过 {limit} 个字符的上限。';
152
+ };
153
+ readonly 'attribute.nameInvalid': {
154
+ readonly en: 'Attribute name {name} must use lowercase kebab-case.';
155
+ readonly zh: '属性名 {name} 必须使用小写 kebab-case。';
156
+ };
157
+ readonly 'attribute.valueQuoted': {
158
+ readonly en: 'Attribute {name} value must be quoted.';
159
+ readonly zh: '属性 {name} 的值必须加引号。';
160
+ };
161
+ readonly 'attribute.valueUnclosed': {
162
+ readonly en: 'Attribute {name} is missing a closing quote.';
163
+ readonly zh: '属性 {name} 缺少结束引号。';
164
+ };
165
+ readonly 'attribute.duplicate': {
166
+ readonly en: 'Duplicate attribute {name}.';
167
+ readonly zh: '重复的属性 {name}。';
168
+ };
169
+ readonly 'attribute.separator': {
170
+ readonly en: 'Attributes must be separated by whitespace.';
171
+ readonly zh: '属性之间必须用空白分隔。';
172
+ };
173
+ readonly 'budget.tagName': {
174
+ readonly en: 'Tag name exceeds the {limit}-character limit.';
175
+ readonly zh: '标签名超过 {limit} 个字符的上限。';
176
+ };
177
+ readonly 'tag.missingClose': {
178
+ readonly en: 'Tag {name} is missing >.';
179
+ readonly zh: '标签 {name} 缺少 >。';
180
+ };
181
+ readonly 'tag.closingAttributes': {
182
+ readonly en: 'Closing tag </{name}> cannot have attributes.';
183
+ readonly zh: '结束标签 </{name}> 不能带属性。';
184
+ };
185
+ readonly 'tag.nameInvalid': {
186
+ readonly en: 'Tag name {name} must use lowercase kebab-case.';
187
+ readonly zh: '标签名 {name} 必须使用小写 kebab-case。';
188
+ };
189
+ readonly 'tag.unclosedPaired': {
190
+ readonly en: '<{name}> is missing </{name}>.';
191
+ readonly zh: '<{name}> 缺少 </{name}>。';
192
+ };
193
+ readonly 'tag.mismatchRoot': {
194
+ readonly en: 'Closing tag </{name}> does not match the document root.';
195
+ readonly zh: '结束标签 </{name}> 与文档根不匹配。';
196
+ };
197
+ readonly 'tag.mismatchParent': {
198
+ readonly en: 'Closing tag </{name}> does not match <{parent}>.';
199
+ readonly zh: '结束标签 </{name}> 与 <{parent}> 不匹配。';
200
+ };
201
+ readonly 'tag.requiresClose': {
202
+ readonly en: '<{name}> requires a closing tag.';
203
+ readonly zh: '<{name}> 需要结束标签。';
204
+ };
205
+ readonly 'footnote.unsupported': {
206
+ readonly en: 'Footnotes are not part of the local interaction syntax and are shown as source.';
207
+ readonly zh: '脚注不属于本地交互语法,将按源文本显示。';
208
+ };
209
+ readonly 'interpolation.unclosed': {
210
+ readonly en: 'Interpolation is missing }}.';
211
+ readonly zh: '插值缺少 }}。';
212
+ };
213
+ readonly 'math.unclosed': {
214
+ readonly en: 'Formula is missing its closing delimiter.';
215
+ readonly zh: '公式缺少结束定界符。';
216
+ };
217
+ readonly 'math.whitespace': {
218
+ readonly en: 'Inline math cannot start or end with whitespace.';
219
+ readonly zh: '行内公式不能以空白开头或结尾。';
220
+ };
221
+ readonly 'budget.math': {
222
+ readonly en: 'Formula exceeds the {limit}-character limit.';
223
+ readonly zh: '公式超过 {limit} 个字符的上限。';
224
+ };
225
+ readonly 'html.raw': {
226
+ readonly en: 'Raw HTML is not part of the local interaction syntax.';
227
+ readonly zh: '原始 HTML 不属于本地交互语法。';
228
+ };
229
+ readonly 'component.unknownSuggestion': {
230
+ readonly en: 'Unknown component <{name}>. Did you mean <{suggestion}>?';
231
+ readonly zh: '未知组件 <{name}>。是否想使用 <{suggestion}>?';
232
+ };
233
+ readonly 'component.unknownPlain': {
234
+ readonly en: 'Unknown component <{name}>. This mode only accepts local interaction components.';
235
+ readonly zh: '未知组件 <{name}>。此模式只接受本地交互组件。';
236
+ };
237
+ readonly 'legacy.fence': {
238
+ readonly en: 'Legacy reactive-md configuration fences (state/data/computed/actions, etc.) are not part of the local interaction syntax; select legacy mode explicitly in the host.';
239
+ readonly zh: '旧版 reactive-md 配置围栏(state/data/computed/actions 等)不属于本地交互语法;请在宿主中显式选择旧版模式。';
240
+ };
241
+ readonly 'attribute.unknownSuggestion': {
242
+ readonly en: 'Component <{component}> does not support attribute {name}. Did you mean {suggestion}?';
243
+ readonly zh: '组件 <{component}> 不支持属性 {name}。是否想使用 {suggestion}?';
244
+ };
245
+ readonly 'attribute.unknownPlain': {
246
+ readonly en: 'Component <{component}> does not support attribute {name}.';
247
+ readonly zh: '组件 <{component}> 不支持属性 {name}。';
248
+ };
249
+ readonly 'budget.attribute': {
250
+ readonly en: 'Attribute {name} on component <{component}> exceeds the {limit}-character limit.';
251
+ readonly zh: '组件 <{component}> 的属性 {name} 超过 {limit} 个字符的上限。';
252
+ };
253
+ readonly 'attribute.color': {
254
+ readonly en: 'Attribute {name} on component <{component}> must be a standard CSS named color or #RGB/#RRGGBB, got "{value}".';
255
+ readonly zh: '组件 <{component}> 的属性 {name} 必须是标准 CSS 命名颜色或 #RGB/#RRGGBB,当前为“{value}”。';
256
+ };
257
+ readonly 'attribute.required': {
258
+ readonly en: 'Component <{component}> is missing required attribute {name}.';
259
+ readonly zh: '组件 <{component}> 缺少必需属性 {name}。';
260
+ };
261
+ readonly 'label.requiredMissing': {
262
+ readonly en: 'Component <{name}> requires a label.';
263
+ readonly zh: '组件 <{name}> 需要 label。';
264
+ };
265
+ readonly 'label.requiredEmpty': {
266
+ readonly en: 'Component <{name}> label cannot be empty.';
267
+ readonly zh: '组件 <{name}> 的 label 不能为空。';
268
+ };
269
+ readonly 'attribute.static': {
270
+ readonly en: 'Attribute {name} is static and cannot contain interpolations.';
271
+ readonly zh: '属性 {name} 是静态的,不能包含插值。';
272
+ };
273
+ readonly 'expression.emptyAttribute': {
274
+ readonly en: 'Attribute {name} interpolation cannot be empty.';
275
+ readonly zh: '属性 {name} 的插值不能为空。';
276
+ };
277
+ readonly 'expression.emptyInterpolation': {
278
+ readonly en: 'Interpolation expression cannot be empty.';
279
+ readonly zh: '插值表达式不能为空。';
280
+ };
281
+ readonly 'attribute.numberInvalid': {
282
+ readonly en: 'Attribute {name} requires a number, got "{value}".';
283
+ readonly zh: '属性 {name} 需要数字,当前为“{value}”。';
284
+ };
285
+ readonly 'attribute.numberInterpolationInvalid': {
286
+ readonly en: 'Attribute {name} requires a number or a full number interpolation, got "{value}".';
287
+ readonly zh: '属性 {name} 需要数字或完整的数字插值,当前为“{value}”。';
288
+ };
289
+ readonly 'attribute.integer': {
290
+ readonly en: 'Attribute {name} requires an integer.';
291
+ readonly zh: '属性 {name} 需要整数。';
292
+ };
293
+ readonly 'attribute.positive': {
294
+ readonly en: 'Attribute {name} requires a positive number.';
295
+ readonly zh: '属性 {name} 需要正数。';
296
+ };
297
+ readonly 'attribute.rangeMin': {
298
+ readonly en: 'Attribute {name} must be at least {min}.';
299
+ readonly zh: '属性 {name} 必须至少为 {min}。';
300
+ };
301
+ readonly 'attribute.rangeMax': {
302
+ readonly en: 'Attribute {name} must be at most {max}.';
303
+ readonly zh: '属性 {name} 必须至多为 {max}。';
304
+ };
305
+ readonly 'attribute.booleanInvalid': {
306
+ readonly en: 'Attribute {name} requires true or false.';
307
+ readonly zh: '属性 {name} 需要 true 或 false。';
308
+ };
309
+ readonly 'attribute.booleanInterpolationInvalid': {
310
+ readonly en: 'Attribute {name} requires true or false, or a full boolean interpolation.';
311
+ readonly zh: '属性 {name} 需要 true 或 false,或完整的布尔插值。';
312
+ };
313
+ readonly 'attribute.enumInvalid': {
314
+ readonly en: 'Attribute {name} must be one of {values}, got "{value}".';
315
+ readonly zh: '属性 {name} 必须是 {values} 之一,当前为“{value}”。';
316
+ };
317
+ readonly 'attribute.dateLower': {
318
+ readonly en: 'Date lower bound {value} is not a valid YYYY-MM-DD.';
319
+ readonly zh: '日期下界 {value} 不是有效的 YYYY-MM-DD。';
320
+ };
321
+ readonly 'attribute.dateUpper': {
322
+ readonly en: 'Date upper bound {value} is not a valid YYYY-MM-DD.';
323
+ readonly zh: '日期上界 {value} 不是有效的 YYYY-MM-DD。';
324
+ };
325
+ readonly 'constraint.componentMinMax': {
326
+ readonly en: 'Component <{name}> min cannot exceed max.';
327
+ readonly zh: '组件 <{name}> 的 min 不能大于 max。';
328
+ };
329
+ readonly 'constraint.componentStep': {
330
+ readonly en: 'Component <{name}> step must be greater than 0.';
331
+ readonly zh: '组件 <{name}> 的 step 必须大于 0。';
332
+ };
333
+ readonly 'constraint.lengthRange': {
334
+ readonly en: 'max-length cannot be less than min-length.';
335
+ readonly zh: 'max-length 不能小于 min-length。';
336
+ };
337
+ readonly 'constraint.dateOrder': {
338
+ readonly en: 'Date min cannot be later than max.';
339
+ readonly zh: '日期 min 不能晚于 max。';
340
+ };
341
+ readonly 'constraint.progressRange': {
342
+ readonly en: 'progress value must be between 0 and {max}, got {value}.';
343
+ readonly zh: 'progress 的 value 必须在 0 到 {max} 之间,当前为 {value}。';
344
+ };
345
+ readonly 'constraint.plotRange': {
346
+ readonly en: 'plot min must be less than max.';
347
+ readonly zh: 'plot 的 min 必须小于 max。';
348
+ };
349
+ readonly 'constraint.timerDuration': {
350
+ readonly en: 'timer duration must be a positive whole number of seconds.';
351
+ readonly zh: 'timer 的 duration 必须是正整数秒。';
352
+ };
353
+ readonly 'constraint.rangeSliderOrder': {
354
+ readonly en: 'range-slider min cannot exceed max.';
355
+ readonly zh: 'range-slider 的 min 不能大于 max。';
356
+ };
357
+ readonly 'constraint.rangeSliderStep': {
358
+ readonly en: 'range-slider step must be a finite positive number.';
359
+ readonly zh: 'range-slider 的 step 必须是有限正数。';
360
+ };
361
+ readonly 'constraint.coordinateOrder': {
362
+ readonly en: 'coordinate {axis}-min cannot exceed {axis}-max.';
363
+ readonly zh: 'coordinate 的 {axis}-min 不能大于 {axis}-max。';
364
+ };
365
+ readonly 'constraint.coordinateStep': {
366
+ readonly en: 'coordinate step must be a finite positive number.';
367
+ readonly zh: 'coordinate 的 step 必须是有限正数。';
368
+ };
369
+ readonly 'constraint.multiSelectMax': {
370
+ readonly en: 'multi-select max-selected must be a nonnegative whole number.';
371
+ readonly zh: 'multi-select 的 max-selected 必须是非负整数。';
372
+ };
373
+ readonly 'constraint.quizTolerance': {
374
+ readonly en: '<quiz> tolerance must be a nonnegative finite number.';
375
+ readonly zh: '<quiz> 的 tolerance 必须是非负有限数。';
376
+ };
377
+ readonly 'selection.keyNeedsKey': {
378
+ readonly en: '<{component}> {name} requires a key attribute naming the selection column.';
379
+ readonly zh: '<{component}> 的 {name} 需要 key 属性来指定选择列。';
380
+ };
381
+ readonly 'structure.parent': {
382
+ readonly en: '<{name}> can only appear directly inside {parents}.';
383
+ readonly zh: '<{name}> 只能直接位于 {parents} 内。';
384
+ };
385
+ readonly 'structure.noBody': {
386
+ readonly en: '<{name}> does not accept body content.';
387
+ readonly zh: '<{name}> 不接受正文内容。';
388
+ };
389
+ readonly 'structure.inlineOnly': {
390
+ readonly en: '<{name}> only accepts inline Markdown.';
391
+ readonly zh: '<{name}> 只接受行内 Markdown。';
392
+ };
393
+ readonly 'structure.noNestedComponents': {
394
+ readonly en: 'The body of <{name}> cannot contain other interactive components.';
395
+ readonly zh: '<{name}> 的正文不能包含其他交互组件。';
396
+ };
397
+ readonly 'structure.accordionNeedsDisclosure': {
398
+ readonly en: '<accordion> requires at least one <disclosure>.';
399
+ readonly zh: '<accordion> 至少需要一个 <disclosure>。';
400
+ };
401
+ readonly 'structure.accordionOnly': {
402
+ readonly en: '<accordion> can only contain <disclosure>.';
403
+ readonly zh: '<accordion> 只能包含 <disclosure>。';
404
+ };
405
+ readonly 'structure.gridNeedsCard': {
406
+ readonly en: '<grid> requires at least one <card>.';
407
+ readonly zh: '<grid> 至少需要一个 <card>。';
408
+ };
409
+ readonly 'structure.gridOnlyCard': {
410
+ readonly en: 'Direct children of <grid> must be <card>.';
411
+ readonly zh: '<grid> 的直接子元素必须是 <card>。';
412
+ };
413
+ readonly 'structure.exactlyOneTable': {
414
+ readonly en: 'The body of <{name}> must be exactly one Markdown table.';
415
+ readonly zh: '<{name}> 的正文必须恰好是一个 Markdown 表格。';
416
+ };
417
+ readonly 'structure.plotNeedsFormula': {
418
+ readonly en: '<plot> requires at least one $$...$$ formula block.';
419
+ readonly zh: '<plot> 至少需要一个 $$...$$ 公式块。';
420
+ };
421
+ readonly 'structure.plotOnlyFormulas': {
422
+ readonly en: 'The body of <plot> can only contain blank lines and $$...$$ formula blocks.';
423
+ readonly zh: '<plot> 的正文只能包含空行和 $$...$$ 公式块。';
424
+ };
425
+ readonly 'structure.nodeNoComponents': {
426
+ readonly en: 'The description of <node> cannot contain interactive components.';
427
+ readonly zh: '<node> 的描述不能包含交互组件。';
428
+ };
429
+ readonly 'structure.optionsNeeded': {
430
+ readonly en: '<{name}> requires at least one <option value="...">.';
431
+ readonly zh: '<{name}> 至少需要一个 <option value="...">。';
432
+ };
433
+ readonly 'structure.optionsOnly': {
434
+ readonly en: '<{name}> can only contain <option>.';
435
+ readonly zh: '<{name}> 只能包含 <option>。';
436
+ };
437
+ readonly 'budget.options': {
438
+ readonly en: '<{name}> options exceed the limit of {limit}.';
439
+ readonly zh: '<{name}> 的选项数量超过上限 {limit}。';
440
+ };
441
+ readonly 'option.valueRequired': {
442
+ readonly en: '<option> requires a non-empty value.';
443
+ readonly zh: '<option> 需要非空 value。';
444
+ };
445
+ readonly 'option.valueComma': {
446
+ readonly en: '<multi-select> option values cannot contain commas: "{value}".';
447
+ readonly zh: '<multi-select> 的选项值不能包含逗号:“{value}”。';
448
+ };
449
+ readonly 'option.valueDuplicate': {
450
+ readonly en: 'Option values in <{name}> must be unique; duplicate value "{value}".';
451
+ readonly zh: '<{name}> 的选项值必须唯一;重复值“{value}”。';
452
+ };
453
+ readonly 'structure.optionNoComponents': {
454
+ readonly en: 'The body of <option> cannot contain interactive components.';
455
+ readonly zh: '<option> 的正文不能包含交互组件。';
456
+ };
457
+ readonly 'structure.tabsNeedsTab': {
458
+ readonly en: '<tabs> requires at least one <tab>.';
459
+ readonly zh: '<tabs> 至少需要一个 <tab>。';
460
+ };
461
+ readonly 'structure.tabsOnly': {
462
+ readonly en: '<tabs> can only contain <tab>.';
463
+ readonly zh: '<tabs> 只能包含 <tab>。';
464
+ };
465
+ readonly 'tab.valueDuplicate': {
466
+ readonly en: 'Tab values in <tabs> must be unique; duplicate value "{value}".';
467
+ readonly zh: '<tabs> 的标签值必须唯一;重复值“{value}”。';
468
+ };
469
+ readonly 'structure.stepsNeedsStep': {
470
+ readonly en: '<steps> requires at least one <step>.';
471
+ readonly zh: '<steps> 至少需要一个 <step>。';
472
+ };
473
+ readonly 'structure.stepsOnly': {
474
+ readonly en: '<steps> can only contain <step>.';
475
+ readonly zh: '<steps> 只能包含 <step>。';
476
+ };
477
+ readonly 'step.valueDuplicate': {
478
+ readonly en: 'Step values in <steps> must be unique; duplicate value "{value}".';
479
+ readonly zh: '<steps> 的步骤值必须唯一;重复值“{value}”。';
480
+ };
481
+ readonly 'quiz.answerRequired': {
482
+ readonly en: '<quiz> requires a non-empty answer.';
483
+ readonly zh: '<quiz> 需要非空 answer。';
484
+ };
485
+ readonly 'structure.quizNumericNoBody': {
486
+ readonly en: 'A numeric <quiz> cannot have body content; use type="choice" for option-based quizzes.';
487
+ readonly zh: '数值型 <quiz> 不能有正文内容;基于选项的测验请使用 type="choice"。';
488
+ };
489
+ readonly 'quiz.answerNumeric': {
490
+ readonly en: 'A numeric <quiz> answer must be a finite number.';
491
+ readonly zh: '数值型 <quiz> 的 answer 必须是有限数字。';
492
+ };
493
+ readonly 'quiz.answerNotOption': {
494
+ readonly en: '<quiz> answer "{answer}" is not one of the option values: {options}.';
495
+ readonly zh: '<quiz> 的 answer“{answer}”不在选项值中:{options}。';
496
+ };
497
+ readonly 'diagram.needsNode': {
498
+ readonly en: '<diagram> requires at least one <node>.';
499
+ readonly zh: '<diagram> 至少需要一个 <node>。';
500
+ };
501
+ readonly 'structure.diagramOnly': {
502
+ readonly en: '<diagram> can only contain <node> and <edge>.';
503
+ readonly zh: '<diagram> 只能包含 <node> 和 <edge>。';
504
+ };
505
+ readonly 'diagram.nodeInvalid': {
506
+ readonly en: 'Node ID "{id}" may only contain letters, digits, underscores and hyphens, and cannot start with a digit.';
507
+ readonly zh: '节点 ID“{id}”只能包含字母、数字、下划线和连字符,且不能以数字开头。';
508
+ };
509
+ readonly 'diagram.nodeDuplicate': {
510
+ readonly en: 'Duplicate node ID "{id}".';
511
+ readonly zh: '重复的节点 ID“{id}”。';
512
+ };
513
+ readonly 'diagram.edgeFromUnknown': {
514
+ readonly en: 'Edge from references unknown node "{id}".';
515
+ readonly zh: '连线起点引用了未知节点“{id}”。';
516
+ };
517
+ readonly 'diagram.edgeToUnknown': {
518
+ readonly en: 'Edge to references unknown node "{id}".';
519
+ readonly zh: '连线终点引用了未知节点“{id}”。';
520
+ };
521
+ readonly 'diagram.edgeDuplicate': {
522
+ readonly en: 'Duplicate edge: {from} → {to}{label}.';
523
+ readonly zh: '重复的连线:{from} → {to}{label}。';
524
+ };
525
+ readonly 'checklist.bodySingle': {
526
+ readonly en: 'The body of <checklist> must be exactly one single-level Markdown task list.';
527
+ readonly zh: '<checklist> 的正文必须恰好是一个单层 Markdown 任务列表。';
528
+ };
529
+ readonly 'checklist.needsItem': {
530
+ readonly en: '<checklist> requires at least one task list item.';
531
+ readonly zh: '<checklist> 至少需要一个任务列表项。';
532
+ };
533
+ readonly 'budget.checklistItems': {
534
+ readonly en: '<checklist> items exceed the limit of {limit}.';
535
+ readonly zh: '<checklist> 的任务项数量超过上限 {limit}。';
536
+ };
537
+ readonly 'checklist.taskOnly': {
538
+ readonly en: '<checklist> can only contain task list items (- [ ] / - [x]).';
539
+ readonly zh: '<checklist> 只能包含任务列表项(- [ ] / - [x])。';
540
+ };
541
+ readonly 'checklist.noNested': {
542
+ readonly en: '<checklist> does not support nested lists.';
543
+ readonly zh: '<checklist> 不支持嵌套列表。';
544
+ };
545
+ readonly 'checklist.noComponents': {
546
+ readonly en: '<checklist> items cannot contain interactive components.';
547
+ readonly zh: '<checklist> 的任务项不能包含交互组件。';
548
+ };
549
+ readonly 'budget.identifier': {
550
+ readonly en: 'Parameter name exceeds the {limit}-character limit.';
551
+ readonly zh: '参数名超过 {limit} 个字符的上限。';
552
+ };
553
+ readonly 'binding.nameInvalid': {
554
+ readonly en: 'Parameter name "{name}" must match [A-Za-z_][A-Za-z0-9_]*.';
555
+ readonly zh: '参数名“{name}”必须匹配 [A-Za-z_][A-Za-z0-9_]*。';
556
+ };
557
+ readonly 'binding.reserved': {
558
+ readonly en: 'Parameter name "{name}" is reserved; choose another name.';
559
+ readonly zh: '参数名“{name}”是保留名称;请换一个名称。';
560
+ };
561
+ readonly 'binding.typeConflict': {
562
+ readonly en: 'Parameter "{key}" is already declared as {kind} by <{first}> and cannot also bind <{second}>.';
563
+ readonly zh: '参数“{key}”已由 <{first}> 声明为 {kind},不能再绑定 <{second}>。';
564
+ };
565
+ readonly 'binding.exclusive': {
566
+ readonly en: 'Parameter "{key}" of <{first}> can only be owned by one component and cannot be shared with <{second}>.';
567
+ readonly zh: '<{first}> 的参数“{key}”只能由一个组件拥有,不能与 <{second}> 共享。';
568
+ };
569
+ readonly 'binding.slotExclusive': {
570
+ readonly en: 'Parameter "{key}" of the {slot} slot of <{name}> is exclusive and cannot be shared with another control.';
571
+ readonly zh: '<{name}> 的 {slot} 槽参数“{key}”是独占的,不能与另一个控件共享。';
572
+ };
573
+ readonly 'binding.constraintConflict': {
574
+ readonly en: 'Parameter "{key}" must use the same numeric range and step: <{first}> has {firstConstraints}, <{second}> has {secondConstraints}.';
575
+ readonly zh: '参数“{key}”必须使用相同的数值范围和步长:<{first}> 为 {firstConstraints},<{second}> 为 {secondConstraints}。';
576
+ };
577
+ readonly 'binding.optionConflict': {
578
+ readonly en: 'Parameter "{key}" must use the same option set in the same order.';
579
+ readonly zh: '参数“{key}”必须使用相同顺序的同一组选项。';
580
+ };
581
+ readonly 'initial.duplicate': {
582
+ readonly en: 'Parameter "{key}" has multiple explicit initial values ({count} in total).';
583
+ readonly zh: '参数“{key}”有多个显式初值(共 {count} 个)。';
584
+ };
585
+ readonly 'initial.duplicatePeers': {
586
+ readonly en: 'Parameter "{key}" has multiple explicit initial values ({count} in total; see also line {lines}).';
587
+ readonly zh: '参数“{key}”有多个显式初值(共 {count} 个;另见第 {lines} 行)。';
588
+ };
589
+ readonly 'initial.rangeNoStep': {
590
+ readonly en: 'Parameter "{key}" has no valid step value within range [{min}, {max}].';
591
+ readonly zh: '参数“{key}”在范围 [{min}, {max}] 内没有有效的步长值。';
592
+ };
593
+ readonly 'initial.cannotDerive': {
594
+ readonly en: 'Cannot derive a default initial value for <{name}> parameter "{key}".';
595
+ readonly zh: '无法为 <{name}> 的参数“{key}”推导默认初值。';
596
+ };
597
+ readonly 'initial.typeFiniteNumber': {
598
+ readonly en: 'Initial value of parameter "{key}" must be a finite number.';
599
+ readonly zh: '参数“{key}”的初值必须是有限数字。';
600
+ };
601
+ readonly 'initial.belowMin': {
602
+ readonly en: 'Initial value {value} of parameter "{key}" is below the minimum {min}.';
603
+ readonly zh: '参数“{key}”的初值 {value} 小于最小值 {min}。';
604
+ };
605
+ readonly 'initial.aboveMax': {
606
+ readonly en: 'Initial value {value} of parameter "{key}" exceeds the maximum {max}.';
607
+ readonly zh: '参数“{key}”的初值 {value} 超过最大值 {max}。';
608
+ };
609
+ readonly 'initial.offStep': {
610
+ readonly en: 'Initial value {value} of parameter "{key}" is not on step {step} (based at {base}).';
611
+ readonly zh: '参数“{key}”的初值 {value} 不在步长 {step} 上(基准 {base})。';
612
+ };
613
+ readonly 'initial.typeBoolean': {
614
+ readonly en: 'Initial value of parameter "{key}" must be a boolean.';
615
+ readonly zh: '参数“{key}”的初值必须是布尔值。';
616
+ };
617
+ readonly 'initial.notAmongOptions': {
618
+ readonly en: 'Initial value "{value}" of parameter "{key}" is not among the available values {options}.';
619
+ readonly zh: '参数“{key}”的初值“{value}”不在可用值 {options} 中。';
620
+ };
621
+ readonly 'initial.typeWrong': {
622
+ readonly en: 'Initial value of parameter "{name}" has the wrong type.';
623
+ readonly zh: '参数“{name}”的初值类型不正确。';
624
+ };
625
+ readonly 'initial.dateInvalid': {
626
+ readonly en: 'Initial date "{value}" is not a valid YYYY-MM-DD.';
627
+ readonly zh: '初值日期“{value}”不是有效的 YYYY-MM-DD。';
628
+ };
629
+ readonly 'initial.notAvailableOption': {
630
+ readonly en: 'Initial value "{value}" is not an available option: {options}.';
631
+ readonly zh: '初值“{value}”不是可用选项:{options}。';
632
+ };
633
+ readonly 'initial.multiSelectOption': {
634
+ readonly en: 'Initial value "{value}" of parameter "{key}" is not an option of <multi-select>.';
635
+ readonly zh: '参数“{key}”的初值“{value}”不是 <multi-select> 的选项。';
636
+ };
637
+ readonly 'initial.rangeSliderOrder': {
638
+ readonly en: '<range-slider> start {start} cannot be greater than end {end}.';
639
+ readonly zh: '<range-slider> 的 start {start} 不能大于 end {end}。';
640
+ };
641
+ readonly 'initial.slotBelowMin': {
642
+ readonly en: 'Initial value {value} of <{name}> {slot} is below the minimum {min}.';
643
+ readonly zh: '<{name}> 的 {slot} 初值 {value} 小于最小值 {min}。';
644
+ };
645
+ readonly 'initial.slotAboveMax': {
646
+ readonly en: 'Initial value {value} of <{name}> {slot} exceeds the maximum {max}.';
647
+ readonly zh: '<{name}> 的 {slot} 初值 {value} 超过最大值 {max}。';
648
+ };
649
+ readonly 'initial.slotOffStep': {
650
+ readonly en: 'Initial value {value} of <{name}> {slot} is not on step {step} (based at {base}).';
651
+ readonly zh: '<{name}> 的 {slot} 初值 {value} 不在步长 {step} 上(基准 {base})。';
652
+ };
653
+ readonly 'initial.lengthBelow': {
654
+ readonly en: 'Initial value of parameter "{key}" has length {length}, below the minimum length {min} required by <{name}>.';
655
+ readonly zh: '参数“{key}”的初值长度为 {length},小于 <{name}> 要求的最小长度 {min}。';
656
+ };
657
+ readonly 'initial.lengthAbove': {
658
+ readonly en: 'Initial value of parameter "{key}" has length {length}, exceeding the maximum length {max} allowed by <{name}>.';
659
+ readonly zh: '参数“{key}”的初值长度为 {length},超过 <{name}> 允许的最大长度 {max}。';
660
+ };
661
+ readonly 'initial.email': {
662
+ readonly en: 'Initial value of parameter "{key}" is not a valid email address.';
663
+ readonly zh: '参数“{key}”的初值不是有效的电子邮件地址。';
664
+ };
665
+ readonly 'initial.dateBelow': {
666
+ readonly en: 'Initial value {value} of parameter "{key}" is earlier than the minimum date {min} of <date>.';
667
+ readonly zh: '参数“{key}”的初值 {value} 早于 <date> 的最小日期 {min}。';
668
+ };
669
+ readonly 'initial.dateAbove': {
670
+ readonly en: 'Initial value {value} of parameter "{key}" is later than the maximum date {max} of <date>.';
671
+ readonly zh: '参数“{key}”的初值 {value} 晚于 <date> 的最大日期 {max}。';
672
+ };
673
+ readonly 'initial.multiSelectExceeds': {
674
+ readonly en: 'Initial values of <multi-select> exceed max-selected {max}.';
675
+ readonly zh: '<multi-select> 的初值数量超过 max-selected {max}。';
676
+ };
677
+ readonly 'expression.error': {
678
+ readonly en: 'Expression error: {detail}';
679
+ readonly zh: '表达式错误:{detail}';
680
+ };
681
+ readonly 'binding.unknownSuggestion': {
682
+ readonly en: 'Reference to undeclared parameter {name}. Did you mean {suggestion}?';
683
+ readonly zh: '引用了未声明的参数 {name}。是否想使用 {suggestion}?';
684
+ };
685
+ readonly 'binding.unknownPlain': {
686
+ readonly en: 'Reference to undeclared parameter {name}.';
687
+ readonly zh: '引用了未声明的参数 {name}。';
688
+ };
689
+ readonly 'type.number': {
690
+ readonly en: 'Expected a number here, but the expression evaluates to {kind}.';
691
+ readonly zh: '此处需要数字,但表达式结果为 {kind}。';
692
+ };
693
+ readonly 'type.boolean': {
694
+ readonly en: 'Expected a boolean here, but the expression evaluates to {kind}.';
695
+ readonly zh: '此处需要布尔值,但表达式结果为 {kind}。';
696
+ };
697
+ readonly 'type.string': {
698
+ readonly en: 'Expected a string here, but the expression evaluates to {kind}.';
699
+ readonly zh: '此处需要字符串,但表达式结果为 {kind}。';
700
+ };
701
+ readonly 'type.arrayNoDisplay': {
702
+ readonly en: 'Arrays cannot be displayed directly; convert them first with a function such as len.';
703
+ readonly zh: '数组不能直接显示;请先用 len 等函数转换。';
704
+ };
705
+ readonly 'attribute.whenInterpolation': {
706
+ readonly en: 'The when attribute of if must be a full boolean interpolation, e.g. when="{{ seats >= 5 }}".';
707
+ readonly zh: 'if 的 when 属性必须是完整的布尔插值,例如 when="{{ seats >= 5 }}"。';
708
+ };
709
+ readonly 'anchor.idInvalid': {
710
+ readonly en: 'Anchor id "{id}" must match [A-Za-z_][A-Za-z0-9_-]*.';
711
+ readonly zh: '锚点 id“{id}”必须匹配 [A-Za-z_][A-Za-z0-9_-]*。';
712
+ };
713
+ readonly 'anchor.duplicate': {
714
+ readonly en: 'Duplicate anchor id "{id}".';
715
+ readonly zh: '重复的锚点 id“{id}”。';
716
+ };
717
+ readonly 'anchor.headingCollision': {
718
+ readonly en: 'Anchor id "{id}" collides with an automatic heading target.';
719
+ readonly zh: '锚点 id“{id}”与自动标题目标冲突。';
720
+ };
721
+ readonly 'jump.empty': {
722
+ readonly en: '<jump> target cannot be empty.';
723
+ readonly zh: '<jump> 的目标不能为空。';
724
+ };
725
+ readonly 'jump.badTarget': {
726
+ readonly en: '<jump> target "{target}" must be a bare heading slug or anchor id without "#" or whitespace.';
727
+ readonly zh: '<jump> 的目标“{target}”必须是不含“#”或空白的标题 slug 或锚点 id。';
728
+ };
729
+ readonly 'jump.unresolved': {
730
+ readonly en: '<jump> target "{target}" does not resolve to a heading or explicit anchor in this document.';
731
+ readonly zh: '<jump> 的目标“{target}”无法解析到本文档中的标题或显式锚点。';
732
+ };
733
+ readonly 'budget.plotCurves': {
734
+ readonly en: '<plot> supports at most {limit} curves, but has {count}.';
735
+ readonly zh: '<plot> 最多支持 {limit} 条曲线,当前有 {count} 条。';
736
+ };
737
+ readonly 'budget.plotPoints': {
738
+ readonly en: "The document's total plot sample count exceeds the limit of {limit}.";
739
+ readonly zh: '文档的绘图采样点总数超过上限 {limit}。';
740
+ };
741
+ readonly 'math.formulaShape': {
742
+ readonly en: '<plot> formulas must be written explicitly as y = expression.';
743
+ readonly zh: '<plot> 的公式必须显式写成 y = expression。';
744
+ };
745
+ readonly 'math.computeFailed': {
746
+ readonly en: 'Cannot compute plot formula: {detail}';
747
+ readonly zh: '无法计算绘图公式(错误代码 {code}):{detail}';
748
+ };
749
+ readonly 'math.bindingUnknown': {
750
+ readonly en: 'Plot formula references undeclared parameter "{name}".';
751
+ readonly zh: '绘图公式引用了未声明的参数“{name}”。';
752
+ };
753
+ readonly 'math.bindingType': {
754
+ readonly en: 'Plot parameter "{name}" must be a number, but is {kind}.';
755
+ readonly zh: '绘图参数“{name}”必须是数字,但当前为 {kind}。';
756
+ };
757
+ readonly 'table.missingHeader': {
758
+ readonly en: 'The table for <{name}> is missing a header.';
759
+ readonly zh: '<{name}> 的表格缺少表头。';
760
+ };
761
+ readonly 'table.headerInterpolation': {
762
+ readonly en: 'Table headers cannot contain interpolations.';
763
+ readonly zh: '表格表头不能包含插值。';
764
+ };
765
+ readonly 'table.headerEmpty': {
766
+ readonly en: 'Table headers cannot be empty.';
767
+ readonly zh: '表格表头不能为空。';
768
+ };
769
+ readonly 'table.headerDuplicate': {
770
+ readonly en: 'Duplicate table header "{name}".';
771
+ readonly zh: '重复的表格表头“{name}”。';
772
+ };
773
+ readonly 'table.rowColumnMismatch': {
774
+ readonly en: 'Table row has a different column count: header has {header} columns, this row has {row}.';
775
+ readonly zh: '表格行的列数不一致:表头有 {header} 列,此行有 {row} 列。';
776
+ };
777
+ readonly 'chart.numericExpression': {
778
+ readonly en: 'Chart column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
779
+ readonly zh: '图表列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
780
+ };
781
+ readonly 'timeline.numericExpression': {
782
+ readonly en: 'Timeline column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
783
+ readonly zh: '时间线列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
784
+ };
785
+ readonly 'chart.numericPlain': {
786
+ readonly en: 'Chart column "{name}" requires a plain number in row {row}, got "{value}".';
787
+ readonly zh: '图表列“{name}”第 {row} 行需要普通数字,当前为“{value}”。';
788
+ };
789
+ readonly 'timeline.numericPlain': {
790
+ readonly en: 'Timeline column "{name}" requires a plain number in row {row}, got "{value}".';
791
+ readonly zh: '时间线列“{name}”第 {row} 行需要普通数字,当前为“{value}”。';
792
+ };
793
+ readonly 'selection.keyEmpty': {
794
+ readonly en: '<{component}> key cannot be empty.';
795
+ readonly zh: '<{component}> 的 key 不能为空。';
796
+ };
797
+ readonly 'selection.keyMissingColumn': {
798
+ readonly en: '<{component}> key column "{name}" does not exist in its table.';
799
+ readonly zh: '<{component}> 的 key 列“{name}”在表格中不存在。';
800
+ };
801
+ readonly 'selection.keyInterpolation': {
802
+ readonly en: '<{component}> key column "{name}" must contain static text; row {row} contains an interpolation.';
803
+ readonly zh: '<{component}> 的 key 列“{name}”必须包含静态文本;第 {row} 行包含插值。';
804
+ };
805
+ readonly 'selection.keyEmptyCell': {
806
+ readonly en: '<{component}> key column "{name}" cannot be empty in row {row}.';
807
+ readonly zh: '<{component}> 的 key 列“{name}”在第 {row} 行不能为空。';
808
+ };
809
+ readonly 'selection.keyDuplicate': {
810
+ readonly en: '<{component}> key column "{name}" must be unique; duplicate value "{value}".';
811
+ readonly zh: '<{component}> 的 key 列“{name}”必须唯一;重复值“{value}”。';
812
+ };
813
+ readonly 'initial.selectionNotValue': {
814
+ readonly en: 'Initial selection "{value}" of <{component}> is not a value of key column "{name}".';
815
+ readonly zh: '<{component}> 的初始选择“{value}”不是 key 列“{name}”中的值。';
816
+ };
817
+ readonly 'chart.columnComma': {
818
+ readonly en: 'Chart column names cannot contain commas: "{name}".';
819
+ readonly zh: '图表列名不能包含逗号:“{name}”。';
820
+ };
821
+ readonly 'chart.xMissing': {
822
+ readonly en: 'Chart x column "{name}" does not exist.';
823
+ readonly zh: '图表 x 列“{name}”不存在。';
824
+ };
825
+ readonly 'chart.yRequired': {
826
+ readonly en: 'Chart y requires a column name.';
827
+ readonly zh: '图表 y 需要列名。';
828
+ };
829
+ readonly 'chart.yMissing': {
830
+ readonly en: 'Chart y column "{name}" does not exist.';
831
+ readonly zh: '图表 y 列“{name}”不存在。';
832
+ };
833
+ readonly 'chart.needsNumeric': {
834
+ readonly en: 'Chart requires at least one numeric column.';
835
+ readonly zh: '图表至少需要一个数值列。';
836
+ };
837
+ readonly 'chart.scatterXMissing': {
838
+ readonly en: 'Scatter chart x column "{name}" does not exist.';
839
+ readonly zh: '散点图的 x 列“{name}”不存在。';
840
+ };
841
+ readonly 'chart.scatterNeedsNumeric': {
842
+ readonly en: 'Scatter chart requires at least one numeric column.';
843
+ readonly zh: '散点图至少需要一个数值列。';
844
+ };
845
+ readonly 'chart.donutNeedsColumns': {
846
+ readonly en: 'Donut chart requires a label column and a value column.';
847
+ readonly zh: '环形图需要一个标签列和一个数值列。';
848
+ };
849
+ readonly 'chart.donutYOne': {
850
+ readonly en: 'Donut chart y can only specify one numeric column.';
851
+ readonly zh: '环形图的 y 只能指定一个数值列。';
852
+ };
853
+ readonly 'chart.donutNeedY': {
854
+ readonly en: 'A donut chart with more than two columns must use y to specify the single numeric column.';
855
+ readonly zh: '超过两列的环形图必须用 y 指定唯一的数值列。';
856
+ };
857
+ readonly 'chart.negative': {
858
+ readonly en: 'Donut chart values cannot be negative; row {row} is {value}.';
859
+ readonly zh: '环形图的数值不能为负;第 {row} 行为 {value}。';
860
+ };
861
+ readonly 'timeline.headerMissing': {
862
+ readonly en: 'Timeline requires either Task, Start and Duration columns or 事项, 开始 and 时长 columns, with optional Notes or 说明.';
863
+ readonly zh: '时间线需要 Task、Start、Duration 列,或 事项、开始、时长 列,并可选 Notes 或 说明。';
864
+ };
865
+ readonly 'timeline.columnUnsupported': {
866
+ readonly en: 'Timeline does not support column "{name}".';
867
+ readonly zh: '时间线不支持列“{name}”。';
868
+ };
869
+ readonly 'timeline.negative': {
870
+ readonly en: 'Timeline column "{name}" cannot be negative in row {row}.';
871
+ readonly zh: '时间线列“{name}”在第 {row} 行不能为负。';
872
+ };
873
+ readonly 'runtime.bindingNoWritable': {
874
+ readonly en: 'This component has no writable binding state.';
875
+ readonly zh: '此组件没有可写的绑定状态。';
876
+ };
877
+ readonly 'runtime.bindingNeedsSlot': {
878
+ readonly en: 'This multi-slot component requires a slot such as start/end or x/y.';
879
+ readonly zh: '此多槽组件需要 start/end 或 x/y 之类的槽位。';
880
+ };
881
+ readonly 'runtime.bindingUnknownSlot': {
882
+ readonly en: 'This component has no writable slot "{slot}".';
883
+ readonly zh: '此组件没有可写的槽位“{slot}”。';
884
+ };
885
+ readonly 'runtime.bindingNoMultiSlot': {
886
+ readonly en: 'This component does not support multiple slots.';
887
+ readonly zh: '此组件不支持多个槽位。';
888
+ };
889
+ readonly 'runtime.dateInvalid': {
890
+ readonly en: 'Date must be a valid YYYY-MM-DD or an empty string.';
891
+ readonly zh: '日期必须是有效的 YYYY-MM-DD 或空字符串。';
892
+ };
893
+ readonly 'runtime.dateRequired': {
894
+ readonly en: 'This date is required.';
895
+ readonly zh: '此日期为必填项。';
896
+ };
897
+ readonly 'runtime.dateEarlier': {
898
+ readonly en: 'Date cannot be earlier than {min}.';
899
+ readonly zh: '日期不能早于 {min}。';
900
+ };
901
+ readonly 'runtime.dateLater': {
902
+ readonly en: 'Date cannot be later than {max}.';
903
+ readonly zh: '日期不能晚于 {max}。';
904
+ };
905
+ readonly 'runtime.fieldRequired': {
906
+ readonly en: 'This field is required.';
907
+ readonly zh: '此字段为必填项。';
908
+ };
909
+ readonly 'runtime.minLength': {
910
+ readonly en: 'At least {min} characters.';
911
+ readonly zh: '至少 {min} 个字符。';
912
+ };
913
+ readonly 'runtime.maxLength': {
914
+ readonly en: 'At most {max} characters.';
915
+ readonly zh: '至多 {max} 个字符。';
916
+ };
917
+ readonly 'runtime.emailLength': {
918
+ readonly en: 'Email address cannot exceed {limit} characters.';
919
+ readonly zh: '电子邮件地址不能超过 {limit} 个字符。';
920
+ };
921
+ readonly 'runtime.emailInvalid': {
922
+ readonly en: 'Enter a valid email address.';
923
+ readonly zh: '请输入有效的电子邮件地址。';
924
+ };
925
+ readonly 'runtime.finiteNumber': {
926
+ readonly en: 'Parameter "{name}" requires a finite number.';
927
+ readonly zh: '参数“{name}”需要有限数字。';
928
+ };
929
+ readonly 'runtime.min': {
930
+ readonly en: 'Parameter "{name}" must be at least {min}.';
931
+ readonly zh: '参数“{name}”必须至少为 {min}。';
932
+ };
933
+ readonly 'runtime.max': {
934
+ readonly en: 'Parameter "{name}" must be at most {max}.';
935
+ readonly zh: '参数“{name}”必须至多为 {max}。';
936
+ };
937
+ readonly 'runtime.step': {
938
+ readonly en: 'Parameter "{name}" must be a multiple of step {step} (base {base}).';
939
+ readonly zh: '参数“{name}”必须是步长 {step} 的倍数(基准 {base})。';
940
+ };
941
+ readonly 'runtime.boolean': {
942
+ readonly en: 'Parameter "{name}" requires a boolean.';
943
+ readonly zh: '参数“{name}”需要布尔值。';
944
+ };
945
+ readonly 'runtime.string': {
946
+ readonly en: 'Parameter "{name}" requires a string.';
947
+ readonly zh: '参数“{name}”需要字符串。';
948
+ };
949
+ readonly 'runtime.array': {
950
+ readonly en: 'Parameter "{name}" requires an array of strings.';
951
+ readonly zh: '参数“{name}”需要字符串数组。';
952
+ };
953
+ readonly 'runtime.arrayMembers': {
954
+ readonly en: 'Parameter "{name}" members must be strings.';
955
+ readonly zh: '参数“{name}”的成员必须是字符串。';
956
+ };
957
+ readonly 'runtime.checklistOption': {
958
+ readonly en: 'Checklist item "{value}" does not exist.';
959
+ readonly zh: '清单项“{value}”不存在。';
960
+ };
961
+ readonly 'runtime.maxItems': {
962
+ readonly en: 'Parameter "{name}" allows at most {max} selected values.';
963
+ readonly zh: '参数“{name}”最多允许选择 {max} 个值。';
964
+ };
965
+ readonly 'runtime.unsupportedType': {
966
+ readonly en: 'Parameter "{name}" has an unsupported value type.';
967
+ readonly zh: '参数“{name}”的值类型不受支持。';
968
+ };
969
+ readonly 'runtime.option': {
970
+ readonly en: 'Value "{value}" is not among the options: {options}.';
971
+ readonly zh: '值“{value}”不在选项中:{options}。';
972
+ };
973
+ readonly 'runtime.budget': {
974
+ readonly en: 'Parameter "{name}": {detail}';
975
+ readonly zh: '参数“{name}”:{detail}';
976
+ };
977
+ readonly 'runtime.rangeOrder': {
978
+ readonly en: 'The range start cannot be greater than its end.';
979
+ readonly zh: '范围起点不能大于终点。';
980
+ };
981
+ readonly 'budget.string': {
982
+ readonly en: 'String exceeds the {limit}-character limit.';
983
+ readonly zh: '字符串超过 {limit} 个字符的上限。';
984
+ };
985
+ readonly 'budget.array': {
986
+ readonly en: 'Array exceeds the {limit}-item limit.';
987
+ readonly zh: '数组超过 {limit} 个项的上限。';
988
+ };
989
+ readonly 'budget.arrayMember': {
990
+ readonly en: 'Array member exceeds the {limit}-character limit.';
991
+ readonly zh: '数组成员超过 {limit} 个字符的上限。';
992
+ };
993
+ readonly 'budget.arrayContents': {
994
+ readonly en: 'Array contents exceed the {limit}-character limit.';
995
+ readonly zh: '数组内容超过 {limit} 个字符的上限。';
996
+ };
997
+ readonly 'theme.missing': {
998
+ readonly en: 'Theme "{name}" is not registered by the host; using the default theme.';
999
+ readonly zh: '宿主未注册主题“{name}”;将使用默认主题。';
1000
+ };
1001
+ readonly 'theme.registryUnreadable': {
1002
+ readonly en: 'The host theme registry could not be read; using the default theme.';
1003
+ readonly zh: '无法读取宿主主题注册表;将使用默认主题。';
1004
+ };
1005
+ readonly 'theme.invalidDefinition': {
1006
+ readonly en: 'The selected theme "{name}" is not a valid definition; using the default theme.';
1007
+ readonly zh: '所选主题“{name}”不是有效定义;将使用默认主题。';
1008
+ };
1009
+ readonly 'theme.duplicateRegistration': {
1010
+ readonly en: 'Theme "{name}" is registered more than once; using the default theme.';
1011
+ readonly zh: '主题“{name}”被多次注册;将使用默认主题。';
1012
+ };
1013
+ readonly 'theme.protocol': {
1014
+ readonly en: 'Theme "{name}" does not support the {protocol} protocol; using the default theme.';
1015
+ readonly zh: '主题“{name}”不支持 {protocol} 协议;将使用默认主题。';
1016
+ };
1017
+ readonly 'theme.modes': {
1018
+ readonly en: 'Theme "{name}" must supply both light and dark color schemes; using the default theme.';
1019
+ readonly zh: '主题“{name}”必须同时提供浅色和深色配色;将使用默认主题。';
1020
+ };
1021
+ readonly 'theme.selectedUnreadable': {
1022
+ readonly en: 'The selected theme "{name}" could not be read; using the default theme.';
1023
+ readonly zh: '所选主题“{name}”无法读取;将使用默认主题。';
1024
+ };
1025
+ readonly 'error.expression-syntax': {
1026
+ readonly en: 'Check expression operators, parentheses and arguments.';
1027
+ readonly zh: '表达式语法不正确,请检查运算符、括号或参数是否完整。';
1028
+ };
1029
+ readonly 'error.expression-index': {
1030
+ readonly en: 'An array index must be a finite safe integer.';
1031
+ readonly zh: '数组索引必须为有限的安全整数。';
1032
+ };
1033
+ readonly 'error.expression-cycle': {
1034
+ readonly en: 'Named calculations contain a dependency cycle.';
1035
+ readonly zh: '命名计算中存在循环依赖。';
1036
+ };
1037
+ readonly 'error.array.homogeneous': {
1038
+ readonly en: 'Array elements must all be strings or all be numbers.';
1039
+ readonly zh: '数组元素必须全部为字符串或全部为数字。';
1040
+ };
1041
+ readonly 'error.array.finite': {
1042
+ readonly en: 'Array members must be finite numbers.';
1043
+ readonly zh: '数字数组元素必须为有限数值。';
1044
+ };
1045
+ readonly 'error.array.members': {
1046
+ readonly en: 'Array members must be strings or finite numbers.';
1047
+ readonly zh: '数组元素必须为字符串或有限数值。';
1048
+ };
1049
+ readonly 'error.expression-number': {
1050
+ readonly en: 'A numeric literal must be finite and valid.';
1051
+ readonly zh: '数字字面量无效,必须是有限数值。';
1052
+ };
1053
+ readonly 'error.expression-string': {
1054
+ readonly en: 'Check the string quotes and escape sequences.';
1055
+ readonly zh: '字符串格式不正确,请检查引号和转义。';
1056
+ };
1057
+ readonly 'error.expression-budget': {
1058
+ readonly en: 'The expression exceeded a resource budget.';
1059
+ readonly zh: '表达式超过长度、节点、深度或求值步数预算,请简化表达式。';
1060
+ };
1061
+ readonly 'error.expression-assignment': {
1062
+ readonly en: 'Assignment is not allowed in expressions.';
1063
+ readonly zh: '表达式不能执行赋值,请使用比较运算符。';
1064
+ };
1065
+ readonly 'error.expression-property': {
1066
+ readonly en: 'Property access is not allowed.';
1067
+ readonly zh: '表达式不支持属性访问,请直接引用绑定名称。';
1068
+ };
1069
+ readonly 'error.expression-empty': {
1070
+ readonly en: 'An expression is required.';
1071
+ readonly zh: '此处需要非空表达式。';
1072
+ };
1073
+ readonly 'error.expression-unknown-function': {
1074
+ readonly en: 'Use a supported built-in function.';
1075
+ readonly zh: '函数不受支持,请使用语言内置函数。';
1076
+ };
1077
+ readonly 'error.expression-arity': {
1078
+ readonly en: 'Check the function argument count.';
1079
+ readonly zh: '函数参数数量不正确。';
1080
+ };
1081
+ readonly 'error.expression-forbidden-name': {
1082
+ readonly en: 'The name is forbidden.';
1083
+ readonly zh: '此名称属于禁止访问的名称,请使用已声明的绑定。';
1084
+ };
1085
+ readonly 'error.expression-type': {
1086
+ readonly en: 'Operand or argument types do not match.';
1087
+ readonly zh: '操作数或函数参数的类型不匹配,请检查绑定类型。';
1088
+ };
1089
+ readonly 'error.expression-unknown-name': {
1090
+ readonly en: 'The binding is not declared.';
1091
+ readonly zh: '引用了未声明的绑定。';
1092
+ };
1093
+ readonly 'error.expression-value': {
1094
+ readonly en: 'The binding value is not supported.';
1095
+ readonly zh: '绑定值不符合表达式支持的类型或数值范围。';
1096
+ };
1097
+ readonly 'error.expression-eval': {
1098
+ readonly en: 'The expression cannot be evaluated.';
1099
+ readonly zh: '表达式无法求值,请检查输入和运算条件。';
1100
+ };
1101
+ readonly 'error.expression-domain': {
1102
+ readonly en: 'A value lies outside the function domain.';
1103
+ readonly zh: '参数超出函数定义域。';
1104
+ };
1105
+ readonly 'error.expression-divide-by-zero': {
1106
+ readonly en: 'Division by zero is undefined.';
1107
+ readonly zh: '除数不能为零。';
1108
+ };
1109
+ readonly 'error.expression-interpolation': {
1110
+ readonly en: 'Check interpolation delimiters and content.';
1111
+ readonly zh: '插值格式不正确,请检查分隔符和表达式内容。';
1112
+ };
1113
+ readonly 'error.latex-budget': {
1114
+ readonly en: 'The formula exceeded a resource budget.';
1115
+ readonly zh: '公式超过长度、记号、节点、深度或计算步数预算,请简化公式。';
1116
+ };
1117
+ readonly 'error.latex-syntax': {
1118
+ readonly en: 'Check formula syntax and delimiters.';
1119
+ readonly zh: '公式语法不正确,请检查命令、括号和分隔符。';
1120
+ };
1121
+ readonly 'error.latex-empty': {
1122
+ readonly en: 'A formula is required.';
1123
+ readonly zh: '公式不能为空。';
1124
+ };
1125
+ readonly 'error.latex-relation': {
1126
+ readonly en: 'Check the formula relation.';
1127
+ readonly zh: '公式中的关系式不符合计算语法。';
1128
+ };
1129
+ readonly 'error.latex-number': {
1130
+ readonly en: 'A formula number must be finite.';
1131
+ readonly zh: '公式中的数字必须是有限数值。';
1132
+ };
1133
+ readonly 'error.latex-name': {
1134
+ readonly en: 'Use a valid formula parameter name.';
1135
+ readonly zh: '公式参数名称无效,请使用合法绑定名。';
1136
+ };
1137
+ readonly 'error.latex-unsupported': {
1138
+ readonly en: 'The LaTeX structure is not computable.';
1139
+ readonly zh: '此 LaTeX 结构不支持计算,请改用支持的函数和运算。';
1140
+ };
1141
+ readonly 'error.latex-variable': {
1142
+ readonly en: 'A numeric formula parameter is missing or invalid.';
1143
+ readonly zh: '公式引用的参数缺失或不是有限数字。';
1144
+ };
1145
+ readonly 'error.latex-type': {
1146
+ readonly en: 'A formula parameter has the wrong type.';
1147
+ readonly zh: '公式参数类型不正确,计算参数必须为数字。';
1148
+ };
1149
+ readonly 'error.latex-divide-by-zero': {
1150
+ readonly en: 'Division by zero is undefined.';
1151
+ readonly zh: '公式中的除数不能为零。';
1152
+ };
1153
+ readonly 'error.latex-domain': {
1154
+ readonly en: 'A formula value lies outside the function domain.';
1155
+ readonly zh: '公式参数超出函数定义域。';
1156
+ };
1157
+ readonly 'error.latex-undefined': {
1158
+ readonly en: 'The formula is undefined at this point.';
1159
+ readonly zh: '公式在此点没有有限定义值。';
1160
+ };
1161
+ readonly 'error.latex-plot-range': {
1162
+ readonly en: 'Plot bounds must be finite and increasing.';
1163
+ readonly zh: '绘图区间必须由有限数值构成,且最小值小于最大值。';
1164
+ };
1165
+ readonly 'error.latex-plot-samples': {
1166
+ readonly en: 'The sample count must be an integer from 2 to 2000.';
1167
+ readonly zh: '采样点数必须为 2 至 2000 的整数。';
1168
+ };
1169
+ };
1170
+ export type LocalDiagnosticMessageKey = keyof typeof LOCAL_DIAGNOSTIC_MESSAGES;
1171
+ /** Public error codes thrown by `compileExpression`/`interpolate`. */
1172
+ export declare const LOCAL_EXPRESSION_ERROR_CODES: readonly ['expression-index', 'expression-cycle', 'expression-syntax', 'expression-number', 'expression-string', 'expression-budget', 'expression-assignment', 'expression-property', 'expression-empty', 'expression-unknown-function', 'expression-arity', 'expression-forbidden-name', 'expression-type', 'expression-unknown-name', 'expression-value', 'expression-eval', 'expression-domain', 'expression-divide-by-zero', 'expression-interpolation'];
1173
+ export type LocalExpressionErrorCode = (typeof LOCAL_EXPRESSION_ERROR_CODES)[number];
1174
+ /** Public error codes thrown by `compileLatex`/`samplePlot`. */
1175
+ export declare const LOCAL_LATEX_ERROR_CODES: readonly ['latex-budget', 'latex-syntax', 'latex-empty', 'latex-relation', 'latex-number', 'latex-name', 'latex-unsupported', 'latex-variable', 'latex-type', 'latex-divide-by-zero', 'latex-domain', 'latex-undefined', 'latex-plot-range', 'latex-plot-samples'];
1176
+ export type LocalLatexErrorCode = (typeof LOCAL_LATEX_ERROR_CODES)[number];
1177
+ /**
1178
+ * Every diagnostic code the core can emit, including the raw public expression
1179
+ * and LaTeX error codes and the `local.expression.<code>` forms forwarded by
1180
+ * the compiler. Codes are never renamed or reused inside a 0.x minor version.
1181
+ */
1182
+ export declare const LOCAL_DIAGNOSTIC_CODES: readonly string[];
1183
+ /**
1184
+ * Message keys used on `Diagnostic.messageKey`. Most keys follow
1185
+ * `local.<diagnostic-code>.<variant>` so a reader can associate a template with
1186
+ * its machine code without a lookup table.
1187
+ */
1188
+ declare const LOCAL_DIAGNOSTIC_TEMPLATE_ALIASES: {
1189
+ readonly 'local.options.invalid.object': 'options.notObject';
1190
+ readonly 'local.options.invalid.limits': 'options.limitsNotObject';
1191
+ readonly 'local.options.invalid.max-syntax-nodes': 'options.maxSyntaxNodes';
1192
+ readonly 'local.budget.document': 'budget.document';
1193
+ readonly 'local.budget.nodes': 'budget.syntaxNodes';
1194
+ readonly 'local.budget.nesting': 'budget.nesting';
1195
+ readonly 'local.budget.name.attribute': 'budget.attributeName';
1196
+ readonly 'local.budget.name.tag': 'budget.tagName';
1197
+ readonly 'local.budget.math': 'budget.math';
1198
+ readonly 'local.budget.attribute': 'budget.attribute';
1199
+ readonly 'local.budget.array.options': 'budget.options';
1200
+ readonly 'local.budget.array.checklist': 'budget.checklistItems';
1201
+ readonly 'local.budget.identifier': 'budget.identifier';
1202
+ readonly 'local.budget.plot.curves': 'budget.plotCurves';
1203
+ readonly 'local.budget.plot.points': 'budget.plotPoints';
1204
+ readonly 'local.budget.value.string': 'budget.string';
1205
+ readonly 'local.budget.value.array': 'budget.array';
1206
+ readonly 'local.budget.value.array-member': 'budget.arrayMember';
1207
+ readonly 'local.budget.value.array-contents': 'budget.arrayContents';
1208
+ readonly 'local.parse.source': 'parse.sourceType';
1209
+ readonly 'local.parse.markdown': 'parse.markdownFailed';
1210
+ readonly 'local.parse.document': 'parse.failed';
1211
+ readonly 'local.legacy': 'legacy.fence';
1212
+ readonly 'local.theme.expression': 'theme.expression';
1213
+ readonly 'local.theme.name.missing': 'theme.nameRequired';
1214
+ readonly 'local.theme.attribute': 'theme.attributeOnly';
1215
+ readonly 'local.theme.name.invalid': 'theme.nameInvalid';
1216
+ readonly 'local.theme.name': 'theme.nameInvalid';
1217
+ readonly 'local.theme.malformed.unclosed': 'theme.malformedMissingClose';
1218
+ readonly 'local.theme.malformed.closing': 'theme.malformedClosing';
1219
+ readonly 'local.theme.malformed.placement': 'theme.malformedStandalone';
1220
+ readonly 'local.theme.duplicate.declaration': 'theme.duplicateDeclaration';
1221
+ readonly 'local.theme.duplicate': 'theme.duplicateRegistration';
1222
+ readonly 'local.theme.late': 'theme.late';
1223
+ readonly 'local.theme.nested': 'theme.nested';
1224
+ readonly 'local.theme.invalid': 'theme.invalidDeclaration';
1225
+ readonly 'local.theme.missing': 'theme.missing';
1226
+ readonly 'local.theme.manifest.unreadable': 'theme.registryUnreadable';
1227
+ readonly 'local.theme.manifest.definition': 'theme.invalidDefinition';
1228
+ readonly 'local.theme.manifest.selected': 'theme.selectedUnreadable';
1229
+ readonly 'local.theme.protocol': 'theme.protocol';
1230
+ readonly 'local.theme.modes': 'theme.modes';
1231
+ readonly 'local.tag.missing-close': 'tag.missingClose';
1232
+ readonly 'local.tag.unclosed.open': 'tag.missingClose';
1233
+ readonly 'local.tag.unclosed.pair': 'tag.unclosedPaired';
1234
+ readonly 'local.tag.closing': 'tag.closingAttributes';
1235
+ readonly 'local.tag.name': 'tag.nameInvalid';
1236
+ readonly 'local.tag.mismatch.root': 'tag.mismatchRoot';
1237
+ readonly 'local.tag.mismatch.parent': 'tag.mismatchParent';
1238
+ readonly 'local.tag.shape': 'tag.requiresClose';
1239
+ readonly 'local.interpolation.unclosed': 'interpolation.unclosed';
1240
+ readonly 'local.math.unclosed': 'math.unclosed';
1241
+ readonly 'local.math.whitespace': 'math.whitespace';
1242
+ readonly 'local.footnote.unsupported': 'footnote.unsupported';
1243
+ readonly 'local.html': 'html.raw';
1244
+ readonly 'local.component.unknown.suggestion': 'component.unknownSuggestion';
1245
+ readonly 'local.component.unknown': 'component.unknownPlain';
1246
+ readonly 'local.attribute.format': 'attribute.lowercase';
1247
+ readonly 'local.attribute.name': 'attribute.nameInvalid';
1248
+ readonly 'local.attribute.value-quoted': 'attribute.valueQuoted';
1249
+ readonly 'local.attribute.closing-quote': 'attribute.valueUnclosed';
1250
+ readonly 'local.attribute.duplicate': 'attribute.duplicate';
1251
+ readonly 'local.attribute.separator': 'attribute.separator';
1252
+ readonly 'local.attribute.unknown.suggestion': 'attribute.unknownSuggestion';
1253
+ readonly 'local.attribute.unknown': 'attribute.unknownPlain';
1254
+ readonly 'local.attribute.color': 'attribute.color';
1255
+ readonly 'local.attribute.required': 'attribute.required';
1256
+ readonly 'local.attribute.static': 'attribute.static';
1257
+ readonly 'local.attribute.type.number': 'attribute.numberInvalid';
1258
+ readonly 'local.attribute.type.number-interpolation': 'attribute.numberInterpolationInvalid';
1259
+ readonly 'local.attribute.type.integer': 'attribute.integer';
1260
+ readonly 'local.attribute.type.positive': 'attribute.positive';
1261
+ readonly 'local.attribute.type.boolean': 'attribute.booleanInvalid';
1262
+ readonly 'local.attribute.type.boolean-interpolation': 'attribute.booleanInterpolationInvalid';
1263
+ readonly 'local.attribute.type.enum': 'attribute.enumInvalid';
1264
+ readonly 'local.attribute.type.date-lower': 'attribute.dateLower';
1265
+ readonly 'local.attribute.type.date-upper': 'attribute.dateUpper';
1266
+ readonly 'local.attribute.range.min': 'attribute.rangeMin';
1267
+ readonly 'local.attribute.range.max': 'attribute.rangeMax';
1268
+ readonly 'local.attribute.interpolation': 'attribute.whenInterpolation';
1269
+ readonly 'local.label.required.missing': 'label.requiredMissing';
1270
+ readonly 'local.label.required.empty': 'label.requiredEmpty';
1271
+ readonly 'local.expression.empty.attribute': 'expression.emptyAttribute';
1272
+ readonly 'local.expression.empty': 'expression.emptyInterpolation';
1273
+ readonly 'local.expression.error': 'expression.error';
1274
+ readonly 'local.constraint.number-min-max': 'constraint.componentMinMax';
1275
+ readonly 'local.constraint.number-step': 'constraint.componentStep';
1276
+ readonly 'local.constraint.length-order': 'constraint.lengthRange';
1277
+ readonly 'local.constraint.date-order': 'constraint.dateOrder';
1278
+ readonly 'local.constraint.progress-range': 'constraint.progressRange';
1279
+ readonly 'local.constraint.plot-range': 'constraint.plotRange';
1280
+ readonly 'local.constraint.timer-duration': 'constraint.timerDuration';
1281
+ readonly 'local.constraint.range-slider-min-max': 'constraint.rangeSliderOrder';
1282
+ readonly 'local.constraint.range-slider-step': 'constraint.rangeSliderStep';
1283
+ readonly 'local.constraint.coordinate-axis': 'constraint.coordinateOrder';
1284
+ readonly 'local.constraint.coordinate-step': 'constraint.coordinateStep';
1285
+ readonly 'local.constraint.multi-select': 'constraint.multiSelectMax';
1286
+ readonly 'local.constraint.quiz-tolerance': 'constraint.quizTolerance';
1287
+ readonly 'local.selection.key.required': 'selection.keyNeedsKey';
1288
+ readonly 'local.selection.key.empty': 'selection.keyEmpty';
1289
+ readonly 'local.selection.key.missing-column': 'selection.keyMissingColumn';
1290
+ readonly 'local.selection.key.interpolation': 'selection.keyInterpolation';
1291
+ readonly 'local.selection.key.empty-cell': 'selection.keyEmptyCell';
1292
+ readonly 'local.selection.key.duplicate': 'selection.keyDuplicate';
1293
+ readonly 'local.selection.key.initial': 'initial.selectionNotValue';
1294
+ readonly 'local.structure.parent': 'structure.parent';
1295
+ readonly 'local.structure.no-body': 'structure.noBody';
1296
+ readonly 'local.structure.inline-only': 'structure.inlineOnly';
1297
+ readonly 'local.structure.no-nested-components': 'structure.noNestedComponents';
1298
+ readonly 'local.structure.accordion.needs-disclosure': 'structure.accordionNeedsDisclosure';
1299
+ readonly 'local.structure.accordion.only-disclosure': 'structure.accordionOnly';
1300
+ readonly 'local.structure.grid.needs-card': 'structure.gridNeedsCard';
1301
+ readonly 'local.structure.grid.only-card': 'structure.gridOnlyCard';
1302
+ readonly 'local.structure.table.single': 'structure.exactlyOneTable';
1303
+ readonly 'local.structure.plot.needs-formula': 'structure.plotNeedsFormula';
1304
+ readonly 'local.structure.plot.only-formulas': 'structure.plotOnlyFormulas';
1305
+ readonly 'local.structure.node.no-components': 'structure.nodeNoComponents';
1306
+ readonly 'local.structure.options.needed': 'structure.optionsNeeded';
1307
+ readonly 'local.structure.options.only': 'structure.optionsOnly';
1308
+ readonly 'local.structure.option.no-components': 'structure.optionNoComponents';
1309
+ readonly 'local.structure.tabs.needs-tab': 'structure.tabsNeedsTab';
1310
+ readonly 'local.structure.tabs.only-tab': 'structure.tabsOnly';
1311
+ readonly 'local.structure.steps.needs-step': 'structure.stepsNeedsStep';
1312
+ readonly 'local.structure.steps.only-step': 'structure.stepsOnly';
1313
+ readonly 'local.structure.quiz.numeric-no-body': 'structure.quizNumericNoBody';
1314
+ readonly 'local.structure.diagram.only': 'structure.diagramOnly';
1315
+ readonly 'local.option.value.required': 'option.valueRequired';
1316
+ readonly 'local.option.value.comma': 'option.valueComma';
1317
+ readonly 'local.option.value.duplicate': 'option.valueDuplicate';
1318
+ readonly 'local.tab.value.duplicate': 'tab.valueDuplicate';
1319
+ readonly 'local.step.value.duplicate': 'step.valueDuplicate';
1320
+ readonly 'local.quiz.answer.required': 'quiz.answerRequired';
1321
+ readonly 'local.quiz.answer.numeric': 'quiz.answerNumeric';
1322
+ readonly 'local.quiz.answer.not-option': 'quiz.answerNotOption';
1323
+ readonly 'local.diagram.node.required': 'diagram.needsNode';
1324
+ readonly 'local.diagram.node.invalid': 'diagram.nodeInvalid';
1325
+ readonly 'local.diagram.node.duplicate': 'diagram.nodeDuplicate';
1326
+ readonly 'local.diagram.edge.from': 'diagram.edgeFromUnknown';
1327
+ readonly 'local.diagram.edge.to': 'diagram.edgeToUnknown';
1328
+ readonly 'local.diagram.edge.duplicate': 'diagram.edgeDuplicate';
1329
+ readonly 'local.checklist.body.single': 'checklist.bodySingle';
1330
+ readonly 'local.checklist.body.item-required': 'checklist.needsItem';
1331
+ readonly 'local.checklist.body.items-limit': 'budget.checklistItems';
1332
+ readonly 'local.checklist.body.task-only': 'checklist.taskOnly';
1333
+ readonly 'local.checklist.body.no-nested': 'checklist.noNested';
1334
+ readonly 'local.checklist.body.no-components': 'checklist.noComponents';
1335
+ readonly 'local.binding.name': 'binding.nameInvalid';
1336
+ readonly 'local.binding.reserved': 'binding.reserved';
1337
+ readonly 'local.binding.type': 'binding.typeConflict';
1338
+ readonly 'local.binding.exclusive': 'binding.exclusive';
1339
+ readonly 'local.binding.exclusive.slot': 'binding.slotExclusive';
1340
+ readonly 'local.binding.constraint': 'binding.constraintConflict';
1341
+ readonly 'local.binding.option': 'binding.optionConflict';
1342
+ readonly 'local.binding.unknown.suggestion': 'binding.unknownSuggestion';
1343
+ readonly 'local.binding.unknown': 'binding.unknownPlain';
1344
+ readonly 'local.initial.duplicate': 'initial.duplicate';
1345
+ readonly 'local.initial.duplicate-peers': 'initial.duplicatePeers';
1346
+ readonly 'local.initial.no-step': 'initial.rangeNoStep';
1347
+ readonly 'local.initial.cannot-derive': 'initial.cannotDerive';
1348
+ readonly 'local.initial.type.number': 'initial.typeFiniteNumber';
1349
+ readonly 'local.initial.type.boolean': 'initial.typeBoolean';
1350
+ readonly 'local.initial.type': 'initial.typeWrong';
1351
+ readonly 'local.initial.range.min': 'initial.belowMin';
1352
+ readonly 'local.initial.range.max': 'initial.aboveMax';
1353
+ readonly 'local.initial.range.step': 'initial.offStep';
1354
+ readonly 'local.initial.value.options': 'initial.notAmongOptions';
1355
+ readonly 'local.initial.date': 'initial.dateInvalid';
1356
+ readonly 'local.initial.value.option': 'initial.notAvailableOption';
1357
+ readonly 'local.initial.option.multi-select': 'initial.multiSelectOption';
1358
+ readonly 'local.initial.range-slider': 'initial.rangeSliderOrder';
1359
+ readonly 'local.initial.slot.min': 'initial.slotBelowMin';
1360
+ readonly 'local.initial.slot.max': 'initial.slotAboveMax';
1361
+ readonly 'local.initial.slot.step': 'initial.slotOffStep';
1362
+ readonly 'local.initial.length.min': 'initial.lengthBelow';
1363
+ readonly 'local.initial.length.max': 'initial.lengthAbove';
1364
+ readonly 'local.initial.email': 'initial.email';
1365
+ readonly 'local.initial.date.min': 'initial.dateBelow';
1366
+ readonly 'local.initial.date.max': 'initial.dateAbove';
1367
+ readonly 'local.initial.multi-select': 'initial.multiSelectExceeds';
1368
+ readonly 'local.type.number': 'type.number';
1369
+ readonly 'local.type.boolean': 'type.boolean';
1370
+ readonly 'local.type.string': 'type.string';
1371
+ readonly 'local.type.array': 'type.arrayNoDisplay';
1372
+ readonly 'local.anchor.id': 'anchor.idInvalid';
1373
+ readonly 'local.anchor.duplicate': 'anchor.duplicate';
1374
+ readonly 'local.anchor.heading-collision': 'anchor.headingCollision';
1375
+ readonly 'local.jump.empty': 'jump.empty';
1376
+ readonly 'local.jump.bad-target': 'jump.badTarget';
1377
+ readonly 'local.jump.unresolved': 'jump.unresolved';
1378
+ readonly 'local.math.formula.shape': 'math.formulaShape';
1379
+ readonly 'local.math.compute': 'math.computeFailed';
1380
+ readonly 'local.math.binding.unknown': 'math.bindingUnknown';
1381
+ readonly 'local.math.binding.type': 'math.bindingType';
1382
+ readonly 'local.table.header.missing': 'table.missingHeader';
1383
+ readonly 'local.table.header.interpolation': 'table.headerInterpolation';
1384
+ readonly 'local.table.header.empty': 'table.headerEmpty';
1385
+ readonly 'local.table.header.duplicate': 'table.headerDuplicate';
1386
+ readonly 'local.table.row.mismatch': 'table.rowColumnMismatch';
1387
+ readonly 'local.chart.numeric.expression': 'chart.numericExpression';
1388
+ readonly 'local.timeline.numeric.expression': 'timeline.numericExpression';
1389
+ readonly 'local.chart.numeric.plain': 'chart.numericPlain';
1390
+ readonly 'local.timeline.numeric.plain': 'timeline.numericPlain';
1391
+ readonly 'local.chart.column.comma': 'chart.columnComma';
1392
+ readonly 'local.chart.column.x-missing': 'chart.xMissing';
1393
+ readonly 'local.chart.column.y-required': 'chart.yRequired';
1394
+ readonly 'local.chart.column.y-missing': 'chart.yMissing';
1395
+ readonly 'local.chart.column.needs-numeric': 'chart.needsNumeric';
1396
+ readonly 'local.chart.column.scatter-x-missing': 'chart.scatterXMissing';
1397
+ readonly 'local.chart.column.scatter-needs-numeric': 'chart.scatterNeedsNumeric';
1398
+ readonly 'local.chart.column.donut-columns': 'chart.donutNeedsColumns';
1399
+ readonly 'local.chart.column.donut-y': 'chart.donutYOne';
1400
+ readonly 'local.chart.column.donut-need-y': 'chart.donutNeedY';
1401
+ readonly 'local.chart.negative': 'chart.negative';
1402
+ readonly 'local.timeline.header.missing': 'timeline.headerMissing';
1403
+ readonly 'local.timeline.header.column': 'timeline.columnUnsupported';
1404
+ readonly 'local.timeline.value.negative': 'timeline.negative';
1405
+ readonly 'local.runtime.binding.no-writable': 'runtime.bindingNoWritable';
1406
+ readonly 'local.runtime.binding.needs-slot': 'runtime.bindingNeedsSlot';
1407
+ readonly 'local.runtime.binding.unknown-slot': 'runtime.bindingUnknownSlot';
1408
+ readonly 'local.runtime.binding.no-multi-slot': 'runtime.bindingNoMultiSlot';
1409
+ readonly 'local.runtime.value.date-invalid': 'runtime.dateInvalid';
1410
+ readonly 'local.runtime.value.date-required': 'runtime.dateRequired';
1411
+ readonly 'local.runtime.value.date-earlier': 'runtime.dateEarlier';
1412
+ readonly 'local.runtime.value.date-later': 'runtime.dateLater';
1413
+ readonly 'local.runtime.value.field-required': 'runtime.fieldRequired';
1414
+ readonly 'local.runtime.value.min-length': 'runtime.minLength';
1415
+ readonly 'local.runtime.value.max-length': 'runtime.maxLength';
1416
+ readonly 'local.runtime.value.email-length': 'runtime.emailLength';
1417
+ readonly 'local.runtime.value.email-invalid': 'runtime.emailInvalid';
1418
+ readonly 'local.runtime.value.finite-number': 'runtime.finiteNumber';
1419
+ readonly 'local.runtime.value.min': 'runtime.min';
1420
+ readonly 'local.runtime.value.max': 'runtime.max';
1421
+ readonly 'local.runtime.value.step': 'runtime.step';
1422
+ readonly 'local.runtime.value.boolean': 'runtime.boolean';
1423
+ readonly 'local.runtime.value.string': 'runtime.string';
1424
+ readonly 'local.runtime.value.array': 'runtime.array';
1425
+ readonly 'local.runtime.value.array-members': 'runtime.arrayMembers';
1426
+ readonly 'local.runtime.value.checklist-option': 'runtime.checklistOption';
1427
+ readonly 'local.runtime.value.max-items': 'runtime.maxItems';
1428
+ readonly 'local.runtime.value.unsupported-type': 'runtime.unsupportedType';
1429
+ readonly 'local.runtime.value.option': 'runtime.option';
1430
+ readonly 'local.runtime.value.budget': 'runtime.budget';
1431
+ readonly 'local.runtime.value.range-order': 'runtime.rangeOrder';
1432
+ };
1433
+ export type LocalDiagnosticTemplateKey = keyof typeof LOCAL_DIAGNOSTIC_TEMPLATE_ALIASES;
1434
+ /** Registered message keys, sorted for stable test snapshots. */
1435
+ export declare const localDiagnosticTemplateKeys: readonly string[];
1436
+ /** Look up the raw template text, or `undefined` for an unknown host key. */
1437
+ export declare function localDiagnosticTemplate(key: string, locale?: LocalDiagnosticLocale): string | undefined;
1438
+ /** Whether a code belongs to the registered core diagnostic surface. */
1439
+ export declare function isLocalDiagnosticCode(code: unknown): code is string;
1440
+ /** Render a registered template without constructing a full diagnostic. */
1441
+ export declare function renderLocalDiagnostic(key: string, locale?: LocalDiagnosticLocale, params?: LocalDiagnosticParams): string;
1442
+ /** English text for `Diagnostic.message`; keep the field backwards compatible. */
1443
+ export declare function diagnosticEnglish(detail: LocalDiagnosticDetails): string;
1444
+ /**
1445
+ * Format a diagnostic in the requested language. Known core diagnostics use
1446
+ * their registered template; host-supplied or unknown diagnostics keep the
1447
+ * original message. The result respects the existing UTF-16 message budget.
1448
+ */
1449
+ export declare function formatLocalDiagnostic(diagnostic: Diagnostic, locale?: LocalDiagnosticLocale): string;
1450
+ export {};