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

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 (714) hide show
  1. package/dist/cjs/generated/docs.entry.cjs +80 -20
  2. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  3. package/dist/esm/generated/docs.entry.mjs +80 -20
  4. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  5. package/dist/types/generated/docs.entry.d.ts +4 -1
  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/dynamic_dictionaries/index.md +24 -18
  11. package/docs/ar/dynamic_dictionaries/variants.md +280 -22
  12. package/docs/ar/intlayer_with_analog.md +5 -1
  13. package/docs/ar/intlayer_with_astro.md +2 -0
  14. package/docs/ar/intlayer_with_astro_lit.md +2 -0
  15. package/docs/ar/intlayer_with_astro_preact.md +2 -0
  16. package/docs/ar/intlayer_with_astro_react.md +2 -0
  17. package/docs/ar/intlayer_with_astro_solid.md +2 -0
  18. package/docs/ar/intlayer_with_astro_svelte.md +2 -0
  19. package/docs/ar/intlayer_with_astro_vanilla.md +2 -0
  20. package/docs/ar/intlayer_with_astro_vue.md +2 -0
  21. package/docs/ar/intlayer_with_lynx+react.md +6 -1
  22. package/docs/ar/intlayer_with_nextjs_16.md +2 -0
  23. package/docs/ar/intlayer_with_nextjs_compiler.md +2 -0
  24. package/docs/ar/intlayer_with_react_native+expo.md +6 -1
  25. package/docs/ar/intlayer_with_react_router_v7.md +3 -1
  26. package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +3 -1
  27. package/docs/ar/intlayer_with_storybook.md +7 -1
  28. package/docs/ar/intlayer_with_svelte_kit.md +8 -3
  29. package/docs/ar/intlayer_with_tanstack+solid.md +18 -11
  30. package/docs/ar/intlayer_with_tanstack.md +16 -7
  31. package/docs/ar/intlayer_with_vite+lit.md +8 -2
  32. package/docs/ar/intlayer_with_vite+preact.md +2 -0
  33. package/docs/ar/intlayer_with_vite+react.md +8 -3
  34. package/docs/ar/intlayer_with_vite+react_compiler.md +9 -2
  35. package/docs/ar/intlayer_with_vite+solid.md +2 -0
  36. package/docs/ar/intlayer_with_vite+svelte.md +4 -2
  37. package/docs/ar/intlayer_with_vite+vanilla.md +16 -5
  38. package/docs/ar/intlayer_with_vite+vue.md +8 -3
  39. package/docs/ar/packages/@intlayer_babel/export.md +131 -0
  40. package/docs/ar/packages/vite-intlayer/intlayerCompiler.md +120 -0
  41. package/docs/ar/packages/vite-intlayer/intlayerMinify.md +92 -0
  42. package/docs/ar/packages/vite-intlayer/intlayerProxy.md +172 -0
  43. package/docs/ar/plugins/sync-json.md +0 -1
  44. package/docs/ar/releases/v9.md +79 -12
  45. package/docs/bn/custom_domains.md +8 -2
  46. package/docs/bn/intlayer_with_storybook.md +7 -1
  47. package/docs/bn/intlayer_with_vite+lit.md +8 -2
  48. package/docs/bn/intlayer_with_vite+vanilla.md +16 -5
  49. package/docs/cs/custom_domains.md +8 -2
  50. package/docs/cs/intlayer_with_storybook.md +7 -1
  51. package/docs/cs/intlayer_with_vite+lit.md +8 -2
  52. package/docs/cs/intlayer_with_vite+vanilla.md +16 -5
  53. package/docs/de/compiler.md +6 -3
  54. package/docs/de/custom_domains.md +8 -2
  55. package/docs/de/custom_url_rewrites.md +8 -2
  56. package/docs/de/dynamic_dictionaries/index.md +22 -22
  57. package/docs/de/dynamic_dictionaries/variants.md +272 -14
  58. package/docs/de/intlayer_with_analog.md +5 -1
  59. package/docs/de/intlayer_with_astro.md +3 -1
  60. package/docs/de/intlayer_with_astro_lit.md +3 -1
  61. package/docs/de/intlayer_with_astro_preact.md +3 -1
  62. package/docs/de/intlayer_with_astro_react.md +3 -1
  63. package/docs/de/intlayer_with_astro_solid.md +3 -1
  64. package/docs/de/intlayer_with_astro_svelte.md +3 -1
  65. package/docs/de/intlayer_with_astro_vanilla.md +3 -1
  66. package/docs/de/intlayer_with_astro_vue.md +3 -1
  67. package/docs/de/intlayer_with_lynx+react.md +6 -1
  68. package/docs/de/intlayer_with_nextjs_16.md +2 -0
  69. package/docs/de/intlayer_with_nextjs_compiler.md +2 -0
  70. package/docs/de/intlayer_with_react_native+expo.md +6 -1
  71. package/docs/de/intlayer_with_react_router_v7.md +3 -1
  72. package/docs/de/intlayer_with_react_router_v7_fs_routes.md +8 -3
  73. package/docs/de/intlayer_with_storybook.md +7 -1
  74. package/docs/de/intlayer_with_svelte_kit.md +9 -4
  75. package/docs/de/intlayer_with_tanstack+solid.md +18 -11
  76. package/docs/de/intlayer_with_tanstack.md +17 -8
  77. package/docs/de/intlayer_with_vite+lit.md +13 -4
  78. package/docs/de/intlayer_with_vite+preact.md +3 -1
  79. package/docs/de/intlayer_with_vite+react.md +9 -4
  80. package/docs/de/intlayer_with_vite+react_compiler.md +9 -2
  81. package/docs/de/intlayer_with_vite+solid.md +3 -1
  82. package/docs/de/intlayer_with_vite+svelte.md +9 -4
  83. package/docs/de/intlayer_with_vite+vanilla.md +16 -5
  84. package/docs/de/intlayer_with_vite+vue.md +9 -4
  85. package/docs/de/packages/@intlayer_babel/export.md +131 -0
  86. package/docs/de/packages/vite-intlayer/intlayerCompiler.md +120 -0
  87. package/docs/de/packages/vite-intlayer/intlayerMinify.md +92 -0
  88. package/docs/de/packages/vite-intlayer/intlayerProxy.md +172 -0
  89. package/docs/de/plugins/sync-json.md +0 -1
  90. package/docs/de/releases/v9.md +57 -12
  91. package/docs/en/compiler.md +5 -1
  92. package/docs/en/custom_domains.md +8 -2
  93. package/docs/en/custom_url_rewrites.md +8 -2
  94. package/docs/en/dynamic_dictionaries/index.md +20 -14
  95. package/docs/en/dynamic_dictionaries/variants.md +266 -8
  96. package/docs/en/intlayer_with_analog.md +5 -1
  97. package/docs/en/intlayer_with_astro.md +2 -2
  98. package/docs/en/intlayer_with_astro_lit.md +2 -2
  99. package/docs/en/intlayer_with_astro_preact.md +2 -2
  100. package/docs/en/intlayer_with_astro_react.md +2 -2
  101. package/docs/en/intlayer_with_astro_solid.md +2 -2
  102. package/docs/en/intlayer_with_astro_svelte.md +2 -2
  103. package/docs/en/intlayer_with_astro_vanilla.md +2 -2
  104. package/docs/en/intlayer_with_astro_vue.md +2 -2
  105. package/docs/en/intlayer_with_lynx+react.md +6 -1
  106. package/docs/en/intlayer_with_nextjs_16.md +2 -0
  107. package/docs/en/intlayer_with_nextjs_compiler.md +2 -0
  108. package/docs/en/intlayer_with_react_native+expo.md +6 -1
  109. package/docs/en/intlayer_with_react_router_v7.md +8 -3
  110. package/docs/en/intlayer_with_react_router_v7_fs_routes.md +8 -3
  111. package/docs/en/intlayer_with_storybook.md +7 -1
  112. package/docs/en/intlayer_with_svelte_kit.md +8 -5
  113. package/docs/en/intlayer_with_tanstack+solid.md +18 -9
  114. package/docs/en/intlayer_with_tanstack.md +16 -7
  115. package/docs/en/intlayer_with_vite+lit.md +13 -4
  116. package/docs/en/intlayer_with_vite+preact.md +8 -3
  117. package/docs/en/intlayer_with_vite+react.md +8 -3
  118. package/docs/en/intlayer_with_vite+react_compiler.md +9 -2
  119. package/docs/en/intlayer_with_vite+solid.md +8 -3
  120. package/docs/en/intlayer_with_vite+svelte.md +8 -3
  121. package/docs/en/intlayer_with_vite+vanilla.md +15 -6
  122. package/docs/en/intlayer_with_vite+vue.md +8 -3
  123. package/docs/en/packages/@intlayer_babel/export.md +131 -0
  124. package/docs/en/packages/vite-intlayer/exports.md +38 -13
  125. package/docs/en/packages/vite-intlayer/intlayer.md +133 -14
  126. package/docs/en/packages/vite-intlayer/intlayerCompiler.md +120 -0
  127. package/docs/en/packages/vite-intlayer/intlayerMinify.md +92 -0
  128. package/docs/en/packages/vite-intlayer/intlayerProxy.md +172 -0
  129. package/docs/en/packages/vite-intlayer/intlayerPrune.md +90 -12
  130. package/docs/en/plugins/sync-json.md +0 -1
  131. package/docs/en/releases/v9.md +59 -12
  132. package/docs/en-GB/compiler.md +6 -3
  133. package/docs/en-GB/custom_domains.md +8 -2
  134. package/docs/en-GB/custom_url_rewrites.md +8 -2
  135. package/docs/en-GB/dynamic_dictionaries/index.md +21 -15
  136. package/docs/en-GB/dynamic_dictionaries/variants.md +268 -10
  137. package/docs/en-GB/intlayer_with_analog.md +5 -1
  138. package/docs/en-GB/intlayer_with_astro.md +2 -0
  139. package/docs/en-GB/intlayer_with_astro_lit.md +2 -0
  140. package/docs/en-GB/intlayer_with_astro_preact.md +2 -0
  141. package/docs/en-GB/intlayer_with_astro_react.md +2 -0
  142. package/docs/en-GB/intlayer_with_astro_solid.md +2 -0
  143. package/docs/en-GB/intlayer_with_astro_svelte.md +2 -0
  144. package/docs/en-GB/intlayer_with_astro_vanilla.md +2 -0
  145. package/docs/en-GB/intlayer_with_astro_vue.md +2 -0
  146. package/docs/en-GB/intlayer_with_lynx+react.md +6 -1
  147. package/docs/en-GB/intlayer_with_react_native+expo.md +6 -1
  148. package/docs/en-GB/intlayer_with_react_router_v7.md +6 -3
  149. package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +6 -3
  150. package/docs/en-GB/intlayer_with_storybook.md +7 -1
  151. package/docs/en-GB/intlayer_with_svelte_kit.md +6 -3
  152. package/docs/en-GB/intlayer_with_tanstack+solid.md +18 -11
  153. package/docs/en-GB/intlayer_with_tanstack.md +14 -7
  154. package/docs/en-GB/intlayer_with_vite+lit.md +13 -4
  155. package/docs/en-GB/intlayer_with_vite+react.md +6 -3
  156. package/docs/en-GB/intlayer_with_vite+react_compiler.md +9 -2
  157. package/docs/en-GB/intlayer_with_vite+svelte.md +6 -3
  158. package/docs/en-GB/intlayer_with_vite+vanilla.md +15 -4
  159. package/docs/en-GB/intlayer_with_vite+vue.md +6 -3
  160. package/docs/en-GB/packages/@intlayer_babel/export.md +131 -0
  161. package/docs/en-GB/packages/vite-intlayer/intlayerCompiler.md +120 -0
  162. package/docs/en-GB/packages/vite-intlayer/intlayerMinify.md +92 -0
  163. package/docs/en-GB/packages/vite-intlayer/intlayerProxy.md +172 -0
  164. package/docs/en-GB/plugins/sync-json.md +0 -1
  165. package/docs/en-GB/releases/v9.md +57 -12
  166. package/docs/es/compiler.md +6 -3
  167. package/docs/es/custom_domains.md +8 -2
  168. package/docs/es/custom_url_rewrites.md +8 -2
  169. package/docs/es/dynamic_dictionaries/index.md +25 -19
  170. package/docs/es/dynamic_dictionaries/variants.md +275 -17
  171. package/docs/es/intlayer_with_analog.md +5 -1
  172. package/docs/es/intlayer_with_astro.md +3 -1
  173. package/docs/es/intlayer_with_astro_lit.md +3 -1
  174. package/docs/es/intlayer_with_astro_preact.md +3 -1
  175. package/docs/es/intlayer_with_astro_react.md +3 -1
  176. package/docs/es/intlayer_with_astro_solid.md +3 -1
  177. package/docs/es/intlayer_with_astro_svelte.md +3 -1
  178. package/docs/es/intlayer_with_astro_vanilla.md +3 -1
  179. package/docs/es/intlayer_with_astro_vue.md +3 -1
  180. package/docs/es/intlayer_with_lynx+react.md +6 -1
  181. package/docs/es/intlayer_with_nextjs_16.md +2 -0
  182. package/docs/es/intlayer_with_nextjs_compiler.md +2 -0
  183. package/docs/es/intlayer_with_react_native+expo.md +6 -1
  184. package/docs/es/intlayer_with_react_router_v7.md +3 -1
  185. package/docs/es/intlayer_with_react_router_v7_fs_routes.md +9 -4
  186. package/docs/es/intlayer_with_storybook.md +7 -1
  187. package/docs/es/intlayer_with_svelte_kit.md +9 -4
  188. package/docs/es/intlayer_with_tanstack+solid.md +18 -11
  189. package/docs/es/intlayer_with_tanstack.md +17 -8
  190. package/docs/es/intlayer_with_vite+lit.md +13 -4
  191. package/docs/es/intlayer_with_vite+preact.md +3 -1
  192. package/docs/es/intlayer_with_vite+react.md +9 -4
  193. package/docs/es/intlayer_with_vite+react_compiler.md +9 -2
  194. package/docs/es/intlayer_with_vite+solid.md +3 -1
  195. package/docs/es/intlayer_with_vite+svelte.md +4 -2
  196. package/docs/es/intlayer_with_vite+vanilla.md +16 -5
  197. package/docs/es/intlayer_with_vite+vue.md +9 -4
  198. package/docs/es/packages/@intlayer_babel/export.md +131 -0
  199. package/docs/es/packages/vite-intlayer/intlayerCompiler.md +120 -0
  200. package/docs/es/packages/vite-intlayer/intlayerMinify.md +92 -0
  201. package/docs/es/packages/vite-intlayer/intlayerProxy.md +172 -0
  202. package/docs/es/plugins/sync-json.md +0 -1
  203. package/docs/es/releases/v9.md +57 -12
  204. package/docs/fr/compiler.md +6 -3
  205. package/docs/fr/custom_domains.md +8 -2
  206. package/docs/fr/custom_url_rewrites.md +8 -2
  207. package/docs/fr/dynamic_dictionaries/index.md +26 -20
  208. package/docs/fr/dynamic_dictionaries/variants.md +273 -15
  209. package/docs/fr/intlayer_with_analog.md +5 -1
  210. package/docs/fr/intlayer_with_astro.md +3 -1
  211. package/docs/fr/intlayer_with_astro_lit.md +3 -1
  212. package/docs/fr/intlayer_with_astro_preact.md +3 -1
  213. package/docs/fr/intlayer_with_astro_react.md +3 -1
  214. package/docs/fr/intlayer_with_astro_solid.md +3 -1
  215. package/docs/fr/intlayer_with_astro_svelte.md +3 -1
  216. package/docs/fr/intlayer_with_astro_vanilla.md +3 -1
  217. package/docs/fr/intlayer_with_astro_vue.md +3 -1
  218. package/docs/fr/intlayer_with_lynx+react.md +6 -1
  219. package/docs/fr/intlayer_with_nextjs_16.md +2 -0
  220. package/docs/fr/intlayer_with_nextjs_compiler.md +2 -0
  221. package/docs/fr/intlayer_with_react_native+expo.md +6 -1
  222. package/docs/fr/intlayer_with_react_router_v7.md +3 -1
  223. package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +3 -1
  224. package/docs/fr/intlayer_with_storybook.md +7 -1
  225. package/docs/fr/intlayer_with_svelte_kit.md +9 -4
  226. package/docs/fr/intlayer_with_tanstack+solid.md +18 -11
  227. package/docs/fr/intlayer_with_tanstack.md +17 -8
  228. package/docs/fr/intlayer_with_vite+lit.md +13 -4
  229. package/docs/fr/intlayer_with_vite+preact.md +3 -1
  230. package/docs/fr/intlayer_with_vite+react.md +9 -4
  231. package/docs/fr/intlayer_with_vite+react_compiler.md +9 -2
  232. package/docs/fr/intlayer_with_vite+solid.md +3 -1
  233. package/docs/fr/intlayer_with_vite+svelte.md +9 -4
  234. package/docs/fr/intlayer_with_vite+vanilla.md +16 -5
  235. package/docs/fr/intlayer_with_vite+vue.md +9 -4
  236. package/docs/fr/packages/@intlayer_babel/export.md +131 -0
  237. package/docs/fr/packages/vite-intlayer/intlayerCompiler.md +120 -0
  238. package/docs/fr/packages/vite-intlayer/intlayerMinify.md +92 -0
  239. package/docs/fr/packages/vite-intlayer/intlayerProxy.md +172 -0
  240. package/docs/fr/plugins/sync-json.md +0 -1
  241. package/docs/fr/releases/v9.md +57 -12
  242. package/docs/hi/compiler.md +6 -3
  243. package/docs/hi/custom_domains.md +8 -2
  244. package/docs/hi/custom_url_rewrites.md +8 -2
  245. package/docs/hi/dynamic_dictionaries/index.md +28 -22
  246. package/docs/hi/dynamic_dictionaries/variants.md +282 -24
  247. package/docs/hi/intlayer_with_analog.md +5 -1
  248. package/docs/hi/intlayer_with_astro.md +6 -3
  249. package/docs/hi/intlayer_with_astro_lit.md +6 -3
  250. package/docs/hi/intlayer_with_astro_preact.md +6 -3
  251. package/docs/hi/intlayer_with_astro_react.md +6 -3
  252. package/docs/hi/intlayer_with_astro_solid.md +6 -3
  253. package/docs/hi/intlayer_with_astro_svelte.md +6 -3
  254. package/docs/hi/intlayer_with_astro_vanilla.md +6 -3
  255. package/docs/hi/intlayer_with_astro_vue.md +6 -3
  256. package/docs/hi/intlayer_with_lynx+react.md +6 -1
  257. package/docs/hi/intlayer_with_react_native+expo.md +6 -1
  258. package/docs/hi/intlayer_with_react_router_v7.md +6 -3
  259. package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +6 -3
  260. package/docs/hi/intlayer_with_storybook.md +7 -1
  261. package/docs/hi/intlayer_with_svelte_kit.md +12 -6
  262. package/docs/hi/intlayer_with_tanstack+solid.md +18 -11
  263. package/docs/hi/intlayer_with_tanstack.md +20 -10
  264. package/docs/hi/intlayer_with_vite+lit.md +8 -2
  265. package/docs/hi/intlayer_with_vite+preact.md +6 -3
  266. package/docs/hi/intlayer_with_vite+react.md +12 -6
  267. package/docs/hi/intlayer_with_vite+react_compiler.md +9 -2
  268. package/docs/hi/intlayer_with_vite+solid.md +6 -3
  269. package/docs/hi/intlayer_with_vite+svelte.md +7 -4
  270. package/docs/hi/intlayer_with_vite+vanilla.md +16 -5
  271. package/docs/hi/intlayer_with_vite+vue.md +12 -6
  272. package/docs/hi/packages/@intlayer_babel/export.md +131 -0
  273. package/docs/hi/packages/vite-intlayer/intlayerCompiler.md +120 -0
  274. package/docs/hi/packages/vite-intlayer/intlayerMinify.md +92 -0
  275. package/docs/hi/packages/vite-intlayer/intlayerProxy.md +172 -0
  276. package/docs/hi/plugins/sync-json.md +0 -1
  277. package/docs/hi/releases/v9.md +57 -12
  278. package/docs/id/compiler.md +6 -3
  279. package/docs/id/custom_domains.md +8 -2
  280. package/docs/id/custom_url_rewrites.md +8 -2
  281. package/docs/id/dynamic_dictionaries/index.md +25 -19
  282. package/docs/id/dynamic_dictionaries/variants.md +274 -16
  283. package/docs/id/intlayer_with_analog.md +5 -1
  284. package/docs/id/intlayer_with_astro.md +3 -1
  285. package/docs/id/intlayer_with_astro_lit.md +3 -1
  286. package/docs/id/intlayer_with_astro_preact.md +3 -1
  287. package/docs/id/intlayer_with_astro_react.md +3 -1
  288. package/docs/id/intlayer_with_astro_solid.md +3 -1
  289. package/docs/id/intlayer_with_astro_svelte.md +3 -1
  290. package/docs/id/intlayer_with_astro_vanilla.md +3 -1
  291. package/docs/id/intlayer_with_astro_vue.md +3 -1
  292. package/docs/id/intlayer_with_lynx+react.md +6 -1
  293. package/docs/id/intlayer_with_nextjs_16.md +2 -0
  294. package/docs/id/intlayer_with_nextjs_compiler.md +2 -0
  295. package/docs/id/intlayer_with_react_native+expo.md +6 -1
  296. package/docs/id/intlayer_with_react_router_v7.md +3 -1
  297. package/docs/id/intlayer_with_react_router_v7_fs_routes.md +9 -4
  298. package/docs/id/intlayer_with_storybook.md +7 -1
  299. package/docs/id/intlayer_with_svelte_kit.md +9 -4
  300. package/docs/id/intlayer_with_tanstack+solid.md +18 -11
  301. package/docs/id/intlayer_with_tanstack.md +17 -8
  302. package/docs/id/intlayer_with_vite+lit.md +8 -2
  303. package/docs/id/intlayer_with_vite+preact.md +3 -1
  304. package/docs/id/intlayer_with_vite+react.md +9 -4
  305. package/docs/id/intlayer_with_vite+react_compiler.md +9 -2
  306. package/docs/id/intlayer_with_vite+solid.md +3 -1
  307. package/docs/id/intlayer_with_vite+svelte.md +5 -3
  308. package/docs/id/intlayer_with_vite+vanilla.md +16 -5
  309. package/docs/id/intlayer_with_vite+vue.md +9 -4
  310. package/docs/id/packages/@intlayer_babel/export.md +131 -0
  311. package/docs/id/packages/vite-intlayer/intlayerCompiler.md +120 -0
  312. package/docs/id/packages/vite-intlayer/intlayerMinify.md +92 -0
  313. package/docs/id/packages/vite-intlayer/intlayerProxy.md +172 -0
  314. package/docs/id/plugins/sync-json.md +0 -1
  315. package/docs/id/releases/v9.md +57 -12
  316. package/docs/it/compiler.md +6 -3
  317. package/docs/it/custom_domains.md +8 -2
  318. package/docs/it/custom_url_rewrites.md +8 -2
  319. package/docs/it/dynamic_dictionaries/index.md +26 -20
  320. package/docs/it/dynamic_dictionaries/variants.md +273 -15
  321. package/docs/it/intlayer_with_analog.md +5 -1
  322. package/docs/it/intlayer_with_astro.md +3 -1
  323. package/docs/it/intlayer_with_astro_lit.md +3 -1
  324. package/docs/it/intlayer_with_astro_preact.md +3 -1
  325. package/docs/it/intlayer_with_astro_react.md +3 -1
  326. package/docs/it/intlayer_with_astro_solid.md +3 -1
  327. package/docs/it/intlayer_with_astro_svelte.md +3 -1
  328. package/docs/it/intlayer_with_astro_vanilla.md +3 -1
  329. package/docs/it/intlayer_with_astro_vue.md +3 -1
  330. package/docs/it/intlayer_with_lynx+react.md +6 -1
  331. package/docs/it/intlayer_with_nextjs_16.md +2 -0
  332. package/docs/it/intlayer_with_nextjs_compiler.md +2 -0
  333. package/docs/it/intlayer_with_react_native+expo.md +6 -1
  334. package/docs/it/intlayer_with_react_router_v7.md +3 -1
  335. package/docs/it/intlayer_with_react_router_v7_fs_routes.md +3 -1
  336. package/docs/it/intlayer_with_storybook.md +7 -1
  337. package/docs/it/intlayer_with_svelte_kit.md +9 -4
  338. package/docs/it/intlayer_with_tanstack+solid.md +18 -11
  339. package/docs/it/intlayer_with_tanstack.md +17 -8
  340. package/docs/it/intlayer_with_vite+lit.md +13 -4
  341. package/docs/it/intlayer_with_vite+preact.md +3 -1
  342. package/docs/it/intlayer_with_vite+react.md +9 -4
  343. package/docs/it/intlayer_with_vite+react_compiler.md +9 -2
  344. package/docs/it/intlayer_with_vite+solid.md +3 -1
  345. package/docs/it/intlayer_with_vite+svelte.md +4 -2
  346. package/docs/it/intlayer_with_vite+vanilla.md +16 -5
  347. package/docs/it/intlayer_with_vite+vue.md +9 -4
  348. package/docs/it/packages/@intlayer_babel/export.md +131 -0
  349. package/docs/it/packages/vite-intlayer/intlayerCompiler.md +120 -0
  350. package/docs/it/packages/vite-intlayer/intlayerMinify.md +92 -0
  351. package/docs/it/packages/vite-intlayer/intlayerProxy.md +172 -0
  352. package/docs/it/plugins/sync-json.md +0 -1
  353. package/docs/it/releases/v9.md +57 -12
  354. package/docs/ja/compiler.md +6 -3
  355. package/docs/ja/custom_domains.md +8 -2
  356. package/docs/ja/custom_url_rewrites.md +8 -2
  357. package/docs/ja/dynamic_dictionaries/index.md +27 -21
  358. package/docs/ja/dynamic_dictionaries/variants.md +276 -18
  359. package/docs/ja/intlayer_with_analog.md +5 -1
  360. package/docs/ja/intlayer_with_astro.md +2 -0
  361. package/docs/ja/intlayer_with_astro_lit.md +2 -0
  362. package/docs/ja/intlayer_with_astro_preact.md +2 -0
  363. package/docs/ja/intlayer_with_astro_react.md +2 -0
  364. package/docs/ja/intlayer_with_astro_solid.md +2 -0
  365. package/docs/ja/intlayer_with_astro_svelte.md +2 -0
  366. package/docs/ja/intlayer_with_astro_vanilla.md +2 -0
  367. package/docs/ja/intlayer_with_astro_vue.md +2 -0
  368. package/docs/ja/intlayer_with_lynx+react.md +6 -1
  369. package/docs/ja/intlayer_with_nextjs_16.md +2 -0
  370. package/docs/ja/intlayer_with_nextjs_compiler.md +2 -0
  371. package/docs/ja/intlayer_with_react_native+expo.md +6 -1
  372. package/docs/ja/intlayer_with_react_router_v7.md +8 -3
  373. package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +3 -1
  374. package/docs/ja/intlayer_with_storybook.md +7 -1
  375. package/docs/ja/intlayer_with_svelte_kit.md +2 -0
  376. package/docs/ja/intlayer_with_tanstack+solid.md +18 -11
  377. package/docs/ja/intlayer_with_tanstack.md +18 -11
  378. package/docs/ja/intlayer_with_vite+lit.md +13 -4
  379. package/docs/ja/intlayer_with_vite+preact.md +8 -3
  380. package/docs/ja/intlayer_with_vite+react.md +3 -1
  381. package/docs/ja/intlayer_with_vite+react_compiler.md +9 -2
  382. package/docs/ja/intlayer_with_vite+solid.md +3 -1
  383. package/docs/ja/intlayer_with_vite+svelte.md +5 -3
  384. package/docs/ja/intlayer_with_vite+vanilla.md +16 -5
  385. package/docs/ja/intlayer_with_vite+vue.md +9 -4
  386. package/docs/ja/packages/@intlayer_babel/export.md +131 -0
  387. package/docs/ja/packages/vite-intlayer/intlayerCompiler.md +120 -0
  388. package/docs/ja/packages/vite-intlayer/intlayerMinify.md +92 -0
  389. package/docs/ja/packages/vite-intlayer/intlayerProxy.md +172 -0
  390. package/docs/ja/plugins/sync-json.md +0 -1
  391. package/docs/ja/releases/v9.md +57 -12
  392. package/docs/ko/compiler.md +6 -3
  393. package/docs/ko/custom_domains.md +8 -2
  394. package/docs/ko/custom_url_rewrites.md +8 -2
  395. package/docs/ko/dynamic_dictionaries/index.md +23 -17
  396. package/docs/ko/dynamic_dictionaries/variants.md +273 -15
  397. package/docs/ko/intlayer_with_analog.md +5 -1
  398. package/docs/ko/intlayer_with_astro.md +3 -1
  399. package/docs/ko/intlayer_with_astro_lit.md +3 -1
  400. package/docs/ko/intlayer_with_astro_preact.md +3 -1
  401. package/docs/ko/intlayer_with_astro_react.md +3 -1
  402. package/docs/ko/intlayer_with_astro_solid.md +3 -1
  403. package/docs/ko/intlayer_with_astro_svelte.md +3 -1
  404. package/docs/ko/intlayer_with_astro_vanilla.md +3 -1
  405. package/docs/ko/intlayer_with_astro_vue.md +3 -1
  406. package/docs/ko/intlayer_with_lynx+react.md +6 -1
  407. package/docs/ko/intlayer_with_nextjs_16.md +2 -0
  408. package/docs/ko/intlayer_with_nextjs_compiler.md +2 -0
  409. package/docs/ko/intlayer_with_react_native+expo.md +6 -1
  410. package/docs/ko/intlayer_with_react_router_v7.md +3 -1
  411. package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +3 -1
  412. package/docs/ko/intlayer_with_storybook.md +7 -1
  413. package/docs/ko/intlayer_with_svelte_kit.md +9 -4
  414. package/docs/ko/intlayer_with_tanstack+solid.md +18 -11
  415. package/docs/ko/intlayer_with_tanstack.md +17 -8
  416. package/docs/ko/intlayer_with_vite+lit.md +13 -4
  417. package/docs/ko/intlayer_with_vite+preact.md +3 -1
  418. package/docs/ko/intlayer_with_vite+react.md +3 -1
  419. package/docs/ko/intlayer_with_vite+react_compiler.md +9 -2
  420. package/docs/ko/intlayer_with_vite+svelte.md +5 -3
  421. package/docs/ko/intlayer_with_vite+vanilla.md +16 -5
  422. package/docs/ko/intlayer_with_vite+vue.md +9 -4
  423. package/docs/ko/packages/@intlayer_babel/export.md +131 -0
  424. package/docs/ko/packages/vite-intlayer/intlayerCompiler.md +120 -0
  425. package/docs/ko/packages/vite-intlayer/intlayerMinify.md +92 -0
  426. package/docs/ko/packages/vite-intlayer/intlayerProxy.md +172 -0
  427. package/docs/ko/plugins/sync-json.md +0 -1
  428. package/docs/ko/releases/v9.md +57 -12
  429. package/docs/nl/custom_domains.md +8 -2
  430. package/docs/nl/intlayer_with_storybook.md +7 -1
  431. package/docs/nl/intlayer_with_vite+lit.md +8 -2
  432. package/docs/nl/intlayer_with_vite+vanilla.md +16 -5
  433. package/docs/pl/compiler.md +6 -3
  434. package/docs/pl/custom_domains.md +8 -2
  435. package/docs/pl/custom_url_rewrites.md +8 -2
  436. package/docs/pl/dynamic_dictionaries/index.md +26 -20
  437. package/docs/pl/dynamic_dictionaries/variants.md +275 -17
  438. package/docs/pl/intlayer_with_analog.md +5 -1
  439. package/docs/pl/intlayer_with_astro.md +6 -4
  440. package/docs/pl/intlayer_with_astro_lit.md +3 -1
  441. package/docs/pl/intlayer_with_astro_preact.md +3 -1
  442. package/docs/pl/intlayer_with_astro_react.md +3 -1
  443. package/docs/pl/intlayer_with_astro_solid.md +3 -1
  444. package/docs/pl/intlayer_with_astro_svelte.md +3 -1
  445. package/docs/pl/intlayer_with_astro_vanilla.md +3 -1
  446. package/docs/pl/intlayer_with_astro_vue.md +3 -1
  447. package/docs/pl/intlayer_with_lynx+react.md +6 -1
  448. package/docs/pl/intlayer_with_nextjs_16.md +2 -0
  449. package/docs/pl/intlayer_with_nextjs_compiler.md +2 -0
  450. package/docs/pl/intlayer_with_react_native+expo.md +6 -1
  451. package/docs/pl/intlayer_with_react_router_v7.md +3 -1
  452. package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +3 -1
  453. package/docs/pl/intlayer_with_storybook.md +7 -1
  454. package/docs/pl/intlayer_with_svelte_kit.md +9 -4
  455. package/docs/pl/intlayer_with_tanstack+solid.md +18 -9
  456. package/docs/pl/intlayer_with_tanstack.md +17 -8
  457. package/docs/pl/intlayer_with_vite+lit.md +8 -2
  458. package/docs/pl/intlayer_with_vite+preact.md +3 -1
  459. package/docs/pl/intlayer_with_vite+react.md +9 -4
  460. package/docs/pl/intlayer_with_vite+react_compiler.md +9 -2
  461. package/docs/pl/intlayer_with_vite+solid.md +3 -1
  462. package/docs/pl/intlayer_with_vite+svelte.md +4 -2
  463. package/docs/pl/intlayer_with_vite+vanilla.md +16 -5
  464. package/docs/pl/intlayer_with_vite+vue.md +9 -4
  465. package/docs/pl/packages/@intlayer_babel/export.md +131 -0
  466. package/docs/pl/packages/vite-intlayer/intlayerCompiler.md +120 -0
  467. package/docs/pl/packages/vite-intlayer/intlayerMinify.md +92 -0
  468. package/docs/pl/packages/vite-intlayer/intlayerProxy.md +172 -0
  469. package/docs/pl/plugins/sync-json.md +0 -1
  470. package/docs/pl/releases/v9.md +57 -12
  471. package/docs/pt/compiler.md +6 -3
  472. package/docs/pt/custom_domains.md +8 -2
  473. package/docs/pt/custom_url_rewrites.md +8 -2
  474. package/docs/pt/dynamic_dictionaries/index.md +25 -19
  475. package/docs/pt/dynamic_dictionaries/variants.md +276 -18
  476. package/docs/pt/intlayer_with_analog.md +5 -1
  477. package/docs/pt/intlayer_with_astro.md +6 -4
  478. package/docs/pt/intlayer_with_astro_lit.md +3 -1
  479. package/docs/pt/intlayer_with_astro_preact.md +3 -1
  480. package/docs/pt/intlayer_with_astro_react.md +3 -1
  481. package/docs/pt/intlayer_with_astro_solid.md +3 -1
  482. package/docs/pt/intlayer_with_astro_svelte.md +3 -1
  483. package/docs/pt/intlayer_with_astro_vanilla.md +3 -1
  484. package/docs/pt/intlayer_with_astro_vue.md +3 -1
  485. package/docs/pt/intlayer_with_lynx+react.md +6 -1
  486. package/docs/pt/intlayer_with_nextjs_16.md +2 -0
  487. package/docs/pt/intlayer_with_nextjs_compiler.md +2 -0
  488. package/docs/pt/intlayer_with_react_native+expo.md +6 -1
  489. package/docs/pt/intlayer_with_react_router_v7.md +8 -3
  490. package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +3 -1
  491. package/docs/pt/intlayer_with_storybook.md +7 -1
  492. package/docs/pt/intlayer_with_svelte_kit.md +9 -4
  493. package/docs/pt/intlayer_with_tanstack+solid.md +18 -9
  494. package/docs/pt/intlayer_with_tanstack.md +17 -8
  495. package/docs/pt/intlayer_with_vite+lit.md +13 -4
  496. package/docs/pt/intlayer_with_vite+preact.md +3 -1
  497. package/docs/pt/intlayer_with_vite+react.md +9 -4
  498. package/docs/pt/intlayer_with_vite+react_compiler.md +9 -2
  499. package/docs/pt/intlayer_with_vite+solid.md +3 -1
  500. package/docs/pt/intlayer_with_vite+svelte.md +4 -2
  501. package/docs/pt/intlayer_with_vite+vanilla.md +16 -5
  502. package/docs/pt/intlayer_with_vite+vue.md +9 -4
  503. package/docs/pt/packages/@intlayer_babel/export.md +131 -0
  504. package/docs/pt/packages/vite-intlayer/intlayerCompiler.md +120 -0
  505. package/docs/pt/packages/vite-intlayer/intlayerMinify.md +92 -0
  506. package/docs/pt/packages/vite-intlayer/intlayerProxy.md +172 -0
  507. package/docs/pt/plugins/sync-json.md +0 -1
  508. package/docs/pt/releases/v9.md +57 -12
  509. package/docs/ru/compiler.md +6 -3
  510. package/docs/ru/custom_domains.md +8 -2
  511. package/docs/ru/custom_url_rewrites.md +8 -2
  512. package/docs/ru/dynamic_dictionaries/index.md +25 -19
  513. package/docs/ru/dynamic_dictionaries/variants.md +277 -19
  514. package/docs/ru/intlayer_with_analog.md +5 -1
  515. package/docs/ru/intlayer_with_astro.md +3 -1
  516. package/docs/ru/intlayer_with_astro_lit.md +3 -1
  517. package/docs/ru/intlayer_with_astro_preact.md +3 -1
  518. package/docs/ru/intlayer_with_astro_react.md +3 -1
  519. package/docs/ru/intlayer_with_astro_solid.md +3 -1
  520. package/docs/ru/intlayer_with_astro_svelte.md +3 -1
  521. package/docs/ru/intlayer_with_astro_vanilla.md +3 -1
  522. package/docs/ru/intlayer_with_astro_vue.md +3 -1
  523. package/docs/ru/intlayer_with_lynx+react.md +6 -1
  524. package/docs/ru/intlayer_with_nextjs_16.md +2 -0
  525. package/docs/ru/intlayer_with_nextjs_compiler.md +2 -0
  526. package/docs/ru/intlayer_with_react_native+expo.md +6 -1
  527. package/docs/ru/intlayer_with_react_router_v7.md +3 -1
  528. package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +3 -1
  529. package/docs/ru/intlayer_with_storybook.md +7 -1
  530. package/docs/ru/intlayer_with_svelte_kit.md +9 -4
  531. package/docs/ru/intlayer_with_tanstack+solid.md +18 -11
  532. package/docs/ru/intlayer_with_tanstack.md +17 -8
  533. package/docs/ru/intlayer_with_vite+lit.md +13 -4
  534. package/docs/ru/intlayer_with_vite+preact.md +3 -1
  535. package/docs/ru/intlayer_with_vite+react.md +9 -4
  536. package/docs/ru/intlayer_with_vite+react_compiler.md +9 -2
  537. package/docs/ru/intlayer_with_vite+solid.md +3 -1
  538. package/docs/ru/intlayer_with_vite+svelte.md +4 -2
  539. package/docs/ru/intlayer_with_vite+vanilla.md +16 -5
  540. package/docs/ru/intlayer_with_vite+vue.md +9 -4
  541. package/docs/ru/packages/@intlayer_babel/export.md +131 -0
  542. package/docs/ru/packages/vite-intlayer/intlayerCompiler.md +120 -0
  543. package/docs/ru/packages/vite-intlayer/intlayerMinify.md +92 -0
  544. package/docs/ru/packages/vite-intlayer/intlayerProxy.md +172 -0
  545. package/docs/ru/plugins/sync-json.md +0 -1
  546. package/docs/ru/releases/v9.md +57 -12
  547. package/docs/tr/compiler.md +6 -3
  548. package/docs/tr/custom_domains.md +8 -2
  549. package/docs/tr/custom_url_rewrites.md +8 -2
  550. package/docs/tr/dynamic_dictionaries/index.md +27 -21
  551. package/docs/tr/dynamic_dictionaries/variants.md +274 -16
  552. package/docs/tr/intlayer_with_analog.md +5 -1
  553. package/docs/tr/intlayer_with_astro_lit.md +3 -1
  554. package/docs/tr/intlayer_with_astro_preact.md +3 -1
  555. package/docs/tr/intlayer_with_astro_react.md +3 -1
  556. package/docs/tr/intlayer_with_astro_solid.md +3 -1
  557. package/docs/tr/intlayer_with_astro_svelte.md +3 -1
  558. package/docs/tr/intlayer_with_astro_vanilla.md +3 -1
  559. package/docs/tr/intlayer_with_astro_vue.md +3 -1
  560. package/docs/tr/intlayer_with_lynx+react.md +6 -1
  561. package/docs/tr/intlayer_with_nextjs_16.md +2 -0
  562. package/docs/tr/intlayer_with_nextjs_compiler.md +2 -0
  563. package/docs/tr/intlayer_with_react_native+expo.md +6 -1
  564. package/docs/tr/intlayer_with_react_router_v7.md +3 -1
  565. package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +3 -1
  566. package/docs/tr/intlayer_with_storybook.md +7 -1
  567. package/docs/tr/intlayer_with_svelte_kit.md +9 -4
  568. package/docs/tr/intlayer_with_tanstack+solid.md +18 -11
  569. package/docs/tr/intlayer_with_tanstack.md +17 -8
  570. package/docs/tr/intlayer_with_vite+lit.md +8 -2
  571. package/docs/tr/intlayer_with_vite+preact.md +3 -1
  572. package/docs/tr/intlayer_with_vite+react.md +9 -4
  573. package/docs/tr/intlayer_with_vite+react_compiler.md +9 -2
  574. package/docs/tr/intlayer_with_vite+solid.md +3 -1
  575. package/docs/tr/intlayer_with_vite+svelte.md +4 -2
  576. package/docs/tr/intlayer_with_vite+vanilla.md +16 -5
  577. package/docs/tr/intlayer_with_vite+vue.md +9 -4
  578. package/docs/tr/packages/@intlayer_babel/export.md +131 -0
  579. package/docs/tr/packages/vite-intlayer/intlayerCompiler.md +120 -0
  580. package/docs/tr/packages/vite-intlayer/intlayerMinify.md +92 -0
  581. package/docs/tr/packages/vite-intlayer/intlayerProxy.md +172 -0
  582. package/docs/tr/plugins/sync-json.md +0 -1
  583. package/docs/tr/releases/v9.md +57 -12
  584. package/docs/uk/compiler.md +6 -3
  585. package/docs/uk/custom_domains.md +8 -2
  586. package/docs/uk/custom_url_rewrites.md +8 -2
  587. package/docs/uk/dynamic_dictionaries/index.md +25 -19
  588. package/docs/uk/dynamic_dictionaries/variants.md +277 -19
  589. package/docs/uk/intlayer_with_analog.md +5 -1
  590. package/docs/uk/intlayer_with_astro.md +3 -1
  591. package/docs/uk/intlayer_with_astro_lit.md +3 -1
  592. package/docs/uk/intlayer_with_astro_preact.md +3 -1
  593. package/docs/uk/intlayer_with_astro_react.md +3 -1
  594. package/docs/uk/intlayer_with_astro_solid.md +3 -1
  595. package/docs/uk/intlayer_with_astro_svelte.md +3 -1
  596. package/docs/uk/intlayer_with_astro_vanilla.md +3 -1
  597. package/docs/uk/intlayer_with_astro_vue.md +3 -1
  598. package/docs/uk/intlayer_with_lynx+react.md +6 -1
  599. package/docs/uk/intlayer_with_nextjs_16.md +2 -0
  600. package/docs/uk/intlayer_with_nextjs_compiler.md +2 -0
  601. package/docs/uk/intlayer_with_react_native+expo.md +6 -1
  602. package/docs/uk/intlayer_with_react_router_v7.md +3 -1
  603. package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +3 -1
  604. package/docs/uk/intlayer_with_storybook.md +7 -1
  605. package/docs/uk/intlayer_with_svelte_kit.md +9 -4
  606. package/docs/uk/intlayer_with_tanstack+solid.md +18 -11
  607. package/docs/uk/intlayer_with_tanstack.md +17 -8
  608. package/docs/uk/intlayer_with_vite+lit.md +8 -2
  609. package/docs/uk/intlayer_with_vite+preact.md +3 -1
  610. package/docs/uk/intlayer_with_vite+react.md +9 -4
  611. package/docs/uk/intlayer_with_vite+react_compiler.md +9 -2
  612. package/docs/uk/intlayer_with_vite+solid.md +3 -1
  613. package/docs/uk/intlayer_with_vite+svelte.md +9 -4
  614. package/docs/uk/intlayer_with_vite+vanilla.md +16 -5
  615. package/docs/uk/intlayer_with_vite+vue.md +9 -4
  616. package/docs/uk/packages/@intlayer_babel/export.md +131 -0
  617. package/docs/uk/packages/vite-intlayer/intlayerCompiler.md +120 -0
  618. package/docs/uk/packages/vite-intlayer/intlayerMinify.md +92 -0
  619. package/docs/uk/packages/vite-intlayer/intlayerProxy.md +172 -0
  620. package/docs/uk/plugins/sync-json.md +0 -1
  621. package/docs/uk/releases/v9.md +57 -12
  622. package/docs/ur/custom_domains.md +8 -2
  623. package/docs/ur/intlayer_with_storybook.md +7 -1
  624. package/docs/ur/intlayer_with_vite+lit.md +8 -2
  625. package/docs/ur/intlayer_with_vite+vanilla.md +16 -5
  626. package/docs/vi/compiler.md +6 -3
  627. package/docs/vi/custom_domains.md +8 -2
  628. package/docs/vi/custom_url_rewrites.md +8 -2
  629. package/docs/vi/dynamic_dictionaries/index.md +28 -22
  630. package/docs/vi/dynamic_dictionaries/variants.md +278 -20
  631. package/docs/vi/intlayer_with_analog.md +5 -1
  632. package/docs/vi/intlayer_with_astro.md +3 -1
  633. package/docs/vi/intlayer_with_astro_lit.md +3 -1
  634. package/docs/vi/intlayer_with_astro_preact.md +3 -1
  635. package/docs/vi/intlayer_with_astro_react.md +3 -1
  636. package/docs/vi/intlayer_with_astro_solid.md +3 -1
  637. package/docs/vi/intlayer_with_astro_svelte.md +3 -1
  638. package/docs/vi/intlayer_with_astro_vanilla.md +3 -1
  639. package/docs/vi/intlayer_with_astro_vue.md +3 -1
  640. package/docs/vi/intlayer_with_lynx+react.md +6 -1
  641. package/docs/vi/intlayer_with_nextjs_15.md +2 -0
  642. package/docs/vi/intlayer_with_nextjs_16.md +2 -0
  643. package/docs/vi/intlayer_with_nextjs_compiler.md +2 -0
  644. package/docs/vi/intlayer_with_react_native+expo.md +6 -1
  645. package/docs/vi/intlayer_with_react_router_v7.md +3 -1
  646. package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +9 -4
  647. package/docs/vi/intlayer_with_storybook.md +7 -1
  648. package/docs/vi/intlayer_with_svelte_kit.md +9 -4
  649. package/docs/vi/intlayer_with_tanstack+solid.md +18 -11
  650. package/docs/vi/intlayer_with_tanstack.md +17 -8
  651. package/docs/vi/intlayer_with_vite+lit.md +8 -2
  652. package/docs/vi/intlayer_with_vite+preact.md +3 -1
  653. package/docs/vi/intlayer_with_vite+react.md +9 -4
  654. package/docs/vi/intlayer_with_vite+react_compiler.md +9 -2
  655. package/docs/vi/intlayer_with_vite+solid.md +3 -1
  656. package/docs/vi/intlayer_with_vite+svelte.md +9 -4
  657. package/docs/vi/intlayer_with_vite+vanilla.md +16 -5
  658. package/docs/vi/intlayer_with_vite+vue.md +9 -4
  659. package/docs/vi/packages/@intlayer_babel/export.md +131 -0
  660. package/docs/vi/packages/vite-intlayer/intlayerCompiler.md +120 -0
  661. package/docs/vi/packages/vite-intlayer/intlayerMinify.md +92 -0
  662. package/docs/vi/packages/vite-intlayer/intlayerProxy.md +172 -0
  663. package/docs/vi/plugins/sync-json.md +0 -1
  664. package/docs/vi/releases/v9.md +57 -12
  665. package/docs/zh/compiler.md +6 -3
  666. package/docs/zh/custom_domains.md +8 -2
  667. package/docs/zh/custom_url_rewrites.md +8 -2
  668. package/docs/zh/dynamic_dictionaries/index.md +24 -18
  669. package/docs/zh/dynamic_dictionaries/variants.md +274 -16
  670. package/docs/zh/intlayer_with_astro.md +3 -1
  671. package/docs/zh/intlayer_with_astro_lit.md +3 -1
  672. package/docs/zh/intlayer_with_astro_preact.md +3 -1
  673. package/docs/zh/intlayer_with_astro_react.md +3 -1
  674. package/docs/zh/intlayer_with_astro_solid.md +3 -1
  675. package/docs/zh/intlayer_with_astro_svelte.md +3 -1
  676. package/docs/zh/intlayer_with_astro_vanilla.md +3 -1
  677. package/docs/zh/intlayer_with_astro_vue.md +3 -1
  678. package/docs/zh/intlayer_with_nextjs_16.md +2 -0
  679. package/docs/zh/intlayer_with_nextjs_compiler.md +2 -0
  680. package/docs/zh/intlayer_with_react_native+expo.md +6 -1
  681. package/docs/zh/intlayer_with_react_router_v7.md +3 -1
  682. package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +3 -1
  683. package/docs/zh/intlayer_with_storybook.md +7 -1
  684. package/docs/zh/intlayer_with_svelte_kit.md +9 -4
  685. package/docs/zh/intlayer_with_vite+preact.md +3 -1
  686. package/docs/zh/intlayer_with_vite+react.md +9 -4
  687. package/docs/zh/intlayer_with_vite+svelte.md +9 -4
  688. package/docs/zh/intlayer_with_vite+vue.md +9 -4
  689. package/docs/zh/packages/@intlayer_babel/export.md +131 -0
  690. package/docs/zh/packages/vite-intlayer/intlayerCompiler.md +120 -0
  691. package/docs/zh/packages/vite-intlayer/intlayerMinify.md +92 -0
  692. package/docs/zh/packages/vite-intlayer/intlayerProxy.md +172 -0
  693. package/docs/zh/plugins/sync-json.md +0 -1
  694. package/docs/zh/releases/v9.md +57 -12
  695. package/package.json +6 -6
  696. package/src/generated/docs.entry.ts +80 -20
  697. package/docs/ar/dynamic_dictionaries/dynamic_content.md +0 -271
  698. package/docs/de/dynamic_dictionaries/dynamic_content.md +0 -271
  699. package/docs/en/dynamic_dictionaries/dynamic_content.md +0 -271
  700. package/docs/en-GB/dynamic_dictionaries/dynamic_content.md +0 -271
  701. package/docs/es/dynamic_dictionaries/dynamic_content.md +0 -271
  702. package/docs/fr/dynamic_dictionaries/dynamic_content.md +0 -271
  703. package/docs/hi/dynamic_dictionaries/dynamic_content.md +0 -271
  704. package/docs/id/dynamic_dictionaries/dynamic_content.md +0 -271
  705. package/docs/it/dynamic_dictionaries/dynamic_content.md +0 -271
  706. package/docs/ja/dynamic_dictionaries/dynamic_content.md +0 -271
  707. package/docs/ko/dynamic_dictionaries/dynamic_content.md +0 -271
  708. package/docs/pl/dynamic_dictionaries/dynamic_content.md +0 -271
  709. package/docs/pt/dynamic_dictionaries/dynamic_content.md +0 -271
  710. package/docs/ru/dynamic_dictionaries/dynamic_content.md +0 -271
  711. package/docs/tr/dynamic_dictionaries/dynamic_content.md +0 -271
  712. package/docs/uk/dynamic_dictionaries/dynamic_content.md +0 -271
  713. package/docs/vi/dynamic_dictionaries/dynamic_content.md +0 -271
  714. package/docs/zh/dynamic_dictionaries/dynamic_content.md +0 -271
@@ -1,15 +1,14 @@
1
1
  ---
2
2
  createdAt: 2026-06-14
3
- updatedAt: 2026-06-23
3
+ updatedAt: 2026-06-26
4
4
  title: Intlayer v9 Mới - Có gì mới?
5
- description: Khám phá các tính năng mới trong Intlayer v9. Giới thiệu các package tương thích drop-in cho các thư viện i18n phổ biến và hỗ trợ Collections, Variants, Dynamic Records.
5
+ description: Khám phá các tính năng mới trong Intlayer v9. Giới thiệu các package tương thích drop-in cho các thư viện i18n phổ biến và hỗ trợ Collections và Variants.
6
6
  keywords:
7
7
  - Intlayer
8
8
  - Compatibility
9
9
  - Migration
10
10
  - Collections
11
11
  - Variants
12
- - Dynamic Records
13
12
  - i18next
14
13
  - next-intl
15
14
  - vue-i18n
@@ -22,7 +21,7 @@ author: aymericzip
22
21
 
23
22
  # Intlayer v9 Mới - Có gì mới?
24
23
 
25
- Chào mừng bạn đến với Intlayer v9! Bản phát hành lớn này đánh dấu một cột mốc quan trọng trong việc đơn giản hóa lộ trình migration sang Intlayer với các **Compat Adapter Packages** dành cho các thư viện i18n phổ biến (`react-i18next`, `next-intl`, `vue-i18n`, v.v.) và bổ sung hỗ trợ cho các cấu trúc nội dung phong phú: **Collections**, **Variants**, và **Dynamic Records**.
24
+ Chào mừng bạn đến với Intlayer v9! Bản phát hành lớn này đánh dấu một cột mốc quan trọng trong việc đơn giản hóa lộ trình migration sang Intlayer với các **Compat Adapter Packages** dành cho các thư viện i18n phổ biến (`react-i18next`, `next-intl`, `vue-i18n`, v.v.) và bổ sung hỗ trợ cho các cấu trúc nội dung phong phú: **Collections** và **Variants**.
26
25
 
27
26
  ## Mục lục
28
27
 
@@ -41,8 +40,10 @@ Bằng cách thay thế các import, bạn sẽ nhận được tất cả các
41
40
  - `@intlayer/i18next`
42
41
  - `@intlayer/react-i18next`
43
42
  - `@intlayer/next-intl`
43
+ - `@intlayer/react-intl`
44
44
  - `@intlayer/next-i18next`
45
45
  - `@intlayer/vue-i18n`
46
+ - `@intlayer/lingui`
46
47
 
47
48
  Ví dụ, chỉ cần thay đổi:
48
49
 
@@ -100,7 +101,7 @@ Tất cả các compat adapter giờ đây đều định tuyến việc xử l
100
101
 
101
102
  ---
102
103
 
103
- ## Chi tiết tính năng: Collections, Variants & Dynamic Records
104
+ ## Chi tiết tính năng: Collections & Variants
104
105
 
105
106
  Intlayer v9 mở rộng vượt ra ngoài các đối tượng key-value tĩnh, cho phép các dictionary khai báo các cấu trúc layout động được định kiểu đầy đủ (fully typed) từ đầu đến cuối.
106
107
 
@@ -144,6 +145,8 @@ const faq = useIntlayer("faq", { item: 1 }); // -> { question: string, answer: s
144
145
 
145
146
  Cung cấp các bản thử nghiệm A/B, seasonal header, feature flag, hoặc các landing page tùy chỉnh:
146
147
 
148
+ #### Các biến thể chuỗi (ví dụ: thử nghiệm A/B)
149
+
147
150
  ```ts fileName="hero.content.ts"
148
151
  import { t, type Dictionary } from "intlayer";
149
152
 
@@ -167,16 +170,14 @@ export default {
167
170
  const banner = useIntlayer("hero-banner", { variant: "black_friday" });
168
171
  ```
169
172
 
170
- ### 3. Dynamic Records
171
-
172
- Định nghĩa các dictionary có các mục nhập được tải động tại runtime thông qua các query ID:
173
+ #### Các biến thể đối tượng (ví dụ: Dynamic Records)
173
174
 
174
175
  ```ts fileName="product.content.ts"
175
176
  import { t, type Dictionary } from "intlayer";
176
177
 
177
178
  export default {
178
179
  key: "product-copy",
179
- meta: {
180
+ variant: {
180
181
  id: "prod_123",
181
182
  category: "books",
182
183
  },
@@ -229,7 +230,7 @@ export default defineConfig({
229
230
  });
230
231
  ```
231
232
 
232
- - **Compiler**: Kích hoạt tự động khi `compiler.enabled` được đặt và một đường dẫn `compiler.output` được cấu hình. Bạn không còn cần phải đăng ký `intlayerCompiler()` riêng biệt.
233
+ - **Compiler**: Kích hoạt tự động khi `compiler.enabled` được đặt thành `true` và một đường dẫn `compiler.output` được cấu hình. Bạn không còn cần phải đăng ký `intlayerCompiler()` riêng biệt.
233
234
  - **Proxy**: Kích hoạt tự động dựa trên tùy chọn `routing.enableProxy` mới (`true` theo mặc định). Nó kết nối middleware phát hiện ngôn ngữ / chuyển hướng / ghi đè trong phát triển, xem trước và SSR sản xuất. Bạn không còn cần phải đăng ký `intlayerProxy()` riêng biệt.
234
235
 
235
236
  ### Tùy chọn `routing.enableProxy`
@@ -252,17 +253,61 @@ Các plugin độc lập `intlayerCompiler()` và `intlayerProxy()` vẫn đư
252
253
 
253
254
  ---
254
255
 
256
+ ## Compiler bị tắt theo mặc định
257
+
258
+ Kể từ Intlayer v9, **compiler bị tắt theo mặc định** (`compiler.enabled` hiện mặc định là `false`). Để bật trích xuất các file `.content.ts` của bạn tại thời điểm build, hãy đặt `compiler.enabled: true` trong cấu hình của bạn:
259
+
260
+ ```ts fileName="intlayer.config.ts"
261
+ import type { IntlayerConfig } from "intlayer";
262
+
263
+ const config: IntlayerConfig = {
264
+ compiler: {
265
+ enabled: true, // Mặc định: false — bắt buộc để bật compiler kể từ v9
266
+ output: ({ fileName }) => `./${fileName}.content.ts`,
267
+ },
268
+ };
269
+
270
+ export default config;
271
+ ```
272
+
273
+ Khi compiler bị tắt, Intlayer bỏ qua bước trích xuất tại thời điểm build và dựa vào các dictionary mà bạn đã khai báo. Chỉ bật nó khi bạn muốn plugin bundler (`@intlayer/swc`, `@intlayer/babel`, hoặc plugin Vite `intlayer()`) tự động trích xuất nội dung.
274
+
275
+ ---
276
+
277
+ ## React Native: import từ một package duy nhất
278
+
279
+ Trong ứng dụng React Native hoặc Expo, bạn không còn cần phải xoay sở giữa `react-intlayer` và `react-native-intlayer` nữa. Package `react-native-intlayer` hiện **xuất lại toàn bộ API của `react-intlayer`** (các hook, tiện ích và các đường dẫn phụ `/format`, `/html`, và `/markdown`), và `IntlayerProvider` của nó tự động áp dụng các polyfill của React Native.
280
+
281
+ Import mọi thứ từ package `react-native-intlayer` duy nhất:
282
+
283
+ ```tsx
284
+ import {
285
+ IntlayerProvider,
286
+ useIntlayer,
287
+ useLocale,
288
+ } from "react-native-intlayer";
289
+ ```
290
+
291
+ ```bash
292
+ npm install intlayer react-native-intlayer
293
+ ```
294
+
295
+ > Việc import từ `react-intlayer` vẫn tiếp tục hoạt động, nhưng `react-native-intlayer` hiện là điểm vào duy nhất được khuyên dùng cho React Native — provider của nó cung cấp các polyfill mà provider định hướng web `react-intlayer` không có.
296
+
297
+ ---
298
+
255
299
  ## Lưu ý khi migration từ v8
256
300
 
257
301
  Nếu bạn đang nâng cấp từ v8, lưu ý rằng v9 không bao gồm các breaking change. Tuy nhiên, dưới đây là các thay đổi chính:
258
302
 
303
+ - **Compiler bị tắt theo mặc định**: `compiler.enabled` hiện mặc định là `false`. Nếu bạn dựa vào việc trích xuất các file `.content.ts` tại thời điểm build, hãy đặt `compiler.enabled: true` trong `intlayer.config.ts` của bạn.
259
304
  - **Locales & Dialects**: Nếu sử dụng các dependency i18n bên ngoài, hãy thêm các compat adapter plugin tương ứng của chúng vào cấu hình hoặc thiết lập bundler của bạn để tự động rewrite các import.
260
- - **Custom Selectors**: Khi gọi `useIntlayer`, tham số thứ hai giờ đây được dành riêng cho một đối tượng option chứa `{ locale, item, variant, id }`. Nếu trước đây bạn đã truyền trực tiếp một chuỗi locale, bạn vẫn có thể làm như vậy, nhưng việc sử dụng đối tượng options được khuyến nghị cho các lựa chọn nâng cao.
305
+ - **Custom Selectors**: Khi gọi `useIntlayer`, tham số thứ hai giờ đây được dành riêng cho một đối tượng option chứa `{ locale, item, variant }`. Nếu trước đây bạn đã truyền trực tiếp một chuỗi locale, bạn vẫn có thể làm như vậy, nhưng việc sử dụng đối tượng options được khuyến nghị cho các lựa chọn nâng cao.
261
306
 
262
307
  ---
263
308
 
264
309
  ## Liên kết hữu ích
265
310
 
266
311
  - [Hướng dẫn về Compat Adapter Packages](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/compat/index.md)
267
- - [Dynamic Dictionaries - Collections, Variants & Dynamic Records](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dynamic_dictionaries/index.md)
312
+ - [Dynamic Dictionaries - Collections & Variants](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dynamic_dictionaries/index.md)
268
313
  - [Tài liệu tham khảo cấu hình](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/configuration.md)
@@ -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
 
@@ -342,10 +342,16 @@ export function middleware(request: NextRequest) {
342
342
 
343
343
  ```typescript fileName="vite.config.ts"
344
344
  import { defineConfig } from "vite";
345
- import { intlayerProxy } from "vite-intlayer";
345
+ import { intlayer } from "vite-intlayer";
346
346
 
347
347
  export default defineConfig({
348
- plugins: [intlayerProxy()],
348
+ plugins: [
349
+ intlayer({
350
+ proxy: {
351
+ ignore: (req) => req.url?.startsWith("/api"),
352
+ },
353
+ }),
354
+ ],
349
355
  });
350
356
  ```
351
357
 
@@ -1,13 +1,12 @@
1
1
  ---
2
2
  createdAt: 2026-06-12
3
- updatedAt: 2026-06-12
3
+ updatedAt: 2026-06-26
4
4
  title: 动态字典
5
- description: Intlayer 的三种动态字典功能 — 集合、变体和动态记录 — 概述,用于构建灵活、运行时驱动的 i18n 内容。
5
+ description: Intlayer 动态字典功能(集合与变体)的概览,用于构建灵活的、由运行时驱动的 i18n 内容。
6
6
  keywords:
7
7
  - 动态字典
8
8
  - 集合
9
9
  - 变体
10
- - 动态记录
11
10
  - Intlayer
12
11
  - 国际化
13
12
  slugs:
@@ -17,32 +16,39 @@ slugs:
17
16
  history:
18
17
  - version: 9.0.0
19
18
  date: 2026-06-12
20
- changes: "发布动态字典功能"
19
+ changes: "动态字典功能发布"
20
+ - version: 9.1.0
21
+ date: 2026-06-26
22
+ changes: "将动态记录合并到变体中——`variant` 现在接受字符串或对象"
21
23
  author: aymericzip
22
24
  ---
23
25
 
24
26
  # 动态字典
25
27
 
26
- Intlayer 支持三种机制来表达超出每个键单个静态字典范围的内容。每种机制都是通过内容文件中的**顶层元数据字段**声明 ponder 的;不需要包装函数。
28
+ Intlayer 支持两种机制来表达超出每个键单一静态字典的内容。每种机制都通过内容文件中的**顶层元数据字段**声明;无需包装函数。
27
29
 
28
- | 功能 | 元数据字段 | `useIntlayer` 中的选择器 |
29
- | ----------------------------------------------------------------------------------------------------------------- | ----------------- | ------------------------ |
30
- | [集合](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dynamic_dictionaries/collections.md) | `item: N` | `{ item: N }` |
31
- | [变体](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dynamic_dictionaries/variants.md) | `variant: "name"` | `{ variant: "name" }` |
32
- | [动态记录](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dynamic_dictionaries/dynamic_content.md) | `meta: { id, … }` | `{ id, … }` |
30
+ | 功能 | 元数据字段 | `useIntlayer` 中的选择器 |
31
+ | --------------------------------------------------------------------------------------------------------- | --------------------------------------- | ----------------------------------------------- |
32
+ | [集合](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dynamic_dictionaries/collections.md) | `item: N` | `{ item: N }` |
33
+ | [变体](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dynamic_dictionaries/variants.md) | `variant: "name"` _或_ `variant: { … }` | `{ variant: "name" }` _或_ `{ variant: { … } }` |
33
34
 
34
- 这三种机制都与语言环境参数结合使用,并支持通过 `importMode` 进行选择性/延迟加载。
35
+ 两者都可与 locale 参数组合,并支持通过 `importMode` 进行选择性 / 惰性加载。
35
36
 
36
- ## 什么时候使用哪一个
37
+ ## 何时使用哪一个
37
38
 
38
- - **集合** — 在单独文件中管理的有序项目列表(常见问题条目、博客文章、产品)。
39
- - **变体** — 用于 A/B 测试、季节性横幅或功能标志(feature flags)的命名内容替代方案。
40
- - **动态记录** 在运行时通过不透明 ID 获取的内容(CMS 记录、用户特定文案)。
39
+ - **集合** — 在单独文件中管理的有序项目列表(FAQ 条目、博客文章、产品)。
40
+ - **变体** — 具名或结构化的内容替代项:
41
+ - 用于 A/B 测试、季节性横幅或功能开关的**字符串**变体;
42
+ - 用于 CMS 记录、用户特定文案,或由一组字段寻址的任何内容的**对象**变体(即以前的“动态记录”)。
41
43
 
42
- ## 选择器消除歧义
44
+ > 早期版本为按记录键控的内容提供单独的 `meta` 字段。它已合并到 `variant` 中:向 `variant` 传递一个**对象**,而不是使用 `meta`。
43
45
 
44
- 当字典中存在多个选择器时,解析顺序为:
46
+ ## 选择器消歧
47
+
48
+ 一个键可以同时声明两个维度(例如每个项目都有变体的集合)。它们按以下顺序解析:
45
49
 
46
50
  ```
47
- variant → meta → item
51
+ variant → item
48
52
  ```
53
+
54
+ 因此,对 variant × item 键使用 `{ variant: "promo" }` 会以数组形式返回所有 promo 项目,而添加 `{ item: 2 }` 则将其缩小到单个条目。
@@ -1,13 +1,15 @@
1
1
  ---
2
2
  createdAt: 2026-06-12
3
- updatedAt: 2026-06-12
3
+ updatedAt: 2026-06-26
4
4
  title: 变体
5
- description: 在 Intlayer 内容文件中使用 variant 元数据字段来声明命名内容替代方案(A/B 测试、季节性横幅、受功能标志控制的文案),并在运行时切换它们而无需更改代码。
5
+ description: 在 Intlayer 内容文件中使用 variant 元数据字段来声明具名或结构化的内容替代项——A/B 测试、季节性横幅、功能开关文案、CMS 记录、用户特定内容——并在运行时无需更改代码即可在它们之间切换。
6
6
  keywords:
7
7
  - 变体
8
8
  - A/B 测试
9
- - 功能标志
9
+ - 功能开关
10
10
  - 动态内容
11
+ - 动态记录
12
+ - CMS
11
13
  - Intlayer
12
14
  - 国际化
13
15
  slugs:
@@ -17,17 +19,27 @@ slugs:
17
19
  history:
18
20
  - version: 9.0.0
19
21
  date: 2026-06-12
20
- changes: "发布变体字典功能"
22
+ changes: "变体功能发布"
23
+ - version: 9.1.0
24
+ date: 2026-06-26
25
+ changes: "`variant` 现在接受字符串或对象——以前的 `meta` / 动态记录现声明为对象变体"
21
26
  author: aymericzip
22
27
  ---
23
28
 
24
29
  # 变体
25
30
 
26
- **变体**(Variant)是一组共享相同字典键(`key`)但声明不同变体名称(`variant`)的内容文件。Intlayer 会根据传递给 `useIntlayer` 的选择器提供合适的文件。
31
+ **变体**是一组共享相同字典 `key`、但各自携带不同 `variant` 值的内容文件。Intlayer 根据传递给 `useIntlayer` 的选择器提供相应的文件。
27
32
 
28
- ## 声明变体
33
+ `variant` 的值可以采用**两种形式**:
29
34
 
30
- 每个文件代表一个命名替代方案。如果省略 `variant`(或将其设置为 `"default"`),则表示它是默认(回退)变体。
35
+ - **字符串** — 单个具名替代项(A/B 测试、季节性横幅、功能开关)。
36
+ - **对象** — 由一组字段寻址的结构化判别器(CMS 记录、用户特定文案、以不透明 ID 作为键的任何内容)。整个对象即为标识:选择器必须提供一个**相等**的对象才能解析该条目。
37
+
38
+ > 对象形式取代了以前的 `meta` 字段。凡是以前写 `meta: { id, … }` 的地方,请改写为 `variant: { id, … }`,并用 `{ variant: { id, … } }` 进行选择。
39
+
40
+ ## 具名(字符串)变体
41
+
42
+ 每个文件代表一个具名替代项。省略 `variant`(或将其设置为 `"default"`)会将其标记为回退项。
31
43
 
32
44
  ```ts fileName="hero-banner.content.ts" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
33
45
  import { t, type Dictionary } from "intlayer";
@@ -65,9 +77,9 @@ const dictionary = {
65
77
  export default dictionary;
66
78
  ```
67
79
 
68
- ## 使用变体
80
+ ### 使用具名变体
69
81
 
70
- ### 默认变体
82
+ #### 默认变体
71
83
 
72
84
  <Tabs group="framework">
73
85
  <Tab label="React" value="react">
@@ -209,7 +221,7 @@ export default dictionary;
209
221
  </Tab>
210
222
  </Tabs>
211
223
 
212
- ### 命名变体
224
+ #### 具名变体
213
225
 
214
226
  ```tsx
215
227
  const { headline, cta } = useIntlayer("hero-banner", {
@@ -217,18 +229,264 @@ const { headline, cta } = useIntlayer("hero-banner", {
217
229
  });
218
230
  ```
219
231
 
220
- ### 使用显式语言环境的命名变体
232
+ #### 带显式语言环境的具名变体
221
233
 
222
234
  ```tsx
223
235
  const content = useIntlayer("hero-banner", {
224
236
  variant: "black_friday",
225
- locale: "zh",
237
+ locale: "fr",
226
238
  });
227
239
  ```
228
240
 
229
- ## 典型使用场景
241
+ ## 对象(结构化)变体
242
+
243
+ 对象变体通过在 `variant` 字段中声明的任意键值对集合来寻址内容——从而可以建模 CMS 记录、用户特定文案,或键为不透明 ID 的任何内容。**整个对象**即为标识:选择器必须提供一个相等的对象,该条目才会被解析。
244
+
245
+ ```ts fileName="product.abc.content.ts" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
246
+ import { t, type Dictionary } from "intlayer";
247
+
248
+ const dictionary = {
249
+ key: "product",
250
+ variant: { id: "prod_abc", userId: "user_123" },
251
+ content: {
252
+ name: t({ en: "Widget Pro", fr: "Widget Pro" }),
253
+ description: t({ en: "The best widget.", fr: "Le meilleur widget." }),
254
+ },
255
+ } satisfies Dictionary;
256
+
257
+ export default dictionary;
258
+ ```
259
+
260
+ ```ts fileName="product.abcd.content.ts" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
261
+ import { t, type Dictionary } from "intlayer";
262
+
263
+ const dictionary = {
264
+ key: "product",
265
+ variant: { id: "prod_abcd", userId: "user_123" },
266
+ content: {
267
+ name: t({ en: "Widget Lite", fr: "Widget Lite" }),
268
+ description: t({ en: "A lighter option.", fr: "Une option plus légère." }),
269
+ },
270
+ } satisfies Dictionary;
271
+
272
+ export default dictionary;
273
+ ```
274
+
275
+ ### 使用对象变体
276
+
277
+ 将匹配的对象传递给 `variant`。字典上声明的每个字段都必须提供且相等;否则结果为 `null`。字段顺序无关紧要。
278
+
279
+ <Tabs group="framework">
280
+ <Tab label="React" value="react">
281
+ ```tsx fileName="Product.tsx" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
282
+ import { useIntlayer } from "react-intlayer";
283
+
284
+ export const Product = ({
285
+ productId,
286
+ userId,
287
+ }: {
288
+ productId: string;
289
+ userId: string;
290
+ }) => {
291
+ const content = useIntlayer("product", {
292
+ variant: { id: productId, userId },
293
+ });
294
+
295
+ if (!content) return null;
296
+
297
+ return <p>{content.description}</p>;
298
+ };
299
+ ```
300
+
301
+ </Tab>
302
+ <Tab label="Next.js" value="nextjs">
303
+ ```tsx fileName="Product.tsx" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
304
+ import { useIntlayer } from "next-intlayer";
305
+
306
+ export const Product = ({
307
+ productId,
308
+ userId,
309
+ }: {
310
+ productId: string;
311
+ userId: string;
312
+ }) => {
313
+ const content = useIntlayer("product", {
314
+ variant: { id: productId, userId },
315
+ });
316
+
317
+ if (!content) return null;
318
+
319
+ return <p>{content.description}</p>;
320
+ };
321
+ ```
322
+
323
+ </Tab>
324
+ <Tab label="Vue" value="vue">
325
+ ```vue fileName="Product.vue" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
326
+ <script setup>
327
+ import { useIntlayer } from "vue-intlayer";
328
+
329
+ const props = defineProps({
330
+ productId: String,
331
+ userId: String,
332
+ });
333
+
334
+ const content = useIntlayer("product", {
335
+ variant: { id: props.productId, userId: props.userId },
336
+ });
337
+ </script>
338
+
339
+ <template>
340
+ <p v-if="content">{{ content.description }}</p>
341
+ </template>
342
+ ```
343
+
344
+ </Tab>
345
+ <Tab label="Svelte" value="svelte">
346
+ ```svelte fileName="Product.svelte" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
347
+ <script lang="ts">
348
+ import { useIntlayer } from "svelte-intlayer";
349
+
350
+ export let productId: string;
351
+ export let userId: string;
352
+
353
+ const content = useIntlayer("product", {
354
+ variant: { id: productId, userId },
355
+ });
356
+ </script>
357
+
358
+ {#if $content}
359
+ <p>{$content.description}</p>
360
+ {/if}
361
+ ```
362
+
363
+ </Tab>
364
+ <Tab label="Preact" value="preact">
365
+ ```tsx fileName="Product.tsx" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
366
+ import { useIntlayer } from "preact-intlayer";
367
+
368
+ export const Product = ({
369
+ productId,
370
+ userId,
371
+ }: {
372
+ productId: string;
373
+ userId: string;
374
+ }) => {
375
+ const content = useIntlayer("product", {
376
+ variant: { id: productId, userId },
377
+ });
378
+
379
+ if (!content) return null;
380
+
381
+ return <p>{content.description}</p>;
382
+ };
383
+ ```
384
+
385
+ </Tab>
386
+ <Tab label="Solid" value="solid">
387
+ ```tsx fileName="Product.tsx" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
388
+ import { useIntlayer } from "solid-intlayer";
389
+
390
+ export const Product = (props: {
391
+ productId: string;
392
+ userId: string;
393
+ }) => {
394
+ const content = useIntlayer("product", {
395
+ variant: { id: props.productId, userId: props.userId },
396
+ });
397
+
398
+ return (
399
+ <>
400
+ {content() && <p>{content().description}</p>}
401
+ </>
402
+ );
403
+ };
404
+ ```
405
+
406
+ </Tab>
407
+ <Tab label="Angular" value="angular">
408
+ ```typescript fileName="product.component.ts" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
409
+ import { Component, Input, OnInit } from "@angular/core";
410
+ import { useIntlayer } from "angular-intlayer";
411
+
412
+ @Component({
413
+ selector: "app-product",
414
+ template: `
415
+ @if (content()) {
416
+ <p>{{ content().description }}</p>
417
+ }
418
+ `,
419
+ })
420
+ export class ProductComponent implements OnInit {
421
+ @Input() productId!: string;
422
+ @Input() userId!: string;
423
+
424
+ content: any;
425
+
426
+ ngOnInit() {
427
+ this.content = useIntlayer("product", {
428
+ variant: { id: this.productId, userId: this.userId },
429
+ });
430
+ }
431
+ }
432
+ ```
433
+
434
+ </Tab>
435
+ <Tab label="Vanilla JS" value="vanilla">
436
+ ```javascript fileName="product.js"
437
+ import { useIntlayer } from "vanilla-intlayer";
438
+
439
+ const content = useIntlayer("product", {
440
+ variant: { id: "prod_abcd", userId: "user_123" },
441
+ });
442
+
443
+ if (content) {
444
+ document.body.innerHTML = `<p>${content.description}</p>`;
445
+ }
446
+ ```
447
+
448
+ </Tab>
449
+ </Tabs>
450
+
451
+ #### 带显式语言环境
452
+
453
+ ```tsx
454
+ const content = useIntlayer("product", {
455
+ variant: { id: "prod_abc", userId: "user_123" },
456
+ locale: "fr",
457
+ });
458
+ ```
459
+
460
+ #### 缺少字段 — 无匹配
461
+
462
+ ```ts
463
+ // 返回 null:缺少 `userId`,因此对象与声明的变体不匹配
464
+ const content = useIntlayer("product", { variant: { id: "prod_abc" } });
465
+ ```
466
+
467
+ ## 加载模式
468
+
469
+ 对象变体通常被惰性加载。在字典上设置 `importMode` 以控制此行为:
470
+
471
+ ```ts contentDeclarationFormat={["typescript", "esm", "commonjs"]}
472
+ const dictionary = {
473
+ key: "product",
474
+ importMode: "fetch", // or "dynamic"
475
+ variant: { id: "prod_abc", userId: "user_123" },
476
+ content: { … },
477
+ } satisfies Dictionary;
478
+
479
+ export default dictionary;
480
+ ```
481
+
482
+ 有关 `static`、`dynamic` 和 `fetch` 模式的详细信息,请参阅[包优化](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/bundle_optimization.md)。
483
+
484
+ ## 典型用例
230
485
 
231
- - 由实验键值驱动的文案 A/B 测试
486
+ - 由实验键驱动的 A/B 文案测试
232
487
  - 季节性或促销横幅
233
- - 受功能标志(feature flags)控制的消息文案
234
- - 针对特定区域的营销活动
488
+ - 功能开关消息
489
+ - 特定语言环境的营销活动
490
+ - 在 CMS 中管理的按产品营销文案
491
+ - 用户特定或账户特定的内容
492
+ - 在运行时以不透明 ID 作为键的任何内容
@@ -539,6 +539,8 @@ bun x intlayer extract
539
539
  </Tab>
540
540
  <Tab value='Babel 编译器'>
541
541
 
542
+ > Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
543
+
542
544
  更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
543
545
 
544
546
  ```ts fileName="vite.config.ts"
@@ -548,7 +550,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
548
550
  export default defineConfig({
549
551
  plugins: [
550
552
  intlayer(),
551
- intlayerCompiler(), // 添加编译器插件
553
+ intlayerCompiler(), // Adds the compiler plugin
552
554
  ],
553
555
  });
554
556
  ```
@@ -590,6 +590,8 @@ bun x intlayer extract
590
590
  </Tab>
591
591
  <Tab value='Babel 编译器'>
592
592
 
593
+ > Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
594
+
593
595
  更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
594
596
 
595
597
  ```ts fileName="vite.config.ts"
@@ -599,7 +601,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
599
601
  export default defineConfig({
600
602
  plugins: [
601
603
  intlayer(),
602
- intlayerCompiler(), // 添加编译器插件
604
+ intlayerCompiler(), // Adds the compiler plugin
603
605
  ],
604
606
  });
605
607
  ```
@@ -545,6 +545,8 @@ bun x intlayer extract
545
545
  </Tab>
546
546
  <Tab value='Babel 编译器'>
547
547
 
548
+ > Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
549
+
548
550
  更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
549
551
 
550
552
  ```ts fileName="vite.config.ts"
@@ -554,7 +556,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
554
556
  export default defineConfig({
555
557
  plugins: [
556
558
  intlayer(),
557
- intlayerCompiler(), // 添加编译器插件
559
+ intlayerCompiler(), // Adds the compiler plugin
558
560
  ],
559
561
  });
560
562
  ```