@axewo/fin-locale 2.0.10 → 2.0.12
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 +1 -1
- package/dist/index.mjs +9 -7
- package/dist/index2.cjs +1 -1
- package/dist/index2.mjs +26 -21
- package/dist/index3.cjs +1 -1
- package/dist/index3.mjs +91 -229
- package/dist/index4.cjs +1 -1
- package/dist/index4.mjs +91 -229
- package/dist/index5.cjs +1 -0
- package/dist/index5.mjs +308 -0
- package/dist/index6.cjs +1 -0
- package/dist/index6.mjs +308 -0
- package/dist/index7.cjs +1 -0
- package/dist/index7.mjs +44 -0
- package/dist/index8.cjs +1 -0
- package/dist/index8.mjs +44 -0
- package/dist/types/create-i18n.d.ts +5 -0
- package/dist/types/create-i18n.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lang/en/dashboard-additions.d.ts +156 -0
- package/dist/types/lang/en/dashboard-additions.d.ts.map +1 -0
- package/dist/types/lang/en/dashboard-core-additions.d.ts +248 -0
- package/dist/types/lang/en/dashboard-core-additions.d.ts.map +1 -0
- package/dist/types/lang/en/formula-additions.d.ts +103 -0
- package/dist/types/lang/en/formula-additions.d.ts.map +1 -0
- package/dist/types/lang/en/index.d.ts +88 -0
- package/dist/types/lang/en/index.d.ts.map +1 -1
- package/dist/types/lang/en/ui-additions.d.ts +53 -0
- package/dist/types/lang/en/ui-additions.d.ts.map +1 -0
- package/dist/types/lang/zh-CN/dashboard-additions.d.ts +156 -0
- package/dist/types/lang/zh-CN/dashboard-additions.d.ts.map +1 -0
- package/dist/types/lang/zh-CN/dashboard-core-additions.d.ts +249 -0
- package/dist/types/lang/zh-CN/dashboard-core-additions.d.ts.map +1 -0
- package/dist/types/lang/zh-CN/formula-additions.d.ts +103 -0
- package/dist/types/lang/zh-CN/formula-additions.d.ts.map +1 -0
- package/dist/types/lang/zh-CN/index.d.ts +88 -0
- package/dist/types/lang/zh-CN/index.d.ts.map +1 -1
- package/dist/types/lang/zh-CN/ui-additions.d.ts +53 -0
- package/dist/types/lang/zh-CN/ui-additions.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index2.cjs"),n=require("./index3.cjs"),i=require("./index4.cjs");exports.createFinI18n=e.createFinI18n;exports.installFinI18n=e.installFinI18n;exports.useFinLocale=e.useFinLocale;exports.zhCN=n;exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index2.cjs"),n=require("./index3.cjs"),i=require("./index4.cjs");exports.createFinI18n=e.createFinI18n;exports.en=e.en;exports.installFinI18n=e.installFinI18n;exports.useFinLocale=e.useFinLocale;exports.zhCN=e.zhCN;exports.zhCNFormulaAdditions=n;exports.enFormulaAdditions=i;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { createFinI18n as n, installFinI18n as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
1
|
+
import { createFinI18n as n, en as a, installFinI18n as r, useFinLocale as t, zhCN as i } from "./index2.mjs";
|
|
2
|
+
import { default as d } from "./index3.mjs";
|
|
3
|
+
import { default as f } from "./index4.mjs";
|
|
4
4
|
export {
|
|
5
5
|
n as createFinI18n,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
r as
|
|
9
|
-
|
|
6
|
+
a as en,
|
|
7
|
+
f as enFormulaAdditions,
|
|
8
|
+
r as installFinI18n,
|
|
9
|
+
t as useFinLocale,
|
|
10
|
+
i as zhCN,
|
|
11
|
+
d as zhCNFormulaAdditions
|
|
10
12
|
};
|
package/dist/index2.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue-i18n"),g=require("./index5.cjs"),d=require("./index3.cjs"),m=require("./index6.cjs"),I=require("./index4.cjs");function r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function i(e,n){const t={...e};for(const[s,o]of Object.entries(n))t[s]=r(t[s])&&r(o)?i(t[s],o):o;return t}const a=i(g,d),l=i(m,I);function b(e){const n={"zh-CN":a,en:l};if(!r(e))return n;for(const[t,s]of Object.entries(e))r(s)&&(n[t]=n[t]?i(n[t],s):s);return n}function f(e){const{messages:n,...t}=e||{};return u.createI18n({locale:"zh-CN",fallbackLocale:"zh-CN",legacy:!1,...t,messages:b(n)})}function y(){const{t:e,locale:n}=u.useI18n({useScope:"global"});return{t:e,locale:n}}function _(e,n){const t=e,s=t.__VUE_I18N_SYMBOL__;if(s){const c=t._context.provides[s];if(c)return c}const o=f(n);return e.use(o),o}exports.createFinI18n=f;exports.en=l;exports.installFinI18n=_;exports.useFinLocale=y;exports.zhCN=a;
|
package/dist/index2.mjs
CHANGED
|
@@ -1,52 +1,57 @@
|
|
|
1
1
|
import { createI18n as a, useI18n as f } from "vue-i18n";
|
|
2
|
-
import u from "./
|
|
3
|
-
import l from "./
|
|
2
|
+
import u from "./index5.mjs";
|
|
3
|
+
import l from "./index3.mjs";
|
|
4
|
+
import m from "./index6.mjs";
|
|
5
|
+
import g from "./index4.mjs";
|
|
4
6
|
function r(e) {
|
|
5
7
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
6
8
|
}
|
|
7
9
|
function i(e, n) {
|
|
8
10
|
const t = { ...e };
|
|
9
|
-
for (const [
|
|
10
|
-
t[
|
|
11
|
+
for (const [o, s] of Object.entries(n))
|
|
12
|
+
t[o] = r(t[o]) && r(s) ? i(t[o], s) : s;
|
|
11
13
|
return t;
|
|
12
14
|
}
|
|
13
|
-
|
|
15
|
+
const p = i(u, l), h = i(m, g);
|
|
16
|
+
function N(e) {
|
|
14
17
|
const n = {
|
|
15
|
-
"zh-CN":
|
|
16
|
-
en:
|
|
18
|
+
"zh-CN": p,
|
|
19
|
+
en: h
|
|
17
20
|
};
|
|
18
21
|
if (!r(e))
|
|
19
22
|
return n;
|
|
20
|
-
for (const [t,
|
|
21
|
-
r(
|
|
23
|
+
for (const [t, o] of Object.entries(e))
|
|
24
|
+
r(o) && (n[t] = n[t] ? i(n[t], o) : o);
|
|
22
25
|
return n;
|
|
23
26
|
}
|
|
24
|
-
function
|
|
27
|
+
function _(e) {
|
|
25
28
|
const { messages: n, ...t } = e || {};
|
|
26
29
|
return a({
|
|
27
30
|
locale: "zh-CN",
|
|
28
31
|
fallbackLocale: "zh-CN",
|
|
29
32
|
legacy: !1,
|
|
30
33
|
...t,
|
|
31
|
-
messages:
|
|
34
|
+
messages: N(n)
|
|
32
35
|
});
|
|
33
36
|
}
|
|
34
|
-
function
|
|
37
|
+
function d() {
|
|
35
38
|
const { t: e, locale: n } = f({ useScope: "global" });
|
|
36
39
|
return { t: e, locale: n };
|
|
37
40
|
}
|
|
38
|
-
function
|
|
39
|
-
const t = e,
|
|
40
|
-
if (
|
|
41
|
-
const c = t._context.provides[
|
|
41
|
+
function F(e, n) {
|
|
42
|
+
const t = e, o = t.__VUE_I18N_SYMBOL__;
|
|
43
|
+
if (o) {
|
|
44
|
+
const c = t._context.provides[o];
|
|
42
45
|
if (c)
|
|
43
46
|
return c;
|
|
44
47
|
}
|
|
45
|
-
const
|
|
46
|
-
return e.use(
|
|
48
|
+
const s = _(n);
|
|
49
|
+
return e.use(s), s;
|
|
47
50
|
}
|
|
48
51
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
_ as createFinI18n,
|
|
53
|
+
h as en,
|
|
54
|
+
F as installFinI18n,
|
|
55
|
+
d as useFinLocale,
|
|
56
|
+
p as zhCN
|
|
52
57
|
};
|
package/dist/index3.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e={fin:{
|
|
1
|
+
"use strict";const e={fin:{mathEditor:{diagnosticMessage:{emptyFormula:"公式不能为空。",expectedTypeMismatch:"公式结果类型应为 {expected},实际为 {actual}。",placeholder:"请先补全公式占位节点。",unknownReference:"无法解析资源“{resourceId}”。",resourceDisabled:"资源“{label}”已停用。",resourceMissing:"资源“{label}”不存在。",resourceForbidden:"无权访问资源“{label}”。",resourceIncompatible:"资源“{label}”的版本或类型不兼容。",unknownUnit:"资源“{resourceId}”使用了未知单位“{unit}”。",customValidatorFailed:"自定义公式校验器执行失败。",candidateRequired:"{operator} 至少需要一个候选值。",unknownFunction:"无法解析函数“{functionId}”版本“{version}”。",disabledFunction:"函数“{label}”已禁用。",unknownFunctionSignature:"函数“{functionId}”不存在签名“{signatureId}”。",ambiguousFunctionSignature:"函数“{functionId}”匹配到多个等价签名,请明确选择签名。",noMatchingFunctionSignature:"函数“{functionId}”没有匹配 {actual} 个参数的签名。",invalidArity:"函数“{functionId}”收到 {actual} 个参数,要求 {expected}。",returnTypeInferenceFailed:"无法推导函数“{functionId}”的返回类型。",emptyCase:"条件分支至少需要一个“条件—结果”分支。",exponentDimensionless:"指数必须是无量纲数值。",dimensionalExponentConstant:"有量纲底数只能使用常量数值指数。",incompatibleTypes:"无法比较 {left} 与 {right}。",conditionBoolean:"条件必须是布尔类型,实际为 {actual}。",incompatibleBranches:"分支结果类型必须兼容,当前为 {left} 与 {right}。",invalidArgumentType:"函数“{functionId}”第 {position} 个参数({name})要求 {expected},实际为 {actual}。",returnUnitInferenceFailed:"无法推导函数“{functionId}”的返回单位。",powerExponentDimensionless:"幂函数的指数必须是无量纲数值。",invalidType:"要求类型 {expected},实际为 {actual}。",incompatibleUnits:"单位“{left}”与“{right}”的量纲不兼容。",complexityNodes:"公式节点数({value})超过限制({limit})。",complexityDepth:"公式嵌套深度({value})超过限制({limit})。",complexityFunctions:"公式函数调用数({value})超过限制({limit})。",complexityReferences:"公式资源引用数({value})超过限制({limit})。",complexityScore:"公式复杂度分数({value})超过限制({limit})。",dependencyCycle:"公式存在循环依赖:{path}。",invalidDocument:"公式文档不符合协议:{path}。"},diagnosticSuggestion:{replaceOrClear:"请选择可用资源替换,或清空该节点。",requestPermissionOrReplace:"申请资源权限,或选择其他可用资源。",replaceCompatibleVersion:"请选择兼容版本的资源替换。"},parseError:{unexpectedCharacter:"发现无法识别的字符“{found}”。",unterminatedString:"字符串未闭合,请补充右侧单引号。",unterminatedParameterReference:"参数引用未闭合,请补充“{closing}”。",unterminatedIndicatorReference:"指标引用未闭合,请补充“{closing}”。",emptyParameterReference:"参数引用标识不能为空。",emptyIndicatorReference:"指标引用标识不能为空。",invalidNumber:"科学计数法至少需要一位指数数字。",trailingInput:"表达式后存在多余内容“{found}”。",emptyInList:"{operator} 至少需要一个候选值。",expressionExpectedAtEnd:"此处需要表达式,但源码已结束。",expressionExpected:"此处需要表达式,但发现“{found}”。",invalidIfArity:"IF 必须接收 3 个参数,当前收到 {actual} 个。",invalidCase:"CASE 至少需要一个 WHEN … THEN 分支。",expectedBeforeEnd:"源码结束前应出现 {expected}。",expectedToken:"应出现 {expected},但发现“{found}”。",maximumDepth:"表达式嵌套超过配置上限 {maxDepth}。"},protocolError:{invalidJson:"公式文档不是有效的纯 JSON。",invalidType:"公式文档字段“{path}”的类型无效。",missingField:"公式文档缺少必填字段“{path}”。",unknownField:"公式文档包含未知字段“{path}”。",unknownSchemaVersion:"不支持公式协议版本 {version}。",migrationFailed:"公式协议迁移失败。",unknownNodeType:"公式包含未知节点类型。",invalidLiteral:"公式字面量“{path}”无效。",invalidOperator:"公式运算符“{path}”无效。",invalidReference:"公式资源引用“{path}”无效。",invalidFunction:"公式函数“{path}”无效。",invalidChildCount:"公式节点“{path}”的子节点数量无效。",duplicateId:"公式节点标识“{path}”重复。"},serverValidationError:{missingTransport:"未配置服务端验证传输函数。",invalidDocument:"公式文档不符合协议,无法发起服务端验证。",emptyScenario:"服务端验证业务场景不能为空。",revisionMismatch:"服务端返回修订 {actual},当前请求修订为 {expected}。",staleResult:"公式已变化,已丢弃旧修订的服务端验证结果。",timeout:"服务端验证请求超过 {timeout} 毫秒。",cancelled:"服务端验证请求已取消。",unauthorized:"服务端验证未授权。",failed:"服务端验证请求失败。",invalidResponse:"服务端验证响应不符合协议。"},resourceReason:{resolverNoResult:"资源解析器未返回该依赖",unavailable:"资源当前不可用",versionIncompatible:"资源版本不兼容",notFound:"资源不存在或已删除",resolverNotConfigured:"资源源未配置依赖解析器"}}}};module.exports=e;
|
package/dist/index3.mjs
CHANGED
|
@@ -1,238 +1,100 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
fin: {
|
|
3
|
-
common: {
|
|
4
|
-
confirm: "确认",
|
|
5
|
-
cancel: "取消",
|
|
6
|
-
close: "关闭",
|
|
7
|
-
save: "保存",
|
|
8
|
-
submit: "提交",
|
|
9
|
-
reset: "重置",
|
|
10
|
-
search: "搜索",
|
|
11
|
-
refresh: "刷新",
|
|
12
|
-
loading: "加载中...",
|
|
13
|
-
noData: "暂无数据",
|
|
14
|
-
operation: "操作",
|
|
15
|
-
more: "更多",
|
|
16
|
-
index: "序号",
|
|
17
|
-
edit: "编辑",
|
|
18
|
-
delete: "删除",
|
|
19
|
-
view: "查看",
|
|
20
|
-
add: "新增",
|
|
21
|
-
total: "合计",
|
|
22
|
-
undo: "撤回",
|
|
23
|
-
editMode: "编辑模式",
|
|
24
|
-
viewMode: "查看模式",
|
|
25
|
-
withdraw: "撤回",
|
|
26
|
-
yes: "是",
|
|
27
|
-
no: "否",
|
|
28
|
-
confirmDelete: "确认删除该条记录吗?",
|
|
29
|
-
confirmDeleteTitle: "删除确认",
|
|
30
|
-
deleteSuccess: "删除成功",
|
|
31
|
-
deleteFailed: "删除失败",
|
|
32
|
-
deleteConfirm: "确认删除",
|
|
33
|
-
saveSuccess: "保存成功",
|
|
34
|
-
saveFailed: "保存失败",
|
|
35
|
-
retry: "重试",
|
|
36
|
-
loadFailed: "加载失败",
|
|
37
|
-
export: "导出",
|
|
38
|
-
columnSettings: "列设置",
|
|
39
|
-
requestFailed: "请求失败,请稍后重试",
|
|
40
|
-
viewDetail: "详情"
|
|
41
|
-
},
|
|
42
|
-
// Canonical keys for FinCopy. The shorter copy namespace is retained for compatibility.
|
|
43
|
-
finCopy: {
|
|
44
|
-
copyEmptyContent: "没有可复制的内容",
|
|
45
|
-
copySuccess: "复制成功",
|
|
46
|
-
copyFailed: "复制失败"
|
|
47
|
-
},
|
|
48
|
-
copy: {
|
|
49
|
-
noContent: "没有可复制的内容",
|
|
50
|
-
success: "复制成功",
|
|
51
|
-
failed: "复制失败",
|
|
52
|
-
copyEmptyContent: "没有可复制的内容",
|
|
53
|
-
copySuccess: "复制成功",
|
|
54
|
-
copyFailed: "复制失败"
|
|
55
|
-
},
|
|
56
|
-
// Canonical keys for FinForm. The shorter form namespace is retained for compatibility.
|
|
57
|
-
finForm: {
|
|
58
|
-
submit: "提交",
|
|
59
|
-
reset: "重置",
|
|
60
|
-
query: "查询",
|
|
61
|
-
cancel: "取消",
|
|
62
|
-
expand: "展开",
|
|
63
|
-
collapse: "收起",
|
|
64
|
-
selectPlaceholder: "请选择{label}",
|
|
65
|
-
inputPlaceholder: "请输入{label}",
|
|
66
|
-
dateRangeStartPlaceholder: "开始时间",
|
|
67
|
-
dateRangeEndPlaceholder: "结束时间",
|
|
68
|
-
yes: "是",
|
|
69
|
-
no: "否",
|
|
70
|
-
validationFailed: "验证失败",
|
|
71
|
-
formRefUnavailable: "表单引用不可用",
|
|
72
|
-
submitFailed: "提交失败,请稍后重试",
|
|
73
|
-
validationSummary: "表单验证失败,请检查 {count} 个字段",
|
|
74
|
-
required: "{label}为必填项"
|
|
75
|
-
},
|
|
76
|
-
form: {
|
|
77
|
-
submit: "提交",
|
|
78
|
-
reset: "重置",
|
|
79
|
-
query: "查询",
|
|
80
|
-
cancel: "取消",
|
|
81
|
-
expand: "展开",
|
|
82
|
-
collapse: "收起",
|
|
83
|
-
pleaseSelect: "请选择{label}",
|
|
84
|
-
selectPlaceholder: "请选择",
|
|
85
|
-
pleaseInput: "请输入{label}",
|
|
86
|
-
inputPlaceholder: "请输入{label}",
|
|
87
|
-
dateRangeStartPlaceholder: "开始时间",
|
|
88
|
-
dateRangeEndPlaceholder: "结束时间",
|
|
89
|
-
startTime: "开始时间",
|
|
90
|
-
endTime: "结束时间",
|
|
91
|
-
yes: "是",
|
|
92
|
-
no: "否",
|
|
93
|
-
validationFailed: "验证失败",
|
|
94
|
-
formRefUnavailable: "表单引用不可用",
|
|
95
|
-
submitFailed: "提交失败,请稍后重试",
|
|
96
|
-
validationSummary: "表单验证失败,请检查 {count} 个字段",
|
|
97
|
-
required: "{label}为必填项"
|
|
98
|
-
},
|
|
99
|
-
// Canonical keys for FTableSelect (alias: FinTableSelect). The shorter select namespace is retained for compatibility.
|
|
100
|
-
finSelect: {
|
|
101
|
-
searchPlaceholder: "请输入关键词搜索",
|
|
102
|
-
selectPlaceholder: "请选择",
|
|
103
|
-
noData: "无数据",
|
|
104
|
-
loading: "加载中...",
|
|
105
|
-
loadMore: "加载更多",
|
|
106
|
-
allLoaded: "已加载全部"
|
|
107
|
-
},
|
|
108
|
-
select: {
|
|
109
|
-
searchPlaceholder: "请输入关键词搜索",
|
|
110
|
-
selectPlaceholder: "请选择",
|
|
111
|
-
placeholder: "请选择",
|
|
112
|
-
noData: "无数据",
|
|
113
|
-
loading: "加载中...",
|
|
114
|
-
loadMore: "加载更多",
|
|
115
|
-
allLoaded: "已加载全部"
|
|
116
|
-
},
|
|
117
|
-
pageHeader: {
|
|
118
|
-
back: "返回"
|
|
119
|
-
},
|
|
120
|
-
langInput: {
|
|
121
|
-
pleaseInput: "请输入"
|
|
122
|
-
},
|
|
123
3
|
mathEditor: {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
4
|
+
diagnosticMessage: {
|
|
5
|
+
emptyFormula: "公式不能为空。",
|
|
6
|
+
expectedTypeMismatch: "公式结果类型应为 {expected},实际为 {actual}。",
|
|
7
|
+
placeholder: "请先补全公式占位节点。",
|
|
8
|
+
unknownReference: "无法解析资源“{resourceId}”。",
|
|
9
|
+
resourceDisabled: "资源“{label}”已停用。",
|
|
10
|
+
resourceMissing: "资源“{label}”不存在。",
|
|
11
|
+
resourceForbidden: "无权访问资源“{label}”。",
|
|
12
|
+
resourceIncompatible: "资源“{label}”的版本或类型不兼容。",
|
|
13
|
+
unknownUnit: "资源“{resourceId}”使用了未知单位“{unit}”。",
|
|
14
|
+
customValidatorFailed: "自定义公式校验器执行失败。",
|
|
15
|
+
candidateRequired: "{operator} 至少需要一个候选值。",
|
|
16
|
+
unknownFunction: "无法解析函数“{functionId}”版本“{version}”。",
|
|
17
|
+
disabledFunction: "函数“{label}”已禁用。",
|
|
18
|
+
unknownFunctionSignature: "函数“{functionId}”不存在签名“{signatureId}”。",
|
|
19
|
+
ambiguousFunctionSignature: "函数“{functionId}”匹配到多个等价签名,请明确选择签名。",
|
|
20
|
+
noMatchingFunctionSignature: "函数“{functionId}”没有匹配 {actual} 个参数的签名。",
|
|
21
|
+
invalidArity: "函数“{functionId}”收到 {actual} 个参数,要求 {expected}。",
|
|
22
|
+
returnTypeInferenceFailed: "无法推导函数“{functionId}”的返回类型。",
|
|
23
|
+
emptyCase: "条件分支至少需要一个“条件—结果”分支。",
|
|
24
|
+
exponentDimensionless: "指数必须是无量纲数值。",
|
|
25
|
+
dimensionalExponentConstant: "有量纲底数只能使用常量数值指数。",
|
|
26
|
+
incompatibleTypes: "无法比较 {left} 与 {right}。",
|
|
27
|
+
conditionBoolean: "条件必须是布尔类型,实际为 {actual}。",
|
|
28
|
+
incompatibleBranches: "分支结果类型必须兼容,当前为 {left} 与 {right}。",
|
|
29
|
+
invalidArgumentType: "函数“{functionId}”第 {position} 个参数({name})要求 {expected},实际为 {actual}。",
|
|
30
|
+
returnUnitInferenceFailed: "无法推导函数“{functionId}”的返回单位。",
|
|
31
|
+
powerExponentDimensionless: "幂函数的指数必须是无量纲数值。",
|
|
32
|
+
invalidType: "要求类型 {expected},实际为 {actual}。",
|
|
33
|
+
incompatibleUnits: "单位“{left}”与“{right}”的量纲不兼容。",
|
|
34
|
+
complexityNodes: "公式节点数({value})超过限制({limit})。",
|
|
35
|
+
complexityDepth: "公式嵌套深度({value})超过限制({limit})。",
|
|
36
|
+
complexityFunctions: "公式函数调用数({value})超过限制({limit})。",
|
|
37
|
+
complexityReferences: "公式资源引用数({value})超过限制({limit})。",
|
|
38
|
+
complexityScore: "公式复杂度分数({value})超过限制({limit})。",
|
|
39
|
+
dependencyCycle: "公式存在循环依赖:{path}。",
|
|
40
|
+
invalidDocument: "公式文档不符合协议:{path}。"
|
|
157
41
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
math: "数学",
|
|
163
|
-
string: "字符串",
|
|
164
|
-
date: "日期",
|
|
165
|
-
statistics: "统计"
|
|
42
|
+
diagnosticSuggestion: {
|
|
43
|
+
replaceOrClear: "请选择可用资源替换,或清空该节点。",
|
|
44
|
+
requestPermissionOrReplace: "申请资源权限,或选择其他可用资源。",
|
|
45
|
+
replaceCompatibleVersion: "请选择兼容版本的资源替换。"
|
|
166
46
|
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
insertLeft: "在左侧插入",
|
|
185
|
-
insertRight: "在右侧插入",
|
|
186
|
-
addPrefixOperator: "添加前缀运算",
|
|
187
|
-
addPredicateOperator: "添加条件判断",
|
|
188
|
-
removeOperator: "移除当前运算",
|
|
189
|
-
keepLeftOperand: "移除运算并保留左侧",
|
|
190
|
-
keepRightOperand: "移除运算并保留右侧",
|
|
191
|
-
predicateCategory: {
|
|
192
|
-
collection: "集合判断",
|
|
193
|
-
range: "范围判断",
|
|
194
|
-
null: "空值判断"
|
|
47
|
+
parseError: {
|
|
48
|
+
unexpectedCharacter: "发现无法识别的字符“{found}”。",
|
|
49
|
+
unterminatedString: "字符串未闭合,请补充右侧单引号。",
|
|
50
|
+
unterminatedParameterReference: "参数引用未闭合,请补充“{closing}”。",
|
|
51
|
+
unterminatedIndicatorReference: "指标引用未闭合,请补充“{closing}”。",
|
|
52
|
+
emptyParameterReference: "参数引用标识不能为空。",
|
|
53
|
+
emptyIndicatorReference: "指标引用标识不能为空。",
|
|
54
|
+
invalidNumber: "科学计数法至少需要一位指数数字。",
|
|
55
|
+
trailingInput: "表达式后存在多余内容“{found}”。",
|
|
56
|
+
emptyInList: "{operator} 至少需要一个候选值。",
|
|
57
|
+
expressionExpectedAtEnd: "此处需要表达式,但源码已结束。",
|
|
58
|
+
expressionExpected: "此处需要表达式,但发现“{found}”。",
|
|
59
|
+
invalidIfArity: "IF 必须接收 3 个参数,当前收到 {actual} 个。",
|
|
60
|
+
invalidCase: "CASE 至少需要一个 WHEN … THEN 分支。",
|
|
61
|
+
expectedBeforeEnd: "源码结束前应出现 {expected}。",
|
|
62
|
+
expectedToken: "应出现 {expected},但发现“{found}”。",
|
|
63
|
+
maximumDepth: "表达式嵌套超过配置上限 {maxDepth}。"
|
|
195
64
|
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
addSuccess: "新增成功",
|
|
230
|
-
editSuccess: "编辑成功",
|
|
231
|
-
addFailed: "新增失败",
|
|
232
|
-
editFailed: "编辑失败",
|
|
233
|
-
columnSettings: {
|
|
234
|
-
showColumns: "显示列",
|
|
235
|
-
save: "保存配置"
|
|
65
|
+
protocolError: {
|
|
66
|
+
invalidJson: "公式文档不是有效的纯 JSON。",
|
|
67
|
+
invalidType: "公式文档字段“{path}”的类型无效。",
|
|
68
|
+
missingField: "公式文档缺少必填字段“{path}”。",
|
|
69
|
+
unknownField: "公式文档包含未知字段“{path}”。",
|
|
70
|
+
unknownSchemaVersion: "不支持公式协议版本 {version}。",
|
|
71
|
+
migrationFailed: "公式协议迁移失败。",
|
|
72
|
+
unknownNodeType: "公式包含未知节点类型。",
|
|
73
|
+
invalidLiteral: "公式字面量“{path}”无效。",
|
|
74
|
+
invalidOperator: "公式运算符“{path}”无效。",
|
|
75
|
+
invalidReference: "公式资源引用“{path}”无效。",
|
|
76
|
+
invalidFunction: "公式函数“{path}”无效。",
|
|
77
|
+
invalidChildCount: "公式节点“{path}”的子节点数量无效。",
|
|
78
|
+
duplicateId: "公式节点标识“{path}”重复。"
|
|
79
|
+
},
|
|
80
|
+
serverValidationError: {
|
|
81
|
+
missingTransport: "未配置服务端验证传输函数。",
|
|
82
|
+
invalidDocument: "公式文档不符合协议,无法发起服务端验证。",
|
|
83
|
+
emptyScenario: "服务端验证业务场景不能为空。",
|
|
84
|
+
revisionMismatch: "服务端返回修订 {actual},当前请求修订为 {expected}。",
|
|
85
|
+
staleResult: "公式已变化,已丢弃旧修订的服务端验证结果。",
|
|
86
|
+
timeout: "服务端验证请求超过 {timeout} 毫秒。",
|
|
87
|
+
cancelled: "服务端验证请求已取消。",
|
|
88
|
+
unauthorized: "服务端验证未授权。",
|
|
89
|
+
failed: "服务端验证请求失败。",
|
|
90
|
+
invalidResponse: "服务端验证响应不符合协议。"
|
|
91
|
+
},
|
|
92
|
+
resourceReason: {
|
|
93
|
+
resolverNoResult: "资源解析器未返回该依赖",
|
|
94
|
+
unavailable: "资源当前不可用",
|
|
95
|
+
versionIncompatible: "资源版本不兼容",
|
|
96
|
+
notFound: "资源不存在或已删除",
|
|
97
|
+
resolverNotConfigured: "资源源未配置依赖解析器"
|
|
236
98
|
}
|
|
237
99
|
}
|
|
238
100
|
}
|
package/dist/index4.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e={fin:{
|
|
1
|
+
"use strict";const e={fin:{mathEditor:{diagnosticMessage:{emptyFormula:"The formula cannot be empty.",expectedTypeMismatch:"The formula result must be {expected}, but it is {actual}.",placeholder:"Complete the formula placeholder first.",unknownReference:"Resource “{resourceId}” could not be resolved.",resourceDisabled:"Resource “{label}” is disabled.",resourceMissing:"Resource “{label}” does not exist.",resourceForbidden:"You do not have access to resource “{label}”.",resourceIncompatible:"The version or type of resource “{label}” is incompatible.",unknownUnit:"Resource “{resourceId}” uses the unknown unit “{unit}”.",customValidatorFailed:"The custom formula validator failed.",candidateRequired:"{operator} requires at least one candidate value.",unknownFunction:"Function “{functionId}” version “{version}” could not be resolved.",disabledFunction:"Function “{label}” is disabled.",unknownFunctionSignature:"Function “{functionId}” has no signature “{signatureId}”.",ambiguousFunctionSignature:"Function “{functionId}” matches multiple equivalent signatures. Select one explicitly.",noMatchingFunctionSignature:"Function “{functionId}” has no signature matching {actual} arguments.",invalidArity:"Function “{functionId}” received {actual} arguments; {expected} required.",returnTypeInferenceFailed:"The return type of function “{functionId}” could not be inferred.",emptyCase:"A conditional expression requires at least one condition-result branch.",exponentDimensionless:"The exponent must be dimensionless.",dimensionalExponentConstant:"A dimensional base requires a constant numeric exponent.",incompatibleTypes:"{left} cannot be compared with {right}.",conditionBoolean:"A condition must be boolean, but it is {actual}.",incompatibleBranches:"Branch result types must be compatible; current types are {left} and {right}.",invalidArgumentType:"Argument {position} ({name}) of function “{functionId}” requires {expected}, but received {actual}.",returnUnitInferenceFailed:"The return unit of function “{functionId}” could not be inferred.",powerExponentDimensionless:"The exponent of a power function must be dimensionless.",invalidType:"Expected type {expected}, but received {actual}.",incompatibleUnits:"Units “{left}” and “{right}” have incompatible dimensions.",complexityNodes:"Formula node count ({value}) exceeds the limit ({limit}).",complexityDepth:"Formula nesting depth ({value}) exceeds the limit ({limit}).",complexityFunctions:"Formula function call count ({value}) exceeds the limit ({limit}).",complexityReferences:"Formula resource reference count ({value}) exceeds the limit ({limit}).",complexityScore:"Formula complexity score ({value}) exceeds the limit ({limit}).",dependencyCycle:"The formula has a circular dependency: {path}.",invalidDocument:"The formula document is invalid at {path}."},diagnosticSuggestion:{replaceOrClear:"Replace it with an available resource or clear this node.",requestPermissionOrReplace:"Request access or select another available resource.",replaceCompatibleVersion:"Replace it with a compatible resource version."},parseError:{unexpectedCharacter:"Unexpected character “{found}”.",unterminatedString:"The string is not closed; add a closing single quote.",unterminatedParameterReference:"The parameter reference is not closed; add “{closing}”.",unterminatedIndicatorReference:"The indicator reference is not closed; add “{closing}”.",emptyParameterReference:"A parameter reference key cannot be empty.",emptyIndicatorReference:"An indicator reference key cannot be empty.",invalidNumber:"Scientific notation requires at least one exponent digit.",trailingInput:"Unexpected content “{found}” follows the expression.",emptyInList:"{operator} requires at least one candidate value.",expressionExpectedAtEnd:"An expression is required here, but the source has ended.",expressionExpected:"An expression is required here, but “{found}” was found.",invalidIfArity:"IF requires exactly 3 arguments, but received {actual}.",invalidCase:"CASE requires at least one WHEN … THEN branch.",expectedBeforeEnd:"{expected} is required before the end of the source.",expectedToken:"Expected {expected}, but found “{found}”.",maximumDepth:"Expression nesting exceeds the configured limit of {maxDepth}."},protocolError:{invalidJson:"The formula document is not valid plain JSON.",invalidType:"Formula document field “{path}” has an invalid type.",missingField:"Required formula document field “{path}” is missing.",unknownField:"The formula document contains unknown field “{path}”.",unknownSchemaVersion:"Formula schema version {version} is not supported.",migrationFailed:"Formula schema migration failed.",unknownNodeType:"The formula contains an unknown node type.",invalidLiteral:"Formula literal “{path}” is invalid.",invalidOperator:"Formula operator “{path}” is invalid.",invalidReference:"Formula reference “{path}” is invalid.",invalidFunction:"Formula function “{path}” is invalid.",invalidChildCount:"Formula node “{path}” has an invalid number of children.",duplicateId:"Formula node ID “{path}” is duplicated."},serverValidationError:{missingTransport:"No server validation transport is configured.",invalidDocument:"The formula document is invalid and cannot be sent for server validation.",emptyScenario:"The server validation scenario cannot be empty.",revisionMismatch:"The server returned revision {actual}; the request used revision {expected}.",staleResult:"The formula changed, so the server result for the old revision was discarded.",timeout:"The server validation request exceeded {timeout} milliseconds.",cancelled:"The server validation request was cancelled.",unauthorized:"Server validation is unauthorized.",failed:"The server validation request failed.",invalidResponse:"The server validation response is invalid."},resourceReason:{resolverNoResult:"The resolver did not return this dependency",unavailable:"The resource is currently unavailable",versionIncompatible:"The resource version is incompatible",notFound:"The resource does not exist or was deleted",resolverNotConfigured:"The resource source has no dependency resolver"}}}};module.exports=e;
|