@intlayer/docs 8.5.1 → 8.6.0

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 (727) hide show
  1. package/blog/ar/intlayer_with_i18next.md +1 -1
  2. package/blog/ar/intlayer_with_next-i18next.md +1 -1
  3. package/blog/ar/intlayer_with_next-intl.md +1 -1
  4. package/blog/ar/intlayer_with_react-i18next.md +1 -1
  5. package/blog/ar/intlayer_with_react-intl.md +1 -1
  6. package/blog/ar/intlayer_with_vue-i18n.md +1 -1
  7. package/blog/de/intlayer_with_i18next.md +1 -1
  8. package/blog/de/intlayer_with_next-i18next.md +1 -1
  9. package/blog/de/intlayer_with_next-intl.md +1 -1
  10. package/blog/de/intlayer_with_react-i18next.md +1 -1
  11. package/blog/de/intlayer_with_react-intl.md +1 -1
  12. package/blog/de/intlayer_with_vue-i18n.md +1 -1
  13. package/blog/en/intlayer_with_i18next.md +1 -1
  14. package/blog/en/intlayer_with_next-i18next.md +1 -1
  15. package/blog/en/intlayer_with_next-intl.md +1 -1
  16. package/blog/en/intlayer_with_react-i18next.md +1 -1
  17. package/blog/en/intlayer_with_react-intl.md +1 -1
  18. package/blog/en/intlayer_with_vue-i18n.md +1 -1
  19. package/blog/en-GB/intlayer_with_i18next.md +1 -1
  20. package/blog/en-GB/intlayer_with_next-i18next.md +1 -1
  21. package/blog/en-GB/intlayer_with_next-intl.md +1 -1
  22. package/blog/en-GB/intlayer_with_react-i18next.md +1 -1
  23. package/blog/en-GB/intlayer_with_react-intl.md +1 -1
  24. package/blog/en-GB/intlayer_with_vue-i18n.md +1 -1
  25. package/blog/es/intlayer_with_i18next.md +1 -1
  26. package/blog/es/intlayer_with_next-i18next.md +1 -1
  27. package/blog/es/intlayer_with_next-intl.md +1 -1
  28. package/blog/es/intlayer_with_react-i18next.md +1 -1
  29. package/blog/es/intlayer_with_react-intl.md +1 -1
  30. package/blog/es/intlayer_with_vue-i18n.md +1 -1
  31. package/blog/fr/intlayer_with_i18next.md +1 -1
  32. package/blog/fr/intlayer_with_next-i18next.md +1 -1
  33. package/blog/fr/intlayer_with_next-intl.md +1 -1
  34. package/blog/fr/intlayer_with_react-i18next.md +1 -1
  35. package/blog/fr/intlayer_with_react-intl.md +1 -1
  36. package/blog/fr/intlayer_with_vue-i18n.md +1 -1
  37. package/blog/hi/intlayer_with_i18next.md +1 -1
  38. package/blog/hi/intlayer_with_next-i18next.md +1 -1
  39. package/blog/hi/intlayer_with_next-intl.md +1 -1
  40. package/blog/hi/intlayer_with_react-i18next.md +1 -1
  41. package/blog/hi/intlayer_with_react-intl.md +1 -1
  42. package/blog/hi/intlayer_with_vue-i18n.md +1 -1
  43. package/blog/id/intlayer_with_i18next.md +1 -1
  44. package/blog/id/intlayer_with_next-i18next.md +1 -1
  45. package/blog/id/intlayer_with_next-intl.md +1 -1
  46. package/blog/id/intlayer_with_react-i18next.md +1 -1
  47. package/blog/id/intlayer_with_react-intl.md +1 -1
  48. package/blog/id/intlayer_with_vue-i18n.md +1 -1
  49. package/blog/it/intlayer_with_i18next.md +1 -1
  50. package/blog/it/intlayer_with_next-i18next.md +1 -1
  51. package/blog/it/intlayer_with_next-intl.md +1 -1
  52. package/blog/it/intlayer_with_react-i18next.md +1 -1
  53. package/blog/it/intlayer_with_react-intl.md +1 -1
  54. package/blog/it/intlayer_with_vue-i18n.md +1 -1
  55. package/blog/ja/intlayer_with_i18next.md +1 -1
  56. package/blog/ja/intlayer_with_next-i18next.md +1 -1
  57. package/blog/ja/intlayer_with_next-intl.md +1 -1
  58. package/blog/ja/intlayer_with_react-i18next.md +1 -1
  59. package/blog/ja/intlayer_with_react-intl.md +1 -1
  60. package/blog/ja/intlayer_with_vue-i18n.md +1 -1
  61. package/blog/ko/intlayer_with_i18next.md +1 -1
  62. package/blog/ko/intlayer_with_next-i18next.md +1 -1
  63. package/blog/ko/intlayer_with_next-intl.md +1 -1
  64. package/blog/ko/intlayer_with_react-i18next.md +1 -1
  65. package/blog/ko/intlayer_with_react-intl.md +1 -1
  66. package/blog/ko/intlayer_with_vue-i18n.md +1 -1
  67. package/blog/pl/intlayer_with_i18next.md +1 -1
  68. package/blog/pl/intlayer_with_next-i18next.md +1 -1
  69. package/blog/pl/intlayer_with_next-intl.md +1 -1
  70. package/blog/pl/intlayer_with_react-i18next.md +1 -1
  71. package/blog/pl/intlayer_with_react-intl.md +1 -1
  72. package/blog/pl/intlayer_with_vue-i18n.md +1 -1
  73. package/blog/pt/intlayer_with_i18next.md +1 -1
  74. package/blog/pt/intlayer_with_next-i18next.md +1 -1
  75. package/blog/pt/intlayer_with_next-intl.md +1 -1
  76. package/blog/pt/intlayer_with_react-i18next.md +1 -1
  77. package/blog/pt/intlayer_with_react-intl.md +1 -1
  78. package/blog/pt/intlayer_with_vue-i18n.md +1 -1
  79. package/blog/ru/intlayer_with_i18next.md +1 -1
  80. package/blog/ru/intlayer_with_next-i18next.md +1 -1
  81. package/blog/ru/intlayer_with_next-intl.md +1 -1
  82. package/blog/ru/intlayer_with_react-i18next.md +1 -1
  83. package/blog/ru/intlayer_with_react-intl.md +1 -1
  84. package/blog/ru/intlayer_with_vue-i18n.md +1 -1
  85. package/blog/tr/intlayer_with_i18next.md +1 -1
  86. package/blog/tr/intlayer_with_next-i18next.md +1 -1
  87. package/blog/tr/intlayer_with_next-intl.md +1 -1
  88. package/blog/tr/intlayer_with_react-i18next.md +1 -1
  89. package/blog/tr/intlayer_with_react-intl.md +1 -1
  90. package/blog/tr/intlayer_with_vue-i18n.md +1 -1
  91. package/blog/uk/intlayer_with_i18next.md +1 -1
  92. package/blog/uk/intlayer_with_next-i18next.md +1 -1
  93. package/blog/uk/intlayer_with_next-intl.md +1 -1
  94. package/blog/uk/intlayer_with_react-i18next.md +1 -1
  95. package/blog/uk/intlayer_with_react-intl.md +1 -1
  96. package/blog/uk/intlayer_with_vue-i18n.md +1 -1
  97. package/blog/vi/intlayer_with_i18next.md +1 -1
  98. package/blog/vi/intlayer_with_next-i18next.md +1 -1
  99. package/blog/vi/intlayer_with_next-intl.md +1 -1
  100. package/blog/vi/intlayer_with_react-i18next.md +1 -1
  101. package/blog/vi/intlayer_with_react-intl.md +1 -1
  102. package/blog/vi/intlayer_with_vue-i18n.md +1 -1
  103. package/blog/zh/intlayer_with_i18next.md +1 -1
  104. package/blog/zh/intlayer_with_next-i18next.md +1 -1
  105. package/blog/zh/intlayer_with_next-intl.md +1 -1
  106. package/blog/zh/intlayer_with_react-i18next.md +1 -1
  107. package/blog/zh/intlayer_with_react-intl.md +1 -1
  108. package/blog/zh/intlayer_with_vue-i18n.md +1 -1
  109. package/dist/cjs/generated/docs.entry.cjs +20 -0
  110. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  111. package/dist/esm/generated/docs.entry.mjs +20 -0
  112. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  113. package/dist/types/generated/docs.entry.d.ts +1 -0
  114. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  115. package/docs/ar/intlayer_CMS.md +1 -1
  116. package/docs/ar/intlayer_with_adonisjs.md +1 -1
  117. package/docs/ar/intlayer_with_analog.md +1 -1
  118. package/docs/ar/intlayer_with_angular.md +1 -1
  119. package/docs/ar/intlayer_with_create_react_app.md +1 -1
  120. package/docs/ar/intlayer_with_express.md +1 -1
  121. package/docs/ar/intlayer_with_fastify.md +1 -1
  122. package/docs/ar/intlayer_with_hono.md +1 -1
  123. package/docs/ar/intlayer_with_lynx+react.md +1 -1
  124. package/docs/ar/intlayer_with_nestjs.md +1 -1
  125. package/docs/ar/intlayer_with_next-i18next.md +1 -1
  126. package/docs/ar/intlayer_with_next-intl.md +1 -1
  127. package/docs/ar/intlayer_with_nextjs_14.md +1 -1
  128. package/docs/ar/intlayer_with_nextjs_15.md +1 -1
  129. package/docs/ar/intlayer_with_nextjs_16.md +2 -2
  130. package/docs/ar/intlayer_with_nextjs_compiler.md +2 -2
  131. package/docs/ar/intlayer_with_nextjs_no_locale_path.md +1 -1
  132. package/docs/ar/intlayer_with_nextjs_page_router.md +1 -1
  133. package/docs/ar/intlayer_with_nuxt.md +1 -1
  134. package/docs/ar/intlayer_with_react_native+expo.md +1 -1
  135. package/docs/ar/intlayer_with_react_router_v7.md +4 -6
  136. package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +4 -6
  137. package/docs/ar/intlayer_with_svelte_kit.md +5 -5
  138. package/docs/ar/intlayer_with_tanstack+solid.md +894 -0
  139. package/docs/ar/intlayer_with_tanstack.md +2 -10
  140. package/docs/ar/intlayer_with_vite+lit.md +1 -2
  141. package/docs/ar/intlayer_with_vite+preact.md +2 -2
  142. package/docs/ar/intlayer_with_vite+react.md +2 -2
  143. package/docs/ar/intlayer_with_vite+react_compiler.md +1 -1
  144. package/docs/ar/intlayer_with_vite+solid.md +2 -3
  145. package/docs/ar/intlayer_with_vite+svelte.md +3 -3
  146. package/docs/ar/intlayer_with_vite+vanilla.md +2 -2
  147. package/docs/ar/intlayer_with_vite+vue.md +2 -2
  148. package/docs/bn/intlayer_with_fastify.md +1 -1
  149. package/docs/bn/intlayer_with_hono.md +1 -1
  150. package/docs/bn/intlayer_with_vite+lit.md +1 -2
  151. package/docs/bn/intlayer_with_vite+vanilla.md +2 -2
  152. package/docs/cs/intlayer_with_fastify.md +1 -1
  153. package/docs/cs/intlayer_with_hono.md +1 -1
  154. package/docs/cs/intlayer_with_vite+lit.md +1 -2
  155. package/docs/cs/intlayer_with_vite+vanilla.md +2 -2
  156. package/docs/de/intlayer_CMS.md +1 -1
  157. package/docs/de/intlayer_with_adonisjs.md +1 -1
  158. package/docs/de/intlayer_with_analog.md +1 -1
  159. package/docs/de/intlayer_with_angular.md +1 -1
  160. package/docs/de/intlayer_with_create_react_app.md +1 -1
  161. package/docs/de/intlayer_with_express.md +1 -1
  162. package/docs/de/intlayer_with_fastify.md +1 -1
  163. package/docs/de/intlayer_with_hono.md +1 -1
  164. package/docs/de/intlayer_with_lynx+react.md +1 -1
  165. package/docs/de/intlayer_with_nestjs.md +1 -1
  166. package/docs/de/intlayer_with_next-i18next.md +1 -1
  167. package/docs/de/intlayer_with_next-intl.md +1 -1
  168. package/docs/de/intlayer_with_nextjs_14.md +1 -1
  169. package/docs/de/intlayer_with_nextjs_15.md +1 -1
  170. package/docs/de/intlayer_with_nextjs_16.md +2 -2
  171. package/docs/de/intlayer_with_nextjs_compiler.md +1 -1
  172. package/docs/de/intlayer_with_nextjs_no_locale_path.md +1 -1
  173. package/docs/de/intlayer_with_nextjs_page_router.md +1 -1
  174. package/docs/de/intlayer_with_nuxt.md +1 -1
  175. package/docs/de/intlayer_with_react_router_v7.md +4 -6
  176. package/docs/de/intlayer_with_react_router_v7_fs_routes.md +2 -3
  177. package/docs/de/intlayer_with_svelte_kit.md +5 -5
  178. package/docs/de/intlayer_with_tanstack+solid.md +970 -0
  179. package/docs/de/intlayer_with_tanstack.md +98 -30
  180. package/docs/de/intlayer_with_vite+lit.md +1 -2
  181. package/docs/de/intlayer_with_vite+preact.md +2 -2
  182. package/docs/de/intlayer_with_vite+react.md +2 -2
  183. package/docs/de/intlayer_with_vite+react_compiler.md +1 -1
  184. package/docs/de/intlayer_with_vite+solid.md +2 -3
  185. package/docs/de/intlayer_with_vite+svelte.md +3 -3
  186. package/docs/de/intlayer_with_vite+vanilla.md +2 -2
  187. package/docs/de/intlayer_with_vite+vue.md +2 -2
  188. package/docs/en/intlayer_CMS.md +1 -1
  189. package/docs/en/intlayer_with_adonisjs.md +1 -1
  190. package/docs/en/intlayer_with_analog.md +1 -1
  191. package/docs/en/intlayer_with_angular.md +1 -1
  192. package/docs/en/intlayer_with_create_react_app.md +1 -1
  193. package/docs/en/intlayer_with_express.md +1 -1
  194. package/docs/en/intlayer_with_fastify.md +1 -1
  195. package/docs/en/intlayer_with_hono.md +1 -1
  196. package/docs/en/intlayer_with_lynx+react.md +1 -1
  197. package/docs/en/intlayer_with_nestjs.md +1 -1
  198. package/docs/en/intlayer_with_next-i18next.md +1 -1
  199. package/docs/en/intlayer_with_next-intl.md +1 -1
  200. package/docs/en/intlayer_with_nextjs_14.md +1 -1
  201. package/docs/en/intlayer_with_nextjs_15.md +1 -1
  202. package/docs/en/intlayer_with_nextjs_16.md +2 -2
  203. package/docs/en/intlayer_with_nextjs_compiler.md +2 -2
  204. package/docs/en/intlayer_with_nextjs_no_locale_path.md +1 -1
  205. package/docs/en/intlayer_with_nextjs_page_router.md +1 -1
  206. package/docs/en/intlayer_with_nuxt.md +1 -1
  207. package/docs/en/intlayer_with_react_native+expo.md +1 -1
  208. package/docs/en/intlayer_with_react_router_v7.md +3 -4
  209. package/docs/en/intlayer_with_react_router_v7_fs_routes.md +4 -6
  210. package/docs/en/intlayer_with_svelte_kit.md +4 -4
  211. package/docs/en/intlayer_with_tanstack+solid.md +973 -0
  212. package/docs/en/intlayer_with_tanstack.md +83 -12
  213. package/docs/en/intlayer_with_vite+lit.md +1 -2
  214. package/docs/en/intlayer_with_vite+preact.md +2 -2
  215. package/docs/en/intlayer_with_vite+react.md +2 -2
  216. package/docs/en/intlayer_with_vite+react_compiler.md +1 -1
  217. package/docs/en/intlayer_with_vite+solid.md +2 -3
  218. package/docs/en/intlayer_with_vite+svelte.md +7 -8
  219. package/docs/en/intlayer_with_vite+vanilla.md +2 -2
  220. package/docs/en/intlayer_with_vite+vue.md +2 -2
  221. package/docs/en-GB/intlayer_CMS.md +1 -1
  222. package/docs/en-GB/intlayer_with_adonisjs.md +1 -1
  223. package/docs/en-GB/intlayer_with_analog.md +1 -1
  224. package/docs/en-GB/intlayer_with_angular.md +1 -1
  225. package/docs/en-GB/intlayer_with_create_react_app.md +2 -2
  226. package/docs/en-GB/intlayer_with_express.md +1 -1
  227. package/docs/en-GB/intlayer_with_fastify.md +1 -1
  228. package/docs/en-GB/intlayer_with_hono.md +1 -1
  229. package/docs/en-GB/intlayer_with_lynx+react.md +2 -2
  230. package/docs/en-GB/intlayer_with_nestjs.md +1 -1
  231. package/docs/en-GB/intlayer_with_next-i18next.md +1 -1
  232. package/docs/en-GB/intlayer_with_next-intl.md +1 -1
  233. package/docs/en-GB/intlayer_with_nextjs_14.md +1 -1
  234. package/docs/en-GB/intlayer_with_nextjs_15.md +1 -1
  235. package/docs/en-GB/intlayer_with_nextjs_16.md +1 -1
  236. package/docs/en-GB/intlayer_with_nextjs_compiler.md +1 -1
  237. package/docs/en-GB/intlayer_with_nextjs_no_locale_path.md +1 -1
  238. package/docs/en-GB/intlayer_with_nextjs_page_router.md +1 -1
  239. package/docs/en-GB/intlayer_with_nuxt.md +1 -1
  240. package/docs/en-GB/intlayer_with_react_native+expo.md +1 -1
  241. package/docs/en-GB/intlayer_with_react_router_v7.md +3 -5
  242. package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +3 -5
  243. package/docs/en-GB/intlayer_with_svelte_kit.md +4 -4
  244. package/docs/en-GB/intlayer_with_tanstack+solid.md +968 -0
  245. package/docs/en-GB/intlayer_with_tanstack.md +75 -10
  246. package/docs/en-GB/intlayer_with_vite+lit.md +1 -2
  247. package/docs/en-GB/intlayer_with_vite+preact.md +1 -1
  248. package/docs/en-GB/intlayer_with_vite+react.md +1 -1
  249. package/docs/en-GB/intlayer_with_vite+react_compiler.md +1 -1
  250. package/docs/en-GB/intlayer_with_vite+solid.md +1 -2
  251. package/docs/en-GB/intlayer_with_vite+svelte.md +2 -2
  252. package/docs/en-GB/intlayer_with_vite+vanilla.md +2 -2
  253. package/docs/en-GB/intlayer_with_vite+vue.md +1 -1
  254. package/docs/es/intlayer_CMS.md +1 -1
  255. package/docs/es/intlayer_with_adonisjs.md +1 -1
  256. package/docs/es/intlayer_with_analog.md +1 -1
  257. package/docs/es/intlayer_with_angular.md +1 -1
  258. package/docs/es/intlayer_with_create_react_app.md +1 -1
  259. package/docs/es/intlayer_with_express.md +1 -1
  260. package/docs/es/intlayer_with_fastify.md +1 -1
  261. package/docs/es/intlayer_with_hono.md +1 -1
  262. package/docs/es/intlayer_with_lynx+react.md +1 -1
  263. package/docs/es/intlayer_with_nestjs.md +1 -1
  264. package/docs/es/intlayer_with_next-i18next.md +1 -1
  265. package/docs/es/intlayer_with_next-intl.md +1 -1
  266. package/docs/es/intlayer_with_nextjs_14.md +1 -1
  267. package/docs/es/intlayer_with_nextjs_15.md +1 -1
  268. package/docs/es/intlayer_with_nextjs_16.md +2 -2
  269. package/docs/es/intlayer_with_nextjs_compiler.md +2 -2
  270. package/docs/es/intlayer_with_nextjs_no_locale_path.md +1 -1
  271. package/docs/es/intlayer_with_nextjs_page_router.md +1 -1
  272. package/docs/es/intlayer_with_nuxt.md +1 -1
  273. package/docs/es/intlayer_with_react_native+expo.md +1 -1
  274. package/docs/es/intlayer_with_react_router_v7.md +4 -6
  275. package/docs/es/intlayer_with_react_router_v7_fs_routes.md +4 -6
  276. package/docs/es/intlayer_with_svelte_kit.md +5 -5
  277. package/docs/es/intlayer_with_tanstack+solid.md +970 -0
  278. package/docs/es/intlayer_with_tanstack.md +98 -30
  279. package/docs/es/intlayer_with_vite+lit.md +1 -2
  280. package/docs/es/intlayer_with_vite+preact.md +2 -2
  281. package/docs/es/intlayer_with_vite+react.md +2 -2
  282. package/docs/es/intlayer_with_vite+react_compiler.md +1 -1
  283. package/docs/es/intlayer_with_vite+solid.md +2 -3
  284. package/docs/es/intlayer_with_vite+svelte.md +3 -3
  285. package/docs/es/intlayer_with_vite+vanilla.md +2 -2
  286. package/docs/es/intlayer_with_vite+vue.md +2 -2
  287. package/docs/es/packages/next-intlayer/index.md +1 -1
  288. package/docs/es/packages/react-intlayer/index.md +1 -1
  289. package/docs/fr/intlayer_CMS.md +1 -1
  290. package/docs/fr/intlayer_with_adonisjs.md +1 -1
  291. package/docs/fr/intlayer_with_analog.md +1 -1
  292. package/docs/fr/intlayer_with_angular.md +1 -1
  293. package/docs/fr/intlayer_with_create_react_app.md +1 -1
  294. package/docs/fr/intlayer_with_express.md +1 -1
  295. package/docs/fr/intlayer_with_fastify.md +1 -1
  296. package/docs/fr/intlayer_with_hono.md +1 -1
  297. package/docs/fr/intlayer_with_lynx+react.md +1 -1
  298. package/docs/fr/intlayer_with_nestjs.md +1 -1
  299. package/docs/fr/intlayer_with_next-i18next.md +1 -1
  300. package/docs/fr/intlayer_with_next-intl.md +1 -1
  301. package/docs/fr/intlayer_with_nextjs_14.md +1 -1
  302. package/docs/fr/intlayer_with_nextjs_15.md +1 -1
  303. package/docs/fr/intlayer_with_nextjs_16.md +2 -2
  304. package/docs/fr/intlayer_with_nextjs_compiler.md +2 -2
  305. package/docs/fr/intlayer_with_nextjs_no_locale_path.md +1 -1
  306. package/docs/fr/intlayer_with_nextjs_page_router.md +1 -1
  307. package/docs/fr/intlayer_with_nuxt.md +1 -1
  308. package/docs/fr/intlayer_with_react_router_v7.md +4 -6
  309. package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +4 -6
  310. package/docs/fr/intlayer_with_svelte_kit.md +6 -6
  311. package/docs/fr/intlayer_with_tanstack+solid.md +970 -0
  312. package/docs/fr/intlayer_with_tanstack.md +98 -30
  313. package/docs/fr/intlayer_with_vite+lit.md +1 -2
  314. package/docs/fr/intlayer_with_vite+preact.md +2 -2
  315. package/docs/fr/intlayer_with_vite+react.md +2 -2
  316. package/docs/fr/intlayer_with_vite+react_compiler.md +1 -1
  317. package/docs/fr/intlayer_with_vite+solid.md +2 -3
  318. package/docs/fr/intlayer_with_vite+svelte.md +3 -3
  319. package/docs/fr/intlayer_with_vite+vanilla.md +2 -2
  320. package/docs/fr/intlayer_with_vite+vue.md +2 -2
  321. package/docs/fr/packages/react-intlayer/index.md +1 -1
  322. package/docs/hi/intlayer_CMS.md +1 -1
  323. package/docs/hi/intlayer_with_adonisjs.md +1 -1
  324. package/docs/hi/intlayer_with_analog.md +1 -1
  325. package/docs/hi/intlayer_with_angular.md +1 -1
  326. package/docs/hi/intlayer_with_create_react_app.md +1 -1
  327. package/docs/hi/intlayer_with_express.md +1 -1
  328. package/docs/hi/intlayer_with_fastify.md +1 -1
  329. package/docs/hi/intlayer_with_hono.md +1 -1
  330. package/docs/hi/intlayer_with_lynx+react.md +1 -1
  331. package/docs/hi/intlayer_with_nestjs.md +1 -1
  332. package/docs/hi/intlayer_with_next-i18next.md +1 -1
  333. package/docs/hi/intlayer_with_next-intl.md +1 -1
  334. package/docs/hi/intlayer_with_nextjs_14.md +1 -1
  335. package/docs/hi/intlayer_with_nextjs_15.md +1 -1
  336. package/docs/hi/intlayer_with_nextjs_16.md +2 -2
  337. package/docs/hi/intlayer_with_nextjs_compiler.md +2 -2
  338. package/docs/hi/intlayer_with_nextjs_no_locale_path.md +1 -1
  339. package/docs/hi/intlayer_with_nextjs_page_router.md +1 -1
  340. package/docs/hi/intlayer_with_nuxt.md +1 -1
  341. package/docs/hi/intlayer_with_react_router_v7.md +4 -6
  342. package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +4 -6
  343. package/docs/hi/intlayer_with_svelte_kit.md +5 -5
  344. package/docs/hi/intlayer_with_tanstack+solid.md +894 -0
  345. package/docs/hi/intlayer_with_tanstack.md +2 -10
  346. package/docs/hi/intlayer_with_vite+lit.md +1 -2
  347. package/docs/hi/intlayer_with_vite+preact.md +2 -2
  348. package/docs/hi/intlayer_with_vite+react.md +2 -2
  349. package/docs/hi/intlayer_with_vite+react_compiler.md +1 -1
  350. package/docs/hi/intlayer_with_vite+solid.md +2 -3
  351. package/docs/hi/intlayer_with_vite+svelte.md +3 -3
  352. package/docs/hi/intlayer_with_vite+vanilla.md +2 -2
  353. package/docs/hi/intlayer_with_vite+vue.md +2 -2
  354. package/docs/hi/packages/intlayer/index.md +1 -1
  355. package/docs/id/intlayer_CMS.md +1 -1
  356. package/docs/id/intlayer_with_adonisjs.md +1 -1
  357. package/docs/id/intlayer_with_analog.md +1 -1
  358. package/docs/id/intlayer_with_angular.md +1 -1
  359. package/docs/id/intlayer_with_create_react_app.md +1 -1
  360. package/docs/id/intlayer_with_express.md +1 -1
  361. package/docs/id/intlayer_with_fastify.md +1 -1
  362. package/docs/id/intlayer_with_hono.md +1 -1
  363. package/docs/id/intlayer_with_lynx+react.md +1 -1
  364. package/docs/id/intlayer_with_nestjs.md +1 -1
  365. package/docs/id/intlayer_with_next-i18next.md +1 -1
  366. package/docs/id/intlayer_with_next-intl.md +1 -1
  367. package/docs/id/intlayer_with_nextjs_14.md +1 -1
  368. package/docs/id/intlayer_with_nextjs_15.md +1 -1
  369. package/docs/id/intlayer_with_nextjs_16.md +2 -2
  370. package/docs/id/intlayer_with_nextjs_compiler.md +2 -2
  371. package/docs/id/intlayer_with_nextjs_no_locale_path.md +1 -1
  372. package/docs/id/intlayer_with_nextjs_page_router.md +1 -1
  373. package/docs/id/intlayer_with_nuxt.md +1 -1
  374. package/docs/id/intlayer_with_react_native+expo.md +1 -1
  375. package/docs/id/intlayer_with_react_router_v7.md +4 -6
  376. package/docs/id/intlayer_with_react_router_v7_fs_routes.md +4 -6
  377. package/docs/id/intlayer_with_svelte_kit.md +5 -5
  378. package/docs/id/intlayer_with_tanstack+solid.md +894 -0
  379. package/docs/id/intlayer_with_tanstack.md +2 -10
  380. package/docs/id/intlayer_with_vite+lit.md +1 -2
  381. package/docs/id/intlayer_with_vite+preact.md +2 -2
  382. package/docs/id/intlayer_with_vite+react.md +2 -2
  383. package/docs/id/intlayer_with_vite+react_compiler.md +1 -1
  384. package/docs/id/intlayer_with_vite+solid.md +2 -3
  385. package/docs/id/intlayer_with_vite+svelte.md +3 -3
  386. package/docs/id/intlayer_with_vite+vanilla.md +2 -2
  387. package/docs/id/intlayer_with_vite+vue.md +2 -2
  388. package/docs/it/intlayer_CMS.md +1 -1
  389. package/docs/it/intlayer_with_adonisjs.md +1 -1
  390. package/docs/it/intlayer_with_analog.md +1 -1
  391. package/docs/it/intlayer_with_angular.md +1 -1
  392. package/docs/it/intlayer_with_create_react_app.md +1 -1
  393. package/docs/it/intlayer_with_express.md +1 -1
  394. package/docs/it/intlayer_with_fastify.md +1 -1
  395. package/docs/it/intlayer_with_hono.md +1 -1
  396. package/docs/it/intlayer_with_lynx+react.md +1 -1
  397. package/docs/it/intlayer_with_nestjs.md +1 -1
  398. package/docs/it/intlayer_with_next-i18next.md +1 -1
  399. package/docs/it/intlayer_with_next-intl.md +1 -1
  400. package/docs/it/intlayer_with_nextjs_14.md +1 -1
  401. package/docs/it/intlayer_with_nextjs_15.md +1 -1
  402. package/docs/it/intlayer_with_nextjs_16.md +2 -2
  403. package/docs/it/intlayer_with_nextjs_compiler.md +2 -2
  404. package/docs/it/intlayer_with_nextjs_no_locale_path.md +1 -1
  405. package/docs/it/intlayer_with_nextjs_page_router.md +1 -1
  406. package/docs/it/intlayer_with_nuxt.md +1 -1
  407. package/docs/it/intlayer_with_react_native+expo.md +1 -1
  408. package/docs/it/intlayer_with_react_router_v7.md +4 -6
  409. package/docs/it/intlayer_with_react_router_v7_fs_routes.md +4 -6
  410. package/docs/it/intlayer_with_svelte_kit.md +6 -6
  411. package/docs/it/intlayer_with_tanstack+solid.md +970 -0
  412. package/docs/it/intlayer_with_tanstack.md +98 -32
  413. package/docs/it/intlayer_with_vite+lit.md +1 -2
  414. package/docs/it/intlayer_with_vite+preact.md +2 -2
  415. package/docs/it/intlayer_with_vite+react.md +2 -2
  416. package/docs/it/intlayer_with_vite+react_compiler.md +1 -1
  417. package/docs/it/intlayer_with_vite+solid.md +2 -3
  418. package/docs/it/intlayer_with_vite+svelte.md +3 -3
  419. package/docs/it/intlayer_with_vite+vanilla.md +2 -2
  420. package/docs/it/intlayer_with_vite+vue.md +2 -2
  421. package/docs/ja/intlayer_CMS.md +1 -1
  422. package/docs/ja/intlayer_with_adonisjs.md +1 -1
  423. package/docs/ja/intlayer_with_analog.md +1 -1
  424. package/docs/ja/intlayer_with_angular.md +1 -1
  425. package/docs/ja/intlayer_with_create_react_app.md +1 -1
  426. package/docs/ja/intlayer_with_express.md +1 -1
  427. package/docs/ja/intlayer_with_fastify.md +1 -1
  428. package/docs/ja/intlayer_with_hono.md +1 -1
  429. package/docs/ja/intlayer_with_lynx+react.md +1 -1
  430. package/docs/ja/intlayer_with_nestjs.md +1 -1
  431. package/docs/ja/intlayer_with_next-i18next.md +1 -1
  432. package/docs/ja/intlayer_with_next-intl.md +1 -1
  433. package/docs/ja/intlayer_with_nextjs_14.md +1 -1
  434. package/docs/ja/intlayer_with_nextjs_15.md +1 -1
  435. package/docs/ja/intlayer_with_nextjs_16.md +2 -2
  436. package/docs/ja/intlayer_with_nextjs_compiler.md +2 -2
  437. package/docs/ja/intlayer_with_nextjs_no_locale_path.md +1 -1
  438. package/docs/ja/intlayer_with_nextjs_page_router.md +1 -1
  439. package/docs/ja/intlayer_with_nuxt.md +1 -1
  440. package/docs/ja/intlayer_with_react_router_v7.md +2 -3
  441. package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +4 -6
  442. package/docs/ja/intlayer_with_svelte_kit.md +1 -1
  443. package/docs/ja/intlayer_with_tanstack+solid.md +972 -0
  444. package/docs/ja/intlayer_with_tanstack.md +780 -94
  445. package/docs/ja/intlayer_with_vite+lit.md +1 -2
  446. package/docs/ja/intlayer_with_vite+preact.md +1 -1
  447. package/docs/ja/intlayer_with_vite+react.md +1 -1
  448. package/docs/ja/intlayer_with_vite+react_compiler.md +1 -1
  449. package/docs/ja/intlayer_with_vite+solid.md +2 -3
  450. package/docs/ja/intlayer_with_vite+svelte.md +3 -3
  451. package/docs/ja/intlayer_with_vite+vanilla.md +2 -2
  452. package/docs/ja/intlayer_with_vite+vue.md +2 -2
  453. package/docs/ko/intlayer_CMS.md +1 -1
  454. package/docs/ko/intlayer_with_adonisjs.md +1 -1
  455. package/docs/ko/intlayer_with_analog.md +1 -1
  456. package/docs/ko/intlayer_with_angular.md +1 -1
  457. package/docs/ko/intlayer_with_create_react_app.md +1 -1
  458. package/docs/ko/intlayer_with_express.md +1 -1
  459. package/docs/ko/intlayer_with_fastify.md +1 -1
  460. package/docs/ko/intlayer_with_hono.md +1 -1
  461. package/docs/ko/intlayer_with_lynx+react.md +1 -1
  462. package/docs/ko/intlayer_with_nestjs.md +1 -1
  463. package/docs/ko/intlayer_with_next-i18next.md +1 -1
  464. package/docs/ko/intlayer_with_next-intl.md +1 -1
  465. package/docs/ko/intlayer_with_nextjs_14.md +1 -1
  466. package/docs/ko/intlayer_with_nextjs_15.md +1 -1
  467. package/docs/ko/intlayer_with_nextjs_16.md +2 -2
  468. package/docs/ko/intlayer_with_nextjs_compiler.md +2 -2
  469. package/docs/ko/intlayer_with_nextjs_no_locale_path.md +1 -1
  470. package/docs/ko/intlayer_with_nextjs_page_router.md +1 -1
  471. package/docs/ko/intlayer_with_nuxt.md +1 -1
  472. package/docs/ko/intlayer_with_react_native+expo.md +1 -1
  473. package/docs/ko/intlayer_with_react_router_v7.md +4 -6
  474. package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +4 -6
  475. package/docs/ko/intlayer_with_svelte_kit.md +5 -5
  476. package/docs/ko/intlayer_with_tanstack+solid.md +970 -0
  477. package/docs/ko/intlayer_with_tanstack.md +97 -103
  478. package/docs/ko/intlayer_with_vite+lit.md +1 -2
  479. package/docs/ko/intlayer_with_vite+preact.md +2 -2
  480. package/docs/ko/intlayer_with_vite+react.md +2 -2
  481. package/docs/ko/intlayer_with_vite+react_compiler.md +1 -1
  482. package/docs/ko/intlayer_with_vite+solid.md +2 -3
  483. package/docs/ko/intlayer_with_vite+svelte.md +3 -3
  484. package/docs/ko/intlayer_with_vite+vanilla.md +2 -2
  485. package/docs/ko/intlayer_with_vite+vue.md +2 -2
  486. package/docs/nl/intlayer_with_fastify.md +1 -1
  487. package/docs/nl/intlayer_with_hono.md +1 -1
  488. package/docs/nl/intlayer_with_vite+lit.md +1 -2
  489. package/docs/nl/intlayer_with_vite+vanilla.md +2 -2
  490. package/docs/pl/intlayer_CMS.md +1 -1
  491. package/docs/pl/intlayer_with_adonisjs.md +1 -1
  492. package/docs/pl/intlayer_with_analog.md +1 -1
  493. package/docs/pl/intlayer_with_angular.md +1 -1
  494. package/docs/pl/intlayer_with_create_react_app.md +1 -1
  495. package/docs/pl/intlayer_with_express.md +1 -1
  496. package/docs/pl/intlayer_with_fastify.md +1 -1
  497. package/docs/pl/intlayer_with_hono.md +1 -1
  498. package/docs/pl/intlayer_with_lynx+react.md +1 -1
  499. package/docs/pl/intlayer_with_nestjs.md +1 -1
  500. package/docs/pl/intlayer_with_next-i18next.md +1 -1
  501. package/docs/pl/intlayer_with_next-intl.md +1 -1
  502. package/docs/pl/intlayer_with_nextjs_14.md +1 -1
  503. package/docs/pl/intlayer_with_nextjs_15.md +1 -1
  504. package/docs/pl/intlayer_with_nextjs_16.md +2 -2
  505. package/docs/pl/intlayer_with_nextjs_compiler.md +2 -2
  506. package/docs/pl/intlayer_with_nextjs_no_locale_path.md +1 -1
  507. package/docs/pl/intlayer_with_nextjs_page_router.md +1 -1
  508. package/docs/pl/intlayer_with_nuxt.md +1 -1
  509. package/docs/pl/intlayer_with_react_native+expo.md +1 -1
  510. package/docs/pl/intlayer_with_react_router_v7.md +4 -6
  511. package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +4 -6
  512. package/docs/pl/intlayer_with_svelte_kit.md +5 -5
  513. package/docs/pl/intlayer_with_tanstack+solid.md +894 -0
  514. package/docs/pl/intlayer_with_tanstack.md +2 -10
  515. package/docs/pl/intlayer_with_vite+lit.md +1 -2
  516. package/docs/pl/intlayer_with_vite+preact.md +2 -2
  517. package/docs/pl/intlayer_with_vite+react.md +2 -2
  518. package/docs/pl/intlayer_with_vite+react_compiler.md +1 -1
  519. package/docs/pl/intlayer_with_vite+solid.md +2 -3
  520. package/docs/pl/intlayer_with_vite+svelte.md +3 -3
  521. package/docs/pl/intlayer_with_vite+vanilla.md +2 -2
  522. package/docs/pl/intlayer_with_vite+vue.md +2 -2
  523. package/docs/pt/intlayer_CMS.md +1 -1
  524. package/docs/pt/intlayer_with_adonisjs.md +1 -1
  525. package/docs/pt/intlayer_with_analog.md +1 -1
  526. package/docs/pt/intlayer_with_angular.md +1 -1
  527. package/docs/pt/intlayer_with_create_react_app.md +1 -1
  528. package/docs/pt/intlayer_with_express.md +1 -1
  529. package/docs/pt/intlayer_with_fastify.md +1 -1
  530. package/docs/pt/intlayer_with_hono.md +1 -1
  531. package/docs/pt/intlayer_with_lynx+react.md +1 -1
  532. package/docs/pt/intlayer_with_nestjs.md +1 -1
  533. package/docs/pt/intlayer_with_next-i18next.md +1 -1
  534. package/docs/pt/intlayer_with_next-intl.md +1 -1
  535. package/docs/pt/intlayer_with_nextjs_14.md +1 -1
  536. package/docs/pt/intlayer_with_nextjs_15.md +1 -1
  537. package/docs/pt/intlayer_with_nextjs_16.md +2 -2
  538. package/docs/pt/intlayer_with_nextjs_compiler.md +2 -2
  539. package/docs/pt/intlayer_with_nextjs_no_locale_path.md +1 -1
  540. package/docs/pt/intlayer_with_nextjs_page_router.md +1 -1
  541. package/docs/pt/intlayer_with_nuxt.md +1 -1
  542. package/docs/pt/intlayer_with_react_native+expo.md +1 -1
  543. package/docs/pt/intlayer_with_react_router_v7.md +3 -4
  544. package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +4 -6
  545. package/docs/pt/intlayer_with_svelte_kit.md +6 -6
  546. package/docs/pt/intlayer_with_tanstack+solid.md +970 -0
  547. package/docs/pt/intlayer_with_tanstack.md +98 -32
  548. package/docs/pt/intlayer_with_vite+lit.md +1 -2
  549. package/docs/pt/intlayer_with_vite+preact.md +2 -2
  550. package/docs/pt/intlayer_with_vite+react.md +2 -2
  551. package/docs/pt/intlayer_with_vite+react_compiler.md +1 -1
  552. package/docs/pt/intlayer_with_vite+solid.md +2 -3
  553. package/docs/pt/intlayer_with_vite+svelte.md +3 -3
  554. package/docs/pt/intlayer_with_vite+vanilla.md +2 -2
  555. package/docs/pt/intlayer_with_vite+vue.md +2 -2
  556. package/docs/ru/intlayer_CMS.md +1 -1
  557. package/docs/ru/intlayer_with_adonisjs.md +1 -1
  558. package/docs/ru/intlayer_with_analog.md +1 -1
  559. package/docs/ru/intlayer_with_angular.md +1 -1
  560. package/docs/ru/intlayer_with_create_react_app.md +1 -1
  561. package/docs/ru/intlayer_with_express.md +1 -1
  562. package/docs/ru/intlayer_with_fastify.md +1 -1
  563. package/docs/ru/intlayer_with_hono.md +1 -1
  564. package/docs/ru/intlayer_with_lynx+react.md +1 -1
  565. package/docs/ru/intlayer_with_nestjs.md +1 -1
  566. package/docs/ru/intlayer_with_next-i18next.md +1 -1
  567. package/docs/ru/intlayer_with_next-intl.md +1 -1
  568. package/docs/ru/intlayer_with_nextjs_14.md +1 -1
  569. package/docs/ru/intlayer_with_nextjs_15.md +1 -1
  570. package/docs/ru/intlayer_with_nextjs_16.md +2 -2
  571. package/docs/ru/intlayer_with_nextjs_compiler.md +2 -2
  572. package/docs/ru/intlayer_with_nextjs_no_locale_path.md +1 -1
  573. package/docs/ru/intlayer_with_nextjs_page_router.md +1 -1
  574. package/docs/ru/intlayer_with_nuxt.md +1 -1
  575. package/docs/ru/intlayer_with_react_native+expo.md +1 -1
  576. package/docs/ru/intlayer_with_react_router_v7.md +4 -6
  577. package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +4 -6
  578. package/docs/ru/intlayer_with_svelte_kit.md +5 -5
  579. package/docs/ru/intlayer_with_tanstack+solid.md +970 -0
  580. package/docs/ru/intlayer_with_tanstack.md +101 -35
  581. package/docs/ru/intlayer_with_vite+lit.md +1 -2
  582. package/docs/ru/intlayer_with_vite+preact.md +2 -2
  583. package/docs/ru/intlayer_with_vite+react.md +2 -2
  584. package/docs/ru/intlayer_with_vite+react_compiler.md +1 -1
  585. package/docs/ru/intlayer_with_vite+solid.md +2 -3
  586. package/docs/ru/intlayer_with_vite+svelte.md +3 -3
  587. package/docs/ru/intlayer_with_vite+vanilla.md +2 -2
  588. package/docs/ru/intlayer_with_vite+vue.md +2 -2
  589. package/docs/tr/intlayer_CMS.md +1 -1
  590. package/docs/tr/intlayer_with_adonisjs.md +1 -1
  591. package/docs/tr/intlayer_with_analog.md +1 -1
  592. package/docs/tr/intlayer_with_angular.md +1 -1
  593. package/docs/tr/intlayer_with_create_react_app.md +1 -1
  594. package/docs/tr/intlayer_with_express.md +1 -1
  595. package/docs/tr/intlayer_with_fastify.md +1 -1
  596. package/docs/tr/intlayer_with_hono.md +1 -1
  597. package/docs/tr/intlayer_with_lynx+react.md +1 -1
  598. package/docs/tr/intlayer_with_nestjs.md +1 -1
  599. package/docs/tr/intlayer_with_next-i18next.md +1 -1
  600. package/docs/tr/intlayer_with_next-intl.md +1 -1
  601. package/docs/tr/intlayer_with_nextjs_14.md +1 -1
  602. package/docs/tr/intlayer_with_nextjs_15.md +1 -1
  603. package/docs/tr/intlayer_with_nextjs_16.md +2 -2
  604. package/docs/tr/intlayer_with_nextjs_compiler.md +2 -2
  605. package/docs/tr/intlayer_with_nextjs_no_locale_path.md +1 -1
  606. package/docs/tr/intlayer_with_nextjs_page_router.md +1 -1
  607. package/docs/tr/intlayer_with_nuxt.md +1 -1
  608. package/docs/tr/intlayer_with_react_native+expo.md +1 -1
  609. package/docs/tr/intlayer_with_react_router_v7.md +4 -6
  610. package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +4 -6
  611. package/docs/tr/intlayer_with_svelte_kit.md +5 -5
  612. package/docs/tr/intlayer_with_tanstack+solid.md +895 -0
  613. package/docs/tr/intlayer_with_tanstack.md +2 -10
  614. package/docs/tr/intlayer_with_vite+lit.md +1 -2
  615. package/docs/tr/intlayer_with_vite+preact.md +2 -2
  616. package/docs/tr/intlayer_with_vite+react.md +2 -2
  617. package/docs/tr/intlayer_with_vite+react_compiler.md +1 -1
  618. package/docs/tr/intlayer_with_vite+solid.md +2 -3
  619. package/docs/tr/intlayer_with_vite+svelte.md +3 -3
  620. package/docs/tr/intlayer_with_vite+vanilla.md +2 -2
  621. package/docs/tr/intlayer_with_vite+vue.md +2 -2
  622. package/docs/uk/intlayer_CMS.md +1 -1
  623. package/docs/uk/intlayer_with_adonisjs.md +1 -1
  624. package/docs/uk/intlayer_with_analog.md +1 -1
  625. package/docs/uk/intlayer_with_angular.md +1 -1
  626. package/docs/uk/intlayer_with_create_react_app.md +1 -1
  627. package/docs/uk/intlayer_with_express.md +1 -1
  628. package/docs/uk/intlayer_with_fastify.md +1 -1
  629. package/docs/uk/intlayer_with_hono.md +1 -1
  630. package/docs/uk/intlayer_with_lynx+react.md +1 -1
  631. package/docs/uk/intlayer_with_nestjs.md +1 -1
  632. package/docs/uk/intlayer_with_next-i18next.md +1 -1
  633. package/docs/uk/intlayer_with_next-intl.md +1 -1
  634. package/docs/uk/intlayer_with_nextjs_14.md +1 -1
  635. package/docs/uk/intlayer_with_nextjs_15.md +1 -1
  636. package/docs/uk/intlayer_with_nextjs_16.md +2 -2
  637. package/docs/uk/intlayer_with_nextjs_compiler.md +2 -2
  638. package/docs/uk/intlayer_with_nextjs_no_locale_path.md +1 -1
  639. package/docs/uk/intlayer_with_nextjs_page_router.md +1 -1
  640. package/docs/uk/intlayer_with_nuxt.md +1 -1
  641. package/docs/uk/intlayer_with_react_native+expo.md +1 -1
  642. package/docs/uk/intlayer_with_react_router_v7.md +3 -4
  643. package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +4 -6
  644. package/docs/uk/intlayer_with_svelte_kit.md +4 -4
  645. package/docs/uk/intlayer_with_tanstack+solid.md +894 -0
  646. package/docs/uk/intlayer_with_tanstack.md +2 -10
  647. package/docs/uk/intlayer_with_vite+lit.md +1 -2
  648. package/docs/uk/intlayer_with_vite+preact.md +2 -2
  649. package/docs/uk/intlayer_with_vite+react.md +2 -2
  650. package/docs/uk/intlayer_with_vite+react_compiler.md +1 -1
  651. package/docs/uk/intlayer_with_vite+solid.md +2 -3
  652. package/docs/uk/intlayer_with_vite+svelte.md +3 -3
  653. package/docs/uk/intlayer_with_vite+vanilla.md +2 -2
  654. package/docs/uk/intlayer_with_vite+vue.md +2 -2
  655. package/docs/ur/intlayer_with_fastify.md +1 -1
  656. package/docs/ur/intlayer_with_hono.md +1 -1
  657. package/docs/ur/intlayer_with_vite+lit.md +1 -2
  658. package/docs/ur/intlayer_with_vite+vanilla.md +1 -1
  659. package/docs/vi/cli/index.md +1 -1
  660. package/docs/vi/intlayer_CMS.md +1 -1
  661. package/docs/vi/intlayer_with_adonisjs.md +1 -1
  662. package/docs/vi/intlayer_with_analog.md +1 -1
  663. package/docs/vi/intlayer_with_angular.md +1 -1
  664. package/docs/vi/intlayer_with_create_react_app.md +1 -1
  665. package/docs/vi/intlayer_with_express.md +1 -1
  666. package/docs/vi/intlayer_with_fastify.md +1 -1
  667. package/docs/vi/intlayer_with_hono.md +1 -1
  668. package/docs/vi/intlayer_with_lynx+react.md +1 -1
  669. package/docs/vi/intlayer_with_nestjs.md +1 -1
  670. package/docs/vi/intlayer_with_next-i18next.md +1 -1
  671. package/docs/vi/intlayer_with_next-intl.md +1 -1
  672. package/docs/vi/intlayer_with_nextjs_14.md +1 -1
  673. package/docs/vi/intlayer_with_nextjs_15.md +1 -1
  674. package/docs/vi/intlayer_with_nextjs_16.md +2 -2
  675. package/docs/vi/intlayer_with_nextjs_compiler.md +2 -2
  676. package/docs/vi/intlayer_with_nextjs_no_locale_path.md +1 -1
  677. package/docs/vi/intlayer_with_nextjs_page_router.md +1 -1
  678. package/docs/vi/intlayer_with_nuxt.md +1 -1
  679. package/docs/vi/intlayer_with_react_native+expo.md +1 -1
  680. package/docs/vi/intlayer_with_react_router_v7.md +4 -6
  681. package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +4 -6
  682. package/docs/vi/intlayer_with_svelte_kit.md +5 -5
  683. package/docs/vi/intlayer_with_tanstack+solid.md +894 -0
  684. package/docs/vi/intlayer_with_tanstack.md +2 -10
  685. package/docs/vi/intlayer_with_vite+lit.md +1 -2
  686. package/docs/vi/intlayer_with_vite+preact.md +2 -2
  687. package/docs/vi/intlayer_with_vite+react.md +2 -2
  688. package/docs/vi/intlayer_with_vite+react_compiler.md +1 -1
  689. package/docs/vi/intlayer_with_vite+solid.md +2 -3
  690. package/docs/vi/intlayer_with_vite+svelte.md +3 -3
  691. package/docs/vi/intlayer_with_vite+vanilla.md +2 -2
  692. package/docs/vi/intlayer_with_vite+vue.md +2 -2
  693. package/docs/zh/intlayer_CMS.md +1 -1
  694. package/docs/zh/intlayer_with_adonisjs.md +1 -1
  695. package/docs/zh/intlayer_with_analog.md +1 -1
  696. package/docs/zh/intlayer_with_angular.md +1 -1
  697. package/docs/zh/intlayer_with_create_react_app.md +1 -1
  698. package/docs/zh/intlayer_with_express.md +1 -1
  699. package/docs/zh/intlayer_with_fastify.md +1 -1
  700. package/docs/zh/intlayer_with_hono.md +1 -1
  701. package/docs/zh/intlayer_with_lynx+react.md +1 -1
  702. package/docs/zh/intlayer_with_nestjs.md +1 -1
  703. package/docs/zh/intlayer_with_next-i18next.md +1 -1
  704. package/docs/zh/intlayer_with_next-intl.md +1 -1
  705. package/docs/zh/intlayer_with_nextjs_14.md +1 -1
  706. package/docs/zh/intlayer_with_nextjs_15.md +1 -1
  707. package/docs/zh/intlayer_with_nextjs_16.md +2 -2
  708. package/docs/zh/intlayer_with_nextjs_compiler.md +2 -2
  709. package/docs/zh/intlayer_with_nextjs_no_locale_path.md +1 -1
  710. package/docs/zh/intlayer_with_nextjs_page_router.md +1 -1
  711. package/docs/zh/intlayer_with_nuxt.md +1 -1
  712. package/docs/zh/intlayer_with_react_native+expo.md +1 -1
  713. package/docs/zh/intlayer_with_react_router_v7.md +4 -6
  714. package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +4 -6
  715. package/docs/zh/intlayer_with_svelte_kit.md +5 -5
  716. package/docs/zh/intlayer_with_tanstack+solid.md +970 -0
  717. package/docs/zh/intlayer_with_tanstack.md +98 -106
  718. package/docs/zh/intlayer_with_vite+lit.md +1 -2
  719. package/docs/zh/intlayer_with_vite+preact.md +2 -2
  720. package/docs/zh/intlayer_with_vite+react.md +2 -2
  721. package/docs/zh/intlayer_with_vite+react_compiler.md +1 -1
  722. package/docs/zh/intlayer_with_vite+solid.md +2 -3
  723. package/docs/zh/intlayer_with_vite+svelte.md +3 -3
  724. package/docs/zh/intlayer_with_vite+vanilla.md +2 -2
  725. package/docs/zh/intlayer_with_vite+vue.md +2 -2
  726. package/package.json +8 -8
  727. package/src/generated/docs.entry.ts +20 -0
@@ -0,0 +1,970 @@
1
+ ---
2
+ createdAt: 2025-03-25
3
+ updatedAt: 2026-03-29
4
+ title: i18n Tanstack Start - Come tradurre un'applicazione Tanstack Start usando Solid.js nel 2026
5
+ description: Scopri come aggiungere l'internazionalizzazione (i18n) alla tua applicazione Tanstack Start utilizzando Intlayer e Solid.js. Segui questa guida completa per rendere la tua app multilingue con un routing sensibile alla localizzazione.
6
+ keywords:
7
+ - Internazionalizzazione
8
+ - Documentazione
9
+ - Intlayer
10
+ - Tanstack Start
11
+ - Solid
12
+ - i18n
13
+ - TypeScript
14
+ - Routing di localizzazione
15
+ - Sitemap
16
+ slugs:
17
+ - doc
18
+ - environment
19
+ - tanstack-start
20
+ applicationTemplate: https://github.com/aymericzip/intlayer-tanstack-start-solid-template
21
+ youtubeVideo: https://www.youtube.com/watch?v=_XTdKVWaeqg
22
+ history:
23
+ - version: 8.5.1
24
+ date: 2026-03-25
25
+ changes: "Aggiunto per Tanstack Start Solid.js"
26
+ ---
27
+
28
+ # Traduci il tuo sito web Tanstack Start con Solid.js usando Intlayer | Internazionalizzazione (i18n)
29
+
30
+ ## Sommario
31
+
32
+ <TOC/>
33
+
34
+ Questa guida dimostra come integrare **Intlayer** per un'internazionalizzazione fluida nei progetti Tanstack Start con Solid.js, routing sensibile alla localizzazione, supporto TypeScript e moderne pratiche di sviluppo.
35
+
36
+ ## Cos'è Intlayer?
37
+
38
+ **Intlayer** è una libreria di internazionalizzazione (i18n) innovativa e open-source progettata per semplificare il supporto multilingue nelle moderne applicazioni web.
39
+
40
+ Con Intlayer, puoi:
41
+
42
+ - **Gestire facilmente le traduzioni** utilizzando dizionari dichiarativi a livello di componente.
43
+ - **Localizzare dinamicamente metadati**, rotte e contenuti.
44
+ - **Garantire il supporto TypeScript** con tipi autogenerati, migliorando l'autocompletamento e il rilevamento degli errori.
45
+ - **Beneficiare di funzionalità avanzate**, come il rilevamento e la commutazione dinamica della lingua.
46
+ - **Abilitare il routing sensibile alla localizzazione** con il sistema di routing basato su file di Tanstack Start.
47
+
48
+ ---
49
+
50
+ ## Guida passo-passo per configurare Intlayer in un'applicazione Tanstack Start
51
+
52
+ <Tabs defaultTab="video">
53
+ <Tab label="Video" value="video">
54
+
55
+ <iframe title="La migliore soluzione i18n per Tanstack Start? Scopri Intlayer" class="m-auto aspect-16/9 w-full overflow-hidden rounded-lg border-0" allow="autoplay; gyroscope;" loading="lazy" width="1080" height="auto" src="https://www.youtube.com/embed/_XTdKVWaeqg?autoplay=0&amp;origin=http://intlayer.org&amp;controls=0&amp;rel=1"/>
56
+
57
+ </Tab>
58
+ <Tab label="Codice" value="code">
59
+
60
+ <iframe
61
+ src="https://stackblitz.com/github/aymericzip/intlayer-tanstack-start-solid-template?embed=1&ctl=1&file=intlayer.config.ts"
62
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
63
+ title="Demo CodeSandbox - Come internazionalizzare la tua applicazione usando Intlayer"
64
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
65
+ loading="lazy"
66
+ />
67
+
68
+ </Tab>
69
+ </Tabs>
70
+
71
+ Vedi il [Modello di applicazione](https://github.com/aymericzip/intlayer-tanstack-start-solid-template) su GitHub.
72
+
73
+ ### Passaggio 1: Crea il progetto
74
+
75
+ Inizia creando un nuovo progetto TanStack Start seguendo la guida [Avvia un nuovo progetto](https://tanstack.com/start/latest/docs/framework/solid/quick-start) sul sito web di TanStack Start.
76
+
77
+ ### Passaggio 2: Installa i pacchetti Intlayer
78
+
79
+ Installa i pacchetti necessari utilizzando il tuo gestore di pacchetti preferito:
80
+
81
+ ```bash packageManager="npm"
82
+ npm install intlayer solid-intlayer
83
+ npm install vite-intlayer --save-dev
84
+ npx intlayer init
85
+ ```
86
+
87
+ ```bash packageManager="pnpm"
88
+ pnpm add intlayer solid-intlayer
89
+ pnpm add vite-intlayer --save-dev
90
+ pnpm intlayer init
91
+ ```
92
+
93
+ ```bash packageManager="yarn"
94
+ yarn add intlayer solid-intlayer
95
+ yarn add vite-intlayer --save-dev
96
+ yarn intlayer init
97
+ ```
98
+
99
+ ```bash packageManager="bun"
100
+ bun add intlayer solid-intlayer
101
+ bun add vite-intlayer --dev
102
+ bun x intlayer init
103
+ ```
104
+
105
+ - **intlayer**
106
+
107
+ Il pacchetto principale che fornisce strumenti di internazionalizzazione per la gestione della configurazione, la traduzione, la [dichiarazione dei contenuti](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/dictionary/content_file.md), la traspilazione e i [comandi CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/index.md).
108
+
109
+ - **solid-intlayer**
110
+ Il pacchetto che integra Intlayer con l'applicazione Solid. Fornisce fornitori di contesto e hook per l'internazionalizzazione di Solid.
111
+
112
+ - **vite-intlayer**
113
+ Include il plugin Vite per integrare Intlayer con il [bundler Vite](https://vite.dev/guide/why.html#why-bundle-for-production), oltre al middleware per rilevare la lingua preferita dell'utente, gestire i cookie e gestire il reindirizzamento degli URL.
114
+
115
+ ### Passaggio 3: Configurazione del progetto
116
+
117
+ Crea un file di configurazione per configurare le lingue della tua applicazione:
118
+
119
+ ```typescript fileName="intlayer.config.ts"
120
+ import type { IntlayerConfig } from "intlayer";
121
+
122
+ import { Locales } from "intlayer";
123
+
124
+ const config: IntlayerConfig = {
125
+ internationalization: {
126
+ defaultLocale: Locales.ENGLISH,
127
+ locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
128
+ },
129
+ };
130
+
131
+ export default config;
132
+ ```
133
+
134
+ > Attraverso questo file di configurazione, puoi impostare URL localizzati, reindirizzamento del middleware, nomi dei cookie, la posizione e l'estensione delle tue dichiarazioni di contenuto, disabilitare i log di Intlayer nella console e altro ancora. Per un elenco completo dei parametri disponibili, fai riferimento alla [documentazione di configurazione](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/configuration.md).
135
+
136
+ ### Passaggio 4: Integra Intlayer nella tua configurazione Vite
137
+
138
+ Aggiungi il plugin intlayer nella tua configurazione:
139
+
140
+ ```typescript fileName="vite.config.ts"
141
+ import { intlayer } from "vite-intlayer";
142
+ import { defineConfig } from "vite";
143
+ import { devtools } from "@tanstack/devtools-vite";
144
+ import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
145
+ import solidPlugin from "vite-plugin-solid";
146
+
147
+ export default defineConfig({
148
+ plugins: [
149
+ devtools(),
150
+ tanstackStart({
151
+ router: {
152
+ routeFileIgnorePattern:
153
+ ".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
154
+ },
155
+ }),
156
+ solidPlugin({ ssr: true }),
157
+ intlayer(),
158
+ ],
159
+ });
160
+ ```
161
+
162
+ > Il plugin Vite `intlayer()` viene utilizzato per integrare Intlayer con Vite. Garantisce la creazione dei file di dichiarazione dei contenuti e li monitora in modalità sviluppo. Definisce le variabili d'ambiente di Intlayer all'interno dell'applicazione Vite. Inoltre, fornisce alias per ottimizzare le prestazioni.
163
+
164
+ ### Passaggio 5: Crea il layout radice (Root Layout)
165
+
166
+ Configura il tuo layout radice per supportare l'internazionalizzazione utilizzando `useMatches` per rilevare la lingua corrente e impostando gli attributi `lang` e `dir` sul tag `html`.
167
+
168
+ ```tsx fileName="src/routes/__root.tsx"
169
+ import {
170
+ HeadContent,
171
+ Outlet,
172
+ Scripts,
173
+ createRootRouteWithContext,
174
+ useMatches,
175
+ } from "@tanstack/solid-router";
176
+ import { TanStackRouterDevtools } from "@tanstack/solid-router-devtools";
177
+ import { HydrationScript } from "solid-js/web";
178
+ import { Suspense } from "solid-js";
179
+ import { IntlayerProvider } from "solid-intlayer";
180
+ import { defaultLocale, getHTMLTextDir, type Locale } from "intlayer";
181
+
182
+ export const Route = createRootRouteWithContext()({
183
+ shellComponent: RootComponent,
184
+ });
185
+
186
+ type Params = {
187
+ locale: Locale;
188
+ };
189
+
190
+ function RootComponent() {
191
+ const matches = useMatches();
192
+
193
+ // Cerca di trovare la locale nei parametri di qualsiasi match attivo
194
+ // Questo presuppone che tu utilizzi il segmento dinamico "/{-$locale}" nel tuo albero delle rotte
195
+ const locale =
196
+ (
197
+ matches().find((match) => match.routeId === "/{-$locale}/")
198
+ ?.params as Params
199
+ )?.locale ?? defaultLocale;
200
+
201
+ return (
202
+ <html dir={getHTMLTextDir(locale)} lang={locale}>
203
+ <head>
204
+ <HydrationScript />
205
+ </head>
206
+ <body>
207
+ <HeadContent />
208
+ <IntlayerProvider locale={locale}>
209
+ <Suspense>
210
+ <Outlet />
211
+ <TanStackRouterDevtools />
212
+ </Suspense>
213
+ </IntlayerProvider>
214
+ <Scripts />
215
+ </body>
216
+ </html>
217
+ );
218
+ }
219
+ ```
220
+
221
+ ### Passaggio 6: Crea il layout della lingua (Opzionale)
222
+
223
+ Crea un layout che gestisca il prefisso della lingua ed effettui la validazione. Questo layout assicurerà che vengano elaborati solo prefissi di lingua validi.
224
+
225
+ > Questo passaggio è opzionale se non hai bisogno di validare il prefisso della lingua a livello di rotta.
226
+
227
+ ```tsx fileName="src/routes/{-$locale}/route.tsx"
228
+ import { createFileRoute, Outlet, redirect } from "@tanstack/solid-router";
229
+ import { validatePrefix } from "intlayer";
230
+
231
+ export const Route = createFileRoute("/{-$locale}")({
232
+ beforeLoad: ({ params }) => {
233
+ const localeParam = params.locale;
234
+
235
+ // Convalida il prefisso della lingua
236
+ const { isValid, localePrefix } = validatePrefix(localeParam);
237
+
238
+ if (!isValid) {
239
+ throw redirect({
240
+ to: "/{-$locale}/404",
241
+ params: { locale: localePrefix },
242
+ replace: true,
243
+ });
244
+ }
245
+ },
246
+ component: Outlet,
247
+ });
248
+ ```
249
+
250
+ > Qui, `{-$locale}` è un parametro di rotta dinamico che viene sostituito con la lingua corrente. Questa notazione rende lo slot opzionale, consentendogli di funzionare con modalità di routing come `'prefix-no-default'`, ecc.
251
+
252
+ > Tieni presente che questo slot può causare problemi se utilizzi più segmenti dinamici nella stessa rotta (ad esempio, `/{-$locale}/altro-percorso/$unAltroPercorsoDinamico/...`).
253
+ > Per la modalità `'prefix-all'`, potresti preferire cambiare lo slot in `$locale`.
254
+ > Per la modalità `'no-prefix'` o `'search-params'`, puoi rimuovere completamente lo slot.
255
+
256
+ ### Passaggio 7: Dichiarazione dei contenuti
257
+
258
+ Crea e gestisci le tue dichiarazioni dei contenuti per memorizzare le traduzioni:
259
+
260
+ ```tsx fileName="src/contents/page.content.ts"
261
+ import type { Dictionary } from "intlayer";
262
+
263
+ import { t } from "intlayer";
264
+
265
+ const appContent = {
266
+ content: {
267
+ links: {
268
+ about: t({
269
+ en: "About",
270
+ es: "Acerca de",
271
+ fr: "À propos",
272
+ }),
273
+ home: t({
274
+ en: "Home",
275
+ es: "Inicio",
276
+ fr: "Accueil",
277
+ }),
278
+ },
279
+ meta: {
280
+ title: t({
281
+ en: "Welcome to Intlayer + TanStack Router",
282
+ es: "Bienvenido a Intlayer + TanStack Router",
283
+ fr: "Bienvenue à Intlayer + TanStack Router",
284
+ }),
285
+ description: t({
286
+ en: "This is an example of using Intlayer with TanStack Router",
287
+ es: "Este es un ejemplo de uso de Intlayer con TanStack Router",
288
+ fr: "Ceci est un esempio d'utilizzo d'Intlayer avec TanStack Router",
289
+ }),
290
+ },
291
+ },
292
+ key: "app",
293
+ } satisfies Dictionary;
294
+
295
+ export default appContent;
296
+ ```
297
+
298
+ > Le tue dichiarazioni dei contenuti possono essere definite ovunque nella tua applicazione, a condizione che siano incluse nella directory `contentDir` (per impostazione predefinita, `./app`). E corrispondano all'estensione del file di dichiarazione dei contenuti (per impostazione predefinita, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
299
+
300
+ > Per maggiori dettagli, fai riferimento alla [documentazione sulla dichiarazione dei contenuti](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/dictionary/content_file.md).
301
+
302
+ ### Passaggio 8: Utilizza componenti e hook sensibili alla lingua
303
+
304
+ Crea un componente `LocalizedLink` per una navigazione sensibile alla lingua:
305
+
306
+ ```tsx fileName="src/components/LocalizedLink.tsx"
307
+ import { Link, type LinkProps } from "@tanstack/solid-router";
308
+ import { getPrefix } from "intlayer";
309
+ import { useLocale } from "solid-intlayer";
310
+ import type { JSX } from "solid-js";
311
+
312
+ export const LOCALE_ROUTE = "{-$locale}" as const;
313
+
314
+ export type RemoveLocaleParam<TVal> = TVal extends string
315
+ ? RemoveLocaleFromString<TVal>
316
+ : TVal;
317
+
318
+ export type To = RemoveLocaleParam<LinkProps["to"]>;
319
+
320
+ type CollapseDoubleSlashes<TString extends string> =
321
+ TString extends `${infer THead}//${infer TTail}`
322
+ ? CollapseDoubleSlashes<`${THead}/${TTail}`>
323
+ : TString;
324
+
325
+ export type LocalizedLinkProps = Omit<LinkProps, "to"> & {
326
+ to?: To;
327
+ } & JSX.AnchorHTMLAttributes<HTMLAnchorElement>;
328
+
329
+ type RemoveAll<
330
+ TString extends string,
331
+ TSub extends string,
332
+ > = TString extends `${infer THead}${TSub}${infer TTail}`
333
+ ? RemoveAll<`${THead}${TTail}`, TSub>
334
+ : TString;
335
+
336
+ type RemoveLocaleFromString<TString extends string> = CollapseDoubleSlashes<
337
+ RemoveAll<TString, typeof LOCALE_ROUTE>
338
+ >;
339
+
340
+ export const LocalizedLink = (props: LocalizedLinkProps) => {
341
+ const { locale } = useLocale();
342
+
343
+ return (
344
+ <Link
345
+ {...props}
346
+ params={{
347
+ locale: getPrefix(locale()).localePrefix,
348
+ ...(typeof props.params === "object" ? props.params : {}),
349
+ }}
350
+ to={`/${LOCALE_ROUTE}${props.to ?? ""}` as LinkProps["to"]}
351
+ />
352
+ );
353
+ };
354
+ ```
355
+
356
+ Questo componente ha due obiettivi:
357
+
358
+ - Rimuovere il prefisso inutile `{-$locale}` dall'URL.
359
+ - Iniettare il parametro della lingua nell'URL per garantire che l'utente venga reindirizzato direttamente alla rotta localizzata.
360
+
361
+ Quindi possiamo creare un hook `useLocalizedNavigate` per la navigazione programmatica:
362
+
363
+ ```tsx fileName="src/hooks/useLocalizedNavigate.tsx"
364
+ import { useNavigate } from "@tanstack/solid-router";
365
+ import { getLocalizedUrl } from "intlayer";
366
+ import { useLocale } from "solid-intlayer";
367
+
368
+ export const useLocalizedNavigate = () => {
369
+ const navigate = useNavigate();
370
+ const { locale } = useLocale();
371
+
372
+ const localizedNavigate = (to: string) => {
373
+ const localizedTo = getLocalizedUrl(to, locale());
374
+ return navigate({ to: localizedTo });
375
+ };
376
+
377
+ return localizedNavigate;
378
+ };
379
+ ```
380
+
381
+ ### Passaggio 9: Utilizza Intlayer nelle tue pagine
382
+
383
+ Accedi ai tuoi dizionari dei contenuti in tutta l'applicazione:
384
+
385
+ #### Home Page localizzata
386
+
387
+ ```tsx fileName="src/routes/{-$locale}/index.tsx"
388
+ import { createFileRoute } from "@tanstack/solid-router";
389
+ import { useIntlayer } from "solid-intlayer";
390
+ import { LocalizedLink } from "@/components/LocalizedLink";
391
+
392
+ export const Route = createFileRoute("/{-$locale}/")({
393
+ component: RouteComponent,
394
+ });
395
+
396
+ function RouteComponent() {
397
+ const content = useIntlayer("index-page");
398
+
399
+ return (
400
+ <main>
401
+ <h1>{content().heroTitle}</h1>
402
+ <p>{content().heroDesc}</p>
403
+ <div>
404
+ <LocalizedLink to="/">{content().navHome}</LocalizedLink>
405
+ <LocalizedLink to="/about">{content().navAbout}</LocalizedLink>
406
+ </div>
407
+ </main>
408
+ );
409
+ }
410
+ ```
411
+
412
+ > In Solid, `useIntlayer` restituisce una funzione **accessor** (ad esempio, `content()`). È necessario chiamare questa funzione per accedere al contenuto reattivo.
413
+ >
414
+ > Per saperne di più sull'hook `useIntlayer`, fai riferimento alla [documentazione](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/packages/solid-intlayer/useIntlayer.md).
415
+
416
+ ### Passaggio 10: Crea un componente per cambiare lingua (Locale Switcher)
417
+
418
+ Crea un componente per consentire agli utenti di cambiare lingua:
419
+
420
+ ```tsx fileName="src/components/LocaleSwitcher.tsx"
421
+ import { useLocation } from "@tanstack/solid-router";
422
+ import { getLocaleName, getPathWithoutLocale, getPrefix } from "intlayer";
423
+ import { For } from "solid-js";
424
+ import { useIntlayer, useLocale } from "solid-intlayer";
425
+ import { LocalizedLink, type To } from "./LocalizedLink";
426
+
427
+ export const LocaleSwitcher = () => {
428
+ const content = useIntlayer("locale-switcher");
429
+ const location = useLocation();
430
+
431
+ const { availableLocales, locale, setLocale } = useLocale();
432
+
433
+ const pathWithoutLocale = () => getPathWithoutLocale(location().pathname);
434
+
435
+ return (
436
+ <div class="flex flex-row gap-2">
437
+ <For each={availableLocales}>
438
+ {(localeEl) => (
439
+ <LocalizedLink
440
+ aria-current={localeEl === locale() ? "page" : undefined}
441
+ onClick={() => setLocale(localeEl)}
442
+ params={{ locale: getPrefix(localeEl).localePrefix }}
443
+ to={pathWithoutLocale() as To}
444
+ >
445
+ {getLocaleName(localeEl)}
446
+ </LocalizedLink>
447
+ )}
448
+ </For>
449
+ </div>
450
+ );
451
+ };
452
+
453
+ export default LocaleSwitcher;
454
+ ```
455
+
456
+ > In Solid, `locale` da `useLocale` è un **accessore di segnale**. Usa `locale()` (con le parentesi) per leggere il suo valore corrente in modo reattivo.
457
+ >
458
+ > Per saperne di più sull'hook `useLocale`, fai riferimento alla [documentazione](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/packages/solid-intlayer/useLocale.md).
459
+
460
+ ### Passaggio 11: Gestione degli attributi HTML
461
+
462
+ Come visto nel Passaggio 5, puoi gestire gli attributi `lang` e `dir` del tag `html` utilizzando `useMatches` nel tuo componente radice. Questo assicura che vengano impostati gli attributi corretti sia sul server che sul client.
463
+
464
+ ```tsx fileName="src/routes/__root.tsx"
465
+ const RootComponent: ParentComponent = (props) => {
466
+ const matches = useMatches();
467
+
468
+ // Cercare di trovare la lingua nei parametri di qualsiasi corrispondenza attiva
469
+ const locale =
470
+ (
471
+ matches().find((match) => match.routeId === "/{-$locale}/")
472
+ ?.params as Params
473
+ )?.locale ?? defaultLocale;
474
+
475
+ return (
476
+ <html dir={getHTMLTextDir(locale)} lang={locale}>
477
+ {/* ... */}
478
+ </html>
479
+ );
480
+ };
481
+ ```
482
+
483
+ ---
484
+
485
+ ### Passaggio 12: Aggiungi il middleware (Opzionale)
486
+
487
+ Puoi anche utilizzare `intlayerProxy` per aggiungere il routing lato server alla tua applicazione. Questo plugin rileverà automaticamente la lingua corrente in base all'URL e imposterà il cookie della lingua appropriato. Se non viene specificata alcuna lingua, il plugin determinerà la lingua più appropriata in base alle preferenze linguistiche del browser dell'utente. Se non viene rilevata alcuna lingua, reindirizzerà alla lingua predefinita.
488
+
489
+ > Tieni presente che per utilizzare `intlayerProxy` in produzione, è necessario spostare il pacchetto `vite-intlayer` da `devDependencies` a `dependencies`.
490
+
491
+ ```typescript {7,14-17} fileName="vite.config.ts"
492
+ import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
493
+ import solid from "vite-plugin-solid";
494
+ import { nitro } from "nitro/vite";
495
+ import { defineConfig } from "vite";
496
+ import { intlayer, intlayerProxy } from "vite-intlayer";
497
+
498
+ export default defineConfig({
499
+ plugins: [
500
+ intlayerProxy(), // Il proxy deve essere posizionato prima del server se si usa Nitro
501
+ nitro(),
502
+ intlayer(),
503
+ tanstackStart({
504
+ router: {
505
+ routeFileIgnorePattern:
506
+ ".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
507
+ },
508
+ }),
509
+ solid(),
510
+ ],
511
+ });
512
+ ```
513
+
514
+ ---
515
+
516
+ ### Passaggio 13: Internazionalizza i tuoi metadati (Opzionale)
517
+
518
+ Puoi anche usare la funzione `getIntlayer` per accedere ai tuoi dizionari dei contenuti all'interno del loader `head` per i metadati sensibili alla localizzazione:
519
+
520
+ ```tsx fileName="src/routes/{-$locale}/index.tsx"
521
+ import { createFileRoute } from "@tanstack/solid-router";
522
+ import { getIntlayer } from "intlayer";
523
+
524
+ export const Route = createFileRoute("/{-$locale}/")({
525
+ component: RouteComponent,
526
+ head: ({ params }) => {
527
+ const { locale } = params;
528
+ const metaContent = getIntlayer("page-metadata", locale);
529
+
530
+ return {
531
+ meta: [
532
+ { title: metaContent.title },
533
+ { content: metaContent.description, name: "description" },
534
+ ],
535
+ };
536
+ },
537
+ });
538
+ ```
539
+
540
+ ---
541
+
542
+ ### Passaggio 14: Recupera la lingua nelle tue azioni server (Opzionale)
543
+
544
+ Potresti voler accedere alla lingua corrente dall'interno delle tue azioni server o dei tuoi endpoint API.
545
+ Puoi farlo usando l'aiutante `getLocale` di `intlayer`.
546
+
547
+ Ecco un esempio usando le funzioni server di TanStack Start:
548
+
549
+ ```tsx fileName="src/routes/{-$locale}/index.tsx"
550
+ import { createServerFn } from "@tanstack/solid-start";
551
+ import {
552
+ getRequestHeader,
553
+ getRequestHeaders,
554
+ } from "@tanstack/solid-start/server";
555
+ import { getCookie, getIntlayer, getLocale } from "intlayer";
556
+
557
+ export const getLocaleServer = createServerFn().handler(async () => {
558
+ const locale = await getLocale({
559
+ // Ottenere il cookie dalla richiesta (predefinito: 'INTLAYER_LOCALE')
560
+ getCookie: (name) => {
561
+ const cookieString = getRequestHeader("cookie");
562
+
563
+ return getCookie(name, cookieString);
564
+ },
565
+ // Ottenere l'intestazione dalla richiesta (predefinito: 'x-intlayer-locale')
566
+ // Fallback usando la negoziazione Accept-Language
567
+ getHeader: (name) => getRequestHeader(name),
568
+ });
569
+
570
+ // Recuperare del contenuto usando getIntlayer()
571
+ const content = getIntlayer("app", locale);
572
+
573
+ return { locale, content };
574
+ });
575
+ ```
576
+
577
+ ---
578
+
579
+ ### Passaggio 15: Gestione delle pagine non trovate (Opzionale)
580
+
581
+ Quando un utente visita una pagina inesistente, puoi mostrare una pagina di errore 404 personalizzata e il prefisso della lingua può influenzare il modo in cui tale pagina viene attivata.
582
+
583
+ #### Capire la gestione 404 di TanStack Router con i prefissi della lingua
584
+
585
+ In TanStack Router, la gestione delle pagine 404 con rotte localizzate richiede un approccio a più livelli:
586
+
587
+ 1. **Rotta 404 dedicata**: Una rotta specifica per visualizzare l'interfaccia utente 404
588
+ 2. **Validazione a livello di rotta**: Convalida i prefissi della lingua e reindirizza quelli non validi alla pagina 404
589
+ 3. **Rotta catch-all**: Cattura qualsiasi percorso non corrispondente all'interno del segmento della lingua
590
+
591
+ ```tsx fileName="src/routes/{-$locale}/404.tsx"
592
+ import { createFileRoute } from "@tanstack/solid-router";
593
+
594
+ // Questo crea una rotta dedicata /[locale]/404
595
+ // È usata sia come rotta diretta che importata come componente in altri file
596
+ export const Route = createFileRoute("/{-$locale}/404")({
597
+ component: NotFoundComponent,
598
+ });
599
+
600
+ // Esportata separatamente in modo da poter essere riutilizzata in notFoundComponent e nelle rotte catch-all
601
+ export function NotFoundComponent() {
602
+ return (
603
+ <div>
604
+ <h1>404</h1>
605
+ </div>
606
+ );
607
+ }
608
+ ```
609
+
610
+ ```tsx fileName="src/routes/{-$locale}/route.tsx"
611
+ import { createFileRoute, Outlet, redirect } from "@tanstack/solid-router";
612
+ import { validatePrefix } from "intlayer";
613
+ import { NotFoundComponent } from "./404";
614
+
615
+ export const Route = createFileRoute("/{-$locale}")({
616
+ // beforeLoad viene eseguito prima del rendering della rotta (sia sul server che sul client)
617
+ // È il posto ideale per convalidare il prefisso della lingua
618
+ beforeLoad: ({ params }) => {
619
+ const localeParam = params.locale;
620
+
621
+ // validatePrefix controlla se la lingua è valida secondo la tua configurazione intlayer
622
+ const { isValid, localePrefix } = validatePrefix(localeParam);
623
+
624
+ if (!isValid) {
625
+ // Prefisso della lingua non valido - reindirizza alla pagina 404 con un prefisso della lingua valido
626
+ throw redirect({
627
+ to: "/{-$locale}/404",
628
+ params: { locale: localePrefix },
629
+ });
630
+ }
631
+ },
632
+ component: Outlet,
633
+ // notFoundComponent viene chiamato quando una rotta figlia non esiste
634
+ // ad esempio, /en/pagina-inesistente attiva questo all'interno del layout /en
635
+ notFoundComponent: NotFoundComponent,
636
+ });
637
+ ```
638
+
639
+ ```tsx fileName="src/routes/{-$locale}/$.tsx"
640
+ import { createFileRoute } from "@tanstack/solid-router";
641
+
642
+ import { NotFoundComponent } from "./404";
643
+
644
+ // La rotta $ (splat/catch-all) corrisponde a qualsiasi percorso che non corrisponde ad altre rotte
645
+ // ad esempio, /en/qualche/percorso/profondo/non-valido
646
+ // Questo assicura che TUTTI i percorsi non corrispondenti all'interno di una lingua mostrino la pagina 404
647
+ // Senza questo, i percorsi profondi non corrispondenti potrebbero mostrare una pagina bianca o un errore
648
+ export const Route = createFileRoute("/{-$locale}/$")({
649
+ component: NotFoundComponent,
650
+ });
651
+ ```
652
+
653
+ ### (Opzionale) Passaggio 15: Estrarre il contenuto dei componenti
654
+
655
+ Se hai una base di codice esistente, trasformare migliaia di file può richiedere molto tempo.
656
+
657
+ Per facilitare questo processo, Intlayer propone un [compilatore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/compiler.md) / [estrattore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md) per trasformare i tuoi componenti ed estrarre il contenuto.
658
+
659
+ Per configurarlo, puoi aggiungere una sezione `compiler` nel tuo file `intlayer.config.ts`:
660
+
661
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
662
+ import { type IntlayerConfig } from "intlayer";
663
+
664
+ const config: IntlayerConfig = {
665
+ // ... Resto della configurazione
666
+ compiler: {
667
+ /**
668
+ * Indica se il compilatore deve essere abilitato.
669
+ */
670
+ enabled: true,
671
+
672
+ /**
673
+ * Definisce il percorso dei file di output
674
+ */
675
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
676
+
677
+ /**
678
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati.
679
+ *
680
+ * - Se `true`, il compilatore riscriverà il file del componente sul disco. Quindi la trasformazione sarà permanente e il compilatore salterà la trasformazione per il processo successivo. In questo modo, il compilatore può trasformare l'app e poi essere rimosso.
681
+ *
682
+ * - Se `false`, il compilatore inietterà la chiamata alla funzione `useIntlayer()` solo nel codice dell'output di build, mantenendo intatta la base di codice. La trasformazione avverrà solo in memoria.
683
+ */
684
+ saveComponents: false,
685
+
686
+ /**
687
+ * Prefisso della chiave del dizionario
688
+ */
689
+ dictionaryKeyPrefix: "",
690
+ },
691
+ };
692
+
693
+ export default config;
694
+ ```
695
+
696
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
697
+ /** @type {import('intlayer').IntlayerConfig} */
698
+ const config = {
699
+ // ... Resto della configurazione
700
+ compiler: {
701
+ /**
702
+ * Indica se il compilatore deve essere abilitato.
703
+ */
704
+ enabled: true,
705
+
706
+ /**
707
+ * Definisce il percorso dei file di output
708
+ */
709
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
710
+
711
+ /**
712
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati.
713
+ *
714
+ * - Se `true`, il compilatore riscriverà il file del componente sul disco. Quindi la trasformazione sarà permanente e il compilatore salterà la trasformazione per il processo successivo. In questo modo, il compilatore può trasformare l'app e poi essere rimosso.
715
+ *
716
+ * - Se `false`, il compilatore inietterà la chiamata alla funzione `useIntlayer()` nel codice dell'output di build solo, mantenendo intatta la base di codice. La trasformazione avverrà solo in memoria.
717
+ */
718
+ saveComponents: false,
719
+
720
+ /**
721
+ * Prefisso della chiave del dizionario
722
+ */
723
+ dictionaryKeyPrefix: "",
724
+ },
725
+ };
726
+
727
+ export default config;
728
+ ```
729
+
730
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
731
+ /** @type {import('intlayer').IntlayerConfig} */
732
+ const config = {
733
+ // ... Resto della configurazione
734
+ compiler: {
735
+ /**
736
+ * Indica se il compilatore deve essere abilitato.
737
+ */
738
+ enabled: true,
739
+
740
+ /**
741
+ * Definisce il percorso dei file di output
742
+ */
743
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
744
+
745
+ /**
746
+ * Indica se i componenti devono essere salvati dopo essere stati trasformati.
747
+ *
748
+ * - Se `true`, il compilatore riscriverà il file del componente sul disco. Quindi la trasformazione sarà permanente e il compilatore salterà la trasformazione per il processo successivo. In questo modo, il compilatore può trasformare l'app e poi essere rimosso.
749
+ *
750
+ * - Se `false`, il compilatore inietterà la chiamata alla funzione `useIntlayer()` nel codice dell'output di build solo, mantenendo intatta la base di codice. La trasformazione avverrà solo in memoria.
751
+ */
752
+ saveComponents: false,
753
+
754
+ /**
755
+ * Prefisso della chiave del dizionario
756
+ */
757
+ dictionaryKeyPrefix: "",
758
+ },
759
+ };
760
+
761
+ module.exports = config;
762
+ ```
763
+
764
+ <Tabs>
765
+ <Tab value='Comando extract'>
766
+
767
+ Esegui l'estrattore per trasformare i tuoi componenti ed estrarre il contenuto
768
+
769
+ ```bash packageManager="npm"
770
+ npx intlayer extract
771
+ ```
772
+
773
+ ```bash packageManager="pnpm"
774
+ pnpm intlayer extract
775
+ ```
776
+
777
+ ```bash packageManager="yarn"
778
+ yarn intlayer extract
779
+ ```
780
+
781
+ ```bash packageManager="bun"
782
+ bun x intlayer extract
783
+ ```
784
+
785
+ </Tab>
786
+ <Tab value='Compilatore Babel'>
787
+
788
+ Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
789
+
790
+ ```ts fileName="vite.config.ts"
791
+ import { intlayer, intlayerCompiler } from "vite-intlayer";
792
+ import { defineConfig } from "vite";
793
+ import { devtools } from "@tanstack/devtools-vite";
794
+ import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
795
+ import solidPlugin from "vite-plugin-solid";
796
+
797
+ export default defineConfig({
798
+ plugins: [
799
+ devtools(),
800
+ tanstackStart({
801
+ router: {
802
+ routeFileIgnorePattern:
803
+ ".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
804
+ },
805
+ }),
806
+ solidPlugin({ ssr: true }),
807
+ intlayer(),
808
+ intlayerCompiler(),
809
+ ],
810
+ });
811
+ ```
812
+
813
+ ```bash packageManager="npm"
814
+ npm run build # Oppure npm run dev
815
+ ```
816
+
817
+ ```bash packageManager="pnpm"
818
+ pnpm run build # Oppure pnpm run dev
819
+ ```
820
+
821
+ ```bash packageManager="yarn"
822
+ yarn build # Oppure yarn dev
823
+ ```
824
+
825
+ ```bash packageManager="bun"
826
+ bun run build # Oppure bun run dev
827
+ ```
828
+
829
+ </Tab>
830
+ </Tabs>
831
+
832
+ ---
833
+
834
+ ### Passaggio 16: Generare una Sitemap (Opzionale)
835
+
836
+ Intlayer include un generatore di sitemap integrato per aiutarti a creare facilmente una sitemap per la tua applicazione. Gestisce le rotte localizzate e aggiunge i metadati necessari per i motori di ricerca.
837
+
838
+ > La sitemap generata da Intlayer supporta lo spazio dei nomi `xhtml:link` (Hreflang XML Extensions). A differenza dei generatori di sitemap predefiniti che elencano solo URL grezzi, Intlayer crea automaticamente i collegamenti bidirezionali richiesti tra tutte le versioni linguistiche di una pagina (ad esempio, `/about`, `/about?lang=fr` e `/about?lang=es`). Ciò garantisce che i motori di ricerca indicizzino e servano correttamente la versione linguistica corretta al pubblico giusto.
839
+
840
+ Per utilizzarlo, devi prima configurare il tuo file `vite.config.ts` per abilitare il pre-rendering per i tuoi percorsi localizzati e disabilitare la generazione predefinita della sitemap di TanStack Start.
841
+
842
+ ```typescript fileName="vite.config.ts"
843
+ import { localeMap, localeFlatMap } from "intlayer";
844
+ // ... altre importazioni
845
+
846
+ export const pathList = ["", "/about", "/404"];
847
+
848
+ const localizedPages = localeFlatMap(({ urlPrefix }) =>
849
+ pathList.map((path) => ({
850
+ path: `${urlPrefix}${path}`,
851
+ prerender: {
852
+ enabled: true,
853
+ },
854
+ }))
855
+ );
856
+
857
+ export default defineConfig({
858
+ plugins: [
859
+ // ... altri plugin
860
+ tanstackStart({
861
+ // ... altre configurazioni
862
+ sitemap: {
863
+ enabled: false,
864
+ },
865
+ prerender: {
866
+ enabled: true,
867
+ crawlLinks: false,
868
+ concurrency: 10,
869
+ },
870
+ pages: localizedPages,
871
+ }),
872
+ ],
873
+ });
874
+ ```
875
+
876
+ Quindi, crea un percorso `src/routes/sitemap[.]xml.ts` che utilizzi la funzione `generateSitemap`:
877
+
878
+ ```typescript fileName="src/routes/sitemap[.]xml.ts"
879
+ import { createFileRoute } from "@tanstack/solid-router";
880
+ import { generateSitemap } from "intlayer";
881
+
882
+ const SITE_URL = (
883
+ import.meta.env.VITE_SITE_URL ?? "http://localhost:3000"
884
+ ).replace(/\/$/, "");
885
+
886
+ export const Route = createFileRoute("/sitemap.xml")({
887
+ server: {
888
+ handlers: {
889
+ GET: async () => {
890
+ const sitemap = generateSitemap(
891
+ [
892
+ { path: "/", changefreq: "daily", priority: 1.0 },
893
+ { path: "/about", changefreq: "monthly", priority: 0.8 },
894
+ ],
895
+ { siteUrl: SITE_URL }
896
+ );
897
+
898
+ return new Response(sitemap, {
899
+ headers: { "Content-Type": "application/xml" },
900
+ });
901
+ },
902
+ },
903
+ },
904
+ });
905
+ ```
906
+
907
+ ---
908
+
909
+ ### Passaggio 17: Configura TypeScript (Opzionale)
910
+
911
+ Intlayer utilizza l'aumento dei moduli per sfruttare i vantaggi di TypeScript e rendere la tua base di codice più robusta.
912
+
913
+ Assicurati che la tua configurazione TypeScript includa i tipi autogenerati:
914
+
915
+ ```json5 fileName="tsconfig.json"
916
+ {
917
+ // ... le tue configurazioni esistenti
918
+ include: [
919
+ // ... i tuoi include esistenti
920
+ ".intlayer/**/*.ts", // Includi i tipi autogenerati
921
+ ],
922
+ }
923
+ ```
924
+
925
+ ---
926
+
927
+ ### Configurazione Git
928
+
929
+ Si consiglia di ignorare i file generati da Intlayer. Ciò consente di evitare di inserirli nel repository Git.
930
+
931
+ Per fare ciò, puoi aggiungere le seguenti istruzioni al tuo file `.gitignore`:
932
+
933
+ ```plaintext fileName=".gitignore"
934
+ # Ignora i file generati da Intlayer
935
+ .intlayer
936
+ ```
937
+
938
+ ---
939
+
940
+ ## Estensione VS Code
941
+
942
+ Per migliorare la tua esperienza di sviluppo con Intlayer, puoi installare l'**estensione ufficiale Intlayer VS Code**.
943
+
944
+ [Installa dal Marketplace di VS Code](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
945
+
946
+ Questa estensione fornisce:
947
+
948
+ - **Autocompletamento** per le chiavi di traduzione.
949
+ - **Rilevamento degli errori in tempo reale** per le traduzioni mancanti.
950
+ - **Anteprime in linea** del contenuto tradotto.
951
+ - **Azioni rapide** per creare e aggiornare facilmente le traduzioni.
952
+
953
+ Per maggiori dettagli su come utilizzare l'estensione, fai riferimento alla [documentazione dell'estensione Intlayer VS Code](https://intlayer.org/doc/vs-code-extension).
954
+
955
+ ---
956
+
957
+ ## Approfondimenti
958
+
959
+ Per approfondire, puoi implementare l'[editor visuale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_visual_editor.md) o esternalizzare i tuoi contenuti utilizzando il [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_CMS.md).
960
+
961
+ ---
962
+
963
+ ## Riferimenti della documentazione
964
+
965
+ - [Documentazione Intlayer](https://intlayer.org)
966
+ - [Documentazione Tanstack Start](https://tanstack.com/start/latest)
967
+ - [hook useIntlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/packages/solid-intlayer/useIntlayer.md)
968
+ - [hook useLocale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/packages/solid-intlayer/useLocale.md)
969
+ - [Dichiarazione dei contenuti](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/dictionary/content_file.md)
970
+ - [Configurazione](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/configuration.md)