@intlayer/docs 9.5.5 → 9.5.6

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 (447) hide show
  1. package/README.md +0 -1
  2. package/blog/ar/transform_existing_vite_react_app_using_compiler.md +4 -2
  3. package/blog/de/transform_existing_vite_react_app_using_compiler.md +4 -2
  4. package/blog/en/transform_existing_vite_react_app_using_compiler.md +4 -2
  5. package/blog/en-GB/transform_existing_vite_react_app_using_compiler.md +4 -2
  6. package/blog/es/transform_existing_vite_react_app_using_compiler.md +4 -2
  7. package/blog/fr/transform_existing_vite_react_app_using_compiler.md +4 -2
  8. package/blog/hi/transform_existing_vite_react_app_using_compiler.md +4 -2
  9. package/blog/id/transform_existing_vite_react_app_using_compiler.md +4 -2
  10. package/blog/it/transform_existing_vite_react_app_using_compiler.md +4 -2
  11. package/blog/ja/transform_existing_vite_react_app_using_compiler.md +4 -2
  12. package/blog/ko/transform_existing_vite_react_app_using_compiler.md +4 -2
  13. package/blog/pl/transform_existing_vite_react_app_using_compiler.md +4 -2
  14. package/blog/pt/transform_existing_vite_react_app_using_compiler.md +4 -2
  15. package/blog/ru/transform_existing_vite_react_app_using_compiler.md +4 -2
  16. package/blog/tr/transform_existing_vite_react_app_using_compiler.md +4 -2
  17. package/blog/uk/transform_existing_vite_react_app_using_compiler.md +4 -2
  18. package/blog/vi/transform_existing_vite_react_app_using_compiler.md +4 -2
  19. package/blog/zh/transform_existing_vite_react_app_using_compiler.md +4 -2
  20. package/docs/ar/intlayer_with_astro.md +19 -32
  21. package/docs/ar/intlayer_with_astro_lit.md +32 -36
  22. package/docs/ar/intlayer_with_astro_preact.md +32 -36
  23. package/docs/ar/intlayer_with_astro_react.md +32 -36
  24. package/docs/ar/intlayer_with_astro_solid.md +32 -36
  25. package/docs/ar/intlayer_with_astro_svelte.md +32 -36
  26. package/docs/ar/intlayer_with_astro_vue.md +32 -36
  27. package/docs/ar/intlayer_with_react_router_v7.md +12 -1
  28. package/docs/ar/intlayer_with_solid_start.md +14 -7
  29. package/docs/ar/intlayer_with_svelte_kit.md +12 -1
  30. package/docs/ar/intlayer_with_tanstack+solid.md +13 -2
  31. package/docs/ar/intlayer_with_tanstack.md +13 -6
  32. package/docs/ar/intlayer_with_vite+lit.md +75 -3
  33. package/docs/ar/intlayer_with_vite+preact.md +27 -19
  34. package/docs/ar/intlayer_with_vite+react.md +27 -19
  35. package/docs/ar/intlayer_with_vite+solid.md +27 -19
  36. package/docs/ar/intlayer_with_vite+svelte.md +27 -19
  37. package/docs/ar/intlayer_with_vite+vanilla.md +16 -3
  38. package/docs/ar/intlayer_with_vite+vue.md +27 -19
  39. package/docs/ar/introduction.md +0 -1
  40. package/docs/ar/readme.md +0 -1
  41. package/docs/ar/releases/v8.md +1 -5
  42. package/docs/bn/intlayer_with_vite+lit.md +75 -3
  43. package/docs/bn/intlayer_with_vite+vanilla.md +16 -3
  44. package/docs/bn/introduction.md +0 -1
  45. package/docs/cs/intlayer_with_vite+lit.md +75 -3
  46. package/docs/cs/intlayer_with_vite+vanilla.md +16 -3
  47. package/docs/cs/introduction.md +0 -1
  48. package/docs/de/intlayer_with_astro.md +12 -25
  49. package/docs/de/intlayer_with_astro_lit.md +23 -27
  50. package/docs/de/intlayer_with_astro_preact.md +23 -27
  51. package/docs/de/intlayer_with_astro_react.md +23 -27
  52. package/docs/de/intlayer_with_astro_solid.md +23 -27
  53. package/docs/de/intlayer_with_astro_svelte.md +23 -27
  54. package/docs/de/intlayer_with_astro_vue.md +23 -27
  55. package/docs/de/intlayer_with_react_router_v7.md +12 -1
  56. package/docs/de/intlayer_with_solid_start.md +14 -7
  57. package/docs/de/intlayer_with_svelte_kit.md +12 -1
  58. package/docs/de/intlayer_with_tanstack+solid.md +13 -2
  59. package/docs/de/intlayer_with_tanstack.md +13 -6
  60. package/docs/de/intlayer_with_vite+lit.md +75 -3
  61. package/docs/de/intlayer_with_vite+preact.md +16 -3
  62. package/docs/de/intlayer_with_vite+react.md +16 -3
  63. package/docs/de/intlayer_with_vite+solid.md +16 -3
  64. package/docs/de/intlayer_with_vite+svelte.md +16 -3
  65. package/docs/de/intlayer_with_vite+vanilla.md +16 -3
  66. package/docs/de/intlayer_with_vite+vue.md +16 -3
  67. package/docs/de/introduction.md +0 -1
  68. package/docs/de/readme.md +0 -1
  69. package/docs/de/releases/v8.md +1 -5
  70. package/docs/en/intlayer_with_astro.md +5 -20
  71. package/docs/en/intlayer_with_astro_lit.md +22 -26
  72. package/docs/en/intlayer_with_astro_preact.md +22 -26
  73. package/docs/en/intlayer_with_astro_react.md +22 -26
  74. package/docs/en/intlayer_with_astro_solid.md +22 -26
  75. package/docs/en/intlayer_with_astro_svelte.md +22 -26
  76. package/docs/en/intlayer_with_astro_vanilla.md +20 -13
  77. package/docs/en/intlayer_with_astro_vue.md +22 -26
  78. package/docs/en/intlayer_with_react_router_v7.md +12 -1
  79. package/docs/en/intlayer_with_solid_start.md +14 -7
  80. package/docs/en/intlayer_with_svelte_kit.md +12 -1
  81. package/docs/en/intlayer_with_tanstack+solid.md +13 -2
  82. package/docs/en/intlayer_with_tanstack.md +12 -5
  83. package/docs/en/intlayer_with_vite+lit.md +75 -3
  84. package/docs/en/intlayer_with_vite+preact.md +16 -3
  85. package/docs/en/intlayer_with_vite+react.md +16 -3
  86. package/docs/en/intlayer_with_vite+solid.md +16 -3
  87. package/docs/en/intlayer_with_vite+svelte.md +16 -3
  88. package/docs/en/intlayer_with_vite+vanilla.md +16 -3
  89. package/docs/en/intlayer_with_vite+vue.md +16 -3
  90. package/docs/en/introduction.md +0 -1
  91. package/docs/en/readme.md +0 -1
  92. package/docs/en/releases/v8.md +1 -5
  93. package/docs/en-GB/intlayer_with_astro.md +12 -25
  94. package/docs/en-GB/intlayer_with_astro_lit.md +23 -27
  95. package/docs/en-GB/intlayer_with_astro_preact.md +23 -27
  96. package/docs/en-GB/intlayer_with_astro_react.md +23 -27
  97. package/docs/en-GB/intlayer_with_astro_solid.md +23 -27
  98. package/docs/en-GB/intlayer_with_astro_svelte.md +23 -27
  99. package/docs/en-GB/intlayer_with_astro_vue.md +23 -27
  100. package/docs/en-GB/intlayer_with_react_router_v7.md +12 -1
  101. package/docs/en-GB/intlayer_with_solid_start.md +14 -7
  102. package/docs/en-GB/intlayer_with_svelte_kit.md +12 -1
  103. package/docs/en-GB/intlayer_with_tanstack+solid.md +13 -2
  104. package/docs/en-GB/intlayer_with_tanstack.md +13 -6
  105. package/docs/en-GB/intlayer_with_vite+lit.md +75 -3
  106. package/docs/en-GB/intlayer_with_vite+preact.md +16 -3
  107. package/docs/en-GB/intlayer_with_vite+react.md +16 -3
  108. package/docs/en-GB/intlayer_with_vite+solid.md +25 -15
  109. package/docs/en-GB/intlayer_with_vite+svelte.md +16 -3
  110. package/docs/en-GB/intlayer_with_vite+vanilla.md +16 -3
  111. package/docs/en-GB/intlayer_with_vite+vue.md +16 -3
  112. package/docs/en-GB/introduction.md +0 -1
  113. package/docs/en-GB/readme.md +0 -1
  114. package/docs/en-GB/releases/v8.md +1 -5
  115. package/docs/es/intlayer_with_astro.md +12 -25
  116. package/docs/es/intlayer_with_astro_lit.md +23 -27
  117. package/docs/es/intlayer_with_astro_preact.md +23 -27
  118. package/docs/es/intlayer_with_astro_react.md +23 -27
  119. package/docs/es/intlayer_with_astro_solid.md +23 -27
  120. package/docs/es/intlayer_with_astro_svelte.md +23 -27
  121. package/docs/es/intlayer_with_astro_vue.md +23 -27
  122. package/docs/es/intlayer_with_react_router_v7.md +12 -1
  123. package/docs/es/intlayer_with_solid_start.md +14 -7
  124. package/docs/es/intlayer_with_svelte_kit.md +12 -1
  125. package/docs/es/intlayer_with_tanstack+solid.md +13 -2
  126. package/docs/es/intlayer_with_tanstack.md +13 -6
  127. package/docs/es/intlayer_with_vite+lit.md +75 -3
  128. package/docs/es/intlayer_with_vite+preact.md +16 -3
  129. package/docs/es/intlayer_with_vite+react.md +16 -3
  130. package/docs/es/intlayer_with_vite+solid.md +16 -3
  131. package/docs/es/intlayer_with_vite+svelte.md +16 -3
  132. package/docs/es/intlayer_with_vite+vanilla.md +16 -3
  133. package/docs/es/intlayer_with_vite+vue.md +16 -3
  134. package/docs/es/introduction.md +0 -1
  135. package/docs/es/readme.md +0 -1
  136. package/docs/es/releases/v8.md +1 -5
  137. package/docs/fr/intlayer_with_astro.md +13 -26
  138. package/docs/fr/intlayer_with_astro_lit.md +24 -28
  139. package/docs/fr/intlayer_with_astro_preact.md +24 -28
  140. package/docs/fr/intlayer_with_astro_react.md +24 -28
  141. package/docs/fr/intlayer_with_astro_solid.md +24 -28
  142. package/docs/fr/intlayer_with_astro_svelte.md +24 -28
  143. package/docs/fr/intlayer_with_astro_vue.md +24 -28
  144. package/docs/fr/intlayer_with_react_router_v7.md +15 -4
  145. package/docs/fr/intlayer_with_solid_start.md +14 -7
  146. package/docs/fr/intlayer_with_svelte_kit.md +15 -4
  147. package/docs/fr/intlayer_with_tanstack+solid.md +15 -4
  148. package/docs/fr/intlayer_with_tanstack.md +13 -6
  149. package/docs/fr/intlayer_with_vite+lit.md +75 -3
  150. package/docs/fr/intlayer_with_vite+preact.md +19 -6
  151. package/docs/fr/intlayer_with_vite+react.md +19 -6
  152. package/docs/fr/intlayer_with_vite+solid.md +19 -6
  153. package/docs/fr/intlayer_with_vite+svelte.md +19 -6
  154. package/docs/fr/intlayer_with_vite+vanilla.md +19 -6
  155. package/docs/fr/intlayer_with_vite+vue.md +19 -6
  156. package/docs/fr/introduction.md +0 -1
  157. package/docs/fr/readme.md +0 -1
  158. package/docs/fr/releases/v8.md +1 -5
  159. package/docs/hi/intlayer_with_astro.md +15 -31
  160. package/docs/hi/intlayer_with_astro_lit.md +26 -33
  161. package/docs/hi/intlayer_with_astro_preact.md +26 -33
  162. package/docs/hi/intlayer_with_astro_react.md +26 -33
  163. package/docs/hi/intlayer_with_astro_solid.md +26 -33
  164. package/docs/hi/intlayer_with_astro_svelte.md +26 -33
  165. package/docs/hi/intlayer_with_astro_vue.md +26 -33
  166. package/docs/hi/intlayer_with_react_router_v7.md +20 -12
  167. package/docs/hi/intlayer_with_solid_start.md +14 -7
  168. package/docs/hi/intlayer_with_svelte_kit.md +20 -12
  169. package/docs/hi/intlayer_with_tanstack+solid.md +13 -2
  170. package/docs/hi/intlayer_with_tanstack.md +21 -17
  171. package/docs/hi/intlayer_with_vite+lit.md +75 -3
  172. package/docs/hi/intlayer_with_vite+preact.md +24 -14
  173. package/docs/hi/intlayer_with_vite+react.md +24 -14
  174. package/docs/hi/intlayer_with_vite+solid.md +24 -14
  175. package/docs/hi/intlayer_with_vite+svelte.md +24 -14
  176. package/docs/hi/intlayer_with_vite+vanilla.md +16 -3
  177. package/docs/hi/intlayer_with_vite+vue.md +24 -14
  178. package/docs/hi/introduction.md +0 -1
  179. package/docs/hi/readme.md +0 -1
  180. package/docs/hi/releases/v8.md +1 -5
  181. package/docs/id/intlayer_with_astro.md +12 -25
  182. package/docs/id/intlayer_with_astro_lit.md +23 -27
  183. package/docs/id/intlayer_with_astro_preact.md +23 -27
  184. package/docs/id/intlayer_with_astro_react.md +23 -27
  185. package/docs/id/intlayer_with_astro_solid.md +23 -27
  186. package/docs/id/intlayer_with_astro_svelte.md +23 -27
  187. package/docs/id/intlayer_with_astro_vue.md +23 -27
  188. package/docs/id/intlayer_with_react_router_v7.md +12 -1
  189. package/docs/id/intlayer_with_solid_start.md +14 -7
  190. package/docs/id/intlayer_with_svelte_kit.md +12 -1
  191. package/docs/id/intlayer_with_tanstack+solid.md +13 -2
  192. package/docs/id/intlayer_with_tanstack.md +13 -6
  193. package/docs/id/intlayer_with_vite+lit.md +75 -3
  194. package/docs/id/intlayer_with_vite+preact.md +16 -3
  195. package/docs/id/intlayer_with_vite+react.md +16 -3
  196. package/docs/id/intlayer_with_vite+solid.md +16 -3
  197. package/docs/id/intlayer_with_vite+svelte.md +16 -3
  198. package/docs/id/intlayer_with_vite+vanilla.md +16 -3
  199. package/docs/id/intlayer_with_vite+vue.md +16 -3
  200. package/docs/id/introduction.md +0 -1
  201. package/docs/id/readme.md +0 -1
  202. package/docs/id/releases/v8.md +1 -5
  203. package/docs/it/intlayer_with_astro.md +12 -25
  204. package/docs/it/intlayer_with_astro_lit.md +23 -27
  205. package/docs/it/intlayer_with_astro_preact.md +23 -27
  206. package/docs/it/intlayer_with_astro_react.md +23 -27
  207. package/docs/it/intlayer_with_astro_solid.md +23 -27
  208. package/docs/it/intlayer_with_astro_svelte.md +23 -27
  209. package/docs/it/intlayer_with_astro_vue.md +23 -27
  210. package/docs/it/intlayer_with_react_router_v7.md +12 -1
  211. package/docs/it/intlayer_with_solid_start.md +14 -7
  212. package/docs/it/intlayer_with_svelte_kit.md +12 -1
  213. package/docs/it/intlayer_with_tanstack+solid.md +13 -2
  214. package/docs/it/intlayer_with_tanstack.md +13 -6
  215. package/docs/it/intlayer_with_vite+lit.md +75 -3
  216. package/docs/it/intlayer_with_vite+preact.md +16 -3
  217. package/docs/it/intlayer_with_vite+react.md +16 -3
  218. package/docs/it/intlayer_with_vite+solid.md +16 -3
  219. package/docs/it/intlayer_with_vite+svelte.md +16 -3
  220. package/docs/it/intlayer_with_vite+vanilla.md +16 -3
  221. package/docs/it/intlayer_with_vite+vue.md +16 -3
  222. package/docs/it/introduction.md +0 -1
  223. package/docs/it/readme.md +0 -1
  224. package/docs/it/releases/v8.md +1 -5
  225. package/docs/ja/intlayer_with_astro.md +12 -25
  226. package/docs/ja/intlayer_with_astro_lit.md +23 -27
  227. package/docs/ja/intlayer_with_astro_preact.md +23 -27
  228. package/docs/ja/intlayer_with_astro_react.md +23 -27
  229. package/docs/ja/intlayer_with_astro_solid.md +23 -27
  230. package/docs/ja/intlayer_with_astro_svelte.md +23 -27
  231. package/docs/ja/intlayer_with_astro_vue.md +23 -27
  232. package/docs/ja/intlayer_with_react_router_v7.md +12 -1
  233. package/docs/ja/intlayer_with_solid_start.md +14 -7
  234. package/docs/ja/intlayer_with_svelte_kit.md +21 -15
  235. package/docs/ja/intlayer_with_tanstack+solid.md +13 -2
  236. package/docs/ja/intlayer_with_tanstack.md +13 -6
  237. package/docs/ja/intlayer_with_vite+lit.md +75 -3
  238. package/docs/ja/intlayer_with_vite+preact.md +16 -3
  239. package/docs/ja/intlayer_with_vite+react.md +16 -3
  240. package/docs/ja/intlayer_with_vite+solid.md +16 -3
  241. package/docs/ja/intlayer_with_vite+svelte.md +16 -3
  242. package/docs/ja/intlayer_with_vite+vanilla.md +16 -3
  243. package/docs/ja/intlayer_with_vite+vue.md +16 -3
  244. package/docs/ja/introduction.md +0 -1
  245. package/docs/ja/readme.md +0 -1
  246. package/docs/ja/releases/v8.md +1 -5
  247. package/docs/ko/intlayer_with_astro.md +6 -21
  248. package/docs/ko/intlayer_with_astro_lit.md +23 -27
  249. package/docs/ko/intlayer_with_astro_preact.md +23 -27
  250. package/docs/ko/intlayer_with_astro_react.md +23 -27
  251. package/docs/ko/intlayer_with_astro_solid.md +23 -27
  252. package/docs/ko/intlayer_with_astro_svelte.md +23 -27
  253. package/docs/ko/intlayer_with_astro_vue.md +23 -27
  254. package/docs/ko/intlayer_with_react_router_v7.md +12 -1
  255. package/docs/ko/intlayer_with_solid_start.md +14 -7
  256. package/docs/ko/intlayer_with_svelte_kit.md +12 -1
  257. package/docs/ko/intlayer_with_tanstack+solid.md +13 -2
  258. package/docs/ko/intlayer_with_tanstack.md +13 -6
  259. package/docs/ko/intlayer_with_vite+lit.md +75 -3
  260. package/docs/ko/intlayer_with_vite+preact.md +16 -3
  261. package/docs/ko/intlayer_with_vite+react.md +16 -3
  262. package/docs/ko/intlayer_with_vite+solid.md +26 -16
  263. package/docs/ko/intlayer_with_vite+svelte.md +16 -3
  264. package/docs/ko/intlayer_with_vite+vanilla.md +16 -3
  265. package/docs/ko/intlayer_with_vite+vue.md +16 -3
  266. package/docs/ko/introduction.md +0 -1
  267. package/docs/ko/readme.md +0 -1
  268. package/docs/ko/releases/v8.md +1 -5
  269. package/docs/nl/intlayer_with_vite+lit.md +75 -3
  270. package/docs/nl/intlayer_with_vite+vanilla.md +16 -3
  271. package/docs/nl/introduction.md +0 -1
  272. package/docs/pl/intlayer_with_astro.md +6 -21
  273. package/docs/pl/intlayer_with_astro_lit.md +23 -27
  274. package/docs/pl/intlayer_with_astro_preact.md +23 -27
  275. package/docs/pl/intlayer_with_astro_react.md +23 -27
  276. package/docs/pl/intlayer_with_astro_solid.md +23 -27
  277. package/docs/pl/intlayer_with_astro_svelte.md +23 -27
  278. package/docs/pl/intlayer_with_astro_vue.md +23 -27
  279. package/docs/pl/intlayer_with_react_router_v7.md +12 -1
  280. package/docs/pl/intlayer_with_solid_start.md +14 -7
  281. package/docs/pl/intlayer_with_svelte_kit.md +12 -1
  282. package/docs/pl/intlayer_with_tanstack+solid.md +13 -2
  283. package/docs/pl/intlayer_with_tanstack.md +13 -6
  284. package/docs/pl/intlayer_with_vite+lit.md +75 -3
  285. package/docs/pl/intlayer_with_vite+preact.md +16 -3
  286. package/docs/pl/intlayer_with_vite+react.md +16 -3
  287. package/docs/pl/intlayer_with_vite+solid.md +16 -3
  288. package/docs/pl/intlayer_with_vite+svelte.md +16 -3
  289. package/docs/pl/intlayer_with_vite+vanilla.md +16 -3
  290. package/docs/pl/intlayer_with_vite+vue.md +16 -3
  291. package/docs/pl/introduction.md +0 -1
  292. package/docs/pl/readme.md +0 -1
  293. package/docs/pl/releases/v8.md +1 -5
  294. package/docs/pt/intlayer_with_astro.md +6 -21
  295. package/docs/pt/intlayer_with_astro_lit.md +23 -27
  296. package/docs/pt/intlayer_with_astro_preact.md +23 -27
  297. package/docs/pt/intlayer_with_astro_react.md +23 -27
  298. package/docs/pt/intlayer_with_astro_solid.md +23 -27
  299. package/docs/pt/intlayer_with_astro_svelte.md +23 -27
  300. package/docs/pt/intlayer_with_astro_vue.md +23 -27
  301. package/docs/pt/intlayer_with_react_router_v7.md +12 -1
  302. package/docs/pt/intlayer_with_solid_start.md +14 -7
  303. package/docs/pt/intlayer_with_svelte_kit.md +12 -1
  304. package/docs/pt/intlayer_with_tanstack+solid.md +13 -2
  305. package/docs/pt/intlayer_with_tanstack.md +13 -6
  306. package/docs/pt/intlayer_with_vite+lit.md +75 -3
  307. package/docs/pt/intlayer_with_vite+preact.md +16 -3
  308. package/docs/pt/intlayer_with_vite+react.md +16 -3
  309. package/docs/pt/intlayer_with_vite+solid.md +16 -3
  310. package/docs/pt/intlayer_with_vite+svelte.md +16 -3
  311. package/docs/pt/intlayer_with_vite+vanilla.md +16 -3
  312. package/docs/pt/intlayer_with_vite+vue.md +16 -3
  313. package/docs/pt/introduction.md +0 -1
  314. package/docs/pt/readme.md +0 -1
  315. package/docs/pt/releases/v8.md +1 -5
  316. package/docs/ru/intlayer_with_astro.md +12 -25
  317. package/docs/ru/intlayer_with_astro_lit.md +23 -27
  318. package/docs/ru/intlayer_with_astro_preact.md +23 -27
  319. package/docs/ru/intlayer_with_astro_react.md +23 -27
  320. package/docs/ru/intlayer_with_astro_solid.md +23 -27
  321. package/docs/ru/intlayer_with_astro_svelte.md +23 -27
  322. package/docs/ru/intlayer_with_astro_vue.md +23 -27
  323. package/docs/ru/intlayer_with_react_router_v7.md +12 -1
  324. package/docs/ru/intlayer_with_solid_start.md +14 -7
  325. package/docs/ru/intlayer_with_svelte_kit.md +12 -1
  326. package/docs/ru/intlayer_with_tanstack+solid.md +13 -2
  327. package/docs/ru/intlayer_with_tanstack.md +13 -6
  328. package/docs/ru/intlayer_with_vite+lit.md +75 -3
  329. package/docs/ru/intlayer_with_vite+preact.md +16 -3
  330. package/docs/ru/intlayer_with_vite+react.md +16 -3
  331. package/docs/ru/intlayer_with_vite+solid.md +16 -3
  332. package/docs/ru/intlayer_with_vite+svelte.md +16 -3
  333. package/docs/ru/intlayer_with_vite+vanilla.md +16 -3
  334. package/docs/ru/intlayer_with_vite+vue.md +16 -3
  335. package/docs/ru/introduction.md +0 -1
  336. package/docs/ru/readme.md +0 -1
  337. package/docs/ru/releases/v8.md +1 -5
  338. package/docs/tr/intlayer_with_astro.md +12 -25
  339. package/docs/tr/intlayer_with_astro_lit.md +24 -28
  340. package/docs/tr/intlayer_with_astro_preact.md +24 -28
  341. package/docs/tr/intlayer_with_astro_react.md +24 -28
  342. package/docs/tr/intlayer_with_astro_solid.md +24 -28
  343. package/docs/tr/intlayer_with_astro_svelte.md +24 -28
  344. package/docs/tr/intlayer_with_astro_vue.md +24 -28
  345. package/docs/tr/intlayer_with_react_router_v7.md +12 -1
  346. package/docs/tr/intlayer_with_solid_start.md +14 -7
  347. package/docs/tr/intlayer_with_svelte_kit.md +12 -1
  348. package/docs/tr/intlayer_with_tanstack+solid.md +13 -2
  349. package/docs/tr/intlayer_with_tanstack.md +13 -6
  350. package/docs/tr/intlayer_with_vite+lit.md +75 -3
  351. package/docs/tr/intlayer_with_vite+preact.md +16 -3
  352. package/docs/tr/intlayer_with_vite+react.md +16 -3
  353. package/docs/tr/intlayer_with_vite+solid.md +16 -3
  354. package/docs/tr/intlayer_with_vite+svelte.md +16 -3
  355. package/docs/tr/intlayer_with_vite+vanilla.md +16 -3
  356. package/docs/tr/intlayer_with_vite+vue.md +16 -3
  357. package/docs/tr/introduction.md +0 -1
  358. package/docs/tr/readme.md +0 -1
  359. package/docs/tr/releases/v8.md +1 -5
  360. package/docs/uk/intlayer_with_astro.md +12 -25
  361. package/docs/uk/intlayer_with_astro_lit.md +23 -27
  362. package/docs/uk/intlayer_with_astro_preact.md +23 -27
  363. package/docs/uk/intlayer_with_astro_react.md +23 -27
  364. package/docs/uk/intlayer_with_astro_solid.md +23 -27
  365. package/docs/uk/intlayer_with_astro_svelte.md +23 -27
  366. package/docs/uk/intlayer_with_astro_vue.md +23 -27
  367. package/docs/uk/intlayer_with_react_router_v7.md +12 -1
  368. package/docs/uk/intlayer_with_solid_start.md +14 -7
  369. package/docs/uk/intlayer_with_svelte_kit.md +12 -1
  370. package/docs/uk/intlayer_with_tanstack+solid.md +13 -2
  371. package/docs/uk/intlayer_with_tanstack.md +13 -6
  372. package/docs/uk/intlayer_with_vite+lit.md +75 -3
  373. package/docs/uk/intlayer_with_vite+preact.md +16 -3
  374. package/docs/uk/intlayer_with_vite+react.md +16 -3
  375. package/docs/uk/intlayer_with_vite+solid.md +16 -3
  376. package/docs/uk/intlayer_with_vite+svelte.md +16 -3
  377. package/docs/uk/intlayer_with_vite+vanilla.md +16 -3
  378. package/docs/uk/intlayer_with_vite+vue.md +16 -3
  379. package/docs/uk/introduction.md +0 -1
  380. package/docs/uk/readme.md +0 -1
  381. package/docs/uk/releases/v8.md +1 -5
  382. package/docs/ur/intlayer_with_vite+lit.md +75 -3
  383. package/docs/ur/intlayer_with_vite+vanilla.md +16 -3
  384. package/docs/ur/introduction.md +0 -1
  385. package/docs/vi/intlayer_with_astro.md +12 -25
  386. package/docs/vi/intlayer_with_astro_lit.md +23 -27
  387. package/docs/vi/intlayer_with_astro_preact.md +23 -27
  388. package/docs/vi/intlayer_with_astro_react.md +23 -27
  389. package/docs/vi/intlayer_with_astro_solid.md +23 -27
  390. package/docs/vi/intlayer_with_astro_svelte.md +23 -27
  391. package/docs/vi/intlayer_with_astro_vue.md +23 -27
  392. package/docs/vi/intlayer_with_react_router_v7.md +12 -1
  393. package/docs/vi/intlayer_with_solid_start.md +14 -7
  394. package/docs/vi/intlayer_with_svelte_kit.md +12 -1
  395. package/docs/vi/intlayer_with_tanstack+solid.md +13 -2
  396. package/docs/vi/intlayer_with_tanstack.md +13 -6
  397. package/docs/vi/intlayer_with_vite+lit.md +75 -3
  398. package/docs/vi/intlayer_with_vite+preact.md +16 -3
  399. package/docs/vi/intlayer_with_vite+react.md +16 -3
  400. package/docs/vi/intlayer_with_vite+solid.md +16 -3
  401. package/docs/vi/intlayer_with_vite+svelte.md +16 -3
  402. package/docs/vi/intlayer_with_vite+vanilla.md +16 -3
  403. package/docs/vi/intlayer_with_vite+vue.md +16 -3
  404. package/docs/vi/introduction.md +0 -1
  405. package/docs/vi/readme.md +0 -1
  406. package/docs/vi/releases/v8.md +1 -5
  407. package/docs/zh/intlayer_with_astro.md +6 -21
  408. package/docs/zh/intlayer_with_astro_lit.md +23 -27
  409. package/docs/zh/intlayer_with_astro_preact.md +23 -27
  410. package/docs/zh/intlayer_with_astro_react.md +23 -27
  411. package/docs/zh/intlayer_with_astro_solid.md +23 -27
  412. package/docs/zh/intlayer_with_astro_svelte.md +23 -27
  413. package/docs/zh/intlayer_with_astro_vue.md +23 -27
  414. package/docs/zh/intlayer_with_react_router_v7.md +12 -1
  415. package/docs/zh/intlayer_with_solid_start.md +14 -7
  416. package/docs/zh/intlayer_with_svelte_kit.md +12 -1
  417. package/docs/zh/intlayer_with_tanstack+solid.md +13 -2
  418. package/docs/zh/intlayer_with_tanstack.md +13 -6
  419. package/docs/zh/intlayer_with_vite+lit.md +75 -3
  420. package/docs/zh/intlayer_with_vite+preact.md +16 -3
  421. package/docs/zh/intlayer_with_vite+react.md +16 -3
  422. package/docs/zh/intlayer_with_vite+solid.md +16 -3
  423. package/docs/zh/intlayer_with_vite+svelte.md +16 -3
  424. package/docs/zh/intlayer_with_vite+vanilla.md +16 -3
  425. package/docs/zh/intlayer_with_vite+vue.md +16 -3
  426. package/docs/zh/introduction.md +0 -1
  427. package/docs/zh/readme.md +0 -1
  428. package/docs/zh/releases/v8.md +1 -5
  429. package/docs/zh-TW/introduction.md +0 -1
  430. package/package.json +6 -6
  431. package/docs/ar/intlayer_with_astro_vanilla.md +0 -709
  432. package/docs/de/intlayer_with_astro_vanilla.md +0 -705
  433. package/docs/en-GB/intlayer_with_astro_vanilla.md +0 -709
  434. package/docs/es/intlayer_with_astro_vanilla.md +0 -701
  435. package/docs/fr/intlayer_with_astro_vanilla.md +0 -701
  436. package/docs/hi/intlayer_with_astro_vanilla.md +0 -720
  437. package/docs/id/intlayer_with_astro_vanilla.md +0 -705
  438. package/docs/it/intlayer_with_astro_vanilla.md +0 -705
  439. package/docs/ja/intlayer_with_astro_vanilla.md +0 -708
  440. package/docs/ko/intlayer_with_astro_vanilla.md +0 -720
  441. package/docs/pl/intlayer_with_astro_vanilla.md +0 -705
  442. package/docs/pt/intlayer_with_astro_vanilla.md +0 -705
  443. package/docs/ru/intlayer_with_astro_vanilla.md +0 -716
  444. package/docs/tr/intlayer_with_astro_vanilla.md +0 -705
  445. package/docs/uk/intlayer_with_astro_vanilla.md +0 -705
  446. package/docs/vi/intlayer_with_astro_vanilla.md +0 -705
  447. package/docs/zh/intlayer_with_astro_vanilla.md +0 -704
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2026-04-24
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "Astro + Svelte i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) Astro + Svelte 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
6
6
  keywords:
@@ -19,6 +19,9 @@ slugs:
19
19
  applicationTemplate: https://github.com/aymericzip/intlayer-astro-template
20
20
  applicationShowcase: https://intlayer-astro-template.vercel.app
21
21
  history:
22
+ - version: 9.5.5
23
+ date: 2026-09-19
24
+ changes: "在 Astro 页面中使用 astro-intlayer 的 useIntlayer / useLocale 钩子"
22
25
  - version: 8.9.0
23
26
  date: 2026-05-04
24
27
  changes: "更新 Solid useIntlayer API 用法以直接访问属性"
@@ -150,7 +153,7 @@ bun add intlayer astro-intlayer svelte svelte-intlayer @astrojs/svelte
150
153
  核心软件包,提供用于配置管理、翻译、[内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)、编译和 [CLI 命令](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/cli/index.md)的国际化工具。
151
154
 
152
155
  - **astro-intlayer**
153
- 包含将 Intlayer 与 [Vite 构建器](https://vite.dev/guide/why.html#why-bundle-for-production)集成的 Astro 集成插件,以及用于检测用户首选语言、管理 Cookie 和处理 URL 重定向的中间件。
156
+ 包含用于将 Intlayer 与 [Vite 打包器](https://vite.dev/guide/why.html#why-bundle-for-production) 集成的 Astro 集成插件、将每个请求的语言环境解析到 `Astro.locals.intlayer` 的中间件,以及 `useIntlayer` / `useDictionary` / `useLocale` 钩子。相同的导入路径在 `.astro` frontmatter 中解析为服务端实现,在 `<script>` 块中解析为客户端实现(由 `vanilla-intlayer` 支持)。
154
157
 
155
158
  - **svelte**
156
159
  核心 Svelte 软件包。
@@ -238,19 +241,21 @@ export default appContent;
238
241
  </Step>
239
242
  <Step number={5} title="在 Astro 中使用内容">
240
243
 
241
- 您可以使用 `intlayer` 导出的核心辅助函数直接在 `.astro` 文件中消费词典。您还应在每个页面添加 SEO 元数据(如 hreflang 和规范链接),并为客户端交互内容引入 Svelte 岛。
244
+ 使用 `astro-intlayer` 导出的钩子在 `.astro` 文件中使用你的字典。它们与 `react-intlayer` 具有相同的签名:`useIntlayer("key")` 返回字典内容,`useLocale()` 返回当前语言环境,无需传递参数。
245
+
246
+ 语言环境来自 `astro-intlayer` 中间件,集成会自动在你的 `src/middleware.ts` 之前注册该中间件。它会依次从 URL 前缀、客户端持久化的语言环境(Cookie 或标头)、`Accept-Language` 解析每个请求的语言环境,并将其存储在 `Astro.locals.intlayer` 中。预渲染页面仅使用 URL,因为它们只为每个访客渲染一次。
247
+
248
+ 您还应在每个页面添加 SEO 元数据(如 hreflang 和规范链接),并为客户端交互内容引入 Svelte 岛。
242
249
 
243
250
  ```astro fileName="src/pages/[...locale]/index.astro"
244
251
  ---
252
+ import { useIntlayer, useLocale } from "astro-intlayer";
245
253
  import {
246
- getIntlayer,
247
- getLocaleFromPath,
248
254
  getLocalizedUrl,
249
- getHTMLTextDir,
250
255
  getPrefix,
251
256
  localeMap,
252
257
  defaultLocale,
253
- type LocalesValues,
258
+ getHTMLTextDir,
254
259
  } from "intlayer";
255
260
  import SvelteIsland from "../../components/svelte/SvelteIsland.svelte";
256
261
 
@@ -260,8 +265,11 @@ export const getStaticPaths = () => {
260
265
  }));
261
266
  };
262
267
 
263
- const locale = getLocaleFromPath(Astro.url.pathname) as LocalesValues;
264
- const { title } = getIntlayer("app", locale);
268
+ // 中间件解析的语言环境(例如 /zh/about -> 'zh')
269
+ const { locale } = useLocale();
270
+
271
+ // 该语言环境的 'app' 字典内容
272
+ const { title } = useIntlayer("app");
265
273
  ---
266
274
 
267
275
  <!doctype html>
@@ -317,6 +325,8 @@ const { title } = getIntlayer("app", locale);
317
325
  > <img src={String(content.image.src)} alt={String(content.image)} />
318
326
  > ```
319
327
 
328
+ > `Astro.locals.intlayer` 还向你自己的中间件和端点公开 `locale`、`defaultLocale` 和 `availableLocales`。将语言环境或选择器作为第二个参数传递(`useIntlayer("app", "fr")`、`useIntlayer("faq", { item: 2 })`)可在单次调用中覆盖请求语言环境。
329
+
320
330
  > **关于路由设置的说明:**
321
331
  > 您使用的目录结构取决于 `intlayer.config.ts` 中的 `middleware.routing` 设置:
322
332
  >
@@ -437,10 +447,10 @@ const pathList: SitemapUrlEntry[] = [
437
447
  { path: "/about", changefreq: "monthly", priority: 0.7 },
438
448
  ];
439
449
 
440
- const SITE_URL = import.meta.env.SITE ?? "http://localhost:4321";
441
-
442
450
  export const GET: APIRoute = async ({ site }) => {
443
- const xmlOutput = generateSitemap(pathList, { siteUrl: SITE_URL });
451
+ const xmlOutput = generateSitemap(pathList, {
452
+ siteUrl: "https://example.com",
453
+ });
444
454
 
445
455
  return new Response(xmlOutput, {
446
456
  headers: { "Content-Type": "application/xml" },
@@ -540,21 +550,7 @@ bun x intlayer extract
540
550
  </Tab>
541
551
  <Tab value='Babel 编译器'>
542
552
 
543
- > Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
544
-
545
- 更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
546
-
547
- ```ts fileName="vite.config.ts"
548
- import { defineConfig } from "vite";
549
- import { intlayer, intlayerCompiler } from "vite-intlayer";
550
-
551
- export default defineConfig({
552
- plugins: [
553
- intlayer(),
554
- intlayerCompiler(), // Adds the compiler plugin
555
- ],
556
- });
557
- ```
553
+ 构建你的应用程序来转换你的组件并提取内容
558
554
 
559
555
  ```bash packageManager="npm"
560
556
  npm run build # 或 npm run dev
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2026-04-24
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "Astro + Vue i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) Astro + Vue 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
6
6
  keywords:
@@ -19,6 +19,9 @@ slugs:
19
19
  applicationTemplate: https://github.com/aymericzip/intlayer-astro-template
20
20
  applicationShowcase: https://intlayer-astro-template.vercel.app
21
21
  history:
22
+ - version: 9.5.5
23
+ date: 2026-09-19
24
+ changes: "在 Astro 页面中使用 astro-intlayer 的 useIntlayer / useLocale 钩子"
22
25
  - version: 8.9.0
23
26
  date: 2026-05-04
24
27
  changes: "更新 Solid useIntlayer API 用法以直接访问属性"
@@ -150,7 +153,7 @@ bun add intlayer astro-intlayer vue vue-intlayer @astrojs/vue
150
153
  核心软件包,提供用于配置管理、翻译、[内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)、编译和 [CLI 命令](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/cli/index.md)的国际化工具。
151
154
 
152
155
  - **astro-intlayer**
153
- 包含将 Intlayer 与 [Vite 构建器](https://vite.dev/guide/why.html#why-bundle-for-production)集成的 Astro 集成插件,以及用于检测用户首选语言、管理 Cookie 和处理 URL 重定向的中间件。
156
+ 包含用于将 Intlayer 与 [Vite 打包器](https://vite.dev/guide/why.html#why-bundle-for-production) 集成的 Astro 集成插件、将每个请求的语言环境解析到 `Astro.locals.intlayer` 的中间件,以及 `useIntlayer` / `useDictionary` / `useLocale` 钩子。相同的导入路径在 `.astro` frontmatter 中解析为服务端实现,在 `<script>` 块中解析为客户端实现(由 `vanilla-intlayer` 支持)。
154
157
 
155
158
  - **vue**
156
159
  核心 Vue 软件包。
@@ -238,19 +241,21 @@ export default appContent;
238
241
  </Step>
239
242
  <Step number={5} title="在 Astro 中使用内容">
240
243
 
241
- 您可以使用 `intlayer` 导出的核心辅助函数直接在 `.astro` 文件中消费词典。您还应在每个页面添加 SEO 元数据(如 hreflang 和规范链接),并为客户端交互内容引入 Vue 岛。
244
+ 使用 `astro-intlayer` 导出的钩子在 `.astro` 文件中使用你的字典。它们与 `react-intlayer` 具有相同的签名:`useIntlayer("key")` 返回字典内容,`useLocale()` 返回当前语言环境,无需传递参数。
245
+
246
+ 语言环境来自 `astro-intlayer` 中间件,集成会自动在你的 `src/middleware.ts` 之前注册该中间件。它会依次从 URL 前缀、客户端持久化的语言环境(Cookie 或标头)、`Accept-Language` 解析每个请求的语言环境,并将其存储在 `Astro.locals.intlayer` 中。预渲染页面仅使用 URL,因为它们只为每个访客渲染一次。
247
+
248
+ 您还应在每个页面添加 SEO 元数据(如 hreflang 和规范链接),并为客户端交互内容引入 Vue 岛。
242
249
 
243
250
  ```astro fileName="src/pages/[...locale]/index.astro"
244
251
  ---
252
+ import { useIntlayer, useLocale } from "astro-intlayer";
245
253
  import {
246
- getIntlayer,
247
- getLocaleFromPath,
248
254
  getLocalizedUrl,
249
- getHTMLTextDir,
250
255
  getPrefix,
251
256
  localeMap,
252
257
  defaultLocale,
253
- type LocalesValues,
258
+ getHTMLTextDir,
254
259
  } from "intlayer";
255
260
  import VueIsland from "../../components/vue/VueIsland.vue";
256
261
 
@@ -260,8 +265,11 @@ export const getStaticPaths = () => {
260
265
  }));
261
266
  };
262
267
 
263
- const locale = getLocaleFromPath(Astro.url.pathname) as LocalesValues;
264
- const { title } = getIntlayer("app", locale);
268
+ // 中间件解析的语言环境(例如 /zh/about -> 'zh')
269
+ const { locale } = useLocale();
270
+
271
+ // 该语言环境的 'app' 字典内容
272
+ const { title } = useIntlayer("app");
265
273
  ---
266
274
 
267
275
  <!doctype html>
@@ -309,6 +317,8 @@ const { title } = getIntlayer("app", locale);
309
317
  </html>
310
318
  ```
311
319
 
320
+ > `Astro.locals.intlayer` 还向你自己的中间件和端点公开 `locale`、`defaultLocale` 和 `availableLocales`。将语言环境或选择器作为第二个参数传递(`useIntlayer("app", "fr")`、`useIntlayer("faq", { item: 2 })`)可在单次调用中覆盖请求语言环境。
321
+
312
322
  > **关于路由设置的说明:**
313
323
  > 您使用的目录结构取决于 `intlayer.config.ts` 中的 `middleware.routing` 设置:
314
324
  >
@@ -447,10 +457,10 @@ const pathList: SitemapUrlEntry[] = [
447
457
  { path: "/about", changefreq: "monthly", priority: 0.7 },
448
458
  ];
449
459
 
450
- const SITE_URL = import.meta.env.SITE ?? "http://localhost:4321";
451
-
452
460
  export const GET: APIRoute = async ({ site }) => {
453
- const xmlOutput = generateSitemap(pathList, { siteUrl: SITE_URL });
461
+ const xmlOutput = generateSitemap(pathList, {
462
+ siteUrl: "https://example.com",
463
+ });
454
464
 
455
465
  return new Response(xmlOutput, {
456
466
  headers: { "Content-Type": "application/xml" },
@@ -550,21 +560,7 @@ bun x intlayer extract
550
560
  </Tab>
551
561
  <Tab value='Babel 编译器'>
552
562
 
553
- > Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
554
-
555
- 更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
556
-
557
- ```ts fileName="vite.config.ts"
558
- import { defineConfig } from "vite";
559
- import { intlayer, intlayerCompiler } from "vite-intlayer";
560
-
561
- export default defineConfig({
562
- plugins: [
563
- intlayer(),
564
- intlayerCompiler(), // Adds the compiler plugin
565
- ],
566
- });
567
- ```
563
+ 构建你的应用程序来转换你的组件并提取内容
568
564
 
569
565
  ```bash packageManager="npm"
570
566
  npm run build # 或 npm run dev
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2025-09-04
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "React Router v7 i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) React Router v7 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
6
6
  keywords:
@@ -900,8 +900,14 @@ bun x intlayer extract
900
900
  </Tab>
901
901
  <Tab value='Babel 编译器'>
902
902
 
903
+ <Tabs>
904
+ <Tab value='intlayer >= 9'>
905
+
903
906
  > 自 v9 起,`intlayerCompiler` 已包含在 `intlayer` 插件中。因此你不需要手动添加它。
904
907
 
908
+ </Tab>
909
+ <Tab value='intlayer < 9'>
910
+
905
911
  更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
906
912
 
907
913
  ```ts fileName="vite.config.ts"
@@ -916,6 +922,11 @@ export default defineConfig({
916
922
  });
917
923
  ```
918
924
 
925
+ </Tab>
926
+ </Tabs>
927
+
928
+ 构建你的应用程序来转换你的组件并提取内容
929
+
919
930
  ```bash packageManager="npm"
920
931
  npm run build # 或 npm run dev
921
932
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2025-08-06
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "Solid Start i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) SolidStart 应用的指南。包含服务端渲染的语言路由、hreflang、sitemap 和 AI 辅助翻译。"
6
6
  keywords:
@@ -747,15 +747,13 @@ SolidStart 将导出 HTTP 方法的文件转换为 API 路由,并从路径中
747
747
  import type { APIEvent } from "@solidjs/start/server";
748
748
  import { generateSitemap } from "intlayer";
749
749
 
750
- const SITE_URL = process.env.SITE_URL ?? "http://localhost:3000";
751
-
752
750
  export const GET = (_event: APIEvent) => {
753
751
  const sitemap = generateSitemap(
754
752
  [
755
753
  { path: "/", changefreq: "daily", priority: 1.0 },
756
754
  { path: "/about", changefreq: "monthly", priority: 0.8 },
757
755
  ],
758
- { siteUrl: SITE_URL }
756
+ { siteUrl: "https://example.com" }
759
757
  );
760
758
 
761
759
  return new Response(sitemap, {
@@ -789,8 +787,6 @@ export const GET = (_event: APIEvent) => {
789
787
  ```typescript fileName="src/routes/robots.txt.ts" codeFormat={["typescript", "esm", "commonjs"]}
790
788
  import { getMultilingualUrls } from "intlayer";
791
789
 
792
- const SITE_URL = process.env.SITE_URL ?? "http://localhost:3000";
793
-
794
790
  const disallowedPaths = ["/admin", "/private"].flatMap((path) =>
795
791
  Object.values(getMultilingualUrls(path))
796
792
  );
@@ -802,7 +798,7 @@ export const GET = () =>
802
798
  "Allow: /",
803
799
  ...disallowedPaths.map((path) => `Disallow: ${path}`),
804
800
  "",
805
- `Sitemap: ${SITE_URL}/sitemap.xml`,
801
+ `Sitemap: https://example.com/sitemap.xml`,
806
802
  ].join("\n"),
807
803
  { headers: { "Content-Type": "text/plain" } }
808
804
  );
@@ -921,8 +917,14 @@ bun x intlayer extract
921
917
  </Tab>
922
918
  <Tab value='Babel 编译器'>
923
919
 
920
+ <Tabs>
921
+ <Tab value='intlayer >= 9'>
922
+
924
923
  > 从 v9 开始,`intlayerCompiler` 已包含在 `intlayer` 插件中。因此你无需手动添加它。
925
924
 
925
+ </Tab>
926
+ <Tab value='intlayer < 9'>
927
+
926
928
  更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
927
929
 
928
930
  ```ts fileName="vite.config.ts"
@@ -941,6 +943,11 @@ export default defineConfig({
941
943
  });
942
944
  ```
943
945
 
946
+ </Tab>
947
+ </Tabs>
948
+
949
+ 构建你的应用程序来转换你的组件并提取内容
950
+
944
951
  ```bash packageManager="npm"
945
952
  npm run build # 或 npm run dev
946
953
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2025-11-20
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "SvelteKit i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) SvelteKit 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
6
6
  keywords:
@@ -713,8 +713,14 @@ bun x intlayer extract
713
713
  </Tab>
714
714
  <Tab value='Babel 编译器'>
715
715
 
716
+ <Tabs>
717
+ <Tab value='intlayer >= 9'>
718
+
716
719
  > 自 v9 起,`intlayerCompiler` 包含在 `intlayer` 插件中。所以你不需要手动添加它。
717
720
 
721
+ </Tab>
722
+ <Tab value='intlayer < 9'>
723
+
718
724
  更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
719
725
 
720
726
  ```ts fileName="vite.config.ts"
@@ -729,6 +735,11 @@ export default defineConfig({
729
735
  });
730
736
  ```
731
737
 
738
+ </Tab>
739
+ </Tabs>
740
+
741
+ 构建你的应用程序来转换你的组件并提取内容
742
+
732
743
  ```bash packageManager="npm"
733
744
  npm run build # 或 npm run dev
734
745
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2025-03-25
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "TanStack Start + Solid i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) TanStack Start + Solid 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
6
6
  keywords:
@@ -993,8 +993,14 @@ bun x intlayer extract
993
993
  </Tab>
994
994
  <Tab value='Babel 编译器'>
995
995
 
996
+ <Tabs>
997
+ <Tab value='intlayer >= 9'>
998
+
996
999
  > 从 v9 开始,`intlayerCompiler` 已包含在 `intlayer` 插件中。所以你不需要手动添加它。
997
1000
 
1001
+ </Tab>
1002
+ <Tab value='intlayer < 9'>
1003
+
998
1004
  更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
999
1005
 
1000
1006
  ```ts fileName="vite.config.ts"
@@ -1020,6 +1026,11 @@ export default defineConfig({
1020
1026
  });
1021
1027
  ```
1022
1028
 
1029
+ </Tab>
1030
+ </Tabs>
1031
+
1032
+ 构建你的应用程序来转换你的组件并提取内容
1033
+
1023
1034
  ```bash packageManager="npm"
1024
1035
  npm run build # 或 npm run dev
1025
1036
  ```
@@ -1099,7 +1110,7 @@ export const Route = createFileRoute("/sitemap.xml")({
1099
1110
  { path: "/", changefreq: "daily", priority: 1.0 },
1100
1111
  { path: "/about", changefreq: "monthly", priority: 0.8 },
1101
1112
  ],
1102
- { siteUrl: SITE_URL }
1113
+ { siteUrl: "https://example.com" }
1103
1114
  );
1104
1115
 
1105
1116
  return new Response(sitemap, {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2025-09-09
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "TanStack Start i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) TanStack Start 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
6
6
  keywords:
@@ -1077,8 +1077,14 @@ bun x intlayer extract
1077
1077
  </Tab>
1078
1078
  <Tab value="Babel compiler">
1079
1079
 
1080
+ <Tabs>
1081
+ <Tab value='intlayer >= 9'>
1082
+
1080
1083
  > 从 v9 起,`intlayerCompiler` 包含在 `intlayer` 插件中。所以你不需要手动添加它。
1081
1084
 
1085
+ </Tab>
1086
+ <Tab value='intlayer < 9'>
1087
+
1082
1088
  更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
1083
1089
 
1084
1090
  ```ts fileName="vite.config.ts"
@@ -1093,6 +1099,11 @@ export default defineConfig({
1093
1099
  });
1094
1100
  ```
1095
1101
 
1102
+ </Tab>
1103
+ </Tabs>
1104
+
1105
+ 构建你的应用程序来转换你的组件并提取内容
1106
+
1096
1107
  ```bash packageManager="npm"
1097
1108
  npm run build # 或 npm run dev
1098
1109
  ```
@@ -1161,10 +1172,6 @@ export default defineConfig({
1161
1172
  import { createFileRoute } from "@tanstack/react-router";
1162
1173
  import { generateSitemap } from "intlayer";
1163
1174
 
1164
- const SITE_URL = (
1165
- import.meta.env.VITE_SITE_URL ?? "http://localhost:3000"
1166
- ).replace(/\/$/, "");
1167
-
1168
1175
  export const Route = createFileRoute("/sitemap.xml")({
1169
1176
  server: {
1170
1177
  handlers: {
@@ -1174,7 +1181,7 @@ export const Route = createFileRoute("/sitemap.xml")({
1174
1181
  { path: "/", changefreq: "daily", priority: 1.0 },
1175
1182
  { path: "/about", changefreq: "monthly", priority: 0.8 },
1176
1183
  ],
1177
- { siteUrl: SITE_URL }
1184
+ { siteUrl: "https://example.com" }
1178
1185
  );
1179
1186
 
1180
1187
  return new Response(sitemap, {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2026-03-23
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "Vite + Lit i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) Vite + Lit 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
6
6
  keywords:
@@ -618,6 +618,76 @@ const config: IntlayerConfig = {
618
618
  export default config;
619
619
  ```
620
620
 
621
+ <Tabs>
622
+ <Tab value='Extract command'>
623
+
624
+ 运行提取器来转换你的组件并提取内容
625
+
626
+ ```bash packageManager="npm"
627
+ npx intlayer extract
628
+ ```
629
+
630
+ ```bash packageManager="pnpm"
631
+ pnpm intlayer extract
632
+ ```
633
+
634
+ ```bash packageManager="yarn"
635
+ yarn intlayer extract
636
+ ```
637
+
638
+ ```bash packageManager="bun"
639
+ bun x intlayer extract
640
+ ```
641
+
642
+ </Tab>
643
+ <Tab value='Babel compiler'>
644
+
645
+ <Tabs>
646
+ <Tab value='intlayer >= 9'>
647
+
648
+ > 从 v9 开始,`intlayerCompiler` 包含在 `intlayer` 插件中。所以你不需要手动添加它。
649
+
650
+ </Tab>
651
+ <Tab value='intlayer < 9'>
652
+
653
+ 更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
654
+
655
+ ```ts fileName="vite.config.ts"
656
+ import { defineConfig } from "vite";
657
+ import { intlayer, intlayerCompiler } from "vite-intlayer";
658
+
659
+ export default defineConfig({
660
+ plugins: [
661
+ intlayer(),
662
+ intlayerCompiler(), // 添加编译器插件
663
+ ],
664
+ });
665
+ ```
666
+
667
+ </Tab>
668
+ </Tabs>
669
+
670
+ 构建你的应用程序来转换你的组件并提取内容
671
+
672
+ ```bash packageManager="npm"
673
+ npm run build # 或 npm run dev
674
+ ```
675
+
676
+ ```bash packageManager="pnpm"
677
+ pnpm run build # 或 pnpm run dev
678
+ ```
679
+
680
+ ```bash packageManager="yarn"
681
+ yarn build # 或 yarn dev
682
+ ```
683
+
684
+ ```bash packageManager="bun"
685
+ bun run build # 或 bun run dev
686
+ ```
687
+
688
+ </Tab>
689
+ </Tabs>
690
+
621
691
  </Step>
622
692
 
623
693
  </Steps>
@@ -656,7 +726,9 @@ const pathList = [
656
726
  { path: "/about", changefreq: "monthly", priority: 0.7 },
657
727
  ];
658
728
 
659
- const sitemapXml = generateSitemap(pathList, { siteUrl: SITE_URL });
729
+ const sitemapXml = generateSitemap(pathList, {
730
+ siteUrl: "https://example.com",
731
+ });
660
732
  fs.writeFileSync(path.join(__dirname, "public", "sitemap.xml"), sitemapXml);
661
733
 
662
734
  const getAllMultilingualUrls = (urls) =>
@@ -669,7 +741,7 @@ const robotsTxt = [
669
741
  "Allow: /",
670
742
  ...disallowedPaths.map((path) => `Disallow: ${path}`),
671
743
  "",
672
- `Sitemap: ${SITE_URL}/sitemap.xml`,
744
+ `Sitemap: https://example.com/sitemap.xml`,
673
745
  ].join("\n");
674
746
 
675
747
  fs.writeFileSync(path.join(__dirname, "public", "robots.txt"), robotsTxt);
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2025-04-18
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "Vite + Preact i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) Vite + Preact 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
6
6
  keywords:
@@ -887,8 +887,14 @@ bun x intlayer extract
887
887
  </Tab>
888
888
  <Tab value='Babel compiler'>
889
889
 
890
+ <Tabs>
891
+ <Tab value='intlayer >= 9'>
892
+
890
893
  > 从 v9 起,`intlayerCompiler` 已包含在 `intlayer` 插件中。所以您不需要手动添加它。
891
894
 
895
+ </Tab>
896
+ <Tab value='intlayer < 9'>
897
+
892
898
  更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
893
899
 
894
900
  ```ts fileName="vite.config.ts"
@@ -903,6 +909,11 @@ export default defineConfig({
903
909
  });
904
910
  ```
905
911
 
912
+ </Tab>
913
+ </Tabs>
914
+
915
+ 构建你的应用程序来转换你的组件并提取内容
916
+
906
917
  ```bash packageManager="npm"
907
918
  npm run build # 或 npm run dev
908
919
  ```
@@ -964,7 +975,9 @@ const pathList = [
964
975
  ];
965
976
 
966
977
  // 生成 sitemap.xml
967
- const sitemapXml = generateSitemap(pathList, { siteUrl: SITE_URL });
978
+ const sitemapXml = generateSitemap(pathList, {
979
+ siteUrl: "https://example.com",
980
+ });
968
981
  fs.writeFileSync(path.join(__dirname, "public", "sitemap.xml"), sitemapXml);
969
982
 
970
983
  // 获取所有多语言 URL
@@ -980,7 +993,7 @@ const robotsTxt = [
980
993
  "Allow: /",
981
994
  ...disallowedPaths.map((path) => `Disallow: ${path}`),
982
995
  "",
983
- `Sitemap: ${SITE_URL}/sitemap.xml`,
996
+ `Sitemap: https://example.com/sitemap.xml`,
984
997
  ].join("\n");
985
998
 
986
999
  fs.writeFileSync(path.join(__dirname, "public", "robots.txt"), robotsTxt);
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  createdAt: 2024-03-07
3
- updatedAt: 2026-08-30
3
+ updatedAt: 2026-09-20
4
4
  title: "Vite + React i18n - 翻译你的应用的完整指南"
5
5
  description: "告别 i18next。2026 年构建多语言 (i18n) Vite + React 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
6
6
  keywords:
@@ -839,8 +839,14 @@ bun x intlayer extract
839
839
  </Tab>
840
840
  <Tab value='Babel 编译器'>
841
841
 
842
+ <Tabs>
843
+ <Tab value='intlayer >= 9'>
844
+
842
845
  > Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
843
846
 
847
+ </Tab>
848
+ <Tab value='intlayer < 9'>
849
+
844
850
  更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
845
851
 
846
852
  ```ts fileName="vite.config.ts"
@@ -855,6 +861,11 @@ export default defineConfig({
855
861
  });
856
862
  ```
857
863
 
864
+ </Tab>
865
+ </Tabs>
866
+
867
+ 构建你的应用程序来转换你的组件并提取内容
868
+
858
869
  ```bash packageManager="npm"
859
870
  npm run build # 或 npm run dev
860
871
  ```
@@ -911,7 +922,9 @@ const pathList = [
911
922
  { path: "/about", changefreq: "monthly", priority: 0.7 },
912
923
  ];
913
924
 
914
- const sitemapXml = generateSitemap(pathList, { siteUrl: SITE_URL });
925
+ const sitemapXml = generateSitemap(pathList, {
926
+ siteUrl: "https://example.com",
927
+ });
915
928
  fs.writeFileSync(path.join(__dirname, "public", "sitemap.xml"), sitemapXml);
916
929
 
917
930
  const getAllMultilingualUrls = (urls) =>
@@ -924,7 +937,7 @@ const robotsTxt = [
924
937
  "Allow: /",
925
938
  ...disallowedPaths.map((path) => `Disallow: ${path}`),
926
939
  "",
927
- `Sitemap: ${SITE_URL}/sitemap.xml`,
940
+ `Sitemap: https://example.com/sitemap.xml`,
928
941
  ].join("\n");
929
942
 
930
943
  fs.writeFileSync(path.join(__dirname, "public", "robots.txt"), robotsTxt);