vue-intlayer 7.3.7 → 7.3.9
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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@intlayer/config/built"),i=require("vue");require("@intlayer/core");require("@intlayer/editor");require("@intlayer/types");require("../editor/communicator.cjs");require("./useLocaleStorage.cjs");const y=require("../editor/installIntlayerEditor.cjs"),o=Symbol("intlayer");let r=null;const a=(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@intlayer/config/built"),i=require("vue");require("@intlayer/core");require("@intlayer/editor");require("@intlayer/types");require("../editor/communicator.cjs");require("./useLocaleStorage.cjs");const y=require("../editor/installIntlayerEditor.cjs"),o=Symbol("intlayer");let r=null;const a=(e,n=!0)=>{if(r)return r;const{defaultLocale:l}=s.internationalization??{},t=i.ref(e??l),c=u=>{t.value=u};return r={locale:i.readonly(t),setLocale:c,isCookieEnabled:n},r},d=(e,n,l=!0)=>{const t=a(n,l);return e.provide(o,t),y.installIntlayerEditor(e,t),e};exports.INTLAYER_SYMBOL=o;exports.createIntlayerClient=a;exports.installIntlayer=d;
|
|
@@ -6,24 +6,24 @@ import "@intlayer/types";
|
|
|
6
6
|
import "../editor/communicator.mjs";
|
|
7
7
|
import "./useLocaleStorage.mjs";
|
|
8
8
|
import { installIntlayerEditor as s } from "../editor/installIntlayerEditor.mjs";
|
|
9
|
-
const
|
|
10
|
-
let
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
const { defaultLocale: n } = a.internationalization ?? {},
|
|
14
|
-
|
|
9
|
+
const u = Symbol("intlayer");
|
|
10
|
+
let o = null;
|
|
11
|
+
const f = (t, e = !0) => {
|
|
12
|
+
if (o) return o;
|
|
13
|
+
const { defaultLocale: n } = a.internationalization ?? {}, r = c(t ?? n), i = (l) => {
|
|
14
|
+
r.value = l;
|
|
15
15
|
};
|
|
16
|
-
return
|
|
17
|
-
locale: m(
|
|
16
|
+
return o = {
|
|
17
|
+
locale: m(r),
|
|
18
18
|
setLocale: i,
|
|
19
19
|
isCookieEnabled: e
|
|
20
|
-
},
|
|
21
|
-
}, S = (
|
|
22
|
-
const
|
|
23
|
-
|
|
20
|
+
}, o;
|
|
21
|
+
}, S = (t, e, n = !0) => {
|
|
22
|
+
const r = f(e, n);
|
|
23
|
+
return t.provide(u, r), s(t, r), t;
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
u as INTLAYER_SYMBOL,
|
|
27
|
+
f as createIntlayerClient,
|
|
28
28
|
S as installIntlayer
|
|
29
29
|
};
|
|
@@ -13,4 +13,4 @@ export declare const createIntlayerClient: (locale?: LocalesValues, isCookieEnab
|
|
|
13
13
|
/**
|
|
14
14
|
* Helper to install the Intlayer provider into the app
|
|
15
15
|
*/
|
|
16
|
-
export declare const installIntlayer: (app: App, locale?: LocalesValues, isCookieEnabled?: boolean) =>
|
|
16
|
+
export declare const installIntlayer: (app: App, locale?: LocalesValues, isCookieEnabled?: boolean) => App<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-intlayer",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Vue applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
"typecheck": "vue-tsc --noEmit --project tsconfig.types.json"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@intlayer/api": "7.3.
|
|
91
|
-
"@intlayer/config": "7.3.
|
|
92
|
-
"@intlayer/core": "7.3.
|
|
93
|
-
"@intlayer/editor": "7.3.
|
|
94
|
-
"@intlayer/types": "7.3.
|
|
95
|
-
"@intlayer/unmerged-dictionaries-entry": "7.3.
|
|
90
|
+
"@intlayer/api": "7.3.9",
|
|
91
|
+
"@intlayer/config": "7.3.9",
|
|
92
|
+
"@intlayer/core": "7.3.9",
|
|
93
|
+
"@intlayer/editor": "7.3.9",
|
|
94
|
+
"@intlayer/types": "7.3.9",
|
|
95
|
+
"@intlayer/unmerged-dictionaries-entry": "7.3.9"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@types/node": "24.10.1",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"vue-tsc": "3.1.5"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"intlayer": "7.3.
|
|
114
|
+
"intlayer": "7.3.9",
|
|
115
115
|
"vue": ">=3.0.0"
|
|
116
116
|
},
|
|
117
117
|
"peerDependenciesMeta": {
|