next-intlayer 8.9.8 → 8.10.0-canary.1
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 +14 -0
- package/dist/types/generateStaticParams.d.ts +3 -1
- package/dist/types/generateStaticParams.d.ts.map +1 -1
- package/dist/types/intlayer/dist/types/index.d.ts +3 -0
- package/dist/types/server/useDictionary.d.ts +1 -1
- package/dist/types/server/useDictionaryAsync.d.ts +1 -1
- package/dist/types/server/useDictionaryDynamic.d.ts +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -67,6 +67,7 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
|
|
|
67
67
|
| <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) |
|
|
68
68
|
| <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) |
|
|
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) |
|
|
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) |
|
|
70
71
|
|
|
71
72
|
---
|
|
72
73
|
|
|
@@ -249,6 +250,19 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
|
|
|
249
250
|
</ul>
|
|
250
251
|
</details>
|
|
251
252
|
|
|
253
|
+
## Multilingual content management system
|
|
254
|
+
|
|
255
|
+
More than an i18n library, Intlayer is a complete **multilingual content management system**. A full CMS is available for free at [app.intlayer.org](https://app.intlayer.org).
|
|
256
|
+
|
|
257
|
+
Intlayer connects **developers**, **copywriters**, and **AI agents** in one workflow for creating and maintaining multilingual websites effortlessly.Intlayer replaces the following stack in a single solution:
|
|
258
|
+
|
|
259
|
+
- i18n solutions (e.g. `i18next`, `next-intl`, `vue-i18n`)
|
|
260
|
+
- TMSs (Translation Management Systems) (e.g. Crowdin, Phrase, Lokalise)
|
|
261
|
+
- Feature flags
|
|
262
|
+
- Headless CMSs (e.g. Contentful, Strapi, Sanity)
|
|
263
|
+
|
|
264
|
+

|
|
265
|
+
|
|
252
266
|
## 🌐 Readme in other languages
|
|
253
267
|
|
|
254
268
|
<p align="center">
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Locale } from "./intlayer/dist/types/index.js";
|
|
2
|
+
|
|
1
3
|
//#region src/generateStaticParams.d.ts
|
|
2
4
|
/**
|
|
3
5
|
* Generates static parameters for Next.js's dynamic routes based on the configured locales.
|
|
@@ -18,7 +20,7 @@
|
|
|
18
20
|
* ```
|
|
19
21
|
*/
|
|
20
22
|
declare const generateStaticParams: () => {
|
|
21
|
-
locale:
|
|
23
|
+
locale: Locale;
|
|
22
24
|
}[];
|
|
23
25
|
//#endregion
|
|
24
26
|
export { generateStaticParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateStaticParams.d.ts","names":[],"sources":["../../src/generateStaticParams.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generateStaticParams.d.ts","names":[],"sources":["../../src/generateStaticParams.ts"],"mappings":";;;;;;AAsBA;;;;;;;;;;;;;;;cAAa,oBAAA;UAAkE,MAAA;AAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeclaredLocales } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import { useDictionary as useDictionary$1 } from "react-intlayer/server";
|
|
3
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { useDictionary as useDictionary$1 } from "react-intlayer/server";
|
|
4
4
|
|
|
5
5
|
//#region src/server/useDictionary.d.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeclaredLocales, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import { useDictionaryAsync as useDictionaryAsync$1 } from "react-intlayer/server";
|
|
3
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { useDictionaryAsync as useDictionaryAsync$1 } from "react-intlayer/server";
|
|
4
4
|
|
|
5
5
|
//#region src/server/useDictionaryAsync.d.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeclaredLocales, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import { useDictionaryDynamic as useDictionaryDynamic$1 } from "react-intlayer/server";
|
|
3
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { useDictionaryDynamic as useDictionaryDynamic$1 } from "react-intlayer/server";
|
|
4
4
|
|
|
5
5
|
//#region src/server/useDictionaryDynamic.d.ts
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-intlayer",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.0-canary.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Simplify internationalization i18n in Next.js with context providers, hooks, locale detection, and multilingual content integration.",
|
|
6
6
|
"keywords": [
|
|
@@ -128,18 +128,18 @@
|
|
|
128
128
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
129
129
|
},
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@intlayer/chokidar": "8.
|
|
132
|
-
"@intlayer/config": "8.
|
|
133
|
-
"@intlayer/core": "8.
|
|
134
|
-
"@intlayer/dictionaries-entry": "8.
|
|
135
|
-
"@intlayer/types": "8.
|
|
136
|
-
"@intlayer/webpack": "8.
|
|
131
|
+
"@intlayer/chokidar": "8.10.0-canary.1",
|
|
132
|
+
"@intlayer/config": "8.10.0-canary.1",
|
|
133
|
+
"@intlayer/core": "8.10.0-canary.1",
|
|
134
|
+
"@intlayer/dictionaries-entry": "8.10.0-canary.1",
|
|
135
|
+
"@intlayer/types": "8.10.0-canary.1",
|
|
136
|
+
"@intlayer/webpack": "8.10.0-canary.1",
|
|
137
137
|
"defu": "6.1.7",
|
|
138
138
|
"node-loader": "2.1.0",
|
|
139
|
-
"react-intlayer": "8.
|
|
139
|
+
"react-intlayer": "8.10.0-canary.1"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
|
-
"@types/node": "25.
|
|
142
|
+
"@types/node": "25.9.1",
|
|
143
143
|
"@types/react": ">=16.0.0",
|
|
144
144
|
"@types/react-dom": ">=16.0.0",
|
|
145
145
|
"@utils/ts-config": "1.0.4",
|