super-page-runtime 2.3.48-cdnTmp1 → 2.3.48-cdnTmp2
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { usePageContextStore as
|
|
1
|
+
import { usePageContextStore as u } from "./page-store.mjs";
|
|
2
2
|
import { i18nUtil as m } from "agilebuilder-ui";
|
|
3
|
-
import { useI18n as
|
|
4
|
-
let
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
return r
|
|
3
|
+
import { useI18n as a } from "vue-i18n";
|
|
4
|
+
let s = null, t = null;
|
|
5
|
+
const c = (e, ...n) => {
|
|
6
|
+
t || (t = a());
|
|
7
|
+
const o = u().pageContext;
|
|
8
|
+
s === null && (s = !!m.getEnableI18nState(o.systemCode));
|
|
9
|
+
const r = `${o.systemCode}.${e}`;
|
|
10
|
+
return t.te(r) ? t.t(r, n || []) : t.te(e) ? t.t(e, n || []) : t.t(e, n || []) || e;
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
c as $t
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./page-store.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./page-store.cjs"),s=require("agilebuilder-ui"),o=require("vue-i18n");let l=null,e=null;exports.$t=(t,...n)=>{e||(e=o.useI18n());const r=i.usePageContextStore().pageContext;l===null&&(l=!!s.i18nUtil.getEnableI18nState(r.systemCode));const u=`${r.systemCode}.${t}`;return e.te(u)?e.t(u,n||[]):e.te(t)?e.t(t,n||[]):e.t(t,n||[])||t};
|