solid-intlayer 5.5.11 → 5.6.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.
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<a href="https://www.facebook.com/intlayer" target="blank"><img align="center"
|
|
34
34
|
src="https://img.shields.io/badge/facebook-4267B2.svg?style=for-the-badge&logo=facebook&logoColor=white"
|
|
35
35
|
alt="Intlayer Facebook" height="30"/></a>
|
|
36
|
-
<a href="https://www.instagram.com/
|
|
36
|
+
<a href="https://www.instagram.com/intlayer/" target="blank"><img align="center"
|
|
37
37
|
src="https://img.shields.io/badge/instagram-%23E4405F.svg?style=for-the-badge&logo=Instagram&logoColor=white"
|
|
38
38
|
alt="Intlayer Instagram" height="30"/></a>
|
|
39
39
|
<a href="https://x.com/Intlayer183096" target="blank"><img align="center"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@intlayer/config/built"),s=require("solid-js"),l=require("./IntlayerProvider.cjs"),u=require("./useDictionary.cjs"),y=require("./useLoadDynamic.cjs"),d=(n,i,o)=>{const{locale:c}=s.useContext(l.IntlayerClientContext),r=t==null?void 0:t.internationalization.defaultLocale,e=o??c()??r,a=y.useLoadDynamic(`${String(i)}.${e}`,n[e]());return u.useDictionary(a,e)};exports.useDictionaryDynamic=d;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import l from "@intlayer/config/built";
|
|
2
|
+
import { useContext as m } from "solid-js";
|
|
3
|
+
import { IntlayerClientContext as s } from "./IntlayerProvider.mjs";
|
|
4
|
+
import { useDictionary as u } from "./useDictionary.mjs";
|
|
5
|
+
import { useLoadDynamic as f } from "./useLoadDynamic.mjs";
|
|
6
|
+
const g = (n, r, i) => {
|
|
7
|
+
var t;
|
|
8
|
+
const { locale: e } = m(s), a = (t = l) == null ? void 0 : t.internationalization.defaultLocale, o = i ?? e() ?? a, c = f(
|
|
7
9
|
`${String(r)}.${o}`,
|
|
8
|
-
|
|
10
|
+
n[o]()
|
|
9
11
|
);
|
|
10
|
-
return
|
|
12
|
+
return u(c, o);
|
|
11
13
|
};
|
|
12
14
|
export {
|
|
13
|
-
|
|
15
|
+
g as useDictionaryDynamic
|
|
14
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDictionaryDynamic.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionaryDynamic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDictionaryDynamic.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionaryDynamic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAMxB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,cAAc,EAExB,mBAAmB,eAAe,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,EACpD,KAAK,CAAC,EACN,SAAS,aAAa,qCAYvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-intlayer",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Solid applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"js-cookie": "^3.0.5",
|
|
60
|
-
"@intlayer/
|
|
61
|
-
"@intlayer/api": "5.
|
|
62
|
-
"@intlayer/
|
|
63
|
-
"@intlayer/core": "5.
|
|
60
|
+
"@intlayer/config": "5.6.0",
|
|
61
|
+
"@intlayer/api": "5.6.0",
|
|
62
|
+
"@intlayer/editor": "5.6.0",
|
|
63
|
+
"@intlayer/core": "5.6.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@solidjs/testing-library": "^0.8.10",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
"vite-plugin-solid": "^2.11.6",
|
|
81
81
|
"vitest": "^3.2.2",
|
|
82
82
|
"@utils/eslint-config": "1.0.4",
|
|
83
|
-
"@utils/
|
|
83
|
+
"@utils/tsup-config": "1.0.4",
|
|
84
84
|
"@utils/ts-config-types": "1.0.4",
|
|
85
|
-
"@utils/
|
|
85
|
+
"@utils/ts-config": "1.0.4"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"solid-js": "^1.9.5",
|
|
89
|
-
"@intlayer/
|
|
90
|
-
"@intlayer/
|
|
91
|
-
"@intlayer/
|
|
92
|
-
"@intlayer/editor": "5.
|
|
89
|
+
"@intlayer/api": "5.6.0",
|
|
90
|
+
"@intlayer/config": "5.6.0",
|
|
91
|
+
"@intlayer/core": "5.6.0",
|
|
92
|
+
"@intlayer/editor": "5.6.0"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": ">=14.18"
|