@intlayer/docs 8.1.2 → 8.1.5
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/blog/de/per-component_vs_centralized_i18n.md +1 -1
- package/blog/en/__per-component_vs_centralized_i18n.md +1 -1
- package/blog/en/per-component_vs_centralized_i18n.md +1 -1
- package/blog/en-GB/per-component_vs_centralized_i18n.md +1 -1
- package/blog/es/per-component_vs_centralized_i18n.md +1 -1
- package/blog/fr/per-component_vs_centralized_i18n.md +1 -1
- package/blog/pt/per-component_vs_centralized_i18n.md +1 -1
- package/dist/cjs/blog.cjs +1 -21
- package/dist/cjs/blog.cjs.map +1 -1
- package/dist/cjs/common.cjs +1 -77
- package/dist/cjs/common.cjs.map +1 -1
- package/dist/cjs/doc.cjs +1 -21
- package/dist/cjs/doc.cjs.map +1 -1
- package/dist/cjs/frequentQuestions.cjs +1 -21
- package/dist/cjs/frequentQuestions.cjs.map +1 -1
- package/dist/cjs/generated/blog.entry.cjs +1 -551
- package/dist/cjs/generated/blog.entry.cjs.map +1 -1
- package/dist/cjs/generated/docs.entry.cjs +1 -2971
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/cjs/generated/frequentQuestions.entry.cjs +1 -351
- package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
- package/dist/cjs/generated/legal.entry.cjs +1 -71
- package/dist/cjs/generated/legal.entry.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -34
- package/dist/cjs/legal.cjs +1 -21
- package/dist/cjs/legal.cjs.map +1 -1
- package/dist/esm/blog.mjs +1 -14
- package/dist/esm/blog.mjs.map +1 -1
- package/dist/esm/common.mjs +1 -66
- package/dist/esm/common.mjs.map +1 -1
- package/dist/esm/doc.mjs +1 -14
- package/dist/esm/doc.mjs.map +1 -1
- package/dist/esm/frequentQuestions.mjs +1 -14
- package/dist/esm/frequentQuestions.mjs.map +1 -1
- package/dist/esm/generated/blog.entry.mjs +1 -550
- package/dist/esm/generated/blog.entry.mjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +1 -2970
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/esm/generated/frequentQuestions.entry.mjs +1 -350
- package/dist/esm/generated/frequentQuestions.entry.mjs.map +1 -1
- package/dist/esm/generated/legal.entry.mjs +1 -70
- package/dist/esm/generated/legal.entry.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -6
- package/dist/esm/legal.mjs +1 -14
- package/dist/esm/legal.mjs.map +1 -1
- package/dist/types/common.d.ts.map +1 -1
- package/docs/ar/agent_skills.md +1 -1
- package/docs/ar/cli/build.md +8 -0
- package/docs/ar/cli/index.md +1 -1
- package/docs/ar/compiler.md +1 -1
- package/docs/ar/configuration.md +34 -17
- package/docs/de/agent_skills.md +1 -1
- package/docs/de/cli/build.md +8 -0
- package/docs/de/cli/index.md +1 -1
- package/docs/de/compiler.md +1 -1
- package/docs/de/configuration.md +34 -17
- package/docs/en/agent_skills.md +1 -1
- package/docs/en/cli/build.md +8 -0
- package/docs/en/compiler.md +1 -1
- package/docs/en/configuration.md +79 -11
- package/docs/en-GB/agent_skills.md +1 -1
- package/docs/en-GB/cli/build.md +8 -0
- package/docs/en-GB/cli/index.md +1 -1
- package/docs/en-GB/compiler.md +1 -1
- package/docs/en-GB/configuration.md +34 -17
- package/docs/es/agent_skills.md +1 -1
- package/docs/es/cli/build.md +8 -0
- package/docs/es/cli/index.md +1 -1
- package/docs/es/compiler.md +1 -1
- package/docs/es/configuration.md +34 -17
- package/docs/fr/agent_skills.md +1 -1
- package/docs/fr/cli/build.md +8 -0
- package/docs/fr/cli/index.md +1 -1
- package/docs/fr/compiler.md +1 -1
- package/docs/fr/configuration.md +34 -17
- package/docs/hi/agent_skills.md +1 -1
- package/docs/hi/cli/build.md +8 -0
- package/docs/hi/cli/index.md +1 -1
- package/docs/hi/compiler.md +1 -1
- package/docs/hi/configuration.md +34 -17
- package/docs/id/agent_skills.md +1 -1
- package/docs/id/cli/build.md +8 -0
- package/docs/id/cli/index.md +1 -1
- package/docs/id/compiler.md +1 -1
- package/docs/id/configuration.md +34 -17
- package/docs/it/agent_skills.md +1 -1
- package/docs/it/cli/build.md +8 -0
- package/docs/it/cli/index.md +1 -1
- package/docs/it/compiler.md +1 -1
- package/docs/it/configuration.md +34 -17
- package/docs/ja/agent_skills.md +1 -1
- package/docs/ja/cli/build.md +8 -0
- package/docs/ja/cli/index.md +1 -1
- package/docs/ja/compiler.md +1 -1
- package/docs/ja/configuration.md +34 -17
- package/docs/ko/agent_skills.md +1 -1
- package/docs/ko/cli/build.md +8 -0
- package/docs/ko/cli/index.md +1 -1
- package/docs/ko/compiler.md +1 -1
- package/docs/ko/configuration.md +34 -17
- package/docs/pl/agent_skills.md +1 -1
- package/docs/pl/cli/build.md +8 -0
- package/docs/pl/cli/index.md +1 -1
- package/docs/pl/compiler.md +1 -1
- package/docs/pl/configuration.md +34 -17
- package/docs/pt/agent_skills.md +1 -1
- package/docs/pt/cli/build.md +8 -0
- package/docs/pt/cli/index.md +1 -1
- package/docs/pt/compiler.md +1 -1
- package/docs/pt/configuration.md +34 -17
- package/docs/ru/agent_skills.md +1 -1
- package/docs/ru/cli/build.md +8 -0
- package/docs/ru/cli/index.md +1 -1
- package/docs/ru/compiler.md +1 -1
- package/docs/ru/configuration.md +34 -17
- package/docs/tr/agent_skills.md +1 -1
- package/docs/tr/cli/build.md +8 -0
- package/docs/tr/cli/index.md +1 -1
- package/docs/tr/compiler.md +1 -1
- package/docs/tr/configuration.md +34 -17
- package/docs/uk/agent_skills.md +1 -1
- package/docs/uk/cli/build.md +8 -0
- package/docs/uk/cli/index.md +1 -1
- package/docs/uk/compiler.md +1 -1
- package/docs/uk/configuration.md +52 -6
- package/docs/vi/agent_skills.md +1 -1
- package/docs/vi/cli/build.md +8 -0
- package/docs/vi/cli/index.md +1 -1
- package/docs/vi/compiler.md +1 -1
- package/docs/vi/configuration.md +34 -17
- package/docs/zh/agent_skills.md +1 -1
- package/docs/zh/cli/build.md +8 -0
- package/docs/zh/cli/index.md +1 -1
- package/docs/zh/compiler.md +1 -1
- package/docs/zh/configuration.md +34 -17
- package/package.json +10 -11
- package/src/common.ts +2 -1
- package/src/generated/blog.entry.ts +1 -1
- package/src/generated/docs.entry.ts +1 -1
- package/src/generated/frequentQuestions.entry.ts +1 -1
- package/src/generated/legal.entry.ts +1 -1
|
@@ -36,7 +36,7 @@ When you run this command, it will:
|
|
|
36
36
|
|
|
37
37
|
1. Detect the framework you are using (e.g., Next.js, React, Vite).
|
|
38
38
|
2. Ask which platforms you want to install skills for (Cursor, Windsurf, VS Code, OpenCode, Claude Code, GitHub Copilot Workspace, etc.).
|
|
39
|
-
3. Generate the required configuration files (e.g., `.cursor/skills/
|
|
39
|
+
3. Generate the required configuration files (e.g., `.cursor/skills/intlayer-next-js/SKILL.md`, `.windsurf/skills/intlayer-next-js/SKILL.md`, `.opencode/skills/intlayer-next-js/SKILL.md`, `.vscode/mcp.json`, etc.).
|
|
40
40
|
|
|
41
41
|
## Supported Platforms
|
|
42
42
|
|
package/docs/en-GB/cli/build.md
CHANGED
|
@@ -13,6 +13,10 @@ slugs:
|
|
|
13
13
|
- concept
|
|
14
14
|
- cli
|
|
15
15
|
- build
|
|
16
|
+
history:
|
|
17
|
+
- version: 8.1.5
|
|
18
|
+
date: 2026-02-23
|
|
19
|
+
changes: Add checkTypes option
|
|
16
20
|
---
|
|
17
21
|
|
|
18
22
|
# Build Dictionaries
|
|
@@ -62,3 +66,7 @@ This command will find your declaration content files by default at `./src/**/*.
|
|
|
62
66
|
- **`--no-cache`**: Disable the cache.
|
|
63
67
|
|
|
64
68
|
> Example: `npx intlayer build --no-cache`
|
|
69
|
+
|
|
70
|
+
- **`--check-types`**: Check types of the content declaration files.
|
|
71
|
+
|
|
72
|
+
> Example: `npx intlayer build --check-types`
|
package/docs/en-GB/cli/index.md
CHANGED
|
@@ -134,7 +134,7 @@ To see how to configure available locales, or other parameters, refer to the [co
|
|
|
134
134
|
|
|
135
135
|
### Component Management
|
|
136
136
|
|
|
137
|
-
- **[Transform Components](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/cli/
|
|
137
|
+
- **[Transform Components](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/cli/extract.md)** - Transform existing components to use Intlayer
|
|
138
138
|
|
|
139
139
|
### Configuration
|
|
140
140
|
|
package/docs/en-GB/compiler.md
CHANGED
|
@@ -49,7 +49,7 @@ Whilst the compiler offers an excellent "just works" experience, it also introdu
|
|
|
49
49
|
|
|
50
50
|
For a deeper architectural comparison, see the blog post [Compiler vs. Declarative i18n](https://github.com/aymericzip/intlayer/blob/main/docs/blog/en/compiler_vs_declarative_i18n.md).
|
|
51
51
|
|
|
52
|
-
As an alternative, to automate your i18n process whilst keeping full control of your content, Intlayer also provides an auto-extraction command `intlayer
|
|
52
|
+
As an alternative, to automate your i18n process whilst keeping full control of your content, Intlayer also provides an auto-extraction command `intlayer extract` (see [CLI documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/cli/extract.md)), or the `Intlayer: extract content to Dictionary` command from the Intlayer VS Code extension (see [VS Code extension documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/vs_code_extension.md)).
|
|
53
53
|
|
|
54
54
|
## Usage
|
|
55
55
|
|
|
@@ -85,6 +85,7 @@ Intlayer accepts JSON, JS, MJS, and TS configuration file formats:
|
|
|
85
85
|
|
|
86
86
|
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
87
87
|
import { Locales, type IntlayerConfig } from "intlayer";
|
|
88
|
+
import { nextjsRewrite } from "intlayer/routing";
|
|
88
89
|
import { z } from "zod";
|
|
89
90
|
|
|
90
91
|
/**
|
|
@@ -191,12 +192,12 @@ const config: IntlayerConfig = {
|
|
|
191
192
|
/**
|
|
192
193
|
* Custom URL rewriting rules for locale-specific paths.
|
|
193
194
|
*/
|
|
194
|
-
rewrite: {
|
|
195
|
-
"/about": {
|
|
196
|
-
en: "/about",
|
|
197
|
-
fr: "/a-propos",
|
|
195
|
+
rewrite: nextjsRewrite({
|
|
196
|
+
"/[locale]/about": {
|
|
197
|
+
en: "/[locale]/about",
|
|
198
|
+
fr: "/[locale]/a-propos",
|
|
198
199
|
},
|
|
199
|
-
},
|
|
200
|
+
}),
|
|
200
201
|
},
|
|
201
202
|
|
|
202
203
|
/**
|
|
@@ -342,6 +343,12 @@ const config: IntlayerConfig = {
|
|
|
342
343
|
* Default: ['esm', 'cjs']
|
|
343
344
|
*/
|
|
344
345
|
outputFormat: ["esm"],
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Indicates if the build should check TypeScript types.
|
|
349
|
+
* Default: false
|
|
350
|
+
*/
|
|
351
|
+
checkTypes: false,
|
|
345
352
|
},
|
|
346
353
|
|
|
347
354
|
/**
|
|
@@ -416,7 +423,10 @@ const config: IntlayerConfig = {
|
|
|
416
423
|
/**
|
|
417
424
|
* Pattern to traverse the code to optimize.
|
|
418
425
|
*/
|
|
419
|
-
transformPattern: [
|
|
426
|
+
transformPattern: [
|
|
427
|
+
"**/*.{js,ts,mjs,cjs,jsx,tsx,vue,svelte}",
|
|
428
|
+
"!**/node_modules/**",
|
|
429
|
+
],
|
|
420
430
|
|
|
421
431
|
/**
|
|
422
432
|
* Pattern to exclude from the optimization.
|
|
@@ -629,26 +639,27 @@ Settings that control middleware behaviour, including how the application handle
|
|
|
629
639
|
```typescript
|
|
630
640
|
routing: {
|
|
631
641
|
mode: "prefix-no-default", // Fallback strategy
|
|
632
|
-
rewrite: {
|
|
633
|
-
"/about": {
|
|
634
|
-
en: "/about",
|
|
635
|
-
fr: "/a-propos",
|
|
642
|
+
rewrite: nextjsRewrite({
|
|
643
|
+
"/[locale]/about": {
|
|
644
|
+
en: "/[locale]/about",
|
|
645
|
+
fr: "/[locale]/a-propos",
|
|
636
646
|
},
|
|
637
|
-
"/product/[slug]": {
|
|
638
|
-
en: "/product/[slug]",
|
|
639
|
-
fr: "/produit/[slug]",
|
|
647
|
+
"/[locale]/product/[slug]": {
|
|
648
|
+
en: "/[locale]/product/[slug]",
|
|
649
|
+
fr: "/[locale]/produit/[slug]",
|
|
640
650
|
},
|
|
641
|
-
"/blog/[category]/[id]": {
|
|
642
|
-
en: "/blog/[category]/[id]",
|
|
643
|
-
fr: "/journal/[category]/[id]",
|
|
651
|
+
"/[locale]/blog/[category]/[id]": {
|
|
652
|
+
en: "/[locale]/blog/[category]/[id]",
|
|
653
|
+
fr: "/[locale]/journal/[category]/[id]",
|
|
644
654
|
},
|
|
645
|
-
},
|
|
655
|
+
}),
|
|
646
656
|
}
|
|
647
657
|
```
|
|
648
658
|
- _Note_: The rewrite rules take precedence over the default `mode` behaviour. If a path matches a rewrite rule, the localised path from the rewrite configuration will be used instead of the standard locale prefixing.
|
|
649
659
|
- _Note_: Dynamic route parameters are supported using bracket notation (e.g., `[slug]`, `[id]`). The parameter values are automatically extracted from the URL and interpolated into the rewritten path.
|
|
650
660
|
- _Note_: Works with both Next.js and Vite applications. The middleware/proxy will automatically rewrite incoming requests to match the internal route structure.
|
|
651
661
|
- _Note_: When generating URLs with `getLocalizedUrl()`, the rewrite rules are automatically applied if they match the provided path.
|
|
662
|
+
- _Reference_: For more information, see [Custom URL Rewrites](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/custom_url_rewrites.md).
|
|
652
663
|
|
|
653
664
|
- **serverSetCookie**:
|
|
654
665
|
- _Type_: `string`
|
|
@@ -942,6 +953,12 @@ Build options apply to the `@intlayer/babel` and `@intlayer/swc` plugins.
|
|
|
942
953
|
- _Note_: If 'manual', the build will be set only when the build command is executed.
|
|
943
954
|
- _Note_: Can be used to disable dictionaries build, for instance when execution on Node.js environment should be avoided.
|
|
944
955
|
|
|
956
|
+
- **checkTypes**:
|
|
957
|
+
- _Type_: `boolean`
|
|
958
|
+
- _Default_: `false`
|
|
959
|
+
- _Description_: Indicates if the build should check TypeScript types and log errors.
|
|
960
|
+
- _Note_: This can slow down the build.
|
|
961
|
+
|
|
945
962
|
- **optimize**:
|
|
946
963
|
- _Type_: `boolean`
|
|
947
964
|
- _Default_: `process.env.NODE_ENV === 'production'`
|
package/docs/es/agent_skills.md
CHANGED
|
@@ -36,7 +36,7 @@ Cuando ejecutas este comando, este:
|
|
|
36
36
|
|
|
37
37
|
1. Detectará el framework que estás usando (por ejemplo, Next.js, React, Vite).
|
|
38
38
|
2. Te preguntará para qué plataformas quieres instalar las habilidades (Cursor, Windsurf, VS Code, OpenCode, Claude Code, GitHub Copilot Workspace, etc.).
|
|
39
|
-
3. Generará los archivos de configuración necesarios (p. ej., `.cursor/skills/
|
|
39
|
+
3. Generará los archivos de configuración necesarios (p. ej., `.cursor/skills/intlayer-next-js/SKILL.md`, `.windsurf/skills/intlayer-next-js/SKILL.md`, `.opencode/skills/intlayer-next-js/SKILL.md`, `.vscode/mcp.json`, etc.).
|
|
40
40
|
|
|
41
41
|
## Plataformas Soportadas
|
|
42
42
|
|
package/docs/es/cli/build.md
CHANGED
|
@@ -13,6 +13,10 @@ slugs:
|
|
|
13
13
|
- concept
|
|
14
14
|
- cli
|
|
15
15
|
- build
|
|
16
|
+
history:
|
|
17
|
+
- version: 8.1.5
|
|
18
|
+
date: 2026-02-23
|
|
19
|
+
changes: Añadir opción checkTypes
|
|
16
20
|
---
|
|
17
21
|
|
|
18
22
|
# Construir Diccionarios
|
|
@@ -62,3 +66,7 @@ Este comando encontrará tus archivos de declaración de contenido por defecto e
|
|
|
62
66
|
- **`--no-cache`**: Deshabilitar la caché.
|
|
63
67
|
|
|
64
68
|
> Ejemplo: `npx intlayer build --no-cache`
|
|
69
|
+
|
|
70
|
+
- **`--check-types`**: Comprueba los tipos de los archivos de declaración de contenido.
|
|
71
|
+
|
|
72
|
+
> Ejemplo: `npx intlayer build --check-types`
|
package/docs/es/cli/index.md
CHANGED
|
@@ -134,7 +134,7 @@ Para ver cómo configurar los locales disponibles u otros parámetros, consulta
|
|
|
134
134
|
|
|
135
135
|
### Gestión de Componentes
|
|
136
136
|
|
|
137
|
-
- **[Transformar Componentes](https://github.com/aymericzip/intlayer/blob/main/docs/docs/es/cli/
|
|
137
|
+
- **[Transformar Componentes](https://github.com/aymericzip/intlayer/blob/main/docs/docs/es/cli/extract.md)** - Transforma componentes existentes para usar Intlayer
|
|
138
138
|
|
|
139
139
|
### Configuración
|
|
140
140
|
|
package/docs/es/compiler.md
CHANGED
|
@@ -49,7 +49,7 @@ Si bien el compilador ofrece una excelente experiencia de "funciona sin más", t
|
|
|
49
49
|
|
|
50
50
|
Para una comparación arquitectónica más profunda, consulta el artículo del blog [Compiler vs. Declarative i18n](https://github.com/aymericzip/intlayer/blob/main/docs/blog/es/compiler_vs_declarative_i18n.md).
|
|
51
51
|
|
|
52
|
-
Como alternativa, para automatizar tu proceso i18n mientras mantienes el control total de tu contenido, Intlayer también proporciona un comando de auto-extracción `intlayer
|
|
52
|
+
Como alternativa, para automatizar tu proceso i18n mientras mantienes el control total de tu contenido, Intlayer también proporciona un comando de auto-extracción `intlayer extract` (consulta la [documentación CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/es/cli/extract.md)), o el comando `Intlayer: extract content to Dictionary` de la extensión Intlayer VS Code (consulta la [documentación de la extensión VS Code](https://github.com/aymericzip/intlayer/blob/main/docs/docs/es/vs_code_extension.md)).
|
|
53
53
|
|
|
54
54
|
## Uso
|
|
55
55
|
|
package/docs/es/configuration.md
CHANGED
|
@@ -85,6 +85,7 @@ Intlayer acepta formatos de archivo de configuración JSON, JS, MJS y TS:
|
|
|
85
85
|
|
|
86
86
|
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
87
87
|
import { Locales, type IntlayerConfig } from "intlayer";
|
|
88
|
+
import { nextjsRewrite } from "intlayer/routing";
|
|
88
89
|
import { z } from "zod";
|
|
89
90
|
|
|
90
91
|
/**
|
|
@@ -191,12 +192,12 @@ const config: IntlayerConfig = {
|
|
|
191
192
|
/**
|
|
192
193
|
* Custom URL rewriting rules for locale-specific paths.
|
|
193
194
|
*/
|
|
194
|
-
rewrite: {
|
|
195
|
-
"/about": {
|
|
196
|
-
en: "/about",
|
|
197
|
-
fr: "/a-propos",
|
|
195
|
+
rewrite: nextjsRewrite({
|
|
196
|
+
"/[locale]/about": {
|
|
197
|
+
en: "/[locale]/about",
|
|
198
|
+
fr: "/[locale]/a-propos",
|
|
198
199
|
},
|
|
199
|
-
},
|
|
200
|
+
}),
|
|
200
201
|
},
|
|
201
202
|
|
|
202
203
|
/**
|
|
@@ -342,6 +343,12 @@ const config: IntlayerConfig = {
|
|
|
342
343
|
* Default: ['esm', 'cjs']
|
|
343
344
|
*/
|
|
344
345
|
outputFormat: ["esm"],
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Indicates if the build should check TypeScript types.
|
|
349
|
+
* Default: false
|
|
350
|
+
*/
|
|
351
|
+
checkTypes: false,
|
|
345
352
|
},
|
|
346
353
|
|
|
347
354
|
/**
|
|
@@ -416,7 +423,10 @@ const config: IntlayerConfig = {
|
|
|
416
423
|
/**
|
|
417
424
|
* Pattern to traverse the code to optimize.
|
|
418
425
|
*/
|
|
419
|
-
transformPattern: [
|
|
426
|
+
transformPattern: [
|
|
427
|
+
"**/*.{js,ts,mjs,cjs,jsx,tsx,vue,svelte}",
|
|
428
|
+
"!**/node_modules/**",
|
|
429
|
+
],
|
|
420
430
|
|
|
421
431
|
/**
|
|
422
432
|
* Pattern to exclude from the optimization.
|
|
@@ -629,26 +639,27 @@ Configuraciones que controlan el comportamiento del middleware, incluyendo cómo
|
|
|
629
639
|
```typescript
|
|
630
640
|
routing: {
|
|
631
641
|
mode: "prefix-no-default", // Estrategia de respaldo
|
|
632
|
-
rewrite: {
|
|
633
|
-
"/about": {
|
|
634
|
-
en: "/about",
|
|
635
|
-
fr: "/a-propos",
|
|
642
|
+
rewrite: nextjsRewrite({
|
|
643
|
+
"/[locale]/about": {
|
|
644
|
+
en: "/[locale]/about",
|
|
645
|
+
fr: "/[locale]/a-propos",
|
|
636
646
|
},
|
|
637
|
-
"/product/[slug]": {
|
|
638
|
-
en: "/product/[slug]",
|
|
639
|
-
fr: "/produit/[slug]",
|
|
647
|
+
"/[locale]/product/[slug]": {
|
|
648
|
+
en: "/[locale]/product/[slug]",
|
|
649
|
+
fr: "/[locale]/produit/[slug]",
|
|
640
650
|
},
|
|
641
|
-
"/blog/[category]/[id]": {
|
|
642
|
-
en: "/blog/[category]/[id]",
|
|
643
|
-
fr: "/journal/[category]/[id]",
|
|
651
|
+
"/[locale]/blog/[category]/[id]": {
|
|
652
|
+
en: "/[locale]/blog/[category]/[id]",
|
|
653
|
+
fr: "/[locale]/journal/[category]/[id]",
|
|
644
654
|
},
|
|
645
|
-
},
|
|
655
|
+
}),
|
|
646
656
|
}
|
|
647
657
|
```
|
|
648
658
|
- _Nota_: Las reglas de reescritura tienen prioridad sobre el comportamiento del `mode` predeterminado. Si una ruta coincide con una regla de reescritura, se usará la ruta localizada de la configuración de reescritura en lugar del prefijo de idioma estándar.
|
|
649
659
|
- _Nota_: Se admiten parámetros de ruta dinámicos usando la notación de corchetes (por ejemplo, `[slug]`, `[id]`). Los valores de los parámetros se extraen automáticamente de la URL y se interpolan en la ruta reescrita.
|
|
650
660
|
- _Nota_: Funciona con aplicaciones Next.js y Vite. El middleware/proxy reescribirá automáticamente las solicitudes entrantes para que coincidan con la estructura de ruta interna.
|
|
651
661
|
- _Nota_: Al generar URLs con `getLocalizedUrl()`, las reglas de reescritura se aplican automáticamente si coinciden con la ruta proporcionada.
|
|
662
|
+
- _Referencia_: Para más información, consulte [Reescrituras de URL personalizadas](https://github.com/aymericzip/intlayer/blob/main/docs/docs/es/custom_url_rewrites.md).
|
|
652
663
|
|
|
653
664
|
- **serverSetCookie**:
|
|
654
665
|
- _Tipo_: `string`
|
|
@@ -936,6 +947,12 @@ Las opciones de compilación se aplican a los plugins `@intlayer/babel` y `@intl
|
|
|
936
947
|
- _Nota_: Si 'manual', la compilación se establecerá solo cuando se ejecute el comando de compilación.
|
|
937
948
|
- _Nota_: Puede usarse para deshabilitar la compilación de diccionarios, por ejemplo cuando se debe evitar la ejecución en un entorno Node.js.
|
|
938
949
|
|
|
950
|
+
- **checkTypes**:
|
|
951
|
+
- _Type_: `boolean`
|
|
952
|
+
- _Default_: `false`
|
|
953
|
+
- _Description_: Indica si la compilación debe comprobar los tipos de TypeScript y registrar errores.
|
|
954
|
+
- _Note_: Esto puede ralentizar la compilación.
|
|
955
|
+
|
|
939
956
|
- **optimize**:
|
|
940
957
|
- _Tipo_: `boolean`
|
|
941
958
|
- _Por defecto_: `process.env.NODE_ENV === 'production'`
|
package/docs/fr/agent_skills.md
CHANGED
|
@@ -36,7 +36,7 @@ Lorsque vous exécutez cette commande, elle :
|
|
|
36
36
|
|
|
37
37
|
1. Détecte le framework que vous utilisez (ex: Next.js, React, Vite).
|
|
38
38
|
2. Vous demande pour quelles plateformes vous souhaitez installer des compétences (Cursor, Windsurf, VS Code, OpenCode, Claude Code, GitHub Copilot Workspace, etc.).
|
|
39
|
-
3. Génère les fichiers de configuration requis (ex: `.cursor/skills/
|
|
39
|
+
3. Génère les fichiers de configuration requis (ex: `.cursor/skills/intlayer-next-js/SKILL.md`, `.windsurf/skills/intlayer-next-js/SKILL.md`, `.opencode/skills/intlayer-next-js/SKILL.md`, `.vscode/mcp.json`, etc.).
|
|
40
40
|
|
|
41
41
|
## Plateformes supportées
|
|
42
42
|
|
package/docs/fr/cli/build.md
CHANGED
|
@@ -13,6 +13,10 @@ slugs:
|
|
|
13
13
|
- concept
|
|
14
14
|
- cli
|
|
15
15
|
- build
|
|
16
|
+
history:
|
|
17
|
+
- version: 8.1.5
|
|
18
|
+
date: 2026-02-23
|
|
19
|
+
changes: Ajouter l'option checkTypes
|
|
16
20
|
---
|
|
17
21
|
|
|
18
22
|
# Construire des Dictionnaires
|
|
@@ -62,3 +66,7 @@ Cette commande trouvera par défaut vos fichiers de déclaration de contenu sous
|
|
|
62
66
|
- **`--no-cache`** : Désactiver le cache.
|
|
63
67
|
|
|
64
68
|
> Exemple : `npx intlayer build --no-cache`
|
|
69
|
+
|
|
70
|
+
- **`--check-types`**: Vérifie les types des fichiers de déclaration de contenu.
|
|
71
|
+
|
|
72
|
+
> Exemple : `npx intlayer build --check-types`
|
package/docs/fr/cli/index.md
CHANGED
|
@@ -134,7 +134,7 @@ Pour voir comment configurer les locales disponibles, ou d'autres paramètres, r
|
|
|
134
134
|
|
|
135
135
|
### Gestion des composants
|
|
136
136
|
|
|
137
|
-
- **[Transformer les composants](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/cli/
|
|
137
|
+
- **[Transformer les composants](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/cli/extract.md)** - Transformer les composants existants pour utiliser Intlayer
|
|
138
138
|
|
|
139
139
|
### Configuration
|
|
140
140
|
|
package/docs/fr/compiler.md
CHANGED
|
@@ -49,7 +49,7 @@ Bien que le compilateur offre une excellente expérience "fonctionne tout seul",
|
|
|
49
49
|
|
|
50
50
|
Pour une comparaison architecturale plus approfondie, consultez l'article de blog [Compiler vs. Declarative i18n](https://github.com/aymericzip/intlayer/blob/main/docs/blog/fr/compiler_vs_declarative_i18n.md).
|
|
51
51
|
|
|
52
|
-
Comme alternative, pour automatiser votre processus i18n tout en gardant un contrôle total de votre contenu, Intlayer fournit également une commande d'auto-extraction `intlayer
|
|
52
|
+
Comme alternative, pour automatiser votre processus i18n tout en gardant un contrôle total de votre contenu, Intlayer fournit également une commande d'auto-extraction `intlayer extract` (voir la [documentation CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/cli/extract.md)), ou la commande `Intlayer: extract content to Dictionary` de l'extension Intlayer VS Code (voir la [documentation de l'extension VS Code](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/vs_code_extension.md)).
|
|
53
53
|
|
|
54
54
|
## Utilisation
|
|
55
55
|
|
package/docs/fr/configuration.md
CHANGED
|
@@ -88,6 +88,7 @@ Intlayer accepte les formats de fichiers de configuration JSON, JS, MJS et TS :
|
|
|
88
88
|
|
|
89
89
|
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
90
90
|
import { Locales, type IntlayerConfig } from "intlayer";
|
|
91
|
+
import { nextjsRewrite } from "intlayer/routing";
|
|
91
92
|
import { z } from "zod";
|
|
92
93
|
|
|
93
94
|
/**
|
|
@@ -194,12 +195,12 @@ const config: IntlayerConfig = {
|
|
|
194
195
|
/**
|
|
195
196
|
* Custom URL rewriting rules for locale-specific paths.
|
|
196
197
|
*/
|
|
197
|
-
rewrite: {
|
|
198
|
-
"/about": {
|
|
199
|
-
en: "/about",
|
|
200
|
-
fr: "/a-propos",
|
|
198
|
+
rewrite: nextjsRewrite({
|
|
199
|
+
"/[locale]/about": {
|
|
200
|
+
en: "/[locale]/about",
|
|
201
|
+
fr: "/[locale]/a-propos",
|
|
201
202
|
},
|
|
202
|
-
},
|
|
203
|
+
}),
|
|
203
204
|
},
|
|
204
205
|
|
|
205
206
|
/**
|
|
@@ -345,6 +346,12 @@ const config: IntlayerConfig = {
|
|
|
345
346
|
* Default: ['esm', 'cjs']
|
|
346
347
|
*/
|
|
347
348
|
outputFormat: ["esm"],
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Indicates if the build should check TypeScript types.
|
|
352
|
+
* Default: false
|
|
353
|
+
*/
|
|
354
|
+
checkTypes: false,
|
|
348
355
|
},
|
|
349
356
|
|
|
350
357
|
/**
|
|
@@ -419,7 +426,10 @@ const config: IntlayerConfig = {
|
|
|
419
426
|
/**
|
|
420
427
|
* Pattern to traverse the code to optimize.
|
|
421
428
|
*/
|
|
422
|
-
transformPattern: [
|
|
429
|
+
transformPattern: [
|
|
430
|
+
"**/*.{js,ts,mjs,cjs,jsx,tsx,vue,svelte}",
|
|
431
|
+
"!**/node_modules/**",
|
|
432
|
+
],
|
|
423
433
|
|
|
424
434
|
/**
|
|
425
435
|
* Pattern to exclude from the optimization.
|
|
@@ -632,26 +642,27 @@ Paramètres qui contrôlent le comportement du middleware, y compris la gestion
|
|
|
632
642
|
```typescript
|
|
633
643
|
routing: {
|
|
634
644
|
mode: "prefix-no-default", // Stratégie de repli
|
|
635
|
-
rewrite: {
|
|
636
|
-
"/about": {
|
|
637
|
-
en: "/about",
|
|
638
|
-
fr: "/a-propos",
|
|
645
|
+
rewrite: nextjsRewrite({
|
|
646
|
+
"/[locale]/about": {
|
|
647
|
+
en: "/[locale]/about",
|
|
648
|
+
fr: "/[locale]/a-propos",
|
|
639
649
|
},
|
|
640
|
-
"/product/[slug]": {
|
|
641
|
-
en: "/product/[slug]",
|
|
642
|
-
fr: "/produit/[slug]",
|
|
650
|
+
"/[locale]/product/[slug]": {
|
|
651
|
+
en: "/[locale]/product/[slug]",
|
|
652
|
+
fr: "/[locale]/produit/[slug]",
|
|
643
653
|
},
|
|
644
|
-
"/blog/[category]/[id]": {
|
|
645
|
-
en: "/blog/[category]/[id]",
|
|
646
|
-
fr: "/journal/[category]/[id]",
|
|
654
|
+
"/[locale]/blog/[category]/[id]": {
|
|
655
|
+
en: "/[locale]/blog/[category]/[id]",
|
|
656
|
+
fr: "/[locale]/journal/[category]/[id]",
|
|
647
657
|
},
|
|
648
|
-
},
|
|
658
|
+
}),
|
|
649
659
|
}
|
|
650
660
|
```
|
|
651
661
|
- _Note_ : Les règles de réécriture ont la priorité sur le comportement du `mode` par défaut. Si un chemin correspond à une règle de réécriture, le chemin localisé de la configuration de réécriture sera utilisé au lieu du préfixe de langue standard.
|
|
652
662
|
- _Note_ : Les paramètres de route dynamiques sont pris en charge en utilisant la notation entre crochets (par exemple, `[slug]`, `[id]`). Les valeurs des paramètres sont automatiquement extraites de l'URL et interpolées dans le chemin réécrit.
|
|
653
663
|
- _Note_ : Fonctionne avec les applications Next.js et Vite. Le middleware/proxy réécrira automatiquement les requêtes entrantes pour correspondre à la structure de route interne.
|
|
654
664
|
- _Note_ : Lors de la génération d'URLs avec `getLocalizedUrl()`, les règles de réécriture sont automatiquement appliquées si elles correspondent au chemin fourni.
|
|
665
|
+
- _Reference_ : Pour plus d'informations, voir [Réécriture d'URL personnalisée](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/custom_url_rewrites.md).
|
|
655
666
|
|
|
656
667
|
- **serverSetCookie** :
|
|
657
668
|
- _Type_ : `string`
|
|
@@ -945,6 +956,12 @@ Les options de compilation s'appliquent aux plugins `@intlayer/babel` et `@intla
|
|
|
945
956
|
- _Note_ : Si 'manual', la compilation sera définie uniquement lorsque la commande de compilation est exécutée.
|
|
946
957
|
- _Note_ : Peut être utilisé pour désactiver la compilation des dictionnaires, par exemple lorsque l'exécution dans un environnement Node.js doit être évitée.
|
|
947
958
|
|
|
959
|
+
- **checkTypes** :
|
|
960
|
+
- _Type_ : `boolean`
|
|
961
|
+
- _Default_ : `false`
|
|
962
|
+
- _Description_ : Indique si la compilation doit vérifier les types TypeScript et consigner les erreurs.
|
|
963
|
+
- _Note_ : Cela peut ralentir la compilation.
|
|
964
|
+
|
|
948
965
|
- **optimize** :
|
|
949
966
|
- _Type_ : `boolean`
|
|
950
967
|
- _Par défaut_ : `process.env.NODE_ENV === 'production'`
|
package/docs/hi/agent_skills.md
CHANGED
|
@@ -36,7 +36,7 @@ npx skills add aymericzip/intlayer-skills
|
|
|
36
36
|
|
|
37
37
|
1. आप किस framework का उपयोग कर रहे हैं इसका पता लगाना (उदा., Next.js, React, Vite).
|
|
38
38
|
2. आपसे पूछा जाएगा कि आप किन प्लेटफ़ॉर्म्स पर skills इंस्टॉल करना चाहते हैं (Cursor, Windsurf, VS Code, OpenCode, Claude Code, GitHub Copilot Workspace, आदि)।
|
|
39
|
-
3. आवश्यक कॉन्फ़िगरेशन फ़ाइलें जनरेट करेगा (जैसे `.cursor/skills/
|
|
39
|
+
3. आवश्यक कॉन्फ़िगरेशन फ़ाइलें जनरेट करेगा (जैसे `.cursor/skills/intlayer-next-js/SKILL.md`, `.windsurf/skills/intlayer-next-js/SKILL.md`, `.opencode/skills/intlayer-next-js/SKILL.md`, `.vscode/mcp.json`, आदि)।
|
|
40
40
|
|
|
41
41
|
## Supported Platforms
|
|
42
42
|
|
package/docs/hi/cli/build.md
CHANGED
|
@@ -13,6 +13,10 @@ slugs:
|
|
|
13
13
|
- concept
|
|
14
14
|
- cli
|
|
15
15
|
- build
|
|
16
|
+
history:
|
|
17
|
+
- version: 8.1.5
|
|
18
|
+
date: 2026-02-23
|
|
19
|
+
changes: checkTypes विकल्प जोड़ें
|
|
16
20
|
---
|
|
17
21
|
|
|
18
22
|
# शब्दकोश बनाएं
|
|
@@ -62,3 +66,7 @@ npx intlayer build --watch
|
|
|
62
66
|
- **`--no-cache`**: कैश को अक्षम करें।
|
|
63
67
|
|
|
64
68
|
> उदाहरण: `npx intlayer build --no-cache`
|
|
69
|
+
|
|
70
|
+
- **`--check-types`**: सामग्री घोषणा फ़ाइलों के प्रकारों की जाँच करें।
|
|
71
|
+
|
|
72
|
+
> उदाहरण: `npx intlayer build --check-types`
|
package/docs/hi/cli/index.md
CHANGED
|
@@ -134,7 +134,7 @@ Intlayer कई कॉन्फ़िगरेशन फ़ाइल प्र
|
|
|
134
134
|
|
|
135
135
|
### घटक प्रबंधन
|
|
136
136
|
|
|
137
|
-
- **[कंपोनेंट्स को ट्रांसफॉर्म करें](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/
|
|
137
|
+
- **[कंपोनेंट्स को ट्रांसफॉर्म करें](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/extract.md)** - मौजूदा कंपोनेंट्स को Intlayer का उपयोग करने के लिए ट्रांसफॉर्म करें
|
|
138
138
|
|
|
139
139
|
### कॉन्फ़िगरेशन
|
|
140
140
|
|
package/docs/hi/compiler.md
CHANGED
|
@@ -49,7 +49,7 @@ history:
|
|
|
49
49
|
|
|
50
50
|
गहरी वास्तुकला तुलना के लिए, [Compiler vs. Declarative i18n](https://github.com/aymericzip/intlayer/blob/main/docs/blog/en/compiler_vs_declarative_i18n.md) ब्लॉग पोस्ट देखें।
|
|
51
51
|
|
|
52
|
-
वैकल्पिक रूप से, अपनी सामग्री पर पूर्ण नियंत्रण रखते हुए अपनी i18n प्रक्रिया को स्वचालित करने के लिए, Intlayer एक स्वचालित निष्कर्षण कमांड `intlayer
|
|
52
|
+
वैकल्पिक रूप से, अपनी सामग्री पर पूर्ण नियंत्रण रखते हुए अपनी i18n प्रक्रिया को स्वचालित करने के लिए, Intlayer एक स्वचालित निष्कर्षण कमांड `intlayer extract` (देखें [CLI दस्तावेज़ीकरण](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/extract.md)) या Intlayer VS Code एक्सटेंशन का `Intlayer: extract content to Dictionary` कमांड (देखें [VS Code एक्सटेंशन दस्तावेज़ीकरण](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/vs_code_extension.md)) भी प्रदान करता है।
|
|
53
53
|
|
|
54
54
|
## उपयोग
|
|
55
55
|
|
package/docs/hi/configuration.md
CHANGED
|
@@ -85,6 +85,7 @@ Intlayer JSON, JS, MJS, और TS कॉन्फ़िगरेशन फ़ा
|
|
|
85
85
|
|
|
86
86
|
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
87
87
|
import { Locales, type IntlayerConfig } from "intlayer";
|
|
88
|
+
import { nextjsRewrite } from "intlayer/routing";
|
|
88
89
|
import { z } from "zod";
|
|
89
90
|
|
|
90
91
|
/**
|
|
@@ -191,12 +192,12 @@ const config: IntlayerConfig = {
|
|
|
191
192
|
/**
|
|
192
193
|
* Custom URL rewriting rules for locale-specific paths.
|
|
193
194
|
*/
|
|
194
|
-
rewrite: {
|
|
195
|
-
"/about": {
|
|
196
|
-
en: "/about",
|
|
197
|
-
fr: "/a-propos",
|
|
195
|
+
rewrite: nextjsRewrite({
|
|
196
|
+
"/[locale]/about": {
|
|
197
|
+
en: "/[locale]/about",
|
|
198
|
+
fr: "/[locale]/a-propos",
|
|
198
199
|
},
|
|
199
|
-
},
|
|
200
|
+
}),
|
|
200
201
|
},
|
|
201
202
|
|
|
202
203
|
/**
|
|
@@ -342,6 +343,12 @@ const config: IntlayerConfig = {
|
|
|
342
343
|
* Default: ['esm', 'cjs']
|
|
343
344
|
*/
|
|
344
345
|
outputFormat: ["esm"],
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Indicates if the build should check TypeScript types.
|
|
349
|
+
* Default: false
|
|
350
|
+
*/
|
|
351
|
+
checkTypes: false,
|
|
345
352
|
},
|
|
346
353
|
|
|
347
354
|
/**
|
|
@@ -416,7 +423,10 @@ const config: IntlayerConfig = {
|
|
|
416
423
|
/**
|
|
417
424
|
* Pattern to traverse the code to optimize.
|
|
418
425
|
*/
|
|
419
|
-
transformPattern: [
|
|
426
|
+
transformPattern: [
|
|
427
|
+
"**/*.{js,ts,mjs,cjs,jsx,tsx,vue,svelte}",
|
|
428
|
+
"!**/node_modules/**",
|
|
429
|
+
],
|
|
420
430
|
|
|
421
431
|
/**
|
|
422
432
|
* Pattern to exclude from the optimization.
|
|
@@ -629,26 +639,27 @@ export default config;
|
|
|
629
639
|
```typescript
|
|
630
640
|
routing: {
|
|
631
641
|
mode: "prefix-no-default", // फॉलबैक रणनीति
|
|
632
|
-
rewrite: {
|
|
633
|
-
"/about": {
|
|
634
|
-
en: "/about",
|
|
635
|
-
fr: "/a-propos",
|
|
642
|
+
rewrite: nextjsRewrite({
|
|
643
|
+
"/[locale]/about": {
|
|
644
|
+
en: "/[locale]/about",
|
|
645
|
+
fr: "/[locale]/a-propos",
|
|
636
646
|
},
|
|
637
|
-
"/product/[slug]": {
|
|
638
|
-
en: "/product/[slug]",
|
|
639
|
-
fr: "/produit/[slug]",
|
|
647
|
+
"/[locale]/product/[slug]": {
|
|
648
|
+
en: "/[locale]/product/[slug]",
|
|
649
|
+
fr: "/[locale]/produit/[slug]",
|
|
640
650
|
},
|
|
641
|
-
"/blog/[category]/[id]": {
|
|
642
|
-
en: "/blog/[category]/[id]",
|
|
643
|
-
fr: "/journal/[category]/[id]",
|
|
651
|
+
"/[locale]/blog/[category]/[id]": {
|
|
652
|
+
en: "/[locale]/blog/[category]/[id]",
|
|
653
|
+
fr: "/[locale]/journal/[category]/[id]",
|
|
644
654
|
},
|
|
645
|
-
},
|
|
655
|
+
}),
|
|
646
656
|
}
|
|
647
657
|
```
|
|
648
658
|
- _नोट_: रीराइट नियम डिफ़ॉल्ट `mode` व्यवहार पर प्राथमिकता लेते हैं। यदि कोई पथ रीराइट नियम से मेल खाता है, तो मानक भाषा उपसर्ग के बजाय रीराइट कॉन्फ़िगरेशन से स्थानीयकृत पथ का उपयोग किया जाएगा।
|
|
649
659
|
- _नोट_: गतिशील रूट पैरामीटर कोष्ठक संकेतन (उदाहरण के लिए, `[slug]`, `[id]`) का उपयोग करके समर्थित हैं। पैरामीटर मान स्वचालित रूप से URL से निकाले जाते हैं और रीराइट किए गए पथ में इंटरपोलेट किए जाते हैं।
|
|
650
660
|
- _नोट_: Next.js और Vite अनुप्रयोगों के साथ काम करता है। मिडलवेयर/प्रॉक्सी आने वाले अनुरोधों को आंतरिक रूट संरचना से मेल खाने के लिए स्वचालित रूप से रीराइट करेगा।
|
|
651
661
|
- _नोट_: `getLocalizedUrl()` के साथ URL उत्पन्न करते समय, यदि वे प्रदान किए गए पथ से मेल खाते हैं, तो रीराइट नियम स्वचालित रूप से लागू होते हैं।
|
|
662
|
+
- _संदर्भ_: अधिक जानकारी के लिए, देखें [कस्टम URL रीराइट](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/custom_url_rewrites.md)।
|
|
652
663
|
|
|
653
664
|
- **serverSetCookie**:
|
|
654
665
|
- _प्रकार_: `string`
|
|
@@ -924,6 +935,12 @@ Intlayer बेहतर लचीलापन और विकल्प के
|
|
|
924
935
|
- _नोट_: यदि 'manual', तो बिल्ड केवल तब सेट किया जाएगा जब बिल्ड कमांड निष्पादित की जाती है।
|
|
925
936
|
- _नोट_: शब्दकोश बिल्ड को अक्षम करने के लिए उपयोग किया जा सकता है, उदाहरण के लिए जब Node.js वातावरण में निष्पादन से बचना चाहिए।
|
|
926
937
|
|
|
938
|
+
- **checkTypes**:
|
|
939
|
+
- _Type_: `boolean`
|
|
940
|
+
- _Default_: `false`
|
|
941
|
+
- _Description_: इंगित करता है कि क्या बिल्ड को TypeScript प्रकारों की जांच करनी चाहिए और त्रुटियों को लॉग करना चाहिए।
|
|
942
|
+
- _Note_: यह बिल्ड को धीमा कर सकता है।
|
|
943
|
+
|
|
927
944
|
- **optimize**:
|
|
928
945
|
- _प्रकार_: `boolean`
|
|
929
946
|
- _डिफ़ॉल्ट_: `process.env.NODE_ENV === 'production'`
|
package/docs/id/agent_skills.md
CHANGED
|
@@ -36,7 +36,7 @@ Saat Anda menjalankan perintah ini, perintah tersebut akan:
|
|
|
36
36
|
|
|
37
37
|
1. Mendeteksi framework yang Anda gunakan (mis. Next.js, React, Vite).
|
|
38
38
|
2. Menanyakan platform mana yang ingin Anda pasang skills-nya (Cursor, Windsurf, VS Code, OpenCode, Claude Code, GitHub Copilot Workspace, dll.).
|
|
39
|
-
3. Menghasilkan file konfigurasi yang diperlukan (seperti `.cursor/skills/
|
|
39
|
+
3. Menghasilkan file konfigurasi yang diperlukan (seperti `.cursor/skills/intlayer-next-js/SKILL.md`, `.windsurf/skills/intlayer-next-js/SKILL.md`, `.opencode/skills/intlayer-next-js/SKILL.md`, `.vscode/mcp.json`, dll.).
|
|
40
40
|
|
|
41
41
|
## Platform yang Didukung
|
|
42
42
|
|