svelte-intlayer 7.0.8 → 7.0.9-canary.2
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 +6 -5
- package/dist/types/client/useLocale.d.ts +2 -2
- package/package.json +20 -17
package/README.md
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
<p align="center" style="margin-top:15px;">
|
|
21
21
|
<a href="https://www.npmjs.com/package/intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/npm/v/intlayer?style=for-the-badge&labelColor=FFFFFF&color=000000&logoColor=FFFFFF" alt="npm version" height="24"/></a>
|
|
22
22
|
<a href="https://github.com/aymericzip/intlayer/stargazers" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/stars/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logo=github&logoColor=FFD700" alt="GitHub Stars" height="24"/></a>
|
|
23
|
-
<a href="https://www.npmjs.org/package/intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/npm/dm/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000" alt="monthly downloads" height="24"/></a>
|
|
24
|
-
<a href="https://github.com/aymericzip/intlayer/blob/main/LICENSE" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/license/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000" alt="license"/></a>
|
|
25
|
-
<a href="https://github.com/aymericzip/intlayer/commits/main" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/last-commit/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000" alt="last commit"/>
|
|
23
|
+
<a href="https://www.npmjs.org/package/intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/npm/dm/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="monthly downloads" height="24"/></a>
|
|
24
|
+
<a href="https://github.com/aymericzip/intlayer/blob/main/LICENSE" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/license/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="license"/></a>
|
|
25
|
+
<a href="https://github.com/aymericzip/intlayer/commits/main" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/last-commit/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="last commit"/>
|
|
26
26
|
</a>
|
|
27
27
|
</p>
|
|
28
28
|
|
|
@@ -60,7 +60,7 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
|
|
|
60
60
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/static_rendering.png?raw=true" alt="Feature" width="700"> | **Static Rendering**<br><br>Doesn't block Static Rendering. <br><br> - [Next.js integration](https://intlayer.org/doc/environment/nextjs) |
|
|
61
61
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/AI_translation.png?raw=true" alt="Feature" width="700"> | **AI-Powered Translation**<br><br>Transform your website into 231 languages with just one click using Intlayer's advanced AI-powered translation tools using your own AI provider / API key. <br><br> - [CI/CD integration](https://intlayer.org/doc/concept/ci-cd) <br> - [Intlayer CLI](https://intlayer.org/doc/concept/cli) <br> - [Auto fill](https://intlayer.org/doc/concept/auto-fill) |
|
|
62
62
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/mcp.png?raw=true" alt="Feature" width="700"> | **MCP Server Integration**<br><br>Provides an MCP (Model Context Protocol) server for IDE automation, enabling seamless content management and i18n workflows directly within your development environment. <br><br> - [MCP Server](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/mcp_server.md) |
|
|
63
|
-
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/vscode_extension.png?raw=true" alt="Feature" width="700"> | **VSCode Extension**<br><br>Intlayer provides a VSCode extension to help you manage your content and translations,
|
|
63
|
+
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/vscode_extension.png?raw=true" alt="Feature" width="700"> | **VSCode Extension**<br><br>Intlayer provides a VSCode extension to help you manage your content and translations, building your dictionaries, translating your content, and more. <br><br> - [VSCode Extension](https://intlayer.org/doc/vs-code-extension) |
|
|
64
64
|
| <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, and react-intl. <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) |
|
|
65
65
|
|
|
66
66
|
---
|
|
@@ -171,8 +171,9 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
|
|
|
171
171
|
<details open>
|
|
172
172
|
<summary style="font-size:16px; font-weight:bold;">🌐 Environment</summary>
|
|
173
173
|
<ul>
|
|
174
|
-
<li><a href="https://intlayer.org/doc/environment/nextjs" rel=''>Intlayer with Next.js
|
|
174
|
+
<li><a href="https://intlayer.org/doc/environment/nextjs" rel=''>Intlayer with Next.js 16</a>
|
|
175
175
|
<ul>
|
|
176
|
+
<li><a href="https://intlayer.org/doc/environment/nextjs/15" rel=''>Next.js 15</a></li>
|
|
176
177
|
<li><a href="https://intlayer.org/doc/environment/nextjs/14" rel=''>Next.js 14 (App Router)</a></li>
|
|
177
178
|
<li><a href="https://intlayer.org/doc/environment/nextjs/next-with-Page-Router" rel=''>Next.js Page Router</a></li>
|
|
178
179
|
</ul>
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @returns Readable store with current locale and setter function
|
|
4
4
|
*/
|
|
5
5
|
export declare const useLocale: () => {
|
|
6
|
-
locale: import('svelte/store').Readable<import('
|
|
7
|
-
setLocale: (locale: import('
|
|
6
|
+
locale: import('svelte/store').Readable<import('intlayer').LocalesValues>;
|
|
7
|
+
setLocale: (locale: import('intlayer').LocalesValues) => void;
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-intlayer",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.9-canary.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Svelte applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -66,38 +66,41 @@
|
|
|
66
66
|
"lint": "biome lint .",
|
|
67
67
|
"lint:fix": "biome lint --write .",
|
|
68
68
|
"prepublish": "cp -f ../../README.md ./README.md",
|
|
69
|
+
"publish": "bun publish --access public || true",
|
|
70
|
+
"publish:canary": "bun publish --tag canary --access public || true",
|
|
71
|
+
"publish:latest": "bun publish --tag latest --access public || true",
|
|
69
72
|
"test": "vitest run",
|
|
70
73
|
"test:watch": "vitest",
|
|
71
74
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
72
75
|
},
|
|
73
76
|
"dependencies": {
|
|
74
|
-
"@intlayer/api": "7.0.
|
|
75
|
-
"@intlayer/config": "7.0.
|
|
76
|
-
"@intlayer/core": "7.0.
|
|
77
|
-
"@intlayer/editor": "7.0.
|
|
78
|
-
"@intlayer/types": "7.0.
|
|
77
|
+
"@intlayer/api": "7.0.9-canary.2",
|
|
78
|
+
"@intlayer/config": "7.0.9-canary.2",
|
|
79
|
+
"@intlayer/core": "7.0.9-canary.2",
|
|
80
|
+
"@intlayer/editor": "7.0.9-canary.2",
|
|
81
|
+
"@intlayer/types": "7.0.9-canary.2",
|
|
79
82
|
"js-cookie": "3.0.5"
|
|
80
83
|
},
|
|
81
84
|
"devDependencies": {
|
|
82
85
|
"@sveltejs/vite-plugin-svelte": "6.1.4",
|
|
83
86
|
"@types/js-cookie": "3.0.6",
|
|
84
|
-
"@types/node": "24.10.
|
|
85
|
-
"@utils/ts-config": "
|
|
86
|
-
"@utils/ts-config-types": "
|
|
87
|
-
"@utils/tsdown-config": "
|
|
87
|
+
"@types/node": "24.10.1",
|
|
88
|
+
"@utils/ts-config": "1.0.4",
|
|
89
|
+
"@utils/ts-config-types": "1.0.4",
|
|
90
|
+
"@utils/tsdown-config": "1.0.4",
|
|
88
91
|
"rimraf": "6.1.0",
|
|
89
|
-
"tsdown": "0.16.
|
|
92
|
+
"tsdown": "0.16.4",
|
|
90
93
|
"typescript": "5.9.3",
|
|
91
94
|
"vite": "7.2.0",
|
|
92
95
|
"vite-plugin-dts": "4.5.4",
|
|
93
|
-
"vitest": "4.0.
|
|
96
|
+
"vitest": "4.0.8"
|
|
94
97
|
},
|
|
95
98
|
"peerDependencies": {
|
|
96
|
-
"@intlayer/api": "7.0.
|
|
97
|
-
"@intlayer/config": "7.0.
|
|
98
|
-
"@intlayer/core": "7.0.
|
|
99
|
-
"@intlayer/editor": "7.0.
|
|
100
|
-
"@intlayer/types": "7.0.
|
|
99
|
+
"@intlayer/api": "7.0.9-canary.2",
|
|
100
|
+
"@intlayer/config": "7.0.9-canary.2",
|
|
101
|
+
"@intlayer/core": "7.0.9-canary.2",
|
|
102
|
+
"@intlayer/editor": "7.0.9-canary.2",
|
|
103
|
+
"@intlayer/types": "7.0.9-canary.2",
|
|
101
104
|
"svelte": ">=5.0.0"
|
|
102
105
|
},
|
|
103
106
|
"engines": {
|