@intlayer/docs 8.1.2 → 8.1.6
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
package/docs/id/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: Tambahkan opsi checkTypes
|
|
16
20
|
---
|
|
17
21
|
|
|
18
22
|
# Bangun Kamus
|
|
@@ -62,3 +66,7 @@ Perintah ini akan mencari file deklarasi konten Anda secara default di `./src/**
|
|
|
62
66
|
- **`--no-cache`**: Nonaktifkan cache.
|
|
63
67
|
|
|
64
68
|
> Contoh: `npx intlayer build --no-cache`
|
|
69
|
+
|
|
70
|
+
- **`--check-types`**: Memeriksa tipe file deklarasi konten.
|
|
71
|
+
|
|
72
|
+
> Contoh: `npx intlayer build --check-types`
|
package/docs/id/cli/index.md
CHANGED
|
@@ -134,7 +134,7 @@ Untuk melihat cara mengonfigurasi locale yang tersedia, atau parameter lainnya,
|
|
|
134
134
|
|
|
135
135
|
### Manajemen Komponen
|
|
136
136
|
|
|
137
|
-
- **[Transformasi Komponen](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/cli/
|
|
137
|
+
- **[Transformasi Komponen](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/cli/extract.md)** - Transformasi komponen yang ada untuk menggunakan Intlayer
|
|
138
138
|
|
|
139
139
|
### Konfigurasi
|
|
140
140
|
|
package/docs/id/compiler.md
CHANGED
|
@@ -49,7 +49,7 @@ Meskipun compiler menawarkan pengalaman "langsung bekerja" yang sangat baik, com
|
|
|
49
49
|
|
|
50
50
|
Untuk perbandingan arsitektur yang lebih mendalam, lihat posting blog [Compiler vs. Declarative i18n](https://github.com/aymericzip/intlayer/blob/main/docs/blog/id/compiler_vs_declarative_i18n.md).
|
|
51
51
|
|
|
52
|
-
Sebagai alternatif, untuk mengotomatisasi proses i18n Anda sambil mempertahankan kontrol penuh atas konten Anda, Intlayer juga menyediakan perintah auto-ekstraksi `intlayer
|
|
52
|
+
Sebagai alternatif, untuk mengotomatisasi proses i18n Anda sambil mempertahankan kontrol penuh atas konten Anda, Intlayer juga menyediakan perintah auto-ekstraksi `intlayer extract` (lihat [dokumentasi CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/cli/extract.md)), atau perintah `Intlayer: extract content to Dictionary` dari ekstensi Intlayer VS Code (lihat [dokumentasi ekstensi VS Code](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/vs_code_extension.md)).
|
|
53
53
|
|
|
54
54
|
## Penggunaan
|
|
55
55
|
|
package/docs/id/configuration.md
CHANGED
|
@@ -103,6 +103,7 @@ Intlayer menerima format file konfigurasi JSON, JS, MJS, dan TS:
|
|
|
103
103
|
|
|
104
104
|
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
105
105
|
import { Locales, type IntlayerConfig } from "intlayer";
|
|
106
|
+
import { nextjsRewrite } from "intlayer/routing";
|
|
106
107
|
import { z } from "zod";
|
|
107
108
|
|
|
108
109
|
/**
|
|
@@ -209,12 +210,12 @@ const config: IntlayerConfig = {
|
|
|
209
210
|
/**
|
|
210
211
|
* Custom URL rewriting rules for locale-specific paths.
|
|
211
212
|
*/
|
|
212
|
-
rewrite: {
|
|
213
|
-
"/about": {
|
|
214
|
-
en: "/about",
|
|
215
|
-
fr: "/a-propos",
|
|
213
|
+
rewrite: nextjsRewrite({
|
|
214
|
+
"/[locale]/about": {
|
|
215
|
+
en: "/[locale]/about",
|
|
216
|
+
fr: "/[locale]/a-propos",
|
|
216
217
|
},
|
|
217
|
-
},
|
|
218
|
+
}),
|
|
218
219
|
},
|
|
219
220
|
|
|
220
221
|
/**
|
|
@@ -360,6 +361,12 @@ const config: IntlayerConfig = {
|
|
|
360
361
|
* Default: ['esm', 'cjs']
|
|
361
362
|
*/
|
|
362
363
|
outputFormat: ["esm"],
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Indicates if the build should check TypeScript types.
|
|
367
|
+
* Default: false
|
|
368
|
+
*/
|
|
369
|
+
checkTypes: false,
|
|
363
370
|
},
|
|
364
371
|
|
|
365
372
|
/**
|
|
@@ -434,7 +441,10 @@ const config: IntlayerConfig = {
|
|
|
434
441
|
/**
|
|
435
442
|
* Pattern to traverse the code to optimize.
|
|
436
443
|
*/
|
|
437
|
-
transformPattern: [
|
|
444
|
+
transformPattern: [
|
|
445
|
+
"**/*.{js,ts,mjs,cjs,jsx,tsx,vue,svelte}",
|
|
446
|
+
"!**/node_modules/**",
|
|
447
|
+
],
|
|
438
448
|
|
|
439
449
|
/**
|
|
440
450
|
* Pattern to exclude from the optimization.
|
|
@@ -663,26 +673,27 @@ Pengaturan yang mengontrol perilaku routing, termasuk struktur URL, penyimpanan
|
|
|
663
673
|
```typescript
|
|
664
674
|
routing: {
|
|
665
675
|
mode: "prefix-no-default", // Strategi fallback
|
|
666
|
-
rewrite: {
|
|
667
|
-
"/about": {
|
|
668
|
-
en: "/about",
|
|
669
|
-
fr: "/a-propos",
|
|
676
|
+
rewrite: nextjsRewrite({
|
|
677
|
+
"/[locale]/about": {
|
|
678
|
+
en: "/[locale]/about",
|
|
679
|
+
fr: "/[locale]/a-propos",
|
|
670
680
|
},
|
|
671
|
-
"/product/[slug]": {
|
|
672
|
-
en: "/product/[slug]",
|
|
673
|
-
fr: "/produit/[slug]",
|
|
681
|
+
"/[locale]/product/[slug]": {
|
|
682
|
+
en: "/[locale]/product/[slug]",
|
|
683
|
+
fr: "/[locale]/produit/[slug]",
|
|
674
684
|
},
|
|
675
|
-
"/blog/[category]/[id]": {
|
|
676
|
-
en: "/blog/[category]/[id]",
|
|
677
|
-
fr: "/journal/[category]/[id]",
|
|
685
|
+
"/[locale]/blog/[category]/[id]": {
|
|
686
|
+
en: "/[locale]/blog/[category]/[id]",
|
|
687
|
+
fr: "/[locale]/journal/[category]/[id]",
|
|
678
688
|
},
|
|
679
|
-
},
|
|
689
|
+
}),
|
|
680
690
|
}
|
|
681
691
|
```
|
|
682
692
|
- _Catatan_: Aturan penulisan ulang memiliki prioritas di atas perilaku `mode` default. Jika jalur cocok dengan aturan penulisan ulang, jalur yang dilokalisasi dari konfigurasi penulisan ulang akan digunakan alih-alih prefiks bahasa standar.
|
|
683
693
|
- _Catatan_: Parameter rute dinamis didukung menggunakan notasi kurung siku (misalnya, `[slug]`, `[id]`). Nilai parameter secara otomatis diekstrak dari URL dan diinterpolasi ke dalam jalur yang ditulis ulang.
|
|
684
694
|
- _Catatan_: Bekerja dengan aplikasi Next.js dan Vite. Middleware/proxy akan secara otomatis menulis ulang permintaan masuk untuk mencocokkan struktur rute internal.
|
|
685
695
|
- _Catatan_: Saat menghasilkan URL dengan `getLocalizedUrl()`, aturan penulisan ulang secara otomatis diterapkan jika cocok dengan jalur yang disediakan.
|
|
696
|
+
- _Referensi_: Untuk informasi lebih lanjut, lihat [Penulisan Ulang URL Kustom](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/custom_url_rewrites.md).
|
|
686
697
|
|
|
687
698
|
#### Atribut Cookie
|
|
688
699
|
|
|
@@ -1062,6 +1073,12 @@ Opsi build berlaku untuk plugin `@intlayer/babel` dan `@intlayer/swc`.
|
|
|
1062
1073
|
- _Catatan_: Jika diatur ke "live", hanya kamus yang menyertakan konten jarak jauh, dan diatur sebagai flag "live" yang akan diubah menjadi mode live. Yang lainnya akan diimpor secara dinamis sebagai mode "dynamic" untuk mengoptimalkan jumlah kueri pengambilan, dan kinerja pemuatan.
|
|
1063
1074
|
- _Catatan_: Mode live akan menggunakan API sinkronisasi live untuk mengambil kamus. Jika panggilan API gagal, kamus akan diimpor secara dinamis sebagai mode "dynamic".
|
|
1064
1075
|
- _Catatan_: Opsi ini tidak akan memengaruhi fungsi `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` dan `useDictionaryDynamic`.
|
|
1076
|
+
- **checkTypes**:
|
|
1077
|
+
- _Type_: `boolean`
|
|
1078
|
+
- _Default_: `false`
|
|
1079
|
+
- _Description_: Menunjukkan apakah build harus memeriksa tipe TypeScript dan mencatat kesalahan.
|
|
1080
|
+
- _Note_: Hal ini dapat memperlambat proses build.
|
|
1081
|
+
|
|
1065
1082
|
- **outputFormat**:
|
|
1066
1083
|
- _Tipe_: `'esm' | 'cjs'`
|
|
1067
1084
|
- _Default_: `'esm'`
|
package/docs/it/agent_skills.md
CHANGED
|
@@ -36,7 +36,7 @@ Quando esegui questo comando, esso:
|
|
|
36
36
|
|
|
37
37
|
1. Rileverà il framework che stai utilizzando (es. Next.js, React, Vite).
|
|
38
38
|
2. Ti chiederà per quali piattaforme desideri installare le abilità (Cursor, Windsurf, VS Code, OpenCode, Claude Code, GitHub Copilot Workspace, ecc.).
|
|
39
|
-
3. Genererà i file di configurazione richiesti (es. `.cursor/skills/
|
|
39
|
+
3. Genererà i file di configurazione richiesti (es. `.cursor/skills/intlayer-next-js/SKILL.md`, `.windsurf/skills/intlayer-next-js/SKILL.md`, `.opencode/skills/intlayer-next-js/SKILL.md`, `.vscode/mcp.json`, ecc.).
|
|
40
40
|
|
|
41
41
|
## Piattaforme Supportate
|
|
42
42
|
|
package/docs/it/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: Aggiungi opzione checkTypes
|
|
16
20
|
---
|
|
17
21
|
|
|
18
22
|
# Costruire Dizionari
|
|
@@ -62,3 +66,7 @@ Questo comando troverà i tuoi file di dichiarazione dei contenuti di default in
|
|
|
62
66
|
- **`--no-cache`**: Disabilita la cache.
|
|
63
67
|
|
|
64
68
|
> Esempio: `npx intlayer build --no-cache`
|
|
69
|
+
|
|
70
|
+
- **`--check-types`**: Controlla i tipi dei file di dichiarazione del contenuto.
|
|
71
|
+
|
|
72
|
+
> Esempio: `npx intlayer build --check-types`
|
package/docs/it/cli/index.md
CHANGED
|
@@ -134,7 +134,7 @@ Per vedere come configurare le localizzazioni disponibili o altri parametri, con
|
|
|
134
134
|
|
|
135
135
|
### Gestione Componenti
|
|
136
136
|
|
|
137
|
-
- **[Trasforma Componenti](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/
|
|
137
|
+
- **[Trasforma Componenti](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md)** - Trasforma i componenti esistenti per utilizzare Intlayer
|
|
138
138
|
|
|
139
139
|
### Configurazione
|
|
140
140
|
|
package/docs/it/compiler.md
CHANGED
|
@@ -49,7 +49,7 @@ Sebbene il compiler offra un'esperienza eccellente "funziona subito", introduce
|
|
|
49
49
|
|
|
50
50
|
Per un confronto architetturale più approfondito, consulta il post sul blog [Compiler vs. Declarative i18n](https://github.com/aymericzip/intlayer/blob/main/docs/blog/it/compiler_vs_declarative_i18n.md).
|
|
51
51
|
|
|
52
|
-
Come alternativa, per automatizzare il tuo processo i18n mantenendo il pieno controllo del tuo contenuto, Intlayer fornisce anche un comando di auto-estrazione `intlayer
|
|
52
|
+
Come alternativa, per automatizzare il tuo processo i18n mantenendo il pieno controllo del tuo contenuto, Intlayer fornisce anche un comando di auto-estrazione `intlayer extract` (vedi [documentazione CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md)), o il comando `Intlayer: extract content to Dictionary` dall'estensione Intlayer VS Code (vedi [documentazione estensione VS Code](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/vs_code_extension.md)).
|
|
53
53
|
|
|
54
54
|
## Utilizzo
|
|
55
55
|
|
package/docs/it/configuration.md
CHANGED
|
@@ -85,6 +85,7 @@ Intlayer accetta formati di file di configurazione JSON, JS, MJS e 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 @@ Impostazioni che controllano il comportamento del middleware, incluso come l'app
|
|
|
629
639
|
```typescript
|
|
630
640
|
routing: {
|
|
631
641
|
mode: "prefix-no-default", // Strategia di fallback
|
|
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_: Le regole di riscrittura hanno la priorità sul comportamento del `mode` predefinito. Se un percorso corrisponde a una regola di riscrittura, verrà utilizzato il percorso localizzato dalla configurazione di riscrittura invece del prefisso lingua standard.
|
|
649
659
|
- _Nota_: I parametri di route dinamici sono supportati utilizzando la notazione tra parentesi quadre (ad esempio, `[slug]`, `[id]`). I valori dei parametri vengono estratti automaticamente dall'URL e interpolati nel percorso riscritto.
|
|
650
660
|
- _Nota_: Funziona con applicazioni Next.js e Vite. Il middleware/proxy riscriverà automaticamente le richieste in arrivo per corrispondere alla struttura di route interna.
|
|
651
661
|
- _Nota_: Quando si generano URL con `getLocalizedUrl()`, le regole di riscrittura vengono applicate automaticamente se corrispondono al percorso fornito.
|
|
662
|
+
- _Riferimento_: Per maggiori informazioni, vedi [Riscritture URL Personalizzate](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/custom_url_rewrites.md).
|
|
652
663
|
|
|
653
664
|
- **serverSetCookie**:
|
|
654
665
|
- _Tipo_: `string`
|
|
@@ -942,6 +953,12 @@ Le opzioni di build si applicano ai plugin `@intlayer/babel` e `@intlayer/swc`.
|
|
|
942
953
|
- _Nota_: Se 'manual', la build sarà impostata solo quando viene eseguito il comando di build.
|
|
943
954
|
- _Nota_: Può essere utilizzato per disabilitare la build dei dizionari, ad esempio quando l'esecuzione in un ambiente Node.js dovrebbe essere evitata.
|
|
944
955
|
|
|
956
|
+
- **checkTypes**:
|
|
957
|
+
- _Type_: `boolean`
|
|
958
|
+
- _Default_: `false`
|
|
959
|
+
- _Description_: Indica se la build deve controllare i tipi TypeScript e registrare gli errori.
|
|
960
|
+
- _Note_: Questo può rallentare la build.
|
|
961
|
+
|
|
945
962
|
- **optimize**:
|
|
946
963
|
- _Tipo_: `boolean`
|
|
947
964
|
- _Predefinito_: `process.env.NODE_ENV === 'production'`
|
package/docs/ja/agent_skills.md
CHANGED
|
@@ -36,7 +36,7 @@ npx skills add aymericzip/intlayer-skills
|
|
|
36
36
|
|
|
37
37
|
1. 使用しているフレームワーク(Next.js、React、Viteなど)を検出します。
|
|
38
38
|
2. どのプラットフォーム(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
|
## サポートされているプラットフォーム
|
|
42
42
|
|
package/docs/ja/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
|
# 辞書のビルド
|
|
@@ -76,3 +80,7 @@ npx intlayer build --watch
|
|
|
76
80
|
- **`--no-cache`**: キャッシュを無効にします。
|
|
77
81
|
|
|
78
82
|
> 例: `npx intlayer build --no-cache`
|
|
83
|
+
|
|
84
|
+
- **`--check-types`**: コンテンツ宣言ファイルの型をチェックします。
|
|
85
|
+
|
|
86
|
+
> 例: `npx intlayer build --check-types`
|
package/docs/ja/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/ja/cli/
|
|
137
|
+
- **[コンポーネントの変換](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/cli/extract.md)** - 既存のコンポーネントをIntlayer対応に変換する
|
|
138
138
|
|
|
139
139
|
### 設定
|
|
140
140
|
|
package/docs/ja/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/ja/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/ja/cli/extract.md)を参照)またはIntlayer VS Code拡張機能の `Intlayer: extract content to Dictionary` コマンド([VS Code拡張機能ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/vs_code_extension.md)を参照)も提供しています。
|
|
53
53
|
|
|
54
54
|
## 使い方
|
|
55
55
|
|
package/docs/ja/configuration.md
CHANGED
|
@@ -88,6 +88,7 @@ IntlayerはJSON、JS、MJS、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 @@ export default config;
|
|
|
632
642
|
```typescript
|
|
633
643
|
routing: {
|
|
634
644
|
mode: "prefix-no-default", // フォールバック戦略
|
|
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
|
- _注意_: 書き換えルールはデフォルトの `mode` 動作よりも優先されます。パスが書き換えルールに一致する場合、標準の言語プレフィックスの代わりに書き換え設定のローカライズされたパスが使用されます。
|
|
652
662
|
- _注意_: 動的ルートパラメータは角括弧表記(例:`[slug]`、`[id]`)を使用してサポートされます。パラメータ値はURLから自動的に抽出され、書き換えられたパスに補間されます。
|
|
653
663
|
- _注意_: Next.js と Vite アプリケーションで動作します。ミドルウェア/プロキシは、内部ルート構造に一致するように受信リクエストを自動的に書き換えます。
|
|
654
664
|
- _注意_: `getLocalizedUrl()` でURLを生成する場合、提供されたパスに一致する場合、書き換えルールが自動的に適用されます。
|
|
665
|
+
- _参照_: 詳細については、[カスタムURL書き換え](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/custom_url_rewrites.md)を参照してください。
|
|
655
666
|
|
|
656
667
|
- **serverSetCookie**:
|
|
657
668
|
- _タイプ_: `string`
|
|
@@ -927,6 +938,12 @@ Intlayerがアプリケーションの国際化をどのように最適化しビ
|
|
|
927
938
|
- _注意_: 'manual'の場合、ビルドコマンドが実行されたときにのみビルドが設定されます。
|
|
928
939
|
- _注意_: 辞書のビルドを無効にするために使用できます。たとえば、Node.js環境での実行を避ける必要がある場合などです。
|
|
929
940
|
|
|
941
|
+
- **checkTypes**:
|
|
942
|
+
- _Type_: `boolean`
|
|
943
|
+
- _Default_: `false`
|
|
944
|
+
- _Description_: ビルドがTypeScriptの型をチェックし、エラーをログに記録するかどうかを示します。
|
|
945
|
+
- _Note_: これにより、ビルドが遅くなる可能性があります。
|
|
946
|
+
|
|
930
947
|
- **optimize**:
|
|
931
948
|
- _型_: `boolean`
|
|
932
949
|
- _デフォルト_: `process.env.NODE_ENV === 'production'`
|
package/docs/ko/agent_skills.md
CHANGED
|
@@ -36,7 +36,7 @@ npx skills add aymericzip/intlayer-skills
|
|
|
36
36
|
|
|
37
37
|
1. 사용 중인 프레임워크(예: Next.js, React, Vite)를 감지합니다.
|
|
38
38
|
2. 어떤 플랫폼(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
|
## 지원되는 플랫폼
|
|
42
42
|
|
package/docs/ko/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/ko/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/ko/cli/
|
|
137
|
+
- **[컴포넌트 변환](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/cli/extract.md)** - 기존 컴포넌트를 Intlayer를 사용하도록 변환
|
|
138
138
|
|
|
139
139
|
### 구성
|
|
140
140
|
|
package/docs/ko/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/ko/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/ko/cli/extract.md) 참조) 또는 Intlayer VS Code 확장의 `Intlayer: extract content to Dictionary` 명령([VS Code 확장 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/vs_code_extension.md) 참조)도 제공합니다.
|
|
53
53
|
|
|
54
54
|
## 사용법
|
|
55
55
|
|
package/docs/ko/configuration.md
CHANGED
|
@@ -88,6 +88,7 @@ Intlayer는 JSON, JS, MJS, 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 @@ export default config;
|
|
|
632
642
|
```typescript
|
|
633
643
|
routing: {
|
|
634
644
|
mode: "prefix-no-default", // 폴백 전략
|
|
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
|
- _참고_: 재작성 규칙은 기본 `mode` 동작보다 우선순위가 높습니다. 경로가 재작성 규칙과 일치하는 경우, 표준 언어 접두사 대신 재작성 구성의 지역화된 경로가 사용됩니다.
|
|
652
662
|
- _참고_: 동적 라우트 매개변수는 대괄호 표기법(예: `[slug]`, `[id]`)을 사용하여 지원됩니다. 매개변수 값은 URL에서 자동으로 추출되어 재작성된 경로에 보간됩니다.
|
|
653
663
|
- _참고_: Next.js 및 Vite 애플리케이션에서 작동합니다. 미들웨어/프록시는 내부 라우트 구조와 일치하도록 들어오는 요청을 자동으로 재작성합니다.
|
|
654
664
|
- _참고_: `getLocalizedUrl()`로 URL을 생성할 때, 제공된 경로와 일치하는 경우 재작성 규칙이 자동으로 적용됩니다.
|
|
665
|
+
- _참조_: 자세한 내용은 [사용자 정의 URL 재작성](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/custom_url_rewrites.md)을 참조하세요.
|
|
655
666
|
|
|
656
667
|
- **serverSetCookie**:
|
|
657
668
|
- _유형_: `string`
|
|
@@ -927,6 +938,12 @@ Intlayer가 애플리케이션의 국제화를 최적화하고 빌드하는 방
|
|
|
927
938
|
- _참고_: 'manual'인 경우, 빌드 명령이 실행될 때만 빌드가 설정됩니다.
|
|
928
939
|
- _참고_: 사전 빌드를 비활성화하는 데 사용할 수 있습니다. 예를 들어 Node.js 환경에서 실행을 피해야 하는 경우입니다.
|
|
929
940
|
|
|
941
|
+
- **checkTypes**:
|
|
942
|
+
- _Type_: `boolean`
|
|
943
|
+
- _Default_: `false`
|
|
944
|
+
- _Description_: 빌드가 TypeScript 유형을 확인하고 오류를 기록해야 하는지 여부를 나타냅니다.
|
|
945
|
+
- _Note_: 이로 인해 빌드 속도가 느려질 수 있습니다.
|
|
946
|
+
|
|
930
947
|
- **optimize**:
|
|
931
948
|
- _타입_: `boolean`
|
|
932
949
|
- _기본값_: `process.env.NODE_ENV === 'production'`
|
package/docs/pl/agent_skills.md
CHANGED
|
@@ -36,7 +36,7 @@ Po uruchomieniu tego polecenia zostaną wykonane następujące czynności:
|
|
|
36
36
|
|
|
37
37
|
1. Wykryje framework, którego używasz (np. Next.js, React, Vite).
|
|
38
38
|
2. Zapyta Cię, na których platformach chcesz zainstalować umiejętności (Cursor, Windsurf, VS Code, OpenCode, Claude Code, GitHub Copilot Workspace itp.).
|
|
39
|
-
3. Wygeneruje wymagane pliki konfiguracyjne (takie jak `.cursor/skills/
|
|
39
|
+
3. Wygeneruje wymagane pliki konfiguracyjne (takie jak `.cursor/skills/intlayer-next-js/SKILL.md`, `.windsurf/skills/intlayer-next-js/SKILL.md`, `.opencode/skills/intlayer-next-js/SKILL.md`, `.vscode/mcp.json` itp.).
|
|
40
40
|
|
|
41
41
|
## Obsługiwane platformy
|
|
42
42
|
|
package/docs/pl/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: Dodaj opcję checkTypes
|
|
16
20
|
---
|
|
17
21
|
|
|
18
22
|
# Budowanie słowników
|
|
@@ -62,3 +66,7 @@ To polecenie domyślnie znajdzie Twoje pliki deklaracji treści w ścieżce `./s
|
|
|
62
66
|
- **`--no-cache`**: Wyłącz pamięć podręczną.
|
|
63
67
|
|
|
64
68
|
> Przykład: `npx intlayer build --no-cache`
|
|
69
|
+
|
|
70
|
+
- **`--check-types`**: Sprawdza typy plików deklaracji treści.
|
|
71
|
+
|
|
72
|
+
> Przykład: `npx intlayer build --check-types`
|
package/docs/pl/cli/index.md
CHANGED
|
@@ -134,7 +134,7 @@ Aby zobaczyć, jak skonfigurować dostępne lokalizacje lub inne parametry, zapo
|
|
|
134
134
|
|
|
135
135
|
### Zarządzanie komponentami
|
|
136
136
|
|
|
137
|
-
- **[Transform Components](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/cli/
|
|
137
|
+
- **[Transform Components](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/cli/extract.md)** - Przekształć istniejące komponenty, aby korzystały z Intlayer
|
|
138
138
|
|
|
139
139
|
### Konfiguracja
|
|
140
140
|
|