solid-intlayer 8.9.3 → 8.9.4-canary.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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DeclaredLocales, LocalesValues } from '@intlayer/types/module_augmentation';
|
|
2
2
|
import { Accessor } from 'solid-js';
|
|
3
|
-
type
|
|
3
|
+
export type UseLocaleProps = {
|
|
4
4
|
isCookieEnabled?: boolean;
|
|
5
|
-
onLocaleChange?: (locale:
|
|
5
|
+
onLocaleChange?: (locale: DeclaredLocales) => void;
|
|
6
6
|
};
|
|
7
|
-
type UseLocaleResult = {
|
|
7
|
+
export type UseLocaleResult = {
|
|
8
8
|
locale: Accessor<DeclaredLocales>;
|
|
9
9
|
defaultLocale: DeclaredLocales;
|
|
10
10
|
availableLocales: DeclaredLocales[];
|
|
@@ -33,5 +33,4 @@ type UseLocaleResult = {
|
|
|
33
33
|
* };
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
export declare const useLocale: ({ isCookieEnabled, onLocaleChange, }?:
|
|
37
|
-
export {};
|
|
36
|
+
export declare const useLocale: ({ isCookieEnabled, onLocaleChange, }?: UseLocaleProps) => UseLocaleResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-intlayer",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.4-canary.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Solid applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -104,17 +104,17 @@
|
|
|
104
104
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@intlayer/api": "8.9.
|
|
108
|
-
"@intlayer/config": "8.9.
|
|
109
|
-
"@intlayer/core": "8.9.
|
|
110
|
-
"@intlayer/editor": "8.9.
|
|
111
|
-
"@intlayer/types": "8.9.
|
|
107
|
+
"@intlayer/api": "8.9.4-canary.0",
|
|
108
|
+
"@intlayer/config": "8.9.4-canary.0",
|
|
109
|
+
"@intlayer/core": "8.9.4-canary.0",
|
|
110
|
+
"@intlayer/editor": "8.9.4-canary.0",
|
|
111
|
+
"@intlayer/types": "8.9.4-canary.0"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@solidjs/testing-library": "0.8.10",
|
|
115
115
|
"@testing-library/jest-dom": "6.9.1",
|
|
116
116
|
"@testing-library/user-event": "14.6.1",
|
|
117
|
-
"@types/node": "25.6.
|
|
117
|
+
"@types/node": "25.6.2",
|
|
118
118
|
"@utils/ts-config": "1.0.4",
|
|
119
119
|
"@utils/ts-config-types": "1.0.4",
|
|
120
120
|
"@utils/tsdown-config": "1.0.4",
|