@axewo/fin-locale 3.0.1 → 3.0.3
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/README.md +45 -0
- package/dist/context.cjs +1 -0
- package/dist/context.mjs +30 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +24 -16
- package/dist/locale-string.cjs +1 -0
- package/dist/locale-string.mjs +45 -0
- package/dist/types/context.d.ts +16 -0
- package/dist/types/create-i18n.d.ts +0 -1
- package/dist/types/entries/en.d.ts +0 -1
- package/dist/types/entries/zh-CN.d.ts +0 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/locale-string.d.ts +23 -0
- package/dist/types/locales/en/dashboard-additions.d.ts +0 -1
- package/dist/types/locales/en/dashboard-core-additions.d.ts +0 -1
- package/dist/types/locales/en/formula-additions.d.ts +0 -1
- package/dist/types/locales/en/index.d.ts +0 -1
- package/dist/types/locales/en/platform.d.ts +0 -1
- package/dist/types/locales/en/ui-additions.d.ts +0 -1
- package/dist/types/locales/zh-CN/dashboard-additions.d.ts +0 -1
- package/dist/types/locales/zh-CN/dashboard-core-additions.d.ts +0 -1
- package/dist/types/locales/zh-CN/formula-additions.d.ts +0 -1
- package/dist/types/locales/zh-CN/index.d.ts +0 -1
- package/dist/types/locales/zh-CN/platform.d.ts +0 -1
- package/dist/types/locales/zh-CN/ui-additions.d.ts +0 -1
- package/dist/types/storage.d.ts +0 -1
- package/package.json +5 -4
- package/dist/types/create-i18n.d.ts.map +0 -1
- package/dist/types/entries/en.d.ts.map +0 -1
- package/dist/types/entries/zh-CN.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/locales/en/dashboard-additions.d.ts.map +0 -1
- package/dist/types/locales/en/dashboard-core-additions.d.ts.map +0 -1
- package/dist/types/locales/en/formula-additions.d.ts.map +0 -1
- package/dist/types/locales/en/index.d.ts.map +0 -1
- package/dist/types/locales/en/platform.d.ts.map +0 -1
- package/dist/types/locales/en/ui-additions.d.ts.map +0 -1
- package/dist/types/locales/zh-CN/dashboard-additions.d.ts.map +0 -1
- package/dist/types/locales/zh-CN/dashboard-core-additions.d.ts.map +0 -1
- package/dist/types/locales/zh-CN/formula-additions.d.ts.map +0 -1
- package/dist/types/locales/zh-CN/index.d.ts.map +0 -1
- package/dist/types/locales/zh-CN/platform.d.ts.map +0 -1
- package/dist/types/locales/zh-CN/ui-additions.d.ts.map +0 -1
- package/dist/types/storage.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -41,3 +41,48 @@ const stopLocaleStorage = connectFinLocaleStorage(
|
|
|
41
41
|
包根导出 `zhCN`、`en`、`createFinI18n`、`installFinI18n`、`useFinLocale`、`normalizeAppLocale`、`normalizeFinLocale`、`translateFinBuiltin`、`useFinText`、`connectFinLocaleStorage`。规范子路径为 `/locales/zh-CN` 和 `/locales/en`,旧 `/lang/zh-CN`、`/lang/en` 保留兼容;源码只维护 `src/locales`。
|
|
42
42
|
|
|
43
43
|
`useFinText` 供可独立使用的公共展示组件读取当前 App 的翻译,未注入时回退中文;业务页面应使用 `useFinLocale`。非 Vue 启动边界使用 `translateFinBuiltin(key, locale)`,不创建共享全局实例。
|
|
44
|
+
|
|
45
|
+
## 在 setup 外读取当前应用的语言
|
|
46
|
+
|
|
47
|
+
组件内继续使用 `useFinLocale()`。请求层、字典工具或旧代码需要在 `setup` 外访问语言时,每个项目创建一个 `createFinLocaleContext()`,并绑定该 App 安装的真实 i18n 实例:
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
// 项目 src/locales/context.ts:导出本项目自己的访问器。
|
|
51
|
+
import { createFinLocaleContext } from '@axewo/fin-locale'
|
|
52
|
+
export const appLocale = createFinLocaleContext()
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
// 启动入口。
|
|
57
|
+
import { installFinI18n } from '@axewo/fin-locale'
|
|
58
|
+
import { appLocale } from './locales/context'
|
|
59
|
+
|
|
60
|
+
const i18n = installFinI18n(app, { messages })!
|
|
61
|
+
const stopLocaleContext = appLocale.bind(i18n)
|
|
62
|
+
// 后续请求按调用时读取:appLocale.locale.value。
|
|
63
|
+
// 挂载失败或卸载时:stopLocaleContext()。
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
访问器提供只读 `locale`、保留 vue-i18n 插值和复数参数的 `t`、词条检查 `te`。绑定前及释放后使用 `zh-CN`,`t` 返回原键,`te` 返回 `false`。重新绑定会复用访问器上的稳定响应式引用;上一轮的释放函数不能清除新绑定,即使两轮使用同一 i18n 实例。访问器只连接 composition 模式实例,不创建词条、另一份语言状态或持久化监听。
|
|
67
|
+
|
|
68
|
+
基座和每个子应用各自创建访问器,服务端渲染则每个请求各自创建。库不导出全局默认 `i18n`。后台 `Content-Language` 要求下划线等协议转换由项目请求层完成,公共访问器保留 UI 的语言标识。已有 `src/lang/index.ts` 可以暂作重导出兼容入口;调用方迁移后删除,不应再维护第二套实现。
|
|
69
|
+
|
|
70
|
+
## 后台多语言字段
|
|
71
|
+
|
|
72
|
+
菜单名称、字典标签等 `{ 'zh-CN': '名称', 'en-US': 'Name' }` 字段使用以下工具,不交给 UI 消息树处理:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
import {
|
|
76
|
+
toLocaleKey, normalizeLocaleString, buildLocaleString,
|
|
77
|
+
getExactLocaleText, getLocaleText, useFinLocale,
|
|
78
|
+
} from '@axewo/fin-locale'
|
|
79
|
+
|
|
80
|
+
const { locale } = useFinLocale()
|
|
81
|
+
toLocaleKey('en') // 'en-US',保留后台字段地区键
|
|
82
|
+
const names = normalizeLocaleString({ en_US: 'Name', ja_JP: '名前' }, '名称')
|
|
83
|
+
getLocaleText(names, locale.value) // 展示:精确语言 → 同语言族 → 中文 → 首个翻译
|
|
84
|
+
getExactLocaleText(names, 'zh-CN') // 编辑:只读中文或 zh,不借用其他语言
|
|
85
|
+
buildLocaleString({ ...names, 'ja-JP': '' }) // 提交时去掉清空的翻译
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`LocaleString` 为 `Record<string, string>`。上述函数不创建 i18n 实例、不读取全局语言或存储、不修改传入对象。`getLocaleText` 的第二个参数省略时为中文;需要随语言切换更新时,在 `computed` 或渲染函数中传入当前 `locale.value`。旧单语字符串在 `normalizeLocaleString` 中写入中文;无效非字符串翻译会被忽略。后台语言字典的接口、权限与加载状态仍由项目维护。
|
package/dist/context.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");function l(){const t=n.shallowRef();return{locale:n.computed(()=>{var e;return((e=t.value)==null?void 0:e.composer.locale.value)??"zh-CN"}),t:(...e)=>{var c;const o=(c=t.value)==null?void 0:c.composer;return o?Reflect.apply(o.t,o,e):String(e[0])},te:(e,o)=>{var c;return((c=t.value)==null?void 0:c.composer.te(e,o))??!1},bind(e){if(e.mode!=="composition")throw new TypeError("createFinLocaleContext requires a composition-mode i18n instance");const o={composer:e.global};return t.value=o,()=>{t.value===o&&(t.value=void 0)}}}}exports.createFinLocaleContext=l;
|
package/dist/context.mjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { shallowRef as n, computed as l } from "vue";
|
|
2
|
+
function p() {
|
|
3
|
+
const t = n();
|
|
4
|
+
return {
|
|
5
|
+
locale: l(() => {
|
|
6
|
+
var e;
|
|
7
|
+
return ((e = t.value) == null ? void 0 : e.composer.locale.value) ?? "zh-CN";
|
|
8
|
+
}),
|
|
9
|
+
t: (...e) => {
|
|
10
|
+
var c;
|
|
11
|
+
const o = (c = t.value) == null ? void 0 : c.composer;
|
|
12
|
+
return o ? Reflect.apply(o.t, o, e) : String(e[0]);
|
|
13
|
+
},
|
|
14
|
+
te: (e, o) => {
|
|
15
|
+
var c;
|
|
16
|
+
return ((c = t.value) == null ? void 0 : c.composer.te(e, o)) ?? !1;
|
|
17
|
+
},
|
|
18
|
+
bind(e) {
|
|
19
|
+
if (e.mode !== "composition")
|
|
20
|
+
throw new TypeError("createFinLocaleContext requires a composition-mode i18n instance");
|
|
21
|
+
const o = { composer: e.global };
|
|
22
|
+
return t.value = o, () => {
|
|
23
|
+
t.value === o && (t.value = void 0);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
p as createFinLocaleContext
|
|
30
|
+
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./create-i18n.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./create-i18n.cjs"),o=require("./storage.cjs"),i=require("./context.cjs"),t=require("./locale-string.cjs"),a=require("./locales/zh-CN/formula-additions.cjs"),r=require("./locales/en/formula-additions.cjs"),n=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.connectFinLocaleStorage=o.connectFinLocaleStorage;exports.createFinLocaleContext=i.createFinLocaleContext;exports.buildLocaleString=t.buildLocaleString;exports.getExactLocaleText=t.getExactLocaleText;exports.getLocaleText=t.getLocaleText;exports.normalizeLocaleString=t.normalizeLocaleString;exports.toLocaleKey=t.toLocaleKey;exports.zhCNFormulaAdditions=a;exports.enFormulaAdditions=r;Object.defineProperty(exports,"normalizeAppLocale",{enumerable:!0,get:()=>n.normalizeAppLocale});Object.defineProperty(exports,"normalizeFinLocale",{enumerable:!0,get:()=>n.normalizeFinLocale});
|
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
import { createFinI18n as
|
|
2
|
-
import { connectFinLocaleStorage as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { createFinI18n as t, en as a, installFinI18n as n, translateFinBuiltin as r, useFinLocale as l, useFinText as i, zhCN as c } from "./create-i18n.mjs";
|
|
2
|
+
import { connectFinLocaleStorage as x } from "./storage.mjs";
|
|
3
|
+
import { createFinLocaleContext as L } from "./context.mjs";
|
|
4
|
+
import { buildLocaleString as p, getExactLocaleText as s, getLocaleText as u, normalizeLocaleString as d, toLocaleKey as g } from "./locale-string.mjs";
|
|
5
|
+
import { default as A } from "./locales/zh-CN/formula-additions.mjs";
|
|
6
|
+
import { default as S } from "./locales/en/formula-additions.mjs";
|
|
7
|
+
import { normalizeAppLocale as h, normalizeFinLocale as I } from "@axewo/fin-core/locale";
|
|
6
8
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
p as buildLocaleString,
|
|
10
|
+
x as connectFinLocaleStorage,
|
|
11
|
+
t as createFinI18n,
|
|
12
|
+
L as createFinLocaleContext,
|
|
9
13
|
a as en,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
S as enFormulaAdditions,
|
|
15
|
+
s as getExactLocaleText,
|
|
16
|
+
u as getLocaleText,
|
|
17
|
+
n as installFinI18n,
|
|
18
|
+
h as normalizeAppLocale,
|
|
19
|
+
I as normalizeFinLocale,
|
|
20
|
+
d as normalizeLocaleString,
|
|
21
|
+
g as toLocaleKey,
|
|
22
|
+
r as translateFinBuiltin,
|
|
23
|
+
l as useFinLocale,
|
|
24
|
+
i as useFinText,
|
|
25
|
+
c as zhCN,
|
|
26
|
+
A as zhCNFormulaAdditions
|
|
19
27
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function L(t){const e=t.trim().replaceAll("_","-");if(e.toLowerCase()==="zh")return"zh-CN";if(e.toLowerCase()==="en")return"en-US";try{return Intl.getCanonicalLocales(e)[0]||e}catch{return e}}function f(t){return!t||typeof t!="object"||Array.isArray(t)?[]:Object.entries(t).filter(e=>typeof e[1]=="string")}function c(t){return t.trim().replaceAll("_","-").toLowerCase()}function y(t,e){var a,l;const r=c(e),n=r.split("-")[0],o=f(t);return((a=o.find(([s])=>c(s)===r))==null?void 0:a[1])||((l=o.find(([s])=>c(s)===n))==null?void 0:l[1])||""}function p(t,e=""){const r=new Map(f(t).map(([o,a])=>[L(o),a])),n=typeof t=="string"?t:e;return!r.get("zh-CN")&&n&&r.set("zh-CN",n),Object.fromEntries(r)}function m(t){return Object.fromEntries(Object.entries(p(t)).filter(([,e])=>e.trim()))}function b(t,e="zh-CN",r=""){var l,s,g,u;if(typeof t=="string")return t;const n=f(t).filter(([,i])=>i),o=c(e||"zh-CN"),a=o.split("-")[0];return((l=n.find(([i])=>c(i)===o))==null?void 0:l[1])||((s=n.find(([i])=>c(i).split("-")[0]===a))==null?void 0:s[1])||((g=n.find(([i])=>c(i)==="zh-cn"))==null?void 0:g[1])||((u=n[0])==null?void 0:u[1])||r}exports.buildLocaleString=m;exports.getExactLocaleText=y;exports.getLocaleText=b;exports.normalizeLocaleString=p;exports.toLocaleKey=L;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function p(t) {
|
|
2
|
+
const n = t.trim().replaceAll("_", "-");
|
|
3
|
+
if (n.toLowerCase() === "zh") return "zh-CN";
|
|
4
|
+
if (n.toLowerCase() === "en") return "en-US";
|
|
5
|
+
try {
|
|
6
|
+
return Intl.getCanonicalLocales(n)[0] || n;
|
|
7
|
+
} catch {
|
|
8
|
+
return n;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function l(t) {
|
|
12
|
+
return !t || typeof t != "object" || Array.isArray(t) ? [] : Object.entries(t).filter(
|
|
13
|
+
(n) => typeof n[1] == "string"
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function c(t) {
|
|
17
|
+
return t.trim().replaceAll("_", "-").toLowerCase();
|
|
18
|
+
}
|
|
19
|
+
function m(t, n) {
|
|
20
|
+
var s, f;
|
|
21
|
+
const r = c(n), e = r.split("-")[0], i = l(t);
|
|
22
|
+
return ((s = i.find(([a]) => c(a) === r)) == null ? void 0 : s[1]) || ((f = i.find(([a]) => c(a) === e)) == null ? void 0 : f[1]) || "";
|
|
23
|
+
}
|
|
24
|
+
function h(t, n = "") {
|
|
25
|
+
const r = new Map(l(t).map(([i, s]) => [p(i), s])), e = typeof t == "string" ? t : n;
|
|
26
|
+
return !r.get("zh-CN") && e && r.set("zh-CN", e), Object.fromEntries(r);
|
|
27
|
+
}
|
|
28
|
+
function y(t) {
|
|
29
|
+
return Object.fromEntries(
|
|
30
|
+
Object.entries(h(t)).filter(([, n]) => n.trim())
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function z(t, n = "zh-CN", r = "") {
|
|
34
|
+
var f, a, u, g;
|
|
35
|
+
if (typeof t == "string") return t;
|
|
36
|
+
const e = l(t).filter(([, o]) => o), i = c(n || "zh-CN"), s = i.split("-")[0];
|
|
37
|
+
return ((f = e.find(([o]) => c(o) === i)) == null ? void 0 : f[1]) || ((a = e.find(([o]) => c(o).split("-")[0] === s)) == null ? void 0 : a[1]) || ((u = e.find(([o]) => c(o) === "zh-cn")) == null ? void 0 : u[1]) || ((g = e[0]) == null ? void 0 : g[1]) || r;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
y as buildLocaleString,
|
|
41
|
+
m as getExactLocaleText,
|
|
42
|
+
z as getLocaleText,
|
|
43
|
+
h as normalizeLocaleString,
|
|
44
|
+
p as toLocaleKey
|
|
45
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { Composer, I18n } from 'vue-i18n';
|
|
3
|
+
/** 供请求层等 setup 外代码访问当前应用的语言实例,不创建第二份 i18n。 */
|
|
4
|
+
export interface FinLocaleContext {
|
|
5
|
+
readonly locale: ComputedRef<string>;
|
|
6
|
+
readonly t: Composer['t'];
|
|
7
|
+
readonly te: Composer['te'];
|
|
8
|
+
/** 挂载后绑定;返回本次绑定的幂等释放函数,旧释放不会清除后续绑定。 */
|
|
9
|
+
bind(i18n: I18n): () => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 每个应用独立创建,再在启动时绑定 installFinI18n 返回的实例。
|
|
13
|
+
* 不使用包级全局实例,不读写存储,不负责后台语言键格式转换。
|
|
14
|
+
* 未绑定或释放后 locale 为 zh-CN,t 返回原键,te 返回 false。
|
|
15
|
+
*/
|
|
16
|
+
export declare function createFinLocaleContext(): FinLocaleContext;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export { createFinI18n, en, installFinI18n, useFinLocale, useFinText, zhCN, normalizeAppLocale, normalizeFinLocale, translateFinBuiltin, type FinLocale } from './create-i18n';
|
|
5
5
|
export { connectFinLocaleStorage } from './storage';
|
|
6
|
+
export { createFinLocaleContext, type FinLocaleContext } from './context';
|
|
7
|
+
export { toLocaleKey, getExactLocaleText, normalizeLocaleString, buildLocaleString, getLocaleText, type LocaleString } from './locale-string';
|
|
6
8
|
export { default as zhCNFormulaAdditions } from './locales/zh-CN/formula-additions';
|
|
7
9
|
export { default as enFormulaAdditions } from './locales/en/formula-additions';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** 后台业务字段的多语言映射,与 UI 消息树分开处理。 */
|
|
2
|
+
export type LocaleString = Record<string, string>;
|
|
3
|
+
/**
|
|
4
|
+
* 规范后台字段语言键,保留地区和扩展语种;en/zh 使用后台默认键。
|
|
5
|
+
* 与 normalizeAppLocale 不同,en-US 不会折叠成 UI 内置标识 en。
|
|
6
|
+
* 无法识别的历史键保留原值,由业务校验是否允许提交。
|
|
7
|
+
*/
|
|
8
|
+
export declare function toLocaleKey(locale: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* 编辑时读取指定语言,仅兼容连接符、大小写和无地区语言键。
|
|
11
|
+
* 不回退到其他地区或其他语言,避免将显示用回退文案写入表单。
|
|
12
|
+
*/
|
|
13
|
+
export declare function getExactLocaleText(value: unknown, locale: string): string;
|
|
14
|
+
/** 保留所有字符串翻译,规范历史键;旧单语字段补入中文,不修改原对象。 */
|
|
15
|
+
export declare function normalizeLocaleString(value: unknown, legacyChinese?: string): LocaleString;
|
|
16
|
+
/** 提交时去掉空翻译;保留其余文本原值,不自动改写输入内容。 */
|
|
17
|
+
export declare function buildLocaleString(value: unknown): LocaleString;
|
|
18
|
+
/**
|
|
19
|
+
* 展示业务字段:精确语言 → 同语言族 → 中文 → 首个非空翻译 → fallback。
|
|
20
|
+
* 字符串原样返回;不读取全局 i18n、浏览器或持久化状态。
|
|
21
|
+
* 当前 UI 语言由调用方显式传入,省略时使用中文。
|
|
22
|
+
*/
|
|
23
|
+
export declare function getLocaleText(value: unknown, locale?: string, fallback?: string): string;
|
package/dist/types/storage.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axewo/fin-locale",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -57,8 +57,9 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
|
-
"build": "vite build",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
60
|
+
"build": "pnpm typecheck && vite build",
|
|
61
|
+
"clean": "node ../../scripts/clean.mjs",
|
|
62
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
63
|
+
"check:package": "node ../../scripts/check-packages.mjs locale"
|
|
63
64
|
}
|
|
64
65
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-i18n.d.ts","sourceRoot":"","sources":["../../src/create-i18n.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAuB,KAAK,WAAW,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAC1F,OAAO,EAAsB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGlD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAQ/F,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAMtC,4BAA4B;AAC5B,eAAO,MAAM,IAAI,EAAE,WAAkG,CAAA;AACrH,eAAO,MAAM,EAAE,EAAE,WAA8F,CAAA;AAE/G;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,OAAiB,GAAG,MAAM,CAIlF;AA0BD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAYlE;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI;IAC9B,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAA;IAChB,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;IAC1B,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACpC,CASA;AAED,uDAAuD;AACvD,wBAAgB,UAAU,IAAI,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAOpD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,CAiBzF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/entries/en.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,OAAO,EAAE,EAAE,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../src/entries/zh-CN.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9K,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-additions.d.ts","sourceRoot":"","sources":["../../../../src/locales/en/dashboard-additions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAyJC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-core-additions.d.ts","sourceRoot":"","sources":["../../../../src/locales/en/dashboard-core-additions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAqPC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formula-additions.d.ts","sourceRoot":"","sources":["../../../../src/locales/en/formula-additions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAoGC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/locales/en/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAgTC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../src/locales/en/platform.ts"],"names":[],"mappings":"AAAA,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACxB,wBAsFC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-additions.d.ts","sourceRoot":"","sources":["../../../../src/locales/en/ui-additions.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-additions.d.ts","sourceRoot":"","sources":["../../../../src/locales/zh-CN/dashboard-additions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAyJC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-core-additions.d.ts","sourceRoot":"","sources":["../../../../src/locales/zh-CN/dashboard-core-additions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAsPC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formula-additions.d.ts","sourceRoot":"","sources":["../../../../src/locales/zh-CN/formula-additions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAoGC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/locales/zh-CN/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBA+SC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../src/locales/zh-CN/platform.ts"],"names":[],"mappings":"AAAA,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAC/B,wBAqFC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-additions.d.ts","sourceRoot":"","sources":["../../../../src/locales/zh-CN/ui-additions.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGrC;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,IAAI,CA2BpF"}
|