@axewo/fin-locale 2.0.11 → 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.
Files changed (41) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.mjs +9 -7
  3. package/dist/index2.cjs +1 -1
  4. package/dist/index2.mjs +26 -21
  5. package/dist/index3.cjs +1 -1
  6. package/dist/index3.mjs +93 -296
  7. package/dist/index4.cjs +1 -1
  8. package/dist/index4.mjs +93 -296
  9. package/dist/index5.cjs +1 -1
  10. package/dist/index5.mjs +294 -13
  11. package/dist/index6.cjs +1 -1
  12. package/dist/index6.mjs +294 -13
  13. package/dist/index7.cjs +1 -0
  14. package/dist/index7.mjs +44 -0
  15. package/dist/index8.cjs +1 -0
  16. package/dist/index8.mjs +44 -0
  17. package/dist/types/create-i18n.d.ts +5 -0
  18. package/dist/types/create-i18n.d.ts.map +1 -1
  19. package/dist/types/index.d.ts +3 -3
  20. package/dist/types/index.d.ts.map +1 -1
  21. package/dist/types/lang/en/dashboard-additions.d.ts +156 -0
  22. package/dist/types/lang/en/dashboard-additions.d.ts.map +1 -0
  23. package/dist/types/lang/en/dashboard-core-additions.d.ts +248 -0
  24. package/dist/types/lang/en/dashboard-core-additions.d.ts.map +1 -0
  25. package/dist/types/lang/en/formula-additions.d.ts +103 -0
  26. package/dist/types/lang/en/formula-additions.d.ts.map +1 -0
  27. package/dist/types/lang/en/index.d.ts +17 -0
  28. package/dist/types/lang/en/index.d.ts.map +1 -1
  29. package/dist/types/lang/en/ui-additions.d.ts +27 -0
  30. package/dist/types/lang/en/ui-additions.d.ts.map +1 -1
  31. package/dist/types/lang/zh-CN/dashboard-additions.d.ts +156 -0
  32. package/dist/types/lang/zh-CN/dashboard-additions.d.ts.map +1 -0
  33. package/dist/types/lang/zh-CN/dashboard-core-additions.d.ts +249 -0
  34. package/dist/types/lang/zh-CN/dashboard-core-additions.d.ts.map +1 -0
  35. package/dist/types/lang/zh-CN/formula-additions.d.ts +103 -0
  36. package/dist/types/lang/zh-CN/formula-additions.d.ts.map +1 -0
  37. package/dist/types/lang/zh-CN/index.d.ts +17 -0
  38. package/dist/types/lang/zh-CN/index.d.ts.map +1 -1
  39. package/dist/types/lang/zh-CN/ui-additions.d.ts +27 -0
  40. package/dist/types/lang/zh-CN/ui-additions.d.ts.map +1 -1
  41. 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.en=i;
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 o, useFinLocale as r } from "./index2.mjs";
2
- import { default as f } from "./index3.mjs";
3
- import { default as i } from "./index4.mjs";
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
- i as en,
7
- o as installFinI18n,
8
- r as useFinLocale,
9
- f as zhCN
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 i=require("vue-i18n"),l=require("./index3.cjs"),f=require("./index4.cjs");function o(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function u(e,n){const t={...e};for(const[s,r]of Object.entries(n))t[s]=o(t[s])&&o(r)?u(t[s],r):r;return t}function g(e){const n={"zh-CN":l,en:f};if(!o(e))return n;for(const[t,s]of Object.entries(e))o(s)&&(n[t]=n[t]?u(n[t],s):s);return n}function a(e){const{messages:n,...t}=e||{};return i.createI18n({locale:"zh-CN",fallbackLocale:"zh-CN",legacy:!1,...t,messages:g(n)})}function I(){const{t:e,locale:n}=i.useI18n({useScope:"global"});return{t:e,locale:n}}function b(e,n){const t=e,s=t.__VUE_I18N_SYMBOL__;if(s){const c=t._context.provides[s];if(c)return c}const r=a(n);return e.use(r),r}exports.createFinI18n=a;exports.installFinI18n=b;exports.useFinLocale=I;
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 "./index3.mjs";
3
- import l from "./index4.mjs";
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 [s, o] of Object.entries(n))
10
- t[s] = r(t[s]) && r(o) ? i(t[s], o) : o;
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
- function g(e) {
15
+ const p = i(u, l), h = i(m, g);
16
+ function N(e) {
14
17
  const n = {
15
- "zh-CN": u,
16
- en: l
18
+ "zh-CN": p,
19
+ en: h
17
20
  };
18
21
  if (!r(e))
19
22
  return n;
20
- for (const [t, s] of Object.entries(e))
21
- r(s) && (n[t] = n[t] ? i(n[t], s) : s);
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 m(e) {
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: g(n)
34
+ messages: N(n)
32
35
  });
33
36
  }
34
- function y() {
37
+ function d() {
35
38
  const { t: e, locale: n } = f({ useScope: "global" });
36
39
  return { t: e, locale: n };
37
40
  }
38
- function I(e, n) {
39
- const t = e, s = t.__VUE_I18N_SYMBOL__;
40
- if (s) {
41
- const c = t._context.provides[s];
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 o = m(n);
46
- return e.use(o), o;
48
+ const s = _(n);
49
+ return e.use(s), s;
47
50
  }
48
51
  export {
49
- m as createFinI18n,
50
- I as installFinI18n,
51
- y as useFinLocale
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=require("./index5.cjs"),a={fin:{common:{confirm:"确认",cancel:"取消",close:"关闭",save:"保存",submit:"提交",reset:"重置",search:"搜索",refresh:"刷新",loading:"加载中...",noData:"暂无数据",operation:"操作",more:"更多",index:"序号",edit:"编辑",delete:"删除",view:"查看",add:"新增",total:"合计",undo:"撤回",editMode:"编辑模式",viewMode:"查看模式",withdraw:"撤回",yes:"是",no:"否",confirmDelete:"确认删除该条记录吗?",confirmDeleteTitle:"删除确认",deleteSuccess:"删除成功",deleteFailed:"删除失败",deleteConfirm:"确认删除",saveSuccess:"保存成功",saveFailed:"保存失败",retry:"重试",loadFailed:"加载失败",export:"导出",columnSettings:"列设置",requestFailed:"请求失败,请稍后重试",viewDetail:"详情"},finCopy:{copyEmptyContent:"没有可复制的内容",copySuccess:"复制成功",copyFailed:"复制失败"},copy:{action:"复制",noContent:"没有可复制的内容",success:"复制成功",failed:"复制失败",copyEmptyContent:"没有可复制的内容",copySuccess:"复制成功",copyFailed:"复制失败"},finForm:{submit:"提交",reset:"重置",query:"查询",cancel:"取消",expand:"展开",collapse:"收起",selectPlaceholder:"请选择{label}",inputPlaceholder:"请输入{label}",dateRangeStartPlaceholder:"开始时间",dateRangeEndPlaceholder:"结束时间",yes:"是",no:"否",validationFailed:"验证失败",formRefUnavailable:"表单引用不可用",submitFailed:"提交失败,请稍后重试",validationSummary:"表单验证失败,请检查 {count} 个字段",required:"{label}为必填项"},form:{...e.fin.form,submit:"提交",reset:"重置",query:"查询",cancel:"取消",expand:"展开",collapse:"收起",pleaseSelect:"请选择{label}",selectPlaceholder:"请选择",pleaseInput:"请输入{label}",inputPlaceholder:"请输入{label}",dateRangeStartPlaceholder:"开始时间",dateRangeEndPlaceholder:"结束时间",startTime:"开始时间",endTime:"结束时间",yes:"是",no:"否",validationFailed:"验证失败",formRefUnavailable:"表单引用不可用",submitFailed:"提交失败,请稍后重试",validationSummary:"表单验证失败,请检查 {count} 个字段",required:"{label}为必填项"},finSelect:{searchPlaceholder:"请输入关键词搜索",selectPlaceholder:"请选择",noData:"无数据",loading:"加载中...",loadMore:"加载更多",allLoaded:"已加载全部"},select:{searchPlaceholder:"请输入关键词搜索",selectPlaceholder:"请选择",placeholder:"请选择",noData:"无数据",loading:"加载中...",loadMore:"加载更多",allLoaded:"已加载全部"},pageHeader:{back:"返回"},langInput:{...e.fin.langInput,pleaseInput:"请输入"},mathEditor:{title:"计算公式",subtitle:"拖入资源或点击添加,支持可视化与源码双向编辑",searchPlaceholder:"搜索参数、指标或函数",searchReferences:"搜索参数或指标",searchFunctions:"搜索函数",parameters:"参数",indicators:"指标",functions:"函数",resources:"引用资源",tools:"函数与常量",inspector:"检查器",toolbar:"公式编辑工具栏",operators:"运算符",constants:"常量",addConstant:"插入常量",invalidConstant:"请输入有效的十进制数值",constantOutOfRange:"常量超出允许范围",structureActions:"结构操作",groupExpression:"添加括号",ungroupExpression:"移除括号",collapseReferences:"折叠引用资源",expandReferences:"展开引用资源",collapseTools:"折叠函数与常量",expandTools:"展开函数与常量",unary:"一元",binary:"二元",parameterCount:"{count} 参数",signatureCount:"{count} 个签名",noFunctions:"没有匹配的函数",operatorCategory:{arithmetic:"算术运算",comparison:"比较运算",logical:"逻辑运算"},functionCategory:{all:"全部",condition:"条件",aggregation:"聚合",math:"数学",string:"字符串",date:"日期",statistics:"统计"},undo:"撤销",redo:"重做",reset:"重置",clear:"清空",visualMode:"可视化",sourceMode:"源码",canvas:"公式画布",panCanvasHint:"拖动画布或使用方向键平移,横向滚轮也可浏览长公式",emptyHint:"从左侧添加参数、指标或函数",loading:"正在加载资源...",loadFailed:"资源加载失败",retry:"重试",noResources:"没有匹配的资源",ungroupedReferences:"其他",loadMore:"加载更多",placeholder:"待补充",deleteNode:"删除节点",nodeActions:"节点操作",insertLeft:"在左侧插入",insertRight:"在右侧插入",addPrefixOperator:"添加前缀运算",addPredicateOperator:"添加条件判断",removeOperator:"移除当前运算",keepLeftOperand:"移除运算并保留左侧",keepRightOperand:"移除运算并保留右侧",predicateCategory:{collection:"集合判断",range:"范围判断",null:"空值判断"},changeOperator:"修改运算符",backToNodeActions:"返回节点操作",revertSource:"恢复有效公式",externalConflict:"外部公式已更新,请选择要保留的版本。",keepLocal:"保留当前草稿",useExternal:"使用外部版本",validationPassed:"校验通过",validationErrors:"{count} 个错误",validationWarnings:"{count} 个提示",selection:"当前节点",nodeType:"节点类型",noSelection:"选择画布中的节点以查看详情",diagnostics:"校验结果",noDiagnostics:"未发现问题",formulaText:"有效公式文本",showFullFormula:"查看完整公式",hideFullFormula:"收起完整公式",sourceJson:"查看源码",copySourceJson:"复制源码 JSON",viewTools:"画布视图工具",zoomIn:"放大画布",zoomOut:"缩小画布",resetView:"复位画布视图",lastValidFormulaHint:"源码草稿有误,当前展示并复制最后一次有效公式",showDiagnostics:"展开校验详情",hideDiagnostics:"收起校验详情",clearSearch:"清空搜索",filterLoadedResources:"筛选已加载内容",viewResourceDetail:"查看{name}详情",resourceDetail:"{name}详情",closeResourceDetail:"关闭资源详情",resourceDisabled:"已停用",resourceMissing:"已失效",resourceForbidden:"无权限",resourceIncompatible:"版本不兼容",resourceId:"资源标识",sourceId:"数据源",version:"版本",returnType:"返回类型",description:"描述",fieldPath:"字段路径",resourceStatus:"资源状态",signatureRules:"参数规则",examples:"示例",operationSyntax:"运算结构",operatorSymbol:"运算符",operandTypes:"操作数类型",nullable:"允许空值",unit:"单位",dynamicInference:"动态推导",cannotDisplay:"无法展示",clearCollectionValue:"清空集合值",deleteCollectionValue:"删除集合值",addCollectionValue:"添加集合值",addFunctionArgument:"添加函数参数",currentReplacementTarget:"当前替换目标",replaceCurrentNode:"替换当前节点",replacing:"替换中",replace:"替换",clearUnavailableResource:"清空失效资源",replacingResource:"正在替换“{name}”",cancelReplacement:"取消替换",confirmReplacement:"确认替换",replacementDescription:"替换后将删除当前节点包含的全部子表达式,是否继续?",replacementWarning:"此操作只替换当前选中的节点,已包含的子表达式无法恢复。",continueReplacement:"继续替换",commandBlocked:{targetRequired:"请先选择公式中的目标位置",targetNotFound:"目标节点已不存在,请重新选择",resourceUnavailable:"当前资源不可用",replacementRequired:"当前节点已有内容,请先选择“替换”",replacementUnsupported:"运算符不能替换节点,请选择字段、参数或函数",resourceTypeIncompatible:"资源类型与当前参数槽不兼容",functionNotFound:"函数定义不存在或尚未加载",functionSignatureNotFound:"没有符合当前参数的函数签名",functionSignatureAmbiguous:"存在多个可用函数签名,请明确选择",functionArgumentLoss:"该操作会丢失已有函数参数",functionArgumentLimit:"函数参数已达到上限",functionArgumentRequired:"必填函数参数不能删除",inValueRequired:"集合条件至少需要保留一个值槽位",editorLocked:"当前编辑器不可修改"}},validation:{...e.fin.validation,required:"不能为空",format:"格式不正确",min:"不能小于",max:"不能大于",failed:"验证失败"},crud:{...e.fin.crud,addSuccess:"新增成功",editSuccess:"编辑成功",addFailed:"新增失败",editFailed:"编辑失败",columnSettings:{showColumns:"显示列",save:"保存配置"}}}};module.exports=a;
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,307 +1,104 @@
1
- import e from "./index5.mjs";
2
- const o = {
1
+ const e = {
3
2
  fin: {
4
- common: {
5
- confirm: "确认",
6
- cancel: "取消",
7
- close: "关闭",
8
- save: "保存",
9
- submit: "提交",
10
- reset: "重置",
11
- search: "搜索",
12
- refresh: "刷新",
13
- loading: "加载中...",
14
- noData: "暂无数据",
15
- operation: "操作",
16
- more: "更多",
17
- index: "序号",
18
- edit: "编辑",
19
- delete: "删除",
20
- view: "查看",
21
- add: "新增",
22
- total: "合计",
23
- undo: "撤回",
24
- editMode: "编辑模式",
25
- viewMode: "查看模式",
26
- withdraw: "撤回",
27
- yes: "是",
28
- no: "否",
29
- confirmDelete: "确认删除该条记录吗?",
30
- confirmDeleteTitle: "删除确认",
31
- deleteSuccess: "删除成功",
32
- deleteFailed: "删除失败",
33
- deleteConfirm: "确认删除",
34
- saveSuccess: "保存成功",
35
- saveFailed: "保存失败",
36
- retry: "重试",
37
- loadFailed: "加载失败",
38
- export: "导出",
39
- columnSettings: "列设置",
40
- requestFailed: "请求失败,请稍后重试",
41
- viewDetail: "详情"
42
- },
43
- // Canonical keys for FinCopy. The shorter copy namespace is retained for compatibility.
44
- finCopy: {
45
- copyEmptyContent: "没有可复制的内容",
46
- copySuccess: "复制成功",
47
- copyFailed: "复制失败"
48
- },
49
- copy: {
50
- action: "复制",
51
- noContent: "没有可复制的内容",
52
- success: "复制成功",
53
- failed: "复制失败",
54
- copyEmptyContent: "没有可复制的内容",
55
- copySuccess: "复制成功",
56
- copyFailed: "复制失败"
57
- },
58
- // Canonical keys for FinForm. The shorter form namespace is retained for compatibility.
59
- finForm: {
60
- submit: "提交",
61
- reset: "重置",
62
- query: "查询",
63
- cancel: "取消",
64
- expand: "展开",
65
- collapse: "收起",
66
- selectPlaceholder: "请选择{label}",
67
- inputPlaceholder: "请输入{label}",
68
- dateRangeStartPlaceholder: "开始时间",
69
- dateRangeEndPlaceholder: "结束时间",
70
- yes: "是",
71
- no: "否",
72
- validationFailed: "验证失败",
73
- formRefUnavailable: "表单引用不可用",
74
- submitFailed: "提交失败,请稍后重试",
75
- validationSummary: "表单验证失败,请检查 {count} 个字段",
76
- required: "{label}为必填项"
77
- },
78
- form: {
79
- ...e.fin.form,
80
- submit: "提交",
81
- reset: "重置",
82
- query: "查询",
83
- cancel: "取消",
84
- expand: "展开",
85
- collapse: "收起",
86
- pleaseSelect: "请选择{label}",
87
- selectPlaceholder: "请选择",
88
- pleaseInput: "请输入{label}",
89
- inputPlaceholder: "请输入{label}",
90
- dateRangeStartPlaceholder: "开始时间",
91
- dateRangeEndPlaceholder: "结束时间",
92
- startTime: "开始时间",
93
- endTime: "结束时间",
94
- yes: "是",
95
- no: "否",
96
- validationFailed: "验证失败",
97
- formRefUnavailable: "表单引用不可用",
98
- submitFailed: "提交失败,请稍后重试",
99
- validationSummary: "表单验证失败,请检查 {count} 个字段",
100
- required: "{label}为必填项"
101
- },
102
- // Canonical keys for FTableSelect (alias: FinTableSelect). The shorter select namespace is retained for compatibility.
103
- finSelect: {
104
- searchPlaceholder: "请输入关键词搜索",
105
- selectPlaceholder: "请选择",
106
- noData: "无数据",
107
- loading: "加载中...",
108
- loadMore: "加载更多",
109
- allLoaded: "已加载全部"
110
- },
111
- select: {
112
- searchPlaceholder: "请输入关键词搜索",
113
- selectPlaceholder: "请选择",
114
- placeholder: "请选择",
115
- noData: "无数据",
116
- loading: "加载中...",
117
- loadMore: "加载更多",
118
- allLoaded: "已加载全部"
119
- },
120
- pageHeader: {
121
- back: "返回"
122
- },
123
- langInput: {
124
- ...e.fin.langInput,
125
- pleaseInput: "请输入"
126
- },
127
3
  mathEditor: {
128
- title: "计算公式",
129
- subtitle: "拖入资源或点击添加,支持可视化与源码双向编辑",
130
- searchPlaceholder: "搜索参数、指标或函数",
131
- searchReferences: "搜索参数或指标",
132
- searchFunctions: "搜索函数",
133
- parameters: "参数",
134
- indicators: "指标",
135
- functions: "函数",
136
- resources: "引用资源",
137
- tools: "函数与常量",
138
- inspector: "检查器",
139
- toolbar: "公式编辑工具栏",
140
- operators: "运算符",
141
- constants: "常量",
142
- addConstant: "插入常量",
143
- invalidConstant: "请输入有效的十进制数值",
144
- constantOutOfRange: "常量超出允许范围",
145
- structureActions: "结构操作",
146
- groupExpression: "添加括号",
147
- ungroupExpression: "移除括号",
148
- collapseReferences: "折叠引用资源",
149
- expandReferences: "展开引用资源",
150
- collapseTools: "折叠函数与常量",
151
- expandTools: "展开函数与常量",
152
- unary: "一元",
153
- binary: "二元",
154
- parameterCount: "{count} 参数",
155
- signatureCount: "{count} 个签名",
156
- noFunctions: "没有匹配的函数",
157
- operatorCategory: {
158
- arithmetic: "算术运算",
159
- comparison: "比较运算",
160
- logical: "逻辑运算"
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}。"
161
41
  },
162
- functionCategory: {
163
- all: "全部",
164
- condition: "条件",
165
- aggregation: "聚合",
166
- math: "数学",
167
- string: "字符串",
168
- date: "日期",
169
- statistics: "统计"
42
+ diagnosticSuggestion: {
43
+ replaceOrClear: "请选择可用资源替换,或清空该节点。",
44
+ requestPermissionOrReplace: "申请资源权限,或选择其他可用资源。",
45
+ replaceCompatibleVersion: "请选择兼容版本的资源替换。"
170
46
  },
171
- undo: "撤销",
172
- redo: "重做",
173
- reset: "重置",
174
- clear: "清空",
175
- visualMode: "可视化",
176
- sourceMode: "源码",
177
- canvas: "公式画布",
178
- panCanvasHint: "拖动画布或使用方向键平移,横向滚轮也可浏览长公式",
179
- emptyHint: "从左侧添加参数、指标或函数",
180
- loading: "正在加载资源...",
181
- loadFailed: "资源加载失败",
182
- retry: "重试",
183
- noResources: "没有匹配的资源",
184
- ungroupedReferences: "其他",
185
- loadMore: "加载更多",
186
- placeholder: "待补充",
187
- deleteNode: "删除节点",
188
- nodeActions: "节点操作",
189
- insertLeft: "在左侧插入",
190
- insertRight: "在右侧插入",
191
- addPrefixOperator: "添加前缀运算",
192
- addPredicateOperator: "添加条件判断",
193
- removeOperator: "移除当前运算",
194
- keepLeftOperand: "移除运算并保留左侧",
195
- keepRightOperand: "移除运算并保留右侧",
196
- predicateCategory: {
197
- collection: "集合判断",
198
- range: "范围判断",
199
- 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}。"
200
64
  },
201
- changeOperator: "修改运算符",
202
- backToNodeActions: "返回节点操作",
203
- revertSource: "恢复有效公式",
204
- externalConflict: "外部公式已更新,请选择要保留的版本。",
205
- keepLocal: "保留当前草稿",
206
- useExternal: "使用外部版本",
207
- validationPassed: "校验通过",
208
- validationErrors: "{count} 个错误",
209
- validationWarnings: "{count} 个提示",
210
- selection: "当前节点",
211
- nodeType: "节点类型",
212
- noSelection: "选择画布中的节点以查看详情",
213
- diagnostics: "校验结果",
214
- noDiagnostics: "未发现问题",
215
- formulaText: "有效公式文本",
216
- showFullFormula: "查看完整公式",
217
- hideFullFormula: "收起完整公式",
218
- sourceJson: "查看源码",
219
- copySourceJson: "复制源码 JSON",
220
- viewTools: "画布视图工具",
221
- zoomIn: "放大画布",
222
- zoomOut: "缩小画布",
223
- resetView: "复位画布视图",
224
- lastValidFormulaHint: "源码草稿有误,当前展示并复制最后一次有效公式",
225
- showDiagnostics: "展开校验详情",
226
- hideDiagnostics: "收起校验详情",
227
- clearSearch: "清空搜索",
228
- filterLoadedResources: "筛选已加载内容",
229
- viewResourceDetail: "查看{name}详情",
230
- resourceDetail: "{name}详情",
231
- closeResourceDetail: "关闭资源详情",
232
- resourceDisabled: "已停用",
233
- resourceMissing: "已失效",
234
- resourceForbidden: "无权限",
235
- resourceIncompatible: "版本不兼容",
236
- resourceId: "资源标识",
237
- sourceId: "数据源",
238
- version: "版本",
239
- returnType: "返回类型",
240
- description: "描述",
241
- fieldPath: "字段路径",
242
- resourceStatus: "资源状态",
243
- signatureRules: "参数规则",
244
- examples: "示例",
245
- operationSyntax: "运算结构",
246
- operatorSymbol: "运算符",
247
- operandTypes: "操作数类型",
248
- nullable: "允许空值",
249
- unit: "单位",
250
- dynamicInference: "动态推导",
251
- cannotDisplay: "无法展示",
252
- clearCollectionValue: "清空集合值",
253
- deleteCollectionValue: "删除集合值",
254
- addCollectionValue: "添加集合值",
255
- addFunctionArgument: "添加函数参数",
256
- currentReplacementTarget: "当前替换目标",
257
- replaceCurrentNode: "替换当前节点",
258
- replacing: "替换中",
259
- replace: "替换",
260
- clearUnavailableResource: "清空失效资源",
261
- replacingResource: "正在替换“{name}”",
262
- cancelReplacement: "取消替换",
263
- confirmReplacement: "确认替换",
264
- replacementDescription: "替换后将删除当前节点包含的全部子表达式,是否继续?",
265
- replacementWarning: "此操作只替换当前选中的节点,已包含的子表达式无法恢复。",
266
- continueReplacement: "继续替换",
267
- commandBlocked: {
268
- targetRequired: "请先选择公式中的目标位置",
269
- targetNotFound: "目标节点已不存在,请重新选择",
270
- resourceUnavailable: "当前资源不可用",
271
- replacementRequired: "当前节点已有内容,请先选择“替换”",
272
- replacementUnsupported: "运算符不能替换节点,请选择字段、参数或函数",
273
- resourceTypeIncompatible: "资源类型与当前参数槽不兼容",
274
- functionNotFound: "函数定义不存在或尚未加载",
275
- functionSignatureNotFound: "没有符合当前参数的函数签名",
276
- functionSignatureAmbiguous: "存在多个可用函数签名,请明确选择",
277
- functionArgumentLoss: "该操作会丢失已有函数参数",
278
- functionArgumentLimit: "函数参数已达到上限",
279
- functionArgumentRequired: "必填函数参数不能删除",
280
- inValueRequired: "集合条件至少需要保留一个值槽位",
281
- editorLocked: "当前编辑器不可修改"
282
- }
283
- },
284
- validation: {
285
- ...e.fin.validation,
286
- required: "不能为空",
287
- format: "格式不正确",
288
- min: "不能小于",
289
- max: "不能大于",
290
- failed: "验证失败"
291
- },
292
- crud: {
293
- ...e.fin.crud,
294
- addSuccess: "新增成功",
295
- editSuccess: "编辑成功",
296
- addFailed: "新增失败",
297
- editFailed: "编辑失败",
298
- columnSettings: {
299
- showColumns: "显示列",
300
- 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: "资源源未配置依赖解析器"
301
98
  }
302
99
  }
303
100
  }
304
101
  };
305
102
  export {
306
- o as default
103
+ e as default
307
104
  };