@intlayer/docs 9.0.0-canary.5 → 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 (660) 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 +62 -80
  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/react-native-intlayer/exports.md +48 -14
  39. package/docs/ar/packages/vite-intlayer/intlayerCompiler.md +120 -0
  40. package/docs/ar/packages/vite-intlayer/intlayerMinify.md +92 -0
  41. package/docs/ar/packages/vite-intlayer/intlayerProxy.md +172 -0
  42. package/docs/ar/releases/v9.md +45 -1
  43. package/docs/bn/custom_domains.md +8 -2
  44. package/docs/bn/intlayer_with_storybook.md +7 -1
  45. package/docs/bn/intlayer_with_vite+lit.md +8 -2
  46. package/docs/bn/intlayer_with_vite+vanilla.md +16 -5
  47. package/docs/cs/custom_domains.md +8 -2
  48. package/docs/cs/intlayer_with_storybook.md +7 -1
  49. package/docs/cs/intlayer_with_vite+lit.md +8 -2
  50. package/docs/cs/intlayer_with_vite+vanilla.md +16 -5
  51. package/docs/de/compiler.md +6 -3
  52. package/docs/de/custom_domains.md +8 -2
  53. package/docs/de/custom_url_rewrites.md +8 -2
  54. package/docs/de/intlayer_with_analog.md +5 -1
  55. package/docs/de/intlayer_with_astro.md +3 -1
  56. package/docs/de/intlayer_with_astro_lit.md +3 -1
  57. package/docs/de/intlayer_with_astro_preact.md +3 -1
  58. package/docs/de/intlayer_with_astro_react.md +3 -1
  59. package/docs/de/intlayer_with_astro_solid.md +3 -1
  60. package/docs/de/intlayer_with_astro_svelte.md +3 -1
  61. package/docs/de/intlayer_with_astro_vanilla.md +3 -1
  62. package/docs/de/intlayer_with_astro_vue.md +3 -1
  63. package/docs/de/intlayer_with_lynx+react.md +6 -1
  64. package/docs/de/intlayer_with_nextjs_16.md +2 -0
  65. package/docs/de/intlayer_with_nextjs_compiler.md +2 -0
  66. package/docs/de/intlayer_with_react_native+expo.md +56 -69
  67. package/docs/de/intlayer_with_react_router_v7.md +3 -1
  68. package/docs/de/intlayer_with_react_router_v7_fs_routes.md +8 -3
  69. package/docs/de/intlayer_with_storybook.md +7 -1
  70. package/docs/de/intlayer_with_svelte_kit.md +9 -4
  71. package/docs/de/intlayer_with_tanstack+solid.md +18 -11
  72. package/docs/de/intlayer_with_tanstack.md +17 -8
  73. package/docs/de/intlayer_with_vite+lit.md +13 -4
  74. package/docs/de/intlayer_with_vite+preact.md +3 -1
  75. package/docs/de/intlayer_with_vite+react.md +9 -4
  76. package/docs/de/intlayer_with_vite+react_compiler.md +9 -2
  77. package/docs/de/intlayer_with_vite+solid.md +3 -1
  78. package/docs/de/intlayer_with_vite+svelte.md +9 -4
  79. package/docs/de/intlayer_with_vite+vanilla.md +16 -5
  80. package/docs/de/intlayer_with_vite+vue.md +9 -4
  81. package/docs/de/packages/@intlayer_babel/export.md +131 -0
  82. package/docs/de/packages/react-native-intlayer/exports.md +47 -13
  83. package/docs/de/packages/vite-intlayer/intlayerCompiler.md +120 -0
  84. package/docs/de/packages/vite-intlayer/intlayerMinify.md +92 -0
  85. package/docs/de/packages/vite-intlayer/intlayerProxy.md +172 -0
  86. package/docs/de/releases/v9.md +23 -1
  87. package/docs/en/compiler.md +5 -1
  88. package/docs/en/custom_domains.md +8 -2
  89. package/docs/en/custom_url_rewrites.md +8 -2
  90. package/docs/en/intlayer_with_analog.md +5 -1
  91. package/docs/en/intlayer_with_astro.md +2 -2
  92. package/docs/en/intlayer_with_astro_lit.md +2 -2
  93. package/docs/en/intlayer_with_astro_preact.md +2 -2
  94. package/docs/en/intlayer_with_astro_react.md +2 -2
  95. package/docs/en/intlayer_with_astro_solid.md +2 -2
  96. package/docs/en/intlayer_with_astro_svelte.md +2 -2
  97. package/docs/en/intlayer_with_astro_vanilla.md +2 -2
  98. package/docs/en/intlayer_with_astro_vue.md +2 -2
  99. package/docs/en/intlayer_with_lynx+react.md +6 -1
  100. package/docs/en/intlayer_with_nextjs_16.md +2 -0
  101. package/docs/en/intlayer_with_nextjs_compiler.md +2 -0
  102. package/docs/en/intlayer_with_react_native+expo.md +20 -19
  103. package/docs/en/intlayer_with_react_router_v7.md +8 -3
  104. package/docs/en/intlayer_with_react_router_v7_fs_routes.md +8 -3
  105. package/docs/en/intlayer_with_storybook.md +7 -1
  106. package/docs/en/intlayer_with_svelte_kit.md +8 -5
  107. package/docs/en/intlayer_with_tanstack+solid.md +18 -9
  108. package/docs/en/intlayer_with_tanstack.md +16 -7
  109. package/docs/en/intlayer_with_vite+lit.md +13 -4
  110. package/docs/en/intlayer_with_vite+preact.md +8 -3
  111. package/docs/en/intlayer_with_vite+react.md +8 -3
  112. package/docs/en/intlayer_with_vite+react_compiler.md +9 -2
  113. package/docs/en/intlayer_with_vite+solid.md +8 -3
  114. package/docs/en/intlayer_with_vite+svelte.md +8 -3
  115. package/docs/en/intlayer_with_vite+vanilla.md +15 -6
  116. package/docs/en/intlayer_with_vite+vue.md +8 -3
  117. package/docs/en/packages/@intlayer_babel/export.md +131 -0
  118. package/docs/en/packages/react-native-intlayer/exports.md +47 -13
  119. package/docs/en/packages/vite-intlayer/exports.md +38 -13
  120. package/docs/en/packages/vite-intlayer/intlayer.md +133 -14
  121. package/docs/en/packages/vite-intlayer/intlayerCompiler.md +120 -0
  122. package/docs/en/packages/vite-intlayer/intlayerMinify.md +92 -0
  123. package/docs/en/packages/vite-intlayer/intlayerProxy.md +172 -0
  124. package/docs/en/packages/vite-intlayer/intlayerPrune.md +90 -12
  125. package/docs/en/releases/v9.md +25 -1
  126. package/docs/en-GB/compiler.md +6 -3
  127. package/docs/en-GB/custom_domains.md +8 -2
  128. package/docs/en-GB/custom_url_rewrites.md +8 -2
  129. package/docs/en-GB/intlayer_with_analog.md +5 -1
  130. package/docs/en-GB/intlayer_with_astro.md +2 -0
  131. package/docs/en-GB/intlayer_with_astro_lit.md +2 -0
  132. package/docs/en-GB/intlayer_with_astro_preact.md +2 -0
  133. package/docs/en-GB/intlayer_with_astro_react.md +2 -0
  134. package/docs/en-GB/intlayer_with_astro_solid.md +2 -0
  135. package/docs/en-GB/intlayer_with_astro_svelte.md +2 -0
  136. package/docs/en-GB/intlayer_with_astro_vanilla.md +2 -0
  137. package/docs/en-GB/intlayer_with_astro_vue.md +2 -0
  138. package/docs/en-GB/intlayer_with_lynx+react.md +6 -1
  139. package/docs/en-GB/intlayer_with_react_native+expo.md +46 -95
  140. package/docs/en-GB/intlayer_with_react_router_v7.md +6 -3
  141. package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +6 -3
  142. package/docs/en-GB/intlayer_with_storybook.md +7 -1
  143. package/docs/en-GB/intlayer_with_svelte_kit.md +6 -3
  144. package/docs/en-GB/intlayer_with_tanstack+solid.md +18 -11
  145. package/docs/en-GB/intlayer_with_tanstack.md +14 -7
  146. package/docs/en-GB/intlayer_with_vite+lit.md +13 -4
  147. package/docs/en-GB/intlayer_with_vite+react.md +6 -3
  148. package/docs/en-GB/intlayer_with_vite+react_compiler.md +9 -2
  149. package/docs/en-GB/intlayer_with_vite+svelte.md +6 -3
  150. package/docs/en-GB/intlayer_with_vite+vanilla.md +15 -4
  151. package/docs/en-GB/intlayer_with_vite+vue.md +6 -3
  152. package/docs/en-GB/packages/@intlayer_babel/export.md +131 -0
  153. package/docs/en-GB/packages/react-native-intlayer/exports.md +51 -18
  154. package/docs/en-GB/packages/vite-intlayer/intlayerCompiler.md +120 -0
  155. package/docs/en-GB/packages/vite-intlayer/intlayerMinify.md +92 -0
  156. package/docs/en-GB/packages/vite-intlayer/intlayerProxy.md +172 -0
  157. package/docs/en-GB/releases/v9.md +23 -1
  158. package/docs/es/compiler.md +6 -3
  159. package/docs/es/custom_domains.md +8 -2
  160. package/docs/es/custom_url_rewrites.md +8 -2
  161. package/docs/es/intlayer_with_analog.md +5 -1
  162. package/docs/es/intlayer_with_astro.md +3 -1
  163. package/docs/es/intlayer_with_astro_lit.md +3 -1
  164. package/docs/es/intlayer_with_astro_preact.md +3 -1
  165. package/docs/es/intlayer_with_astro_react.md +3 -1
  166. package/docs/es/intlayer_with_astro_solid.md +3 -1
  167. package/docs/es/intlayer_with_astro_svelte.md +3 -1
  168. package/docs/es/intlayer_with_astro_vanilla.md +3 -1
  169. package/docs/es/intlayer_with_astro_vue.md +3 -1
  170. package/docs/es/intlayer_with_lynx+react.md +6 -1
  171. package/docs/es/intlayer_with_nextjs_16.md +2 -0
  172. package/docs/es/intlayer_with_nextjs_compiler.md +2 -0
  173. package/docs/es/intlayer_with_react_native+expo.md +49 -81
  174. package/docs/es/intlayer_with_react_router_v7.md +3 -1
  175. package/docs/es/intlayer_with_react_router_v7_fs_routes.md +9 -4
  176. package/docs/es/intlayer_with_storybook.md +7 -1
  177. package/docs/es/intlayer_with_svelte_kit.md +9 -4
  178. package/docs/es/intlayer_with_tanstack+solid.md +18 -11
  179. package/docs/es/intlayer_with_tanstack.md +17 -8
  180. package/docs/es/intlayer_with_vite+lit.md +13 -4
  181. package/docs/es/intlayer_with_vite+preact.md +3 -1
  182. package/docs/es/intlayer_with_vite+react.md +9 -4
  183. package/docs/es/intlayer_with_vite+react_compiler.md +9 -2
  184. package/docs/es/intlayer_with_vite+solid.md +3 -1
  185. package/docs/es/intlayer_with_vite+svelte.md +4 -2
  186. package/docs/es/intlayer_with_vite+vanilla.md +16 -5
  187. package/docs/es/intlayer_with_vite+vue.md +9 -4
  188. package/docs/es/packages/@intlayer_babel/export.md +131 -0
  189. package/docs/es/packages/react-native-intlayer/exports.md +47 -13
  190. package/docs/es/packages/vite-intlayer/intlayerCompiler.md +120 -0
  191. package/docs/es/packages/vite-intlayer/intlayerMinify.md +92 -0
  192. package/docs/es/packages/vite-intlayer/intlayerProxy.md +172 -0
  193. package/docs/es/releases/v9.md +23 -1
  194. package/docs/fr/compiler.md +6 -3
  195. package/docs/fr/custom_domains.md +8 -2
  196. package/docs/fr/custom_url_rewrites.md +8 -2
  197. package/docs/fr/intlayer_with_analog.md +5 -1
  198. package/docs/fr/intlayer_with_astro.md +3 -1
  199. package/docs/fr/intlayer_with_astro_lit.md +3 -1
  200. package/docs/fr/intlayer_with_astro_preact.md +3 -1
  201. package/docs/fr/intlayer_with_astro_react.md +3 -1
  202. package/docs/fr/intlayer_with_astro_solid.md +3 -1
  203. package/docs/fr/intlayer_with_astro_svelte.md +3 -1
  204. package/docs/fr/intlayer_with_astro_vanilla.md +3 -1
  205. package/docs/fr/intlayer_with_astro_vue.md +3 -1
  206. package/docs/fr/intlayer_with_lynx+react.md +6 -1
  207. package/docs/fr/intlayer_with_nextjs_16.md +2 -0
  208. package/docs/fr/intlayer_with_nextjs_compiler.md +2 -0
  209. package/docs/fr/intlayer_with_react_native+expo.md +60 -69
  210. package/docs/fr/intlayer_with_react_router_v7.md +3 -1
  211. package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +3 -1
  212. package/docs/fr/intlayer_with_storybook.md +7 -1
  213. package/docs/fr/intlayer_with_svelte_kit.md +9 -4
  214. package/docs/fr/intlayer_with_tanstack+solid.md +18 -11
  215. package/docs/fr/intlayer_with_tanstack.md +17 -8
  216. package/docs/fr/intlayer_with_vite+lit.md +13 -4
  217. package/docs/fr/intlayer_with_vite+preact.md +3 -1
  218. package/docs/fr/intlayer_with_vite+react.md +9 -4
  219. package/docs/fr/intlayer_with_vite+react_compiler.md +9 -2
  220. package/docs/fr/intlayer_with_vite+solid.md +3 -1
  221. package/docs/fr/intlayer_with_vite+svelte.md +9 -4
  222. package/docs/fr/intlayer_with_vite+vanilla.md +16 -5
  223. package/docs/fr/intlayer_with_vite+vue.md +9 -4
  224. package/docs/fr/packages/@intlayer_babel/export.md +131 -0
  225. package/docs/fr/packages/react-native-intlayer/exports.md +47 -13
  226. package/docs/fr/packages/vite-intlayer/intlayerCompiler.md +120 -0
  227. package/docs/fr/packages/vite-intlayer/intlayerMinify.md +92 -0
  228. package/docs/fr/packages/vite-intlayer/intlayerProxy.md +172 -0
  229. package/docs/fr/releases/v9.md +23 -1
  230. package/docs/hi/compiler.md +6 -3
  231. package/docs/hi/custom_domains.md +8 -2
  232. package/docs/hi/custom_url_rewrites.md +8 -2
  233. package/docs/hi/intlayer_with_analog.md +5 -1
  234. package/docs/hi/intlayer_with_astro.md +6 -3
  235. package/docs/hi/intlayer_with_astro_lit.md +6 -3
  236. package/docs/hi/intlayer_with_astro_preact.md +6 -3
  237. package/docs/hi/intlayer_with_astro_react.md +6 -3
  238. package/docs/hi/intlayer_with_astro_solid.md +6 -3
  239. package/docs/hi/intlayer_with_astro_svelte.md +6 -3
  240. package/docs/hi/intlayer_with_astro_vanilla.md +6 -3
  241. package/docs/hi/intlayer_with_astro_vue.md +6 -3
  242. package/docs/hi/intlayer_with_lynx+react.md +6 -1
  243. package/docs/hi/intlayer_with_react_native+expo.md +96 -88
  244. package/docs/hi/intlayer_with_react_router_v7.md +6 -3
  245. package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +6 -3
  246. package/docs/hi/intlayer_with_storybook.md +7 -1
  247. package/docs/hi/intlayer_with_svelte_kit.md +12 -6
  248. package/docs/hi/intlayer_with_tanstack+solid.md +18 -11
  249. package/docs/hi/intlayer_with_tanstack.md +20 -10
  250. package/docs/hi/intlayer_with_vite+lit.md +8 -2
  251. package/docs/hi/intlayer_with_vite+preact.md +6 -3
  252. package/docs/hi/intlayer_with_vite+react.md +12 -6
  253. package/docs/hi/intlayer_with_vite+react_compiler.md +9 -2
  254. package/docs/hi/intlayer_with_vite+solid.md +6 -3
  255. package/docs/hi/intlayer_with_vite+svelte.md +7 -4
  256. package/docs/hi/intlayer_with_vite+vanilla.md +16 -5
  257. package/docs/hi/intlayer_with_vite+vue.md +12 -6
  258. package/docs/hi/packages/@intlayer_babel/export.md +131 -0
  259. package/docs/hi/packages/react-native-intlayer/exports.md +48 -14
  260. package/docs/hi/packages/vite-intlayer/intlayerCompiler.md +120 -0
  261. package/docs/hi/packages/vite-intlayer/intlayerMinify.md +92 -0
  262. package/docs/hi/packages/vite-intlayer/intlayerProxy.md +172 -0
  263. package/docs/hi/releases/v9.md +23 -1
  264. package/docs/id/compiler.md +6 -3
  265. package/docs/id/custom_domains.md +8 -2
  266. package/docs/id/custom_url_rewrites.md +8 -2
  267. package/docs/id/intlayer_with_analog.md +5 -1
  268. package/docs/id/intlayer_with_astro.md +3 -1
  269. package/docs/id/intlayer_with_astro_lit.md +3 -1
  270. package/docs/id/intlayer_with_astro_preact.md +3 -1
  271. package/docs/id/intlayer_with_astro_react.md +3 -1
  272. package/docs/id/intlayer_with_astro_solid.md +3 -1
  273. package/docs/id/intlayer_with_astro_svelte.md +3 -1
  274. package/docs/id/intlayer_with_astro_vanilla.md +3 -1
  275. package/docs/id/intlayer_with_astro_vue.md +3 -1
  276. package/docs/id/intlayer_with_lynx+react.md +6 -1
  277. package/docs/id/intlayer_with_nextjs_16.md +2 -0
  278. package/docs/id/intlayer_with_nextjs_compiler.md +2 -0
  279. package/docs/id/intlayer_with_react_native+expo.md +51 -34
  280. package/docs/id/intlayer_with_react_router_v7.md +3 -1
  281. package/docs/id/intlayer_with_react_router_v7_fs_routes.md +9 -4
  282. package/docs/id/intlayer_with_storybook.md +7 -1
  283. package/docs/id/intlayer_with_svelte_kit.md +9 -4
  284. package/docs/id/intlayer_with_tanstack+solid.md +18 -11
  285. package/docs/id/intlayer_with_tanstack.md +17 -8
  286. package/docs/id/intlayer_with_vite+lit.md +8 -2
  287. package/docs/id/intlayer_with_vite+preact.md +3 -1
  288. package/docs/id/intlayer_with_vite+react.md +9 -4
  289. package/docs/id/intlayer_with_vite+react_compiler.md +9 -2
  290. package/docs/id/intlayer_with_vite+solid.md +3 -1
  291. package/docs/id/intlayer_with_vite+svelte.md +5 -3
  292. package/docs/id/intlayer_with_vite+vanilla.md +16 -5
  293. package/docs/id/intlayer_with_vite+vue.md +9 -4
  294. package/docs/id/packages/@intlayer_babel/export.md +131 -0
  295. package/docs/id/packages/react-native-intlayer/exports.md +47 -13
  296. package/docs/id/packages/vite-intlayer/intlayerCompiler.md +120 -0
  297. package/docs/id/packages/vite-intlayer/intlayerMinify.md +92 -0
  298. package/docs/id/packages/vite-intlayer/intlayerProxy.md +172 -0
  299. package/docs/id/releases/v9.md +23 -1
  300. package/docs/it/compiler.md +6 -3
  301. package/docs/it/custom_domains.md +8 -2
  302. package/docs/it/custom_url_rewrites.md +8 -2
  303. package/docs/it/intlayer_with_analog.md +5 -1
  304. package/docs/it/intlayer_with_astro.md +3 -1
  305. package/docs/it/intlayer_with_astro_lit.md +3 -1
  306. package/docs/it/intlayer_with_astro_preact.md +3 -1
  307. package/docs/it/intlayer_with_astro_react.md +3 -1
  308. package/docs/it/intlayer_with_astro_solid.md +3 -1
  309. package/docs/it/intlayer_with_astro_svelte.md +3 -1
  310. package/docs/it/intlayer_with_astro_vanilla.md +3 -1
  311. package/docs/it/intlayer_with_astro_vue.md +3 -1
  312. package/docs/it/intlayer_with_lynx+react.md +6 -1
  313. package/docs/it/intlayer_with_nextjs_16.md +2 -0
  314. package/docs/it/intlayer_with_nextjs_compiler.md +2 -0
  315. package/docs/it/intlayer_with_react_native+expo.md +38 -73
  316. package/docs/it/intlayer_with_react_router_v7.md +3 -1
  317. package/docs/it/intlayer_with_react_router_v7_fs_routes.md +3 -1
  318. package/docs/it/intlayer_with_storybook.md +7 -1
  319. package/docs/it/intlayer_with_svelte_kit.md +9 -4
  320. package/docs/it/intlayer_with_tanstack+solid.md +18 -11
  321. package/docs/it/intlayer_with_tanstack.md +17 -8
  322. package/docs/it/intlayer_with_vite+lit.md +13 -4
  323. package/docs/it/intlayer_with_vite+preact.md +3 -1
  324. package/docs/it/intlayer_with_vite+react.md +9 -4
  325. package/docs/it/intlayer_with_vite+react_compiler.md +9 -2
  326. package/docs/it/intlayer_with_vite+solid.md +3 -1
  327. package/docs/it/intlayer_with_vite+svelte.md +4 -2
  328. package/docs/it/intlayer_with_vite+vanilla.md +16 -5
  329. package/docs/it/intlayer_with_vite+vue.md +9 -4
  330. package/docs/it/packages/@intlayer_babel/export.md +131 -0
  331. package/docs/it/packages/react-native-intlayer/exports.md +47 -13
  332. package/docs/it/packages/vite-intlayer/intlayerCompiler.md +120 -0
  333. package/docs/it/packages/vite-intlayer/intlayerMinify.md +92 -0
  334. package/docs/it/packages/vite-intlayer/intlayerProxy.md +172 -0
  335. package/docs/it/releases/v9.md +23 -1
  336. package/docs/ja/compiler.md +6 -3
  337. package/docs/ja/custom_domains.md +8 -2
  338. package/docs/ja/custom_url_rewrites.md +8 -2
  339. package/docs/ja/intlayer_with_analog.md +5 -1
  340. package/docs/ja/intlayer_with_astro.md +2 -0
  341. package/docs/ja/intlayer_with_astro_lit.md +2 -0
  342. package/docs/ja/intlayer_with_astro_preact.md +2 -0
  343. package/docs/ja/intlayer_with_astro_react.md +2 -0
  344. package/docs/ja/intlayer_with_astro_solid.md +2 -0
  345. package/docs/ja/intlayer_with_astro_svelte.md +2 -0
  346. package/docs/ja/intlayer_with_astro_vanilla.md +2 -0
  347. package/docs/ja/intlayer_with_astro_vue.md +2 -0
  348. package/docs/ja/intlayer_with_lynx+react.md +6 -1
  349. package/docs/ja/intlayer_with_nextjs_16.md +2 -0
  350. package/docs/ja/intlayer_with_nextjs_compiler.md +2 -0
  351. package/docs/ja/intlayer_with_react_native+expo.md +104 -138
  352. package/docs/ja/intlayer_with_react_router_v7.md +8 -3
  353. package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +3 -1
  354. package/docs/ja/intlayer_with_storybook.md +7 -1
  355. package/docs/ja/intlayer_with_svelte_kit.md +2 -0
  356. package/docs/ja/intlayer_with_tanstack+solid.md +18 -11
  357. package/docs/ja/intlayer_with_tanstack.md +18 -11
  358. package/docs/ja/intlayer_with_vite+lit.md +13 -4
  359. package/docs/ja/intlayer_with_vite+preact.md +8 -3
  360. package/docs/ja/intlayer_with_vite+react.md +3 -1
  361. package/docs/ja/intlayer_with_vite+react_compiler.md +9 -2
  362. package/docs/ja/intlayer_with_vite+solid.md +3 -1
  363. package/docs/ja/intlayer_with_vite+svelte.md +5 -3
  364. package/docs/ja/intlayer_with_vite+vanilla.md +16 -5
  365. package/docs/ja/intlayer_with_vite+vue.md +9 -4
  366. package/docs/ja/packages/@intlayer_babel/export.md +131 -0
  367. package/docs/ja/packages/react-native-intlayer/exports.md +47 -14
  368. package/docs/ja/packages/vite-intlayer/intlayerCompiler.md +120 -0
  369. package/docs/ja/packages/vite-intlayer/intlayerMinify.md +92 -0
  370. package/docs/ja/packages/vite-intlayer/intlayerProxy.md +172 -0
  371. package/docs/ja/releases/v9.md +23 -1
  372. package/docs/ko/compiler.md +6 -3
  373. package/docs/ko/custom_domains.md +8 -2
  374. package/docs/ko/custom_url_rewrites.md +8 -2
  375. package/docs/ko/intlayer_with_analog.md +5 -1
  376. package/docs/ko/intlayer_with_astro.md +3 -1
  377. package/docs/ko/intlayer_with_astro_lit.md +3 -1
  378. package/docs/ko/intlayer_with_astro_preact.md +3 -1
  379. package/docs/ko/intlayer_with_astro_react.md +3 -1
  380. package/docs/ko/intlayer_with_astro_solid.md +3 -1
  381. package/docs/ko/intlayer_with_astro_svelte.md +3 -1
  382. package/docs/ko/intlayer_with_astro_vanilla.md +3 -1
  383. package/docs/ko/intlayer_with_astro_vue.md +3 -1
  384. package/docs/ko/intlayer_with_lynx+react.md +6 -1
  385. package/docs/ko/intlayer_with_nextjs_16.md +2 -0
  386. package/docs/ko/intlayer_with_nextjs_compiler.md +2 -0
  387. package/docs/ko/intlayer_with_react_native+expo.md +237 -30
  388. package/docs/ko/intlayer_with_react_router_v7.md +3 -1
  389. package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +3 -1
  390. package/docs/ko/intlayer_with_storybook.md +7 -1
  391. package/docs/ko/intlayer_with_svelte_kit.md +9 -4
  392. package/docs/ko/intlayer_with_tanstack+solid.md +18 -11
  393. package/docs/ko/intlayer_with_tanstack.md +17 -8
  394. package/docs/ko/intlayer_with_vite+lit.md +13 -4
  395. package/docs/ko/intlayer_with_vite+preact.md +3 -1
  396. package/docs/ko/intlayer_with_vite+react.md +3 -1
  397. package/docs/ko/intlayer_with_vite+react_compiler.md +9 -2
  398. package/docs/ko/intlayer_with_vite+svelte.md +5 -3
  399. package/docs/ko/intlayer_with_vite+vanilla.md +16 -5
  400. package/docs/ko/intlayer_with_vite+vue.md +9 -4
  401. package/docs/ko/packages/@intlayer_babel/export.md +131 -0
  402. package/docs/ko/packages/react-native-intlayer/exports.md +48 -14
  403. package/docs/ko/packages/vite-intlayer/intlayerCompiler.md +120 -0
  404. package/docs/ko/packages/vite-intlayer/intlayerMinify.md +92 -0
  405. package/docs/ko/packages/vite-intlayer/intlayerProxy.md +172 -0
  406. package/docs/ko/releases/v9.md +23 -1
  407. package/docs/nl/custom_domains.md +8 -2
  408. package/docs/nl/intlayer_with_storybook.md +7 -1
  409. package/docs/nl/intlayer_with_vite+lit.md +8 -2
  410. package/docs/nl/intlayer_with_vite+vanilla.md +16 -5
  411. package/docs/pl/compiler.md +6 -3
  412. package/docs/pl/custom_domains.md +8 -2
  413. package/docs/pl/custom_url_rewrites.md +8 -2
  414. package/docs/pl/intlayer_with_analog.md +5 -1
  415. package/docs/pl/intlayer_with_astro.md +6 -4
  416. package/docs/pl/intlayer_with_astro_lit.md +3 -1
  417. package/docs/pl/intlayer_with_astro_preact.md +3 -1
  418. package/docs/pl/intlayer_with_astro_react.md +3 -1
  419. package/docs/pl/intlayer_with_astro_solid.md +3 -1
  420. package/docs/pl/intlayer_with_astro_svelte.md +3 -1
  421. package/docs/pl/intlayer_with_astro_vanilla.md +3 -1
  422. package/docs/pl/intlayer_with_astro_vue.md +3 -1
  423. package/docs/pl/intlayer_with_lynx+react.md +6 -1
  424. package/docs/pl/intlayer_with_nextjs_16.md +2 -0
  425. package/docs/pl/intlayer_with_nextjs_compiler.md +2 -0
  426. package/docs/pl/intlayer_with_react_native+expo.md +81 -47
  427. package/docs/pl/intlayer_with_react_router_v7.md +3 -1
  428. package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +3 -1
  429. package/docs/pl/intlayer_with_storybook.md +7 -1
  430. package/docs/pl/intlayer_with_svelte_kit.md +9 -4
  431. package/docs/pl/intlayer_with_tanstack+solid.md +18 -9
  432. package/docs/pl/intlayer_with_tanstack.md +17 -8
  433. package/docs/pl/intlayer_with_vite+lit.md +8 -2
  434. package/docs/pl/intlayer_with_vite+preact.md +3 -1
  435. package/docs/pl/intlayer_with_vite+react.md +9 -4
  436. package/docs/pl/intlayer_with_vite+react_compiler.md +9 -2
  437. package/docs/pl/intlayer_with_vite+solid.md +3 -1
  438. package/docs/pl/intlayer_with_vite+svelte.md +4 -2
  439. package/docs/pl/intlayer_with_vite+vanilla.md +16 -5
  440. package/docs/pl/intlayer_with_vite+vue.md +9 -4
  441. package/docs/pl/packages/@intlayer_babel/export.md +131 -0
  442. package/docs/pl/packages/react-native-intlayer/exports.md +47 -13
  443. package/docs/pl/packages/vite-intlayer/intlayerCompiler.md +120 -0
  444. package/docs/pl/packages/vite-intlayer/intlayerMinify.md +92 -0
  445. package/docs/pl/packages/vite-intlayer/intlayerProxy.md +172 -0
  446. package/docs/pl/releases/v9.md +23 -1
  447. package/docs/pt/compiler.md +6 -3
  448. package/docs/pt/custom_domains.md +8 -2
  449. package/docs/pt/custom_url_rewrites.md +8 -2
  450. package/docs/pt/intlayer_with_analog.md +5 -1
  451. package/docs/pt/intlayer_with_astro.md +6 -4
  452. package/docs/pt/intlayer_with_astro_lit.md +3 -1
  453. package/docs/pt/intlayer_with_astro_preact.md +3 -1
  454. package/docs/pt/intlayer_with_astro_react.md +3 -1
  455. package/docs/pt/intlayer_with_astro_solid.md +3 -1
  456. package/docs/pt/intlayer_with_astro_svelte.md +3 -1
  457. package/docs/pt/intlayer_with_astro_vanilla.md +3 -1
  458. package/docs/pt/intlayer_with_astro_vue.md +3 -1
  459. package/docs/pt/intlayer_with_lynx+react.md +6 -1
  460. package/docs/pt/intlayer_with_nextjs_16.md +2 -0
  461. package/docs/pt/intlayer_with_nextjs_compiler.md +2 -0
  462. package/docs/pt/intlayer_with_react_native+expo.md +44 -76
  463. package/docs/pt/intlayer_with_react_router_v7.md +8 -3
  464. package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +3 -1
  465. package/docs/pt/intlayer_with_storybook.md +7 -1
  466. package/docs/pt/intlayer_with_svelte_kit.md +9 -4
  467. package/docs/pt/intlayer_with_tanstack+solid.md +18 -9
  468. package/docs/pt/intlayer_with_tanstack.md +17 -8
  469. package/docs/pt/intlayer_with_vite+lit.md +13 -4
  470. package/docs/pt/intlayer_with_vite+preact.md +3 -1
  471. package/docs/pt/intlayer_with_vite+react.md +9 -4
  472. package/docs/pt/intlayer_with_vite+react_compiler.md +9 -2
  473. package/docs/pt/intlayer_with_vite+solid.md +3 -1
  474. package/docs/pt/intlayer_with_vite+svelte.md +4 -2
  475. package/docs/pt/intlayer_with_vite+vanilla.md +16 -5
  476. package/docs/pt/intlayer_with_vite+vue.md +9 -4
  477. package/docs/pt/packages/@intlayer_babel/export.md +131 -0
  478. package/docs/pt/packages/react-native-intlayer/exports.md +47 -13
  479. package/docs/pt/packages/vite-intlayer/intlayerCompiler.md +120 -0
  480. package/docs/pt/packages/vite-intlayer/intlayerMinify.md +92 -0
  481. package/docs/pt/packages/vite-intlayer/intlayerProxy.md +172 -0
  482. package/docs/pt/releases/v9.md +23 -1
  483. package/docs/ru/compiler.md +6 -3
  484. package/docs/ru/custom_domains.md +8 -2
  485. package/docs/ru/custom_url_rewrites.md +8 -2
  486. package/docs/ru/intlayer_with_analog.md +5 -1
  487. package/docs/ru/intlayer_with_astro.md +3 -1
  488. package/docs/ru/intlayer_with_astro_lit.md +3 -1
  489. package/docs/ru/intlayer_with_astro_preact.md +3 -1
  490. package/docs/ru/intlayer_with_astro_react.md +3 -1
  491. package/docs/ru/intlayer_with_astro_solid.md +3 -1
  492. package/docs/ru/intlayer_with_astro_svelte.md +3 -1
  493. package/docs/ru/intlayer_with_astro_vanilla.md +3 -1
  494. package/docs/ru/intlayer_with_astro_vue.md +3 -1
  495. package/docs/ru/intlayer_with_lynx+react.md +6 -1
  496. package/docs/ru/intlayer_with_nextjs_16.md +2 -0
  497. package/docs/ru/intlayer_with_nextjs_compiler.md +2 -0
  498. package/docs/ru/intlayer_with_react_native+expo.md +77 -61
  499. package/docs/ru/intlayer_with_react_router_v7.md +3 -1
  500. package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +3 -1
  501. package/docs/ru/intlayer_with_storybook.md +7 -1
  502. package/docs/ru/intlayer_with_svelte_kit.md +9 -4
  503. package/docs/ru/intlayer_with_tanstack+solid.md +18 -11
  504. package/docs/ru/intlayer_with_tanstack.md +17 -8
  505. package/docs/ru/intlayer_with_vite+lit.md +13 -4
  506. package/docs/ru/intlayer_with_vite+preact.md +3 -1
  507. package/docs/ru/intlayer_with_vite+react.md +9 -4
  508. package/docs/ru/intlayer_with_vite+react_compiler.md +9 -2
  509. package/docs/ru/intlayer_with_vite+solid.md +3 -1
  510. package/docs/ru/intlayer_with_vite+svelte.md +4 -2
  511. package/docs/ru/intlayer_with_vite+vanilla.md +16 -5
  512. package/docs/ru/intlayer_with_vite+vue.md +9 -4
  513. package/docs/ru/packages/@intlayer_babel/export.md +131 -0
  514. package/docs/ru/packages/react-native-intlayer/exports.md +49 -16
  515. package/docs/ru/packages/vite-intlayer/intlayerCompiler.md +120 -0
  516. package/docs/ru/packages/vite-intlayer/intlayerMinify.md +92 -0
  517. package/docs/ru/packages/vite-intlayer/intlayerProxy.md +172 -0
  518. package/docs/ru/releases/v9.md +23 -1
  519. package/docs/tr/compiler.md +6 -3
  520. package/docs/tr/custom_domains.md +8 -2
  521. package/docs/tr/custom_url_rewrites.md +8 -2
  522. package/docs/tr/intlayer_with_analog.md +5 -1
  523. package/docs/tr/intlayer_with_astro_lit.md +3 -1
  524. package/docs/tr/intlayer_with_astro_preact.md +3 -1
  525. package/docs/tr/intlayer_with_astro_react.md +3 -1
  526. package/docs/tr/intlayer_with_astro_solid.md +3 -1
  527. package/docs/tr/intlayer_with_astro_svelte.md +3 -1
  528. package/docs/tr/intlayer_with_astro_vanilla.md +3 -1
  529. package/docs/tr/intlayer_with_astro_vue.md +3 -1
  530. package/docs/tr/intlayer_with_lynx+react.md +6 -1
  531. package/docs/tr/intlayer_with_nextjs_16.md +2 -0
  532. package/docs/tr/intlayer_with_nextjs_compiler.md +2 -0
  533. package/docs/tr/intlayer_with_react_native+expo.md +36 -57
  534. package/docs/tr/intlayer_with_react_router_v7.md +3 -1
  535. package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +3 -1
  536. package/docs/tr/intlayer_with_storybook.md +7 -1
  537. package/docs/tr/intlayer_with_svelte_kit.md +9 -4
  538. package/docs/tr/intlayer_with_tanstack+solid.md +18 -11
  539. package/docs/tr/intlayer_with_tanstack.md +17 -8
  540. package/docs/tr/intlayer_with_vite+lit.md +8 -2
  541. package/docs/tr/intlayer_with_vite+preact.md +3 -1
  542. package/docs/tr/intlayer_with_vite+react.md +9 -4
  543. package/docs/tr/intlayer_with_vite+react_compiler.md +9 -2
  544. package/docs/tr/intlayer_with_vite+solid.md +3 -1
  545. package/docs/tr/intlayer_with_vite+svelte.md +4 -2
  546. package/docs/tr/intlayer_with_vite+vanilla.md +16 -5
  547. package/docs/tr/intlayer_with_vite+vue.md +9 -4
  548. package/docs/tr/packages/@intlayer_babel/export.md +131 -0
  549. package/docs/tr/packages/react-native-intlayer/exports.md +48 -15
  550. package/docs/tr/packages/vite-intlayer/intlayerCompiler.md +120 -0
  551. package/docs/tr/packages/vite-intlayer/intlayerMinify.md +92 -0
  552. package/docs/tr/packages/vite-intlayer/intlayerProxy.md +172 -0
  553. package/docs/tr/releases/v9.md +23 -1
  554. package/docs/uk/compiler.md +6 -3
  555. package/docs/uk/custom_domains.md +8 -2
  556. package/docs/uk/custom_url_rewrites.md +8 -2
  557. package/docs/uk/intlayer_with_analog.md +5 -1
  558. package/docs/uk/intlayer_with_astro.md +3 -1
  559. package/docs/uk/intlayer_with_astro_lit.md +3 -1
  560. package/docs/uk/intlayer_with_astro_preact.md +3 -1
  561. package/docs/uk/intlayer_with_astro_react.md +3 -1
  562. package/docs/uk/intlayer_with_astro_solid.md +3 -1
  563. package/docs/uk/intlayer_with_astro_svelte.md +3 -1
  564. package/docs/uk/intlayer_with_astro_vanilla.md +3 -1
  565. package/docs/uk/intlayer_with_astro_vue.md +3 -1
  566. package/docs/uk/intlayer_with_lynx+react.md +6 -1
  567. package/docs/uk/intlayer_with_nextjs_16.md +2 -0
  568. package/docs/uk/intlayer_with_nextjs_compiler.md +2 -0
  569. package/docs/uk/intlayer_with_react_native+expo.md +70 -53
  570. package/docs/uk/intlayer_with_react_router_v7.md +3 -1
  571. package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +3 -1
  572. package/docs/uk/intlayer_with_storybook.md +7 -1
  573. package/docs/uk/intlayer_with_svelte_kit.md +9 -4
  574. package/docs/uk/intlayer_with_tanstack+solid.md +18 -11
  575. package/docs/uk/intlayer_with_tanstack.md +17 -8
  576. package/docs/uk/intlayer_with_vite+lit.md +8 -2
  577. package/docs/uk/intlayer_with_vite+preact.md +3 -1
  578. package/docs/uk/intlayer_with_vite+react.md +9 -4
  579. package/docs/uk/intlayer_with_vite+react_compiler.md +9 -2
  580. package/docs/uk/intlayer_with_vite+solid.md +3 -1
  581. package/docs/uk/intlayer_with_vite+svelte.md +9 -4
  582. package/docs/uk/intlayer_with_vite+vanilla.md +16 -5
  583. package/docs/uk/intlayer_with_vite+vue.md +9 -4
  584. package/docs/uk/packages/@intlayer_babel/export.md +131 -0
  585. package/docs/uk/packages/react-native-intlayer/exports.md +47 -13
  586. package/docs/uk/packages/vite-intlayer/intlayerCompiler.md +120 -0
  587. package/docs/uk/packages/vite-intlayer/intlayerMinify.md +92 -0
  588. package/docs/uk/packages/vite-intlayer/intlayerProxy.md +172 -0
  589. package/docs/uk/releases/v9.md +23 -1
  590. package/docs/ur/custom_domains.md +8 -2
  591. package/docs/ur/intlayer_with_storybook.md +7 -1
  592. package/docs/ur/intlayer_with_vite+lit.md +8 -2
  593. package/docs/ur/intlayer_with_vite+vanilla.md +16 -5
  594. package/docs/vi/compiler.md +6 -3
  595. package/docs/vi/custom_domains.md +8 -2
  596. package/docs/vi/custom_url_rewrites.md +8 -2
  597. package/docs/vi/intlayer_with_analog.md +5 -1
  598. package/docs/vi/intlayer_with_astro.md +3 -1
  599. package/docs/vi/intlayer_with_astro_lit.md +3 -1
  600. package/docs/vi/intlayer_with_astro_preact.md +3 -1
  601. package/docs/vi/intlayer_with_astro_react.md +3 -1
  602. package/docs/vi/intlayer_with_astro_solid.md +3 -1
  603. package/docs/vi/intlayer_with_astro_svelte.md +3 -1
  604. package/docs/vi/intlayer_with_astro_vanilla.md +3 -1
  605. package/docs/vi/intlayer_with_astro_vue.md +3 -1
  606. package/docs/vi/intlayer_with_lynx+react.md +6 -1
  607. package/docs/vi/intlayer_with_nextjs_15.md +2 -0
  608. package/docs/vi/intlayer_with_nextjs_16.md +2 -0
  609. package/docs/vi/intlayer_with_nextjs_compiler.md +2 -0
  610. package/docs/vi/intlayer_with_react_native+expo.md +49 -33
  611. package/docs/vi/intlayer_with_react_router_v7.md +3 -1
  612. package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +9 -4
  613. package/docs/vi/intlayer_with_storybook.md +7 -1
  614. package/docs/vi/intlayer_with_svelte_kit.md +9 -4
  615. package/docs/vi/intlayer_with_tanstack+solid.md +18 -11
  616. package/docs/vi/intlayer_with_tanstack.md +17 -8
  617. package/docs/vi/intlayer_with_vite+lit.md +8 -2
  618. package/docs/vi/intlayer_with_vite+preact.md +3 -1
  619. package/docs/vi/intlayer_with_vite+react.md +9 -4
  620. package/docs/vi/intlayer_with_vite+react_compiler.md +9 -2
  621. package/docs/vi/intlayer_with_vite+solid.md +3 -1
  622. package/docs/vi/intlayer_with_vite+svelte.md +9 -4
  623. package/docs/vi/intlayer_with_vite+vanilla.md +16 -5
  624. package/docs/vi/intlayer_with_vite+vue.md +9 -4
  625. package/docs/vi/packages/@intlayer_babel/export.md +131 -0
  626. package/docs/vi/packages/react-native-intlayer/exports.md +47 -13
  627. package/docs/vi/packages/vite-intlayer/intlayerCompiler.md +120 -0
  628. package/docs/vi/packages/vite-intlayer/intlayerMinify.md +92 -0
  629. package/docs/vi/packages/vite-intlayer/intlayerProxy.md +172 -0
  630. package/docs/vi/releases/v9.md +23 -1
  631. package/docs/zh/compiler.md +6 -3
  632. package/docs/zh/custom_domains.md +8 -2
  633. package/docs/zh/custom_url_rewrites.md +8 -2
  634. package/docs/zh/intlayer_with_astro.md +3 -1
  635. package/docs/zh/intlayer_with_astro_lit.md +3 -1
  636. package/docs/zh/intlayer_with_astro_preact.md +3 -1
  637. package/docs/zh/intlayer_with_astro_react.md +3 -1
  638. package/docs/zh/intlayer_with_astro_solid.md +3 -1
  639. package/docs/zh/intlayer_with_astro_svelte.md +3 -1
  640. package/docs/zh/intlayer_with_astro_vanilla.md +3 -1
  641. package/docs/zh/intlayer_with_astro_vue.md +3 -1
  642. package/docs/zh/intlayer_with_nextjs_16.md +2 -0
  643. package/docs/zh/intlayer_with_nextjs_compiler.md +2 -0
  644. package/docs/zh/intlayer_with_react_native+expo.md +221 -82
  645. package/docs/zh/intlayer_with_react_router_v7.md +3 -1
  646. package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +3 -1
  647. package/docs/zh/intlayer_with_storybook.md +7 -1
  648. package/docs/zh/intlayer_with_svelte_kit.md +9 -4
  649. package/docs/zh/intlayer_with_vite+preact.md +3 -1
  650. package/docs/zh/intlayer_with_vite+react.md +9 -4
  651. package/docs/zh/intlayer_with_vite+svelte.md +9 -4
  652. package/docs/zh/intlayer_with_vite+vue.md +9 -4
  653. package/docs/zh/packages/@intlayer_babel/export.md +131 -0
  654. package/docs/zh/packages/react-native-intlayer/exports.md +48 -14
  655. package/docs/zh/packages/vite-intlayer/intlayerCompiler.md +120 -0
  656. package/docs/zh/packages/vite-intlayer/intlayerMinify.md +92 -0
  657. package/docs/zh/packages/vite-intlayer/intlayerProxy.md +172 -0
  658. package/docs/zh/releases/v9.md +23 -1
  659. package/package.json +6 -6
  660. package/src/generated/docs.entry.ts +80 -0
@@ -0,0 +1,131 @@
1
+ ---
2
+ createdAt: 2026-06-25
3
+ updatedAt: 2026-06-25
4
+ title: "@intlayer/babel 包文档"
5
+ description: 用于 Intlayer 的 Babel 插件,处理构建期间的内容提取、导入优化、删除未使用字段以及混淆字段名称。
6
+ keywords:
7
+ - "@intlayer/babel"
8
+ - babel
9
+ - plugin
10
+ - 国际化
11
+ - i18n
12
+ - 编译器
13
+ - 优化
14
+ - 清除
15
+ - 压缩
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: "统一所有导出的文档"
25
+ author: aymericzip
26
+ ---
27
+
28
+ # @intlayer/babel 包
29
+
30
+ `@intlayer/babel` 包为 Intlayer 提供了一套专业的 Babel 插件。这些插件涵盖了整个构建生命周期:提取内容声明、将 `useIntlayer` / `getIntlayer` 调用重写为优化后的字典导入、清除未使用的字段以及压缩字段名称。
31
+
32
+ ## 安装
33
+
34
+ ```bash
35
+ npm install @intlayer/babel
36
+ ```
37
+
38
+ ## 导出
39
+
40
+ 导入:
41
+
42
+ ```ts
43
+ import { ... } from "@intlayer/babel";
44
+ ```
45
+
46
+ ---
47
+
48
+ ### 插件
49
+
50
+ | 函数 / 类 | 描述 |
51
+ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
52
+ | `intlayerExtractBabelPlugin` | Babel 插件,可从源文件中提取可翻译内容并自动注入 `useIntlayer` / `getIntlayer` 钩子。设计用于 Next.js 和基于 Babel 的构建工具。 |
53
+ | `intlayerOptimizeBabelPlugin` | Babel 插件,可转换 `useIntlayer` 和 `getIntlayer` 调用,并将其导入重写为优化后的 JSON 字典导入(静态、动态或通过 fetch)。 |
54
+ | `intlayerPurgeBabelPlugin` | Babel 插件,可分析源文件并重写编译后的字典 JSON 文件,以移除未使用的字段(`build.purge`)或将其重命名为简短别名(`build.minify`)。 |
55
+ | `intlayerMinifyBabelPlugin` | Babel 插件,可重写源文件以使用在混淆/压缩阶段分配的简短字段别名(例如 `content.title` ← `content.a`)。依赖于 `intlayerPurgeBabelPlugin`。 |
56
+ | `makeFieldRenameBabelPlugin` | 工厂函数,用于生成一个 Babel 插件,根据 `PruneContext` 中填充的 `dictionaryKeyToFieldRenameMap` 重命名源文件中的字典内容字段访问。 |
57
+ | `makeUsageAnalyzerBabelPlugin` | 工厂函数,用于生成一个 Babel 插件,以分析源代码中 `useIntlayer` / `getIntlayer` 的使用情况,并在共享的 `PruneContext` 中聚合字段使用数据。 |
58
+ | `getSharedPruneContext` | 辅助函数,用于返回指定根目录的共享 `PruneContext` 对象,如果尚未初始化,则返回 `null`。 |
59
+
60
+ ---
61
+
62
+ ### 插件配置工具
63
+
64
+ | 函数 | 描述 |
65
+ | -------------------------- | ------------------------------------------------------------------------------------------------------------------- |
66
+ | `getExtractPluginOptions` | 加载 Intlayer 配置并返回准备好与 `intlayerExtractBabelPlugin` 配合使用的 `ExtractPluginOptions`。 |
67
+ | `getOptimizePluginOptions` | 加载 Intlayer 配置和编译好的字典,并返回准备好与 `intlayerOptimizeBabelPlugin` 配合使用的 `OptimizePluginOptions`。 |
68
+ | `getPurgePluginOptions` | 加载 Intlayer 配置并返回准备好与 `intlayerPurgeBabelPlugin` 配合使用的 `PurgePluginOptions`。 |
69
+ | `getMinifyPluginOptions` | 加载 Intlayer 配置并返回准备好与 `intlayerMinifyBabelPlugin` 配合使用的 `MinifyPluginOptions`。 |
70
+
71
+ ---
72
+
73
+ ### 类型
74
+
75
+ | 类型 | 描述 |
76
+ | ----------------------- | ----------------------------------------------------------------------------- |
77
+ | `CompilerMode` | 编译器模式:用于带 HMR 支持的开发的 `'dev'`,或用于生产环境构建的 `'build'`。 |
78
+ | `ExtractPluginOptions` | `intlayerExtractBabelPlugin` 的选项:文件列表、配置、`onExtract` 回调函数等。 |
79
+ | `ExtractResult` | 提取结果:字典键、文件路径、内容和语言区域。 |
80
+ | `OptimizePluginOptions` | `intlayerOptimizeBabelPlugin` 的选项:字典路径、导入模式、每字典模式映射等。 |
81
+ | `PurgePluginOptions` | `intlayerPurgeBabelPlugin` 的选项:根目录、清除/混淆/优化标志、组件文件列表。 |
82
+ | `MinifyPluginOptions` | `intlayerMinifyBabelPlugin` 的选项:根目录、混淆/优化/editorEnabled 标志。 |
83
+ | `PruneContext` | 分析和清除插件之间的共享状态:字段使用映射、重命名映射等。 |
84
+ | `DictionaryFieldUsage` | 单个字典的字段使用结果:`Set<string>`,在静态分析不确定时为 `'all'`。 |
85
+ | `NestedRenameEntry` | 重命名树中的节点:`shortName` 和子节点映射。 |
86
+ | `NestedRenameMap` | 重命名树中的一级:`Map<string, NestedRenameEntry>`。 |
87
+ | `CompatCallerConfig` | 用于兼容包(`compat-adapter`)的兼容使用分析器配置(调用者名称和处理选项)。 |
88
+ | `ScriptBlock` | 从 SFC 文件(Vue 或 Svelte)中提取的脚本块:内容、起始偏移量和结束偏移量。 |
89
+
90
+ ---
91
+
92
+ ### 工具函数
93
+
94
+ | 函数 | 描述 |
95
+ | --------------------------------- | ------------------------------------------------------------------------------------------------------------- |
96
+ | `generateShortFieldName` | 将整数(从零开始)转换为简短的字母标识符:`0` → `'a'`,`25` → `'z'`,`26` → `'aa'` 等。 |
97
+ | `buildNestedRenameMapFromContent` | 从编译好的字典的内容值中递归构建 `NestedRenameMap`,并遵循 Intlayer 节点结构(translation、enumeration 等)。 |
98
+ | `createPruneContext` | 创建一个初始化为默认值的新的空 `PruneContext` 对象。 |
99
+ | `extractScriptBlocks` | 从 SFC 文件(Vue / Svelte)中提取 `<script>` 块,以便进行后续的 Babel 分析。 |
100
+ | `BABEL_PARSER_OPTIONS` | 表示覆盖支持的框架(React/Vue/Svelte/Angular/...)的 Babel 解析器选项的常量。 |
101
+ | `INTLAYER_CALLER_NAMES` | 原始 Intlayer 调用者名称的常量列表:`['useIntlayer', 'getIntlayer']`。 |
102
+
103
+ ---
104
+
105
+ ## 使用示例
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
+ > **注意:** `intlayerPurgeBabelPlugin` 必须在 `intlayerMinifyBabelPlugin` **之前**声明,因为后者需要读取前者构建的重命名映射。此外,这两者之前都必须先声明 `intlayerOptimizeBabelPlugin`,以便它在重写 `useIntlayer` 调用之前能够检测到字典键。
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  createdAt: 2026-01-21
3
- updatedAt: 2026-01-21
3
+ updatedAt: 2026-06-25
4
4
  title: react-native-intlayer 包文档
5
- description: 为 Intlayer 提供的 React Native 支持,包含 Providerpolyfill。
5
+ description: 为 Intlayer 提供的 React Native 支持,包含 provider、hook、polyfillMetro 配置。
6
6
  keywords:
7
7
  - react-native-intlayer
8
8
  - react-native
@@ -14,15 +14,20 @@ slugs:
14
14
  - react-native-intlayer
15
15
  - exports
16
16
  history:
17
+ - version: 9.0.0
18
+ date: 2026-06-25
19
+ changes: "重新导出完整的 react-intlayer API(hook、工具、format/html/markdown 子路径),使 React Native 应用只需依赖 react-native-intlayer"
17
20
  - version: 8.0.0
18
21
  date: 2026-01-21
19
- changes: "Unified documentation for all exports"
22
+ changes: "统一所有导出的文档"
20
23
  author: aymericzip
21
24
  ---
22
25
 
23
26
  # react-native-intlayer 包
24
27
 
25
- `react-native-intlayer` 包提供将 Intlayer 集成到 React Native 应用中所需的工具。它包含一个 Provider 组件以及用于本地化支持的 polyfill
28
+ `react-native-intlayer` 包提供将 Intlayer 集成到 React Native 应用中所需的工具。它重新导出完整的 `react-intlayer` API(hook 和工具),并提供适用于 React Native 的 `IntlayerProvider`,以及 React Native 所需的 polyfill 和 Metro 配置。
29
+
30
+ > 在 React Native 应用中,请从 `react-native-intlayer` 导入**所有内容**。您无需直接安装或导入 `react-intlayer`。
26
31
 
27
32
  ## 安装
28
33
 
@@ -34,14 +39,30 @@ npm install react-native-intlayer
34
39
 
35
40
  ### Provider 组件
36
41
 
37
- | 组件 | 说明 |
38
- | ------------------ | ------------------------------------------------ |
39
- | `IntlayerProvider` | 包裹应用并提供 Intlayer 上下文的 Provider 组件。 |
42
+ | 组件 | 说明 |
43
+ | ------------------ | ------------------------------------------------------------------------- |
44
+ | `IntlayerProvider` | 包裹应用并提供 Intlayer 上下文的 Provider 组件。自动应用所需的 polyfill。 |
45
+
46
+ ```tsx
47
+ import { IntlayerProvider } from "react-native-intlayer";
48
+ ```
49
+
50
+ ### Hook 和工具
51
+
52
+ 这些内容从 `react-intlayer` 重新导出,因此您可以直接从 `react-native-intlayer` 导入:
40
53
 
41
- 导入:
54
+ | 导出 | 说明 |
55
+ | ----------------------------------------------------------------------------------------------------------------- | ------------------------ |
56
+ | `useIntlayer` | 访问字典键的本地化内容。 |
57
+ | `useLocale` | 读取和更改当前语言环境。 |
58
+ | `useDictionary`, `useDictionaryAsync`, `useDictionaryDynamic`, `useLoadDynamic` | 以多种方式加载字典内容。 |
59
+ | `useI18n` | 兼容 i18next 的 hook。 |
60
+ | `t` | 内联翻译助手。 |
61
+ | `getIntlayer`, `getDictionary` | 命令式内容获取器。 |
62
+ | `localeCookie`, `localeInStorage`, `setLocaleCookie`, `setLocaleInStorage`, `useLocaleCookie`, `useLocaleStorage` | 语言环境持久化助手。 |
42
63
 
43
64
  ```tsx
44
- import "react-native-intlayer";
65
+ import { useIntlayer, useLocale, t } from "react-native-intlayer";
45
66
  ```
46
67
 
47
68
  ### Polyfill
@@ -50,10 +71,25 @@ import "react-native-intlayer";
50
71
  | ------------------ | ---------------------------------------------------------- |
51
72
  | `intlayerPolyfill` | 为 React Native 应用启用 Intlayer 所需的 polyfill 的函数。 |
52
73
 
53
- 导入:
74
+ ```tsx
75
+ import { intlayerPolyfill } from "react-native-intlayer";
76
+ ```
77
+
78
+ > 当您导入 `IntlayerProvider` 时,polyfill 会自动应用。仅当您需要在 provider 挂载之前使用 polyfill 时,才需要手动调用 `intlayerPolyfill`。
79
+
80
+ ### 格式化工具
81
+
82
+ 数字、日期及其他基于 Intl 的格式化 hook 可从 `/format` 子路径获取:
83
+
84
+ ```tsx
85
+ import { useNumber, useDate } from "react-native-intlayer/format";
86
+ ```
87
+
88
+ ### Markdown 和 HTML 渲染
54
89
 
55
90
  ```tsx
56
- import "react-native-intlayer";
91
+ import { MarkdownProvider } from "react-native-intlayer/markdown";
92
+ import { HTMLProvider } from "react-native-intlayer/html";
57
93
  ```
58
94
 
59
95
  ### Metro 配置
@@ -66,8 +102,6 @@ import "react-native-intlayer";
66
102
  | `configMetroIntlayerSync` | 同步函数,合并 Metro 配置但不准备 Intlayer 资源。 |
67
103
  | `exclusionList` | 为 Metro 的 blockList 创建一个 RegExp 模式,以在打包时排除内容文件。 |
68
104
 
69
- 导入:
70
-
71
105
  ```tsx
72
- import "react-native-intlayer/metro";
106
+ import { configMetroIntlayer } from "react-native-intlayer/metro";
73
107
  ```
@@ -0,0 +1,120 @@
1
+ ---
2
+ createdAt: 2026-06-25
3
+ updatedAt: 2026-06-25
4
+ title: intlayerCompiler Vite 插件文档 | vite-intlayer
5
+ description: Vite 插件,用于在构建/转换时从组件文件中提取内联 Intlayer 内容声明并将其写入字典 JSON 文件。
6
+ keywords:
7
+ - intlayerCompiler
8
+ - vite
9
+ - 插件
10
+ - 编译器
11
+ - 内容
12
+ - 字典
13
+ - 国际化
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: "集成到 intlayer() 中;初始化文档"
24
+ author: aymericzip
25
+ ---
26
+
27
+ # intlayerCompiler
28
+
29
+ `intlayerCompiler` 是一个 Vite 插件,它扫描组件源文件以查找**内联 Intlayer 内容声明**(即直接在组件内部定义的内容,而不是在单独的 `.content.ts` 文件中),并在转换(transform)阶段将它们写入字典 JSON 文件中。
30
+
31
+ > **自 Intlayer v9 起**,当您的 Intlayer 配置中同时设置了 `compiler.enabled` 为 `true` 且设置了 `compiler.output` 时,`intlayerCompiler` 会自动包含在主 [`intlayer()`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/vite-intlayer/intlayer.md) 插件中。只有当您希望完全控制编译器特定配置时,才需要单独注册它。
32
+
33
+ ## 用法
34
+
35
+ ### 作为 `intlayer()` 的一部分(推荐,v9+)
36
+
37
+ 通过您的 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", // 提取的字典写入的位置
47
+ },
48
+ });
49
+ ```
50
+
51
+ 然后使用标准插件,无需额外交册:
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
+ ### 独立使用(需要时)
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
+ ## 选项
76
+
77
+ ```ts
78
+ import type { IntlayerCompilerOptions } from "vite-intlayer";
79
+ ```
80
+
81
+ | 选项 | 类型 | 描述 |
82
+ | ---------------- | ------------------------- | --------------------------------------------------------------------- |
83
+ | `configOptions` | `GetConfigurationOptions` | 转发给 `getConfiguration()` 的 Intlayer 配置覆盖项。 |
84
+ | `compilerConfig` | `Partial<CompilerConfig>` | 编译器特定配置部分的覆盖项(例如 `enabled`, `output`, `filesList`)。 |
85
+
86
+ ### 示例
87
+
88
+ ```ts
89
+ intlayerCompiler({
90
+ configOptions: { configFile: "./config/intlayer.config.ts" },
91
+ compilerConfig: { enabled: true, output: "./src/dictionaries" },
92
+ });
93
+ ```
94
+
95
+ ## 工作原理
96
+
97
+ ### 转换(Transform)阶段
98
+
99
+ 对于每个与 `compiler.filesList` 匹配的源文件,编译器插件执行以下操作:
100
+
101
+ 1. 将文件内容传递给 `@intlayer/babel` 中的 `extractContent`。
102
+ 2. 对找到的每个声明调用 `onExtract`,这会将生成的字典 JSON 写入 `compiler.output`。
103
+ 3. 返回转换后的源代码,内联声明已替换为标准的 `useIntlayer('key')` / `getIntlayer('key')` 调用。
104
+
105
+ 支持的文件类型:`.ts`, `.tsx`, `.js`, `.jsx`, `.vue`, `.svelte`, `.astro`。
106
+
107
+ ### HMR(热模块替换)
108
+
109
+ 在开发模式下保存组件文件时,编译器:
110
+
111
+ 1. 通过 Vite 的 `handleHotUpdate` 钩子检测文件更改。
112
+ 2. 从更新后的文件中重新提取内容。
113
+ 3. 写入更新后的字典 JSON。
114
+ 4. 触发页面完全重新加载(`server.ws.send({ type: 'full-reload' })`)。
115
+
116
+ 500 毫秒的防抖(debounce)可防止字典写入本身(这也会触发文件更改事件)导致无限的重新提取循环。
117
+
118
+ ### 去重(Deduplication)
119
+
120
+ `intlayerCompiler` 使用与其他捆绑插件相同的 `createPrimaryInstanceGuard` 去重机制。当同时存在 `intlayer()`(已捆绑编译器)和手动 `intlayerCompiler()` 调用时,仅运行第一个注册 ins — 不会重复写入任何字典。
@@ -0,0 +1,92 @@
1
+ ---
2
+ createdAt: 2026-06-25
3
+ updatedAt: 2026-06-25
4
+ title: intlayerMinify Vite 插件文档 | vite-intlayer
5
+ description: Vite 插件,用于压缩编译后的 Intlayer 字典 JSON 文件,并可选地混淆内容字段名称以减小包大小。
6
+ keywords:
7
+ - intlayerMinify
8
+ - vite
9
+ - 插件
10
+ - 压缩
11
+ - 包大小
12
+ - 字典
13
+ - 国际化
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: "初始化文档"
24
+ author: aymericzip
25
+ ---
26
+
27
+ # intlayerMinify
28
+
29
+ `intlayerMinify` 是一个 Vite 插件,用于在生产环境构建(production build)期间压缩编译后的字典 JSON 文件。它会清除所有不必要的空格,并在与 `intlayerPrune` 结合时,可选地将内容字段名称重命名为简短的字母别名(`a`, `b`, `c`, …),以进一步减小包大小。
30
+
31
+ > 当您使用 [`intlayer()`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/vite-intlayer/intlayer.md) 时,该插件已自动包含并配置。只有在您自己构建插件栈时,才需要手动注册它。
32
+
33
+ ## 用法
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
+ ## 激活条件
52
+
53
+ `intlayerMinify` 仅在以下三个条件均满足时处于活动状态:
54
+
55
+ 1. Vite 命令为 `build`(不是 `serve` / dev 开发服务)。
56
+ 2. `build.optimize` 为 `true`(或 `undefined`,构建时默认为 `true`)。
57
+ 3. 您的 Intlayer 配置中 `build.minify` 为 `true`。
58
+
59
+ 当 `editor.enabled` 为 `true` 时,它会自动**禁用**,因为编辑器需要完整、人类可读的字典内容。
60
+
61
+ ## 哪些内容会被压缩
62
+
63
+ 该插件针对两个字典位置(解析自 `intlayer.system`):
64
+
65
+ - `dictionariesDir` — 静态全语言字典(例如 `.intlayer/dictionaries/*.json`)
66
+ - `dynamicDictionariesDir` — 每种语言的动态字典
67
+
68
+ > 获取模式字典(`fetchDictionariesDir`)**从不**会被压缩,因为它们在运行时使用其原始字段名称从远程 API 提供服务。重命名字段将导致服务器响应与客户端属性访问之间出现不匹配。
69
+
70
+ ## 字段名混淆(属性压缩)
71
+
72
+ 当 `intlayerPrune` 分析了代码库并填充了 `pruneContext.dictionaryKeyToFieldRenameMap` 时,`intlayerMinify` 也会将内容字段名称重命名为简短别名。例如:
73
+
74
+ ```json
75
+ // 混淆前
76
+ { "key": "myDict", "content": { "title": "Hello", "description": "World" } }
77
+
78
+ // 混淆后(进行混淆处理)
79
+ { "key": "myDict", "content": { "a": "Hello", "b": "World" } }
80
+ ```
81
+
82
+ 对应的源文件属性访问已由 `intlayerOptimize` 内的 Babel 处理重命名,因此运行时行为保持不变。
83
+
84
+ 内部 Intlayer 字段(`nodeType`, `translation` 等)绝不会被重命名。
85
+
86
+ ## 边缘情况字典
87
+
88
+ 在 `pruneContext.dictionariesWithEdgeCases` 中被标记的字典(在修剪(prune)阶段检测到结构异常)将被完全跳过 — 既不压缩也不混淆 — 以避免发布损坏的数据。
89
+
90
+ ## 限饰组(集合 / 变体 / 元记录)
91
+
92
+ 对于具有 `qualifierTypes` 数组的字典(集合、变体和元记录),插件会逐字保留 `qualifierTypes` 数组和 `meta` 侧图。仅混淆 `content` 条目的字段名称。用于运行时选择器匹配的复合键绝不会被修改。
@@ -0,0 +1,172 @@
1
+ ---
2
+ createdAt: 2026-06-25
3
+ updatedAt: 2026-06-25
4
+ title: intlayerProxy Vite 插件文档 | vite-intlayer
5
+ description: 适用于 Vite 开发/预览服务器和生产环境 SSR 的语言路由中间件。处理语言检测、URL 重定向和内部重写。
6
+ keywords:
7
+ - intlayerProxy
8
+ - vite
9
+ - 插件
10
+ - 中间件
11
+ - 语言
12
+ - 路由
13
+ - 国际化
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: "将 configOptions 合并到单个 options 对象中;proxy 已包含 in intlayer() 中"
25
+ author: aymericzip
26
+ ---
27
+
28
+ # intlayerProxy
29
+
30
+ `intlayerProxy` 是一个 Vite 插件,它为**所有环境**注册语言路由中间件:开发服务器(dev server)、预览服务器(preview server)和生产环境 SSR(Nitro / TanStack Start)。
31
+
32
+ > **自 Intlayer v9 起**,`intlayerProxy` 会自动包含在主 [`intlayer()`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/vite-intlayer/intlayer.md) 插件中,并通过 `routing.enableProxy: true` 默认启用。仅当您需要更底层的控制或在标准 `intlayer()` 设置之外使用它时,才需要单独注册它。
33
+
34
+ ## 用法
35
+
36
+ ### 作为 `intlayer()` 的一部分(推荐,v9+)
37
+
38
+ 将 `proxy` 选项传递给主插件,而不是单独注册 `intlayerProxy`:
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
+ ### 独立使用(需要时)
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
+ ## 选项
69
+
70
+ ```ts
71
+ import type { IntlayerProxyPluginOptions } from "vite-intlayer";
72
+ ```
73
+
74
+ 所有选项都是可选的,并作为单个对象传递:
75
+
76
+ | 选项 | 类型 | 描述 |
77
+ | --------------- | ----------------------------------- | -------------------------------------------------------------------------------------------------- |
78
+ | `ignore` | `(req: IncomingMessage) => boolean` | 排除语言路由请求的断言函数。返回 `true` 以跳过请求(例如 API 路由、健康检查)。 |
79
+ | `configOptions` | `GetConfigurationOptions` | 转发给 `getConfiguration()` 的 Intlayer 配置覆盖项。当您需要代理读取特定的配置文件或覆盖值时使用。 |
80
+
81
+ ### 示例
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
+ `createIntlayerProxyHandler` 创建一个独立于框架的 Node.js `(req, res, next)` 中间件,其中包含所有语言路由逻辑。它适用于 Vite 插件 API 不可用的环境(例如普通的 Node.js 服务器或自定义 Nitro 模块)。
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(通过 h3 的 TanStack Start / Nitro)
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
+ ## 路由行为
121
+
122
+ 该中间件映射了 `next-intlayer` 中间件的路由逻辑,并支持所有 Intlayer 路由模式。
123
+
124
+ ### 路由模式
125
+
126
+ | 模式 | URL 在浏览器中可见 | 行为 |
127
+ | --------------- | ------------------------ | ------------------------------------------------------------------------------- |
128
+ | `prefix` | `/zh/about` | 默认。URL 中的语言前缀。默认语言会重定向到无前缀 URL,除非启用了 `prefix-all`。 |
129
+ | `prefix-all` | `/en/about`, `/zh/about` | 所有语言 — 包括默认语言 — 始终带有前缀。 |
130
+ | `no-prefix` | `/about` | URL 中没有语言。语言仅存储在 cookie 中;URL 重写发生在内部。 |
131
+ | `search-params` | `/about?locale=zh` | 语言作为查询参数传递。在缺失或过期时重定向以添加/更新 `locale` 参数。 |
132
+
133
+ ### 检测优先级
134
+
135
+ 1. URL 路径前缀(例如 `/zh/about` → `zh`)。
136
+ 2. Cookie / localStorage 值(`intlayer-locale`)。
137
+ 3. `Accept-Language` 请求头。
138
+ 4. 配置中的 `defaultLocale`。
139
+
140
+ ### 自动绕过
141
+
142
+ 中间件始终直接传递这些请求,而不进行语言处理:
143
+
144
+ - 匹配 `ignore` 断言的请求。
145
+ - `/node_modules/**`
146
+ - `/@**` – Vite 内部(`@vite/`, `@fs/`, `@id/` 等)。
147
+ - `/_**` – 服务器内部(`__vite_ping`, `__manifest` 等)。
148
+ - 路径以文件扩展名结尾的请求(静态资源)。如果静态资源路径上存在语言前缀(例如 `/zh/logo.png`),则会将其剥离,以便可以正确提供文件。
149
+
150
+ ### 域名路由
151
+
152
+ 当在您的 Intlayer 配置中配置了 `routing.domains` 时,中间件处理跨域语言路由:
153
+
154
+ - 当 `domains.zh = "intlayer.zh"` 时,在 `intlayer.org` 上对 `/zh/about` 的请求被重定向到 `https://intlayer.zh/about`。
155
+ - 对 `intlayer.zh/about` 的请求在内部重写为 `/zh/about`,以便填充 `[locale]` 路由参数。
156
+
157
+ ### 重定向死循环保护
158
+
159
+ 中间件在 2 秒滑动窗口内跟踪每个 `originalUrl → newUrl` 对的重定向计数。该窗口内超过 10 次重定向将返回具有描述性错误的 `500` 响应,而不是无限循环。
160
+
161
+ ## Nitro / 生产环境 SSR(自动注入,v9+)
162
+
163
+ 当 `intlayerProxy` 用作 Vite 插件时,它携带一个 `.nitro` 属性。`nitro/vite` 构建插件读取此属性并将其推入 `nitroConfig.modules` 中,因此 `intlayerNitroHandler` 会自动注册为 Nitro 服务器中间件 — 生产环境 SSR 不需要手动配置。
164
+
165
+ Nitro 处理器使用 h3 v2 的 Web Fetch API 事件模型(而不是 `fromNodeMiddleware`),因此它与所有 Nitro 预设兼容:Node, Bun, Deno, edge 运行时。
166
+
167
+ ## 弃用的别名
168
+
169
+ | 弃用的导出 | 替代品 |
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: New Intlayer v9 - What's new?
5
5
  description: Discover what's new in Intlayer v9. Introducing drop-in compatibility packages for popular i18n libraries and support for Collections, Variants, and Dynamic Records.
6
6
  keywords:
@@ -240,6 +240,28 @@ export default config;
240
240
 
241
241
  ---
242
242
 
243
+ ## React Native:单包导入
244
+
245
+ 在 React Native 或 Expo 应用中,您不再需要同时管理 `react-intlayer` 和 `react-native-intlayer`。`react-native-intlayer` 包现在**重新导出了完整的 `react-intlayer` API**(hooks、工具函数以及 `/format`、`/html` 和 `/markdown` 子路径),并且其 `IntlayerProvider` 会自动应用 React Native 的 polyfills。
246
+
247
+ 从单一的 `react-native-intlayer` 包中导入所有内容:
248
+
249
+ ```tsx
250
+ import {
251
+ IntlayerProvider,
252
+ useIntlayer,
253
+ useLocale,
254
+ } from "react-native-intlayer";
255
+ ```
256
+
257
+ ```bash
258
+ npm install intlayer react-native-intlayer
259
+ ```
260
+
261
+ > 从 `react-intlayer` 导入仍然有效,但现在推荐使用 `react-native-intlayer` 作为 React Native 的单一入口点 —— 它的 provider 提供了面向 web 的 `react-intlayer` provider 所不包含的 polyfills。
262
+
263
+ ---
264
+
243
265
  ## Migration notes from v8
244
266
 
245
267
  If you are upgrading from v8, note that the v9 does not include breaking changes. But here are the key changes: