@campus-admin/locale 2.0.5 → 2.0.7

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.d.ts CHANGED
@@ -8,6 +8,36 @@ export declare const LOCALES: {
8
8
  export declare const frameworkMessages: {
9
9
  'zh-CN': {
10
10
  campus: {
11
+ doc: {
12
+ sheetjsDependency: string;
13
+ title: string;
14
+ download: string;
15
+ retry: string;
16
+ empty: string;
17
+ unsupported: string;
18
+ convert: string;
19
+ dependency: string;
20
+ tooLarge: string;
21
+ invalidSize: string;
22
+ invalidFile: string;
23
+ fetchFailed: string;
24
+ renderFailed: string;
25
+ complex: string;
26
+ timeout: string;
27
+ diagramFailed: string;
28
+ toc: string;
29
+ sheets: string;
30
+ more: string;
31
+ rows: string;
32
+ previous: string;
33
+ next: string;
34
+ page: string;
35
+ zoom: string;
36
+ fit: string;
37
+ word: string;
38
+ expand: string;
39
+ restore: string;
40
+ };
11
41
  notify: {
12
42
  success: string;
13
43
  info: string;
@@ -126,6 +156,8 @@ export declare const frameworkMessages: {
126
156
  current: string;
127
157
  };
128
158
  tabs: {
159
+ enterScreen: string;
160
+ dismissScreen: string;
129
161
  refresh: string;
130
162
  close: string;
131
163
  closeLeft: string;
@@ -174,6 +206,36 @@ export declare const frameworkMessages: {
174
206
  };
175
207
  'en-US': {
176
208
  campus: {
209
+ doc: {
210
+ sheetjsDependency: string;
211
+ title: string;
212
+ download: string;
213
+ retry: string;
214
+ empty: string;
215
+ unsupported: string;
216
+ convert: string;
217
+ dependency: string;
218
+ tooLarge: string;
219
+ invalidSize: string;
220
+ invalidFile: string;
221
+ fetchFailed: string;
222
+ renderFailed: string;
223
+ complex: string;
224
+ timeout: string;
225
+ diagramFailed: string;
226
+ toc: string;
227
+ sheets: string;
228
+ more: string;
229
+ rows: string;
230
+ previous: string;
231
+ next: string;
232
+ page: string;
233
+ zoom: string;
234
+ fit: string;
235
+ word: string;
236
+ expand: string;
237
+ restore: string;
238
+ };
177
239
  notify: {
178
240
  success: string;
179
241
  info: string;
@@ -292,6 +354,8 @@ export declare const frameworkMessages: {
292
354
  current: string;
293
355
  };
294
356
  tabs: {
357
+ enterScreen: string;
358
+ dismissScreen: string;
295
359
  refresh: string;
296
360
  close: string;
297
361
  closeLeft: string;
package/dist/index.js CHANGED
@@ -1,5 +1,35 @@
1
1
  // packages/locale/src/en-US.ts
2
2
  var e = { campus: {
3
+ doc: {
4
+ sheetjsDependency: "Please install and register SheetJS: npm install https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz. Do not install the outdated xlsx registry release with known vulnerabilities. Register: registerDocLoader('xlsx', () => import('xlsx')).",
5
+ title: "Document viewer",
6
+ download: "Download",
7
+ retry: "Retry",
8
+ empty: "No document content",
9
+ unsupported: "Preview is unavailable for this format. Download the file to view it.",
10
+ convert: "Convert this format to PDF first.",
11
+ dependency: "Please install and register a loader for {name}. Missing syntax highlighting falls back to plain text.",
12
+ tooLarge: "The file exceeds the preview size limit. Download it to view.",
13
+ invalidSize: "The size limit must be a positive number.",
14
+ invalidFile: "The file content does not match its format, or text is not valid UTF-8.",
15
+ fetchFailed: "Failed to fetch the file ({name}).",
16
+ renderFailed: "Failed to render the document. Retry or download it.",
17
+ complex: "The document exceeds the safe rendering budget. Download it to view.",
18
+ timeout: "Document loading timed out. Please retry.",
19
+ diagramFailed: "The diagram has invalid syntax or exceeds rendering limits.",
20
+ toc: "Contents",
21
+ sheets: "Worksheets",
22
+ more: "Show more",
23
+ rows: "Showing {shown} / {total} rows.",
24
+ previous: "Previous",
25
+ next: "Next",
26
+ page: "Page",
27
+ zoom: "Zoom",
28
+ fit: "Fit width",
29
+ word: "Word document preview",
30
+ expand: "Expand",
31
+ restore: "Restore"
32
+ },
3
33
  notify: {
4
34
  success: "Success",
5
35
  info: "Notice",
@@ -116,6 +146,8 @@ var e = { campus: {
116
146
  },
117
147
  breadcrumb: { current: "Current location: " },
118
148
  tabs: {
149
+ enterScreen: "Click to enter fullscreen",
150
+ dismissScreen: "Dismiss fullscreen prompt",
119
151
  refresh: "Refresh",
120
152
  close: "Close",
121
153
  closeLeft: "Close left",
@@ -161,6 +193,36 @@ var e = { campus: {
161
193
  backHome: "Back to home"
162
194
  }
163
195
  } }, t = { campus: {
196
+ doc: {
197
+ sheetjsDependency: "请安装并注册 SheetJS:npm install https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz;不要安装 npm 仓库中有已知漏洞的旧版 xlsx。注册示例:registerDocLoader('xlsx', () => import('xlsx'))。",
198
+ title: "文档查看",
199
+ download: "下载",
200
+ retry: "重试",
201
+ empty: "暂无文档内容",
202
+ unsupported: "暂不支持预览此格式,请下载查看。",
203
+ convert: "该格式需要先转换为 PDF。",
204
+ dependency: "请安装依赖并注册加载器 {name};代码高亮缺失时显示纯文本。",
205
+ tooLarge: "文件超过预览大小上限,请下载查看。",
206
+ invalidSize: "文件大小上限必须为正数。",
207
+ invalidFile: "文件内容与格式不符,或文本不是有效的 UTF-8。",
208
+ fetchFailed: "文件获取失败({name})。",
209
+ renderFailed: "文档渲染失败,请重试或下载查看。",
210
+ complex: "文档超过安全渲染预算,请下载查看。",
211
+ timeout: "文档加载超时,请重试。",
212
+ diagramFailed: "流程图语法错误或超过渲染限制。",
213
+ toc: "目录",
214
+ sheets: "工作表",
215
+ more: "显示更多",
216
+ rows: "已显示 {shown} / {total} 行。",
217
+ previous: "上一页",
218
+ next: "下一页",
219
+ page: "页码",
220
+ zoom: "缩放",
221
+ fit: "适应宽度",
222
+ word: "Word 文档预览",
223
+ expand: "放大",
224
+ restore: "还原"
225
+ },
164
226
  notify: {
165
227
  success: "成功",
166
228
  info: "提示",
@@ -277,6 +339,8 @@ var e = { campus: {
277
339
  },
278
340
  breadcrumb: { current: "当前位置:" },
279
341
  tabs: {
342
+ enterScreen: "点击进入全屏",
343
+ dismissScreen: "关闭全屏提示",
280
344
  refresh: "刷新当前",
281
345
  close: "关闭当前",
282
346
  closeLeft: "关闭左侧",
package/dist/zh-CN.d.ts CHANGED
@@ -1,6 +1,36 @@
1
1
  /** 框架内置词条(中文)。键必须与 en-US 成对,后续由检查脚本保证。 */
2
2
  export declare const zhCN: {
3
3
  campus: {
4
+ doc: {
5
+ sheetjsDependency: string;
6
+ title: string;
7
+ download: string;
8
+ retry: string;
9
+ empty: string;
10
+ unsupported: string;
11
+ convert: string;
12
+ dependency: string;
13
+ tooLarge: string;
14
+ invalidSize: string;
15
+ invalidFile: string;
16
+ fetchFailed: string;
17
+ renderFailed: string;
18
+ complex: string;
19
+ timeout: string;
20
+ diagramFailed: string;
21
+ toc: string;
22
+ sheets: string;
23
+ more: string;
24
+ rows: string;
25
+ previous: string;
26
+ next: string;
27
+ page: string;
28
+ zoom: string;
29
+ fit: string;
30
+ word: string;
31
+ expand: string;
32
+ restore: string;
33
+ };
4
34
  notify: {
5
35
  success: string;
6
36
  info: string;
@@ -119,6 +149,8 @@ export declare const zhCN: {
119
149
  current: string;
120
150
  };
121
151
  tabs: {
152
+ enterScreen: string;
153
+ dismissScreen: string;
122
154
  refresh: string;
123
155
  close: string;
124
156
  closeLeft: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campus-admin/locale",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "框架内置中英文词条",
5
5
  "type": "module",
6
6
  "license": "MIT",