solid-intlayer 9.4.3 → 9.5.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
@@ -69,8 +69,6 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
69
69
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/interoperability.png?raw=true" alt="Feature" width="700"> | **Interoperability**<br><br>Allow interoperability with react-i18next, next-i18next, next-intl, react-intl, vue-i18n. <br><br> - [Intlayer and react-intl](https://intlayer.org/blog/intlayer-with-react-intl) <br> - [Intlayer and next-intl](https://intlayer.org/blog/intlayer-with-next-intl) <br> - [Intlayer and next-i18next](https://intlayer.org/blog/intlayer-with-next-i18next) <br> - [Intlayer and vue-i18n](https://intlayer.org/blog/intlayer-with-vue-i18n) <br> - [Intlayer compat adapters](https://intlayer.org/doc/compatibility) |
70
70
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/benchmark.png?raw=true" alt="Feature" width="700"> | **Performances & Benchmark**<br><br>Uses advanced tree-shaking and dynamic loading to boost performances and keep the solution as light as possible. <br><br> - [Performances & Benchmark](https://intlayer.org/doc/benchmark) |
71
71
 
72
- ---
73
-
74
72
  ## 📦 Installation
75
73
 
76
74
  Start your journey with Intlayer today and experience a smoother, more powerful approach to internationalization.
@@ -3,7 +3,7 @@ import { StrictModeLocaleMap } from '@intlayer/types/module_augmentation';
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/module_augmentation';
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) => import('solid-js').Accessor<{
37
- getLocale: () => import('intlayer').Locale;
37
+ getLocale: () => import('@intlayer/types').Locale;
38
38
  setLocale: (locale: LocalesValues) => void;
39
39
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solid-intlayer",
3
- "version": "9.4.3",
3
+ "version": "9.5.0",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Solid applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -113,35 +113,35 @@
113
113
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
114
114
  },
115
115
  "dependencies": {
116
- "@intlayer/api": "9.4.3",
117
- "@intlayer/config": "9.4.3",
118
- "@intlayer/core": "9.4.3",
119
- "@intlayer/editor": "9.4.3",
120
- "@intlayer/types": "9.4.3"
116
+ "@intlayer/api": "9.5.0",
117
+ "@intlayer/config": "9.5.0",
118
+ "@intlayer/core": "9.5.0",
119
+ "@intlayer/editor": "9.5.0",
120
+ "@intlayer/types": "9.5.0"
121
121
  },
122
122
  "devDependencies": {
123
123
  "@solidjs/testing-library": "0.8.10",
124
124
  "@testing-library/jest-dom": "7.0.1",
125
- "@testing-library/user-event": "14.6.6",
126
- "@types/node": "26.4.1",
125
+ "@testing-library/user-event": "14.6.7",
126
+ "@types/node": "26.5.0",
127
127
  "@typescript/typescript6": "^6.0.2",
128
128
  "@utils/ts-config": "1.0.4",
129
129
  "@utils/ts-config-types": "1.0.4",
130
130
  "@utils/tsdown-config": "1.0.4",
131
131
  "jsdom": "30.0.1",
132
132
  "rimraf": "6.1.3",
133
- "tsdown": "0.22.14",
133
+ "tsdown": "0.23.0",
134
134
  "typescript": "7.0.2",
135
135
  "vite": "8.2.2",
136
136
  "vite-plugin-dts": "5.1.0",
137
137
  "vite-plugin-solid": "2.11.14",
138
- "vitest": "4.1.11"
138
+ "vitest": "5.0.0"
139
139
  },
140
140
  "peerDependencies": {
141
141
  "solid-js": ">=1.0.0"
142
142
  },
143
143
  "optionalDependencies": {
144
- "@intlayer/analytics": "9.4.3"
144
+ "@intlayer/analytics": "9.5.0"
145
145
  },
146
146
  "engines": {
147
147
  "node": ">=14.18"