@campus-admin/locale 2.0.6 → 2.0.8
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 +82 -0
- package/dist/index.js +82 -0
- package/dist/zh-CN.d.ts +41 -0
- package/package.json +1 -1
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;
|
|
@@ -82,6 +112,15 @@ export declare const frameworkMessages: {
|
|
|
82
112
|
unavailableTitle: string;
|
|
83
113
|
unavailableDesc: string;
|
|
84
114
|
};
|
|
115
|
+
menuSearch: {
|
|
116
|
+
title: string;
|
|
117
|
+
placeholder: string;
|
|
118
|
+
results: string;
|
|
119
|
+
empty: string;
|
|
120
|
+
navigate: string;
|
|
121
|
+
open: string;
|
|
122
|
+
close: string;
|
|
123
|
+
};
|
|
85
124
|
header: {
|
|
86
125
|
language: string;
|
|
87
126
|
theme: string;
|
|
@@ -98,6 +137,8 @@ export declare const frameworkMessages: {
|
|
|
98
137
|
account: string;
|
|
99
138
|
};
|
|
100
139
|
settings: {
|
|
140
|
+
deviceNote: string;
|
|
141
|
+
siteDefault: string;
|
|
101
142
|
title: string;
|
|
102
143
|
themeMode: string;
|
|
103
144
|
themeColor: string;
|
|
@@ -176,6 +217,36 @@ export declare const frameworkMessages: {
|
|
|
176
217
|
};
|
|
177
218
|
'en-US': {
|
|
178
219
|
campus: {
|
|
220
|
+
doc: {
|
|
221
|
+
sheetjsDependency: string;
|
|
222
|
+
title: string;
|
|
223
|
+
download: string;
|
|
224
|
+
retry: string;
|
|
225
|
+
empty: string;
|
|
226
|
+
unsupported: string;
|
|
227
|
+
convert: string;
|
|
228
|
+
dependency: string;
|
|
229
|
+
tooLarge: string;
|
|
230
|
+
invalidSize: string;
|
|
231
|
+
invalidFile: string;
|
|
232
|
+
fetchFailed: string;
|
|
233
|
+
renderFailed: string;
|
|
234
|
+
complex: string;
|
|
235
|
+
timeout: string;
|
|
236
|
+
diagramFailed: string;
|
|
237
|
+
toc: string;
|
|
238
|
+
sheets: string;
|
|
239
|
+
more: string;
|
|
240
|
+
rows: string;
|
|
241
|
+
previous: string;
|
|
242
|
+
next: string;
|
|
243
|
+
page: string;
|
|
244
|
+
zoom: string;
|
|
245
|
+
fit: string;
|
|
246
|
+
word: string;
|
|
247
|
+
expand: string;
|
|
248
|
+
restore: string;
|
|
249
|
+
};
|
|
179
250
|
notify: {
|
|
180
251
|
success: string;
|
|
181
252
|
info: string;
|
|
@@ -250,6 +321,15 @@ export declare const frameworkMessages: {
|
|
|
250
321
|
unavailableTitle: string;
|
|
251
322
|
unavailableDesc: string;
|
|
252
323
|
};
|
|
324
|
+
menuSearch: {
|
|
325
|
+
title: string;
|
|
326
|
+
placeholder: string;
|
|
327
|
+
results: string;
|
|
328
|
+
empty: string;
|
|
329
|
+
navigate: string;
|
|
330
|
+
open: string;
|
|
331
|
+
close: string;
|
|
332
|
+
};
|
|
253
333
|
header: {
|
|
254
334
|
language: string;
|
|
255
335
|
theme: string;
|
|
@@ -266,6 +346,8 @@ export declare const frameworkMessages: {
|
|
|
266
346
|
account: string;
|
|
267
347
|
};
|
|
268
348
|
settings: {
|
|
349
|
+
deviceNote: string;
|
|
350
|
+
siteDefault: string;
|
|
269
351
|
title: string;
|
|
270
352
|
themeMode: string;
|
|
271
353
|
themeColor: 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",
|
|
@@ -74,6 +104,15 @@ var e = { campus: {
|
|
|
74
104
|
unavailableTitle: "Not available",
|
|
75
105
|
unavailableDesc: "This feature is not provided by the platform. Contact your administrator."
|
|
76
106
|
},
|
|
107
|
+
menuSearch: {
|
|
108
|
+
title: "Search menus",
|
|
109
|
+
placeholder: "Menu name, pinyin, or path",
|
|
110
|
+
results: "Menu results",
|
|
111
|
+
empty: "No matching menu pages. Try a different name or path.",
|
|
112
|
+
navigate: "Move",
|
|
113
|
+
open: "Open",
|
|
114
|
+
close: "Close"
|
|
115
|
+
},
|
|
77
116
|
header: {
|
|
78
117
|
language: "Language",
|
|
79
118
|
theme: "Theme",
|
|
@@ -90,6 +129,8 @@ var e = { campus: {
|
|
|
90
129
|
account: "Account"
|
|
91
130
|
},
|
|
92
131
|
settings: {
|
|
132
|
+
deviceNote: "Changes apply immediately in this browser.",
|
|
133
|
+
siteDefault: "Site default",
|
|
93
134
|
title: "Settings",
|
|
94
135
|
themeMode: "Theme mode",
|
|
95
136
|
themeColor: "Theme color",
|
|
@@ -163,6 +204,36 @@ var e = { campus: {
|
|
|
163
204
|
backHome: "Back to home"
|
|
164
205
|
}
|
|
165
206
|
} }, t = { campus: {
|
|
207
|
+
doc: {
|
|
208
|
+
sheetjsDependency: "请安装并注册 SheetJS:npm install https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz;不要安装 npm 仓库中有已知漏洞的旧版 xlsx。注册示例:registerDocLoader('xlsx', () => import('xlsx'))。",
|
|
209
|
+
title: "文档查看",
|
|
210
|
+
download: "下载",
|
|
211
|
+
retry: "重试",
|
|
212
|
+
empty: "暂无文档内容",
|
|
213
|
+
unsupported: "暂不支持预览此格式,请下载查看。",
|
|
214
|
+
convert: "该格式需要先转换为 PDF。",
|
|
215
|
+
dependency: "请安装依赖并注册加载器 {name};代码高亮缺失时显示纯文本。",
|
|
216
|
+
tooLarge: "文件超过预览大小上限,请下载查看。",
|
|
217
|
+
invalidSize: "文件大小上限必须为正数。",
|
|
218
|
+
invalidFile: "文件内容与格式不符,或文本不是有效的 UTF-8。",
|
|
219
|
+
fetchFailed: "文件获取失败({name})。",
|
|
220
|
+
renderFailed: "文档渲染失败,请重试或下载查看。",
|
|
221
|
+
complex: "文档超过安全渲染预算,请下载查看。",
|
|
222
|
+
timeout: "文档加载超时,请重试。",
|
|
223
|
+
diagramFailed: "流程图语法错误或超过渲染限制。",
|
|
224
|
+
toc: "目录",
|
|
225
|
+
sheets: "工作表",
|
|
226
|
+
more: "显示更多",
|
|
227
|
+
rows: "已显示 {shown} / {total} 行。",
|
|
228
|
+
previous: "上一页",
|
|
229
|
+
next: "下一页",
|
|
230
|
+
page: "页码",
|
|
231
|
+
zoom: "缩放",
|
|
232
|
+
fit: "适应宽度",
|
|
233
|
+
word: "Word 文档预览",
|
|
234
|
+
expand: "放大",
|
|
235
|
+
restore: "还原"
|
|
236
|
+
},
|
|
166
237
|
notify: {
|
|
167
238
|
success: "成功",
|
|
168
239
|
info: "提示",
|
|
@@ -237,6 +308,15 @@ var e = { campus: {
|
|
|
237
308
|
unavailableTitle: "该功能未开通",
|
|
238
309
|
unavailableDesc: "当前平台没有提供此功能,请联系管理员。"
|
|
239
310
|
},
|
|
311
|
+
menuSearch: {
|
|
312
|
+
title: "搜索菜单",
|
|
313
|
+
placeholder: "菜单名称、拼音或路径",
|
|
314
|
+
results: "菜单搜索结果",
|
|
315
|
+
empty: "没有找到匹配的菜单,试试其他名称或路径。",
|
|
316
|
+
navigate: "选择",
|
|
317
|
+
open: "打开",
|
|
318
|
+
close: "关闭"
|
|
319
|
+
},
|
|
240
320
|
header: {
|
|
241
321
|
language: "语言",
|
|
242
322
|
theme: "主题",
|
|
@@ -253,6 +333,8 @@ var e = { campus: {
|
|
|
253
333
|
account: "账号"
|
|
254
334
|
},
|
|
255
335
|
settings: {
|
|
336
|
+
deviceNote: "设置立即生效,并保存在此浏览器。",
|
|
337
|
+
siteDefault: "站点默认",
|
|
256
338
|
title: "设置",
|
|
257
339
|
themeMode: "主题模式",
|
|
258
340
|
themeColor: "主题色",
|
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;
|
|
@@ -75,6 +105,15 @@ export declare const zhCN: {
|
|
|
75
105
|
unavailableTitle: string;
|
|
76
106
|
unavailableDesc: string;
|
|
77
107
|
};
|
|
108
|
+
menuSearch: {
|
|
109
|
+
title: string;
|
|
110
|
+
placeholder: string;
|
|
111
|
+
results: string;
|
|
112
|
+
empty: string;
|
|
113
|
+
navigate: string;
|
|
114
|
+
open: string;
|
|
115
|
+
close: string;
|
|
116
|
+
};
|
|
78
117
|
header: {
|
|
79
118
|
language: string;
|
|
80
119
|
theme: string;
|
|
@@ -91,6 +130,8 @@ export declare const zhCN: {
|
|
|
91
130
|
account: string;
|
|
92
131
|
};
|
|
93
132
|
settings: {
|
|
133
|
+
deviceNote: string;
|
|
134
|
+
siteDefault: string;
|
|
94
135
|
title: string;
|
|
95
136
|
themeMode: string;
|
|
96
137
|
themeColor: string;
|