@deot/docs-locale 1.0.1

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,886 @@
1
+ import type { App } from 'vue';
2
+ import type { ComputedRef } from 'vue';
3
+ import type { InjectionKey } from 'vue';
4
+ import type { MaybeRef } from 'vue';
5
+ import type { Ref } from 'vue';
6
+
7
+ export declare const buildLocaleContext: (locale: MaybeRef<Language>) => LocaleContext;
8
+
9
+ export declare const buildTranslator: (locale: MaybeRef<Language>) => Translator;
10
+
11
+ export declare interface ClientLocaleMessages {
12
+ common: Record<string, string>;
13
+ header: Record<string, string>;
14
+ home: Record<string, string>;
15
+ demos: Record<string, string>;
16
+ search: Record<string, string>;
17
+ database: Record<string, string>;
18
+ playgroundResource: Record<string, string>;
19
+ paging: Record<string, string>;
20
+ }
21
+
22
+ export declare const createLocale: (name: string, messages?: DeepPartial<DocsLocaleMessages>) => Language;
23
+
24
+ export declare type DeepPartial<T> = {
25
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
26
+ };
27
+
28
+ export declare type DocsLocaleEntry = {
29
+ label: string;
30
+ } & DeepPartial<DocsLocaleMessages>;
31
+
32
+ export declare interface DocsLocaleMessages {
33
+ client: ClientLocaleMessages;
34
+ markdown: MarkdownLocaleMessages;
35
+ playground: PlaygroundLocaleMessages;
36
+ renderer: RendererLocaleMessages;
37
+ }
38
+
39
+ export declare const enUS: {
40
+ readonly name: "en-US";
41
+ readonly client: {
42
+ readonly common: {
43
+ readonly close: "Close";
44
+ readonly invalidSidebar: "Invalid sidebar resource";
45
+ readonly loading: "Loading…";
46
+ readonly poweredBy: "Powered by @deot/docs";
47
+ readonly resourceRequestFailed: "Resource request failed";
48
+ readonly yes: "Yes";
49
+ };
50
+ readonly header: {
51
+ readonly brand: "@deot/docs";
52
+ readonly database: "Open resource database";
53
+ readonly playgroundResource: "Manage Playground resources";
54
+ readonly editor: "Customize this page";
55
+ readonly language: "Switch language";
56
+ readonly switchToDark: "Switch to dark theme";
57
+ readonly switchToLight: "Switch to light theme";
58
+ };
59
+ readonly home: {};
60
+ readonly demos: {
61
+ readonly title: "Renderer demos";
62
+ readonly subtitle: "Reference compositions of built-in modules. Open a card to enter Combo.";
63
+ readonly open: "Open demo";
64
+ readonly openEditor: "Open editor";
65
+ readonly editor: "Blank editor";
66
+ readonly editorHint: "Open the Renderer editor on an empty canvas.";
67
+ readonly back: "Back to catalog";
68
+ };
69
+ readonly search: {
70
+ readonly trigger: "Search docs";
71
+ readonly untitled: "Untitled";
72
+ readonly dialogLabel: "Search documentation";
73
+ readonly placeholder: "Search docs";
74
+ readonly clearQuery: "Clear query";
75
+ readonly close: "Close search";
76
+ readonly searching: "Searching…";
77
+ readonly documentation: "Documentation";
78
+ readonly noResults: "No results found.";
79
+ readonly noCachedDocuments: "No cached documents yet.";
80
+ readonly recent: "Recent";
81
+ readonly noRecent: "No recent searches.";
82
+ readonly pin: "Pin history";
83
+ readonly unpin: "Unpin history";
84
+ readonly remove: "Remove history";
85
+ readonly navigateHint: "to navigate";
86
+ readonly selectHint: "to select";
87
+ readonly closeHint: "to close";
88
+ readonly historyLoadFailed: "Unable to load search history.";
89
+ readonly queryFailed: "Unable to search cached documents.";
90
+ readonly historyUpdateFailed: "Unable to update search history.";
91
+ readonly historyRemoveFailed: "Unable to remove search history.";
92
+ };
93
+ readonly database: {
94
+ readonly title: "IndexedDB Resources";
95
+ readonly back: "Back";
96
+ readonly home: "Home";
97
+ readonly records: "{count} records";
98
+ readonly cache: "cache {size}";
99
+ readonly columns: "Columns";
100
+ readonly refresh: "Refresh";
101
+ readonly updateAll: "Update all";
102
+ readonly prefetch: "Prefetch";
103
+ readonly clear: "Clear";
104
+ readonly prune: "Prune";
105
+ readonly url: "URL";
106
+ readonly source: "Source";
107
+ readonly contentStatus: "Content Status";
108
+ readonly requestStatus: "Request Status";
109
+ readonly namespace: "Namespace";
110
+ readonly language: "Language";
111
+ readonly type: "Type";
112
+ readonly hash: "Hash";
113
+ readonly content: "Content";
114
+ readonly updated: "Updated";
115
+ readonly checked: "Checked";
116
+ readonly accessed: "Accessed";
117
+ readonly previous: "Previous";
118
+ readonly actions: "Actions";
119
+ readonly update: "Update";
120
+ readonly delete: "Delete";
121
+ readonly loadFailed: "Load failed";
122
+ readonly operationFailed: "Operation failed";
123
+ readonly refreshed: "Refreshed";
124
+ readonly reloadFailed: "Reload failed";
125
+ readonly updatedSource: "{source} updated";
126
+ readonly deletedSource: "{source} deleted";
127
+ readonly updatedAll: "Updated all";
128
+ readonly clearedAll: "Cleared all";
129
+ readonly prefetchSummary: "Prefetch: {fulfilled} ok, {rejected} failed";
130
+ readonly prefetched: "Prefetched {total}";
131
+ readonly prefetchFailed: "Prefetch failed";
132
+ readonly pruned: "Pruned {count}";
133
+ readonly pruneFailed: "Garbage cleanup failed";
134
+ };
135
+ readonly playgroundResource: {
136
+ readonly title: "Playground Resource";
137
+ readonly records: "{count} entries";
138
+ readonly cache: "cache {size}";
139
+ readonly hint: string;
140
+ readonly back: "Back";
141
+ readonly home: "Home";
142
+ readonly columns: "Columns";
143
+ readonly refresh: "Refresh";
144
+ readonly prefetch: "Prefetch";
145
+ readonly clear: "Clear";
146
+ readonly kind: "Type";
147
+ readonly kindImport: "Import";
148
+ readonly kindStyle: "CSS";
149
+ readonly alias: "Name";
150
+ readonly defaultUrl: "Default URL";
151
+ readonly currentUrl: "Current URL";
152
+ readonly status: "Override";
153
+ readonly overridden: "Overridden";
154
+ readonly default: "Default";
155
+ readonly requestStatus: "Request status";
156
+ readonly updated: "Updated";
157
+ readonly checked: "Checked";
158
+ readonly actions: "Actions";
159
+ readonly edit: "Edit";
160
+ readonly save: "Save";
161
+ readonly rollback: "Rollback";
162
+ readonly rollbackSkipped: "Already using the default URL";
163
+ readonly retry: "Retry";
164
+ readonly urlPlaceholder: "https://cdn.example.com/pkg/index.js";
165
+ readonly editTitle: "Edit URL";
166
+ readonly loadFailed: "Load failed";
167
+ readonly operationFailed: "Operation failed";
168
+ readonly saveFailed: "Save failed";
169
+ readonly rollbackFailed: "Rollback failed";
170
+ readonly retryFailed: "Retry failed";
171
+ readonly prefetchFailed: "Prefetch failed";
172
+ readonly probeFailed: "Probe failed";
173
+ readonly refreshed: "Refreshed";
174
+ readonly cleared: "Cleared overrides";
175
+ readonly saved: "{alias} saved";
176
+ readonly rollbackDone: "{alias} rolled back";
177
+ readonly retried: "{alias} retried";
178
+ readonly prefetched: "Prefetched {total} entries";
179
+ readonly prefetchSummary: "Prefetch: {fulfilled} succeeded, {rejected} failed";
180
+ };
181
+ readonly paging: {
182
+ readonly search: "Search";
183
+ readonly reset: "Reset";
184
+ readonly enter: "Enter";
185
+ readonly select: "Select";
186
+ readonly pickDate: "Pick date";
187
+ readonly min: "Min";
188
+ readonly max: "Max";
189
+ };
190
+ };
191
+ readonly markdown: {
192
+ readonly indicator: {
193
+ readonly label: "Document indicator";
194
+ readonly untitled: "Untitled section";
195
+ readonly document: "Document";
196
+ };
197
+ };
198
+ readonly playground: {
199
+ readonly common: {
200
+ readonly copy: "Copy";
201
+ readonly copyCode: "Copy code";
202
+ readonly copyCurrentFile: "Copy current file";
203
+ readonly close: "Close";
204
+ };
205
+ readonly runtime: {
206
+ readonly preview: "Runtime preview";
207
+ readonly files: "File preview";
208
+ readonly auto: "Auto";
209
+ readonly viewport: "Viewport: {value}";
210
+ readonly viewportMenu: "Runtime viewport";
211
+ readonly editFiles: "Edit files";
212
+ readonly importMapTip: "Check the import path, or add an Import Map entry for this dependency.";
213
+ };
214
+ readonly files: {
215
+ readonly entry: "Entry";
216
+ };
217
+ readonly editor: {
218
+ readonly entry: "Entry file";
219
+ readonly entryCannotDelete: "The entry file cannot be deleted";
220
+ readonly confirmDelete: "Delete {filename}?";
221
+ readonly deleteFile: "Delete file";
222
+ readonly createFile: "Create file";
223
+ readonly setEntry: "Set as entry";
224
+ };
225
+ readonly validation: {
226
+ readonly entryMissing: "Entry file {filename} does not exist";
227
+ readonly filenameRequired: "Enter a filename";
228
+ readonly filenameRelative: "The filename must be a relative POSIX path";
229
+ readonly filenameSegments: "The path cannot contain empty, . or .. segments";
230
+ readonly fileTypeUnsupported: "Unsupported file type";
231
+ readonly filenameExists: "The filename already exists";
232
+ };
233
+ };
234
+ readonly renderer: {
235
+ readonly common: {
236
+ readonly loading: "Loading…";
237
+ readonly unknownModule: "Unknown module: {type}";
238
+ readonly unsupportedVersion: "Unsupported module version: {version}";
239
+ readonly migrationUnavailable: "Module migration is unavailable";
240
+ readonly back: "Back";
241
+ readonly untitledPage: "Untitled Page";
242
+ readonly undo: "Undo";
243
+ readonly redo: "Redo";
244
+ readonly import: "Import";
245
+ readonly export: "Export";
246
+ readonly preview: "Preview";
247
+ readonly save: "Save";
248
+ readonly saved: "Saved";
249
+ readonly page: "Page";
250
+ readonly blocks: "{count} blocks";
251
+ readonly close: "Close";
252
+ readonly validationFailed: "Document validation failed";
253
+ readonly draftRestoreFailed: "Unable to restore the local draft";
254
+ readonly clearDraft: "Clear draft";
255
+ readonly draftCleared: "Local draft cleared";
256
+ readonly draftClearFailed: "Unable to clear the local draft";
257
+ };
258
+ readonly modules: {
259
+ readonly title: "Modules";
260
+ readonly basicGroup: "Basic";
261
+ readonly docsGroup: "Docs";
262
+ readonly customGroup: "Custom";
263
+ readonly addFailed: "Unable to add this module";
264
+ readonly maxInstances: "Only {count} {type} module(s) are allowed";
265
+ readonly dragTip: "Drag modules below onto the canvas to place them";
266
+ readonly space: "Space";
267
+ readonly titleModule: "Title";
268
+ readonly text: "Text";
269
+ readonly list: "List";
270
+ readonly image: "Image";
271
+ readonly area: "Image hotspots";
272
+ readonly actions: "Actions";
273
+ readonly hero: "Hero";
274
+ readonly features: "Features";
275
+ readonly steps: "Steps";
276
+ readonly faq: "FAQ";
277
+ readonly cta: "Call to action";
278
+ readonly ads: "Ads";
279
+ readonly page: "Page";
280
+ readonly selection: "Selection";
281
+ readonly markdown: "Markdown";
282
+ readonly sfc: "Remote SFC";
283
+ };
284
+ readonly inspector: {
285
+ readonly title: "Properties";
286
+ readonly page: "Page";
287
+ readonly spacing: "Spacing";
288
+ readonly placement: "Placement";
289
+ readonly module: "Module";
290
+ readonly margin: "Margin";
291
+ readonly padding: "Padding";
292
+ readonly position: "Position";
293
+ readonly dimensions: "Dimensions";
294
+ readonly marginTop: "Margin top";
295
+ readonly marginBottom: "Margin bottom";
296
+ readonly paddingTop: "Padding top";
297
+ readonly paddingBottom: "Padding bottom";
298
+ readonly paddingLeft: "Padding left";
299
+ readonly paddingRight: "Padding right";
300
+ readonly fullWidth: "Fill screen";
301
+ readonly layout: "Layout";
302
+ readonly appearance: "Appearance";
303
+ readonly borderRadius: "Corner radius";
304
+ readonly independentCorners: "Independent corners";
305
+ readonly borderRadiusTopLeft: "Top left radius";
306
+ readonly borderRadiusTopRight: "Top right radius";
307
+ readonly borderRadiusBottomRight: "Bottom right radius";
308
+ readonly borderRadiusBottomLeft: "Bottom left radius";
309
+ readonly delete: "Delete";
310
+ readonly loading: "Loading…";
311
+ readonly selection: "Group";
312
+ };
313
+ readonly editor: {
314
+ readonly addItem: "Add item";
315
+ readonly removeItem: "Remove item";
316
+ readonly reorder: "Reorder";
317
+ readonly mode: "Mode";
318
+ readonly sortable: "Sortable";
319
+ readonly draggable: "Draggable";
320
+ readonly maxWidth: "Maximum width";
321
+ readonly referenceWidth: "Reference width";
322
+ readonly minHeight: "Minimum height";
323
+ readonly canvasWidth: "Canvas width";
324
+ readonly canvasHeight: "Canvas height";
325
+ readonly background: "Background";
326
+ readonly actions: "Actions";
327
+ readonly label: "Label";
328
+ readonly target: "Target";
329
+ readonly variant: "Variant";
330
+ readonly columns: "Columns";
331
+ readonly gap: "Gap";
332
+ readonly cards: "Cards";
333
+ readonly title: "Title";
334
+ readonly description: "Description";
335
+ readonly eyebrow: "Tag";
336
+ readonly source: "Source";
337
+ readonly sourceHint: "Path, https or base64";
338
+ readonly markdownSourceHint: "Relative path or https URL";
339
+ readonly markdownContent: "Markdown content";
340
+ readonly markdownContentHint: "Inline Markdown, used instead of the source";
341
+ readonly paintAreas: "Draw hotspots";
342
+ readonly areas: "Hotspots";
343
+ readonly areaItem: "Hotspot {index}";
344
+ readonly areaMax: "Up to {count}";
345
+ readonly areaNeedImage: "Upload an image first";
346
+ readonly addArea: "Add hotspot";
347
+ readonly darkSource: "Dark source";
348
+ readonly alt: "Alternative text";
349
+ readonly fit: "Fit";
350
+ readonly borderRadius: "Border radius";
351
+ readonly eager: "Eager loading";
352
+ readonly ordered: "Ordered";
353
+ readonly items: "Items";
354
+ readonly height: "Height";
355
+ readonly text: "Text";
356
+ readonly fontSize: "Font size";
357
+ readonly fontWeight: "Font weight";
358
+ readonly lineHeight: "Line height";
359
+ readonly letterSpacing: "Letter spacing";
360
+ readonly color: "Color";
361
+ readonly align: "Align";
362
+ readonly left: "Left";
363
+ readonly center: "Center";
364
+ readonly heading: "Heading";
365
+ readonly accent: "Accent";
366
+ readonly accentSecondary: "Secondary accent";
367
+ readonly showVisual: "Show visual";
368
+ readonly highlights: "Highlights";
369
+ readonly value: "Value";
370
+ readonly badge: "Badge";
371
+ readonly icon: "Icon";
372
+ readonly iconHint: "Type, https or base64";
373
+ readonly pickImage: "Upload image";
374
+ readonly steps: "Steps";
375
+ readonly question: "Question";
376
+ readonly answer: "Answer";
377
+ readonly solid: "Solid";
378
+ readonly outline: "Outline";
379
+ readonly ghost: "Ghost";
380
+ readonly link: "Link";
381
+ readonly size: "Size";
382
+ readonly small: "Small";
383
+ readonly medium: "Medium";
384
+ readonly large: "Large";
385
+ readonly textColor: "Text color";
386
+ readonly layout: "Layout";
387
+ readonly tile: "Tile";
388
+ readonly scroll: "Scroll";
389
+ readonly banner: "Banner";
390
+ readonly card: "Card";
391
+ readonly poster: "Poster";
392
+ readonly notice: "Notice";
393
+ readonly speed: "Scroll interval";
394
+ readonly ads: "Ads";
395
+ };
396
+ readonly canvas: {
397
+ readonly scale: "Scale";
398
+ readonly layers: "Layers";
399
+ readonly forward: "Move forward";
400
+ readonly backward: "Move backward";
401
+ readonly fit: "Fit";
402
+ readonly grid: "Grid";
403
+ readonly ruler: "Ruler";
404
+ readonly guides: "Guides";
405
+ readonly showGuidesHint: "Click to show guides";
406
+ readonly hideGuidesHint: "Click to hide guides";
407
+ readonly deleteGuide: "Double-click to delete the guide";
408
+ readonly map: "Map";
409
+ readonly dropModules: "Drop modules here";
410
+ readonly releaseToInsert: "Release to insert the module here";
411
+ readonly resize: "Resize {handle}";
412
+ readonly rotate: "Rotate";
413
+ readonly bringToFront: "Bring to front";
414
+ readonly sendToBack: "Send to back";
415
+ readonly ungroup: "Ungroup";
416
+ readonly lock: "Lock";
417
+ readonly unlock: "Unlock";
418
+ readonly copy: "Copy";
419
+ readonly paste: "Paste";
420
+ readonly alreadyTop: "Already at the top";
421
+ readonly alreadyBottom: "Already at the bottom";
422
+ };
423
+ readonly json: {
424
+ readonly title: "Document JSON";
425
+ readonly tree: "Tree";
426
+ readonly source: "Source";
427
+ readonly apply: "Apply";
428
+ readonly cancel: "Cancel";
429
+ readonly duplicateKey: "Duplicate key: {key}";
430
+ readonly keyLocked: "This protocol key cannot be renamed";
431
+ readonly valueLocked: "This value cannot be changed";
432
+ readonly kindLocked: "This type cannot be changed";
433
+ readonly requiredField: "This required field cannot be removed";
434
+ readonly rootLocked: "Document root keys cannot be added or removed";
435
+ };
436
+ };
437
+ };
438
+
439
+ export declare interface Language extends DocsLocaleMessages {
440
+ name: string;
441
+ }
442
+
443
+ export declare interface LocaleContext {
444
+ locale: Ref<Language>;
445
+ lang: ComputedRef<string>;
446
+ t: Translator;
447
+ }
448
+
449
+ export declare const localeContextKey: InjectionKey<Ref<Language | undefined>>;
450
+
451
+ export declare type LocaleKey = `${LocaleNamespace}.${string}`;
452
+
453
+ export declare type LocaleNamespace = 'client' | 'markdown' | 'playground' | 'renderer';
454
+
455
+ export declare interface MarkdownLocaleMessages {
456
+ indicator: Record<string, string>;
457
+ }
458
+
459
+ export declare interface PlaygroundLocaleMessages {
460
+ common: Record<string, string>;
461
+ runtime: Record<string, string>;
462
+ files: Record<string, string>;
463
+ editor: Record<string, string>;
464
+ validation: Record<string, string>;
465
+ }
466
+
467
+ export declare const provideLocale: (locale: MaybeRef<Language | undefined>, app?: Pick<App, "provide">) => Ref<Language | undefined, Language | undefined>;
468
+
469
+ export declare interface RendererLocaleMessages {
470
+ common: Record<string, string>;
471
+ modules: Record<string, string>;
472
+ inspector: Record<string, string>;
473
+ editor: Record<string, string>;
474
+ canvas: Record<string, string>;
475
+ json: Record<string, string>;
476
+ }
477
+
478
+ export declare const resolveLocale: (lang?: string, locales?: Record<string, DocsLocaleEntry>) => Language;
479
+
480
+ export declare type Translator = (path: LocaleKey, options?: TranslatorOption) => string;
481
+
482
+ export declare type TranslatorOption = Record<string, string | number>;
483
+
484
+ export declare const useLocale: (override?: MaybeRef<Language | undefined>) => LocaleContext;
485
+
486
+ export declare const zhCN: {
487
+ readonly name: "zh-CN";
488
+ readonly client: {
489
+ readonly common: {
490
+ readonly close: "关闭";
491
+ readonly invalidSidebar: "侧边栏数据无效";
492
+ readonly loading: "加载中…";
493
+ readonly poweredBy: "由 @deot/docs 提供支持";
494
+ readonly resourceRequestFailed: "资源请求失败";
495
+ readonly yes: "是";
496
+ };
497
+ readonly header: {
498
+ readonly brand: "@deot/docs";
499
+ readonly database: "打开资源数据库";
500
+ readonly playgroundResource: "管理 Playground 资源";
501
+ readonly editor: "装修当前页面";
502
+ readonly language: "切换语言";
503
+ readonly switchToDark: "切换至深色主题";
504
+ readonly switchToLight: "切换至浅色主题";
505
+ };
506
+ readonly home: {};
507
+ readonly demos: {
508
+ readonly title: "Renderer 演示";
509
+ readonly subtitle: "对照内置模块组合。点击卡片进入 Combo。";
510
+ readonly open: "打开演示";
511
+ readonly openEditor: "打开编辑器";
512
+ readonly editor: "空白编辑器";
513
+ readonly editorHint: "进入 Renderer 编辑器,从空画布开始。";
514
+ readonly back: "返回目录";
515
+ };
516
+ readonly search: {
517
+ readonly trigger: "搜索文档";
518
+ readonly untitled: "未命名文档";
519
+ readonly dialogLabel: "搜索文档";
520
+ readonly placeholder: "搜索文档";
521
+ readonly clearQuery: "清空";
522
+ readonly close: "关闭搜索";
523
+ readonly searching: "搜索中…";
524
+ readonly documentation: "文档";
525
+ readonly noResults: "未找到结果。";
526
+ readonly noCachedDocuments: "暂无已缓存文档。";
527
+ readonly recent: "最近访问";
528
+ readonly noRecent: "暂无搜索历史。";
529
+ readonly pin: "收藏历史";
530
+ readonly unpin: "取消收藏";
531
+ readonly remove: "删除历史";
532
+ readonly navigateHint: "切换";
533
+ readonly selectHint: "选择";
534
+ readonly closeHint: "关闭";
535
+ readonly historyLoadFailed: "无法加载搜索历史。";
536
+ readonly queryFailed: "无法搜索已缓存文档。";
537
+ readonly historyUpdateFailed: "无法更新搜索历史。";
538
+ readonly historyRemoveFailed: "无法删除搜索历史。";
539
+ };
540
+ readonly database: {
541
+ readonly title: "IndexedDB 资源";
542
+ readonly back: "返回";
543
+ readonly home: "回到首页";
544
+ readonly records: "{count} 条记录";
545
+ readonly cache: "缓存 {size}";
546
+ readonly columns: "列";
547
+ readonly refresh: "刷新";
548
+ readonly updateAll: "全部更新";
549
+ readonly prefetch: "预加载";
550
+ readonly clear: "清空";
551
+ readonly prune: "清理垃圾";
552
+ readonly url: "URL";
553
+ readonly source: "来源";
554
+ readonly contentStatus: "内容状态";
555
+ readonly requestStatus: "请求状态";
556
+ readonly namespace: "命名空间";
557
+ readonly language: "语言";
558
+ readonly type: "类型";
559
+ readonly hash: "Hash";
560
+ readonly content: "内容";
561
+ readonly updated: "更新时间";
562
+ readonly checked: "检查时间";
563
+ readonly accessed: "访问时间";
564
+ readonly previous: "历史版本";
565
+ readonly actions: "操作";
566
+ readonly update: "更新";
567
+ readonly delete: "删除";
568
+ readonly loadFailed: "加载失败";
569
+ readonly operationFailed: "操作失败";
570
+ readonly refreshed: "已刷新";
571
+ readonly reloadFailed: "更新失败";
572
+ readonly updatedSource: "{source} 已更新";
573
+ readonly deletedSource: "{source} 已删除";
574
+ readonly updatedAll: "已全部更新";
575
+ readonly clearedAll: "已全部清空";
576
+ readonly prefetchSummary: "预加载:{fulfilled} 个成功,{rejected} 个失败";
577
+ readonly prefetched: "已预加载 {total} 个资源";
578
+ readonly prefetchFailed: "预加载失败";
579
+ readonly pruned: "已清理 {count} 个资源";
580
+ readonly pruneFailed: "垃圾清理失败";
581
+ };
582
+ readonly playgroundResource: {
583
+ readonly title: "Playground 资源";
584
+ readonly records: "{count} 项";
585
+ readonly cache: "缓存 {size}";
586
+ readonly hint: string;
587
+ readonly back: "返回";
588
+ readonly home: "回到首页";
589
+ readonly columns: "列";
590
+ readonly refresh: "刷新";
591
+ readonly prefetch: "探测";
592
+ readonly clear: "清空";
593
+ readonly kind: "类型";
594
+ readonly kindImport: "Import";
595
+ readonly kindStyle: "CSS";
596
+ readonly alias: "名称";
597
+ readonly defaultUrl: "默认地址";
598
+ readonly currentUrl: "当前地址";
599
+ readonly status: "覆盖状态";
600
+ readonly overridden: "已覆盖";
601
+ readonly default: "默认";
602
+ readonly requestStatus: "探测状态";
603
+ readonly updated: "更新时间";
604
+ readonly checked: "探测时间";
605
+ readonly actions: "操作";
606
+ readonly edit: "编辑";
607
+ readonly save: "保存";
608
+ readonly rollback: "回滚";
609
+ readonly rollbackSkipped: "当前已是默认地址,无需回滚";
610
+ readonly retry: "重试";
611
+ readonly urlPlaceholder: "https://cdn.example.com/pkg/index.js";
612
+ readonly editTitle: "编辑地址";
613
+ readonly loadFailed: "加载失败";
614
+ readonly operationFailed: "操作失败";
615
+ readonly saveFailed: "保存失败";
616
+ readonly rollbackFailed: "回滚失败";
617
+ readonly retryFailed: "重试失败";
618
+ readonly prefetchFailed: "探测失败";
619
+ readonly probeFailed: "探测失败";
620
+ readonly refreshed: "已刷新";
621
+ readonly cleared: "已清空覆盖";
622
+ readonly saved: "{alias} 已保存";
623
+ readonly rollbackDone: "{alias} 已回滚";
624
+ readonly retried: "{alias} 已重试";
625
+ readonly prefetched: "已探测 {total} 项";
626
+ readonly prefetchSummary: "探测:{fulfilled} 个成功,{rejected} 个失败";
627
+ };
628
+ readonly paging: {
629
+ readonly search: "搜索";
630
+ readonly reset: "重置";
631
+ readonly enter: "请输入";
632
+ readonly select: "请选择";
633
+ readonly pickDate: "选择日期";
634
+ readonly min: "最小值";
635
+ readonly max: "最大值";
636
+ };
637
+ };
638
+ readonly markdown: {
639
+ readonly indicator: {
640
+ readonly label: "文档指示器";
641
+ readonly untitled: "未命名章节";
642
+ readonly document: "文档";
643
+ };
644
+ };
645
+ readonly playground: {
646
+ readonly common: {
647
+ readonly copy: "复制";
648
+ readonly copyCode: "复制代码";
649
+ readonly copyCurrentFile: "复制当前文件";
650
+ readonly close: "关闭";
651
+ };
652
+ readonly runtime: {
653
+ readonly preview: "运行时预览";
654
+ readonly files: "文件预览";
655
+ readonly auto: "自适应";
656
+ readonly viewport: "视口:{value}";
657
+ readonly viewportMenu: "运行时视口";
658
+ readonly editFiles: "编辑文件";
659
+ readonly importMapTip: "请检查导入路径,或为该依赖补充 Import Map。";
660
+ };
661
+ readonly files: {
662
+ readonly entry: "入口";
663
+ };
664
+ readonly editor: {
665
+ readonly entry: "入口文件";
666
+ readonly entryCannotDelete: "入口文件不能删除";
667
+ readonly confirmDelete: "确认删除 {filename}?";
668
+ readonly deleteFile: "删除文件";
669
+ readonly createFile: "新建文件";
670
+ readonly setEntry: "设为入口";
671
+ };
672
+ readonly validation: {
673
+ readonly entryMissing: "入口文件 {filename} 不存在";
674
+ readonly filenameRequired: "请输入文件名";
675
+ readonly filenameRelative: "文件名必须是相对 POSIX 路径";
676
+ readonly filenameSegments: "文件路径不能包含空段、. 或 ..";
677
+ readonly fileTypeUnsupported: "不支持该文件类型";
678
+ readonly filenameExists: "文件名已存在";
679
+ };
680
+ };
681
+ readonly renderer: {
682
+ readonly common: {
683
+ readonly loading: "加载中…";
684
+ readonly unknownModule: "未知模块:{type}";
685
+ readonly unsupportedVersion: "不支持的模块版本:{version}";
686
+ readonly migrationUnavailable: "模块缺少迁移能力";
687
+ readonly back: "返回";
688
+ readonly untitledPage: "未命名页面";
689
+ readonly undo: "撤销";
690
+ readonly redo: "重做";
691
+ readonly import: "导入";
692
+ readonly export: "导出";
693
+ readonly preview: "预览";
694
+ readonly save: "保存";
695
+ readonly saved: "已保存";
696
+ readonly page: "页面";
697
+ readonly blocks: "{count} 个模块";
698
+ readonly close: "关闭";
699
+ readonly validationFailed: "页面校验失败";
700
+ readonly draftRestoreFailed: "无法恢复本地草稿";
701
+ readonly clearDraft: "清除草稿";
702
+ readonly draftCleared: "已清除本地草稿";
703
+ readonly draftClearFailed: "无法清除本地草稿";
704
+ };
705
+ readonly modules: {
706
+ readonly title: "模块";
707
+ readonly basicGroup: "基础模块";
708
+ readonly docsGroup: "文档模块";
709
+ readonly customGroup: "业务模块";
710
+ readonly addFailed: "无法添加该模块";
711
+ readonly maxInstances: "{type} 模块最多允许 {count} 个";
712
+ readonly dragTip: "请拖动下方组件到指定位置设置";
713
+ readonly space: "间距";
714
+ readonly titleModule: "标题";
715
+ readonly text: "文本";
716
+ readonly list: "列表";
717
+ readonly image: "图片";
718
+ readonly area: "图片热区";
719
+ readonly actions: "操作区";
720
+ readonly hero: "首屏";
721
+ readonly features: "特性";
722
+ readonly steps: "步骤";
723
+ readonly faq: "问答";
724
+ readonly cta: "行动条";
725
+ readonly ads: "广告位";
726
+ readonly page: "页面";
727
+ readonly selection: "组合";
728
+ readonly markdown: "Markdown";
729
+ readonly sfc: "远程 SFC";
730
+ };
731
+ readonly inspector: {
732
+ readonly title: "属性";
733
+ readonly page: "页面";
734
+ readonly spacing: "间距";
735
+ readonly placement: "位置";
736
+ readonly module: "模块";
737
+ readonly margin: "外边距";
738
+ readonly padding: "内边距";
739
+ readonly position: "坐标";
740
+ readonly dimensions: "尺寸";
741
+ readonly marginTop: "上外边距";
742
+ readonly marginBottom: "下外边距";
743
+ readonly paddingTop: "上内边距";
744
+ readonly paddingBottom: "下内边距";
745
+ readonly paddingLeft: "左内边距";
746
+ readonly paddingRight: "右内边距";
747
+ readonly fullWidth: "铺满屏幕";
748
+ readonly layout: "布局";
749
+ readonly appearance: "外观";
750
+ readonly borderRadius: "圆角";
751
+ readonly independentCorners: "独立圆角";
752
+ readonly borderRadiusTopLeft: "左上圆角";
753
+ readonly borderRadiusTopRight: "右上圆角";
754
+ readonly borderRadiusBottomRight: "右下圆角";
755
+ readonly borderRadiusBottomLeft: "左下圆角";
756
+ readonly delete: "删除";
757
+ readonly loading: "加载中…";
758
+ readonly selection: "组合选中";
759
+ };
760
+ readonly editor: {
761
+ readonly addItem: "添加一项";
762
+ readonly removeItem: "删除该项";
763
+ readonly reorder: "拖动排序";
764
+ readonly mode: "布局模式";
765
+ readonly sortable: "排序布局";
766
+ readonly draggable: "自由布局";
767
+ readonly maxWidth: "最大宽度";
768
+ readonly referenceWidth: "参考宽度";
769
+ readonly minHeight: "最小高度";
770
+ readonly canvasWidth: "画布宽度";
771
+ readonly canvasHeight: "画布高度";
772
+ readonly background: "背景";
773
+ readonly actions: "操作项";
774
+ readonly label: "文案";
775
+ readonly target: "目标";
776
+ readonly variant: "样式";
777
+ readonly columns: "列数";
778
+ readonly gap: "间距";
779
+ readonly cards: "卡片";
780
+ readonly title: "标题";
781
+ readonly description: "描述";
782
+ readonly eyebrow: "标签";
783
+ readonly source: "资源地址";
784
+ readonly sourceHint: "路径、https 或 base64";
785
+ readonly markdownSourceHint: "相对路径或 https 地址";
786
+ readonly markdownContent: "Markdown 内容";
787
+ readonly markdownContentHint: "直接填写 Markdown,优先于资源地址";
788
+ readonly paintAreas: "绘制热区";
789
+ readonly areas: "热区";
790
+ readonly areaItem: "热区{index}";
791
+ readonly areaMax: "最多 {count} 个";
792
+ readonly areaNeedImage: "请先上传图片";
793
+ readonly addArea: "添加热区";
794
+ readonly darkSource: "暗色图片";
795
+ readonly alt: "替代文本";
796
+ readonly fit: "填充方式";
797
+ readonly borderRadius: "圆角";
798
+ readonly eager: "立即加载";
799
+ readonly ordered: "有序列表";
800
+ readonly items: "列表项";
801
+ readonly height: "高度";
802
+ readonly text: "文本";
803
+ readonly fontSize: "字号";
804
+ readonly fontWeight: "字重";
805
+ readonly lineHeight: "行高";
806
+ readonly letterSpacing: "字间距";
807
+ readonly color: "颜色";
808
+ readonly align: "对齐";
809
+ readonly left: "居左";
810
+ readonly center: "居中";
811
+ readonly heading: "标题级别";
812
+ readonly accent: "强调色";
813
+ readonly accentSecondary: "辅助色";
814
+ readonly showVisual: "装饰图形";
815
+ readonly highlights: "数据要点";
816
+ readonly value: "数值";
817
+ readonly badge: "标签";
818
+ readonly icon: "图标";
819
+ readonly iconHint: "类型、https 或 base64";
820
+ readonly pickImage: "上传图片";
821
+ readonly steps: "步骤";
822
+ readonly question: "问题";
823
+ readonly answer: "回答";
824
+ readonly solid: "实心";
825
+ readonly outline: "描边";
826
+ readonly ghost: "浅底";
827
+ readonly link: "链接";
828
+ readonly size: "尺寸";
829
+ readonly small: "小";
830
+ readonly medium: "中";
831
+ readonly large: "大";
832
+ readonly textColor: "文字色";
833
+ readonly layout: "排列";
834
+ readonly tile: "平铺";
835
+ readonly scroll: "滚动";
836
+ readonly banner: "横幅";
837
+ readonly card: "卡片";
838
+ readonly poster: "海报";
839
+ readonly notice: "通知条";
840
+ readonly speed: "滚动间隔";
841
+ readonly ads: "广告";
842
+ };
843
+ readonly canvas: {
844
+ readonly scale: "缩放";
845
+ readonly layers: "图层";
846
+ readonly forward: "上移一层";
847
+ readonly backward: "下移一层";
848
+ readonly fit: "适应";
849
+ readonly grid: "网格";
850
+ readonly ruler: "标尺";
851
+ readonly guides: "辅助线";
852
+ readonly showGuidesHint: "单击显示辅助线";
853
+ readonly hideGuidesHint: "单击隐藏辅助线";
854
+ readonly deleteGuide: "双击删除参考线";
855
+ readonly map: "缩略图";
856
+ readonly dropModules: "拖入模块到这里";
857
+ readonly releaseToInsert: "释放鼠标将模块添加到此处";
858
+ readonly resize: "缩放 {handle}";
859
+ readonly rotate: "旋转";
860
+ readonly bringToFront: "置顶";
861
+ readonly sendToBack: "置底";
862
+ readonly ungroup: "取消组合";
863
+ readonly lock: "锁定";
864
+ readonly unlock: "取消锁定";
865
+ readonly copy: "复制";
866
+ readonly paste: "粘贴";
867
+ readonly alreadyTop: "已经置顶,无需操作";
868
+ readonly alreadyBottom: "已经置底,无需操作";
869
+ };
870
+ readonly json: {
871
+ readonly title: "页面 JSON";
872
+ readonly tree: "树形";
873
+ readonly source: "源码";
874
+ readonly apply: "应用";
875
+ readonly cancel: "取消";
876
+ readonly duplicateKey: "键名重复:{key}";
877
+ readonly keyLocked: "协议键名不可修改";
878
+ readonly valueLocked: "该值不可修改";
879
+ readonly kindLocked: "该类型不可修改";
880
+ readonly requiredField: "必填字段不可删除";
881
+ readonly rootLocked: "文档根键不可增删";
882
+ };
883
+ };
884
+ };
885
+
886
+ export { }