@deot/docs-locale 1.1.0 → 1.1.2

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.
package/dist/index.cjs CHANGED
@@ -10,8 +10,29 @@ var enUS = {
10
10
  loading: "Loading…",
11
11
  poweredBy: "Powered by @deot/docs",
12
12
  resourceRequestFailed: "Resource request failed",
13
+ previewUrlRequired: "The url parameter must specify a single resource",
14
+ previewStyleFailed: "Failed to load CSS: {url}",
15
+ previewConfigFailed: "Invalid preview configuration: {message}",
16
+ previewUrlUnsupported: "Only .vue, page.json and *.page.json resources at HTTP(S) or relative URLs are supported",
13
17
  yes: "Yes"
14
18
  },
19
+ previewConfigGenerate: {
20
+ title: "Preview link generator",
21
+ description: "Configure a remote Vue or page.json resource and generate a shareable preview link.",
22
+ importLabel: "Existing preview link",
23
+ parseHint: "Paste a /__docs/preview?raw=... or ?url=... link",
24
+ parse: "Parse link",
25
+ urlHint: "Remote .vue, page.json or *.page.json URL",
26
+ stylesHint: "JSON array of CSS URLs in order; HTTP(S) URLs and site root paths are supported.",
27
+ modulesHint: "JSON object mapping module names to ESM URLs; overrides imports in this preview.",
28
+ playgroundHint: "JSON object supporting local, styleless, views, viewport, previewInset, expandable, previewScroller and title.",
29
+ language: "lang · Preview language",
30
+ defaultLanguage: "Site default language",
31
+ link: "Generated link",
32
+ copy: "Copy link",
33
+ preview: "Open preview",
34
+ configuration: "Show decoded configuration"
35
+ },
15
36
  footer: {
16
37
  resources: "Resources",
17
38
  vueComponents: "@deot/vc | Vue component library",
@@ -185,11 +206,14 @@ var enUS = {
185
206
  max: "Max"
186
207
  }
187
208
  },
188
- markdown: { indicator: {
189
- label: "Document indicator",
190
- untitled: "Untitled section",
191
- document: "Document"
192
- } },
209
+ markdown: {
210
+ indicator: {
211
+ label: "Document indicator",
212
+ untitled: "Untitled section",
213
+ document: "Document"
214
+ },
215
+ tabs: { label: "Content tabs" }
216
+ },
193
217
  playground: {
194
218
  common: {
195
219
  copy: "Copy",
@@ -447,8 +471,29 @@ var zhCN = {
447
471
  loading: "加载中…",
448
472
  poweredBy: "由 @deot/docs 提供支持",
449
473
  resourceRequestFailed: "资源请求失败",
474
+ previewUrlRequired: "url 参数必须指定单个资源地址",
475
+ previewStyleFailed: "CSS 加载失败:{url}",
476
+ previewConfigFailed: "预览配置无效:{message}",
477
+ previewUrlUnsupported: "仅支持 HTTP(S) 或相对地址的 .vue、page.json 和 *.page.json 资源",
450
478
  yes: "是"
451
479
  },
480
+ previewConfigGenerate: {
481
+ title: "预览链接生成器",
482
+ description: "配置远程 Vue 或 page.json,实时生成可分享的预览链接。",
483
+ importLabel: "已有预览链接",
484
+ parseHint: "粘贴 /__docs/preview?raw=... 或 ?url=... 链接",
485
+ parse: "解析链接",
486
+ urlHint: "远程 .vue、page.json 或 *.page.json 地址",
487
+ stylesHint: "JSON 数组;按顺序填写 CSS URL,支持 HTTP(S) 和站点根路径。",
488
+ modulesHint: "JSON 对象;模块名 → ESM URL,覆盖当前预览的 import 映射。",
489
+ playgroundHint: "JSON 对象;支持 local、styleless、views、viewport、previewInset、expandable、previewScroller、title。",
490
+ language: "lang · 预览语言",
491
+ defaultLanguage: "站点默认语言",
492
+ link: "实时生成的链接",
493
+ copy: "复制链接",
494
+ preview: "打开预览",
495
+ configuration: "查看编码前的配置"
496
+ },
452
497
  footer: {
453
498
  resources: "资源",
454
499
  vueComponents: "@deot/vc | Vue组件库",
@@ -622,11 +667,14 @@ var zhCN = {
622
667
  max: "最大值"
623
668
  }
624
669
  },
625
- markdown: { indicator: {
626
- label: "文档指示器",
627
- untitled: "未命名章节",
628
- document: "文档"
629
- } },
670
+ markdown: {
671
+ indicator: {
672
+ label: "文档指示器",
673
+ untitled: "未命名章节",
674
+ document: "文档"
675
+ },
676
+ tabs: { label: "内容分栏" }
677
+ },
630
678
  playground: {
631
679
  common: {
632
680
  copy: "复制",
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ export declare interface ClientLocaleMessages {
18
18
  search: Record<string, string>;
19
19
  database: Record<string, string>;
20
20
  playgroundResource: Record<string, string>;
21
+ previewConfigGenerate: Record<string, string>;
21
22
  paging: Record<string, string>;
22
23
  }
23
24
 
@@ -47,8 +48,29 @@ export declare const enUS: {
47
48
  readonly loading: "Loading…";
48
49
  readonly poweredBy: "Powered by @deot/docs";
49
50
  readonly resourceRequestFailed: "Resource request failed";
51
+ readonly previewUrlRequired: "The url parameter must specify a single resource";
52
+ readonly previewStyleFailed: "Failed to load CSS: {url}";
53
+ readonly previewConfigFailed: "Invalid preview configuration: {message}";
54
+ readonly previewUrlUnsupported: "Only .vue, page.json and *.page.json resources at HTTP(S) or relative URLs are supported";
50
55
  readonly yes: "Yes";
51
56
  };
57
+ readonly previewConfigGenerate: {
58
+ readonly title: "Preview link generator";
59
+ readonly description: "Configure a remote Vue or page.json resource and generate a shareable preview link.";
60
+ readonly importLabel: "Existing preview link";
61
+ readonly parseHint: "Paste a /__docs/preview?raw=... or ?url=... link";
62
+ readonly parse: "Parse link";
63
+ readonly urlHint: "Remote .vue, page.json or *.page.json URL";
64
+ readonly stylesHint: "JSON array of CSS URLs in order; HTTP(S) URLs and site root paths are supported.";
65
+ readonly modulesHint: "JSON object mapping module names to ESM URLs; overrides imports in this preview.";
66
+ readonly playgroundHint: "JSON object supporting local, styleless, views, viewport, previewInset, expandable, previewScroller and title.";
67
+ readonly language: "lang · Preview language";
68
+ readonly defaultLanguage: "Site default language";
69
+ readonly link: "Generated link";
70
+ readonly copy: "Copy link";
71
+ readonly preview: "Open preview";
72
+ readonly configuration: "Show decoded configuration";
73
+ };
52
74
  readonly footer: {
53
75
  readonly resources: "Resources";
54
76
  readonly vueComponents: "@deot/vc | Vue component library";
@@ -228,6 +250,9 @@ export declare const enUS: {
228
250
  readonly untitled: "Untitled section";
229
251
  readonly document: "Document";
230
252
  };
253
+ readonly tabs: {
254
+ readonly label: "Content tabs";
255
+ };
231
256
  };
232
257
  readonly playground: {
233
258
  readonly common: {
@@ -496,6 +521,7 @@ export declare type LocaleNamespace = 'client' | 'markdown' | 'playground' | 're
496
521
 
497
522
  export declare interface MarkdownLocaleMessages {
498
523
  indicator: Record<string, string>;
524
+ tabs: Record<string, string>;
499
525
  }
500
526
 
501
527
  export declare interface PlaygroundLocaleMessages {
@@ -534,8 +560,29 @@ export declare const zhCN: {
534
560
  readonly loading: "加载中…";
535
561
  readonly poweredBy: "由 @deot/docs 提供支持";
536
562
  readonly resourceRequestFailed: "资源请求失败";
563
+ readonly previewUrlRequired: "url 参数必须指定单个资源地址";
564
+ readonly previewStyleFailed: "CSS 加载失败:{url}";
565
+ readonly previewConfigFailed: "预览配置无效:{message}";
566
+ readonly previewUrlUnsupported: "仅支持 HTTP(S) 或相对地址的 .vue、page.json 和 *.page.json 资源";
537
567
  readonly yes: "是";
538
568
  };
569
+ readonly previewConfigGenerate: {
570
+ readonly title: "预览链接生成器";
571
+ readonly description: "配置远程 Vue 或 page.json,实时生成可分享的预览链接。";
572
+ readonly importLabel: "已有预览链接";
573
+ readonly parseHint: "粘贴 /__docs/preview?raw=... 或 ?url=... 链接";
574
+ readonly parse: "解析链接";
575
+ readonly urlHint: "远程 .vue、page.json 或 *.page.json 地址";
576
+ readonly stylesHint: "JSON 数组;按顺序填写 CSS URL,支持 HTTP(S) 和站点根路径。";
577
+ readonly modulesHint: "JSON 对象;模块名 → ESM URL,覆盖当前预览的 import 映射。";
578
+ readonly playgroundHint: "JSON 对象;支持 local、styleless、views、viewport、previewInset、expandable、previewScroller、title。";
579
+ readonly language: "lang · 预览语言";
580
+ readonly defaultLanguage: "站点默认语言";
581
+ readonly link: "实时生成的链接";
582
+ readonly copy: "复制链接";
583
+ readonly preview: "打开预览";
584
+ readonly configuration: "查看编码前的配置";
585
+ };
539
586
  readonly footer: {
540
587
  readonly resources: "资源";
541
588
  readonly vueComponents: "@deot/vc | Vue组件库";
@@ -715,6 +762,9 @@ export declare const zhCN: {
715
762
  readonly untitled: "未命名章节";
716
763
  readonly document: "文档";
717
764
  };
765
+ readonly tabs: {
766
+ readonly label: "内容分栏";
767
+ };
718
768
  };
719
769
  readonly playground: {
720
770
  readonly common: {
package/dist/index.js CHANGED
@@ -9,8 +9,29 @@ var enUS = {
9
9
  loading: "Loading…",
10
10
  poweredBy: "Powered by @deot/docs",
11
11
  resourceRequestFailed: "Resource request failed",
12
+ previewUrlRequired: "The url parameter must specify a single resource",
13
+ previewStyleFailed: "Failed to load CSS: {url}",
14
+ previewConfigFailed: "Invalid preview configuration: {message}",
15
+ previewUrlUnsupported: "Only .vue, page.json and *.page.json resources at HTTP(S) or relative URLs are supported",
12
16
  yes: "Yes"
13
17
  },
18
+ previewConfigGenerate: {
19
+ title: "Preview link generator",
20
+ description: "Configure a remote Vue or page.json resource and generate a shareable preview link.",
21
+ importLabel: "Existing preview link",
22
+ parseHint: "Paste a /__docs/preview?raw=... or ?url=... link",
23
+ parse: "Parse link",
24
+ urlHint: "Remote .vue, page.json or *.page.json URL",
25
+ stylesHint: "JSON array of CSS URLs in order; HTTP(S) URLs and site root paths are supported.",
26
+ modulesHint: "JSON object mapping module names to ESM URLs; overrides imports in this preview.",
27
+ playgroundHint: "JSON object supporting local, styleless, views, viewport, previewInset, expandable, previewScroller and title.",
28
+ language: "lang · Preview language",
29
+ defaultLanguage: "Site default language",
30
+ link: "Generated link",
31
+ copy: "Copy link",
32
+ preview: "Open preview",
33
+ configuration: "Show decoded configuration"
34
+ },
14
35
  footer: {
15
36
  resources: "Resources",
16
37
  vueComponents: "@deot/vc | Vue component library",
@@ -184,11 +205,14 @@ var enUS = {
184
205
  max: "Max"
185
206
  }
186
207
  },
187
- markdown: { indicator: {
188
- label: "Document indicator",
189
- untitled: "Untitled section",
190
- document: "Document"
191
- } },
208
+ markdown: {
209
+ indicator: {
210
+ label: "Document indicator",
211
+ untitled: "Untitled section",
212
+ document: "Document"
213
+ },
214
+ tabs: { label: "Content tabs" }
215
+ },
192
216
  playground: {
193
217
  common: {
194
218
  copy: "Copy",
@@ -446,8 +470,29 @@ var zhCN = {
446
470
  loading: "加载中…",
447
471
  poweredBy: "由 @deot/docs 提供支持",
448
472
  resourceRequestFailed: "资源请求失败",
473
+ previewUrlRequired: "url 参数必须指定单个资源地址",
474
+ previewStyleFailed: "CSS 加载失败:{url}",
475
+ previewConfigFailed: "预览配置无效:{message}",
476
+ previewUrlUnsupported: "仅支持 HTTP(S) 或相对地址的 .vue、page.json 和 *.page.json 资源",
449
477
  yes: "是"
450
478
  },
479
+ previewConfigGenerate: {
480
+ title: "预览链接生成器",
481
+ description: "配置远程 Vue 或 page.json,实时生成可分享的预览链接。",
482
+ importLabel: "已有预览链接",
483
+ parseHint: "粘贴 /__docs/preview?raw=... 或 ?url=... 链接",
484
+ parse: "解析链接",
485
+ urlHint: "远程 .vue、page.json 或 *.page.json 地址",
486
+ stylesHint: "JSON 数组;按顺序填写 CSS URL,支持 HTTP(S) 和站点根路径。",
487
+ modulesHint: "JSON 对象;模块名 → ESM URL,覆盖当前预览的 import 映射。",
488
+ playgroundHint: "JSON 对象;支持 local、styleless、views、viewport、previewInset、expandable、previewScroller、title。",
489
+ language: "lang · 预览语言",
490
+ defaultLanguage: "站点默认语言",
491
+ link: "实时生成的链接",
492
+ copy: "复制链接",
493
+ preview: "打开预览",
494
+ configuration: "查看编码前的配置"
495
+ },
451
496
  footer: {
452
497
  resources: "资源",
453
498
  vueComponents: "@deot/vc | Vue组件库",
@@ -621,11 +666,14 @@ var zhCN = {
621
666
  max: "最大值"
622
667
  }
623
668
  },
624
- markdown: { indicator: {
625
- label: "文档指示器",
626
- untitled: "未命名章节",
627
- document: "文档"
628
- } },
669
+ markdown: {
670
+ indicator: {
671
+ label: "文档指示器",
672
+ untitled: "未命名章节",
673
+ document: "文档"
674
+ },
675
+ tabs: { label: "内容分栏" }
676
+ },
629
677
  playground: {
630
678
  common: {
631
679
  copy: "复制",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/docs-locale",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",