@intlayer/docs 8.3.0-canary.4 → 8.3.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.
Files changed (240) hide show
  1. package/docs/ar/compiler.md +84 -49
  2. package/docs/ar/configuration.md +80 -37
  3. package/docs/ar/intlayer_with_nextjs_16.md +174 -1
  4. package/docs/ar/intlayer_with_nextjs_compiler.md +174 -1
  5. package/docs/ar/intlayer_with_react_router_v7.md +224 -1
  6. package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +225 -1
  7. package/docs/ar/intlayer_with_svelte_kit.md +175 -2
  8. package/docs/ar/intlayer_with_tanstack.md +176 -1
  9. package/docs/ar/intlayer_with_vite+preact.md +174 -1
  10. package/docs/ar/intlayer_with_vite+react.md +174 -1
  11. package/docs/ar/intlayer_with_vite+solid.md +174 -1
  12. package/docs/ar/intlayer_with_vite+svelte.md +174 -1
  13. package/docs/ar/intlayer_with_vite+vue.md +174 -1
  14. package/docs/de/compiler.md +83 -48
  15. package/docs/de/configuration.md +434 -212
  16. package/docs/de/intlayer_with_nextjs_16.md +176 -1
  17. package/docs/de/intlayer_with_nextjs_compiler.md +106 -349
  18. package/docs/de/intlayer_with_react_router_v7.md +225 -2
  19. package/docs/de/intlayer_with_react_router_v7_fs_routes.md +221 -79
  20. package/docs/de/intlayer_with_svelte_kit.md +158 -2
  21. package/docs/de/intlayer_with_tanstack.md +159 -1
  22. package/docs/de/intlayer_with_vite+preact.md +157 -1
  23. package/docs/de/intlayer_with_vite+react.md +157 -1
  24. package/docs/de/intlayer_with_vite+solid.md +159 -3
  25. package/docs/de/intlayer_with_vite+svelte.md +157 -1
  26. package/docs/de/intlayer_with_vite+vue.md +157 -1
  27. package/docs/en/compiler.md +60 -33
  28. package/docs/en/configuration.md +80 -57
  29. package/docs/en/intlayer_with_nextjs_16.md +176 -0
  30. package/docs/en/intlayer_with_nextjs_compiler.md +179 -1
  31. package/docs/en/intlayer_with_react_router_v7.md +159 -0
  32. package/docs/en/intlayer_with_react_router_v7_fs_routes.md +159 -0
  33. package/docs/en/intlayer_with_svelte_kit.md +159 -0
  34. package/docs/en/intlayer_with_tanstack.md +160 -1
  35. package/docs/en/intlayer_with_vite+preact.md +159 -0
  36. package/docs/en/intlayer_with_vite+react.md +159 -0
  37. package/docs/en/intlayer_with_vite+solid.md +148 -27
  38. package/docs/en/intlayer_with_vite+svelte.md +159 -0
  39. package/docs/en/intlayer_with_vite+vue.md +142 -41
  40. package/docs/en-GB/compiler.md +66 -34
  41. package/docs/en-GB/configuration.md +78 -36
  42. package/docs/es/compiler.md +83 -48
  43. package/docs/es/configuration.md +429 -206
  44. package/docs/es/intlayer_with_adonisjs.md +1 -1
  45. package/docs/es/intlayer_with_express.md +1 -1
  46. package/docs/es/intlayer_with_fastify.md +1 -1
  47. package/docs/es/intlayer_with_hono.md +1 -1
  48. package/docs/es/intlayer_with_nestjs.md +1 -1
  49. package/docs/es/intlayer_with_nextjs_16.md +176 -3
  50. package/docs/es/intlayer_with_nextjs_compiler.md +175 -2
  51. package/docs/es/intlayer_with_nuxt.md +1 -1
  52. package/docs/es/intlayer_with_react_router_v7.md +227 -4
  53. package/docs/es/intlayer_with_react_router_v7_fs_routes.md +162 -4
  54. package/docs/es/intlayer_with_svelte_kit.md +158 -2
  55. package/docs/es/intlayer_with_tanstack.md +160 -2
  56. package/docs/es/intlayer_with_vite+preact.md +162 -6
  57. package/docs/es/intlayer_with_vite+react.md +160 -4
  58. package/docs/es/intlayer_with_vite+solid.md +163 -7
  59. package/docs/es/intlayer_with_vite+svelte.md +157 -1
  60. package/docs/es/intlayer_with_vite+vue.md +165 -9
  61. package/docs/fr/compiler.md +81 -46
  62. package/docs/fr/configuration.md +355 -134
  63. package/docs/fr/intlayer_with_adonisjs.md +1 -1
  64. package/docs/fr/intlayer_with_express.md +1 -1
  65. package/docs/fr/intlayer_with_fastify.md +1 -1
  66. package/docs/fr/intlayer_with_hono.md +1 -1
  67. package/docs/fr/intlayer_with_nestjs.md +1 -1
  68. package/docs/fr/intlayer_with_nextjs_16.md +183 -7
  69. package/docs/fr/intlayer_with_nextjs_compiler.md +179 -3
  70. package/docs/fr/intlayer_with_react_router_v7.md +229 -3
  71. package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +237 -6
  72. package/docs/fr/intlayer_with_svelte_kit.md +158 -2
  73. package/docs/fr/intlayer_with_tanstack.md +159 -1
  74. package/docs/fr/intlayer_with_vite+preact.md +164 -8
  75. package/docs/fr/intlayer_with_vite+react.md +162 -6
  76. package/docs/fr/intlayer_with_vite+solid.md +163 -7
  77. package/docs/fr/intlayer_with_vite+svelte.md +157 -1
  78. package/docs/fr/intlayer_with_vite+vue.md +164 -8
  79. package/docs/hi/compiler.md +81 -46
  80. package/docs/hi/configuration.md +87 -44
  81. package/docs/hi/intlayer_with_nextjs_16.md +174 -1
  82. package/docs/hi/intlayer_with_nextjs_compiler.md +174 -1
  83. package/docs/hi/intlayer_with_react_router_v7.md +224 -1
  84. package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +225 -1
  85. package/docs/hi/intlayer_with_svelte_kit.md +158 -2
  86. package/docs/hi/intlayer_with_tanstack.md +159 -1
  87. package/docs/hi/intlayer_with_vite+preact.md +157 -1
  88. package/docs/hi/intlayer_with_vite+react.md +157 -1
  89. package/docs/hi/intlayer_with_vite+solid.md +157 -1
  90. package/docs/hi/intlayer_with_vite+svelte.md +157 -1
  91. package/docs/hi/intlayer_with_vite+vue.md +157 -1
  92. package/docs/id/compiler.md +84 -51
  93. package/docs/id/configuration.md +83 -45
  94. package/docs/id/intlayer_with_nextjs_16.md +174 -1
  95. package/docs/id/intlayer_with_nextjs_compiler.md +174 -1
  96. package/docs/id/intlayer_with_react_router_v7.md +224 -1
  97. package/docs/id/intlayer_with_react_router_v7_fs_routes.md +225 -1
  98. package/docs/id/intlayer_with_svelte_kit.md +158 -2
  99. package/docs/id/intlayer_with_tanstack.md +159 -1
  100. package/docs/id/intlayer_with_vite+preact.md +157 -1
  101. package/docs/id/intlayer_with_vite+react.md +157 -1
  102. package/docs/id/intlayer_with_vite+solid.md +157 -1
  103. package/docs/id/intlayer_with_vite+svelte.md +157 -1
  104. package/docs/id/intlayer_with_vite+vue.md +157 -1
  105. package/docs/it/compiler.md +81 -46
  106. package/docs/it/configuration.md +426 -204
  107. package/docs/it/intlayer_with_nextjs_16.md +174 -1
  108. package/docs/it/intlayer_with_nextjs_compiler.md +174 -1
  109. package/docs/it/intlayer_with_react_router_v7.md +225 -2
  110. package/docs/it/intlayer_with_react_router_v7_fs_routes.md +226 -2
  111. package/docs/it/intlayer_with_svelte_kit.md +158 -2
  112. package/docs/it/intlayer_with_tanstack.md +159 -1
  113. package/docs/it/intlayer_with_vite+preact.md +157 -1
  114. package/docs/it/intlayer_with_vite+react.md +157 -1
  115. package/docs/it/intlayer_with_vite+solid.md +159 -3
  116. package/docs/it/intlayer_with_vite+svelte.md +157 -1
  117. package/docs/it/intlayer_with_vite+vue.md +157 -1
  118. package/docs/ja/compiler.md +94 -58
  119. package/docs/ja/configuration.md +88 -45
  120. package/docs/ja/intlayer_with_nextjs_16.md +174 -1
  121. package/docs/ja/intlayer_with_nextjs_compiler.md +174 -1
  122. package/docs/ja/intlayer_with_react_router_v7.md +184 -394
  123. package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +226 -2
  124. package/docs/ja/intlayer_with_svelte_kit.md +119 -595
  125. package/docs/ja/intlayer_with_tanstack.md +131 -642
  126. package/docs/ja/intlayer_with_vite+preact.md +111 -1231
  127. package/docs/ja/intlayer_with_vite+react.md +129 -1304
  128. package/docs/ja/intlayer_with_vite+solid.md +159 -3
  129. package/docs/ja/intlayer_with_vite+svelte.md +157 -1
  130. package/docs/ja/intlayer_with_vite+vue.md +157 -1
  131. package/docs/ko/compiler.md +88 -52
  132. package/docs/ko/configuration.md +87 -44
  133. package/docs/ko/intlayer_with_nextjs_16.md +174 -1
  134. package/docs/ko/intlayer_with_nextjs_compiler.md +174 -1
  135. package/docs/ko/intlayer_with_react_router_v7.md +225 -2
  136. package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +226 -2
  137. package/docs/ko/intlayer_with_svelte_kit.md +158 -2
  138. package/docs/ko/intlayer_with_tanstack.md +159 -1
  139. package/docs/ko/intlayer_with_vite+preact.md +157 -1
  140. package/docs/ko/intlayer_with_vite+react.md +157 -1
  141. package/docs/ko/intlayer_with_vite+solid.md +159 -3
  142. package/docs/ko/intlayer_with_vite+svelte.md +157 -1
  143. package/docs/ko/intlayer_with_vite+vue.md +157 -1
  144. package/docs/pl/compiler.md +84 -51
  145. package/docs/pl/configuration.md +83 -37
  146. package/docs/pl/intlayer_with_nextjs_16.md +174 -1
  147. package/docs/pl/intlayer_with_nextjs_compiler.md +174 -1
  148. package/docs/pl/intlayer_with_react_router_v7.md +224 -1
  149. package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +225 -1
  150. package/docs/pl/intlayer_with_svelte_kit.md +158 -2
  151. package/docs/pl/intlayer_with_tanstack.md +159 -1
  152. package/docs/pl/intlayer_with_vite+preact.md +157 -1
  153. package/docs/pl/intlayer_with_vite+react.md +157 -1
  154. package/docs/pl/intlayer_with_vite+solid.md +157 -1
  155. package/docs/pl/intlayer_with_vite+svelte.md +157 -1
  156. package/docs/pl/intlayer_with_vite+vue.md +157 -1
  157. package/docs/pt/compiler.md +81 -46
  158. package/docs/pt/configuration.md +404 -194
  159. package/docs/pt/intlayer_with_nextjs_16.md +174 -1
  160. package/docs/pt/intlayer_with_nextjs_compiler.md +174 -1
  161. package/docs/pt/intlayer_with_react_router_v7.md +224 -1
  162. package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +225 -1
  163. package/docs/pt/intlayer_with_svelte_kit.md +158 -2
  164. package/docs/pt/intlayer_with_tanstack.md +159 -1
  165. package/docs/pt/intlayer_with_vite+preact.md +157 -1
  166. package/docs/pt/intlayer_with_vite+react.md +157 -1
  167. package/docs/pt/intlayer_with_vite+solid.md +157 -1
  168. package/docs/pt/intlayer_with_vite+svelte.md +157 -1
  169. package/docs/pt/intlayer_with_vite+vue.md +157 -1
  170. package/docs/ru/compiler.md +90 -57
  171. package/docs/ru/configuration.md +76 -46
  172. package/docs/ru/intlayer_with_nextjs_16.md +174 -1
  173. package/docs/ru/intlayer_with_nextjs_compiler.md +174 -1
  174. package/docs/ru/intlayer_with_react_router_v7.md +224 -1
  175. package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +225 -1
  176. package/docs/ru/intlayer_with_svelte_kit.md +158 -2
  177. package/docs/ru/intlayer_with_tanstack.md +159 -1
  178. package/docs/ru/intlayer_with_vite+preact.md +157 -1
  179. package/docs/ru/intlayer_with_vite+react.md +157 -1
  180. package/docs/ru/intlayer_with_vite+solid.md +157 -1
  181. package/docs/ru/intlayer_with_vite+svelte.md +157 -1
  182. package/docs/ru/intlayer_with_vite+vue.md +157 -1
  183. package/docs/tr/compiler.md +85 -52
  184. package/docs/tr/configuration.md +83 -40
  185. package/docs/tr/intlayer_with_nextjs_16.md +174 -1
  186. package/docs/tr/intlayer_with_nextjs_compiler.md +174 -1
  187. package/docs/tr/intlayer_with_react_router_v7.md +224 -1
  188. package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +225 -1
  189. package/docs/tr/intlayer_with_svelte_kit.md +158 -2
  190. package/docs/tr/intlayer_with_tanstack.md +159 -1
  191. package/docs/tr/intlayer_with_vite+preact.md +157 -1
  192. package/docs/tr/intlayer_with_vite+react.md +157 -1
  193. package/docs/tr/intlayer_with_vite+solid.md +157 -1
  194. package/docs/tr/intlayer_with_vite+svelte.md +157 -1
  195. package/docs/tr/intlayer_with_vite+vue.md +157 -1
  196. package/docs/uk/compiler.md +96 -61
  197. package/docs/uk/configuration.md +83 -37
  198. package/docs/uk/intlayer_with_nextjs_16.md +174 -1
  199. package/docs/uk/intlayer_with_nextjs_compiler.md +174 -1
  200. package/docs/uk/intlayer_with_react_router_v7.md +224 -1
  201. package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +225 -1
  202. package/docs/uk/intlayer_with_svelte_kit.md +157 -1
  203. package/docs/uk/intlayer_with_tanstack.md +159 -1
  204. package/docs/uk/intlayer_with_vite+preact.md +157 -1
  205. package/docs/uk/intlayer_with_vite+react.md +157 -1
  206. package/docs/uk/intlayer_with_vite+solid.md +157 -1
  207. package/docs/uk/intlayer_with_vite+svelte.md +157 -1
  208. package/docs/uk/intlayer_with_vite+vue.md +157 -1
  209. package/docs/vi/compiler.md +85 -50
  210. package/docs/vi/configuration.md +85 -39
  211. package/docs/vi/intlayer_with_nextjs_16.md +174 -1
  212. package/docs/vi/intlayer_with_nextjs_compiler.md +174 -1
  213. package/docs/vi/intlayer_with_react_router_v7.md +224 -1
  214. package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +225 -1
  215. package/docs/vi/intlayer_with_svelte_kit.md +158 -2
  216. package/docs/vi/intlayer_with_tanstack.md +159 -1
  217. package/docs/vi/intlayer_with_vite+preact.md +157 -1
  218. package/docs/vi/intlayer_with_vite+react.md +157 -1
  219. package/docs/vi/intlayer_with_vite+solid.md +157 -1
  220. package/docs/vi/intlayer_with_vite+svelte.md +157 -1
  221. package/docs/vi/intlayer_with_vite+vue.md +157 -1
  222. package/docs/zh/compiler.md +84 -49
  223. package/docs/zh/configuration.md +80 -37
  224. package/docs/zh/intlayer_with_adonisjs.md +1 -1
  225. package/docs/zh/intlayer_with_express.md +1 -1
  226. package/docs/zh/intlayer_with_fastify.md +1 -1
  227. package/docs/zh/intlayer_with_hono.md +1 -1
  228. package/docs/zh/intlayer_with_nestjs.md +1 -1
  229. package/docs/zh/intlayer_with_nextjs_16.md +174 -1
  230. package/docs/zh/intlayer_with_nextjs_compiler.md +174 -1
  231. package/docs/zh/intlayer_with_react_router_v7.md +227 -4
  232. package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +228 -4
  233. package/docs/zh/intlayer_with_svelte_kit.md +158 -2
  234. package/docs/zh/intlayer_with_tanstack.md +159 -1
  235. package/docs/zh/intlayer_with_vite+preact.md +159 -3
  236. package/docs/zh/intlayer_with_vite+react.md +157 -1
  237. package/docs/zh/intlayer_with_vite+solid.md +161 -5
  238. package/docs/zh/intlayer_with_vite+svelte.md +157 -1
  239. package/docs/zh/intlayer_with_vite+vue.md +158 -2
  240. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2025-04-18
3
- updatedAt: 2025-12-30
3
+ updatedAt: 2026-03-12
4
4
  title: Vite + Preact i18n - Come tradurre un'app Preact nel 2026
5
5
  description: Scopri come rendere il tuo sito Vite e Preact multilingue. Segui la documentazione per internazionalizzare (i18n) e tradurlo.
6
6
  keywords:
@@ -1357,6 +1357,162 @@ Per maggiori dettagli su come utilizzare l'estensione, consulta la [documentazio
1357
1357
 
1358
1358
  ---
1359
1359
 
1360
+ ### (Opzionale) Passaggio 1 : Estrarre il contenuto dei tuoi componenti
1361
+
1362
+ Se hai una base di codice esistente, trasformare migliaia di file può richiedere molto tempo.
1363
+
1364
+ Per facilitare questo processo, Intlayer propone un [compilatore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/compiler.md) / [estrattore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md) per trasformare i tuoi componenti ed estrarre il contenuto.
1365
+
1366
+ Per configurarlo, puoi aggiungere una sezione `compiler` nel tuo file `intlayer.config.ts`:
1367
+
1368
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
1369
+ import { type IntlayerConfig } from "intlayer";
1370
+
1371
+ const config: IntlayerConfig = {
1372
+ // ... Resto della tua configurazione
1373
+ compiler: {
1374
+ /**
1375
+ * Indica se il compilatore deve essere abilitato.
1376
+ */
1377
+ enabled: true,
1378
+
1379
+ /**
1380
+ * Definisce il percorso dei file di output
1381
+ */
1382
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
1383
+
1384
+ /**
1385
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
1386
+ */
1387
+ saveComponents: false,
1388
+
1389
+ /**
1390
+ * Prefisso chiave dizionario
1391
+ */
1392
+ dictionaryKeyPrefix: "",
1393
+ },
1394
+ };
1395
+
1396
+ export default config;
1397
+ ```
1398
+
1399
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
1400
+ /** @type {import('intlayer').IntlayerConfig} */
1401
+ const config = {
1402
+ // ... Resto della tua configurazione
1403
+ compiler: {
1404
+ /**
1405
+ * Indica se il compilatore deve essere abilitato.
1406
+ */
1407
+ enabled: true,
1408
+
1409
+ /**
1410
+ * Definisce il percorso dei file di output
1411
+ */
1412
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
1413
+
1414
+ /**
1415
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
1416
+ */
1417
+ saveComponents: false,
1418
+
1419
+ /**
1420
+ * Prefisso chiave dizionario
1421
+ */
1422
+ dictionaryKeyPrefix: "",
1423
+ },
1424
+ };
1425
+
1426
+ export default config;
1427
+ ```
1428
+
1429
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
1430
+ /** @type {import('intlayer').IntlayerConfig} */
1431
+ const config = {
1432
+ // ... Resto della tua configurazione
1433
+ compiler: {
1434
+ /**
1435
+ * Indica se il compilatore deve essere abilitato.
1436
+ */
1437
+ enabled: true,
1438
+
1439
+ /**
1440
+ * Definisce il percorso dei file di output
1441
+ */
1442
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
1443
+
1444
+ /**
1445
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
1446
+ */
1447
+ saveComponents: false,
1448
+
1449
+ /**
1450
+ * Prefisso chiave dizionario
1451
+ */
1452
+ dictionaryKeyPrefix: "",
1453
+ },
1454
+ };
1455
+
1456
+ module.exports = config;
1457
+ ```
1458
+
1459
+ <Tabs>
1460
+ <Tab value='Comando di estrazione'>
1461
+
1462
+ Esegui l'estrattore per trasformare i tuoi componenti ed estrarre il contenuto
1463
+
1464
+ ```bash packageManager="npm"
1465
+ npx intlayer extract
1466
+ ```
1467
+
1468
+ ```bash packageManager="pnpm"
1469
+ pnpm intlayer extract
1470
+ ```
1471
+
1472
+ ```bash packageManager="yarn"
1473
+ yarn intlayer extract
1474
+ ```
1475
+
1476
+ ```bash packageManager="bun"
1477
+ bunx intlayer extract
1478
+ ```
1479
+
1480
+ </Tab>
1481
+ <Tab value='Compilatore Babel'>
1482
+
1483
+ Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
1484
+
1485
+ ```ts fileName="vite.config.ts"
1486
+ import { defineConfig } from "vite";
1487
+ import { intlayer, intlayerCompiler } from "vite-intlayer";
1488
+
1489
+ export default defineConfig({
1490
+ plugins: [
1491
+ intlayer(),
1492
+ intlayerCompiler(), // Aggiunge il plugin del compilatore
1493
+ ],
1494
+ });
1495
+ ```
1496
+
1497
+ ```bash packageManager="npm"
1498
+ npm run build # Oppure npm run dev
1499
+ ```
1500
+
1501
+ ```bash packageManager="pnpm"
1502
+ pnpm run build # O pnpm run dev
1503
+ ```
1504
+
1505
+ ```bash packageManager="yarn"
1506
+ yarn build # O yarn dev
1507
+ ```
1508
+
1509
+ ```bash packageManager="bun"
1510
+ bun run build # Or bun run dev
1511
+ ```
1512
+
1513
+ </Tab>
1514
+ </Tabs>
1515
+
1360
1516
  ### Andare oltre
1361
1517
 
1362
1518
  Per andare oltre, puoi implementare l’[editor visuale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_visual_editor.md) o esternalizzare i tuoi contenuti utilizzando il [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_CMS.md).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2024-03-07
3
- updatedAt: 2025-12-30
3
+ updatedAt: 2026-03-12
4
4
  title: Vite + React i18n - Come tradurre un'app React nel 2026
5
5
  description: Scopri come aggiungere l'internazionalizzazione (i18n) alla tua applicazione Vite e React utilizzando Intlayer. Segui questa guida per rendere la tua app multilingue.
6
6
  keywords:
@@ -1414,6 +1414,162 @@ Per maggiori dettagli su come utilizzare l'estensione, consulta la [documentazio
1414
1414
 
1415
1415
  ---
1416
1416
 
1417
+ ### (Opzionale) Passaggio 1 : Estrarre il contenuto dei tuoi componenti
1418
+
1419
+ Se hai una base di codice esistente, trasformare migliaia di file può richiedere molto tempo.
1420
+
1421
+ Per facilitare questo processo, Intlayer propone un [compilatore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/compiler.md) / [estrattore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md) per trasformare i tuoi componenti ed estrarre il contenuto.
1422
+
1423
+ Per configurarlo, puoi aggiungere una sezione `compiler` nel tuo file `intlayer.config.ts`:
1424
+
1425
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
1426
+ import { type IntlayerConfig } from "intlayer";
1427
+
1428
+ const config: IntlayerConfig = {
1429
+ // ... Resto della tua configurazione
1430
+ compiler: {
1431
+ /**
1432
+ * Indica se il compilatore deve essere abilitato.
1433
+ */
1434
+ enabled: true,
1435
+
1436
+ /**
1437
+ * Definisce il percorso dei file di output
1438
+ */
1439
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
1440
+
1441
+ /**
1442
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
1443
+ */
1444
+ saveComponents: false,
1445
+
1446
+ /**
1447
+ * Prefisso chiave dizionario
1448
+ */
1449
+ dictionaryKeyPrefix: "",
1450
+ },
1451
+ };
1452
+
1453
+ export default config;
1454
+ ```
1455
+
1456
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
1457
+ /** @type {import('intlayer').IntlayerConfig} */
1458
+ const config = {
1459
+ // ... Resto della tua configurazione
1460
+ compiler: {
1461
+ /**
1462
+ * Indica se il compilatore deve essere abilitato.
1463
+ */
1464
+ enabled: true,
1465
+
1466
+ /**
1467
+ * Definisce il percorso dei file di output
1468
+ */
1469
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
1470
+
1471
+ /**
1472
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
1473
+ */
1474
+ saveComponents: false,
1475
+
1476
+ /**
1477
+ * Prefisso chiave dizionario
1478
+ */
1479
+ dictionaryKeyPrefix: "",
1480
+ },
1481
+ };
1482
+
1483
+ export default config;
1484
+ ```
1485
+
1486
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
1487
+ /** @type {import('intlayer').IntlayerConfig} */
1488
+ const config = {
1489
+ // ... Resto della tua configurazione
1490
+ compiler: {
1491
+ /**
1492
+ * Indica se il compilatore deve essere abilitato.
1493
+ */
1494
+ enabled: true,
1495
+
1496
+ /**
1497
+ * Definisce il percorso dei file di output
1498
+ */
1499
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
1500
+
1501
+ /**
1502
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
1503
+ */
1504
+ saveComponents: false,
1505
+
1506
+ /**
1507
+ * Prefisso chiave dizionario
1508
+ */
1509
+ dictionaryKeyPrefix: "",
1510
+ },
1511
+ };
1512
+
1513
+ module.exports = config;
1514
+ ```
1515
+
1516
+ <Tabs>
1517
+ <Tab value='Comando di estrazione'>
1518
+
1519
+ Esegui l'estrattore per trasformare i tuoi componenti ed estrarre il contenuto
1520
+
1521
+ ```bash packageManager="npm"
1522
+ npx intlayer extract
1523
+ ```
1524
+
1525
+ ```bash packageManager="pnpm"
1526
+ pnpm intlayer extract
1527
+ ```
1528
+
1529
+ ```bash packageManager="yarn"
1530
+ yarn intlayer extract
1531
+ ```
1532
+
1533
+ ```bash packageManager="bun"
1534
+ bunx intlayer extract
1535
+ ```
1536
+
1537
+ </Tab>
1538
+ <Tab value='Compilatore Babel'>
1539
+
1540
+ Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
1541
+
1542
+ ```ts fileName="vite.config.ts"
1543
+ import { defineConfig } from "vite";
1544
+ import { intlayer, intlayerCompiler } from "vite-intlayer";
1545
+
1546
+ export default defineConfig({
1547
+ plugins: [
1548
+ intlayer(),
1549
+ intlayerCompiler(), // Aggiunge il plugin del compilatore
1550
+ ],
1551
+ });
1552
+ ```
1553
+
1554
+ ```bash packageManager="npm"
1555
+ npm run build # Oppure npm run dev
1556
+ ```
1557
+
1558
+ ```bash packageManager="pnpm"
1559
+ pnpm run build # O pnpm run dev
1560
+ ```
1561
+
1562
+ ```bash packageManager="yarn"
1563
+ yarn build # O yarn dev
1564
+ ```
1565
+
1566
+ ```bash packageManager="bun"
1567
+ bun run build # Or bun run dev
1568
+ ```
1569
+
1570
+ </Tab>
1571
+ </Tabs>
1572
+
1417
1573
  ### Approfondimenti
1418
1574
 
1419
1575
  Per approfondire, puoi implementare l'[editor visuale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_visual_editor.md) o esternalizzare i tuoi contenuti utilizzando il [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_CMS.md).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2025-04-18
3
- updatedAt: 2025-12-30
3
+ updatedAt: 2026-03-12
4
4
  title: Vite + Solid i18n - Come tradurre un'app Solid nel 2026
5
5
  description: Scopri come rendere il tuo sito Vite e Solid multilingue. Segui la documentazione per internazionalizzare (i18n) e tradurlo.
6
6
  keywords:
@@ -45,7 +45,7 @@ history:
45
45
  </Tab>
46
46
  </Tabs>
47
47
 
48
- ## Table of Contents
48
+ ## Indice
49
49
 
50
50
  <TOC/>
51
51
 
@@ -68,7 +68,7 @@ Con Intlayer, puoi:
68
68
 
69
69
  ## Guida passo-passo per configurare Intlayer in un'applicazione Vite e Solid
70
70
 
71
- ## Table of Contents
71
+ ## Indice
72
72
 
73
73
  <TOC/>
74
74
 
@@ -579,6 +579,162 @@ Per maggiori dettagli su come utilizzare l'estensione, consulta la [documentazio
579
579
 
580
580
  ---
581
581
 
582
+ ### (Opzionale) Passaggio 1 : Estrarre il contenuto dei tuoi componenti
583
+
584
+ Se hai una base di codice esistente, trasformare migliaia di file può richiedere molto tempo.
585
+
586
+ Per facilitare questo processo, Intlayer propone un [compilatore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/compiler.md) / [estrattore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md) per trasformare i tuoi componenti ed estrarre il contenuto.
587
+
588
+ Per configurarlo, puoi aggiungere una sezione `compiler` nel tuo file `intlayer.config.ts`:
589
+
590
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
591
+ import { type IntlayerConfig } from "intlayer";
592
+
593
+ const config: IntlayerConfig = {
594
+ // ... Resto della tua configurazione
595
+ compiler: {
596
+ /**
597
+ * Indica se il compilatore deve essere abilitato.
598
+ */
599
+ enabled: true,
600
+
601
+ /**
602
+ * Definisce il percorso dei file di output
603
+ */
604
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
605
+
606
+ /**
607
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
608
+ */
609
+ saveComponents: false,
610
+
611
+ /**
612
+ * Prefisso chiave dizionario
613
+ */
614
+ dictionaryKeyPrefix: "",
615
+ },
616
+ };
617
+
618
+ export default config;
619
+ ```
620
+
621
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
622
+ /** @type {import('intlayer').IntlayerConfig} */
623
+ const config = {
624
+ // ... Resto della tua configurazione
625
+ compiler: {
626
+ /**
627
+ * Indica se il compilatore deve essere abilitato.
628
+ */
629
+ enabled: true,
630
+
631
+ /**
632
+ * Definisce il percorso dei file di output
633
+ */
634
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
635
+
636
+ /**
637
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
638
+ */
639
+ saveComponents: false,
640
+
641
+ /**
642
+ * Prefisso chiave dizionario
643
+ */
644
+ dictionaryKeyPrefix: "",
645
+ },
646
+ };
647
+
648
+ export default config;
649
+ ```
650
+
651
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
652
+ /** @type {import('intlayer').IntlayerConfig} */
653
+ const config = {
654
+ // ... Resto della tua configurazione
655
+ compiler: {
656
+ /**
657
+ * Indica se il compilatore deve essere abilitato.
658
+ */
659
+ enabled: true,
660
+
661
+ /**
662
+ * Definisce il percorso dei file di output
663
+ */
664
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
665
+
666
+ /**
667
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
668
+ */
669
+ saveComponents: false,
670
+
671
+ /**
672
+ * Prefisso chiave dizionario
673
+ */
674
+ dictionaryKeyPrefix: "",
675
+ },
676
+ };
677
+
678
+ module.exports = config;
679
+ ```
680
+
681
+ <Tabs>
682
+ <Tab value='Comando di estrazione'>
683
+
684
+ Esegui l'estrattore per trasformare i tuoi componenti ed estrarre il contenuto
685
+
686
+ ```bash packageManager="npm"
687
+ npx intlayer extract
688
+ ```
689
+
690
+ ```bash packageManager="pnpm"
691
+ pnpm intlayer extract
692
+ ```
693
+
694
+ ```bash packageManager="yarn"
695
+ yarn intlayer extract
696
+ ```
697
+
698
+ ```bash packageManager="bun"
699
+ bunx intlayer extract
700
+ ```
701
+
702
+ </Tab>
703
+ <Tab value='Compilatore Babel'>
704
+
705
+ Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
706
+
707
+ ```ts fileName="vite.config.ts"
708
+ import { defineConfig } from "vite";
709
+ import { intlayer, intlayerCompiler } from "vite-intlayer";
710
+
711
+ export default defineConfig({
712
+ plugins: [
713
+ intlayer(),
714
+ intlayerCompiler(), // Aggiunge il plugin del compilatore
715
+ ],
716
+ });
717
+ ```
718
+
719
+ ```bash packageManager="npm"
720
+ npm run build # Oppure npm run dev
721
+ ```
722
+
723
+ ```bash packageManager="pnpm"
724
+ pnpm run build # O pnpm run dev
725
+ ```
726
+
727
+ ```bash packageManager="yarn"
728
+ yarn build # O yarn dev
729
+ ```
730
+
731
+ ```bash packageManager="bun"
732
+ bun run build # Or bun run dev
733
+ ```
734
+
735
+ </Tab>
736
+ </Tabs>
737
+
582
738
  ### Approfondimenti
583
739
 
584
740
  Per approfondire, puoi implementare l'[editor visuale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_visual_editor.md) o esternalizzare i tuoi contenuti utilizzando il [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_CMS.md).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2025-04-18
3
- updatedAt: 2025-12-30
3
+ updatedAt: 2026-03-12
4
4
  title: Vite + Svelte i18n - Come tradurre un'app Svelte nel 2026
5
5
  description: Scopri come rendere il tuo sito web Vite e Svelte multilingue. Segui la documentazione per internazionalizzare (i18n) e tradurlo.
6
6
  keywords:
@@ -495,6 +495,162 @@ Per maggiori dettagli su come utilizzare l'estensione, consulta la [documentazio
495
495
 
496
496
  ---
497
497
 
498
+ ### (Opzionale) Passaggio 1 : Estrarre il contenuto dei tuoi componenti
499
+
500
+ Se hai una base di codice esistente, trasformare migliaia di file può richiedere molto tempo.
501
+
502
+ Per facilitare questo processo, Intlayer propone un [compilatore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/compiler.md) / [estrattore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md) per trasformare i tuoi componenti ed estrarre il contenuto.
503
+
504
+ Per configurarlo, puoi aggiungere una sezione `compiler` nel tuo file `intlayer.config.ts`:
505
+
506
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
507
+ import { type IntlayerConfig } from "intlayer";
508
+
509
+ const config: IntlayerConfig = {
510
+ // ... Resto della tua configurazione
511
+ compiler: {
512
+ /**
513
+ * Indica se il compilatore deve essere abilitato.
514
+ */
515
+ enabled: true,
516
+
517
+ /**
518
+ * Definisce il percorso dei file di output
519
+ */
520
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
521
+
522
+ /**
523
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
524
+ */
525
+ saveComponents: false,
526
+
527
+ /**
528
+ * Prefisso chiave dizionario
529
+ */
530
+ dictionaryKeyPrefix: "",
531
+ },
532
+ };
533
+
534
+ export default config;
535
+ ```
536
+
537
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
538
+ /** @type {import('intlayer').IntlayerConfig} */
539
+ const config = {
540
+ // ... Resto della tua configurazione
541
+ compiler: {
542
+ /**
543
+ * Indica se il compilatore deve essere abilitato.
544
+ */
545
+ enabled: true,
546
+
547
+ /**
548
+ * Definisce il percorso dei file di output
549
+ */
550
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
551
+
552
+ /**
553
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
554
+ */
555
+ saveComponents: false,
556
+
557
+ /**
558
+ * Prefisso chiave dizionario
559
+ */
560
+ dictionaryKeyPrefix: "",
561
+ },
562
+ };
563
+
564
+ export default config;
565
+ ```
566
+
567
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
568
+ /** @type {import('intlayer').IntlayerConfig} */
569
+ const config = {
570
+ // ... Resto della tua configurazione
571
+ compiler: {
572
+ /**
573
+ * Indica se il compilatore deve essere abilitato.
574
+ */
575
+ enabled: true,
576
+
577
+ /**
578
+ * Definisce il percorso dei file di output
579
+ */
580
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
581
+
582
+ /**
583
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
584
+ */
585
+ saveComponents: false,
586
+
587
+ /**
588
+ * Prefisso chiave dizionario
589
+ */
590
+ dictionaryKeyPrefix: "",
591
+ },
592
+ };
593
+
594
+ module.exports = config;
595
+ ```
596
+
597
+ <Tabs>
598
+ <Tab value='Comando di estrazione'>
599
+
600
+ Esegui l'estrattore per trasformare i tuoi componenti ed estrarre il contenuto
601
+
602
+ ```bash packageManager="npm"
603
+ npx intlayer extract
604
+ ```
605
+
606
+ ```bash packageManager="pnpm"
607
+ pnpm intlayer extract
608
+ ```
609
+
610
+ ```bash packageManager="yarn"
611
+ yarn intlayer extract
612
+ ```
613
+
614
+ ```bash packageManager="bun"
615
+ bunx intlayer extract
616
+ ```
617
+
618
+ </Tab>
619
+ <Tab value='Compilatore Babel'>
620
+
621
+ Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
622
+
623
+ ```ts fileName="vite.config.ts"
624
+ import { defineConfig } from "vite";
625
+ import { intlayer, intlayerCompiler } from "vite-intlayer";
626
+
627
+ export default defineConfig({
628
+ plugins: [
629
+ intlayer(),
630
+ intlayerCompiler(), // Aggiunge il plugin del compilatore
631
+ ],
632
+ });
633
+ ```
634
+
635
+ ```bash packageManager="npm"
636
+ npm run build # Oppure npm run dev
637
+ ```
638
+
639
+ ```bash packageManager="pnpm"
640
+ pnpm run build # O pnpm run dev
641
+ ```
642
+
643
+ ```bash packageManager="yarn"
644
+ yarn build # O yarn dev
645
+ ```
646
+
647
+ ```bash packageManager="bun"
648
+ bun run build # Or bun run dev
649
+ ```
650
+
651
+ </Tab>
652
+ </Tabs>
653
+
498
654
  ### Vai oltre
499
655
 
500
656
  Per andare oltre, puoi implementare l'[editor visuale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_visual_editor.md) o esternalizzare i tuoi contenuti utilizzando il [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_CMS.md).