@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 + Solid i18n - Jak przetłumaczyć aplikację Solid w 2026
5
5
  description: Dowiedz się, jak uczynić swoją stronę Vite i Solid wielojęzyczną. Postępuj zgodnie z dokumentacją, aby internacjonalizować (i18n) i tłumaczyć ją.
6
6
  keywords:
@@ -577,6 +577,162 @@ Aby uzyskać więcej szczegółów na temat korzystania z rozszerzenia, zapoznaj
577
577
 
578
578
  ---
579
579
 
580
+ ### (Opcjonalnie) Krok 12 : Wyodrębnij zawartość swoich komponentów
581
+
582
+ Jeśli masz istniejącą bazę kodu, transformacja tysięcy plików może być czasochłonna.
583
+
584
+ Aby ułatwić ten proces, Intlayer proponuje [kompilator](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/compiler.md) / [ekstraktor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/cli/extract.md), aby przetransformować komponenty i wyodrębnić zawartość.
585
+
586
+ Aby go skonfigurować, możesz dodać sekcję `compiler` w pliku `intlayer.config.ts`:
587
+
588
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
589
+ import { type IntlayerConfig } from "intlayer";
590
+
591
+ const config: IntlayerConfig = {
592
+ // ... Reszta Twojej konfiguracji
593
+ compiler: {
594
+ /**
595
+ * Wskazuje, czy kompilator powinien być włączony.
596
+ */
597
+ enabled: true,
598
+
599
+ /**
600
+ * Definiuje ścieżkę plików wyjściowych
601
+ */
602
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
603
+
604
+ /**
605
+ * Wskazuje, czy komponenty powinny zostać zapisane po transformacji. W ten sposób kompilator można uruchomić tylko raz, aby przetransformować aplikację, a następnie go usunąć.
606
+ */
607
+ saveComponents: false,
608
+
609
+ /**
610
+ * Prefiks klucza słownika
611
+ */
612
+ dictionaryKeyPrefix: "",
613
+ },
614
+ };
615
+
616
+ export default config;
617
+ ```
618
+
619
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
620
+ /** @type {import('intlayer').IntlayerConfig} */
621
+ const config = {
622
+ // ... Reszta Twojej konfiguracji
623
+ compiler: {
624
+ /**
625
+ * Wskazuje, czy kompilator powinien być włączony.
626
+ */
627
+ enabled: true,
628
+
629
+ /**
630
+ * Definiuje ścieżkę plików wyjściowych
631
+ */
632
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
633
+
634
+ /**
635
+ * Wskazuje, czy komponenty powinny zostać zapisane po transformacji. W ten sposób kompilator można uruchomić tylko raz, aby przetransformować aplikację, a następnie go usunąć.
636
+ */
637
+ saveComponents: false,
638
+
639
+ /**
640
+ * Prefiks klucza słownika
641
+ */
642
+ dictionaryKeyPrefix: "",
643
+ },
644
+ };
645
+
646
+ export default config;
647
+ ```
648
+
649
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
650
+ /** @type {import('intlayer').IntlayerConfig} */
651
+ const config = {
652
+ // ... Reszta Twojej konfiguracji
653
+ compiler: {
654
+ /**
655
+ * Wskazuje, czy kompilator powinien być włączony.
656
+ */
657
+ enabled: true,
658
+
659
+ /**
660
+ * Definiuje ścieżkę plików wyjściowych
661
+ */
662
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
663
+
664
+ /**
665
+ * Wskazuje, czy komponenty powinny zostać zapisane po transformacji. W ten sposób kompilator można uruchomić tylko raz, aby przetransformować aplikację, a następnie go usunąć.
666
+ */
667
+ saveComponents: false,
668
+
669
+ /**
670
+ * Prefiks klucza słownika
671
+ */
672
+ dictionaryKeyPrefix: "",
673
+ },
674
+ };
675
+
676
+ module.exports = config;
677
+ ```
678
+
679
+ <Tabs>
680
+ <Tab value='Polecenie wyodrębniania'>
681
+
682
+ Uruchom ekstraktor, aby przetransformować komponenty i wyodrębnić zawartość
683
+
684
+ ```bash packageManager="npm"
685
+ npx intlayer extract
686
+ ```
687
+
688
+ ```bash packageManager="pnpm"
689
+ pnpm intlayer extract
690
+ ```
691
+
692
+ ```bash packageManager="yarn"
693
+ yarn intlayer extract
694
+ ```
695
+
696
+ ```bash packageManager="bun"
697
+ bunx intlayer extract
698
+ ```
699
+
700
+ </Tab>
701
+ <Tab value='Kompilator Babel'>
702
+
703
+ Zaktualizuj `vite.config.ts`, aby dołączyć wtyczkę `intlayerCompiler`:
704
+
705
+ ```ts fileName="vite.config.ts"
706
+ import { defineConfig } from "vite";
707
+ import { intlayer, intlayerCompiler } from "vite-intlayer";
708
+
709
+ export default defineConfig({
710
+ plugins: [
711
+ intlayer(),
712
+ intlayerCompiler(), // Dodaje wtyczkę kompilatora
713
+ ],
714
+ });
715
+ ```
716
+
717
+ ```bash packageManager="npm"
718
+ npm run build # Lub npm run dev
719
+ ```
720
+
721
+ ```bash packageManager="pnpm"
722
+ pnpm run build # Or pnpm run dev
723
+ ```
724
+
725
+ ```bash packageManager="yarn"
726
+ yarn build # Or yarn dev
727
+ ```
728
+
729
+ ```bash packageManager="bun"
730
+ bun run build # Or bun run dev
731
+ ```
732
+
733
+ </Tab>
734
+ </Tabs>
735
+
580
736
  ### Idź dalej
581
737
 
582
738
  Aby pójść dalej, możesz zaimplementować [edytor wizualny](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/intlayer_visual_editor.md) lub wyeksportować swoją zawartość, korzystając z [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/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 - Jak przetłumaczyć aplikację Svelte w 2026
5
5
  description: Dowiedz się, jak uczynić swoją stronę Vite i Svelte wielojęzyczną. Postępuj zgodnie z dokumentacją, aby zrealizować internacjonalizację (i18n) i tłumaczenie.
6
6
  keywords:
@@ -495,6 +495,162 @@ Aby uzyskać więcej informacji na temat korzystania z rozszerzenia, zapoznaj si
495
495
 
496
496
  ---
497
497
 
498
+ ### (Opcjonalnie) Krok 9 : Wyodrębnij zawartość swoich komponentów
499
+
500
+ Jeśli masz istniejącą bazę kodu, transformacja tysięcy plików może być czasochłonna.
501
+
502
+ Aby ułatwić ten proces, Intlayer proponuje [kompilator](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/compiler.md) / [ekstraktor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/cli/extract.md), aby przetransformować komponenty i wyodrębnić zawartość.
503
+
504
+ Aby go skonfigurować, możesz dodać sekcję `compiler` w pliku `intlayer.config.ts`:
505
+
506
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
507
+ import { type IntlayerConfig } from "intlayer";
508
+
509
+ const config: IntlayerConfig = {
510
+ // ... Reszta Twojej konfiguracji
511
+ compiler: {
512
+ /**
513
+ * Wskazuje, czy kompilator powinien być włączony.
514
+ */
515
+ enabled: true,
516
+
517
+ /**
518
+ * Definiuje ścieżkę plików wyjściowych
519
+ */
520
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
521
+
522
+ /**
523
+ * Wskazuje, czy komponenty powinny zostać zapisane po transformacji. W ten sposób kompilator można uruchomić tylko raz, aby przetransformować aplikację, a następnie go usunąć.
524
+ */
525
+ saveComponents: false,
526
+
527
+ /**
528
+ * Prefiks klucza słownika
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
+ // ... Reszta Twojej konfiguracji
541
+ compiler: {
542
+ /**
543
+ * Wskazuje, czy kompilator powinien być włączony.
544
+ */
545
+ enabled: true,
546
+
547
+ /**
548
+ * Definiuje ścieżkę plików wyjściowych
549
+ */
550
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
551
+
552
+ /**
553
+ * Wskazuje, czy komponenty powinny zostać zapisane po transformacji. W ten sposób kompilator można uruchomić tylko raz, aby przetransformować aplikację, a następnie go usunąć.
554
+ */
555
+ saveComponents: false,
556
+
557
+ /**
558
+ * Prefiks klucza słownika
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
+ // ... Reszta Twojej konfiguracji
571
+ compiler: {
572
+ /**
573
+ * Wskazuje, czy kompilator powinien być włączony.
574
+ */
575
+ enabled: true,
576
+
577
+ /**
578
+ * Definiuje ścieżkę plików wyjściowych
579
+ */
580
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
581
+
582
+ /**
583
+ * Wskazuje, czy komponenty powinny zostać zapisane po transformacji. W ten sposób kompilator można uruchomić tylko raz, aby przetransformować aplikację, a następnie go usunąć.
584
+ */
585
+ saveComponents: false,
586
+
587
+ /**
588
+ * Prefiks klucza słownika
589
+ */
590
+ dictionaryKeyPrefix: "",
591
+ },
592
+ };
593
+
594
+ module.exports = config;
595
+ ```
596
+
597
+ <Tabs>
598
+ <Tab value='Polecenie wyodrębniania'>
599
+
600
+ Uruchom ekstraktor, aby przetransformować komponenty i wyodrębnić zawartość
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='Kompilator Babel'>
620
+
621
+ Zaktualizuj `vite.config.ts`, aby dołączyć wtyczkę `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(), // Dodaje wtyczkę kompilatora
631
+ ],
632
+ });
633
+ ```
634
+
635
+ ```bash packageManager="npm"
636
+ npm run build # Lub npm run dev
637
+ ```
638
+
639
+ ```bash packageManager="pnpm"
640
+ pnpm run build # Or pnpm run dev
641
+ ```
642
+
643
+ ```bash packageManager="yarn"
644
+ yarn build # Or 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
  ### Idź dalej
499
655
 
500
656
  Aby pójść dalej, możesz zaimplementować [edytor wizualny](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/intlayer_visual_editor.md) lub wyeksportować swoją zawartość, korzystając z [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/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 + Vue i18n - Jak przetłumaczyć aplikację Vue w 2026
5
5
  description: Dowiedz się, jak uczynić swoją stronę Vite i Vue wielojęzyczną. Postępuj zgodnie z dokumentacją, aby zinternacjonalizować (i18n) i przetłumaczyć ją.
6
6
  keywords:
@@ -1125,6 +1125,162 @@ Więcej szczegółów na temat korzystania z rozszerzenia znajdziesz w [dokument
1125
1125
 
1126
1126
  ---
1127
1127
 
1128
+ ### (Opcjonalnie) Krok 12 : Wyodrębnij zawartość swoich komponentów
1129
+
1130
+ Jeśli masz istniejącą bazę kodu, transformacja tysięcy plików może być czasochłonna.
1131
+
1132
+ Aby ułatwić ten proces, Intlayer proponuje [kompilator](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/compiler.md) / [ekstraktor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/cli/extract.md), aby przetransformować komponenty i wyodrębnić zawartość.
1133
+
1134
+ Aby go skonfigurować, możesz dodać sekcję `compiler` w pliku `intlayer.config.ts`:
1135
+
1136
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
1137
+ import { type IntlayerConfig } from "intlayer";
1138
+
1139
+ const config: IntlayerConfig = {
1140
+ // ... Reszta Twojej konfiguracji
1141
+ compiler: {
1142
+ /**
1143
+ * Wskazuje, czy kompilator powinien być włączony.
1144
+ */
1145
+ enabled: true,
1146
+
1147
+ /**
1148
+ * Definiuje ścieżkę plików wyjściowych
1149
+ */
1150
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
1151
+
1152
+ /**
1153
+ * Wskazuje, czy komponenty powinny zostać zapisane po transformacji. W ten sposób kompilator można uruchomić tylko raz, aby przetransformować aplikację, a następnie go usunąć.
1154
+ */
1155
+ saveComponents: false,
1156
+
1157
+ /**
1158
+ * Prefiks klucza słownika
1159
+ */
1160
+ dictionaryKeyPrefix: "",
1161
+ },
1162
+ };
1163
+
1164
+ export default config;
1165
+ ```
1166
+
1167
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
1168
+ /** @type {import('intlayer').IntlayerConfig} */
1169
+ const config = {
1170
+ // ... Reszta Twojej konfiguracji
1171
+ compiler: {
1172
+ /**
1173
+ * Wskazuje, czy kompilator powinien być włączony.
1174
+ */
1175
+ enabled: true,
1176
+
1177
+ /**
1178
+ * Definiuje ścieżkę plików wyjściowych
1179
+ */
1180
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
1181
+
1182
+ /**
1183
+ * Wskazuje, czy komponenty powinny zostać zapisane po transformacji. W ten sposób kompilator można uruchomić tylko raz, aby przetransformować aplikację, a następnie go usunąć.
1184
+ */
1185
+ saveComponents: false,
1186
+
1187
+ /**
1188
+ * Prefiks klucza słownika
1189
+ */
1190
+ dictionaryKeyPrefix: "",
1191
+ },
1192
+ };
1193
+
1194
+ export default config;
1195
+ ```
1196
+
1197
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
1198
+ /** @type {import('intlayer').IntlayerConfig} */
1199
+ const config = {
1200
+ // ... Reszta Twojej konfiguracji
1201
+ compiler: {
1202
+ /**
1203
+ * Wskazuje, czy kompilator powinien być włączony.
1204
+ */
1205
+ enabled: true,
1206
+
1207
+ /**
1208
+ * Definiuje ścieżkę plików wyjściowych
1209
+ */
1210
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
1211
+
1212
+ /**
1213
+ * Wskazuje, czy komponenty powinny zostać zapisane po transformacji. W ten sposób kompilator można uruchomić tylko raz, aby przetransformować aplikację, a następnie go usunąć.
1214
+ */
1215
+ saveComponents: false,
1216
+
1217
+ /**
1218
+ * Prefiks klucza słownika
1219
+ */
1220
+ dictionaryKeyPrefix: "",
1221
+ },
1222
+ };
1223
+
1224
+ module.exports = config;
1225
+ ```
1226
+
1227
+ <Tabs>
1228
+ <Tab value='Polecenie wyodrębniania'>
1229
+
1230
+ Uruchom ekstraktor, aby przetransformować komponenty i wyodrębnić zawartość
1231
+
1232
+ ```bash packageManager="npm"
1233
+ npx intlayer extract
1234
+ ```
1235
+
1236
+ ```bash packageManager="pnpm"
1237
+ pnpm intlayer extract
1238
+ ```
1239
+
1240
+ ```bash packageManager="yarn"
1241
+ yarn intlayer extract
1242
+ ```
1243
+
1244
+ ```bash packageManager="bun"
1245
+ bunx intlayer extract
1246
+ ```
1247
+
1248
+ </Tab>
1249
+ <Tab value='Kompilator Babel'>
1250
+
1251
+ Zaktualizuj `vite.config.ts`, aby dołączyć wtyczkę `intlayerCompiler`:
1252
+
1253
+ ```ts fileName="vite.config.ts"
1254
+ import { defineConfig } from "vite";
1255
+ import { intlayer, intlayerCompiler } from "vite-intlayer";
1256
+
1257
+ export default defineConfig({
1258
+ plugins: [
1259
+ intlayer(),
1260
+ intlayerCompiler(), // Dodaje wtyczkę kompilatora
1261
+ ],
1262
+ });
1263
+ ```
1264
+
1265
+ ```bash packageManager="npm"
1266
+ npm run build # Lub npm run dev
1267
+ ```
1268
+
1269
+ ```bash packageManager="pnpm"
1270
+ pnpm run build # Or pnpm run dev
1271
+ ```
1272
+
1273
+ ```bash packageManager="yarn"
1274
+ yarn build # Or yarn dev
1275
+ ```
1276
+
1277
+ ```bash packageManager="bun"
1278
+ bun run build # Or bun run dev
1279
+ ```
1280
+
1281
+ </Tab>
1282
+ </Tabs>
1283
+
1128
1284
  ### Idź dalej
1129
1285
 
1130
1286
  Aby iść dalej, możesz zaimplementować [edytor wizualny](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/intlayer_visual_editor.md) lub wyodrębnić swoją zawartość, korzystając z [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/intlayer_CMS.md).