@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,973 @@
1
+ ---
2
+ createdAt: 2025-03-25
3
+ updatedAt: 2026-03-29
4
+ title: Tanstack Start i18n - How to translate a Tanstack Start app using Solid.js in 2026
5
+ description: Learn how to add internationalization (i18n) to your Tanstack Start application using Intlayer and Solid.js. Follow this comprehensive guide to make your app multilingual with locale-aware routing.
6
+ keywords:
7
+ - Internationalization
8
+ - Documentation
9
+ - Intlayer
10
+ - Tanstack Start
11
+ - Solid
12
+ - i18n
13
+ - TypeScript
14
+ - Locale Routing
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.6.0
24
+ date: 2026-03-29
25
+ changes: "Add pre-render & sitemap"
26
+ - version: 8.5.1
27
+ date: 2026-03-25
28
+ changes: "Added for Tanstack Start Solid.js"
29
+ ---
30
+
31
+ # Translate your Tanstack Start with Solid.js website using Intlayer | Internationalization (i18n)
32
+
33
+ ## Table of Contents
34
+
35
+ <TOC/>
36
+
37
+ This guide demonstrates how to integrate **Intlayer** for seamless internationalization in Tanstack Start projects with Solid.js, locale-aware routing, TypeScript support, and modern development practices.
38
+
39
+ ## What is Intlayer?
40
+
41
+ **Intlayer** is an innovative, open-source internationalization (i18n) library designed to simplify multilingual support in modern web applications.
42
+
43
+ With Intlayer, you can:
44
+
45
+ - **Easily manage translations** using declarative dictionaries at the component level.
46
+ - **Dynamically localize metadata**, routes, and content.
47
+ - **Ensure TypeScript support** with autogenerated types, improving autocompletion and error detection.
48
+ - **Benefit from advanced features**, like dynamic locale detection and switching.
49
+ - **Enable locale-aware routing** with Tanstack Start's file-based routing system.
50
+
51
+ ---
52
+
53
+ ## Step-by-Step Guide to Set Up Intlayer in a Tanstack Start Application
54
+
55
+ <Tabs defaultTab="video">
56
+ <Tab label="Video" value="video">
57
+
58
+ <iframe title="The best i18n solution for Tanstack Start? Discover 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"/>
59
+
60
+ </Tab>
61
+ <Tab label="Code" value="code">
62
+
63
+ <iframe
64
+ src="https://stackblitz.com/github/aymericzip/intlayer-tanstack-start-solid-template?embed=1&ctl=1&file=intlayer.config.ts"
65
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
66
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
67
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
68
+ loading="lazy"
69
+ />
70
+
71
+ </Tab>
72
+ </Tabs>
73
+
74
+ See [Application Template](https://github.com/aymericzip/intlayer-tanstack-start-solid-template) on GitHub.
75
+
76
+ ### Step 1: Create Project
77
+
78
+ Start by creating a new TanStack Start project by following the [Start new project](https://tanstack.com/start/latest/docs/framework/solid/quick-start) guide on the TanStack Start website.
79
+
80
+ ### Step 2: Install Intlayer Packages
81
+
82
+ Install the necessary packages using your preferred package manager:
83
+
84
+ ```bash packageManager="npm"
85
+ npm install intlayer solid-intlayer
86
+ npm install vite-intlayer --save-dev
87
+ npx intlayer init
88
+ ```
89
+
90
+ ```bash packageManager="pnpm"
91
+ pnpm add intlayer solid-intlayer
92
+ pnpm add vite-intlayer --save-dev
93
+ pnpm intlayer init
94
+ ```
95
+
96
+ ```bash packageManager="yarn"
97
+ yarn add intlayer solid-intlayer
98
+ yarn add vite-intlayer --save-dev
99
+ yarn intlayer init
100
+ ```
101
+
102
+ ```bash packageManager="bun"
103
+ bun add intlayer solid-intlayer
104
+ bun add vite-intlayer --dev
105
+ bun x intlayer init
106
+ ```
107
+
108
+ - **intlayer**
109
+
110
+ The core package that provides internationalization tools for configuration management, translation, [content declaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/content_file.md), transpilation, and [CLI commands](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/index.md).
111
+
112
+ - **solid-intlayer**
113
+ The package that integrates Intlayer with Solid application. It provides context providers and hooks for Solid internationalization.
114
+
115
+ - **vite-intlayer**
116
+ Includes the Vite plugin for integrating Intlayer with the [Vite bundler](https://vite.dev/guide/why.html#why-bundle-for-production), as well as middleware for detecting the user's preferred locale, managing cookies, and handling URL redirection.
117
+
118
+ ### Step 3: Configuration of your project
119
+
120
+ Create a config file to configure the languages of your application:
121
+
122
+ ```typescript fileName="intlayer.config.ts"
123
+ import type { IntlayerConfig } from "intlayer";
124
+
125
+ import { Locales } from "intlayer";
126
+
127
+ const config: IntlayerConfig = {
128
+ internationalization: {
129
+ defaultLocale: Locales.ENGLISH,
130
+ locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
131
+ },
132
+ };
133
+
134
+ export default config;
135
+ ```
136
+
137
+ > Through this configuration file, you can set up localized URLs, middleware redirection, cookie names, the location and extension of your content declarations, disable Intlayer logs in the console, and more. For a complete list of available parameters, refer to the [configuration documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md).
138
+
139
+ ### Step 4: Integrate Intlayer in Your Vite Configuration
140
+
141
+ Add the intlayer plugin into your configuration:
142
+
143
+ ```typescript fileName="vite.config.ts"
144
+ import { intlayer } from "vite-intlayer";
145
+ import { defineConfig } from "vite";
146
+ import { devtools } from "@tanstack/devtools-vite";
147
+ import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
148
+ import solidPlugin from "vite-plugin-solid";
149
+
150
+ export default defineConfig({
151
+ plugins: [
152
+ devtools(),
153
+ tanstackStart({
154
+ router: {
155
+ routeFileIgnorePattern:
156
+ ".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
157
+ },
158
+ }),
159
+ solidPlugin({ ssr: true }),
160
+ intlayer(),
161
+ ],
162
+ });
163
+ ```
164
+
165
+ > The `intlayer()` Vite plugin is used to integrate Intlayer with Vite. It ensures the building of content declaration files and monitors them in development mode. It defines Intlayer environment variables within the Vite application. Additionally, it provides aliases to optimize performance.
166
+
167
+ ### Step 5: Create Root Layout
168
+
169
+ Configure your root layout to support internationalization by using `useMatches` to detect the current locale and setting the `lang` and `dir` attributes on the `html` tag.
170
+
171
+ ```tsx fileName="src/routes/__root.tsx"
172
+ import {
173
+ HeadContent,
174
+ Outlet,
175
+ Scripts,
176
+ createRootRouteWithContext,
177
+ useMatches,
178
+ } from "@tanstack/solid-router";
179
+ import { TanStackRouterDevtools } from "@tanstack/solid-router-devtools";
180
+ import { HydrationScript } from "solid-js/web";
181
+ import { Suspense } from "solid-js";
182
+ import { IntlayerProvider } from "solid-intlayer";
183
+ import { defaultLocale, getHTMLTextDir, type Locale } from "intlayer";
184
+
185
+ export const Route = createRootRouteWithContext()({
186
+ shellComponent: RootComponent,
187
+ });
188
+
189
+ type Params = {
190
+ locale: Locale;
191
+ };
192
+
193
+ function RootComponent() {
194
+ const matches = useMatches();
195
+
196
+ // Try to find locale in params of any active match
197
+ // This assumes you use the dynamic segment "/{-$locale}" in your route tree
198
+ const locale =
199
+ (
200
+ matches().find((match) => match.routeId === "/{-$locale}/")
201
+ ?.params as Params
202
+ )?.locale ?? defaultLocale;
203
+
204
+ return (
205
+ <html dir={getHTMLTextDir(locale)} lang={locale}>
206
+ <head>
207
+ <HydrationScript />
208
+ </head>
209
+ <body>
210
+ <HeadContent />
211
+ <IntlayerProvider locale={locale}>
212
+ <Suspense>
213
+ <Outlet />
214
+ <TanStackRouterDevtools />
215
+ </Suspense>
216
+ </IntlayerProvider>
217
+ <Scripts />
218
+ </body>
219
+ </html>
220
+ );
221
+ }
222
+ ```
223
+
224
+ ### Step 6: Create Locale Layout (Optional)
225
+
226
+ Create a layout that handles the locale prefix and performs validation. This layout will ensure that only valid locales are processed.
227
+
228
+ > This step is optional if you don't need to validate the locale prefix at the route level.
229
+
230
+ ```tsx fileName="src/routes/{-$locale}/route.tsx"
231
+ import { createFileRoute, Outlet, redirect } from "@tanstack/solid-router";
232
+ import { validatePrefix } from "intlayer";
233
+
234
+ export const Route = createFileRoute("/{-$locale}")({
235
+ beforeLoad: ({ params }) => {
236
+ const localeParam = params.locale;
237
+
238
+ // Validate the locale prefix
239
+ const { isValid, localePrefix } = validatePrefix(localeParam);
240
+
241
+ if (!isValid) {
242
+ throw redirect({
243
+ to: "/{-$locale}/404",
244
+ params: { locale: localePrefix },
245
+ replace: true,
246
+ });
247
+ }
248
+ },
249
+ component: Outlet,
250
+ });
251
+ ```
252
+
253
+ > Here, `{-$locale}` is a dynamic route parameter that gets replaced with the current locale. This notation makes the slot optional, allowing it to work with routing modes such as `'prefix-no-default'` etc.
254
+
255
+ > Be aware that this slot may cause issues if you use multiple dynamic segments in the same route (e.g., `/{-$locale}/other-path/$anotherDynamicPath/...`).
256
+ > For the `'prefix-all'` mode, you may prefer switching the slot to `$locale` instead.
257
+ > For the `'no-prefix'` or `'search-params'` mode, you can remove the slot entirely.
258
+
259
+ ### Step 7: Declare Your Content
260
+
261
+ Create and manage your content declarations to store translations:
262
+
263
+ ```tsx fileName="src/contents/page.content.ts"
264
+ import type { Dictionary } from "intlayer";
265
+
266
+ import { t } from "intlayer";
267
+
268
+ const appContent = {
269
+ content: {
270
+ links: {
271
+ about: t({
272
+ en: "About",
273
+ es: "Acerca de",
274
+ fr: "À propos",
275
+ }),
276
+ home: t({
277
+ en: "Home",
278
+ es: "Inicio",
279
+ fr: "Accueil",
280
+ }),
281
+ },
282
+ meta: {
283
+ title: t({
284
+ en: "Welcome to Intlayer + TanStack Router",
285
+ es: "Bienvenido a Intlayer + TanStack Router",
286
+ fr: "Bienvenue à Intlayer + TanStack Router",
287
+ }),
288
+ description: t({
289
+ en: "This is an example of using Intlayer with TanStack Router",
290
+ es: "Este es un ejemplo de uso de Intlayer con TanStack Router",
291
+ fr: "Ceci est un exemple d'utilisation d'Intlayer avec TanStack Router",
292
+ }),
293
+ },
294
+ },
295
+ key: "app",
296
+ } satisfies Dictionary;
297
+
298
+ export default appContent;
299
+ ```
300
+
301
+ > Your content declarations can be defined anywhere in your application as soon they are included into the `contentDir` directory (by default, `./app`). And match the content declaration file extension (by default, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
302
+
303
+ > For more details, refer to the [content declaration documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/content_file.md).
304
+
305
+ ### Step 7: Create Locale-Aware Components and Hooks
306
+
307
+ Create a `LocalizedLink` component for locale-aware navigation:
308
+
309
+ ```tsx fileName="src/components/LocalizedLink.tsx"
310
+ import { Link, type LinkProps } from "@tanstack/solid-router";
311
+ import { getPrefix } from "intlayer";
312
+ import { useLocale } from "solid-intlayer";
313
+ import type { JSX } from "solid-js";
314
+
315
+ export const LOCALE_ROUTE = "{-$locale}" as const;
316
+
317
+ export type RemoveLocaleParam<TVal> = TVal extends string
318
+ ? RemoveLocaleFromString<TVal>
319
+ : TVal;
320
+
321
+ export type To = RemoveLocaleParam<LinkProps["to"]>;
322
+
323
+ type CollapseDoubleSlashes<TString extends string> =
324
+ TString extends `${infer THead}//${infer TTail}`
325
+ ? CollapseDoubleSlashes<`${THead}/${TTail}`>
326
+ : TString;
327
+
328
+ export type LocalizedLinkProps = Omit<LinkProps, "to"> & {
329
+ to?: To;
330
+ } & JSX.AnchorHTMLAttributes<HTMLAnchorElement>;
331
+
332
+ type RemoveAll<
333
+ TString extends string,
334
+ TSub extends string,
335
+ > = TString extends `${infer THead}${TSub}${infer TTail}`
336
+ ? RemoveAll<`${THead}${TTail}`, TSub>
337
+ : TString;
338
+
339
+ type RemoveLocaleFromString<TString extends string> = CollapseDoubleSlashes<
340
+ RemoveAll<TString, typeof LOCALE_ROUTE>
341
+ >;
342
+
343
+ export const LocalizedLink = (props: LocalizedLinkProps) => {
344
+ const { locale } = useLocale();
345
+
346
+ return (
347
+ <Link
348
+ {...props}
349
+ params={{
350
+ locale: getPrefix(locale()).localePrefix,
351
+ ...(typeof props.params === "object" ? props.params : {}),
352
+ }}
353
+ to={`/${LOCALE_ROUTE}${props.to ?? ""}` as LinkProps["to"]}
354
+ />
355
+ );
356
+ };
357
+ ```
358
+
359
+ This component has two objectives:
360
+
361
+ - Remove the unnecessary `{-$locale}` prefix from the URL.
362
+ - Inject the locale parameter into the URL to ensure the user is directly redirected to the localized route.
363
+
364
+ Then we can create a `useLocalizedNavigate` hook for programmatic navigation:
365
+
366
+ ```tsx fileName="src/hooks/useLocalizedNavigate.tsx"
367
+ import { useNavigate } from "@tanstack/solid-router";
368
+ import { getLocalizedUrl } from "intlayer";
369
+ import { useLocale } from "solid-intlayer";
370
+
371
+ export const useLocalizedNavigate = () => {
372
+ const navigate = useNavigate();
373
+ const { locale } = useLocale();
374
+
375
+ const localizedNavigate = (to: string) => {
376
+ const localizedTo = getLocalizedUrl(to, locale());
377
+ return navigate({ to: localizedTo });
378
+ };
379
+
380
+ return localizedNavigate;
381
+ };
382
+ ```
383
+
384
+ ### Step 8: Utilize Intlayer in Your Pages
385
+
386
+ Access your content dictionaries throughout your application:
387
+
388
+ #### Localized Home Page
389
+
390
+ ```tsx fileName="src/routes/{-$locale}/index.tsx"
391
+ import { createFileRoute } from "@tanstack/solid-router";
392
+ import { useIntlayer } from "solid-intlayer";
393
+ import { LocalizedLink } from "@/components/LocalizedLink";
394
+
395
+ export const Route = createFileRoute("/{-$locale}/")({
396
+ component: RouteComponent,
397
+ });
398
+
399
+ function RouteComponent() {
400
+ const content = useIntlayer("index-page");
401
+
402
+ return (
403
+ <main>
404
+ <h1>{content().heroTitle}</h1>
405
+ <p>{content().heroDesc}</p>
406
+ <div>
407
+ <LocalizedLink to="/">{content().navHome}</LocalizedLink>
408
+ <LocalizedLink to="/about">{content().navAbout}</LocalizedLink>
409
+ </div>
410
+ </main>
411
+ );
412
+ }
413
+ ```
414
+
415
+ > In Solid, `useIntlayer` returns an **accessor** function (e.g., `content()`). You must call this function to access the reactive content.
416
+ >
417
+ > To Learn more about the `useIntlayer` hook, refer to the [documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/solid-intlayer/useIntlayer.md).
418
+
419
+ ### Step 9: Create a Locale Switcher Component
420
+
421
+ Create a component to allow users to change languages:
422
+
423
+ ```tsx fileName="src/components/LocaleSwitcher.tsx"
424
+ import { useLocation } from "@tanstack/solid-router";
425
+ import { getLocaleName, getPathWithoutLocale, getPrefix } from "intlayer";
426
+ import { For } from "solid-js";
427
+ import { useIntlayer, useLocale } from "solid-intlayer";
428
+ import { LocalizedLink, type To } from "./LocalizedLink";
429
+
430
+ export const LocaleSwitcher = () => {
431
+ const content = useIntlayer("locale-switcher");
432
+ const location = useLocation();
433
+
434
+ const { availableLocales, locale, setLocale } = useLocale();
435
+
436
+ const pathWithoutLocale = () => getPathWithoutLocale(location().pathname);
437
+
438
+ return (
439
+ <div class="flex flex-row gap-2">
440
+ <For each={availableLocales}>
441
+ {(localeEl) => (
442
+ <LocalizedLink
443
+ aria-current={localeEl === locale() ? "page" : undefined}
444
+ onClick={() => setLocale(localeEl)}
445
+ params={{ locale: getPrefix(localeEl).localePrefix }}
446
+ to={pathWithoutLocale() as To}
447
+ >
448
+ {getLocaleName(localeEl)}
449
+ </LocalizedLink>
450
+ )}
451
+ </For>
452
+ </div>
453
+ );
454
+ };
455
+
456
+ export default LocaleSwitcher;
457
+ ```
458
+
459
+ > In Solid, `locale` from `useLocale` is a **signal accessor**. Use `locale()` (with parentheses) to read its current value reactively.
460
+ >
461
+ > To Learn more about the `useLocale` hook, refer to the [documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/solid-intlayer/useLocale.md).
462
+
463
+ ### Step 10: HTML Attributes Management
464
+
465
+ As seen in Step 5, you can manage the `lang` and `dir` attributes of the `html` tag using `useMatches` in your root component. This ensures that the correct attributes are set on the server and client.
466
+
467
+ ```tsx fileName="src/routes/__root.tsx"
468
+ const RootComponent: ParentComponent = (props) => {
469
+ const matches = useMatches();
470
+
471
+ // Try to find locale in params of any active match
472
+ const locale =
473
+ (
474
+ matches().find((match) => match.routeId === "/{-$locale}/")
475
+ ?.params as Params
476
+ )?.locale ?? defaultLocale;
477
+
478
+ return (
479
+ <html dir={getHTMLTextDir(locale)} lang={locale}>
480
+ {/* ... */}
481
+ </html>
482
+ );
483
+ };
484
+ ```
485
+
486
+ ---
487
+
488
+ ### Step 11: Add middleware (Optional)
489
+
490
+ You can also use the `intlayerProxy` to add server-side routing to your application. This plugin will automatically detect the current locale based on the URL and set the appropriate locale cookie. If no locale is specified, the plugin will determine the most appropriate locale based on the user's browser language preferences. If no locale is detected, it will redirect to the default locale.
491
+
492
+ > Note that to use the `intlayerProxy` in production, you need to switch the `vite-intlayer` package from `devDependencies` to `dependencies`.
493
+
494
+ ```typescript {7,14-17} fileName="vite.config.ts"
495
+ import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
496
+ import solid from "vite-plugin-solid";
497
+ import { nitro } from "nitro/vite";
498
+ import { defineConfig } from "vite";
499
+ import { intlayer, intlayerProxy } from "vite-intlayer";
500
+
501
+ export default defineConfig({
502
+ plugins: [
503
+ intlayerProxy(), // The proxy should be placed before server if you use Nitro
504
+ nitro(),
505
+ intlayer(),
506
+ tanstackStart({
507
+ router: {
508
+ routeFileIgnorePattern:
509
+ ".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
510
+ },
511
+ }),
512
+ solid(),
513
+ ],
514
+ });
515
+ ```
516
+
517
+ ---
518
+
519
+ ### Step 12: Internationalize your Metadata (Optional)
520
+
521
+ You can also use the `getIntlayer` function to access your content dictionaries inside the `head` loader for locale-aware metadata:
522
+
523
+ ```tsx fileName="src/routes/{-$locale}/index.tsx"
524
+ import { createFileRoute } from "@tanstack/solid-router";
525
+ import { getIntlayer } from "intlayer";
526
+
527
+ export const Route = createFileRoute("/{-$locale}/")({
528
+ component: RouteComponent,
529
+ head: ({ params }) => {
530
+ const { locale } = params;
531
+ const metaContent = getIntlayer("page-metadata", locale);
532
+
533
+ return {
534
+ meta: [
535
+ { title: metaContent.title },
536
+ { content: metaContent.description, name: "description" },
537
+ ],
538
+ };
539
+ },
540
+ });
541
+ ```
542
+
543
+ ---
544
+
545
+ ### Step 13: Retrieve the locale in your server actions (Optional)
546
+
547
+ You may want to access the current locale from inside your server actions or API endpoints.
548
+ You can do this using the `getLocale` helper from `intlayer`.
549
+
550
+ Here's an example using TanStack Start's server functions:
551
+
552
+ ```tsx fileName="src/routes/{-$locale}/index.tsx"
553
+ import { createServerFn } from "@tanstack/solid-start";
554
+ import {
555
+ getRequestHeader,
556
+ getRequestHeaders,
557
+ } from "@tanstack/solid-start/server";
558
+ import { getCookie, getIntlayer, getLocale } from "intlayer";
559
+
560
+ export const getLocaleServer = createServerFn().handler(async () => {
561
+ const locale = await getLocale({
562
+ // Get the cookie from the request (default: 'INTLAYER_LOCALE')
563
+ getCookie: (name) => {
564
+ const cookieString = getRequestHeader("cookie");
565
+
566
+ return getCookie(name, cookieString);
567
+ },
568
+ // Get the header from the request (default: 'x-intlayer-locale')
569
+ // Fallback using Accept-Language negotiation
570
+ getHeader: (name) => getRequestHeader(name),
571
+ });
572
+
573
+ // Retrieve some content using getIntlayer()
574
+ const content = getIntlayer("app", locale);
575
+
576
+ return { locale, content };
577
+ });
578
+ ```
579
+
580
+ ---
581
+
582
+ ### Step 14: Manage not found pages (Optional)
583
+
584
+ When a user visits a non-existing page, you can display a custom not found page and the locale prefix may impact the way the not found page is triggered.
585
+
586
+ #### Understanding TanStack Router's 404 Handling with Locale Prefixes
587
+
588
+ In TanStack Router, handling 404 pages with localized routes requires a multi-layered approach:
589
+
590
+ 1. **Dedicated 404 route**: A specific route to display the 404 UI
591
+ 2. **Route-level validation**: Validates locale prefixes and redirects invalid ones to 404
592
+ 3. **Catch-all route**: Captures any unmatched paths within the locale segment
593
+
594
+ ```tsx fileName="src/routes/{-$locale}/404.tsx"
595
+ import { createFileRoute } from "@tanstack/solid-router";
596
+
597
+ // This creates a dedicated /[locale]/404 route
598
+ // It's used both as a direct route and imported as a component in other files
599
+ export const Route = createFileRoute("/{-$locale}/404")({
600
+ component: NotFoundComponent,
601
+ });
602
+
603
+ // Exported separately so it can be reused in notFoundComponent and catch-all routes
604
+ export function NotFoundComponent() {
605
+ return (
606
+ <div>
607
+ <h1>404</h1>
608
+ </div>
609
+ );
610
+ }
611
+ ```
612
+
613
+ ```tsx fileName="src/routes/{-$locale}/route.tsx"
614
+ import { createFileRoute, Outlet, redirect } from "@tanstack/solid-router";
615
+ import { validatePrefix } from "intlayer";
616
+ import { NotFoundComponent } from "./404";
617
+
618
+ export const Route = createFileRoute("/{-$locale}")({
619
+ // beforeLoad runs before the route renders (on both server and client)
620
+ // It's the ideal place to validate the locale prefix
621
+ beforeLoad: ({ params }) => {
622
+ const localeParam = params.locale;
623
+
624
+ // validatePrefix checks if the locale is valid according to your intlayer config
625
+ const { isValid, localePrefix } = validatePrefix(localeParam);
626
+
627
+ if (!isValid) {
628
+ // Invalid locale prefix - redirect to the 404 page with a valid locale prefix
629
+ throw redirect({
630
+ to: "/{-$locale}/404",
631
+ params: { locale: localePrefix },
632
+ });
633
+ }
634
+ },
635
+ component: Outlet,
636
+ // notFoundComponent is called when a child route doesn't exist
637
+ // e.g., /en/non-existent-page triggers this within the /en layout
638
+ notFoundComponent: NotFoundComponent,
639
+ });
640
+ ```
641
+
642
+ ```tsx fileName="src/routes/{-$locale}/$.tsx"
643
+ import { createFileRoute } from "@tanstack/solid-router";
644
+
645
+ import { NotFoundComponent } from "./404";
646
+
647
+ // The $ (splat/catch-all) route matches any path that doesn't match other routes
648
+ // e.g., /en/some/deeply/nested/invalid/path
649
+ // This ensures ALL unmatched paths within a locale show the 404 page
650
+ // Without this, unmatched deep paths might show a blank page or error
651
+ export const Route = createFileRoute("/{-$locale}/$")({
652
+ component: NotFoundComponent,
653
+ });
654
+ ```
655
+
656
+ ### (Optional) Step 15: Extract the content of your components
657
+
658
+ If you have an existing codebase, transforming thousands of files can be time-consuming.
659
+
660
+ To ease this process, Intlayer propose a [compiler](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/compiler.md) / [extractor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/extract.md) to transform your components and extract the content.
661
+
662
+ To set it up, you can add a `compiler` section in your `intlayer.config.ts` file:
663
+
664
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
665
+ import { type IntlayerConfig } from "intlayer";
666
+
667
+ const config: IntlayerConfig = {
668
+ // ... Rest of your config
669
+ compiler: {
670
+ /**
671
+ * Indicates if the compiler should be enabled.
672
+ */
673
+ enabled: true,
674
+
675
+ /**
676
+ * Defines the output files path
677
+ */
678
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
679
+
680
+ /**
681
+ * Indicates if the components should be saved after being transformed.
682
+ *
683
+ * - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
684
+ *
685
+ * - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
686
+ */
687
+ saveComponents: false,
688
+
689
+ /**
690
+ * Dictionary key prefix
691
+ */
692
+ dictionaryKeyPrefix: "",
693
+ },
694
+ };
695
+
696
+ export default config;
697
+ ```
698
+
699
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
700
+ /** @type {import('intlayer').IntlayerConfig} */
701
+ const config = {
702
+ // ... Rest of your config
703
+ compiler: {
704
+ /**
705
+ * Indicates if the compiler should be enabled.
706
+ */
707
+ enabled: true,
708
+
709
+ /**
710
+ * Defines the output files path
711
+ */
712
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
713
+
714
+ /**
715
+ * Indicates if the components should be saved after being transformed.
716
+ *
717
+ * - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
718
+ *
719
+ * - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
720
+ */
721
+ saveComponents: false,
722
+
723
+ /**
724
+ * Dictionary key prefix
725
+ */
726
+ dictionaryKeyPrefix: "",
727
+ },
728
+ };
729
+
730
+ export default config;
731
+ ```
732
+
733
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
734
+ /** @type {import('intlayer').IntlayerConfig} */
735
+ const config = {
736
+ // ... Rest of your config
737
+ compiler: {
738
+ /**
739
+ * Indicates if the compiler should be enabled.
740
+ */
741
+ enabled: true,
742
+
743
+ /**
744
+ * Defines the output files path
745
+ */
746
+ output: ({ fileName, extension }) => `./${fileName}${extension}`,
747
+
748
+ /**
749
+ * Indicates if the components should be saved after being transformed.
750
+ *
751
+ * - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
752
+ *
753
+ * - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
754
+ */
755
+ saveComponents: false,
756
+
757
+ /**
758
+ * Dictionary key prefix
759
+ */
760
+ dictionaryKeyPrefix: "",
761
+ },
762
+ };
763
+
764
+ module.exports = config;
765
+ ```
766
+
767
+ <Tabs>
768
+ <Tab value='Extract command'>
769
+
770
+ Run the extractor to transform your components and extract the content
771
+
772
+ ```bash packageManager="npm"
773
+ npx intlayer extract
774
+ ```
775
+
776
+ ```bash packageManager="pnpm"
777
+ pnpm intlayer extract
778
+ ```
779
+
780
+ ```bash packageManager="yarn"
781
+ yarn intlayer extract
782
+ ```
783
+
784
+ ```bash packageManager="bun"
785
+ bun x intlayer extract
786
+ ```
787
+
788
+ </Tab>
789
+ <Tab value='Babel compiler'>
790
+
791
+ Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
792
+
793
+ ```ts fileName="vite.config.ts"
794
+ import { intlayer, intlayerCompiler } from "vite-intlayer";
795
+ import { defineConfig } from "vite";
796
+ import { devtools } from "@tanstack/devtools-vite";
797
+ import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
798
+ import solidPlugin from "vite-plugin-solid";
799
+
800
+ export default defineConfig({
801
+ plugins: [
802
+ devtools(),
803
+ tanstackStart({
804
+ router: {
805
+ routeFileIgnorePattern:
806
+ ".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
807
+ },
808
+ }),
809
+ solidPlugin({ ssr: true }),
810
+ intlayer(),
811
+ intlayerCompiler(),
812
+ ],
813
+ });
814
+ ```
815
+
816
+ ```bash packageManager="npm"
817
+ npm run build # Or npm run dev
818
+ ```
819
+
820
+ ```bash packageManager="pnpm"
821
+ pnpm run build # Or pnpm run dev
822
+ ```
823
+
824
+ ```bash packageManager="yarn"
825
+ yarn build # Or yarn dev
826
+ ```
827
+
828
+ ```bash packageManager="bun"
829
+ bun run build # Or bun run dev
830
+ ```
831
+
832
+ </Tab>
833
+ </Tabs>
834
+
835
+ ---
836
+
837
+ ### Step 16: Pre-render & Generate Sitemap (Optional)
838
+
839
+ Intlayer comes with a built-in sitemap generator to help you create a sitemap for your application easily. It handles localized routes and adds the necessary metadata for search engines.
840
+
841
+ > The Intlayer generated sitemap supports the `xhtml:link` namespace (Hreflang XML Extensions). Unlike the default sitemap generators that only list raw URLs, Intlayer automatically creates the required bidirectional links between all language versions of a page (e.g., `/about`, `/about?lang=fr`, and `/about?lang=es`). This ensures search engines correctly index and serve the right language version to the right audience.
842
+
843
+ To use it, you first need to configure your `vite.config.ts` to enable pre-rendering for your localized routes and disable the default TanStack Start sitemap generation.
844
+
845
+ ```typescript fileName="vite.config.ts"
846
+ import { localeMap, localeFlatMap } from "intlayer";
847
+ // ... other imports
848
+
849
+ export const pathList = ["", "/about", "/404"];
850
+
851
+ const localizedPages = localeFlatMap(({ urlPrefix }) =>
852
+ pathList.map((path) => ({
853
+ path: `${urlPrefix}${path}`,
854
+ prerender: {
855
+ enabled: true,
856
+ },
857
+ }))
858
+ );
859
+
860
+ export default defineConfig({
861
+ plugins: [
862
+ // ... other plugins
863
+ tanstackStart({
864
+ // ... other config
865
+ sitemap: {
866
+ enabled: false,
867
+ },
868
+ prerender: {
869
+ enabled: true,
870
+ crawlLinks: false,
871
+ concurrency: 10,
872
+ },
873
+ pages: localizedPages,
874
+ }),
875
+ ],
876
+ });
877
+ ```
878
+
879
+ Then, create a `src/routes/sitemap[.]xml.ts` route that uses the `generateSitemap` function:
880
+
881
+ ```typescript fileName="src/routes/sitemap[.]xml.ts"
882
+ import { createFileRoute } from "@tanstack/solid-router";
883
+ import { generateSitemap } from "intlayer";
884
+
885
+ const SITE_URL = (
886
+ import.meta.env.VITE_SITE_URL ?? "http://localhost:3000"
887
+ ).replace(/\/$/, "");
888
+
889
+ export const Route = createFileRoute("/sitemap.xml")({
890
+ server: {
891
+ handlers: {
892
+ GET: async () => {
893
+ const sitemap = generateSitemap(
894
+ [
895
+ { path: "/", changefreq: "daily", priority: 1.0 },
896
+ { path: "/about", changefreq: "monthly", priority: 0.8 },
897
+ ],
898
+ { siteUrl: SITE_URL }
899
+ );
900
+
901
+ return new Response(sitemap, {
902
+ headers: { "Content-Type": "application/xml" },
903
+ });
904
+ },
905
+ },
906
+ },
907
+ });
908
+ ```
909
+
910
+ ---
911
+
912
+ ### Step 17: Configure TypeScript (Optional)
913
+
914
+ Intlayer uses module augmentation to get benefits of TypeScript and make your codebase stronger.
915
+
916
+ Ensure your TypeScript configuration includes the autogenerated types:
917
+
918
+ ```json5 fileName="tsconfig.json"
919
+ {
920
+ // ... your existing configurations
921
+ include: [
922
+ // ... your existing includes
923
+ ".intlayer/**/*.ts", // Include the auto-generated types
924
+ ],
925
+ }
926
+ ```
927
+
928
+ ---
929
+
930
+ ### Git Configuration
931
+
932
+ It is recommended to ignore the files generated by Intlayer. This allows you to avoid committing them to your Git repository.
933
+
934
+ To do this, you can add the following instructions to your `.gitignore` file:
935
+
936
+ ```plaintext fileName=".gitignore"
937
+ # Ignore the files generated by Intlayer
938
+ .intlayer
939
+ ```
940
+
941
+ ---
942
+
943
+ ## VS Code Extension
944
+
945
+ To improve your development experience with Intlayer, you can install the official **Intlayer VS Code Extension**.
946
+
947
+ [Install from the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
948
+
949
+ This extension provides:
950
+
951
+ - **Autocompletion** for translation keys.
952
+ - **Real-time error detection** for missing translations.
953
+ - **Inline previews** of translated content.
954
+ - **Quick actions** to easily create and update translations.
955
+
956
+ For more details on how to use the extension, refer to the [Intlayer VS Code Extension documentation](https://intlayer.org/doc/vs-code-extension).
957
+
958
+ ---
959
+
960
+ ## Go Further
961
+
962
+ To go further, you can implement the [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) or externalize your content using the [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md).
963
+
964
+ ---
965
+
966
+ ## Documentation References
967
+
968
+ - [Intlayer Documentation](https://intlayer.org)
969
+ - [Tanstack Start Documentation](https://tanstack.com/start/latest)
970
+ - [useIntlayer hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/solid-intlayer/useIntlayer.md)
971
+ - [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/solid-intlayer/useLocale.md)
972
+ - [Content Declaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/content_file.md)
973
+ - [Configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md)