solid-intlayer 7.1.4 → 7.1.6
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.
|
@@ -3,7 +3,7 @@ import { StrictModeLocaleMap } from '@intlayer/types';
|
|
|
3
3
|
* On the client side, hook to get the translation content based on the locale
|
|
4
4
|
*/
|
|
5
5
|
export declare const useContent: <Content>(languageContent: StrictModeLocaleMap<Content>) => {
|
|
6
|
-
locale: import('intlayer').Locale;
|
|
6
|
+
locale: import('@intlayer/types').Locale;
|
|
7
7
|
content: Content;
|
|
8
8
|
t: <Content_1 = string>(languageContent: StrictModeLocaleMap<Content_1>) => Content_1;
|
|
9
9
|
};
|
|
@@ -2,13 +2,13 @@ import { LocalesValues } from '@intlayer/types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Get the locale cookie
|
|
4
4
|
*/
|
|
5
|
-
export declare const localeInStorage: import('intlayer').Locale | undefined;
|
|
5
|
+
export declare const localeInStorage: import('@intlayer/types').Locale | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use localeInStorage instead
|
|
8
8
|
*
|
|
9
9
|
* Get the locale cookie
|
|
10
10
|
*/
|
|
11
|
-
export declare const localeCookie: import('intlayer').Locale | undefined;
|
|
11
|
+
export declare const localeCookie: import('@intlayer/types').Locale | undefined;
|
|
12
12
|
/**
|
|
13
13
|
* Set the locale cookie
|
|
14
14
|
*/
|
|
@@ -23,7 +23,7 @@ export declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled?:
|
|
|
23
23
|
* Hook that provides the locale storage and a function to set it
|
|
24
24
|
*/
|
|
25
25
|
export declare const useLocaleStorage: (isCookieEnabled?: boolean) => import('solid-js').Accessor<{
|
|
26
|
-
getLocale: () => import('intlayer').Locale;
|
|
26
|
+
getLocale: () => import('@intlayer/types').Locale;
|
|
27
27
|
setLocale: (locale: LocalesValues) => void;
|
|
28
28
|
}>;
|
|
29
29
|
/**
|
|
@@ -34,6 +34,6 @@ export declare const useLocaleStorage: (isCookieEnabled?: boolean) => import('so
|
|
|
34
34
|
* Hook that provides the locale cookie and a function to set it
|
|
35
35
|
*/
|
|
36
36
|
export declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
|
|
37
|
-
localeCookie: import('intlayer').Locale;
|
|
37
|
+
localeCookie: import('@intlayer/types').Locale;
|
|
38
38
|
setLocaleCookie: (locale: LocalesValues) => void;
|
|
39
39
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-intlayer",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Solid applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@intlayer/api": "7.1.
|
|
77
|
-
"@intlayer/config": "7.1.
|
|
78
|
-
"@intlayer/core": "7.1.
|
|
79
|
-
"@intlayer/editor": "7.1.
|
|
80
|
-
"@intlayer/types": "7.1.
|
|
76
|
+
"@intlayer/api": "7.1.6",
|
|
77
|
+
"@intlayer/config": "7.1.6",
|
|
78
|
+
"@intlayer/core": "7.1.6",
|
|
79
|
+
"@intlayer/editor": "7.1.6",
|
|
80
|
+
"@intlayer/types": "7.1.6"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@intlayer/unmerged-dictionaries-entry": "7.1.
|
|
83
|
+
"@intlayer/unmerged-dictionaries-entry": "7.1.6",
|
|
84
84
|
"@solidjs/testing-library": "0.8.10",
|
|
85
85
|
"@testing-library/jest-dom": "6.9.1",
|
|
86
86
|
"@testing-library/user-event": "14.6.1",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"rimraf": "6.1.0",
|
|
93
93
|
"tsdown": "0.16.5",
|
|
94
94
|
"typescript": "5.9.3",
|
|
95
|
-
"vite": "7.2.
|
|
95
|
+
"vite": "7.2.2",
|
|
96
96
|
"vite-plugin-dts": "4.5.4",
|
|
97
97
|
"vite-plugin-solid": "2.11.6",
|
|
98
98
|
"vitest": "4.0.8"
|