@intlayer/docs 9.0.0-canary.6 → 9.0.0-canary.7

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 (642) hide show
  1. package/dist/cjs/generated/docs.entry.cjs +80 -0
  2. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  3. package/dist/esm/generated/docs.entry.mjs +80 -0
  4. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  5. package/dist/types/generated/docs.entry.d.ts +4 -0
  6. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  7. package/docs/ar/compiler.md +6 -3
  8. package/docs/ar/custom_domains.md +8 -2
  9. package/docs/ar/custom_url_rewrites.md +8 -2
  10. package/docs/ar/intlayer_with_analog.md +5 -1
  11. package/docs/ar/intlayer_with_astro.md +2 -0
  12. package/docs/ar/intlayer_with_astro_lit.md +2 -0
  13. package/docs/ar/intlayer_with_astro_preact.md +2 -0
  14. package/docs/ar/intlayer_with_astro_react.md +2 -0
  15. package/docs/ar/intlayer_with_astro_solid.md +2 -0
  16. package/docs/ar/intlayer_with_astro_svelte.md +2 -0
  17. package/docs/ar/intlayer_with_astro_vanilla.md +2 -0
  18. package/docs/ar/intlayer_with_astro_vue.md +2 -0
  19. package/docs/ar/intlayer_with_lynx+react.md +6 -1
  20. package/docs/ar/intlayer_with_nextjs_16.md +2 -0
  21. package/docs/ar/intlayer_with_nextjs_compiler.md +2 -0
  22. package/docs/ar/intlayer_with_react_native+expo.md +6 -1
  23. package/docs/ar/intlayer_with_react_router_v7.md +3 -1
  24. package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +3 -1
  25. package/docs/ar/intlayer_with_storybook.md +7 -1
  26. package/docs/ar/intlayer_with_svelte_kit.md +8 -3
  27. package/docs/ar/intlayer_with_tanstack+solid.md +18 -11
  28. package/docs/ar/intlayer_with_tanstack.md +16 -7
  29. package/docs/ar/intlayer_with_vite+lit.md +8 -2
  30. package/docs/ar/intlayer_with_vite+preact.md +2 -0
  31. package/docs/ar/intlayer_with_vite+react.md +8 -3
  32. package/docs/ar/intlayer_with_vite+react_compiler.md +9 -2
  33. package/docs/ar/intlayer_with_vite+solid.md +2 -0
  34. package/docs/ar/intlayer_with_vite+svelte.md +4 -2
  35. package/docs/ar/intlayer_with_vite+vanilla.md +16 -5
  36. package/docs/ar/intlayer_with_vite+vue.md +8 -3
  37. package/docs/ar/packages/@intlayer_babel/export.md +131 -0
  38. package/docs/ar/packages/vite-intlayer/intlayerCompiler.md +120 -0
  39. package/docs/ar/packages/vite-intlayer/intlayerMinify.md +92 -0
  40. package/docs/ar/packages/vite-intlayer/intlayerProxy.md +172 -0
  41. package/docs/ar/releases/v9.md +45 -1
  42. package/docs/bn/custom_domains.md +8 -2
  43. package/docs/bn/intlayer_with_storybook.md +7 -1
  44. package/docs/bn/intlayer_with_vite+lit.md +8 -2
  45. package/docs/bn/intlayer_with_vite+vanilla.md +16 -5
  46. package/docs/cs/custom_domains.md +8 -2
  47. package/docs/cs/intlayer_with_storybook.md +7 -1
  48. package/docs/cs/intlayer_with_vite+lit.md +8 -2
  49. package/docs/cs/intlayer_with_vite+vanilla.md +16 -5
  50. package/docs/de/compiler.md +6 -3
  51. package/docs/de/custom_domains.md +8 -2
  52. package/docs/de/custom_url_rewrites.md +8 -2
  53. package/docs/de/intlayer_with_analog.md +5 -1
  54. package/docs/de/intlayer_with_astro.md +3 -1
  55. package/docs/de/intlayer_with_astro_lit.md +3 -1
  56. package/docs/de/intlayer_with_astro_preact.md +3 -1
  57. package/docs/de/intlayer_with_astro_react.md +3 -1
  58. package/docs/de/intlayer_with_astro_solid.md +3 -1
  59. package/docs/de/intlayer_with_astro_svelte.md +3 -1
  60. package/docs/de/intlayer_with_astro_vanilla.md +3 -1
  61. package/docs/de/intlayer_with_astro_vue.md +3 -1
  62. package/docs/de/intlayer_with_lynx+react.md +6 -1
  63. package/docs/de/intlayer_with_nextjs_16.md +2 -0
  64. package/docs/de/intlayer_with_nextjs_compiler.md +2 -0
  65. package/docs/de/intlayer_with_react_native+expo.md +6 -1
  66. package/docs/de/intlayer_with_react_router_v7.md +3 -1
  67. package/docs/de/intlayer_with_react_router_v7_fs_routes.md +8 -3
  68. package/docs/de/intlayer_with_storybook.md +7 -1
  69. package/docs/de/intlayer_with_svelte_kit.md +9 -4
  70. package/docs/de/intlayer_with_tanstack+solid.md +18 -11
  71. package/docs/de/intlayer_with_tanstack.md +17 -8
  72. package/docs/de/intlayer_with_vite+lit.md +13 -4
  73. package/docs/de/intlayer_with_vite+preact.md +3 -1
  74. package/docs/de/intlayer_with_vite+react.md +9 -4
  75. package/docs/de/intlayer_with_vite+react_compiler.md +9 -2
  76. package/docs/de/intlayer_with_vite+solid.md +3 -1
  77. package/docs/de/intlayer_with_vite+svelte.md +9 -4
  78. package/docs/de/intlayer_with_vite+vanilla.md +16 -5
  79. package/docs/de/intlayer_with_vite+vue.md +9 -4
  80. package/docs/de/packages/@intlayer_babel/export.md +131 -0
  81. package/docs/de/packages/vite-intlayer/intlayerCompiler.md +120 -0
  82. package/docs/de/packages/vite-intlayer/intlayerMinify.md +92 -0
  83. package/docs/de/packages/vite-intlayer/intlayerProxy.md +172 -0
  84. package/docs/de/releases/v9.md +23 -1
  85. package/docs/en/compiler.md +5 -1
  86. package/docs/en/custom_domains.md +8 -2
  87. package/docs/en/custom_url_rewrites.md +8 -2
  88. package/docs/en/intlayer_with_analog.md +5 -1
  89. package/docs/en/intlayer_with_astro.md +2 -2
  90. package/docs/en/intlayer_with_astro_lit.md +2 -2
  91. package/docs/en/intlayer_with_astro_preact.md +2 -2
  92. package/docs/en/intlayer_with_astro_react.md +2 -2
  93. package/docs/en/intlayer_with_astro_solid.md +2 -2
  94. package/docs/en/intlayer_with_astro_svelte.md +2 -2
  95. package/docs/en/intlayer_with_astro_vanilla.md +2 -2
  96. package/docs/en/intlayer_with_astro_vue.md +2 -2
  97. package/docs/en/intlayer_with_lynx+react.md +6 -1
  98. package/docs/en/intlayer_with_nextjs_16.md +2 -0
  99. package/docs/en/intlayer_with_nextjs_compiler.md +2 -0
  100. package/docs/en/intlayer_with_react_native+expo.md +6 -1
  101. package/docs/en/intlayer_with_react_router_v7.md +8 -3
  102. package/docs/en/intlayer_with_react_router_v7_fs_routes.md +8 -3
  103. package/docs/en/intlayer_with_storybook.md +7 -1
  104. package/docs/en/intlayer_with_svelte_kit.md +8 -5
  105. package/docs/en/intlayer_with_tanstack+solid.md +18 -9
  106. package/docs/en/intlayer_with_tanstack.md +16 -7
  107. package/docs/en/intlayer_with_vite+lit.md +13 -4
  108. package/docs/en/intlayer_with_vite+preact.md +8 -3
  109. package/docs/en/intlayer_with_vite+react.md +8 -3
  110. package/docs/en/intlayer_with_vite+react_compiler.md +9 -2
  111. package/docs/en/intlayer_with_vite+solid.md +8 -3
  112. package/docs/en/intlayer_with_vite+svelte.md +8 -3
  113. package/docs/en/intlayer_with_vite+vanilla.md +15 -6
  114. package/docs/en/intlayer_with_vite+vue.md +8 -3
  115. package/docs/en/packages/@intlayer_babel/export.md +131 -0
  116. package/docs/en/packages/vite-intlayer/exports.md +38 -13
  117. package/docs/en/packages/vite-intlayer/intlayer.md +133 -14
  118. package/docs/en/packages/vite-intlayer/intlayerCompiler.md +120 -0
  119. package/docs/en/packages/vite-intlayer/intlayerMinify.md +92 -0
  120. package/docs/en/packages/vite-intlayer/intlayerProxy.md +172 -0
  121. package/docs/en/packages/vite-intlayer/intlayerPrune.md +90 -12
  122. package/docs/en/releases/v9.md +25 -1
  123. package/docs/en-GB/compiler.md +6 -3
  124. package/docs/en-GB/custom_domains.md +8 -2
  125. package/docs/en-GB/custom_url_rewrites.md +8 -2
  126. package/docs/en-GB/intlayer_with_analog.md +5 -1
  127. package/docs/en-GB/intlayer_with_astro.md +2 -0
  128. package/docs/en-GB/intlayer_with_astro_lit.md +2 -0
  129. package/docs/en-GB/intlayer_with_astro_preact.md +2 -0
  130. package/docs/en-GB/intlayer_with_astro_react.md +2 -0
  131. package/docs/en-GB/intlayer_with_astro_solid.md +2 -0
  132. package/docs/en-GB/intlayer_with_astro_svelte.md +2 -0
  133. package/docs/en-GB/intlayer_with_astro_vanilla.md +2 -0
  134. package/docs/en-GB/intlayer_with_astro_vue.md +2 -0
  135. package/docs/en-GB/intlayer_with_lynx+react.md +6 -1
  136. package/docs/en-GB/intlayer_with_react_native+expo.md +6 -1
  137. package/docs/en-GB/intlayer_with_react_router_v7.md +6 -3
  138. package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +6 -3
  139. package/docs/en-GB/intlayer_with_storybook.md +7 -1
  140. package/docs/en-GB/intlayer_with_svelte_kit.md +6 -3
  141. package/docs/en-GB/intlayer_with_tanstack+solid.md +18 -11
  142. package/docs/en-GB/intlayer_with_tanstack.md +14 -7
  143. package/docs/en-GB/intlayer_with_vite+lit.md +13 -4
  144. package/docs/en-GB/intlayer_with_vite+react.md +6 -3
  145. package/docs/en-GB/intlayer_with_vite+react_compiler.md +9 -2
  146. package/docs/en-GB/intlayer_with_vite+svelte.md +6 -3
  147. package/docs/en-GB/intlayer_with_vite+vanilla.md +15 -4
  148. package/docs/en-GB/intlayer_with_vite+vue.md +6 -3
  149. package/docs/en-GB/packages/@intlayer_babel/export.md +131 -0
  150. package/docs/en-GB/packages/vite-intlayer/intlayerCompiler.md +120 -0
  151. package/docs/en-GB/packages/vite-intlayer/intlayerMinify.md +92 -0
  152. package/docs/en-GB/packages/vite-intlayer/intlayerProxy.md +172 -0
  153. package/docs/en-GB/releases/v9.md +23 -1
  154. package/docs/es/compiler.md +6 -3
  155. package/docs/es/custom_domains.md +8 -2
  156. package/docs/es/custom_url_rewrites.md +8 -2
  157. package/docs/es/intlayer_with_analog.md +5 -1
  158. package/docs/es/intlayer_with_astro.md +3 -1
  159. package/docs/es/intlayer_with_astro_lit.md +3 -1
  160. package/docs/es/intlayer_with_astro_preact.md +3 -1
  161. package/docs/es/intlayer_with_astro_react.md +3 -1
  162. package/docs/es/intlayer_with_astro_solid.md +3 -1
  163. package/docs/es/intlayer_with_astro_svelte.md +3 -1
  164. package/docs/es/intlayer_with_astro_vanilla.md +3 -1
  165. package/docs/es/intlayer_with_astro_vue.md +3 -1
  166. package/docs/es/intlayer_with_lynx+react.md +6 -1
  167. package/docs/es/intlayer_with_nextjs_16.md +2 -0
  168. package/docs/es/intlayer_with_nextjs_compiler.md +2 -0
  169. package/docs/es/intlayer_with_react_native+expo.md +6 -1
  170. package/docs/es/intlayer_with_react_router_v7.md +3 -1
  171. package/docs/es/intlayer_with_react_router_v7_fs_routes.md +9 -4
  172. package/docs/es/intlayer_with_storybook.md +7 -1
  173. package/docs/es/intlayer_with_svelte_kit.md +9 -4
  174. package/docs/es/intlayer_with_tanstack+solid.md +18 -11
  175. package/docs/es/intlayer_with_tanstack.md +17 -8
  176. package/docs/es/intlayer_with_vite+lit.md +13 -4
  177. package/docs/es/intlayer_with_vite+preact.md +3 -1
  178. package/docs/es/intlayer_with_vite+react.md +9 -4
  179. package/docs/es/intlayer_with_vite+react_compiler.md +9 -2
  180. package/docs/es/intlayer_with_vite+solid.md +3 -1
  181. package/docs/es/intlayer_with_vite+svelte.md +4 -2
  182. package/docs/es/intlayer_with_vite+vanilla.md +16 -5
  183. package/docs/es/intlayer_with_vite+vue.md +9 -4
  184. package/docs/es/packages/@intlayer_babel/export.md +131 -0
  185. package/docs/es/packages/vite-intlayer/intlayerCompiler.md +120 -0
  186. package/docs/es/packages/vite-intlayer/intlayerMinify.md +92 -0
  187. package/docs/es/packages/vite-intlayer/intlayerProxy.md +172 -0
  188. package/docs/es/releases/v9.md +23 -1
  189. package/docs/fr/compiler.md +6 -3
  190. package/docs/fr/custom_domains.md +8 -2
  191. package/docs/fr/custom_url_rewrites.md +8 -2
  192. package/docs/fr/intlayer_with_analog.md +5 -1
  193. package/docs/fr/intlayer_with_astro.md +3 -1
  194. package/docs/fr/intlayer_with_astro_lit.md +3 -1
  195. package/docs/fr/intlayer_with_astro_preact.md +3 -1
  196. package/docs/fr/intlayer_with_astro_react.md +3 -1
  197. package/docs/fr/intlayer_with_astro_solid.md +3 -1
  198. package/docs/fr/intlayer_with_astro_svelte.md +3 -1
  199. package/docs/fr/intlayer_with_astro_vanilla.md +3 -1
  200. package/docs/fr/intlayer_with_astro_vue.md +3 -1
  201. package/docs/fr/intlayer_with_lynx+react.md +6 -1
  202. package/docs/fr/intlayer_with_nextjs_16.md +2 -0
  203. package/docs/fr/intlayer_with_nextjs_compiler.md +2 -0
  204. package/docs/fr/intlayer_with_react_native+expo.md +6 -1
  205. package/docs/fr/intlayer_with_react_router_v7.md +3 -1
  206. package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +3 -1
  207. package/docs/fr/intlayer_with_storybook.md +7 -1
  208. package/docs/fr/intlayer_with_svelte_kit.md +9 -4
  209. package/docs/fr/intlayer_with_tanstack+solid.md +18 -11
  210. package/docs/fr/intlayer_with_tanstack.md +17 -8
  211. package/docs/fr/intlayer_with_vite+lit.md +13 -4
  212. package/docs/fr/intlayer_with_vite+preact.md +3 -1
  213. package/docs/fr/intlayer_with_vite+react.md +9 -4
  214. package/docs/fr/intlayer_with_vite+react_compiler.md +9 -2
  215. package/docs/fr/intlayer_with_vite+solid.md +3 -1
  216. package/docs/fr/intlayer_with_vite+svelte.md +9 -4
  217. package/docs/fr/intlayer_with_vite+vanilla.md +16 -5
  218. package/docs/fr/intlayer_with_vite+vue.md +9 -4
  219. package/docs/fr/packages/@intlayer_babel/export.md +131 -0
  220. package/docs/fr/packages/vite-intlayer/intlayerCompiler.md +120 -0
  221. package/docs/fr/packages/vite-intlayer/intlayerMinify.md +92 -0
  222. package/docs/fr/packages/vite-intlayer/intlayerProxy.md +172 -0
  223. package/docs/fr/releases/v9.md +23 -1
  224. package/docs/hi/compiler.md +6 -3
  225. package/docs/hi/custom_domains.md +8 -2
  226. package/docs/hi/custom_url_rewrites.md +8 -2
  227. package/docs/hi/intlayer_with_analog.md +5 -1
  228. package/docs/hi/intlayer_with_astro.md +6 -3
  229. package/docs/hi/intlayer_with_astro_lit.md +6 -3
  230. package/docs/hi/intlayer_with_astro_preact.md +6 -3
  231. package/docs/hi/intlayer_with_astro_react.md +6 -3
  232. package/docs/hi/intlayer_with_astro_solid.md +6 -3
  233. package/docs/hi/intlayer_with_astro_svelte.md +6 -3
  234. package/docs/hi/intlayer_with_astro_vanilla.md +6 -3
  235. package/docs/hi/intlayer_with_astro_vue.md +6 -3
  236. package/docs/hi/intlayer_with_lynx+react.md +6 -1
  237. package/docs/hi/intlayer_with_react_native+expo.md +6 -1
  238. package/docs/hi/intlayer_with_react_router_v7.md +6 -3
  239. package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +6 -3
  240. package/docs/hi/intlayer_with_storybook.md +7 -1
  241. package/docs/hi/intlayer_with_svelte_kit.md +12 -6
  242. package/docs/hi/intlayer_with_tanstack+solid.md +18 -11
  243. package/docs/hi/intlayer_with_tanstack.md +20 -10
  244. package/docs/hi/intlayer_with_vite+lit.md +8 -2
  245. package/docs/hi/intlayer_with_vite+preact.md +6 -3
  246. package/docs/hi/intlayer_with_vite+react.md +12 -6
  247. package/docs/hi/intlayer_with_vite+react_compiler.md +9 -2
  248. package/docs/hi/intlayer_with_vite+solid.md +6 -3
  249. package/docs/hi/intlayer_with_vite+svelte.md +7 -4
  250. package/docs/hi/intlayer_with_vite+vanilla.md +16 -5
  251. package/docs/hi/intlayer_with_vite+vue.md +12 -6
  252. package/docs/hi/packages/@intlayer_babel/export.md +131 -0
  253. package/docs/hi/packages/vite-intlayer/intlayerCompiler.md +120 -0
  254. package/docs/hi/packages/vite-intlayer/intlayerMinify.md +92 -0
  255. package/docs/hi/packages/vite-intlayer/intlayerProxy.md +172 -0
  256. package/docs/hi/releases/v9.md +23 -1
  257. package/docs/id/compiler.md +6 -3
  258. package/docs/id/custom_domains.md +8 -2
  259. package/docs/id/custom_url_rewrites.md +8 -2
  260. package/docs/id/intlayer_with_analog.md +5 -1
  261. package/docs/id/intlayer_with_astro.md +3 -1
  262. package/docs/id/intlayer_with_astro_lit.md +3 -1
  263. package/docs/id/intlayer_with_astro_preact.md +3 -1
  264. package/docs/id/intlayer_with_astro_react.md +3 -1
  265. package/docs/id/intlayer_with_astro_solid.md +3 -1
  266. package/docs/id/intlayer_with_astro_svelte.md +3 -1
  267. package/docs/id/intlayer_with_astro_vanilla.md +3 -1
  268. package/docs/id/intlayer_with_astro_vue.md +3 -1
  269. package/docs/id/intlayer_with_lynx+react.md +6 -1
  270. package/docs/id/intlayer_with_nextjs_16.md +2 -0
  271. package/docs/id/intlayer_with_nextjs_compiler.md +2 -0
  272. package/docs/id/intlayer_with_react_native+expo.md +6 -1
  273. package/docs/id/intlayer_with_react_router_v7.md +3 -1
  274. package/docs/id/intlayer_with_react_router_v7_fs_routes.md +9 -4
  275. package/docs/id/intlayer_with_storybook.md +7 -1
  276. package/docs/id/intlayer_with_svelte_kit.md +9 -4
  277. package/docs/id/intlayer_with_tanstack+solid.md +18 -11
  278. package/docs/id/intlayer_with_tanstack.md +17 -8
  279. package/docs/id/intlayer_with_vite+lit.md +8 -2
  280. package/docs/id/intlayer_with_vite+preact.md +3 -1
  281. package/docs/id/intlayer_with_vite+react.md +9 -4
  282. package/docs/id/intlayer_with_vite+react_compiler.md +9 -2
  283. package/docs/id/intlayer_with_vite+solid.md +3 -1
  284. package/docs/id/intlayer_with_vite+svelte.md +5 -3
  285. package/docs/id/intlayer_with_vite+vanilla.md +16 -5
  286. package/docs/id/intlayer_with_vite+vue.md +9 -4
  287. package/docs/id/packages/@intlayer_babel/export.md +131 -0
  288. package/docs/id/packages/vite-intlayer/intlayerCompiler.md +120 -0
  289. package/docs/id/packages/vite-intlayer/intlayerMinify.md +92 -0
  290. package/docs/id/packages/vite-intlayer/intlayerProxy.md +172 -0
  291. package/docs/id/releases/v9.md +23 -1
  292. package/docs/it/compiler.md +6 -3
  293. package/docs/it/custom_domains.md +8 -2
  294. package/docs/it/custom_url_rewrites.md +8 -2
  295. package/docs/it/intlayer_with_analog.md +5 -1
  296. package/docs/it/intlayer_with_astro.md +3 -1
  297. package/docs/it/intlayer_with_astro_lit.md +3 -1
  298. package/docs/it/intlayer_with_astro_preact.md +3 -1
  299. package/docs/it/intlayer_with_astro_react.md +3 -1
  300. package/docs/it/intlayer_with_astro_solid.md +3 -1
  301. package/docs/it/intlayer_with_astro_svelte.md +3 -1
  302. package/docs/it/intlayer_with_astro_vanilla.md +3 -1
  303. package/docs/it/intlayer_with_astro_vue.md +3 -1
  304. package/docs/it/intlayer_with_lynx+react.md +6 -1
  305. package/docs/it/intlayer_with_nextjs_16.md +2 -0
  306. package/docs/it/intlayer_with_nextjs_compiler.md +2 -0
  307. package/docs/it/intlayer_with_react_native+expo.md +6 -1
  308. package/docs/it/intlayer_with_react_router_v7.md +3 -1
  309. package/docs/it/intlayer_with_react_router_v7_fs_routes.md +3 -1
  310. package/docs/it/intlayer_with_storybook.md +7 -1
  311. package/docs/it/intlayer_with_svelte_kit.md +9 -4
  312. package/docs/it/intlayer_with_tanstack+solid.md +18 -11
  313. package/docs/it/intlayer_with_tanstack.md +17 -8
  314. package/docs/it/intlayer_with_vite+lit.md +13 -4
  315. package/docs/it/intlayer_with_vite+preact.md +3 -1
  316. package/docs/it/intlayer_with_vite+react.md +9 -4
  317. package/docs/it/intlayer_with_vite+react_compiler.md +9 -2
  318. package/docs/it/intlayer_with_vite+solid.md +3 -1
  319. package/docs/it/intlayer_with_vite+svelte.md +4 -2
  320. package/docs/it/intlayer_with_vite+vanilla.md +16 -5
  321. package/docs/it/intlayer_with_vite+vue.md +9 -4
  322. package/docs/it/packages/@intlayer_babel/export.md +131 -0
  323. package/docs/it/packages/vite-intlayer/intlayerCompiler.md +120 -0
  324. package/docs/it/packages/vite-intlayer/intlayerMinify.md +92 -0
  325. package/docs/it/packages/vite-intlayer/intlayerProxy.md +172 -0
  326. package/docs/it/releases/v9.md +23 -1
  327. package/docs/ja/compiler.md +6 -3
  328. package/docs/ja/custom_domains.md +8 -2
  329. package/docs/ja/custom_url_rewrites.md +8 -2
  330. package/docs/ja/intlayer_with_analog.md +5 -1
  331. package/docs/ja/intlayer_with_astro.md +2 -0
  332. package/docs/ja/intlayer_with_astro_lit.md +2 -0
  333. package/docs/ja/intlayer_with_astro_preact.md +2 -0
  334. package/docs/ja/intlayer_with_astro_react.md +2 -0
  335. package/docs/ja/intlayer_with_astro_solid.md +2 -0
  336. package/docs/ja/intlayer_with_astro_svelte.md +2 -0
  337. package/docs/ja/intlayer_with_astro_vanilla.md +2 -0
  338. package/docs/ja/intlayer_with_astro_vue.md +2 -0
  339. package/docs/ja/intlayer_with_lynx+react.md +6 -1
  340. package/docs/ja/intlayer_with_nextjs_16.md +2 -0
  341. package/docs/ja/intlayer_with_nextjs_compiler.md +2 -0
  342. package/docs/ja/intlayer_with_react_native+expo.md +6 -1
  343. package/docs/ja/intlayer_with_react_router_v7.md +8 -3
  344. package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +3 -1
  345. package/docs/ja/intlayer_with_storybook.md +7 -1
  346. package/docs/ja/intlayer_with_svelte_kit.md +2 -0
  347. package/docs/ja/intlayer_with_tanstack+solid.md +18 -11
  348. package/docs/ja/intlayer_with_tanstack.md +18 -11
  349. package/docs/ja/intlayer_with_vite+lit.md +13 -4
  350. package/docs/ja/intlayer_with_vite+preact.md +8 -3
  351. package/docs/ja/intlayer_with_vite+react.md +3 -1
  352. package/docs/ja/intlayer_with_vite+react_compiler.md +9 -2
  353. package/docs/ja/intlayer_with_vite+solid.md +3 -1
  354. package/docs/ja/intlayer_with_vite+svelte.md +5 -3
  355. package/docs/ja/intlayer_with_vite+vanilla.md +16 -5
  356. package/docs/ja/intlayer_with_vite+vue.md +9 -4
  357. package/docs/ja/packages/@intlayer_babel/export.md +131 -0
  358. package/docs/ja/packages/vite-intlayer/intlayerCompiler.md +120 -0
  359. package/docs/ja/packages/vite-intlayer/intlayerMinify.md +92 -0
  360. package/docs/ja/packages/vite-intlayer/intlayerProxy.md +172 -0
  361. package/docs/ja/releases/v9.md +23 -1
  362. package/docs/ko/compiler.md +6 -3
  363. package/docs/ko/custom_domains.md +8 -2
  364. package/docs/ko/custom_url_rewrites.md +8 -2
  365. package/docs/ko/intlayer_with_analog.md +5 -1
  366. package/docs/ko/intlayer_with_astro.md +3 -1
  367. package/docs/ko/intlayer_with_astro_lit.md +3 -1
  368. package/docs/ko/intlayer_with_astro_preact.md +3 -1
  369. package/docs/ko/intlayer_with_astro_react.md +3 -1
  370. package/docs/ko/intlayer_with_astro_solid.md +3 -1
  371. package/docs/ko/intlayer_with_astro_svelte.md +3 -1
  372. package/docs/ko/intlayer_with_astro_vanilla.md +3 -1
  373. package/docs/ko/intlayer_with_astro_vue.md +3 -1
  374. package/docs/ko/intlayer_with_lynx+react.md +6 -1
  375. package/docs/ko/intlayer_with_nextjs_16.md +2 -0
  376. package/docs/ko/intlayer_with_nextjs_compiler.md +2 -0
  377. package/docs/ko/intlayer_with_react_native+expo.md +6 -1
  378. package/docs/ko/intlayer_with_react_router_v7.md +3 -1
  379. package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +3 -1
  380. package/docs/ko/intlayer_with_storybook.md +7 -1
  381. package/docs/ko/intlayer_with_svelte_kit.md +9 -4
  382. package/docs/ko/intlayer_with_tanstack+solid.md +18 -11
  383. package/docs/ko/intlayer_with_tanstack.md +17 -8
  384. package/docs/ko/intlayer_with_vite+lit.md +13 -4
  385. package/docs/ko/intlayer_with_vite+preact.md +3 -1
  386. package/docs/ko/intlayer_with_vite+react.md +3 -1
  387. package/docs/ko/intlayer_with_vite+react_compiler.md +9 -2
  388. package/docs/ko/intlayer_with_vite+svelte.md +5 -3
  389. package/docs/ko/intlayer_with_vite+vanilla.md +16 -5
  390. package/docs/ko/intlayer_with_vite+vue.md +9 -4
  391. package/docs/ko/packages/@intlayer_babel/export.md +131 -0
  392. package/docs/ko/packages/vite-intlayer/intlayerCompiler.md +120 -0
  393. package/docs/ko/packages/vite-intlayer/intlayerMinify.md +92 -0
  394. package/docs/ko/packages/vite-intlayer/intlayerProxy.md +172 -0
  395. package/docs/ko/releases/v9.md +23 -1
  396. package/docs/nl/custom_domains.md +8 -2
  397. package/docs/nl/intlayer_with_storybook.md +7 -1
  398. package/docs/nl/intlayer_with_vite+lit.md +8 -2
  399. package/docs/nl/intlayer_with_vite+vanilla.md +16 -5
  400. package/docs/pl/compiler.md +6 -3
  401. package/docs/pl/custom_domains.md +8 -2
  402. package/docs/pl/custom_url_rewrites.md +8 -2
  403. package/docs/pl/intlayer_with_analog.md +5 -1
  404. package/docs/pl/intlayer_with_astro.md +6 -4
  405. package/docs/pl/intlayer_with_astro_lit.md +3 -1
  406. package/docs/pl/intlayer_with_astro_preact.md +3 -1
  407. package/docs/pl/intlayer_with_astro_react.md +3 -1
  408. package/docs/pl/intlayer_with_astro_solid.md +3 -1
  409. package/docs/pl/intlayer_with_astro_svelte.md +3 -1
  410. package/docs/pl/intlayer_with_astro_vanilla.md +3 -1
  411. package/docs/pl/intlayer_with_astro_vue.md +3 -1
  412. package/docs/pl/intlayer_with_lynx+react.md +6 -1
  413. package/docs/pl/intlayer_with_nextjs_16.md +2 -0
  414. package/docs/pl/intlayer_with_nextjs_compiler.md +2 -0
  415. package/docs/pl/intlayer_with_react_native+expo.md +6 -1
  416. package/docs/pl/intlayer_with_react_router_v7.md +3 -1
  417. package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +3 -1
  418. package/docs/pl/intlayer_with_storybook.md +7 -1
  419. package/docs/pl/intlayer_with_svelte_kit.md +9 -4
  420. package/docs/pl/intlayer_with_tanstack+solid.md +18 -9
  421. package/docs/pl/intlayer_with_tanstack.md +17 -8
  422. package/docs/pl/intlayer_with_vite+lit.md +8 -2
  423. package/docs/pl/intlayer_with_vite+preact.md +3 -1
  424. package/docs/pl/intlayer_with_vite+react.md +9 -4
  425. package/docs/pl/intlayer_with_vite+react_compiler.md +9 -2
  426. package/docs/pl/intlayer_with_vite+solid.md +3 -1
  427. package/docs/pl/intlayer_with_vite+svelte.md +4 -2
  428. package/docs/pl/intlayer_with_vite+vanilla.md +16 -5
  429. package/docs/pl/intlayer_with_vite+vue.md +9 -4
  430. package/docs/pl/packages/@intlayer_babel/export.md +131 -0
  431. package/docs/pl/packages/vite-intlayer/intlayerCompiler.md +120 -0
  432. package/docs/pl/packages/vite-intlayer/intlayerMinify.md +92 -0
  433. package/docs/pl/packages/vite-intlayer/intlayerProxy.md +172 -0
  434. package/docs/pl/releases/v9.md +23 -1
  435. package/docs/pt/compiler.md +6 -3
  436. package/docs/pt/custom_domains.md +8 -2
  437. package/docs/pt/custom_url_rewrites.md +8 -2
  438. package/docs/pt/intlayer_with_analog.md +5 -1
  439. package/docs/pt/intlayer_with_astro.md +6 -4
  440. package/docs/pt/intlayer_with_astro_lit.md +3 -1
  441. package/docs/pt/intlayer_with_astro_preact.md +3 -1
  442. package/docs/pt/intlayer_with_astro_react.md +3 -1
  443. package/docs/pt/intlayer_with_astro_solid.md +3 -1
  444. package/docs/pt/intlayer_with_astro_svelte.md +3 -1
  445. package/docs/pt/intlayer_with_astro_vanilla.md +3 -1
  446. package/docs/pt/intlayer_with_astro_vue.md +3 -1
  447. package/docs/pt/intlayer_with_lynx+react.md +6 -1
  448. package/docs/pt/intlayer_with_nextjs_16.md +2 -0
  449. package/docs/pt/intlayer_with_nextjs_compiler.md +2 -0
  450. package/docs/pt/intlayer_with_react_native+expo.md +6 -1
  451. package/docs/pt/intlayer_with_react_router_v7.md +8 -3
  452. package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +3 -1
  453. package/docs/pt/intlayer_with_storybook.md +7 -1
  454. package/docs/pt/intlayer_with_svelte_kit.md +9 -4
  455. package/docs/pt/intlayer_with_tanstack+solid.md +18 -9
  456. package/docs/pt/intlayer_with_tanstack.md +17 -8
  457. package/docs/pt/intlayer_with_vite+lit.md +13 -4
  458. package/docs/pt/intlayer_with_vite+preact.md +3 -1
  459. package/docs/pt/intlayer_with_vite+react.md +9 -4
  460. package/docs/pt/intlayer_with_vite+react_compiler.md +9 -2
  461. package/docs/pt/intlayer_with_vite+solid.md +3 -1
  462. package/docs/pt/intlayer_with_vite+svelte.md +4 -2
  463. package/docs/pt/intlayer_with_vite+vanilla.md +16 -5
  464. package/docs/pt/intlayer_with_vite+vue.md +9 -4
  465. package/docs/pt/packages/@intlayer_babel/export.md +131 -0
  466. package/docs/pt/packages/vite-intlayer/intlayerCompiler.md +120 -0
  467. package/docs/pt/packages/vite-intlayer/intlayerMinify.md +92 -0
  468. package/docs/pt/packages/vite-intlayer/intlayerProxy.md +172 -0
  469. package/docs/pt/releases/v9.md +23 -1
  470. package/docs/ru/compiler.md +6 -3
  471. package/docs/ru/custom_domains.md +8 -2
  472. package/docs/ru/custom_url_rewrites.md +8 -2
  473. package/docs/ru/intlayer_with_analog.md +5 -1
  474. package/docs/ru/intlayer_with_astro.md +3 -1
  475. package/docs/ru/intlayer_with_astro_lit.md +3 -1
  476. package/docs/ru/intlayer_with_astro_preact.md +3 -1
  477. package/docs/ru/intlayer_with_astro_react.md +3 -1
  478. package/docs/ru/intlayer_with_astro_solid.md +3 -1
  479. package/docs/ru/intlayer_with_astro_svelte.md +3 -1
  480. package/docs/ru/intlayer_with_astro_vanilla.md +3 -1
  481. package/docs/ru/intlayer_with_astro_vue.md +3 -1
  482. package/docs/ru/intlayer_with_lynx+react.md +6 -1
  483. package/docs/ru/intlayer_with_nextjs_16.md +2 -0
  484. package/docs/ru/intlayer_with_nextjs_compiler.md +2 -0
  485. package/docs/ru/intlayer_with_react_native+expo.md +6 -1
  486. package/docs/ru/intlayer_with_react_router_v7.md +3 -1
  487. package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +3 -1
  488. package/docs/ru/intlayer_with_storybook.md +7 -1
  489. package/docs/ru/intlayer_with_svelte_kit.md +9 -4
  490. package/docs/ru/intlayer_with_tanstack+solid.md +18 -11
  491. package/docs/ru/intlayer_with_tanstack.md +17 -8
  492. package/docs/ru/intlayer_with_vite+lit.md +13 -4
  493. package/docs/ru/intlayer_with_vite+preact.md +3 -1
  494. package/docs/ru/intlayer_with_vite+react.md +9 -4
  495. package/docs/ru/intlayer_with_vite+react_compiler.md +9 -2
  496. package/docs/ru/intlayer_with_vite+solid.md +3 -1
  497. package/docs/ru/intlayer_with_vite+svelte.md +4 -2
  498. package/docs/ru/intlayer_with_vite+vanilla.md +16 -5
  499. package/docs/ru/intlayer_with_vite+vue.md +9 -4
  500. package/docs/ru/packages/@intlayer_babel/export.md +131 -0
  501. package/docs/ru/packages/vite-intlayer/intlayerCompiler.md +120 -0
  502. package/docs/ru/packages/vite-intlayer/intlayerMinify.md +92 -0
  503. package/docs/ru/packages/vite-intlayer/intlayerProxy.md +172 -0
  504. package/docs/ru/releases/v9.md +23 -1
  505. package/docs/tr/compiler.md +6 -3
  506. package/docs/tr/custom_domains.md +8 -2
  507. package/docs/tr/custom_url_rewrites.md +8 -2
  508. package/docs/tr/intlayer_with_analog.md +5 -1
  509. package/docs/tr/intlayer_with_astro_lit.md +3 -1
  510. package/docs/tr/intlayer_with_astro_preact.md +3 -1
  511. package/docs/tr/intlayer_with_astro_react.md +3 -1
  512. package/docs/tr/intlayer_with_astro_solid.md +3 -1
  513. package/docs/tr/intlayer_with_astro_svelte.md +3 -1
  514. package/docs/tr/intlayer_with_astro_vanilla.md +3 -1
  515. package/docs/tr/intlayer_with_astro_vue.md +3 -1
  516. package/docs/tr/intlayer_with_lynx+react.md +6 -1
  517. package/docs/tr/intlayer_with_nextjs_16.md +2 -0
  518. package/docs/tr/intlayer_with_nextjs_compiler.md +2 -0
  519. package/docs/tr/intlayer_with_react_native+expo.md +6 -1
  520. package/docs/tr/intlayer_with_react_router_v7.md +3 -1
  521. package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +3 -1
  522. package/docs/tr/intlayer_with_storybook.md +7 -1
  523. package/docs/tr/intlayer_with_svelte_kit.md +9 -4
  524. package/docs/tr/intlayer_with_tanstack+solid.md +18 -11
  525. package/docs/tr/intlayer_with_tanstack.md +17 -8
  526. package/docs/tr/intlayer_with_vite+lit.md +8 -2
  527. package/docs/tr/intlayer_with_vite+preact.md +3 -1
  528. package/docs/tr/intlayer_with_vite+react.md +9 -4
  529. package/docs/tr/intlayer_with_vite+react_compiler.md +9 -2
  530. package/docs/tr/intlayer_with_vite+solid.md +3 -1
  531. package/docs/tr/intlayer_with_vite+svelte.md +4 -2
  532. package/docs/tr/intlayer_with_vite+vanilla.md +16 -5
  533. package/docs/tr/intlayer_with_vite+vue.md +9 -4
  534. package/docs/tr/packages/@intlayer_babel/export.md +131 -0
  535. package/docs/tr/packages/vite-intlayer/intlayerCompiler.md +120 -0
  536. package/docs/tr/packages/vite-intlayer/intlayerMinify.md +92 -0
  537. package/docs/tr/packages/vite-intlayer/intlayerProxy.md +172 -0
  538. package/docs/tr/releases/v9.md +23 -1
  539. package/docs/uk/compiler.md +6 -3
  540. package/docs/uk/custom_domains.md +8 -2
  541. package/docs/uk/custom_url_rewrites.md +8 -2
  542. package/docs/uk/intlayer_with_analog.md +5 -1
  543. package/docs/uk/intlayer_with_astro.md +3 -1
  544. package/docs/uk/intlayer_with_astro_lit.md +3 -1
  545. package/docs/uk/intlayer_with_astro_preact.md +3 -1
  546. package/docs/uk/intlayer_with_astro_react.md +3 -1
  547. package/docs/uk/intlayer_with_astro_solid.md +3 -1
  548. package/docs/uk/intlayer_with_astro_svelte.md +3 -1
  549. package/docs/uk/intlayer_with_astro_vanilla.md +3 -1
  550. package/docs/uk/intlayer_with_astro_vue.md +3 -1
  551. package/docs/uk/intlayer_with_lynx+react.md +6 -1
  552. package/docs/uk/intlayer_with_nextjs_16.md +2 -0
  553. package/docs/uk/intlayer_with_nextjs_compiler.md +2 -0
  554. package/docs/uk/intlayer_with_react_native+expo.md +6 -1
  555. package/docs/uk/intlayer_with_react_router_v7.md +3 -1
  556. package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +3 -1
  557. package/docs/uk/intlayer_with_storybook.md +7 -1
  558. package/docs/uk/intlayer_with_svelte_kit.md +9 -4
  559. package/docs/uk/intlayer_with_tanstack+solid.md +18 -11
  560. package/docs/uk/intlayer_with_tanstack.md +17 -8
  561. package/docs/uk/intlayer_with_vite+lit.md +8 -2
  562. package/docs/uk/intlayer_with_vite+preact.md +3 -1
  563. package/docs/uk/intlayer_with_vite+react.md +9 -4
  564. package/docs/uk/intlayer_with_vite+react_compiler.md +9 -2
  565. package/docs/uk/intlayer_with_vite+solid.md +3 -1
  566. package/docs/uk/intlayer_with_vite+svelte.md +9 -4
  567. package/docs/uk/intlayer_with_vite+vanilla.md +16 -5
  568. package/docs/uk/intlayer_with_vite+vue.md +9 -4
  569. package/docs/uk/packages/@intlayer_babel/export.md +131 -0
  570. package/docs/uk/packages/vite-intlayer/intlayerCompiler.md +120 -0
  571. package/docs/uk/packages/vite-intlayer/intlayerMinify.md +92 -0
  572. package/docs/uk/packages/vite-intlayer/intlayerProxy.md +172 -0
  573. package/docs/uk/releases/v9.md +23 -1
  574. package/docs/ur/custom_domains.md +8 -2
  575. package/docs/ur/intlayer_with_storybook.md +7 -1
  576. package/docs/ur/intlayer_with_vite+lit.md +8 -2
  577. package/docs/ur/intlayer_with_vite+vanilla.md +16 -5
  578. package/docs/vi/compiler.md +6 -3
  579. package/docs/vi/custom_domains.md +8 -2
  580. package/docs/vi/custom_url_rewrites.md +8 -2
  581. package/docs/vi/intlayer_with_analog.md +5 -1
  582. package/docs/vi/intlayer_with_astro.md +3 -1
  583. package/docs/vi/intlayer_with_astro_lit.md +3 -1
  584. package/docs/vi/intlayer_with_astro_preact.md +3 -1
  585. package/docs/vi/intlayer_with_astro_react.md +3 -1
  586. package/docs/vi/intlayer_with_astro_solid.md +3 -1
  587. package/docs/vi/intlayer_with_astro_svelte.md +3 -1
  588. package/docs/vi/intlayer_with_astro_vanilla.md +3 -1
  589. package/docs/vi/intlayer_with_astro_vue.md +3 -1
  590. package/docs/vi/intlayer_with_lynx+react.md +6 -1
  591. package/docs/vi/intlayer_with_nextjs_15.md +2 -0
  592. package/docs/vi/intlayer_with_nextjs_16.md +2 -0
  593. package/docs/vi/intlayer_with_nextjs_compiler.md +2 -0
  594. package/docs/vi/intlayer_with_react_native+expo.md +6 -1
  595. package/docs/vi/intlayer_with_react_router_v7.md +3 -1
  596. package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +9 -4
  597. package/docs/vi/intlayer_with_storybook.md +7 -1
  598. package/docs/vi/intlayer_with_svelte_kit.md +9 -4
  599. package/docs/vi/intlayer_with_tanstack+solid.md +18 -11
  600. package/docs/vi/intlayer_with_tanstack.md +17 -8
  601. package/docs/vi/intlayer_with_vite+lit.md +8 -2
  602. package/docs/vi/intlayer_with_vite+preact.md +3 -1
  603. package/docs/vi/intlayer_with_vite+react.md +9 -4
  604. package/docs/vi/intlayer_with_vite+react_compiler.md +9 -2
  605. package/docs/vi/intlayer_with_vite+solid.md +3 -1
  606. package/docs/vi/intlayer_with_vite+svelte.md +9 -4
  607. package/docs/vi/intlayer_with_vite+vanilla.md +16 -5
  608. package/docs/vi/intlayer_with_vite+vue.md +9 -4
  609. package/docs/vi/packages/@intlayer_babel/export.md +131 -0
  610. package/docs/vi/packages/vite-intlayer/intlayerCompiler.md +120 -0
  611. package/docs/vi/packages/vite-intlayer/intlayerMinify.md +92 -0
  612. package/docs/vi/packages/vite-intlayer/intlayerProxy.md +172 -0
  613. package/docs/vi/releases/v9.md +23 -1
  614. package/docs/zh/compiler.md +6 -3
  615. package/docs/zh/custom_domains.md +8 -2
  616. package/docs/zh/custom_url_rewrites.md +8 -2
  617. package/docs/zh/intlayer_with_astro.md +3 -1
  618. package/docs/zh/intlayer_with_astro_lit.md +3 -1
  619. package/docs/zh/intlayer_with_astro_preact.md +3 -1
  620. package/docs/zh/intlayer_with_astro_react.md +3 -1
  621. package/docs/zh/intlayer_with_astro_solid.md +3 -1
  622. package/docs/zh/intlayer_with_astro_svelte.md +3 -1
  623. package/docs/zh/intlayer_with_astro_vanilla.md +3 -1
  624. package/docs/zh/intlayer_with_astro_vue.md +3 -1
  625. package/docs/zh/intlayer_with_nextjs_16.md +2 -0
  626. package/docs/zh/intlayer_with_nextjs_compiler.md +2 -0
  627. package/docs/zh/intlayer_with_react_native+expo.md +6 -1
  628. package/docs/zh/intlayer_with_react_router_v7.md +3 -1
  629. package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +3 -1
  630. package/docs/zh/intlayer_with_storybook.md +7 -1
  631. package/docs/zh/intlayer_with_svelte_kit.md +9 -4
  632. package/docs/zh/intlayer_with_vite+preact.md +3 -1
  633. package/docs/zh/intlayer_with_vite+react.md +9 -4
  634. package/docs/zh/intlayer_with_vite+svelte.md +9 -4
  635. package/docs/zh/intlayer_with_vite+vue.md +9 -4
  636. package/docs/zh/packages/@intlayer_babel/export.md +131 -0
  637. package/docs/zh/packages/vite-intlayer/intlayerCompiler.md +120 -0
  638. package/docs/zh/packages/vite-intlayer/intlayerMinify.md +92 -0
  639. package/docs/zh/packages/vite-intlayer/intlayerProxy.md +172 -0
  640. package/docs/zh/releases/v9.md +23 -1
  641. package/package.json +6 -6
  642. package/src/generated/docs.entry.ts +80 -0
@@ -619,14 +619,17 @@ Paralelamente, você também pode usar o `intlayerProxy` para adicionar roteamen
619
619
  ```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
620
620
  import { defineConfig } from "vite";
621
621
  import vue from "@vitejs/plugin-vue";
622
- import { intlayer, intlayerProxy } from "vite-intlayer";
622
+ import { intlayer } from "vite-intlayer";
623
623
 
624
624
  // https://vitejs.dev/config/
625
625
  export default defineConfig({
626
626
  plugins: [
627
- intlayerProxy(), // should be placed first
628
627
  vue(),
629
- intlayer(),
628
+ intlayer({
629
+ proxy: {
630
+ ignore: (req) => req.url?.startsWith("/api"),
631
+ },
632
+ }),
630
633
  ],
631
634
  });
632
635
  ```
@@ -1005,6 +1008,8 @@ bun x intlayer extract
1005
1008
  </Tab>
1006
1009
  <Tab value='Compilador Babel'>
1007
1010
 
1011
+ > Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
1012
+
1008
1013
  Atualize seu `vite.config.ts` para incluir o plugin `intlayerCompiler`:
1009
1014
 
1010
1015
  ```ts fileName="vite.config.ts"
@@ -1014,7 +1019,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
1014
1019
  export default defineConfig({
1015
1020
  plugins: [
1016
1021
  intlayer(),
1017
- intlayerCompiler(), // Adiciona o plugin do compilador
1022
+ intlayerCompiler(), // Adds the compiler plugin
1018
1023
  ],
1019
1024
  });
1020
1025
  ```
@@ -0,0 +1,131 @@
1
+ ---
2
+ createdAt: 2026-06-25
3
+ updatedAt: 2026-06-25
4
+ title: "Documentação do pacote @intlayer/babel"
5
+ description: Plugins do Babel para o Intlayer para lidar com extração de conteúdo, otimização de importação, limpeza de campos não utilizados e ofuscação de nomes de campos durante a compilação.
6
+ keywords:
7
+ - "@intlayer/babel"
8
+ - babel
9
+ - plugin
10
+ - internacionalização
11
+ - i18n
12
+ - compilador
13
+ - otimizar
14
+ - limpar
15
+ - minificar
16
+ slugs:
17
+ - doc
18
+ - packages
19
+ - "@intlayer/babel"
20
+ - export
21
+ history:
22
+ - version: 9.0.0
23
+ date: 2026-06-25
24
+ changes: "Documentação unificada de todas as exportações"
25
+ author: aymericzip
26
+ ---
27
+
28
+ # Pacote @intlayer/babel
29
+
30
+ O pacote `@intlayer/babel` fornece um conjunto de plugins especializados do Babel para o Intlayer. Esses plugins cobrem todo o ciclo de build: extração de declarações de conteúdo, reescrita de chamadas `useIntlayer` / `getIntlayer` para importações de dicionário otimizadas, limpeza de campos não utilizados e minificação de nomes de campos.
31
+
32
+ ## Instalação
33
+
34
+ ```bash
35
+ npm install @intlayer/babel
36
+ ```
37
+
38
+ ## Exportações
39
+
40
+ Importar:
41
+
42
+ ```ts
43
+ import { ... } from "@intlayer/babel";
44
+ ```
45
+
46
+ ---
47
+
48
+ ### Plugins
49
+
50
+ | Função / Classe | Descrição |
51
+ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
52
+ | `intlayerExtractBabelPlugin` | Plugin do Babel que extrai conteúdo traduzível de arquivos-fonte e injeta ganchos (hooks) `useIntlayer` / `getIntlayer` automaticamente. Projetado para uso com o Next.js e ferramentas de compilação baseadas em Babel. |
53
+ | `intlayerOptimizeBabelPlugin` | Plugin do Babel que transforma chamadas `useIntlayer` e `getIntlayer` e reescreve suas importações para importações de dicionário JSON otimizadas (estáticas, dinâmicas ou via fetch). |
54
+ | `intlayerPurgeBabelPlugin` | Plugin do Babel que analisa arquivos-fonte e reescreve arquivos JSON de dicionário compilados para remover campos não utilizados (`build.purge`) ou renomeá-los para aliases curtos (`build.minify`). |
55
+ | `intlayerMinifyBabelPlugin` | Plugin do Babel que reescreve arquivos-fonte para usar os aliases curtos de campo atribuídos durante a fase de minificação (por exemplo, `content.title` ← `content.a`). Depende do `intlayerPruneBabelPlugin`. |
56
+ | `makeFieldRenameBabelPlugin` | Função factory que produz um plugin do Babel para renomear acessos a campos de conteúdo de dicionário em arquivos-fonte de acordo com o `dictionaryKeyToFieldRenameMap` preenchido no `PruneContext`. |
57
+ | `makeUsageAnalyzerBabelPlugin` | Função factory que produz um plugin do Babel para analisar o uso de `useIntlayer` / `getIntlayer` no código-fonte e agregar dados de uso de campo no `PruneContext` compartilhado. |
58
+ | `getSharedPruneContext` | Função auxiliar que retorna o objeto `PruneContext` compartilhado para o diretório base especificado, ou `null` se ainda não tiver sido inicializado. |
59
+
60
+ ---
61
+
62
+ ### Utilitários de Configuração de Plugins
63
+
64
+ | Função | Descrição |
65
+ | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
66
+ | `getExtractPluginOptions` | Carrega a configuração do Intlayer e retorna `ExtractPluginOptions` prontas para uso com o `intlayerExtractBabelPlugin`. |
67
+ | `getOptimizePluginOptions` | Carrega a configuração do Intlayer e os dicionários compilados e retorna `OptimizePluginOptions` prontas para uso com o `intlayerOptimizeBabelPlugin`. |
68
+ | `getPurgePluginOptions` | Carrega a configuração do Intlayer e retorna `PurgePluginOptions` prontas para uso com o `intlayerPurgeBabelPlugin`. |
69
+ | `getMinifyPluginOptions` | Carrega a configuração do Intlayer e retorna `MinifyPluginOptions` prontas para uso com o `intlayerMinifyBabelPlugin`. |
70
+
71
+ ---
72
+
73
+ ### Tipos
74
+
75
+ | Tipo | Descrição |
76
+ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
77
+ | `CompilerMode` | Modo do compilador: `'dev'` para desenvolvimento com suporte HMR, ou `'build'` para compilações de produção. |
78
+ | `ExtractPluginOptions` | Opções para o `intlayerExtractBabelPlugin`: lista de arquivos, configuração, callback `onExtract`, etc. |
79
+ | `ExtractResult` | Resultado da extração: chave do dicionário, caminho do arquivo, conteúdo e idioma. |
80
+ | `OptimizePluginOptions` | Opções para o `intlayerOptimizeBabelPlugin`: caminhos do dicionário, modo de importação, mapa de modos por dicionário, etc. |
81
+ | `PurgePluginOptions` | Opções para o `intlayerPurgeBabelPlugin`: diretório base, sinalizadores de limpeza/minificação/otimização, lista de arquivos de componentes. |
82
+ | `MinifyPluginOptions` | Opções para o `intlayerMinifyBabelPlugin`: diretório base, sinalizadores de minificação/otimização/editorEnabled. |
83
+ | `PruneContext` | Estado compartilhado entre plugins de análise e limpeza: mapas de uso de campo, mapas de renomeação, etc. |
84
+ | `DictionaryFieldUsage` | Resultado do uso do campo para um único dicionário: `Set<string>` ou `'all'` quando a análise estática é inconclusiva. |
85
+ | `NestedRenameEntry` | Nó na árvore de renomeação: o `shortName` e o mapa de filhos. |
86
+ | `NestedRenameMap` | Um nível na árvore de renomeação: `Map<string, NestedRenameEntry>`. |
87
+ | `CompatCallerConfig` | Configuração para um analisador de uso compatível para pacotes compat-adapter (nome do chamador e opções de processamento). |
88
+ | `ScriptBlock` | Bloco de script extraído de um arquivo SFC (Vue ou Svelte): conteúdo, deslocamento de início e deslocamento de fim. |
89
+
90
+ ---
91
+
92
+ ### Funções Utilitárias
93
+
94
+ | Função | Descrição |
95
+ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
96
+ | `generateShortFieldName` | Converte um número inteiro (começando do zero) em um identificador alfabético curto: `0` → `'a'`, `25` → `'z'`, `26` → `'aa'`, etc. |
97
+ | `buildNestedRenameMapFromContent` | Constrói recursivamente um `NestedRenameMap` a partir do valor do conteúdo de um dicionário compilado, respeitando as estruturas de nós do Intlayer (translation, enumeration, etc.). |
98
+ | `createPruneContext` | Cria um novo objeto `PruneContext` vazio inicializado com valores padrão. |
99
+ | `extractScriptBlocks` | Extrai blocos `<script>` de arquivos SFC (Vue / Svelte) para análise subsequente do Babel. |
100
+ | `BABEL_PARSER_OPTIONS` | Constante que representa as opções do analisador do Babel que cobrem os frameworks suportados (React/Vue/Svelte/Angular/...). |
101
+ | `INTLAYER_CALLER_NAMES` | Lista constante de nomes de chamadores originais do Intlayer: `['useIntlayer', 'getIntlayer']`. |
102
+
103
+ ---
104
+
105
+ ## Exemplo de Uso
106
+
107
+ ```js
108
+ // babel.config.js
109
+ const {
110
+ intlayerExtractBabelPlugin,
111
+ intlayerPurgeBabelPlugin,
112
+ intlayerMinifyBabelPlugin,
113
+ intlayerOptimizeBabelPlugin,
114
+ getExtractPluginOptions,
115
+ getPurgePluginOptions,
116
+ getMinifyPluginOptions,
117
+ getOptimizePluginOptions,
118
+ } = require("@intlayer/babel");
119
+
120
+ module.exports = {
121
+ presets: ["next/babel"],
122
+ plugins: [
123
+ [intlayerExtractBabelPlugin, getExtractPluginOptions()],
124
+ [intlayerPurgeBabelPlugin, getPurgePluginOptions()],
125
+ [intlayerMinifyBabelPlugin, getMinifyPluginOptions()],
126
+ [intlayerOptimizeBabelPlugin, getOptimizePluginOptions()],
127
+ ],
128
+ };
129
+ ```
130
+
131
+ > **Nota:** O plugin `intlayerPurgeBabelPlugin` deve ser declarado **antes** do `intlayerMinifyBabelPlugin`, porque o último lê o mapa de renomeação construído pelo primeiro. Além disso, ambos devem ser precedidos pelo `intlayerOptimizeBabelPlugin` para que ele possa ver as chaves do dicionário antes que as chamadas do `useIntlayer` sejam reescritas.
@@ -0,0 +1,120 @@
1
+ ---
2
+ createdAt: 2026-06-25
3
+ updatedAt: 2026-06-25
4
+ title: Documentação do plugin Vite intlayerCompiler | vite-intlayer
5
+ description: Plugin do Vite que extrai declarações de conteúdo embutidas do Intlayer de arquivos de componentes e as grava em arquivos JSON de dicionário no momento da compilação/transformação.
6
+ keywords:
7
+ - intlayerCompiler
8
+ - vite
9
+ - plugin
10
+ - compilador
11
+ - conteúdo
12
+ - dicionário
13
+ - internacionalização
14
+ - i18n
15
+ slugs:
16
+ - doc
17
+ - packages
18
+ - vite-intlayer
19
+ - intlayerCompiler
20
+ history:
21
+ - version: 9.0.0
22
+ date: 2026-06-25
23
+ changes: "Integrado no intlayer(); inicialização da doc"
24
+ author: aymericzip
25
+ ---
26
+
27
+ # intlayerCompiler
28
+
29
+ O `intlayerCompiler` é um plugin do Vite que varre os arquivos de código-fonte dos componentes em busca de **declarações de conteúdo embutidas do Intlayer** — conteúdo definido diretamente dentro de um componente, em vez de em um arquivo `.content.ts` separado — e as grava em arquivos JSON de dicionário durante a fase de transformação.
30
+
31
+ > **A partir do Intlayer v9**, o `intlayerCompiler` é incluído automaticamente dentro do plugin principal [`intlayer()`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/vite-intlayer/intlayer.md) quando `compiler.enabled` é `true` e `compiler.output` está configurado nas suas configurações do Intlayer. Você só precisa registrá-lo separadamente quando desejar controle total sobre as configurações específicas do compilador.
32
+
33
+ ## Uso
34
+
35
+ ### Como parte do `intlayer()` (recomendado, v9+)
36
+
37
+ Ative o compilador através das configurações do Intlayer:
38
+
39
+ ```ts
40
+ // intlayer.config.ts
41
+ import { defineConfig } from "intlayer";
42
+
43
+ export default defineConfig({
44
+ compiler: {
45
+ enabled: true,
46
+ output: "./src/dictionaries", // onde os dicionários extraídos são gravados
47
+ },
48
+ });
49
+ ```
50
+
51
+ Em seguida, use o plugin padrão sem nenhum registro adicional:
52
+
53
+ ```ts
54
+ // vite.config.ts
55
+ import { defineConfig } from "vite";
56
+ import { intlayer } from "vite-intlayer";
57
+
58
+ export default defineConfig({
59
+ plugins: [intlayer()],
60
+ });
61
+ ```
62
+
63
+ ### Standalone (quando necessário)
64
+
65
+ ```ts
66
+ // vite.config.ts
67
+ import { defineConfig } from "vite";
68
+ import { intlayerCompiler } from "vite-intlayer";
69
+
70
+ export default defineConfig({
71
+ plugins: [intlayerCompiler()],
72
+ });
73
+ ```
74
+
75
+ ## Opções
76
+
77
+ ```ts
78
+ import type { IntlayerCompilerOptions } from "vite-intlayer";
79
+ ```
80
+
81
+ | Opção | Tipo | Descrição |
82
+ | ---------------- | ------------------------- | ----------------------------------------------------------------------------------------------------------- |
83
+ | `configOptions` | `GetConfigurationOptions` | Substituições de configuração do Intlayer encaminhadas para `getConfiguration()`. |
84
+ | `compilerConfig` | `Partial<CompilerConfig>` | Substituições para a seção de configuração específica do compilador (ex: `enabled`, `output`, `filesList`). |
85
+
86
+ ### Exemplo
87
+
88
+ ```ts
89
+ intlayerCompiler({
90
+ configOptions: { configFile: "./config/intlayer.config.ts" },
91
+ compilerConfig: { enabled: true, output: "./src/dictionaries" },
92
+ });
93
+ ```
94
+
95
+ ## Como funciona
96
+
97
+ ### Fase de transformação
98
+
99
+ Para cada arquivo fonte que corresponda a `compiler.filesList`, o plugin do compilador:
100
+
101
+ 1. Passa o conteúdo do arquivo através de `extractContent` do `@intlayer/babel`.
102
+ 2. Chama `onExtract` para cada declaração encontrada, gravando o JSON do dicionário resultante em `compiler.output`.
103
+ 3. Retorna o código-fonte transformado com as declarações embutidas substituídas por chamadas padrão `useIntlayer('key')` / `getIntlayer('key')`.
104
+
105
+ Tipos de arquivos suportados: `.ts`, `.tsx`, `.js`, `.jsx`, `.vue`, `.svelte`, `.astro`.
106
+
107
+ ### HMR (Hot Module Replacement)
108
+
109
+ Quando um arquivo de componente é salvo no modo de desenvolvimento, o compilador:
110
+
111
+ 1. Detecta a alteração do arquivo por meio do gancho (hook) `handleHotUpdate` do Vite.
112
+ 2. Extrai novamente o conteúdo do arquivo atualizado.
113
+ 3. Grava o JSON do dicionário atualizado.
114
+ 4. Dispara uma atualização completa da página (`server.ws.send({ type: 'full-reload' })`).
115
+
116
+ Um debounce de 500 ms impede que a gravação do dicionário em si (que também dispara um evento de alteração de arquivo) cause um loop infinito de extração.
117
+
118
+ ### Eliminação de duplicatas (Deduplicação)
119
+
120
+ O `intlayerCompiler` usa o mesmo mecanismo de deduplicação `createPrimaryInstanceGuard` que os outros plugins integrados. Quando tanto `intlayer()` (que empacota o compilador) quanto uma chamada manual ao `intlayerCompiler()` estão presentes, apenas a primeira instância registrada é executada — nenhum dicionário é gravado duas vezes.
@@ -0,0 +1,92 @@
1
+ ---
2
+ createdAt: 2026-06-25
3
+ updatedAt: 2026-06-25
4
+ title: Documentação do plugin Vite intlayerMinify | vite-intlayer
5
+ description: Plugin do Vite que minifica os arquivos JSON de dicionário compilados do Intlayer e, opcionalmente, ofusca os nomes dos campos de conteúdo para reduzir o tamanho do bundle.
6
+ keywords:
7
+ - intlayerMinify
8
+ - vite
9
+ - plugin
10
+ - minificar
11
+ - tamanho do bundle
12
+ - dicionário
13
+ - internacionalização
14
+ - i18n
15
+ slugs:
16
+ - doc
17
+ - packages
18
+ - vite-intlayer
19
+ - intlayerMinify
20
+ history:
21
+ - version: 9.0.0
22
+ date: 2026-06-25
23
+ changes: "Inicialização da doc"
24
+ author: aymericzip
25
+ ---
26
+
27
+ # intlayerMinify
28
+
29
+ O `intlayerMinify` é um plugin do Vite que minifica arquivos JSON de dicionário compilados durante um build de produção. Ele remove todos os espaços em branco desnecessários e, quando combinado com o `intlayerPrune`, opcionalmente renomeia os nomes dos campos de conteúdo para apelidos (aliases) alfabéticos curtos (`a`, `b`, `c`, …) para reduzir ainda mais o tamanho do bundle.
30
+
31
+ > O plugin já está incluído e configurado automaticamente quando você usa o [`intlayer()`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/vite-intlayer/intlayer.md). Você só precisa registrá-lo manualmente se estiver compondo a pilha de plugins por conta própria.
32
+
33
+ ## Uso
34
+
35
+ ```ts
36
+ // vite.config.ts
37
+ import { defineConfig } from "vite";
38
+ import { intlayerMinify, intlayerPrune } from "vite-intlayer";
39
+ import { createPruneContext } from "@intlayer/babel";
40
+
41
+ const pruneContext = createPruneContext();
42
+
43
+ export default defineConfig({
44
+ plugins: [
45
+ intlayerPrune(intlayerConfig, pruneContext),
46
+ intlayerMinify(intlayerConfig, pruneContext),
47
+ ],
48
+ });
49
+ ```
50
+
51
+ ## Condições de ativação
52
+
53
+ O `intlayerMinify` fica ativo **apenas** quando todas as três condições a seguir forem verdadeiras:
54
+
55
+ 1. O comando do Vite é `build` (não `serve` / dev).
56
+ 2. `build.optimize` é `true` (ou `undefined`, que assume o padrão `true` para builds).
57
+ 3. `build.minify` é `true` na sua configuração do Intlayer.
58
+
59
+ Ele é desativado automaticamente quando `editor.enabled` é `true` porque o editor precisa do conteúdo do dicionário completo e legível por humanos.
60
+
61
+ ## O que é minificado
62
+
63
+ O plugin tem como alvo dois locais de dicionário (conforme resolvido a partir de `intlayer.system`):
64
+
65
+ - `dictionariesDir` — dicionários estáticos de todos os idiomas (ex: `.intlayer/dictionaries/*.json`)
66
+ - `dynamicDictionariesDir` — dicionários dinâmicos por idioma
67
+
68
+ > Os dicionários no modo fetch (`fetchDictionariesDir`) **nunca** são minificados porque são servidos a partir de uma API remota em tempo de execução usando seus nomes de campo originais. Renomear os campos criaria uma incompatibilidade entre a resposta do servidor e os acessos às propriedades no lado do cliente.
69
+
70
+ ## Ofuscação de nomes de campos (minificação de propriedades)
71
+
72
+ Quando o `intlayerPrune` analisa o código-fonte e preenche `pruneContext.dictionaryKeyToFieldRenameMap`, o `intlayerMinify` também renomeia os nomes dos campos de conteúdo para aliases curtos. Por exemplo:
73
+
74
+ ```json
75
+ // antes
76
+ { "key": "myDict", "content": { "title": "Hello", "description": "World" } }
77
+
78
+ // depois (com ofuscação)
79
+ { "key": "myDict", "content": { "a": "Hello", "b": "World" } }
80
+ ```
81
+
82
+ Os acessos correspondentes às propriedades do arquivo fonte são renomeados pela passagem do Babel dentro do `intlayerOptimize`, de modo que o comportamento em tempo de execução permanece inalterado.
83
+
84
+ Campos internos do Intlayer (`nodeType`, `translation`, etc.) nunca são renomeados.
85
+
86
+ ## Dicionários de casos extremos (Edge-cases)
87
+
88
+ Dicionários sinalizados em `pruneContext.dictionariesWithEdgeCases` (anomalias estruturais detectadas durante a fase de eliminação) são ignorados inteiramente — não são minificados nem ofuscados — para evitar o envio de dados corrompidos.
89
+
90
+ ## Grupos qualificados (coleções / variantes / registros meta)
91
+
92
+ Para dicionários com uma matriz `qualifierTypes` (coleções, variantes e registros meta), o plugin preserva a matriz `qualifierTypes` e o mapa lateral `meta` literalmente. Apenas as entradas de `content` têm seus nomes de campo ofuscados. As chaves compostas (usadas para correspondência de seletores em tempo de execução) nunca são tocadas.
@@ -0,0 +1,172 @@
1
+ ---
2
+ createdAt: 2026-06-25
3
+ updatedAt: 2026-06-25
4
+ title: Documentação do plugin Vite intlayerProxy | vite-intlayer
5
+ description: Middleware de roteamento de idioma para servidores dev/preview do Vite e SSR de produção. Lida com detecção de idioma, redirecionamentos de URL e reescritas internas.
6
+ keywords:
7
+ - intlayerProxy
8
+ - vite
9
+ - plugin
10
+ - middleware
11
+ - idioma
12
+ - roteamento
13
+ - internacionalização
14
+ - i18n
15
+ - SSR
16
+ slugs:
17
+ - doc
18
+ - packages
19
+ - vite-intlayer
20
+ - intlayerProxy
21
+ history:
22
+ - version: 9.0.0
23
+ date: 2026-06-25
24
+ changes: "Mesclado configOptions em um único objeto de opções; proxy empacotado no intlayer()"
25
+ author: aymericzip
26
+ ---
27
+
28
+ # intlayerProxy
29
+
30
+ O `intlayerProxy` é um plugin do Vite que registra o middleware de roteamento de idioma para **todos os ambientes**: servidor de desenvolvimento (dev server), servidor de visualização (preview server) e SSR de produção (Nitro / TanStack Start).
31
+
32
+ > **A partir do Intlayer v9**, o `intlayerProxy` é incluído automaticamente dentro do plugin principal [`intlayer()`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/vite-intlayer/intlayer.md) e ativado por padrão via `routing.enableProxy: true`. Você só precisa registrá-lo separadamente se precisar de controle de nível mais baixo ou se estiver usando-o fora da configuração padrão do `intlayer()`.
33
+
34
+ ## Uso
35
+
36
+ ### Como parte do `intlayer()` (recomendado, v9+)
37
+
38
+ Passe as opções do `proxy` para o plugin principal em vez de registrar o `intlayerProxy` separadamente:
39
+
40
+ ```ts
41
+ // vite.config.ts
42
+ import { defineConfig } from "vite";
43
+ import { intlayer } from "vite-intlayer";
44
+
45
+ export default defineConfig({
46
+ plugins: [
47
+ intlayer({
48
+ proxy: {
49
+ ignore: (req) => req.url?.startsWith("/api"),
50
+ },
51
+ }),
52
+ ],
53
+ });
54
+ ```
55
+
56
+ ### Standalone (quando necessário)
57
+
58
+ ```ts
59
+ // vite.config.ts
60
+ import { defineConfig } from "vite";
61
+ import { intlayer } from "vite-intlayer";
62
+
63
+ export default defineConfig({
64
+ plugins: [intlayer()],
65
+ });
66
+ ```
67
+
68
+ ## Opções
69
+
70
+ ```ts
71
+ import type { IntlayerProxyPluginOptions } from "vite-intlayer";
72
+ ```
73
+
74
+ Todas as opções são opcionais e passadas como um único objeto:
75
+
76
+ | Opção | Tipo | Descrição |
77
+ | --------------- | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
78
+ | `ignore` | `(req: IncomingMessage) => boolean` | Predicado que exclui requisições do roteamento de idioma. Retorne `true` para ignorar uma requisição (ex: rotas de API, verificações de integridade). |
79
+ | `configOptions` | `GetConfigurationOptions` | Substituições de configuração do Intlayer encaminhadas para `getConfiguration()`. Use quando precisar que o proxy leia um arquivo de configuração específico ou substitua valores. |
80
+
81
+ ### Exemplo
82
+
83
+ ```ts
84
+ intlayerProxy({
85
+ ignore: (req) => req.url?.startsWith("/api"),
86
+ configOptions: { configFile: "./config/intlayer.config.ts" },
87
+ });
88
+ ```
89
+
90
+ ## createIntlayerProxyHandler
91
+
92
+ O `createIntlayerProxyHandler` cria um middleware Node.js `(req, res, next)` independente de framework que contém toda a lógica de roteamento de idioma. É útil em ambientes onde a API do plugin do Vite não está disponível (ex: um servidor Node.js simples ou um módulo Nitro personalizado).
93
+
94
+ ```ts
95
+ import { createIntlayerProxyHandler } from "vite-intlayer";
96
+
97
+ const handler = createIntlayerProxyHandler({
98
+ ignore: (req) => req.url?.startsWith("/api"),
99
+ configOptions: { configFile: "./config/intlayer.config.ts" },
100
+ });
101
+
102
+ // Express / Connect
103
+ app.use(handler);
104
+ ```
105
+
106
+ ### SSR de Produção (TanStack Start / Nitro via h3)
107
+
108
+ ```ts
109
+ // server/middleware/intlayerProxy.ts
110
+ import { fromNodeMiddleware } from "h3";
111
+ import { createIntlayerProxyHandler } from "vite-intlayer";
112
+
113
+ export default fromNodeMiddleware(
114
+ createIntlayerProxyHandler({
115
+ ignore: (req) => req.url?.startsWith("/api"),
116
+ })
117
+ );
118
+ ```
119
+
120
+ ## Comportamento de roteamento
121
+
122
+ O middleware espelha a lógica de roteamento do middleware `next-intlayer` e suporta todos os modos de roteamento do Intlayer.
123
+
124
+ ### Modos de roteamento
125
+
126
+ | Modo | URL visível no navegador | Comportamento |
127
+ | --------------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
128
+ | `prefix` | `/pt/about` | Padrão. Prefixo de idioma na URL. O idioma padrão redireciona para a URL sem prefixo, a menos que `prefix-all` esteja ativo. |
129
+ | `prefix-all` | `/en/about`, `/pt/about` | Todos os idiomas — incluindo o padrão — são sempre prefixados. |
130
+ | `no-prefix` | `/about` | Sem idioma na URL. O idioma é armazenado apenas em cookies; as reescritas de URL ocorrem internamente. |
131
+ | `search-params` | `/about?locale=pt` | Idioma passado como um parâmetro de consulta. Redireciona para adicionar/atualizar o parâmetro `locale` quando ausente ou desatualizado. |
132
+
133
+ ### Prioridade de detecção
134
+
135
+ 1. Prefixo do caminho da URL (ex: `/pt/about` → `pt`).
136
+ 2. Valor do cookie / localStorage (`intlayer-locale`).
137
+ 3. Cabeçalho `Accept-Language`.
138
+ 4. `defaultLocale` da configuração.
139
+
140
+ ### Desvio automático (Bypass)
141
+
142
+ O middleware sempre passa essas requisições diretamente sem manipulação de idioma:
143
+
144
+ - Requisições que correspondem ao predicado `ignore`.
145
+ - `/node_modules/**`
146
+ - `/@**` – Recursos internos do Vite (`@vite/`, `@fs/`, `@id/`, etc.).
147
+ - `/_**` – Recursos internos do servidor (`__vite_ping`, `__manifest`, etc.).
148
+ - Requisições cujo caminho termina com uma extensão de arquivo (recursos estáticos). Se um prefixo de idioma estiver presente em um caminho de recurso estático (ex: `/pt/logo.png`), ele será removido para que o arquivo possa ser servido corretamente.
149
+
150
+ ### Roteamento por domínio
151
+
152
+ Quando `routing.domains` está configurado nas suas configurações do Intlayer, o middleware lida com o roteamento de idioma entre domínios:
153
+
154
+ - Uma requisição para `/zh/about` em `intlayer.org` é redirecionada para `https://intlayer.zh/about` quando `domains.zh = "intlayer.zh"`.
155
+ - Uma requisição para `intlayer.zh/about` é reescrita internamente para `/zh/about` para que o parâmetro de rota `[locale]` seja preenchido.
156
+
157
+ ### Proteção contra loops de redirecionamento
158
+
159
+ O middleware rastreia as contagens de redirecionamento por par `originalUrl → newUrl` dentro de uma janela deslizante de 2 segundos. Mais de 10 redirecionamentos dentro dessa janela retornam uma resposta `500` com um erro descritivo em vez de entrar em loop eterno.
160
+
161
+ ## Nitro / SSR de produção (injeção automática, v9+)
162
+
163
+ Quando o `intlayerProxy` é usado como um plugin do Vite, ele carrega uma propriedade `.nitro`. O plugin de compilação `nitro/vite` lê esta propriedade e a insere em `nitroConfig.modules`, de modo que o `intlayerNitroHandler` é registrado como um middleware do servidor Nitro automaticamente — nenhuma configuração manual é necessária para o SSR de produção.
164
+
165
+ O manipulador Nitro usa o modelo de evento Web Fetch API da h3 v2 (não o `fromNodeMiddleware`), por isso é compatível com todas as predefinições do Nitro: Node, Bun, Deno, runtimes edge.
166
+
167
+ ## Aliases depreciados
168
+
169
+ | Exportação depreciada | Substituição |
170
+ | -------------------------- | --------------- |
171
+ | `intlayerMiddleware` | `intlayerProxy` |
172
+ | `intLayerMiddlewarePlugin` | `intlayerProxy` |
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2026-06-14
3
- updatedAt: 2026-06-23
3
+ updatedAt: 2026-06-25
4
4
  title: Novo Intlayer v9 - O que há de novo?
5
5
  description: Descubra o que há de novo no Intlayer v9. Apresentando pacotes de compatibilidade drop-in para bibliotecas i18n populares e suporte para Collections, Variants e Dynamic Records.
6
6
  keywords:
@@ -252,6 +252,28 @@ Os plugins standalone `intlayerCompiler()` e `intlayerProxy()` permanecem export
252
252
 
253
253
  ---
254
254
 
255
+ ## React Native: importações de um único pacote
256
+
257
+ Em um aplicativo React Native ou Expo, você não precisa mais alternar entre `react-intlayer` e `react-native-intlayer`. O pacote `react-native-intlayer` agora **reexporta toda a API do `react-intlayer`** (hooks, utilitários e os subcaminhos `/format`, `/html` e `/markdown`), e seu `IntlayerProvider` aplica automaticamente os polyfills do React Native.
258
+
259
+ Importe tudo do único pacote `react-native-intlayer`:
260
+
261
+ ```tsx
262
+ import {
263
+ IntlayerProvider,
264
+ useIntlayer,
265
+ useLocale,
266
+ } from "react-native-intlayer";
267
+ ```
268
+
269
+ ```bash
270
+ npm install intlayer react-native-intlayer
271
+ ```
272
+
273
+ > Importar do `react-intlayer` continua funcionando, mas `react-native-intlayer` agora é o ponto de entrada único recomendado para React Native — seu provider inclui os polyfills que o provider do `react-intlayer` (orientado para web) não possui.
274
+
275
+ ---
276
+
255
277
  ## Notas de migração da v8
256
278
 
257
279
  Se você estiver atualizando da v8, observe que a v9 não inclui breaking changes. Mas aqui estão as principais mudanças:
@@ -81,12 +81,15 @@ npm install vite-intlayer
81
81
 
82
82
  ```ts fileName="vite.config.ts"
83
83
  import { defineConfig } from "vite";
84
- import { intlayer, intlayerCompiler } from "vite-intlayer";
84
+ import { intlayer } from "vite-intlayer";
85
85
 
86
86
  export default defineConfig({
87
87
  plugins: [
88
- intlayer(),
89
- intlayerCompiler(), // Добавляет плагин компилятора
88
+ intlayer({
89
+ proxy: {
90
+ ignore: (req) => req.url?.startsWith("/api"),
91
+ },
92
+ }),
90
93
  ],
91
94
  });
92
95
  ```
@@ -172,10 +172,16 @@ GET intlayer.zh/about
172
172
 
173
173
  ```typescript fileName="vite.config.ts"
174
174
  import { defineConfig } from "vite";
175
- import { intlayerProxy } from "vite-intlayer";
175
+ import { intlayer } from "vite-intlayer";
176
176
 
177
177
  export default defineConfig({
178
- plugins: [intlayerProxy()],
178
+ plugins: [
179
+ intlayer({
180
+ proxy: {
181
+ ignore: (req) => req.url?.startsWith("/api"),
182
+ },
183
+ }),
184
+ ],
179
185
  });
180
186
  ```
181
187
 
@@ -340,10 +340,16 @@ export function middleware(request: NextRequest) {
340
340
 
341
341
  ```typescript fileName="vite.config.ts"
342
342
  import { defineConfig } from "vite";
343
- import { intlayerProxy } from "vite-intlayer";
343
+ import { intlayer } from "vite-intlayer";
344
344
 
345
345
  export default defineConfig({
346
- plugins: [intlayerProxy()],
346
+ plugins: [
347
+ intlayer({
348
+ proxy: {
349
+ ignore: (req) => req.url?.startsWith("/api"),
350
+ },
351
+ }),
352
+ ],
347
353
  });
348
354
  ```
349
355
 
@@ -207,7 +207,11 @@ import analog from "@analogjs/platform";
207
207
  export default defineConfig(() => ({
208
208
  plugins: [
209
209
  analog(),
210
- intlayer(), // Добавьте плагин Intlayer
210
+ intlayer({
211
+ proxy: {
212
+ ignore: (req) => req.url?.startsWith("/api"),
213
+ },
214
+ }),
211
215
  ],
212
216
  }));
213
217
  ```