solid-intlayer 8.7.12 → 8.7.13
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 +27 -1
- package/dist/{types/client → client}/useContent.d.ts +1 -1
- package/dist/{types/client → client}/useLocaleStorage.d.ts +4 -4
- package/package.json +7 -7
- /package/dist/{types/IntlayerNode.d.ts → IntlayerNode.d.ts} +0 -0
- /package/dist/{types/client → client}/IntlayerProvider.d.ts +0 -0
- /package/dist/{types/client → client}/getBrowserLocale.d.ts +0 -0
- /package/dist/{types/client → client}/index.d.ts +0 -0
- /package/dist/{types/client → client}/t.d.ts +0 -0
- /package/dist/{types/client → client}/useDictionary.d.ts +0 -0
- /package/dist/{types/client → client}/useDictionaryAsync.d.ts +0 -0
- /package/dist/{types/client → client}/useDictionaryDynamic.d.ts +0 -0
- /package/dist/{types/client → client}/useIntlayer.d.ts +0 -0
- /package/dist/{types/client → client}/useLoadDynamic.d.ts +0 -0
- /package/dist/{types/client → client}/useLocale.d.ts +0 -0
- /package/dist/{types/client → client}/useLocaleBase.d.ts +0 -0
- /package/dist/{types/client → client}/useRewriteURL.d.ts +0 -0
- /package/dist/{types/client → client}/useTraduction.d.ts +0 -0
- /package/dist/{types/editor → editor}/ContentSelector.d.ts +0 -0
- /package/dist/{types/editor → editor}/EditorProvider.d.ts +0 -0
- /package/dist/{types/editor → editor}/useEditor.d.ts +0 -0
- /package/dist/{types/format → format}/index.d.ts +0 -0
- /package/dist/{types/format → format}/useCompact.d.ts +0 -0
- /package/dist/{types/format → format}/useCurrency.d.ts +0 -0
- /package/dist/{types/format → format}/useDate.d.ts +0 -0
- /package/dist/{types/format → format}/useIntl.d.ts +0 -0
- /package/dist/{types/format → format}/useList.d.ts +0 -0
- /package/dist/{types/format → format}/useNumber.d.ts +0 -0
- /package/dist/{types/format → format}/usePercentage.d.ts +0 -0
- /package/dist/{types/format → format}/useRelativeTime.d.ts +0 -0
- /package/dist/{types/format → format}/useUnit.d.ts +0 -0
- /package/dist/{types/getDictionary.d.ts → getDictionary.d.ts} +0 -0
- /package/dist/{types/getIntlayer.d.ts → getIntlayer.d.ts} +0 -0
- /package/dist/{types/html → html}/HTMLProvider.d.ts +0 -0
- /package/dist/{types/html → html}/HTMLRenderer.d.ts +0 -0
- /package/dist/{types/html → html}/index.d.ts +0 -0
- /package/dist/{types/html → html}/types.d.ts +0 -0
- /package/dist/{types/index.d.ts → index.d.ts} +0 -0
- /package/dist/{types/markdown → markdown}/MarkdownProvider.d.ts +0 -0
- /package/dist/{types/markdown → markdown}/MarkdownRenderer.d.ts +0 -0
- /package/dist/{types/markdown → markdown}/compiler.d.ts +0 -0
- /package/dist/{types/markdown → markdown}/index.d.ts +0 -0
- /package/dist/{types/markdown → markdown}/runtime.d.ts +0 -0
- /package/dist/{types/plugins.d.ts → plugins.d.ts} +0 -0
- /package/dist/{types/solidElement → solidElement}/renderSolidElement.d.ts +0 -0
package/README.md
CHANGED
|
@@ -190,7 +190,22 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
|
|
|
190
190
|
<li><a href="https://intlayer.org/doc/environment/vite-and-react" rel=''>Vite + React</a></li>
|
|
191
191
|
<li><a href="https://intlayer.org/doc/environment/vite-and-react" rel=''>Vite + React using Compiler</a></li>
|
|
192
192
|
<li><a href="https://intlayer.org/doc/environment/vite-and-react/compiler" rel=''>React-router-v7</a></li>
|
|
193
|
-
<li><a href="https://intlayer.org/doc/environment/
|
|
193
|
+
<li><a href="https://intlayer.org/doc/environment/tanstack-start" rel=''>Tanstack start</a>
|
|
194
|
+
<ul>
|
|
195
|
+
<li><a href="https://intlayer.org/doc/environment/tanstack-start/solid" rel=''>Solid</a></li>
|
|
196
|
+
</ul>
|
|
197
|
+
</li>
|
|
198
|
+
<li><a href="https://intlayer.org/doc/environment/astro" rel=''>Astro</a>
|
|
199
|
+
<ul>
|
|
200
|
+
<li><a href="https://intlayer.org/doc/environment/astro/react" rel=''>React</a></li>
|
|
201
|
+
<li><a href="https://intlayer.org/doc/environment/astro/vue" rel=''>Vue</a></li>
|
|
202
|
+
<li><a href="https://intlayer.org/doc/environment/astro/svelte" rel=''>Svelte</a></li>
|
|
203
|
+
<li><a href="https://intlayer.org/doc/environment/astro/solid" rel=''>Solid</a></li>
|
|
204
|
+
<li><a href="https://intlayer.org/doc/environment/astro/vanilla" rel=''>Vanilla JS</a></li>
|
|
205
|
+
<li><a href="https://intlayer.org/doc/environment/astro/lit" rel=''>Lit</a></li>
|
|
206
|
+
</ul>
|
|
207
|
+
</li>
|
|
208
|
+
|
|
194
209
|
<li><a href="https://intlayer.org/doc/environment/react-native-and-expo" rel=''>React Native</a></li>
|
|
195
210
|
<li><a href="https://intlayer.org/doc/environment/vite-and-svelte" rel=''>Vite + Svelte</a></li>
|
|
196
211
|
<li><a href="https://intlayer.org/doc/environment/sveltekit" rel=''>SvelteKit</a></li>
|
|
@@ -212,6 +227,17 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
|
|
|
212
227
|
</ul>
|
|
213
228
|
</details>
|
|
214
229
|
|
|
230
|
+
<details>
|
|
231
|
+
<summary style="font-size:16px; font-weight:bold;">📊 Benchmark</summary>
|
|
232
|
+
<ul>
|
|
233
|
+
<li><a href="https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/benchmark/nextjs.md" rel=''>Next.js</a></li>
|
|
234
|
+
<li><a href="https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/benchmark/tanstack.md" rel=''>TanStack Start</a></li>
|
|
235
|
+
<li><a href="https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/benchmark/vue.md" rel=''>Vue</a></li>
|
|
236
|
+
<li><a href="https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/benchmark/solid.md" rel=''>Solid</a></li>
|
|
237
|
+
<li><a href="https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/benchmark/svelte.md" rel=''>Svelte</a></li>
|
|
238
|
+
</ul>
|
|
239
|
+
</details>
|
|
240
|
+
|
|
215
241
|
<details>
|
|
216
242
|
<summary style="font-size:16px; font-weight:bold;">📰 Blog</summary>
|
|
217
243
|
<ul>
|
|
@@ -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/allLocales').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/allLocales').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/allLocales').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/allLocales').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/allLocales').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": "8.7.
|
|
3
|
+
"version": "8.7.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Solid applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -104,11 +104,11 @@
|
|
|
104
104
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@intlayer/api": "8.7.
|
|
108
|
-
"@intlayer/config": "8.7.
|
|
109
|
-
"@intlayer/core": "8.7.
|
|
110
|
-
"@intlayer/editor": "8.7.
|
|
111
|
-
"@intlayer/types": "8.7.
|
|
107
|
+
"@intlayer/api": "8.7.13",
|
|
108
|
+
"@intlayer/config": "8.7.13",
|
|
109
|
+
"@intlayer/core": "8.7.13",
|
|
110
|
+
"@intlayer/editor": "8.7.13",
|
|
111
|
+
"@intlayer/types": "8.7.13"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@solidjs/testing-library": "0.8.10",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"tsdown": "0.21.10",
|
|
124
124
|
"typescript": "6.0.3",
|
|
125
125
|
"vite": "8.0.10",
|
|
126
|
-
"vite-plugin-dts": "
|
|
126
|
+
"vite-plugin-dts": "5.0.0",
|
|
127
127
|
"vite-plugin-solid": "2.11.11",
|
|
128
128
|
"vitest": "4.1.5"
|
|
129
129
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|