@axewo/fin-locale 2.0.11 → 3.0.0

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 (71) hide show
  1. package/README.md +15 -16
  2. package/dist/create-i18n.cjs +1 -0
  3. package/dist/create-i18n.mjs +77 -0
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.mjs +12 -6
  6. package/dist/locales/en/formula-additions.cjs +1 -0
  7. package/dist/locales/en/formula-additions.mjs +104 -0
  8. package/dist/locales/en/index.cjs +1 -0
  9. package/dist/{index4.mjs → locales/en/index.mjs} +2 -1
  10. package/dist/locales/en/platform.cjs +1 -0
  11. package/dist/locales/en/platform.mjs +78 -0
  12. package/dist/locales/en/ui-additions.cjs +1 -0
  13. package/dist/locales/en/ui-additions.mjs +44 -0
  14. package/dist/locales/en.cjs +1 -0
  15. package/dist/locales/en.mjs +4 -0
  16. package/dist/locales/zh-CN/formula-additions.cjs +1 -0
  17. package/dist/locales/zh-CN/formula-additions.mjs +104 -0
  18. package/dist/locales/zh-CN/index.cjs +1 -0
  19. package/dist/{index3.mjs → locales/zh-CN/index.mjs} +2 -1
  20. package/dist/locales/zh-CN/platform.cjs +1 -0
  21. package/dist/locales/zh-CN/platform.mjs +78 -0
  22. package/dist/locales/zh-CN/ui-additions.cjs +1 -0
  23. package/dist/{index5.mjs → locales/zh-CN/ui-additions.mjs} +17 -0
  24. package/dist/locales/zh-CN.cjs +1 -0
  25. package/dist/locales/zh-CN.mjs +4 -0
  26. package/dist/types/create-i18n.d.ts +17 -3
  27. package/dist/types/create-i18n.d.ts.map +1 -1
  28. package/dist/types/entries/en.d.ts +3 -0
  29. package/dist/types/entries/en.d.ts.map +1 -0
  30. package/dist/types/entries/zh-CN.d.ts +3 -0
  31. package/dist/types/entries/zh-CN.d.ts.map +1 -0
  32. package/dist/types/index.d.ts +3 -3
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/dist/types/locales/en/dashboard-additions.d.ts +156 -0
  35. package/dist/types/locales/en/dashboard-additions.d.ts.map +1 -0
  36. package/dist/types/locales/en/dashboard-core-additions.d.ts +248 -0
  37. package/dist/types/locales/en/dashboard-core-additions.d.ts.map +1 -0
  38. package/dist/types/locales/en/formula-additions.d.ts +103 -0
  39. package/dist/types/locales/en/formula-additions.d.ts.map +1 -0
  40. package/dist/types/{lang → locales}/en/index.d.ts +17 -0
  41. package/dist/types/{lang → locales}/en/index.d.ts.map +1 -1
  42. package/dist/types/locales/en/platform.d.ts +78 -0
  43. package/dist/types/locales/en/platform.d.ts.map +1 -0
  44. package/dist/types/locales/en/ui-additions.d.ts +53 -0
  45. package/dist/types/locales/en/ui-additions.d.ts.map +1 -0
  46. package/dist/types/locales/en.d.ts +4 -0
  47. package/dist/types/locales/zh-CN/dashboard-additions.d.ts +156 -0
  48. package/dist/types/locales/zh-CN/dashboard-additions.d.ts.map +1 -0
  49. package/dist/types/locales/zh-CN/dashboard-core-additions.d.ts +249 -0
  50. package/dist/types/locales/zh-CN/dashboard-core-additions.d.ts.map +1 -0
  51. package/dist/types/locales/zh-CN/formula-additions.d.ts +103 -0
  52. package/dist/types/locales/zh-CN/formula-additions.d.ts.map +1 -0
  53. package/dist/types/{lang → locales}/zh-CN/index.d.ts +17 -0
  54. package/dist/types/{lang → locales}/zh-CN/index.d.ts.map +1 -1
  55. package/dist/types/locales/zh-CN/platform.d.ts +78 -0
  56. package/dist/types/locales/zh-CN/platform.d.ts.map +1 -0
  57. package/dist/types/locales/zh-CN/ui-additions.d.ts +53 -0
  58. package/dist/types/locales/zh-CN/ui-additions.d.ts.map +1 -0
  59. package/dist/types/locales/zh-CN.d.ts +4 -0
  60. package/package.json +24 -2
  61. package/dist/index2.cjs +0 -1
  62. package/dist/index2.mjs +0 -52
  63. package/dist/index3.cjs +0 -1
  64. package/dist/index4.cjs +0 -1
  65. package/dist/index5.cjs +0 -1
  66. package/dist/index6.cjs +0 -1
  67. package/dist/index6.mjs +0 -27
  68. package/dist/types/lang/en/ui-additions.d.ts +0 -26
  69. package/dist/types/lang/en/ui-additions.d.ts.map +0 -1
  70. package/dist/types/lang/zh-CN/ui-additions.d.ts +0 -26
  71. package/dist/types/lang/zh-CN/ui-additions.d.ts.map +0 -1
package/README.md CHANGED
@@ -1,26 +1,25 @@
1
1
  # @axewo/fin-locale
2
2
 
3
- > Fin UI 国际化多语言语言包
3
+ Fin UI 与微前端统一的多语言入口,基于 vue-i18n,内置简体中文和英文。应用只需维护业务语言映射。
4
4
 
5
- ## 📦 安装
5
+ ```sh
6
+ pnpm add @axewo/fin-locale vue-i18n
7
+ ```
6
8
 
7
- ```bash
8
- # 使用 pnpm
9
- pnpm add @axewo/fin-locale
9
+ ```ts
10
+ import { installFinI18n, useFinLocale } from '@axewo/fin-locale'
11
+ import messages from './locales'
10
12
 
11
- # 使用 npm
12
- npm install @axewo/fin-locale
13
+ // 每个 Vue App 独立注入,先于根组件 setup。
14
+ installFinI18n(app, { locale: 'zh-CN', messages })
13
15
 
14
- # 使用 yarn
15
- yarn add @axewo/fin-locale
16
+ // 在组件 setup 中使用。
17
+ const { t, locale, setLocale } = useFinLocale()
18
+ setLocale('en')
16
19
  ```
17
20
 
18
- ## 🚀 使用说明
19
-
20
- ```typescript
21
- import { ... } from '@axewo/fin-locale'
22
- ```
21
+ 业务 `messages` 为 `{ 'zh-CN': {...}, en: {...} }`,递归合并公共词条;业务命名空间建议独立于 `fin.*`。使用 fin-ui 的 `FinLocaleProvider` 让 Fin UI 和 Element Plus 跟随同一语言与尺寸。
23
22
 
24
- ## 📄 License
23
+ 包根导出 `zhCN`、`en`、`createFinI18n`、`installFinI18n`、`useFinLocale`、`normalizeFinLocale`、`translateFinBuiltin`、`useFinText`。规范子路径为 `/locales/zh-CN` 和 `/locales/en`,旧 `/lang/zh-CN`、`/lang/en` 保留兼容;源码只维护 `src/locales`。
25
24
 
26
- [MIT](./LICENSE)
25
+ `useFinText` 供可独立使用的公共展示组件读取当前 App 的翻译,未注入时回退中文;业务页面应使用 `useFinLocale`。非 Vue 启动边界使用 `translateFinBuiltin(key, locale)`,不创建共享全局实例。
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue-i18n"),L=require("vue"),o=require("@axewo/fin-core/locale"),F=require("./locales/zh-CN/index.cjs"),p=require("./locales/zh-CN/formula-additions.cjs"),M=require("./locales/en/index.cjs"),_=require("./locales/en/formula-additions.cjs"),d=require("./locales/zh-CN/platform.cjs"),I=require("./locales/en/platform.cjs");function r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const i=o.mergeLocaleMessages(o.mergeLocaleMessages(F,p),d),a=o.mergeLocaleMessages(o.mergeLocaleMessages(M,_),I);function g(e,t="zh-CN"){let n=o.normalizeFinLocale(t)==="en"?a:i;for(const s of e.split("."))n=r(n)?n[s]:void 0;return typeof n=="string"?n:e}function z(e){const t={"zh-CN":o.mergeLocaleMessages({},i),en:o.mergeLocaleMessages({},a)};if(!r(e))return t;for(const[n,s]of Object.entries(e))r(s)&&(t[n]=t[n]?o.mergeLocaleMessages(t[n],s):o.mergeLocaleMessages({},s));return t}function f(e){const{messages:t,...n}=e||{};return u.createI18n({locale:"zh-CN",fallbackLocale:"zh-CN",legacy:!1,...n,messages:z(t)})}function m(){const{t:e,locale:t}=u.useI18n({useScope:"global"});return{t:e,locale:t,setLocale:n=>{t.value=o.normalizeFinLocale(n)}}}function b(){var n;const e=(n=L.getCurrentInstance())==null?void 0:n.appContext.app;if(!(e!=null&&e.__VUE_I18N_SYMBOL__))return s=>g(s);const{t}=m();return s=>t(s)}function q(e,t){const n=e,s=n.__VUE_I18N_SYMBOL__;if(s){const l=n._context.provides[s];if(l)return l}const c=f(t);return e.use(c),c}Object.defineProperty(exports,"normalizeFinLocale",{enumerable:!0,get:()=>o.normalizeFinLocale});exports.createFinI18n=f;exports.en=a;exports.installFinI18n=q;exports.translateFinBuiltin=g;exports.useFinLocale=m;exports.useFinText=b;exports.zhCN=i;
@@ -0,0 +1,77 @@
1
+ import { createI18n as m, useI18n as u } from "vue-i18n";
2
+ import { getCurrentInstance as p } from "vue";
3
+ import { mergeLocaleMessages as r, normalizeFinLocale as c } from "@axewo/fin-core/locale";
4
+ import { normalizeFinLocale as U } from "@axewo/fin-core/locale";
5
+ import g from "./locales/zh-CN/index.mjs";
6
+ import _ from "./locales/zh-CN/formula-additions.mjs";
7
+ import z from "./locales/en/index.mjs";
8
+ import h from "./locales/en/formula-additions.mjs";
9
+ import C from "./locales/zh-CN/platform.mjs";
10
+ import F from "./locales/en/platform.mjs";
11
+ function s(e) {
12
+ return typeof e == "object" && e !== null && !Array.isArray(e);
13
+ }
14
+ const l = r(r(g, _), C), f = r(r(z, h), F);
15
+ function N(e, n = "zh-CN") {
16
+ let t = c(n) === "en" ? f : l;
17
+ for (const o of e.split(".")) t = s(t) ? t[o] : void 0;
18
+ return typeof t == "string" ? t : e;
19
+ }
20
+ function I(e) {
21
+ const n = {
22
+ "zh-CN": r({}, l),
23
+ en: r({}, f)
24
+ };
25
+ if (!s(e))
26
+ return n;
27
+ for (const [t, o] of Object.entries(e))
28
+ s(o) && (n[t] = n[t] ? r(n[t], o) : r({}, o));
29
+ return n;
30
+ }
31
+ function L(e) {
32
+ const { messages: n, ...t } = e || {};
33
+ return m({
34
+ locale: "zh-CN",
35
+ fallbackLocale: "zh-CN",
36
+ legacy: !1,
37
+ ...t,
38
+ messages: I(n)
39
+ });
40
+ }
41
+ function d() {
42
+ const { t: e, locale: n } = u({ useScope: "global" });
43
+ return {
44
+ t: e,
45
+ locale: n,
46
+ setLocale: (t) => {
47
+ n.value = c(t);
48
+ }
49
+ };
50
+ }
51
+ function v() {
52
+ var t;
53
+ const e = (t = p()) == null ? void 0 : t.appContext.app;
54
+ if (!(e != null && e.__VUE_I18N_SYMBOL__)) return (o) => N(o);
55
+ const { t: n } = d();
56
+ return (o) => n(o);
57
+ }
58
+ function E(e, n) {
59
+ const t = e, o = t.__VUE_I18N_SYMBOL__;
60
+ if (o) {
61
+ const a = t._context.provides[o];
62
+ if (a)
63
+ return a;
64
+ }
65
+ const i = L(n);
66
+ return e.use(i), i;
67
+ }
68
+ export {
69
+ L as createFinI18n,
70
+ f as en,
71
+ E as installFinI18n,
72
+ U as normalizeFinLocale,
73
+ N as translateFinBuiltin,
74
+ d as useFinLocale,
75
+ v as useFinText,
76
+ l as zhCN
77
+ };
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("./create-i18n.cjs"),n=require("./locales/zh-CN/formula-additions.cjs"),i=require("./locales/en/formula-additions.cjs"),t=require("@axewo/fin-core/locale");exports.createFinI18n=e.createFinI18n;exports.en=e.en;exports.installFinI18n=e.installFinI18n;exports.translateFinBuiltin=e.translateFinBuiltin;exports.useFinLocale=e.useFinLocale;exports.useFinText=e.useFinText;exports.zhCN=e.zhCN;exports.zhCNFormulaAdditions=n;exports.enFormulaAdditions=i;Object.defineProperty(exports,"normalizeFinLocale",{enumerable:!0,get:()=>t.normalizeFinLocale});
package/dist/index.mjs CHANGED
@@ -1,10 +1,16 @@
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 o, en as i, installFinI18n as t, translateFinBuiltin as a, useFinLocale as r, useFinText as l, zhCN as s } from "./create-i18n.mjs";
2
+ import { default as m } from "./locales/zh-CN/formula-additions.mjs";
3
+ import { default as d } from "./locales/en/formula-additions.mjs";
4
+ import { normalizeFinLocale as x } from "@axewo/fin-core/locale";
4
5
  export {
5
- n as createFinI18n,
6
+ o as createFinI18n,
6
7
  i as en,
7
- o as installFinI18n,
8
+ d as enFormulaAdditions,
9
+ t as installFinI18n,
10
+ x as normalizeFinLocale,
11
+ a as translateFinBuiltin,
8
12
  r as useFinLocale,
9
- f as zhCN
13
+ l as useFinText,
14
+ s as zhCN,
15
+ m as zhCNFormulaAdditions
10
16
  };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,104 @@
1
+ const e = {
2
+ fin: {
3
+ mathEditor: {
4
+ diagnosticMessage: {
5
+ emptyFormula: "The formula cannot be empty.",
6
+ expectedTypeMismatch: "The formula result must be {expected}, but it is {actual}.",
7
+ placeholder: "Complete the formula placeholder first.",
8
+ unknownReference: "Resource “{resourceId}” could not be resolved.",
9
+ resourceDisabled: "Resource “{label}” is disabled.",
10
+ resourceMissing: "Resource “{label}” does not exist.",
11
+ resourceForbidden: "You do not have access to resource “{label}”.",
12
+ resourceIncompatible: "The version or type of resource “{label}” is incompatible.",
13
+ unknownUnit: "Resource “{resourceId}” uses the unknown unit “{unit}”.",
14
+ customValidatorFailed: "The custom formula validator failed.",
15
+ candidateRequired: "{operator} requires at least one candidate value.",
16
+ unknownFunction: "Function “{functionId}” version “{version}” could not be resolved.",
17
+ disabledFunction: "Function “{label}” is disabled.",
18
+ unknownFunctionSignature: "Function “{functionId}” has no signature “{signatureId}”.",
19
+ ambiguousFunctionSignature: "Function “{functionId}” matches multiple equivalent signatures. Select one explicitly.",
20
+ noMatchingFunctionSignature: "Function “{functionId}” has no signature matching {actual} arguments.",
21
+ invalidArity: "Function “{functionId}” received {actual} arguments; {expected} required.",
22
+ returnTypeInferenceFailed: "The return type of function “{functionId}” could not be inferred.",
23
+ emptyCase: "A conditional expression requires at least one condition-result branch.",
24
+ exponentDimensionless: "The exponent must be dimensionless.",
25
+ dimensionalExponentConstant: "A dimensional base requires a constant numeric exponent.",
26
+ incompatibleTypes: "{left} cannot be compared with {right}.",
27
+ conditionBoolean: "A condition must be boolean, but it is {actual}.",
28
+ incompatibleBranches: "Branch result types must be compatible; current types are {left} and {right}.",
29
+ invalidArgumentType: "Argument {position} ({name}) of function “{functionId}” requires {expected}, but received {actual}.",
30
+ returnUnitInferenceFailed: "The return unit of function “{functionId}” could not be inferred.",
31
+ powerExponentDimensionless: "The exponent of a power function must be dimensionless.",
32
+ invalidType: "Expected type {expected}, but received {actual}.",
33
+ incompatibleUnits: "Units “{left}” and “{right}” have incompatible dimensions.",
34
+ complexityNodes: "Formula node count ({value}) exceeds the limit ({limit}).",
35
+ complexityDepth: "Formula nesting depth ({value}) exceeds the limit ({limit}).",
36
+ complexityFunctions: "Formula function call count ({value}) exceeds the limit ({limit}).",
37
+ complexityReferences: "Formula resource reference count ({value}) exceeds the limit ({limit}).",
38
+ complexityScore: "Formula complexity score ({value}) exceeds the limit ({limit}).",
39
+ dependencyCycle: "The formula has a circular dependency: {path}.",
40
+ invalidDocument: "The formula document is invalid at {path}."
41
+ },
42
+ diagnosticSuggestion: {
43
+ replaceOrClear: "Replace it with an available resource or clear this node.",
44
+ requestPermissionOrReplace: "Request access or select another available resource.",
45
+ replaceCompatibleVersion: "Replace it with a compatible resource version."
46
+ },
47
+ parseError: {
48
+ unexpectedCharacter: "Unexpected character “{found}”.",
49
+ unterminatedString: "The string is not closed; add a closing single quote.",
50
+ unterminatedParameterReference: "The parameter reference is not closed; add “{closing}”.",
51
+ unterminatedIndicatorReference: "The indicator reference is not closed; add “{closing}”.",
52
+ emptyParameterReference: "A parameter reference key cannot be empty.",
53
+ emptyIndicatorReference: "An indicator reference key cannot be empty.",
54
+ invalidNumber: "Scientific notation requires at least one exponent digit.",
55
+ trailingInput: "Unexpected content “{found}” follows the expression.",
56
+ emptyInList: "{operator} requires at least one candidate value.",
57
+ expressionExpectedAtEnd: "An expression is required here, but the source has ended.",
58
+ expressionExpected: "An expression is required here, but “{found}” was found.",
59
+ invalidIfArity: "IF requires exactly 3 arguments, but received {actual}.",
60
+ invalidCase: "CASE requires at least one WHEN … THEN branch.",
61
+ expectedBeforeEnd: "{expected} is required before the end of the source.",
62
+ expectedToken: "Expected {expected}, but found “{found}”.",
63
+ maximumDepth: "Expression nesting exceeds the configured limit of {maxDepth}."
64
+ },
65
+ protocolError: {
66
+ invalidJson: "The formula document is not valid plain JSON.",
67
+ invalidType: "Formula document field “{path}” has an invalid type.",
68
+ missingField: "Required formula document field “{path}” is missing.",
69
+ unknownField: "The formula document contains unknown field “{path}”.",
70
+ unknownSchemaVersion: "Formula schema version {version} is not supported.",
71
+ migrationFailed: "Formula schema migration failed.",
72
+ unknownNodeType: "The formula contains an unknown node type.",
73
+ invalidLiteral: "Formula literal “{path}” is invalid.",
74
+ invalidOperator: "Formula operator “{path}” is invalid.",
75
+ invalidReference: "Formula reference “{path}” is invalid.",
76
+ invalidFunction: "Formula function “{path}” is invalid.",
77
+ invalidChildCount: "Formula node “{path}” has an invalid number of children.",
78
+ duplicateId: "Formula node ID “{path}” is duplicated."
79
+ },
80
+ serverValidationError: {
81
+ missingTransport: "No server validation transport is configured.",
82
+ invalidDocument: "The formula document is invalid and cannot be sent for server validation.",
83
+ emptyScenario: "The server validation scenario cannot be empty.",
84
+ revisionMismatch: "The server returned revision {actual}; the request used revision {expected}.",
85
+ staleResult: "The formula changed, so the server result for the old revision was discarded.",
86
+ timeout: "The server validation request exceeded {timeout} milliseconds.",
87
+ cancelled: "The server validation request was cancelled.",
88
+ unauthorized: "Server validation is unauthorized.",
89
+ failed: "The server validation request failed.",
90
+ invalidResponse: "The server validation response is invalid."
91
+ },
92
+ resourceReason: {
93
+ resolverNoResult: "The resolver did not return this dependency",
94
+ unavailable: "The resource is currently unavailable",
95
+ versionIncompatible: "The resource version is incompatible",
96
+ notFound: "The resource does not exist or was deleted",
97
+ resolverNotConfigured: "The resource source has no dependency resolver"
98
+ }
99
+ }
100
+ }
101
+ };
102
+ export {
103
+ e as default
104
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./ui-additions.cjs"),a={fin:{upload:e.fin.upload,common:{confirm:"Confirm",cancel:"Cancel",close:"Close",save:"Save",submit:"Submit",reset:"Reset",search:"Search",refresh:"Refresh",loading:"Loading...",noData:"No Data",operation:"Operation",more:"More",index:"No.",edit:"Edit",delete:"Delete",view:"View",add:"Add",total:"Total",undo:"Undo",editMode:"Edit Mode",viewMode:"View Mode",withdraw:"Withdraw",yes:"Yes",no:"No",confirmDelete:"Are you sure you want to delete this record?",confirmDeleteTitle:"Delete Confirmation",deleteSuccess:"Deleted successfully",deleteFailed:"Delete failed",deleteConfirm:"Confirm Delete",saveSuccess:"Saved successfully",saveFailed:"Save failed",retry:"Retry",loadFailed:"Load failed",export:"Export",columnSettings:"Column Settings",requestFailed:"Request failed, please try again later",viewDetail:"Details"},finCopy:{copyEmptyContent:"Nothing to copy",copySuccess:"Copied successfully",copyFailed:"Copy failed"},copy:{action:"Copy",noContent:"Nothing to copy",success:"Copied successfully",failed:"Copy failed",copyEmptyContent:"Nothing to copy",copySuccess:"Copied successfully",copyFailed:"Copy failed"},finForm:{submit:"Submit",reset:"Reset",query:"Search",cancel:"Cancel",expand:"Expand",collapse:"Collapse",selectPlaceholder:"Please select {label}",inputPlaceholder:"Please enter {label}",dateRangeStartPlaceholder:"Start date",dateRangeEndPlaceholder:"End date",yes:"Yes",no:"No",validationFailed:"Validation failed",formRefUnavailable:"Form ref not available",submitFailed:"Submission failed, please try again later",validationSummary:"Form validation failed, please check {count} fields",required:"{label} is required"},form:{...e.fin.form,submit:"Submit",reset:"Reset",query:"Search",cancel:"Cancel",expand:"Expand",collapse:"Collapse",pleaseSelect:"Please select {label}",selectPlaceholder:"Please select",pleaseInput:"Please enter {label}",inputPlaceholder:"Please enter {label}",dateRangeStartPlaceholder:"Start date",dateRangeEndPlaceholder:"End date",startTime:"Start time",endTime:"End time",yes:"Yes",no:"No",validationFailed:"Validation failed",formRefUnavailable:"Form ref not available",submitFailed:"Submission failed, please try again later",validationSummary:"Form validation failed, please check {count} fields",required:"{label} is required"},finSelect:{searchPlaceholder:"Search by keyword",selectPlaceholder:"Please select",noData:"No data",loading:"Loading...",loadMore:"Load more",allLoaded:"All data loaded"},select:{searchPlaceholder:"Search by keyword",selectPlaceholder:"Please select",placeholder:"Please select",noData:"No data",loading:"Loading...",loadMore:"Load more",allLoaded:"All data loaded"},pageHeader:{back:"Back"},langInput:{...e.fin.langInput,pleaseInput:"Please enter"},mathEditor:{title:"Formula editor",subtitle:"Drag or click resources; edit visually or as source",searchPlaceholder:"Search parameters, indicators, or functions",searchReferences:"Search parameters or indicators",searchFunctions:"Search functions",parameters:"Parameters",indicators:"Indicators",functions:"Functions",resources:"References",tools:"Functions and constants",inspector:"Inspector",toolbar:"Formula editor toolbar",operators:"Operators",constants:"Constants",addConstant:"Add to expression",invalidConstant:"Enter a valid decimal number",constantOutOfRange:"Constant is outside the allowed range",structureActions:"Structure actions",groupExpression:"Add parentheses",ungroupExpression:"Remove parentheses",collapseReferences:"Collapse references",expandReferences:"Expand references",collapseTools:"Collapse functions and constants",expandTools:"Expand functions and constants",unary:"Unary",binary:"Binary",parameterCount:"{count} parameters",signatureCount:"{count} signatures",noFunctions:"No matching functions",operatorCategory:{arithmetic:"Arithmetic",comparison:"Comparison",logical:"Logical"},functionCategory:{all:"All",condition:"Conditional",aggregation:"Aggregation",math:"Math",string:"String",date:"Date",statistics:"Statistics"},undo:"Undo",redo:"Redo",reset:"Reset",clear:"Clear",visualMode:"Visual",sourceMode:"Source",canvas:"Formula canvas",panCanvasHint:"Drag the canvas or use arrow keys to pan; horizontal scrolling also navigates long formulas",emptyHint:"Add a parameter, indicator, or function",loading:"Loading resources...",loadFailed:"Failed to load resources",retry:"Retry",noResources:"No matching resources",ungroupedReferences:"Other",loadMore:"Load more",placeholder:"Required",deleteNode:"Delete node",nodeActions:"Node actions",insertLeft:"Insert on the left",insertRight:"Insert on the right",addPrefixOperator:"Add prefix operator",addPredicateOperator:"Add condition",removeOperator:"Remove current operation",keepLeftOperand:"Remove operation and keep left",keepRightOperand:"Remove operation and keep right",predicateCategory:{collection:"Collection tests",range:"Range tests",null:"Null tests"},changeOperator:"Change operator",backToNodeActions:"Back to node actions",revertSource:"Restore valid formula",externalConflict:"The external formula changed. Choose which version to keep.",keepLocal:"Keep draft",useExternal:"Use external",validationPassed:"Validation passed",validationErrors:"{count} errors",validationWarnings:"{count} warnings",selection:"Selected node",nodeType:"Node type",noSelection:"Select a node in the canvas to inspect it",diagnostics:"Diagnostics",noDiagnostics:"No issues found",formulaText:"Valid formula text",showFullFormula:"View full formula",hideFullFormula:"Hide full formula",sourceJson:"View source",copySourceJson:"Copy source JSON",viewTools:"Canvas view controls",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset canvas view",lastValidFormulaHint:"The source draft is invalid; showing and copying the last valid formula",showDiagnostics:"Show validation details",hideDiagnostics:"Hide validation details",clearSearch:"Clear search",filterLoadedResources:"Filter loaded resources",viewResourceDetail:"View {name} details",resourceDetail:"{name} details",closeResourceDetail:"Close resource details",resourceDisabled:"Disabled",resourceMissing:"Unavailable",resourceForbidden:"No access",resourceIncompatible:"Incompatible version",resourceId:"Resource ID",sourceId:"Source ID",version:"Version",returnType:"Return type",description:"Description",fieldPath:"Field path",resourceStatus:"Resource status",signatureRules:"Signatures",examples:"Examples",operationSyntax:"Operation syntax",operatorSymbol:"Operator",operandTypes:"Operand types",nullable:"Nullable",unit:"Unit",dynamicInference:"Dynamically inferred",cannotDisplay:"Unable to display",clearCollectionValue:"Clear collection value",deleteCollectionValue:"Delete collection value",addCollectionValue:"Add collection value",addFunctionArgument:"Add function argument",currentReplacementTarget:"Current replacement target",replaceCurrentNode:"Replace current node",replacing:"Replacing",replace:"Replace",clearUnavailableResource:"Clear unavailable resource",replacingResource:"Replacing “{name}”",cancelReplacement:"Cancel replacement",confirmReplacement:"Confirm replacement",replacementDescription:"Replacing this node removes all nested expressions. Continue?",replacementWarning:"Only the selected node will be replaced. Its nested expressions cannot be restored.",continueReplacement:"Continue replacement",commandBlocked:{targetRequired:"Select a target position in the formula first",targetNotFound:"The target node no longer exists; select it again",resourceUnavailable:"This resource is unavailable",replacementRequired:"This node already has content; choose Replace first",replacementUnsupported:"Operators cannot replace nodes; choose a field, parameter, or function",resourceTypeIncompatible:"The resource type is incompatible with this argument slot",functionNotFound:"The function definition does not exist or is not loaded",functionSignatureNotFound:"No function signature matches the current arguments",functionSignatureAmbiguous:"Multiple function signatures match; choose one explicitly",functionArgumentLoss:"This operation would discard existing function arguments",functionArgumentLimit:"The function has reached its argument limit",functionArgumentRequired:"A required function argument cannot be deleted",inValueRequired:"A collection condition must keep at least one value slot",editorLocked:"The editor cannot be modified"}},validation:{...e.fin.validation,required:"Cannot be empty",format:"Invalid format",min:"Cannot be less than",max:"Cannot be greater than",failed:"Validation failed"},crud:{...e.fin.crud,addSuccess:"Added successfully",editSuccess:"Updated successfully",addFailed:"Add failed",editFailed:"Update failed",columnSettings:{showColumns:"Show Columns",save:"Save Settings"}}}};module.exports=a;
@@ -1,6 +1,7 @@
1
- import e from "./index6.mjs";
1
+ import e from "./ui-additions.mjs";
2
2
  const o = {
3
3
  fin: {
4
+ upload: e.fin.upload,
4
5
  common: {
5
6
  confirm: "Confirm",
6
7
  cancel: "Cancel",
@@ -0,0 +1 @@
1
+ "use strict";const e={fin:{shell:{closePopover:"Close popover",expand:"Expand sidebar",collapse:"Collapse sidebar",search:"Search menus",searchPlaceholder:"Search menus and apps…",searchTitle:"Menu search",noResults:"No matching menus",notifications:"Notifications",noMessages:"Message service is not connected",messageHint:"Notifications will appear here after the service is connected.",profile:"My profile",exiting:"Confirming sign out…",closeTabMenu:"Close tab menu",leftTabs:"Scroll tabs left",rightTabs:"Scroll tabs right",openedPages:"Open pages",moreTabs:"More tab actions",tabMenu:"Tab actions",refresh:"Refresh page",close:"Close current",closeOthers:"Close others",closeLeft:"Close left",closeRight:"Close right",closeAll:"Close all business pages",mainNav:"Main navigation",ready:"Workspace is ready",closeTab:"Close",pageLoading:"Loading page…",pageFailed:"Page failed to load",reload:"Reload"},errors:{unauthenticated:"Your session has expired. Please sign in again.",forbidden:"403: You do not have permission for this action.",timeout:"The operation timed out. Please try again.",network:"Connection failed. Please check your network.",unknown:"The operation failed. Please try again or contact support.",cancelled:"Operation cancelled"},auth:{independent:"Standalone mode",login:"Sign in",logout:"Sign out",username:"Username",password:"Password",required:"Sign in to access business features.",devSettings:"Development settings",token:"Test token",verify:"Verify and apply",clear:"Clear credentials",close:"Close",configured:"Credentials configured",unconfigured:"No credentials configured",memoryHint:"Credentials are stored in memory and cleared when the page reloads.",developmentStorageHint:"Development credentials are stored locally and validated on reload. Clear credentials or sign out to remove them.",verifyHint:"User and permissions are updated only after the session endpoint validates the token.",saved:"Credentials verified",cleared:"Credentials cleared"},micro:{connected:"Connected to host",disconnected:"Host unavailable",workspace:"Workspace",language:"Language",standalone:"Standalone mode",loading:"Starting application, please wait…",retry:"Retry startup",startupFailed:"Application failed to start",startupCancelled:"Startup was cancelled. You can retry."}}};module.exports=e;
@@ -0,0 +1,78 @@
1
+ const e = {
2
+ fin: {
3
+ shell: {
4
+ closePopover: "Close popover",
5
+ expand: "Expand sidebar",
6
+ collapse: "Collapse sidebar",
7
+ search: "Search menus",
8
+ searchPlaceholder: "Search menus and apps…",
9
+ searchTitle: "Menu search",
10
+ noResults: "No matching menus",
11
+ notifications: "Notifications",
12
+ noMessages: "Message service is not connected",
13
+ messageHint: "Notifications will appear here after the service is connected.",
14
+ profile: "My profile",
15
+ exiting: "Confirming sign out…",
16
+ closeTabMenu: "Close tab menu",
17
+ leftTabs: "Scroll tabs left",
18
+ rightTabs: "Scroll tabs right",
19
+ openedPages: "Open pages",
20
+ moreTabs: "More tab actions",
21
+ tabMenu: "Tab actions",
22
+ refresh: "Refresh page",
23
+ close: "Close current",
24
+ closeOthers: "Close others",
25
+ closeLeft: "Close left",
26
+ closeRight: "Close right",
27
+ closeAll: "Close all business pages",
28
+ mainNav: "Main navigation",
29
+ ready: "Workspace is ready",
30
+ closeTab: "Close",
31
+ pageLoading: "Loading page…",
32
+ pageFailed: "Page failed to load",
33
+ reload: "Reload"
34
+ },
35
+ errors: {
36
+ unauthenticated: "Your session has expired. Please sign in again.",
37
+ forbidden: "403: You do not have permission for this action.",
38
+ timeout: "The operation timed out. Please try again.",
39
+ network: "Connection failed. Please check your network.",
40
+ unknown: "The operation failed. Please try again or contact support.",
41
+ cancelled: "Operation cancelled"
42
+ },
43
+ auth: {
44
+ independent: "Standalone mode",
45
+ login: "Sign in",
46
+ logout: "Sign out",
47
+ username: "Username",
48
+ password: "Password",
49
+ required: "Sign in to access business features.",
50
+ devSettings: "Development settings",
51
+ token: "Test token",
52
+ verify: "Verify and apply",
53
+ clear: "Clear credentials",
54
+ close: "Close",
55
+ configured: "Credentials configured",
56
+ unconfigured: "No credentials configured",
57
+ memoryHint: "Credentials are stored in memory and cleared when the page reloads.",
58
+ developmentStorageHint: "Development credentials are stored locally and validated on reload. Clear credentials or sign out to remove them.",
59
+ verifyHint: "User and permissions are updated only after the session endpoint validates the token.",
60
+ saved: "Credentials verified",
61
+ cleared: "Credentials cleared"
62
+ },
63
+ micro: {
64
+ connected: "Connected to host",
65
+ disconnected: "Host unavailable",
66
+ workspace: "Workspace",
67
+ language: "Language",
68
+ standalone: "Standalone mode",
69
+ loading: "Starting application, please wait…",
70
+ retry: "Retry startup",
71
+ startupFailed: "Application failed to start",
72
+ startupCancelled: "Startup was cancelled. You can retry."
73
+ }
74
+ }
75
+ };
76
+ export {
77
+ e as default
78
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e={fin:{form:{sectionNavigation:"Form section navigation",sectionTitle:"Section {index}"},langInput:{inputPlaceholder:"Please enter {label}",languageNames:{simplifiedChinese:"Chinese",english:"English"}},upload:{select:"Select files",preview:"Preview",download:"Download",remove:"Remove",retry:"Retry",cancel:"Cancel upload",uploading:"Uploading",failed:"Upload failed",canceled:"Canceled",limit:"Attachment count limit reached",type:"File type is not allowed",size:"File size exceeds the limit",countTip:"Up to {limit} attachments.",sizeTip:"Each file must not exceed {size}.",countAndSizeTip:"Up to {limit} attachments, each no larger than {size}."},validation:{failed:"Validation failed",formatWithLabel:"{label} has an invalid format",minWithLabel:"{label} cannot be less than {min}",maxWithLabel:"{label} cannot be greater than {max}"},crud:{filterConditions:"Filter conditions"}}};module.exports=e;
@@ -0,0 +1,44 @@
1
+ const e = {
2
+ fin: {
3
+ form: {
4
+ sectionNavigation: "Form section navigation",
5
+ sectionTitle: "Section {index}"
6
+ },
7
+ langInput: {
8
+ inputPlaceholder: "Please enter {label}",
9
+ languageNames: {
10
+ simplifiedChinese: "Chinese",
11
+ english: "English"
12
+ }
13
+ },
14
+ upload: {
15
+ select: "Select files",
16
+ preview: "Preview",
17
+ download: "Download",
18
+ remove: "Remove",
19
+ retry: "Retry",
20
+ cancel: "Cancel upload",
21
+ uploading: "Uploading",
22
+ failed: "Upload failed",
23
+ canceled: "Canceled",
24
+ limit: "Attachment count limit reached",
25
+ type: "File type is not allowed",
26
+ size: "File size exceeds the limit",
27
+ countTip: "Up to {limit} attachments.",
28
+ sizeTip: "Each file must not exceed {size}.",
29
+ countAndSizeTip: "Up to {limit} attachments, each no larger than {size}."
30
+ },
31
+ validation: {
32
+ failed: "Validation failed",
33
+ formatWithLabel: "{label} has an invalid format",
34
+ minWithLabel: "{label} cannot be less than {min}",
35
+ maxWithLabel: "{label} cannot be greater than {max}"
36
+ },
37
+ crud: {
38
+ filterConditions: "Filter conditions"
39
+ }
40
+ }
41
+ };
42
+ export {
43
+ e as default
44
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("../create-i18n.cjs");module.exports=e.en;
@@ -0,0 +1,4 @@
1
+ import { en as f } from "../create-i18n.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,104 @@
1
+ const e = {
2
+ fin: {
3
+ mathEditor: {
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}。"
41
+ },
42
+ diagnosticSuggestion: {
43
+ replaceOrClear: "请选择可用资源替换,或清空该节点。",
44
+ requestPermissionOrReplace: "申请资源权限,或选择其他可用资源。",
45
+ replaceCompatibleVersion: "请选择兼容版本的资源替换。"
46
+ },
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}。"
64
+ },
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: "资源源未配置依赖解析器"
98
+ }
99
+ }
100
+ }
101
+ };
102
+ export {
103
+ e as default
104
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./ui-additions.cjs"),a={fin:{upload:e.fin.upload,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,6 +1,7 @@
1
- import e from "./index5.mjs";
1
+ import e from "./ui-additions.mjs";
2
2
  const o = {
3
3
  fin: {
4
+ upload: e.fin.upload,
4
5
  common: {
5
6
  confirm: "确认",
6
7
  cancel: "取消",
@@ -0,0 +1 @@
1
+ "use strict";const e={fin:{shell:{closePopover:"关闭弹出菜单",expand:"展开侧栏",collapse:"折叠侧栏",search:"搜索菜单",searchPlaceholder:"搜索菜单、应用…",searchTitle:"菜单搜索",noResults:"未找到匹配的菜单",notifications:"消息通知",noMessages:"尚未接入消息服务",messageHint:"接入后将在这里显示真实的通知消息。",profile:"个人中心",exiting:"正在确认退出…",closeTabMenu:"关闭页签菜单",leftTabs:"向左查看页签",rightTabs:"向右查看页签",openedPages:"已打开页面",moreTabs:"更多页签操作",tabMenu:"页签操作菜单",refresh:"刷新页面",close:"关闭当前",closeOthers:"关闭其他",closeLeft:"关闭左侧",closeRight:"关闭右侧",closeAll:"关闭全部业务页",mainNav:"主导航",ready:"工作空间已就绪",closeTab:"关闭",pageLoading:"页面加载中…",pageFailed:"页面加载失败",reload:"重新加载"},errors:{unauthenticated:"登录已失效,请重新登录",forbidden:"403:无权执行此操作,请联系管理员",timeout:"操作超时,请稍后重试",network:"连接失败,请检查网络后重试",unknown:"操作失败,请稍后重试或联系管理员",cancelled:"操作已取消"},auth:{independent:"独立运行",login:"登录",logout:"退出登录",username:"账号",password:"密码",required:"请登录后访问业务功能",devSettings:"开发设置",token:"测试 Token",verify:"验证并应用",clear:"清除凭据",close:"关闭",configured:"已配置凭据",unconfigured:"未配置凭据",memoryHint:"凭据仅保存在内存,刷新页面后需重新设置。",developmentStorageHint:"开发凭据保存在本地,刷新后自动验证恢复;清除凭据或退出登录时删除。",verifyHint:"验证会话接口成功后才会更新用户与权限。",saved:"凭据已验证",cleared:"凭据已清除"},micro:{connected:"宿主已连接",disconnected:"未连接宿主",workspace:"工作空间",language:"语言",standalone:"独立运行",loading:"正在启动应用,请稍候…",retry:"重试启动",startupFailed:"应用启动失败",startupCancelled:"应用启动已取消,可重试启动"}}};module.exports=e;