@intlayer/docs 9.1.3 → 9.3.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 (482) hide show
  1. package/blog/ar/index.md +1 -1
  2. package/blog/ar/rag_powered_documentation_assistant.md +7 -0
  3. package/blog/de/index.md +1 -1
  4. package/blog/de/rag_powered_documentation_assistant.md +6 -0
  5. package/blog/en/index.md +1 -1
  6. package/blog/en-GB/index.md +1 -1
  7. package/blog/en-GB/rag_powered_documentation_assistant.md +6 -0
  8. package/blog/es/index.md +1 -1
  9. package/blog/es/rag_powered_documentation_assistant.md +7 -0
  10. package/blog/fr/i18n_meaning.md +7 -1
  11. package/blog/fr/index.md +1 -1
  12. package/blog/fr/list_i18n_technologies/frameworks/angular.md +5 -1
  13. package/blog/fr/rag_powered_documentation_assistant.md +6 -0
  14. package/blog/hi/index.md +1 -1
  15. package/blog/hi/next-i18next_vs_next-intl_vs_intlayer.md +119 -42
  16. package/blog/hi/rag_powered_documentation_assistant.md +7 -0
  17. package/blog/id/index.md +1 -1
  18. package/blog/id/rag_powered_documentation_assistant.md +6 -0
  19. package/blog/it/index.md +1 -1
  20. package/blog/it/rag_powered_documentation_assistant.md +6 -0
  21. package/blog/ja/index.md +1 -1
  22. package/blog/ja/rag_powered_documentation_assistant.md +7 -0
  23. package/blog/ko/index.md +1 -1
  24. package/blog/ko/list_i18n_technologies/frameworks/react.md +7 -7
  25. package/blog/ko/rag_powered_documentation_assistant.md +6 -0
  26. package/blog/pl/index.md +1 -1
  27. package/blog/pl/rag_powered_documentation_assistant.md +6 -0
  28. package/blog/pt/index.md +1 -1
  29. package/blog/pt/rag_powered_documentation_assistant.md +6 -0
  30. package/blog/ru/index.md +1 -1
  31. package/blog/ru/rag_powered_documentation_assistant.md +7 -0
  32. package/blog/tr/intlayer_with_react-intl.md +3 -1
  33. package/blog/tr/next-i18next_vs_next-intl_vs_intlayer.md +175 -42
  34. package/blog/tr/rag_powered_documentation_assistant.md +6 -0
  35. package/blog/uk/index.md +1 -1
  36. package/blog/uk/rag_powered_documentation_assistant.md +6 -0
  37. package/blog/vi/index.md +1 -1
  38. package/blog/vi/rag_powered_documentation_assistant.md +6 -0
  39. package/blog/zh/index.md +1 -1
  40. package/blog/zh/intlayer_with_i18next.md +87 -28
  41. package/blog/zh/intlayer_with_next-i18next.md +86 -29
  42. package/blog/zh/intlayer_with_next-intl.md +88 -28
  43. package/blog/zh/intlayer_with_react-i18next.md +87 -28
  44. package/blog/zh/intlayer_with_react-intl.md +88 -27
  45. package/blog/zh/intlayer_with_vue-i18n.md +117 -8
  46. package/blog/zh/rag_powered_documentation_assistant.md +6 -0
  47. package/dist/cjs/common.cjs +24 -1
  48. package/dist/cjs/common.cjs.map +1 -1
  49. package/dist/cjs/generated/blog.entry.cjs +58 -31
  50. package/dist/cjs/generated/blog.entry.cjs.map +1 -1
  51. package/dist/cjs/generated/docs.entry.cjs +265 -218
  52. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  53. package/dist/cjs/generated/frequentQuestions.entry.cjs +48 -21
  54. package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
  55. package/dist/cjs/generated/legal.entry.cjs +33 -6
  56. package/dist/cjs/generated/legal.entry.cjs.map +1 -1
  57. package/dist/esm/common.mjs +24 -1
  58. package/dist/esm/common.mjs.map +1 -1
  59. package/dist/esm/generated/blog.entry.mjs +58 -31
  60. package/dist/esm/generated/blog.entry.mjs.map +1 -1
  61. package/dist/esm/generated/docs.entry.mjs +265 -218
  62. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  63. package/dist/esm/generated/frequentQuestions.entry.mjs +48 -21
  64. package/dist/esm/generated/frequentQuestions.entry.mjs.map +1 -1
  65. package/dist/esm/generated/legal.entry.mjs +33 -6
  66. package/dist/esm/generated/legal.entry.mjs.map +1 -1
  67. package/dist/types/common.d.ts.map +1 -1
  68. package/dist/types/generated/blog.entry.d.ts.map +1 -1
  69. package/dist/types/generated/docs.entry.d.ts +1 -0
  70. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  71. package/dist/types/generated/frequentQuestions.entry.d.ts.map +1 -1
  72. package/dist/types/generated/legal.entry.d.ts.map +1 -1
  73. package/docs/ar/analytics.md +222 -0
  74. package/docs/ar/autoFill.md +28 -9
  75. package/docs/ar/bundle_optimization.md +58 -25
  76. package/docs/ar/configuration.md +25 -8
  77. package/docs/ar/dictionary/file.md +3 -1
  78. package/docs/ar/dictionary/nesting.md +47 -30
  79. package/docs/ar/formatters.md +148 -193
  80. package/docs/ar/intlayer_CMS.md +152 -0
  81. package/docs/ar/intlayer_with_angular_21.md +9 -9
  82. package/docs/ar/intlayer_with_nextjs_14.md +1 -28
  83. package/docs/ar/intlayer_with_nextjs_15.md +1 -33
  84. package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +40 -83
  85. package/docs/ar/intlayer_with_solid_start.md +1078 -0
  86. package/docs/ar/intlayer_with_vite+vue.md +1 -3
  87. package/docs/ar/live-sync.md +4 -0
  88. package/docs/ar/packages/intlayer/getLocalizedUrl.md +26 -24
  89. package/docs/ar/packages/intlayer/getMultilingualUrls.md +4 -18
  90. package/docs/ar/packages/react-intlayer/useDictionary.md +4 -21
  91. package/docs/ar/packages/react-intlayer/useIntlayer.md +2 -2
  92. package/docs/ar/packages/vite-intlayer/exports.md +15 -0
  93. package/docs/ar/packages/vite-intlayer/intlayer.md +121 -6
  94. package/docs/ar/packages/vite-intlayer/intlayerPrune.md +70 -3
  95. package/docs/ar/releases/v9.md +0 -37
  96. package/docs/ar/self_hosting.md +46 -49
  97. package/docs/bn/bundle_optimization.md +58 -25
  98. package/docs/bn/configuration.md +25 -8
  99. package/docs/bn/intlayer_with_angular_21.md +9 -9
  100. package/docs/cs/bundle_optimization.md +58 -25
  101. package/docs/cs/configuration.md +25 -8
  102. package/docs/cs/intlayer_with_angular_21.md +9 -9
  103. package/docs/de/analytics.md +222 -0
  104. package/docs/de/autoFill.md +28 -9
  105. package/docs/de/bundle_optimization.md +58 -25
  106. package/docs/de/configuration.md +25 -8
  107. package/docs/de/dictionary/file.md +3 -1
  108. package/docs/de/dictionary/nesting.md +47 -31
  109. package/docs/de/formatters.md +208 -334
  110. package/docs/de/intlayer_CMS.md +66 -15
  111. package/docs/de/intlayer_with_angular_21.md +9 -9
  112. package/docs/de/intlayer_with_nestjs.md +11 -7
  113. package/docs/de/intlayer_with_nextjs_14.md +1 -28
  114. package/docs/de/intlayer_with_nextjs_15.md +1 -33
  115. package/docs/de/intlayer_with_solid_start.md +1078 -0
  116. package/docs/de/intlayer_with_vite+vue.md +1 -3
  117. package/docs/de/live-sync.md +4 -0
  118. package/docs/de/packages/intlayer/getLocalizedUrl.md +33 -25
  119. package/docs/de/packages/intlayer/getMultilingualUrls.md +4 -18
  120. package/docs/de/packages/react-intlayer/useDictionary.md +2 -5
  121. package/docs/de/packages/vite-intlayer/exports.md +15 -0
  122. package/docs/de/packages/vite-intlayer/intlayer.md +121 -6
  123. package/docs/de/packages/vite-intlayer/intlayerPrune.md +77 -4
  124. package/docs/de/releases/v9.md +0 -15
  125. package/docs/de/self_hosting.md +46 -50
  126. package/docs/en/bundle_optimization.md +51 -23
  127. package/docs/en/cli/doc-review.md +13 -2
  128. package/docs/en/configuration.md +24 -15
  129. package/docs/en/intlayer_with_angular_21.md +9 -9
  130. package/docs/en/intlayer_with_solid_start.md +1091 -0
  131. package/docs/en/intlayer_with_vite+solid.md +12 -0
  132. package/docs/en/live-sync.md +4 -0
  133. package/docs/en-GB/analytics.md +222 -0
  134. package/docs/en-GB/autoFill.md +26 -7
  135. package/docs/en-GB/bundle_optimization.md +58 -25
  136. package/docs/en-GB/configuration.md +25 -8
  137. package/docs/en-GB/dictionary/file.md +2 -0
  138. package/docs/en-GB/dictionary/nesting.md +64 -205
  139. package/docs/en-GB/formatters.md +146 -181
  140. package/docs/en-GB/intlayer_CMS.md +152 -0
  141. package/docs/en-GB/intlayer_with_angular_21.md +9 -9
  142. package/docs/en-GB/intlayer_with_nestjs.md +6 -2
  143. package/docs/en-GB/intlayer_with_nextjs_14.md +0 -27
  144. package/docs/en-GB/intlayer_with_nextjs_15.md +1 -33
  145. package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +40 -82
  146. package/docs/en-GB/intlayer_with_solid_start.md +1078 -0
  147. package/docs/en-GB/intlayer_with_vite+vue.md +1 -3
  148. package/docs/en-GB/live-sync.md +4 -0
  149. package/docs/en-GB/packages/intlayer/getLocalizedUrl.md +30 -22
  150. package/docs/en-GB/packages/intlayer/getMultilingualUrls.md +16 -48
  151. package/docs/en-GB/packages/vite-intlayer/exports.md +15 -0
  152. package/docs/en-GB/packages/vite-intlayer/intlayer.md +121 -6
  153. package/docs/en-GB/packages/vite-intlayer/intlayerPrune.md +77 -4
  154. package/docs/en-GB/self_hosting.md +60 -49
  155. package/docs/es/analytics.md +222 -0
  156. package/docs/es/autoFill.md +28 -9
  157. package/docs/es/bundle_optimization.md +58 -25
  158. package/docs/es/configuration.md +24 -7
  159. package/docs/es/dictionary/file.md +3 -1
  160. package/docs/es/dictionary/nesting.md +47 -30
  161. package/docs/es/formatters.md +114 -168
  162. package/docs/es/intlayer_CMS.md +35 -10
  163. package/docs/es/intlayer_with_angular_21.md +9 -9
  164. package/docs/es/intlayer_with_nextjs_14.md +1 -28
  165. package/docs/es/intlayer_with_nextjs_15.md +1 -33
  166. package/docs/es/intlayer_with_solid_start.md +1078 -0
  167. package/docs/es/live-sync.md +4 -0
  168. package/docs/es/packages/intlayer/getLocalizedUrl.md +31 -23
  169. package/docs/es/packages/intlayer/getMultilingualUrls.md +4 -18
  170. package/docs/es/packages/vite-intlayer/exports.md +15 -0
  171. package/docs/es/packages/vite-intlayer/intlayer.md +121 -6
  172. package/docs/es/packages/vite-intlayer/intlayerPrune.md +69 -2
  173. package/docs/es/releases/v9.md +0 -15
  174. package/docs/es/self_hosting.md +46 -49
  175. package/docs/fr/analytics.md +222 -0
  176. package/docs/fr/autoFill.md +27 -8
  177. package/docs/fr/bundle_optimization.md +58 -25
  178. package/docs/fr/configuration.md +25 -8
  179. package/docs/fr/dictionary/file.md +2 -0
  180. package/docs/fr/dictionary/nesting.md +37 -184
  181. package/docs/fr/formatters.md +95 -236
  182. package/docs/fr/intlayer_CMS.md +66 -15
  183. package/docs/fr/intlayer_with_angular_21.md +9 -9
  184. package/docs/fr/intlayer_with_nextjs_14.md +1 -28
  185. package/docs/fr/intlayer_with_nextjs_15.md +1 -33
  186. package/docs/fr/intlayer_with_solid_start.md +1078 -0
  187. package/docs/fr/live-sync.md +4 -0
  188. package/docs/fr/packages/intlayer/getLocalizedUrl.md +37 -27
  189. package/docs/fr/packages/intlayer/getMultilingualUrls.md +18 -20
  190. package/docs/fr/packages/vite-intlayer/exports.md +15 -0
  191. package/docs/fr/packages/vite-intlayer/intlayer.md +121 -6
  192. package/docs/fr/packages/vite-intlayer/intlayerPrune.md +77 -4
  193. package/docs/fr/releases/v9.md +0 -15
  194. package/docs/fr/self_hosting.md +46 -49
  195. package/docs/hi/analytics.md +222 -0
  196. package/docs/hi/autoFill.md +28 -9
  197. package/docs/hi/bundle_optimization.md +58 -25
  198. package/docs/hi/configuration.md +25 -8
  199. package/docs/hi/dictionary/file.md +3 -1
  200. package/docs/hi/dictionary/nesting.md +47 -30
  201. package/docs/hi/formatters.md +233 -334
  202. package/docs/hi/how_works_intlayer.md +3 -1
  203. package/docs/hi/intlayer_CMS.md +152 -0
  204. package/docs/hi/intlayer_with_angular_21.md +9 -9
  205. package/docs/hi/intlayer_with_nestjs.md +11 -7
  206. package/docs/hi/intlayer_with_nextjs_14.md +1 -28
  207. package/docs/hi/intlayer_with_nextjs_15.md +1 -33
  208. package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +40 -83
  209. package/docs/hi/intlayer_with_solid_start.md +1077 -0
  210. package/docs/hi/intlayer_with_vite+preact.md +56 -49
  211. package/docs/hi/intlayer_with_vite+react.md +48 -41
  212. package/docs/hi/intlayer_with_vite+solid.md +32 -41
  213. package/docs/hi/intlayer_with_vite+vue.md +49 -44
  214. package/docs/hi/live-sync.md +4 -0
  215. package/docs/hi/packages/intlayer/getLocalizedUrl.md +26 -24
  216. package/docs/hi/packages/intlayer/getMultilingualUrls.md +4 -18
  217. package/docs/hi/packages/next-intlayer/t.md +33 -1
  218. package/docs/hi/packages/react-intlayer/useDictionary.md +4 -21
  219. package/docs/hi/packages/vite-intlayer/exports.md +15 -0
  220. package/docs/hi/packages/vite-intlayer/intlayer.md +121 -6
  221. package/docs/hi/packages/vite-intlayer/intlayerPrune.md +78 -5
  222. package/docs/hi/plugins/sync-json.md +9 -9
  223. package/docs/hi/releases/v9.md +0 -15
  224. package/docs/hi/self_hosting.md +38 -51
  225. package/docs/id/analytics.md +223 -0
  226. package/docs/id/bundle_optimization.md +58 -25
  227. package/docs/id/configuration.md +25 -8
  228. package/docs/id/dictionary/nesting.md +37 -184
  229. package/docs/id/formatters.md +208 -305
  230. package/docs/id/intlayer_CMS.md +164 -0
  231. package/docs/id/intlayer_with_angular_21.md +9 -9
  232. package/docs/id/intlayer_with_nextjs_14.md +1 -26
  233. package/docs/id/intlayer_with_react_router_v7_fs_routes.md +70 -63
  234. package/docs/id/intlayer_with_solid_start.md +1078 -0
  235. package/docs/id/live-sync.md +4 -0
  236. package/docs/id/packages/intlayer/getMultilingualUrls.md +4 -18
  237. package/docs/id/packages/react-intlayer/useIntlayer.md +2 -2
  238. package/docs/id/packages/vite-intlayer/exports.md +15 -0
  239. package/docs/id/packages/vite-intlayer/intlayer.md +121 -6
  240. package/docs/id/packages/vite-intlayer/intlayerPrune.md +78 -5
  241. package/docs/id/releases/v9.md +12 -0
  242. package/docs/id/self_hosting.md +61 -50
  243. package/docs/it/analytics.md +222 -0
  244. package/docs/it/autoFill.md +27 -8
  245. package/docs/it/bundle_optimization.md +58 -25
  246. package/docs/it/configuration.md +25 -8
  247. package/docs/it/dictionary/file.md +3 -1
  248. package/docs/it/dictionary/nesting.md +47 -30
  249. package/docs/it/formatters.md +114 -168
  250. package/docs/it/intlayer_CMS.md +66 -15
  251. package/docs/it/intlayer_with_angular_21.md +9 -9
  252. package/docs/it/intlayer_with_nestjs.md +11 -7
  253. package/docs/it/intlayer_with_nextjs_14.md +1 -28
  254. package/docs/it/intlayer_with_nextjs_15.md +1 -33
  255. package/docs/it/intlayer_with_solid_start.md +1078 -0
  256. package/docs/it/intlayer_with_vite+vue.md +1 -3
  257. package/docs/it/live-sync.md +4 -0
  258. package/docs/it/packages/intlayer/getLocalizedUrl.md +34 -26
  259. package/docs/it/packages/intlayer/getMultilingualUrls.md +4 -18
  260. package/docs/it/packages/react-intlayer/useDictionary.md +4 -21
  261. package/docs/it/packages/vite-intlayer/exports.md +15 -0
  262. package/docs/it/packages/vite-intlayer/intlayer.md +121 -6
  263. package/docs/it/packages/vite-intlayer/intlayerPrune.md +77 -4
  264. package/docs/it/releases/v9.md +0 -15
  265. package/docs/it/self_hosting.md +60 -49
  266. package/docs/ja/analytics.md +222 -0
  267. package/docs/ja/autoFill.md +28 -9
  268. package/docs/ja/bundle_optimization.md +58 -25
  269. package/docs/ja/configuration.md +25 -8
  270. package/docs/ja/dictionary/content_file.md +15 -7
  271. package/docs/ja/dictionary/file.md +3 -1
  272. package/docs/ja/dictionary/nesting.md +47 -30
  273. package/docs/ja/formatters.md +133 -187
  274. package/docs/ja/intlayer_visual_editor.md +3 -1
  275. package/docs/ja/intlayer_with_angular_21.md +6 -6
  276. package/docs/ja/intlayer_with_nestjs.md +2 -12
  277. package/docs/ja/intlayer_with_nextjs_14.md +1 -28
  278. package/docs/ja/intlayer_with_nextjs_15.md +1 -33
  279. package/docs/ja/intlayer_with_react_router_v7.md +456 -20
  280. package/docs/ja/intlayer_with_solid_start.md +1078 -0
  281. package/docs/ja/intlayer_with_vite+preact.md +73 -41
  282. package/docs/ja/intlayer_with_vite+vue.md +1 -3
  283. package/docs/ja/live-sync.md +4 -0
  284. package/docs/ja/mcp_server.md +3 -9
  285. package/docs/ja/packages/intlayer/getLocalizedUrl.md +26 -24
  286. package/docs/ja/packages/intlayer/getMultilingualUrls.md +3 -17
  287. package/docs/ja/packages/vite-intlayer/exports.md +15 -0
  288. package/docs/ja/packages/vite-intlayer/intlayer.md +121 -6
  289. package/docs/ja/packages/vite-intlayer/intlayerPrune.md +79 -6
  290. package/docs/ja/releases/v9.md +12 -0
  291. package/docs/ja/self_hosting.md +46 -50
  292. package/docs/ko/analytics.md +222 -0
  293. package/docs/ko/autoFill.md +28 -9
  294. package/docs/ko/bundle_optimization.md +58 -25
  295. package/docs/ko/configuration.md +25 -8
  296. package/docs/ko/dictionary/file.md +3 -1
  297. package/docs/ko/dictionary/nesting.md +47 -30
  298. package/docs/ko/formatters.md +133 -187
  299. package/docs/ko/intlayer_with_angular_21.md +9 -9
  300. package/docs/ko/intlayer_with_lynx+react.md +133 -39
  301. package/docs/ko/intlayer_with_nextjs_14.md +1 -28
  302. package/docs/ko/intlayer_with_nextjs_15.md +1 -33
  303. package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +40 -188
  304. package/docs/ko/intlayer_with_solid_start.md +1078 -0
  305. package/docs/ko/intlayer_with_vite+preact.md +57 -23
  306. package/docs/ko/intlayer_with_vite+vue.md +1 -3
  307. package/docs/ko/live-sync.md +4 -0
  308. package/docs/ko/packages/intlayer/getLocalizedUrl.md +26 -24
  309. package/docs/ko/packages/intlayer/getMultilingualUrls.md +4 -18
  310. package/docs/ko/packages/vite-intlayer/exports.md +15 -0
  311. package/docs/ko/packages/vite-intlayer/intlayer.md +121 -6
  312. package/docs/ko/packages/vite-intlayer/intlayerPrune.md +79 -6
  313. package/docs/ko/releases/v9.md +12 -0
  314. package/docs/ko/self_hosting.md +60 -49
  315. package/docs/nl/bundle_optimization.md +58 -25
  316. package/docs/nl/configuration.md +25 -8
  317. package/docs/nl/intlayer_with_angular_21.md +9 -9
  318. package/docs/pl/analytics.md +220 -0
  319. package/docs/pl/bundle_optimization.md +58 -25
  320. package/docs/pl/configuration.md +25 -8
  321. package/docs/pl/dictionary/nesting.md +47 -30
  322. package/docs/pl/formatters.md +208 -305
  323. package/docs/pl/intlayer_CMS.md +152 -0
  324. package/docs/pl/intlayer_with_angular_21.md +9 -9
  325. package/docs/pl/intlayer_with_nextjs_14.md +1 -26
  326. package/docs/pl/intlayer_with_solid_start.md +1078 -0
  327. package/docs/pl/live-sync.md +4 -0
  328. package/docs/pl/packages/intlayer/getMultilingualUrls.md +4 -18
  329. package/docs/pl/packages/react-intlayer/useDictionary.md +2 -19
  330. package/docs/pl/packages/vite-intlayer/exports.md +15 -0
  331. package/docs/pl/packages/vite-intlayer/intlayer.md +121 -6
  332. package/docs/pl/packages/vite-intlayer/intlayerPrune.md +77 -4
  333. package/docs/pl/releases/v9.md +0 -15
  334. package/docs/pl/self_hosting.md +60 -49
  335. package/docs/pt/analytics.md +222 -0
  336. package/docs/pt/bundle_optimization.md +58 -24
  337. package/docs/pt/configuration.md +25 -8
  338. package/docs/pt/dictionary/file.md +3 -1
  339. package/docs/pt/dictionary/nesting.md +47 -30
  340. package/docs/pt/formatters.md +112 -168
  341. package/docs/pt/intlayer_CMS.md +66 -15
  342. package/docs/pt/intlayer_with_angular_21.md +9 -9
  343. package/docs/pt/intlayer_with_astro_lit.md +26 -1
  344. package/docs/pt/intlayer_with_nextjs_14.md +1 -28
  345. package/docs/pt/intlayer_with_nextjs_15.md +1 -33
  346. package/docs/pt/intlayer_with_solid_start.md +1078 -0
  347. package/docs/pt/intlayer_with_vite+vue.md +1 -3
  348. package/docs/pt/live-sync.md +4 -0
  349. package/docs/pt/packages/intlayer/getLocalizedUrl.md +34 -26
  350. package/docs/pt/packages/intlayer/getMultilingualUrls.md +4 -18
  351. package/docs/pt/packages/vite-intlayer/exports.md +15 -0
  352. package/docs/pt/packages/vite-intlayer/intlayer.md +121 -6
  353. package/docs/pt/packages/vite-intlayer/intlayerPrune.md +78 -6
  354. package/docs/pt/releases/v9.md +0 -15
  355. package/docs/pt/self_hosting.md +60 -49
  356. package/docs/ru/analytics.md +222 -0
  357. package/docs/ru/autoFill.md +27 -8
  358. package/docs/ru/bundle_optimization.md +58 -25
  359. package/docs/ru/configuration.md +25 -8
  360. package/docs/ru/dictionary/file.md +3 -1
  361. package/docs/ru/dictionary/nesting.md +64 -205
  362. package/docs/ru/formatters.md +108 -128
  363. package/docs/ru/intlayer_with_angular_21.md +9 -9
  364. package/docs/ru/intlayer_with_nextjs_14.md +1 -28
  365. package/docs/ru/intlayer_with_nextjs_15.md +1 -33
  366. package/docs/ru/intlayer_with_solid_start.md +1078 -0
  367. package/docs/ru/intlayer_with_vite+vue.md +1 -3
  368. package/docs/ru/live-sync.md +4 -0
  369. package/docs/ru/packages/intlayer/getLocalizedUrl.md +34 -26
  370. package/docs/ru/packages/intlayer/getMultilingualUrls.md +4 -18
  371. package/docs/ru/packages/react-intlayer/useDictionary.md +4 -21
  372. package/docs/ru/packages/vite-intlayer/exports.md +15 -0
  373. package/docs/ru/packages/vite-intlayer/intlayer.md +121 -6
  374. package/docs/ru/packages/vite-intlayer/intlayerPrune.md +77 -4
  375. package/docs/ru/releases/v9.md +0 -15
  376. package/docs/ru/self_hosting.md +60 -49
  377. package/docs/tr/analytics.md +222 -0
  378. package/docs/tr/autoFill.md +28 -9
  379. package/docs/tr/bundle_optimization.md +58 -25
  380. package/docs/tr/configuration.md +25 -8
  381. package/docs/tr/dictionary/file.md +2 -0
  382. package/docs/tr/dictionary/nesting.md +47 -30
  383. package/docs/tr/formatters.md +144 -190
  384. package/docs/tr/intlayer_CMS.md +152 -0
  385. package/docs/tr/intlayer_with_angular_21.md +9 -9
  386. package/docs/tr/intlayer_with_nestjs.md +2 -12
  387. package/docs/tr/intlayer_with_nextjs_15.md +1 -33
  388. package/docs/tr/intlayer_with_solid_start.md +1078 -0
  389. package/docs/tr/intlayer_with_vite+vue.md +1 -3
  390. package/docs/tr/live-sync.md +4 -0
  391. package/docs/tr/packages/intlayer/getMultilingualUrls.md +4 -18
  392. package/docs/tr/packages/vite-intlayer/exports.md +15 -0
  393. package/docs/tr/packages/vite-intlayer/intlayer.md +121 -6
  394. package/docs/tr/packages/vite-intlayer/intlayerPrune.md +77 -4
  395. package/docs/tr/self_hosting.md +47 -50
  396. package/docs/uk/analytics.md +222 -0
  397. package/docs/uk/bundle_optimization.md +58 -25
  398. package/docs/uk/configuration.md +25 -8
  399. package/docs/uk/dictionary/nesting.md +47 -30
  400. package/docs/uk/formatters.md +128 -185
  401. package/docs/uk/intlayer_CMS.md +152 -0
  402. package/docs/uk/intlayer_with_angular_21.md +9 -9
  403. package/docs/uk/intlayer_with_nextjs_14.md +1 -26
  404. package/docs/uk/intlayer_with_solid_start.md +1078 -0
  405. package/docs/uk/live-sync.md +4 -0
  406. package/docs/uk/packages/react-intlayer/useDictionary.md +2 -19
  407. package/docs/uk/packages/vite-intlayer/exports.md +15 -0
  408. package/docs/uk/packages/vite-intlayer/intlayer.md +121 -6
  409. package/docs/uk/packages/vite-intlayer/intlayerPrune.md +77 -4
  410. package/docs/uk/releases/v9.md +0 -15
  411. package/docs/uk/self_hosting.md +60 -50
  412. package/docs/ur/bundle_optimization.md +58 -25
  413. package/docs/ur/configuration.md +25 -8
  414. package/docs/ur/intlayer_with_angular_21.md +9 -9
  415. package/docs/vi/analytics.md +222 -0
  416. package/docs/vi/bundle_optimization.md +58 -25
  417. package/docs/vi/configuration.md +24 -8
  418. package/docs/vi/dictionary/nesting.md +37 -184
  419. package/docs/vi/formatters.md +208 -309
  420. package/docs/vi/intlayer_CMS.md +164 -0
  421. package/docs/vi/intlayer_with_angular_21.md +9 -9
  422. package/docs/vi/intlayer_with_nextjs_14.md +0 -25
  423. package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +70 -63
  424. package/docs/vi/intlayer_with_solid_start.md +1078 -0
  425. package/docs/vi/live-sync.md +4 -0
  426. package/docs/vi/packages/intlayer/getMultilingualUrls.md +4 -18
  427. package/docs/vi/packages/react-intlayer/useIntlayer.md +2 -2
  428. package/docs/vi/packages/vite-intlayer/exports.md +15 -0
  429. package/docs/vi/packages/vite-intlayer/intlayer.md +121 -6
  430. package/docs/vi/packages/vite-intlayer/intlayerPrune.md +77 -4
  431. package/docs/vi/plugins/sync-json.md +6 -6
  432. package/docs/vi/releases/v9.md +12 -0
  433. package/docs/vi/self_hosting.md +61 -50
  434. package/docs/zh/CI_CD.md +4 -0
  435. package/docs/zh/analytics.md +222 -0
  436. package/docs/zh/autoFill.md +28 -9
  437. package/docs/zh/bundle_optimization.md +58 -25
  438. package/docs/zh/configuration.md +24 -8
  439. package/docs/zh/dictionary/file.md +2 -0
  440. package/docs/zh/dictionary/nesting.md +47 -30
  441. package/docs/zh/formatters.md +140 -188
  442. package/docs/zh/intlayer_CMS.md +164 -0
  443. package/docs/zh/intlayer_with_analog.md +193 -3
  444. package/docs/zh/intlayer_with_angular_19.md +272 -3
  445. package/docs/zh/intlayer_with_angular_21.md +7 -7
  446. package/docs/zh/intlayer_with_create_react_app.md +348 -26
  447. package/docs/zh/intlayer_with_lynx+react.md +263 -4
  448. package/docs/zh/intlayer_with_nextjs_14.md +1 -28
  449. package/docs/zh/intlayer_with_nextjs_15.md +1 -33
  450. package/docs/zh/intlayer_with_nextjs_no_locale_path.md +558 -1
  451. package/docs/zh/intlayer_with_nuxt.md +182 -7
  452. package/docs/zh/intlayer_with_react_router_v7.md +183 -25
  453. package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +306 -42
  454. package/docs/zh/intlayer_with_solid_start.md +1077 -0
  455. package/docs/zh/intlayer_with_storybook.md +260 -3
  456. package/docs/zh/intlayer_with_svelte_kit.md +428 -48
  457. package/docs/zh/intlayer_with_tanstack+solid.md +713 -13
  458. package/docs/zh/intlayer_with_tanstack.md +731 -20
  459. package/docs/zh/intlayer_with_vanilla.md +314 -4
  460. package/docs/zh/intlayer_with_vite+lit.md +465 -4
  461. package/docs/zh/intlayer_with_vite+preact.md +422 -116
  462. package/docs/zh/intlayer_with_vite+react.md +324 -45
  463. package/docs/zh/intlayer_with_vite+react_compiler.md +228 -13
  464. package/docs/zh/intlayer_with_vite+solid.md +462 -32
  465. package/docs/zh/intlayer_with_vite+vanilla.md +497 -4
  466. package/docs/zh/live-sync.md +4 -0
  467. package/docs/zh/mcp_server.md +3 -9
  468. package/docs/zh/packages/intlayer/getLocalizedUrl.md +26 -24
  469. package/docs/zh/packages/intlayer/getMultilingualUrls.md +4 -18
  470. package/docs/zh/packages/vite-intlayer/exports.md +29 -0
  471. package/docs/zh/packages/vite-intlayer/intlayer.md +121 -6
  472. package/docs/zh/packages/vite-intlayer/intlayerPrune.md +79 -6
  473. package/docs/zh/releases/v9.md +12 -0
  474. package/docs/zh/self_hosting.md +60 -50
  475. package/docs/zh-TW/bundle_optimization.md +58 -25
  476. package/docs/zh-TW/intlayer_with_angular_21.md +7 -7
  477. package/package.json +7 -7
  478. package/src/common.ts +39 -2
  479. package/src/generated/blog.entry.ts +66 -34
  480. package/src/generated/docs.entry.ts +273 -221
  481. package/src/generated/frequentQuestions.entry.ts +56 -24
  482. package/src/generated/legal.entry.ts +41 -9
@@ -17,22 +17,49 @@ try {
17
17
  baseDir = (0, _intlayer_config_utils.getPackageJsonPath)(currentDir).baseDir;
18
18
  }
19
19
  }
20
- const readLocale = (relativeAfterLocale, locale) => {
20
+ /**
21
+ * Reads a document, preferring the requested locale and falling back to English.
22
+ */
23
+ const readLocaleFile = async (relativeAfterLocale, locale) => {
21
24
  const target1 = (0, node_path.join)(baseDir, `./frequent_questions/${locale}/${relativeAfterLocale}`);
22
- if ((0, node_fs.existsSync)(target1)) return (0, node_fs_promises.readFile)(target1, "utf8");
25
+ if ((0, node_fs.existsSync)(target1)) return await (0, node_fs_promises.readFile)(target1, "utf8");
23
26
  const target2 = (0, node_path.join)(baseDir, `./frequent_questions/en/${relativeAfterLocale}`);
24
- if ((0, node_fs.existsSync)(target2)) return (0, node_fs_promises.readFile)(target2, "utf8");
25
- return Promise.reject(/* @__PURE__ */ new Error(`[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`));
27
+ if ((0, node_fs.existsSync)(target2)) return await (0, node_fs_promises.readFile)(target2, "utf8");
28
+ throw new Error(`[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`);
29
+ };
30
+ /**
31
+ * Builds a lazy, awaitable handle over a document.
32
+ *
33
+ * The entry map below holds one handle per document *per locale*, so reading
34
+ * eagerly would pull every markdown file of every locale into memory as soon as
35
+ * this module is imported — hundreds of megabytes, duplicated in every
36
+ * prerender worker, for the handful of documents a page actually renders.
37
+ *
38
+ * The returned value is a thenable rather than a promise: consumers only ever
39
+ * `await` it, and `await` triggers `then`, so the file is read on first use and
40
+ * the resulting promise is cached for subsequent reads.
41
+ */
42
+ const readLocale = (relativeAfterLocale, locale) => {
43
+ let pendingRead;
44
+ const read = () => {
45
+ pendingRead ??= readLocaleFile(relativeAfterLocale, locale);
46
+ return pendingRead;
47
+ };
48
+ return {
49
+ then: (onFulfilled, onRejected) => read().then(onFulfilled, onRejected),
50
+ catch: (onRejected) => read().catch(onRejected),
51
+ finally: (onFinally) => read().finally(onFinally)
52
+ };
26
53
  };
27
54
  const frequentQuestionsEntry = {
28
55
  "./frequent_questions/en/SSR_Next_no_[locale].md": {
29
56
  en: readLocale("SSR_Next_no_[locale].md", "en"),
57
+ es: readLocale("SSR_Next_no_[locale].md", "es"),
30
58
  ru: readLocale("SSR_Next_no_[locale].md", "ru"),
31
59
  ja: readLocale("SSR_Next_no_[locale].md", "ja"),
32
60
  fr: readLocale("SSR_Next_no_[locale].md", "fr"),
33
61
  ko: readLocale("SSR_Next_no_[locale].md", "ko"),
34
62
  zh: readLocale("SSR_Next_no_[locale].md", "zh"),
35
- es: readLocale("SSR_Next_no_[locale].md", "es"),
36
63
  de: readLocale("SSR_Next_no_[locale].md", "de"),
37
64
  ar: readLocale("SSR_Next_no_[locale].md", "ar"),
38
65
  it: readLocale("SSR_Next_no_[locale].md", "it"),
@@ -47,12 +74,12 @@ const frequentQuestionsEntry = {
47
74
  },
48
75
  "./frequent_questions/en/array_as_content_declaration.md": {
49
76
  en: readLocale("array_as_content_declaration.md", "en"),
77
+ es: readLocale("array_as_content_declaration.md", "es"),
50
78
  ru: readLocale("array_as_content_declaration.md", "ru"),
51
79
  ja: readLocale("array_as_content_declaration.md", "ja"),
52
80
  fr: readLocale("array_as_content_declaration.md", "fr"),
53
81
  ko: readLocale("array_as_content_declaration.md", "ko"),
54
82
  zh: readLocale("array_as_content_declaration.md", "zh"),
55
- es: readLocale("array_as_content_declaration.md", "es"),
56
83
  de: readLocale("array_as_content_declaration.md", "de"),
57
84
  ar: readLocale("array_as_content_declaration.md", "ar"),
58
85
  it: readLocale("array_as_content_declaration.md", "it"),
@@ -67,12 +94,12 @@ const frequentQuestionsEntry = {
67
94
  },
68
95
  "./frequent_questions/en/build_dictionaries.md": {
69
96
  en: readLocale("build_dictionaries.md", "en"),
97
+ es: readLocale("build_dictionaries.md", "es"),
70
98
  ru: readLocale("build_dictionaries.md", "ru"),
71
99
  ja: readLocale("build_dictionaries.md", "ja"),
72
100
  fr: readLocale("build_dictionaries.md", "fr"),
73
101
  ko: readLocale("build_dictionaries.md", "ko"),
74
102
  zh: readLocale("build_dictionaries.md", "zh"),
75
- es: readLocale("build_dictionaries.md", "es"),
76
103
  de: readLocale("build_dictionaries.md", "de"),
77
104
  ar: readLocale("build_dictionaries.md", "ar"),
78
105
  it: readLocale("build_dictionaries.md", "it"),
@@ -87,12 +114,12 @@ const frequentQuestionsEntry = {
87
114
  },
88
115
  "./frequent_questions/en/build_error_CI_CD.md": {
89
116
  en: readLocale("build_error_CI_CD.md", "en"),
117
+ es: readLocale("build_error_CI_CD.md", "es"),
90
118
  ru: readLocale("build_error_CI_CD.md", "ru"),
91
119
  ja: readLocale("build_error_CI_CD.md", "ja"),
92
120
  fr: readLocale("build_error_CI_CD.md", "fr"),
93
121
  ko: readLocale("build_error_CI_CD.md", "ko"),
94
122
  zh: readLocale("build_error_CI_CD.md", "zh"),
95
- es: readLocale("build_error_CI_CD.md", "es"),
96
123
  de: readLocale("build_error_CI_CD.md", "de"),
97
124
  ar: readLocale("build_error_CI_CD.md", "ar"),
98
125
  it: readLocale("build_error_CI_CD.md", "it"),
@@ -107,12 +134,12 @@ const frequentQuestionsEntry = {
107
134
  },
108
135
  "./frequent_questions/en/bun_set_up.md": {
109
136
  en: readLocale("bun_set_up.md", "en"),
137
+ es: readLocale("bun_set_up.md", "es"),
110
138
  ru: readLocale("bun_set_up.md", "ru"),
111
139
  ja: readLocale("bun_set_up.md", "ja"),
112
140
  fr: readLocale("bun_set_up.md", "fr"),
113
141
  ko: readLocale("bun_set_up.md", "ko"),
114
142
  zh: readLocale("bun_set_up.md", "zh"),
115
- es: readLocale("bun_set_up.md", "es"),
116
143
  de: readLocale("bun_set_up.md", "de"),
117
144
  ar: readLocale("bun_set_up.md", "ar"),
118
145
  it: readLocale("bun_set_up.md", "it"),
@@ -127,12 +154,12 @@ const frequentQuestionsEntry = {
127
154
  },
128
155
  "./frequent_questions/en/customized_locale_list.md": {
129
156
  en: readLocale("customized_locale_list.md", "en"),
157
+ es: readLocale("customized_locale_list.md", "es"),
130
158
  ru: readLocale("customized_locale_list.md", "ru"),
131
159
  ja: readLocale("customized_locale_list.md", "ja"),
132
160
  fr: readLocale("customized_locale_list.md", "fr"),
133
161
  ko: readLocale("customized_locale_list.md", "ko"),
134
162
  zh: readLocale("customized_locale_list.md", "zh"),
135
- es: readLocale("customized_locale_list.md", "es"),
136
163
  de: readLocale("customized_locale_list.md", "de"),
137
164
  ar: readLocale("customized_locale_list.md", "ar"),
138
165
  it: readLocale("customized_locale_list.md", "it"),
@@ -147,12 +174,12 @@ const frequentQuestionsEntry = {
147
174
  },
148
175
  "./frequent_questions/en/domain_routing.md": {
149
176
  en: readLocale("domain_routing.md", "en"),
177
+ es: readLocale("domain_routing.md", "es"),
150
178
  ru: readLocale("domain_routing.md", "ru"),
151
179
  ja: readLocale("domain_routing.md", "ja"),
152
180
  fr: readLocale("domain_routing.md", "fr"),
153
181
  ko: readLocale("domain_routing.md", "ko"),
154
182
  zh: readLocale("domain_routing.md", "zh"),
155
- es: readLocale("domain_routing.md", "es"),
156
183
  de: readLocale("domain_routing.md", "de"),
157
184
  ar: readLocale("domain_routing.md", "ar"),
158
185
  it: readLocale("domain_routing.md", "it"),
@@ -167,12 +194,12 @@ const frequentQuestionsEntry = {
167
194
  },
168
195
  "./frequent_questions/en/error-vite-env-only.md": {
169
196
  en: readLocale("error-vite-env-only.md", "en"),
197
+ es: readLocale("error-vite-env-only.md", "es"),
170
198
  ru: readLocale("error-vite-env-only.md", "ru"),
171
199
  ja: readLocale("error-vite-env-only.md", "ja"),
172
200
  fr: readLocale("error-vite-env-only.md", "fr"),
173
201
  ko: readLocale("error-vite-env-only.md", "ko"),
174
202
  zh: readLocale("error-vite-env-only.md", "zh"),
175
- es: readLocale("error-vite-env-only.md", "es"),
176
203
  de: readLocale("error-vite-env-only.md", "de"),
177
204
  ar: readLocale("error-vite-env-only.md", "ar"),
178
205
  it: readLocale("error-vite-env-only.md", "it"),
@@ -187,12 +214,12 @@ const frequentQuestionsEntry = {
187
214
  },
188
215
  "./frequent_questions/en/esbuild_error.md": {
189
216
  en: readLocale("esbuild_error.md", "en"),
217
+ es: readLocale("esbuild_error.md", "es"),
190
218
  ru: readLocale("esbuild_error.md", "ru"),
191
219
  ja: readLocale("esbuild_error.md", "ja"),
192
220
  fr: readLocale("esbuild_error.md", "fr"),
193
221
  ko: readLocale("esbuild_error.md", "ko"),
194
222
  zh: readLocale("esbuild_error.md", "zh"),
195
- es: readLocale("esbuild_error.md", "es"),
196
223
  de: readLocale("esbuild_error.md", "de"),
197
224
  ar: readLocale("esbuild_error.md", "ar"),
198
225
  it: readLocale("esbuild_error.md", "it"),
@@ -207,12 +234,12 @@ const frequentQuestionsEntry = {
207
234
  },
208
235
  "./frequent_questions/en/get_locale_cookie.md": {
209
236
  en: readLocale("get_locale_cookie.md", "en"),
237
+ es: readLocale("get_locale_cookie.md", "es"),
210
238
  ru: readLocale("get_locale_cookie.md", "ru"),
211
239
  ja: readLocale("get_locale_cookie.md", "ja"),
212
240
  fr: readLocale("get_locale_cookie.md", "fr"),
213
241
  ko: readLocale("get_locale_cookie.md", "ko"),
214
242
  zh: readLocale("get_locale_cookie.md", "zh"),
215
- es: readLocale("get_locale_cookie.md", "es"),
216
243
  de: readLocale("get_locale_cookie.md", "de"),
217
244
  ar: readLocale("get_locale_cookie.md", "ar"),
218
245
  it: readLocale("get_locale_cookie.md", "it"),
@@ -227,12 +254,12 @@ const frequentQuestionsEntry = {
227
254
  },
228
255
  "./frequent_questions/en/intlayerNode.md": {
229
256
  en: readLocale("intlayerNode.md", "en"),
257
+ es: readLocale("intlayerNode.md", "es"),
230
258
  ru: readLocale("intlayerNode.md", "ru"),
231
259
  ja: readLocale("intlayerNode.md", "ja"),
232
260
  fr: readLocale("intlayerNode.md", "fr"),
233
261
  ko: readLocale("intlayerNode.md", "ko"),
234
262
  zh: readLocale("intlayerNode.md", "zh"),
235
- es: readLocale("intlayerNode.md", "es"),
236
263
  de: readLocale("intlayerNode.md", "de"),
237
264
  ar: readLocale("intlayerNode.md", "ar"),
238
265
  it: readLocale("intlayerNode.md", "it"),
@@ -247,12 +274,12 @@ const frequentQuestionsEntry = {
247
274
  },
248
275
  "./frequent_questions/en/intlayer_command_undefined.md": {
249
276
  en: readLocale("intlayer_command_undefined.md", "en"),
277
+ es: readLocale("intlayer_command_undefined.md", "es"),
250
278
  ru: readLocale("intlayer_command_undefined.md", "ru"),
251
279
  ja: readLocale("intlayer_command_undefined.md", "ja"),
252
280
  fr: readLocale("intlayer_command_undefined.md", "fr"),
253
281
  ko: readLocale("intlayer_command_undefined.md", "ko"),
254
282
  zh: readLocale("intlayer_command_undefined.md", "zh"),
255
- es: readLocale("intlayer_command_undefined.md", "es"),
256
283
  de: readLocale("intlayer_command_undefined.md", "de"),
257
284
  ar: readLocale("intlayer_command_undefined.md", "ar"),
258
285
  it: readLocale("intlayer_command_undefined.md", "it"),
@@ -267,12 +294,12 @@ const frequentQuestionsEntry = {
267
294
  },
268
295
  "./frequent_questions/en/locale_incorect_in_url.md": {
269
296
  en: readLocale("locale_incorect_in_url.md", "en"),
297
+ es: readLocale("locale_incorect_in_url.md", "es"),
270
298
  ru: readLocale("locale_incorect_in_url.md", "ru"),
271
299
  ja: readLocale("locale_incorect_in_url.md", "ja"),
272
300
  fr: readLocale("locale_incorect_in_url.md", "fr"),
273
301
  ko: readLocale("locale_incorect_in_url.md", "ko"),
274
302
  zh: readLocale("locale_incorect_in_url.md", "zh"),
275
- es: readLocale("locale_incorect_in_url.md", "es"),
276
303
  de: readLocale("locale_incorect_in_url.md", "de"),
277
304
  ar: readLocale("locale_incorect_in_url.md", "ar"),
278
305
  it: readLocale("locale_incorect_in_url.md", "it"),
@@ -287,12 +314,12 @@ const frequentQuestionsEntry = {
287
314
  },
288
315
  "./frequent_questions/en/package_version_error.md": {
289
316
  en: readLocale("package_version_error.md", "en"),
317
+ es: readLocale("package_version_error.md", "es"),
290
318
  ru: readLocale("package_version_error.md", "ru"),
291
319
  ja: readLocale("package_version_error.md", "ja"),
292
320
  fr: readLocale("package_version_error.md", "fr"),
293
321
  ko: readLocale("package_version_error.md", "ko"),
294
322
  zh: readLocale("package_version_error.md", "zh"),
295
- es: readLocale("package_version_error.md", "es"),
296
323
  de: readLocale("package_version_error.md", "de"),
297
324
  ar: readLocale("package_version_error.md", "ar"),
298
325
  it: readLocale("package_version_error.md", "it"),
@@ -307,12 +334,12 @@ const frequentQuestionsEntry = {
307
334
  },
308
335
  "./frequent_questions/en/static_rendering.md": {
309
336
  en: readLocale("static_rendering.md", "en"),
337
+ es: readLocale("static_rendering.md", "es"),
310
338
  ru: readLocale("static_rendering.md", "ru"),
311
339
  ja: readLocale("static_rendering.md", "ja"),
312
340
  fr: readLocale("static_rendering.md", "fr"),
313
341
  ko: readLocale("static_rendering.md", "ko"),
314
342
  zh: readLocale("static_rendering.md", "zh"),
315
- es: readLocale("static_rendering.md", "es"),
316
343
  de: readLocale("static_rendering.md", "de"),
317
344
  ar: readLocale("static_rendering.md", "ar"),
318
345
  it: readLocale("static_rendering.md", "it"),
@@ -327,12 +354,12 @@ const frequentQuestionsEntry = {
327
354
  },
328
355
  "./frequent_questions/en/translated_path_url.md": {
329
356
  en: readLocale("translated_path_url.md", "en"),
357
+ es: readLocale("translated_path_url.md", "es"),
330
358
  ru: readLocale("translated_path_url.md", "ru"),
331
359
  ja: readLocale("translated_path_url.md", "ja"),
332
360
  fr: readLocale("translated_path_url.md", "fr"),
333
361
  ko: readLocale("translated_path_url.md", "ko"),
334
362
  zh: readLocale("translated_path_url.md", "zh"),
335
- es: readLocale("translated_path_url.md", "es"),
336
363
  de: readLocale("translated_path_url.md", "de"),
337
364
  ar: readLocale("translated_path_url.md", "ar"),
338
365
  it: readLocale("translated_path_url.md", "it"),
@@ -347,12 +374,12 @@ const frequentQuestionsEntry = {
347
374
  },
348
375
  "./frequent_questions/en/unknown_command.md": {
349
376
  en: readLocale("unknown_command.md", "en"),
377
+ es: readLocale("unknown_command.md", "es"),
350
378
  ru: readLocale("unknown_command.md", "ru"),
351
379
  ja: readLocale("unknown_command.md", "ja"),
352
380
  fr: readLocale("unknown_command.md", "fr"),
353
381
  ko: readLocale("unknown_command.md", "ko"),
354
382
  zh: readLocale("unknown_command.md", "zh"),
355
- es: readLocale("unknown_command.md", "es"),
356
383
  de: readLocale("unknown_command.md", "de"),
357
384
  ar: readLocale("unknown_command.md", "ar"),
358
385
  it: readLocale("unknown_command.md", "it"),
@@ -1 +1 @@
1
- {"version":3,"file":"frequentQuestions.entry.cjs","names":[],"sources":["../../../src/generated/frequentQuestions.entry.ts"],"sourcesContent":["/* AUTO-GENERATED – DO NOT EDIT */\n/* REGENERATE USING `pnpm prepare` */\nimport { existsSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join, dirname as pathDirname } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\n// Robustly resolve the base directory of the @intlayer/docs package in both\n// bundled environments (Next.js) and standalone CLIs (MCP via npx).\nconst currentDir =\n typeof __dirname !== 'undefined'\n ? __dirname\n : pathDirname(fileURLToPath(import.meta.url));\n\nlet baseDir: string;\ntry {\n // Prefer resolving from the location of this file (works for CLIs).\n const projectRequire = getProjectRequire(currentDir);\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n} catch {\n try {\n // Fallback: resolve from the consumer project (works for apps/bundlers).\n const projectRequire = getProjectRequire();\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n } catch {\n // Last resort: walk up from currentDir (useful when executed inside @intlayer/docs).\n baseDir = getPackageJsonPath(currentDir).baseDir;\n }\n}\n\nconst readLocale = (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n const target1 = join(\n baseDir,\n `./frequent_questions/${locale}/${relativeAfterLocale}`\n );\n if (existsSync(target1)) {\n return readFile(target1, 'utf8');\n }\n const target2 = join(\n baseDir,\n `./frequent_questions/en/${relativeAfterLocale}`\n );\n if (existsSync(target2)) {\n return readFile(target2, 'utf8');\n }\n\n return Promise.reject(\n new Error(\n `[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`\n )\n );\n};\n\nexport const frequentQuestionsEntry = {\n './frequent_questions/en/SSR_Next_no_[locale].md': {\n en: readLocale('SSR_Next_no_[locale].md', 'en'),\n ru: readLocale('SSR_Next_no_[locale].md', 'ru'),\n ja: readLocale('SSR_Next_no_[locale].md', 'ja'),\n fr: readLocale('SSR_Next_no_[locale].md', 'fr'),\n ko: readLocale('SSR_Next_no_[locale].md', 'ko'),\n zh: readLocale('SSR_Next_no_[locale].md', 'zh'),\n es: readLocale('SSR_Next_no_[locale].md', 'es'),\n de: readLocale('SSR_Next_no_[locale].md', 'de'),\n ar: readLocale('SSR_Next_no_[locale].md', 'ar'),\n it: readLocale('SSR_Next_no_[locale].md', 'it'),\n 'en-GB': readLocale('SSR_Next_no_[locale].md', 'en-GB'),\n pt: readLocale('SSR_Next_no_[locale].md', 'pt'),\n hi: readLocale('SSR_Next_no_[locale].md', 'hi'),\n tr: readLocale('SSR_Next_no_[locale].md', 'tr'),\n pl: readLocale('SSR_Next_no_[locale].md', 'pl'),\n id: readLocale('SSR_Next_no_[locale].md', 'id'),\n vi: readLocale('SSR_Next_no_[locale].md', 'vi'),\n uk: readLocale('SSR_Next_no_[locale].md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/array_as_content_declaration.md': {\n en: readLocale('array_as_content_declaration.md', 'en'),\n ru: readLocale('array_as_content_declaration.md', 'ru'),\n ja: readLocale('array_as_content_declaration.md', 'ja'),\n fr: readLocale('array_as_content_declaration.md', 'fr'),\n ko: readLocale('array_as_content_declaration.md', 'ko'),\n zh: readLocale('array_as_content_declaration.md', 'zh'),\n es: readLocale('array_as_content_declaration.md', 'es'),\n de: readLocale('array_as_content_declaration.md', 'de'),\n ar: readLocale('array_as_content_declaration.md', 'ar'),\n it: readLocale('array_as_content_declaration.md', 'it'),\n 'en-GB': readLocale('array_as_content_declaration.md', 'en-GB'),\n pt: readLocale('array_as_content_declaration.md', 'pt'),\n hi: readLocale('array_as_content_declaration.md', 'hi'),\n tr: readLocale('array_as_content_declaration.md', 'tr'),\n pl: readLocale('array_as_content_declaration.md', 'pl'),\n id: readLocale('array_as_content_declaration.md', 'id'),\n vi: readLocale('array_as_content_declaration.md', 'vi'),\n uk: readLocale('array_as_content_declaration.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/build_dictionaries.md': {\n en: readLocale('build_dictionaries.md', 'en'),\n ru: readLocale('build_dictionaries.md', 'ru'),\n ja: readLocale('build_dictionaries.md', 'ja'),\n fr: readLocale('build_dictionaries.md', 'fr'),\n ko: readLocale('build_dictionaries.md', 'ko'),\n zh: readLocale('build_dictionaries.md', 'zh'),\n es: readLocale('build_dictionaries.md', 'es'),\n de: readLocale('build_dictionaries.md', 'de'),\n ar: readLocale('build_dictionaries.md', 'ar'),\n it: readLocale('build_dictionaries.md', 'it'),\n 'en-GB': readLocale('build_dictionaries.md', 'en-GB'),\n pt: readLocale('build_dictionaries.md', 'pt'),\n hi: readLocale('build_dictionaries.md', 'hi'),\n tr: readLocale('build_dictionaries.md', 'tr'),\n pl: readLocale('build_dictionaries.md', 'pl'),\n id: readLocale('build_dictionaries.md', 'id'),\n vi: readLocale('build_dictionaries.md', 'vi'),\n uk: readLocale('build_dictionaries.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/build_error_CI_CD.md': {\n en: readLocale('build_error_CI_CD.md', 'en'),\n ru: readLocale('build_error_CI_CD.md', 'ru'),\n ja: readLocale('build_error_CI_CD.md', 'ja'),\n fr: readLocale('build_error_CI_CD.md', 'fr'),\n ko: readLocale('build_error_CI_CD.md', 'ko'),\n zh: readLocale('build_error_CI_CD.md', 'zh'),\n es: readLocale('build_error_CI_CD.md', 'es'),\n de: readLocale('build_error_CI_CD.md', 'de'),\n ar: readLocale('build_error_CI_CD.md', 'ar'),\n it: readLocale('build_error_CI_CD.md', 'it'),\n 'en-GB': readLocale('build_error_CI_CD.md', 'en-GB'),\n pt: readLocale('build_error_CI_CD.md', 'pt'),\n hi: readLocale('build_error_CI_CD.md', 'hi'),\n tr: readLocale('build_error_CI_CD.md', 'tr'),\n pl: readLocale('build_error_CI_CD.md', 'pl'),\n id: readLocale('build_error_CI_CD.md', 'id'),\n vi: readLocale('build_error_CI_CD.md', 'vi'),\n uk: readLocale('build_error_CI_CD.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/bun_set_up.md': {\n en: readLocale('bun_set_up.md', 'en'),\n ru: readLocale('bun_set_up.md', 'ru'),\n ja: readLocale('bun_set_up.md', 'ja'),\n fr: readLocale('bun_set_up.md', 'fr'),\n ko: readLocale('bun_set_up.md', 'ko'),\n zh: readLocale('bun_set_up.md', 'zh'),\n es: readLocale('bun_set_up.md', 'es'),\n de: readLocale('bun_set_up.md', 'de'),\n ar: readLocale('bun_set_up.md', 'ar'),\n it: readLocale('bun_set_up.md', 'it'),\n 'en-GB': readLocale('bun_set_up.md', 'en-GB'),\n pt: readLocale('bun_set_up.md', 'pt'),\n hi: readLocale('bun_set_up.md', 'hi'),\n tr: readLocale('bun_set_up.md', 'tr'),\n pl: readLocale('bun_set_up.md', 'pl'),\n id: readLocale('bun_set_up.md', 'id'),\n vi: readLocale('bun_set_up.md', 'vi'),\n uk: readLocale('bun_set_up.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/customized_locale_list.md': {\n en: readLocale('customized_locale_list.md', 'en'),\n ru: readLocale('customized_locale_list.md', 'ru'),\n ja: readLocale('customized_locale_list.md', 'ja'),\n fr: readLocale('customized_locale_list.md', 'fr'),\n ko: readLocale('customized_locale_list.md', 'ko'),\n zh: readLocale('customized_locale_list.md', 'zh'),\n es: readLocale('customized_locale_list.md', 'es'),\n de: readLocale('customized_locale_list.md', 'de'),\n ar: readLocale('customized_locale_list.md', 'ar'),\n it: readLocale('customized_locale_list.md', 'it'),\n 'en-GB': readLocale('customized_locale_list.md', 'en-GB'),\n pt: readLocale('customized_locale_list.md', 'pt'),\n hi: readLocale('customized_locale_list.md', 'hi'),\n tr: readLocale('customized_locale_list.md', 'tr'),\n pl: readLocale('customized_locale_list.md', 'pl'),\n id: readLocale('customized_locale_list.md', 'id'),\n vi: readLocale('customized_locale_list.md', 'vi'),\n uk: readLocale('customized_locale_list.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/domain_routing.md': {\n en: readLocale('domain_routing.md', 'en'),\n ru: readLocale('domain_routing.md', 'ru'),\n ja: readLocale('domain_routing.md', 'ja'),\n fr: readLocale('domain_routing.md', 'fr'),\n ko: readLocale('domain_routing.md', 'ko'),\n zh: readLocale('domain_routing.md', 'zh'),\n es: readLocale('domain_routing.md', 'es'),\n de: readLocale('domain_routing.md', 'de'),\n ar: readLocale('domain_routing.md', 'ar'),\n it: readLocale('domain_routing.md', 'it'),\n 'en-GB': readLocale('domain_routing.md', 'en-GB'),\n pt: readLocale('domain_routing.md', 'pt'),\n hi: readLocale('domain_routing.md', 'hi'),\n tr: readLocale('domain_routing.md', 'tr'),\n pl: readLocale('domain_routing.md', 'pl'),\n id: readLocale('domain_routing.md', 'id'),\n vi: readLocale('domain_routing.md', 'vi'),\n uk: readLocale('domain_routing.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/error-vite-env-only.md': {\n en: readLocale('error-vite-env-only.md', 'en'),\n ru: readLocale('error-vite-env-only.md', 'ru'),\n ja: readLocale('error-vite-env-only.md', 'ja'),\n fr: readLocale('error-vite-env-only.md', 'fr'),\n ko: readLocale('error-vite-env-only.md', 'ko'),\n zh: readLocale('error-vite-env-only.md', 'zh'),\n es: readLocale('error-vite-env-only.md', 'es'),\n de: readLocale('error-vite-env-only.md', 'de'),\n ar: readLocale('error-vite-env-only.md', 'ar'),\n it: readLocale('error-vite-env-only.md', 'it'),\n 'en-GB': readLocale('error-vite-env-only.md', 'en-GB'),\n pt: readLocale('error-vite-env-only.md', 'pt'),\n hi: readLocale('error-vite-env-only.md', 'hi'),\n tr: readLocale('error-vite-env-only.md', 'tr'),\n pl: readLocale('error-vite-env-only.md', 'pl'),\n id: readLocale('error-vite-env-only.md', 'id'),\n vi: readLocale('error-vite-env-only.md', 'vi'),\n uk: readLocale('error-vite-env-only.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/esbuild_error.md': {\n en: readLocale('esbuild_error.md', 'en'),\n ru: readLocale('esbuild_error.md', 'ru'),\n ja: readLocale('esbuild_error.md', 'ja'),\n fr: readLocale('esbuild_error.md', 'fr'),\n ko: readLocale('esbuild_error.md', 'ko'),\n zh: readLocale('esbuild_error.md', 'zh'),\n es: readLocale('esbuild_error.md', 'es'),\n de: readLocale('esbuild_error.md', 'de'),\n ar: readLocale('esbuild_error.md', 'ar'),\n it: readLocale('esbuild_error.md', 'it'),\n 'en-GB': readLocale('esbuild_error.md', 'en-GB'),\n pt: readLocale('esbuild_error.md', 'pt'),\n hi: readLocale('esbuild_error.md', 'hi'),\n tr: readLocale('esbuild_error.md', 'tr'),\n pl: readLocale('esbuild_error.md', 'pl'),\n id: readLocale('esbuild_error.md', 'id'),\n vi: readLocale('esbuild_error.md', 'vi'),\n uk: readLocale('esbuild_error.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/get_locale_cookie.md': {\n en: readLocale('get_locale_cookie.md', 'en'),\n ru: readLocale('get_locale_cookie.md', 'ru'),\n ja: readLocale('get_locale_cookie.md', 'ja'),\n fr: readLocale('get_locale_cookie.md', 'fr'),\n ko: readLocale('get_locale_cookie.md', 'ko'),\n zh: readLocale('get_locale_cookie.md', 'zh'),\n es: readLocale('get_locale_cookie.md', 'es'),\n de: readLocale('get_locale_cookie.md', 'de'),\n ar: readLocale('get_locale_cookie.md', 'ar'),\n it: readLocale('get_locale_cookie.md', 'it'),\n 'en-GB': readLocale('get_locale_cookie.md', 'en-GB'),\n pt: readLocale('get_locale_cookie.md', 'pt'),\n hi: readLocale('get_locale_cookie.md', 'hi'),\n tr: readLocale('get_locale_cookie.md', 'tr'),\n pl: readLocale('get_locale_cookie.md', 'pl'),\n id: readLocale('get_locale_cookie.md', 'id'),\n vi: readLocale('get_locale_cookie.md', 'vi'),\n uk: readLocale('get_locale_cookie.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/intlayerNode.md': {\n en: readLocale('intlayerNode.md', 'en'),\n ru: readLocale('intlayerNode.md', 'ru'),\n ja: readLocale('intlayerNode.md', 'ja'),\n fr: readLocale('intlayerNode.md', 'fr'),\n ko: readLocale('intlayerNode.md', 'ko'),\n zh: readLocale('intlayerNode.md', 'zh'),\n es: readLocale('intlayerNode.md', 'es'),\n de: readLocale('intlayerNode.md', 'de'),\n ar: readLocale('intlayerNode.md', 'ar'),\n it: readLocale('intlayerNode.md', 'it'),\n 'en-GB': readLocale('intlayerNode.md', 'en-GB'),\n pt: readLocale('intlayerNode.md', 'pt'),\n hi: readLocale('intlayerNode.md', 'hi'),\n tr: readLocale('intlayerNode.md', 'tr'),\n pl: readLocale('intlayerNode.md', 'pl'),\n id: readLocale('intlayerNode.md', 'id'),\n vi: readLocale('intlayerNode.md', 'vi'),\n uk: readLocale('intlayerNode.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/intlayer_command_undefined.md': {\n en: readLocale('intlayer_command_undefined.md', 'en'),\n ru: readLocale('intlayer_command_undefined.md', 'ru'),\n ja: readLocale('intlayer_command_undefined.md', 'ja'),\n fr: readLocale('intlayer_command_undefined.md', 'fr'),\n ko: readLocale('intlayer_command_undefined.md', 'ko'),\n zh: readLocale('intlayer_command_undefined.md', 'zh'),\n es: readLocale('intlayer_command_undefined.md', 'es'),\n de: readLocale('intlayer_command_undefined.md', 'de'),\n ar: readLocale('intlayer_command_undefined.md', 'ar'),\n it: readLocale('intlayer_command_undefined.md', 'it'),\n 'en-GB': readLocale('intlayer_command_undefined.md', 'en-GB'),\n pt: readLocale('intlayer_command_undefined.md', 'pt'),\n hi: readLocale('intlayer_command_undefined.md', 'hi'),\n tr: readLocale('intlayer_command_undefined.md', 'tr'),\n pl: readLocale('intlayer_command_undefined.md', 'pl'),\n id: readLocale('intlayer_command_undefined.md', 'id'),\n vi: readLocale('intlayer_command_undefined.md', 'vi'),\n uk: readLocale('intlayer_command_undefined.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/locale_incorect_in_url.md': {\n en: readLocale('locale_incorect_in_url.md', 'en'),\n ru: readLocale('locale_incorect_in_url.md', 'ru'),\n ja: readLocale('locale_incorect_in_url.md', 'ja'),\n fr: readLocale('locale_incorect_in_url.md', 'fr'),\n ko: readLocale('locale_incorect_in_url.md', 'ko'),\n zh: readLocale('locale_incorect_in_url.md', 'zh'),\n es: readLocale('locale_incorect_in_url.md', 'es'),\n de: readLocale('locale_incorect_in_url.md', 'de'),\n ar: readLocale('locale_incorect_in_url.md', 'ar'),\n it: readLocale('locale_incorect_in_url.md', 'it'),\n 'en-GB': readLocale('locale_incorect_in_url.md', 'en-GB'),\n pt: readLocale('locale_incorect_in_url.md', 'pt'),\n hi: readLocale('locale_incorect_in_url.md', 'hi'),\n tr: readLocale('locale_incorect_in_url.md', 'tr'),\n pl: readLocale('locale_incorect_in_url.md', 'pl'),\n id: readLocale('locale_incorect_in_url.md', 'id'),\n vi: readLocale('locale_incorect_in_url.md', 'vi'),\n uk: readLocale('locale_incorect_in_url.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/package_version_error.md': {\n en: readLocale('package_version_error.md', 'en'),\n ru: readLocale('package_version_error.md', 'ru'),\n ja: readLocale('package_version_error.md', 'ja'),\n fr: readLocale('package_version_error.md', 'fr'),\n ko: readLocale('package_version_error.md', 'ko'),\n zh: readLocale('package_version_error.md', 'zh'),\n es: readLocale('package_version_error.md', 'es'),\n de: readLocale('package_version_error.md', 'de'),\n ar: readLocale('package_version_error.md', 'ar'),\n it: readLocale('package_version_error.md', 'it'),\n 'en-GB': readLocale('package_version_error.md', 'en-GB'),\n pt: readLocale('package_version_error.md', 'pt'),\n hi: readLocale('package_version_error.md', 'hi'),\n tr: readLocale('package_version_error.md', 'tr'),\n pl: readLocale('package_version_error.md', 'pl'),\n id: readLocale('package_version_error.md', 'id'),\n vi: readLocale('package_version_error.md', 'vi'),\n uk: readLocale('package_version_error.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/static_rendering.md': {\n en: readLocale('static_rendering.md', 'en'),\n ru: readLocale('static_rendering.md', 'ru'),\n ja: readLocale('static_rendering.md', 'ja'),\n fr: readLocale('static_rendering.md', 'fr'),\n ko: readLocale('static_rendering.md', 'ko'),\n zh: readLocale('static_rendering.md', 'zh'),\n es: readLocale('static_rendering.md', 'es'),\n de: readLocale('static_rendering.md', 'de'),\n ar: readLocale('static_rendering.md', 'ar'),\n it: readLocale('static_rendering.md', 'it'),\n 'en-GB': readLocale('static_rendering.md', 'en-GB'),\n pt: readLocale('static_rendering.md', 'pt'),\n hi: readLocale('static_rendering.md', 'hi'),\n tr: readLocale('static_rendering.md', 'tr'),\n pl: readLocale('static_rendering.md', 'pl'),\n id: readLocale('static_rendering.md', 'id'),\n vi: readLocale('static_rendering.md', 'vi'),\n uk: readLocale('static_rendering.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/translated_path_url.md': {\n en: readLocale('translated_path_url.md', 'en'),\n ru: readLocale('translated_path_url.md', 'ru'),\n ja: readLocale('translated_path_url.md', 'ja'),\n fr: readLocale('translated_path_url.md', 'fr'),\n ko: readLocale('translated_path_url.md', 'ko'),\n zh: readLocale('translated_path_url.md', 'zh'),\n es: readLocale('translated_path_url.md', 'es'),\n de: readLocale('translated_path_url.md', 'de'),\n ar: readLocale('translated_path_url.md', 'ar'),\n it: readLocale('translated_path_url.md', 'it'),\n 'en-GB': readLocale('translated_path_url.md', 'en-GB'),\n pt: readLocale('translated_path_url.md', 'pt'),\n hi: readLocale('translated_path_url.md', 'hi'),\n tr: readLocale('translated_path_url.md', 'tr'),\n pl: readLocale('translated_path_url.md', 'pl'),\n id: readLocale('translated_path_url.md', 'id'),\n vi: readLocale('translated_path_url.md', 'vi'),\n uk: readLocale('translated_path_url.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/unknown_command.md': {\n en: readLocale('unknown_command.md', 'en'),\n ru: readLocale('unknown_command.md', 'ru'),\n ja: readLocale('unknown_command.md', 'ja'),\n fr: readLocale('unknown_command.md', 'fr'),\n ko: readLocale('unknown_command.md', 'ko'),\n zh: readLocale('unknown_command.md', 'zh'),\n es: readLocale('unknown_command.md', 'es'),\n de: readLocale('unknown_command.md', 'de'),\n ar: readLocale('unknown_command.md', 'ar'),\n it: readLocale('unknown_command.md', 'it'),\n 'en-GB': readLocale('unknown_command.md', 'en-GB'),\n pt: readLocale('unknown_command.md', 'pt'),\n hi: readLocale('unknown_command.md', 'hi'),\n tr: readLocale('unknown_command.md', 'tr'),\n pl: readLocale('unknown_command.md', 'pl'),\n id: readLocale('unknown_command.md', 'id'),\n vi: readLocale('unknown_command.md', 'vi'),\n uk: readLocale('unknown_command.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n} as const;\n"],"mappings":";;;;;;;;AAWA,MAAM,aACJ,OAAO,cAAc,cACjB,4GACyC,CAAC;AAEhD,IAAI;AACJ,IAAI;CAIF,uGAFyC,UACP,CAAC,CAAC,QAAQ,gBACJ,CAAC,CAAC,CAAC;AAC7C,QAAQ;CACN,IAAI;EAIF,uGADkC,CAAC,CAAC,QAAQ,gBACJ,CAAC,CAAC,CAAC;CAC7C,QAAQ;EAEN,yDAA6B,UAAU,CAAC,CAAC;CAC3C;AACF;AAEA,MAAM,cACJ,qBACA,WACoB;CACpB,MAAM,8BACJ,SACA,wBAAwB,OAAO,GAAG,qBACpC;CACA,4BAAe,OAAO,GACpB,sCAAgB,SAAS,MAAM;CAEjC,MAAM,8BACJ,SACA,2BAA2B,qBAC7B;CACA,4BAAe,OAAO,GACpB,sCAAgB,SAAS,MAAM;CAGjC,OAAO,QAAQ,uBACb,IAAI,MACF,0BAA0B,oBAAoB,aAAa,OAAO,WAAW,QAAQ,WAAW,SAClG,CACF;AACF;AAEA,MAAa,yBAAyB;CACpC,mDAAmD;EACjD,IAAI,WAAW,2BAA2B,IAAI;EAC9C,IAAI,WAAW,2BAA2B,IAAI;EAC9C,IAAI,WAAW,2BAA2B,IAAI;EAC9C,IAAI,WAAW,2BAA2B,IAAI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sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,SAAS,WAAW,sBAAsB,OAAO;EACjD,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;CAC3C;AACF"}
1
+ {"version":3,"file":"frequentQuestions.entry.cjs","names":[],"sources":["../../../src/generated/frequentQuestions.entry.ts"],"sourcesContent":["/* AUTO-GENERATED – DO NOT EDIT */\n/* REGENERATE USING `pnpm prepare` */\nimport { existsSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join, dirname as pathDirname } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\n// Robustly resolve the base directory of the @intlayer/docs package in both\n// bundled environments (Next.js) and standalone CLIs (MCP via npx).\nconst currentDir =\n typeof __dirname !== 'undefined'\n ? __dirname\n : pathDirname(fileURLToPath(import.meta.url));\n\nlet baseDir: string;\ntry {\n // Prefer resolving from the location of this file (works for CLIs).\n const projectRequire = getProjectRequire(currentDir);\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n} catch {\n try {\n // Fallback: resolve from the consumer project (works for apps/bundlers).\n const projectRequire = getProjectRequire();\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n } catch {\n // Last resort: walk up from currentDir (useful when executed inside @intlayer/docs).\n baseDir = getPackageJsonPath(currentDir).baseDir;\n }\n}\n\n/**\n * Reads a document, preferring the requested locale and falling back to English.\n */\nconst readLocaleFile = async (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n const target1 = join(\n baseDir,\n `./frequent_questions/${locale}/${relativeAfterLocale}`\n );\n if (existsSync(target1)) {\n return await readFile(target1, 'utf8');\n }\n const target2 = join(\n baseDir,\n `./frequent_questions/en/${relativeAfterLocale}`\n );\n if (existsSync(target2)) {\n return await readFile(target2, 'utf8');\n }\n\n throw new Error(\n `[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`\n );\n};\n\n/**\n * Builds a lazy, awaitable handle over a document.\n *\n * The entry map below holds one handle per document *per locale*, so reading\n * eagerly would pull every markdown file of every locale into memory as soon as\n * this module is imported — hundreds of megabytes, duplicated in every\n * prerender worker, for the handful of documents a page actually renders.\n *\n * The returned value is a thenable rather than a promise: consumers only ever\n * `await` it, and `await` triggers `then`, so the file is read on first use and\n * the resulting promise is cached for subsequent reads.\n */\nconst readLocale = (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n let pendingRead: Promise<string> | undefined;\n\n const read = (): Promise<string> => {\n pendingRead ??= readLocaleFile(relativeAfterLocale, locale);\n return pendingRead;\n };\n\n return {\n // biome-ignore lint/suspicious/noThenProperty: the thenable is intentional — `await` is what triggers the lazy read.\n then: (onFulfilled, onRejected) => read().then(onFulfilled, onRejected),\n catch: (onRejected) => read().catch(onRejected),\n finally: (onFinally) => read().finally(onFinally),\n } as Promise<string>;\n};\n\nexport const frequentQuestionsEntry = {\n './frequent_questions/en/SSR_Next_no_[locale].md': {\n en: readLocale('SSR_Next_no_[locale].md', 'en'),\n es: readLocale('SSR_Next_no_[locale].md', 'es'),\n ru: readLocale('SSR_Next_no_[locale].md', 'ru'),\n ja: readLocale('SSR_Next_no_[locale].md', 'ja'),\n fr: readLocale('SSR_Next_no_[locale].md', 'fr'),\n ko: readLocale('SSR_Next_no_[locale].md', 'ko'),\n zh: readLocale('SSR_Next_no_[locale].md', 'zh'),\n de: readLocale('SSR_Next_no_[locale].md', 'de'),\n ar: readLocale('SSR_Next_no_[locale].md', 'ar'),\n it: readLocale('SSR_Next_no_[locale].md', 'it'),\n 'en-GB': readLocale('SSR_Next_no_[locale].md', 'en-GB'),\n pt: readLocale('SSR_Next_no_[locale].md', 'pt'),\n hi: readLocale('SSR_Next_no_[locale].md', 'hi'),\n tr: readLocale('SSR_Next_no_[locale].md', 'tr'),\n pl: readLocale('SSR_Next_no_[locale].md', 'pl'),\n id: readLocale('SSR_Next_no_[locale].md', 'id'),\n vi: readLocale('SSR_Next_no_[locale].md', 'vi'),\n uk: readLocale('SSR_Next_no_[locale].md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/array_as_content_declaration.md': {\n en: readLocale('array_as_content_declaration.md', 'en'),\n es: readLocale('array_as_content_declaration.md', 'es'),\n ru: readLocale('array_as_content_declaration.md', 'ru'),\n ja: readLocale('array_as_content_declaration.md', 'ja'),\n fr: readLocale('array_as_content_declaration.md', 'fr'),\n ko: readLocale('array_as_content_declaration.md', 'ko'),\n zh: readLocale('array_as_content_declaration.md', 'zh'),\n de: readLocale('array_as_content_declaration.md', 'de'),\n ar: readLocale('array_as_content_declaration.md', 'ar'),\n it: readLocale('array_as_content_declaration.md', 'it'),\n 'en-GB': readLocale('array_as_content_declaration.md', 'en-GB'),\n pt: readLocale('array_as_content_declaration.md', 'pt'),\n hi: readLocale('array_as_content_declaration.md', 'hi'),\n tr: readLocale('array_as_content_declaration.md', 'tr'),\n pl: readLocale('array_as_content_declaration.md', 'pl'),\n id: readLocale('array_as_content_declaration.md', 'id'),\n vi: readLocale('array_as_content_declaration.md', 'vi'),\n uk: readLocale('array_as_content_declaration.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/build_dictionaries.md': {\n en: readLocale('build_dictionaries.md', 'en'),\n es: readLocale('build_dictionaries.md', 'es'),\n ru: readLocale('build_dictionaries.md', 'ru'),\n ja: readLocale('build_dictionaries.md', 'ja'),\n fr: readLocale('build_dictionaries.md', 'fr'),\n ko: readLocale('build_dictionaries.md', 'ko'),\n zh: readLocale('build_dictionaries.md', 'zh'),\n de: readLocale('build_dictionaries.md', 'de'),\n ar: readLocale('build_dictionaries.md', 'ar'),\n it: readLocale('build_dictionaries.md', 'it'),\n 'en-GB': readLocale('build_dictionaries.md', 'en-GB'),\n pt: readLocale('build_dictionaries.md', 'pt'),\n hi: readLocale('build_dictionaries.md', 'hi'),\n tr: readLocale('build_dictionaries.md', 'tr'),\n pl: readLocale('build_dictionaries.md', 'pl'),\n id: readLocale('build_dictionaries.md', 'id'),\n vi: readLocale('build_dictionaries.md', 'vi'),\n uk: readLocale('build_dictionaries.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/build_error_CI_CD.md': {\n en: readLocale('build_error_CI_CD.md', 'en'),\n es: readLocale('build_error_CI_CD.md', 'es'),\n ru: readLocale('build_error_CI_CD.md', 'ru'),\n ja: readLocale('build_error_CI_CD.md', 'ja'),\n fr: readLocale('build_error_CI_CD.md', 'fr'),\n ko: readLocale('build_error_CI_CD.md', 'ko'),\n zh: readLocale('build_error_CI_CD.md', 'zh'),\n de: readLocale('build_error_CI_CD.md', 'de'),\n ar: readLocale('build_error_CI_CD.md', 'ar'),\n it: readLocale('build_error_CI_CD.md', 'it'),\n 'en-GB': readLocale('build_error_CI_CD.md', 'en-GB'),\n pt: readLocale('build_error_CI_CD.md', 'pt'),\n hi: readLocale('build_error_CI_CD.md', 'hi'),\n tr: readLocale('build_error_CI_CD.md', 'tr'),\n pl: readLocale('build_error_CI_CD.md', 'pl'),\n id: readLocale('build_error_CI_CD.md', 'id'),\n vi: readLocale('build_error_CI_CD.md', 'vi'),\n uk: readLocale('build_error_CI_CD.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/bun_set_up.md': {\n en: readLocale('bun_set_up.md', 'en'),\n es: readLocale('bun_set_up.md', 'es'),\n ru: readLocale('bun_set_up.md', 'ru'),\n ja: readLocale('bun_set_up.md', 'ja'),\n fr: readLocale('bun_set_up.md', 'fr'),\n ko: readLocale('bun_set_up.md', 'ko'),\n zh: readLocale('bun_set_up.md', 'zh'),\n de: readLocale('bun_set_up.md', 'de'),\n ar: readLocale('bun_set_up.md', 'ar'),\n it: readLocale('bun_set_up.md', 'it'),\n 'en-GB': readLocale('bun_set_up.md', 'en-GB'),\n pt: readLocale('bun_set_up.md', 'pt'),\n hi: readLocale('bun_set_up.md', 'hi'),\n tr: readLocale('bun_set_up.md', 'tr'),\n pl: readLocale('bun_set_up.md', 'pl'),\n id: readLocale('bun_set_up.md', 'id'),\n vi: readLocale('bun_set_up.md', 'vi'),\n uk: readLocale('bun_set_up.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/customized_locale_list.md': {\n en: readLocale('customized_locale_list.md', 'en'),\n es: readLocale('customized_locale_list.md', 'es'),\n ru: readLocale('customized_locale_list.md', 'ru'),\n ja: readLocale('customized_locale_list.md', 'ja'),\n fr: readLocale('customized_locale_list.md', 'fr'),\n ko: readLocale('customized_locale_list.md', 'ko'),\n zh: readLocale('customized_locale_list.md', 'zh'),\n de: readLocale('customized_locale_list.md', 'de'),\n ar: readLocale('customized_locale_list.md', 'ar'),\n it: readLocale('customized_locale_list.md', 'it'),\n 'en-GB': readLocale('customized_locale_list.md', 'en-GB'),\n pt: readLocale('customized_locale_list.md', 'pt'),\n hi: readLocale('customized_locale_list.md', 'hi'),\n tr: readLocale('customized_locale_list.md', 'tr'),\n pl: readLocale('customized_locale_list.md', 'pl'),\n id: readLocale('customized_locale_list.md', 'id'),\n vi: readLocale('customized_locale_list.md', 'vi'),\n uk: readLocale('customized_locale_list.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/domain_routing.md': {\n en: readLocale('domain_routing.md', 'en'),\n es: readLocale('domain_routing.md', 'es'),\n ru: readLocale('domain_routing.md', 'ru'),\n ja: readLocale('domain_routing.md', 'ja'),\n fr: readLocale('domain_routing.md', 'fr'),\n ko: readLocale('domain_routing.md', 'ko'),\n zh: readLocale('domain_routing.md', 'zh'),\n de: readLocale('domain_routing.md', 'de'),\n ar: readLocale('domain_routing.md', 'ar'),\n it: readLocale('domain_routing.md', 'it'),\n 'en-GB': readLocale('domain_routing.md', 'en-GB'),\n pt: readLocale('domain_routing.md', 'pt'),\n hi: readLocale('domain_routing.md', 'hi'),\n tr: readLocale('domain_routing.md', 'tr'),\n pl: readLocale('domain_routing.md', 'pl'),\n id: readLocale('domain_routing.md', 'id'),\n vi: readLocale('domain_routing.md', 'vi'),\n uk: readLocale('domain_routing.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/error-vite-env-only.md': {\n en: readLocale('error-vite-env-only.md', 'en'),\n es: readLocale('error-vite-env-only.md', 'es'),\n ru: readLocale('error-vite-env-only.md', 'ru'),\n ja: readLocale('error-vite-env-only.md', 'ja'),\n fr: readLocale('error-vite-env-only.md', 'fr'),\n ko: readLocale('error-vite-env-only.md', 'ko'),\n zh: readLocale('error-vite-env-only.md', 'zh'),\n de: readLocale('error-vite-env-only.md', 'de'),\n ar: readLocale('error-vite-env-only.md', 'ar'),\n it: readLocale('error-vite-env-only.md', 'it'),\n 'en-GB': readLocale('error-vite-env-only.md', 'en-GB'),\n pt: readLocale('error-vite-env-only.md', 'pt'),\n hi: readLocale('error-vite-env-only.md', 'hi'),\n tr: readLocale('error-vite-env-only.md', 'tr'),\n pl: readLocale('error-vite-env-only.md', 'pl'),\n id: readLocale('error-vite-env-only.md', 'id'),\n vi: readLocale('error-vite-env-only.md', 'vi'),\n uk: readLocale('error-vite-env-only.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/esbuild_error.md': {\n en: readLocale('esbuild_error.md', 'en'),\n es: readLocale('esbuild_error.md', 'es'),\n ru: readLocale('esbuild_error.md', 'ru'),\n ja: readLocale('esbuild_error.md', 'ja'),\n fr: readLocale('esbuild_error.md', 'fr'),\n ko: readLocale('esbuild_error.md', 'ko'),\n zh: readLocale('esbuild_error.md', 'zh'),\n de: readLocale('esbuild_error.md', 'de'),\n ar: readLocale('esbuild_error.md', 'ar'),\n it: readLocale('esbuild_error.md', 'it'),\n 'en-GB': readLocale('esbuild_error.md', 'en-GB'),\n pt: readLocale('esbuild_error.md', 'pt'),\n hi: readLocale('esbuild_error.md', 'hi'),\n tr: readLocale('esbuild_error.md', 'tr'),\n pl: readLocale('esbuild_error.md', 'pl'),\n id: readLocale('esbuild_error.md', 'id'),\n vi: readLocale('esbuild_error.md', 'vi'),\n uk: readLocale('esbuild_error.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/get_locale_cookie.md': {\n en: readLocale('get_locale_cookie.md', 'en'),\n es: readLocale('get_locale_cookie.md', 'es'),\n ru: readLocale('get_locale_cookie.md', 'ru'),\n ja: readLocale('get_locale_cookie.md', 'ja'),\n fr: readLocale('get_locale_cookie.md', 'fr'),\n ko: readLocale('get_locale_cookie.md', 'ko'),\n zh: readLocale('get_locale_cookie.md', 'zh'),\n de: readLocale('get_locale_cookie.md', 'de'),\n ar: readLocale('get_locale_cookie.md', 'ar'),\n it: readLocale('get_locale_cookie.md', 'it'),\n 'en-GB': readLocale('get_locale_cookie.md', 'en-GB'),\n pt: readLocale('get_locale_cookie.md', 'pt'),\n hi: readLocale('get_locale_cookie.md', 'hi'),\n tr: readLocale('get_locale_cookie.md', 'tr'),\n pl: readLocale('get_locale_cookie.md', 'pl'),\n id: readLocale('get_locale_cookie.md', 'id'),\n vi: readLocale('get_locale_cookie.md', 'vi'),\n uk: readLocale('get_locale_cookie.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/intlayerNode.md': {\n en: readLocale('intlayerNode.md', 'en'),\n es: readLocale('intlayerNode.md', 'es'),\n ru: readLocale('intlayerNode.md', 'ru'),\n ja: readLocale('intlayerNode.md', 'ja'),\n fr: readLocale('intlayerNode.md', 'fr'),\n ko: readLocale('intlayerNode.md', 'ko'),\n zh: readLocale('intlayerNode.md', 'zh'),\n de: readLocale('intlayerNode.md', 'de'),\n ar: readLocale('intlayerNode.md', 'ar'),\n it: readLocale('intlayerNode.md', 'it'),\n 'en-GB': readLocale('intlayerNode.md', 'en-GB'),\n pt: readLocale('intlayerNode.md', 'pt'),\n hi: readLocale('intlayerNode.md', 'hi'),\n tr: readLocale('intlayerNode.md', 'tr'),\n pl: readLocale('intlayerNode.md', 'pl'),\n id: readLocale('intlayerNode.md', 'id'),\n vi: readLocale('intlayerNode.md', 'vi'),\n uk: readLocale('intlayerNode.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/intlayer_command_undefined.md': {\n en: readLocale('intlayer_command_undefined.md', 'en'),\n es: readLocale('intlayer_command_undefined.md', 'es'),\n ru: readLocale('intlayer_command_undefined.md', 'ru'),\n ja: readLocale('intlayer_command_undefined.md', 'ja'),\n fr: readLocale('intlayer_command_undefined.md', 'fr'),\n ko: readLocale('intlayer_command_undefined.md', 'ko'),\n zh: readLocale('intlayer_command_undefined.md', 'zh'),\n de: readLocale('intlayer_command_undefined.md', 'de'),\n ar: readLocale('intlayer_command_undefined.md', 'ar'),\n it: readLocale('intlayer_command_undefined.md', 'it'),\n 'en-GB': readLocale('intlayer_command_undefined.md', 'en-GB'),\n pt: readLocale('intlayer_command_undefined.md', 'pt'),\n hi: readLocale('intlayer_command_undefined.md', 'hi'),\n tr: readLocale('intlayer_command_undefined.md', 'tr'),\n pl: readLocale('intlayer_command_undefined.md', 'pl'),\n id: readLocale('intlayer_command_undefined.md', 'id'),\n vi: readLocale('intlayer_command_undefined.md', 'vi'),\n uk: readLocale('intlayer_command_undefined.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/locale_incorect_in_url.md': {\n en: readLocale('locale_incorect_in_url.md', 'en'),\n es: readLocale('locale_incorect_in_url.md', 'es'),\n ru: readLocale('locale_incorect_in_url.md', 'ru'),\n ja: readLocale('locale_incorect_in_url.md', 'ja'),\n fr: readLocale('locale_incorect_in_url.md', 'fr'),\n ko: readLocale('locale_incorect_in_url.md', 'ko'),\n zh: readLocale('locale_incorect_in_url.md', 'zh'),\n de: readLocale('locale_incorect_in_url.md', 'de'),\n ar: readLocale('locale_incorect_in_url.md', 'ar'),\n it: readLocale('locale_incorect_in_url.md', 'it'),\n 'en-GB': readLocale('locale_incorect_in_url.md', 'en-GB'),\n pt: readLocale('locale_incorect_in_url.md', 'pt'),\n hi: readLocale('locale_incorect_in_url.md', 'hi'),\n tr: readLocale('locale_incorect_in_url.md', 'tr'),\n pl: readLocale('locale_incorect_in_url.md', 'pl'),\n id: readLocale('locale_incorect_in_url.md', 'id'),\n vi: readLocale('locale_incorect_in_url.md', 'vi'),\n uk: readLocale('locale_incorect_in_url.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/package_version_error.md': {\n en: readLocale('package_version_error.md', 'en'),\n es: readLocale('package_version_error.md', 'es'),\n ru: readLocale('package_version_error.md', 'ru'),\n ja: readLocale('package_version_error.md', 'ja'),\n fr: readLocale('package_version_error.md', 'fr'),\n ko: readLocale('package_version_error.md', 'ko'),\n zh: readLocale('package_version_error.md', 'zh'),\n de: readLocale('package_version_error.md', 'de'),\n ar: readLocale('package_version_error.md', 'ar'),\n it: readLocale('package_version_error.md', 'it'),\n 'en-GB': readLocale('package_version_error.md', 'en-GB'),\n pt: readLocale('package_version_error.md', 'pt'),\n hi: readLocale('package_version_error.md', 'hi'),\n tr: readLocale('package_version_error.md', 'tr'),\n pl: readLocale('package_version_error.md', 'pl'),\n id: readLocale('package_version_error.md', 'id'),\n vi: readLocale('package_version_error.md', 'vi'),\n uk: readLocale('package_version_error.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/static_rendering.md': {\n en: readLocale('static_rendering.md', 'en'),\n es: readLocale('static_rendering.md', 'es'),\n ru: readLocale('static_rendering.md', 'ru'),\n ja: readLocale('static_rendering.md', 'ja'),\n fr: readLocale('static_rendering.md', 'fr'),\n ko: readLocale('static_rendering.md', 'ko'),\n zh: readLocale('static_rendering.md', 'zh'),\n de: readLocale('static_rendering.md', 'de'),\n ar: readLocale('static_rendering.md', 'ar'),\n it: readLocale('static_rendering.md', 'it'),\n 'en-GB': readLocale('static_rendering.md', 'en-GB'),\n pt: readLocale('static_rendering.md', 'pt'),\n hi: readLocale('static_rendering.md', 'hi'),\n tr: readLocale('static_rendering.md', 'tr'),\n pl: readLocale('static_rendering.md', 'pl'),\n id: readLocale('static_rendering.md', 'id'),\n vi: readLocale('static_rendering.md', 'vi'),\n uk: readLocale('static_rendering.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/translated_path_url.md': {\n en: readLocale('translated_path_url.md', 'en'),\n es: readLocale('translated_path_url.md', 'es'),\n ru: readLocale('translated_path_url.md', 'ru'),\n ja: readLocale('translated_path_url.md', 'ja'),\n fr: readLocale('translated_path_url.md', 'fr'),\n ko: readLocale('translated_path_url.md', 'ko'),\n zh: readLocale('translated_path_url.md', 'zh'),\n de: readLocale('translated_path_url.md', 'de'),\n ar: readLocale('translated_path_url.md', 'ar'),\n it: readLocale('translated_path_url.md', 'it'),\n 'en-GB': readLocale('translated_path_url.md', 'en-GB'),\n pt: readLocale('translated_path_url.md', 'pt'),\n hi: readLocale('translated_path_url.md', 'hi'),\n tr: readLocale('translated_path_url.md', 'tr'),\n pl: readLocale('translated_path_url.md', 'pl'),\n id: readLocale('translated_path_url.md', 'id'),\n vi: readLocale('translated_path_url.md', 'vi'),\n uk: readLocale('translated_path_url.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/unknown_command.md': {\n en: readLocale('unknown_command.md', 'en'),\n es: readLocale('unknown_command.md', 'es'),\n ru: readLocale('unknown_command.md', 'ru'),\n ja: readLocale('unknown_command.md', 'ja'),\n fr: readLocale('unknown_command.md', 'fr'),\n ko: readLocale('unknown_command.md', 'ko'),\n zh: readLocale('unknown_command.md', 'zh'),\n de: readLocale('unknown_command.md', 'de'),\n ar: readLocale('unknown_command.md', 'ar'),\n it: readLocale('unknown_command.md', 'it'),\n 'en-GB': readLocale('unknown_command.md', 'en-GB'),\n pt: readLocale('unknown_command.md', 'pt'),\n hi: readLocale('unknown_command.md', 'hi'),\n tr: readLocale('unknown_command.md', 'tr'),\n pl: readLocale('unknown_command.md', 'pl'),\n id: readLocale('unknown_command.md', 'id'),\n vi: readLocale('unknown_command.md', 'vi'),\n uk: readLocale('unknown_command.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n} as const;\n"],"mappings":";;;;;;;;AAWA,MAAM,aACJ,OAAO,cAAc,cACjB,4GACyC,CAAC;AAEhD,IAAI;AACJ,IAAI;CAIF,uGAFyC,UACP,CAAC,CAAC,QAAQ,gBACJ,CAAC,CAAC,CAAC;AAC7C,QAAQ;CACN,IAAI;EAIF,uGADkC,CAAC,CAAC,QAAQ,gBACJ,CAAC,CAAC,CAAC;CAC7C,QAAQ;EAEN,yDAA6B,UAAU,CAAC,CAAC;CAC3C;AACF;;;;AAKA,MAAM,iBAAiB,OACrB,qBACA,WACoB;CACpB,MAAM,8BACJ,SACA,wBAAwB,OAAO,GAAG,qBACpC;CACA,4BAAe,OAAO,GACpB,OAAO,qCAAe,SAAS,MAAM;CAEvC,MAAM,8BACJ,SACA,2BAA2B,qBAC7B;CACA,4BAAe,OAAO,GACpB,OAAO,qCAAe,SAAS,MAAM;CAGvC,MAAM,IAAI,MACR,0BAA0B,oBAAoB,aAAa,OAAO,WAAW,QAAQ,WAAW,SAClG;AACF;;;;;;;;;;;;;AAcA,MAAM,cACJ,qBACA,WACoB;CACpB,IAAI;CAEJ,MAAM,aAA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O;EACrD,IAAI,WAAW,0BAA0B,IAAI;EAC7C,IAAI,WAAW,0BAA0B,IAAI;EAC7C,IAAI,WAAW,0BAA0B,IAAI;EAC7C,IAAI,WAAW,0BAA0B,IAAI;EAC7C,IAAI,WAAW,0BAA0B,IAAI;EAC7C,IAAI,WAAW,0BAA0B,IAAI;EAC7C,IAAI,WAAW,0BAA0B,IAAI;CAC/C;CACA,8CAA8C;EAC5C,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,SAAS,WAAW,sBAAsB,OAAO;EACjD,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;CAC3C;AACF"}
@@ -17,22 +17,49 @@ try {
17
17
  baseDir = (0, _intlayer_config_utils.getPackageJsonPath)(currentDir).baseDir;
18
18
  }
19
19
  }
20
- const readLocale = (relativeAfterLocale, locale) => {
20
+ /**
21
+ * Reads a document, preferring the requested locale and falling back to English.
22
+ */
23
+ const readLocaleFile = async (relativeAfterLocale, locale) => {
21
24
  const target1 = (0, node_path.join)(baseDir, `./legal/${locale}/${relativeAfterLocale}`);
22
- if ((0, node_fs.existsSync)(target1)) return (0, node_fs_promises.readFile)(target1, "utf8");
25
+ if ((0, node_fs.existsSync)(target1)) return await (0, node_fs_promises.readFile)(target1, "utf8");
23
26
  const target2 = (0, node_path.join)(baseDir, `./legal/en/${relativeAfterLocale}`);
24
- if ((0, node_fs.existsSync)(target2)) return (0, node_fs_promises.readFile)(target2, "utf8");
25
- return Promise.reject(/* @__PURE__ */ new Error(`[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`));
27
+ if ((0, node_fs.existsSync)(target2)) return await (0, node_fs_promises.readFile)(target2, "utf8");
28
+ throw new Error(`[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`);
29
+ };
30
+ /**
31
+ * Builds a lazy, awaitable handle over a document.
32
+ *
33
+ * The entry map below holds one handle per document *per locale*, so reading
34
+ * eagerly would pull every markdown file of every locale into memory as soon as
35
+ * this module is imported — hundreds of megabytes, duplicated in every
36
+ * prerender worker, for the handful of documents a page actually renders.
37
+ *
38
+ * The returned value is a thenable rather than a promise: consumers only ever
39
+ * `await` it, and `await` triggers `then`, so the file is read on first use and
40
+ * the resulting promise is cached for subsequent reads.
41
+ */
42
+ const readLocale = (relativeAfterLocale, locale) => {
43
+ let pendingRead;
44
+ const read = () => {
45
+ pendingRead ??= readLocaleFile(relativeAfterLocale, locale);
46
+ return pendingRead;
47
+ };
48
+ return {
49
+ then: (onFulfilled, onRejected) => read().then(onFulfilled, onRejected),
50
+ catch: (onRejected) => read().catch(onRejected),
51
+ finally: (onFinally) => read().finally(onFinally)
52
+ };
26
53
  };
27
54
  const legalEntry = {
28
55
  "./legal/en/privacy_notice.md": {
29
56
  en: readLocale("privacy_notice.md", "en"),
57
+ es: readLocale("privacy_notice.md", "es"),
30
58
  ru: readLocale("privacy_notice.md", "ru"),
31
59
  ja: readLocale("privacy_notice.md", "ja"),
32
60
  fr: readLocale("privacy_notice.md", "fr"),
33
61
  ko: readLocale("privacy_notice.md", "ko"),
34
62
  zh: readLocale("privacy_notice.md", "zh"),
35
- es: readLocale("privacy_notice.md", "es"),
36
63
  de: readLocale("privacy_notice.md", "de"),
37
64
  ar: readLocale("privacy_notice.md", "ar"),
38
65
  it: readLocale("privacy_notice.md", "it"),
@@ -47,12 +74,12 @@ const legalEntry = {
47
74
  },
48
75
  "./legal/en/terms_of_service.md": {
49
76
  en: readLocale("terms_of_service.md", "en"),
77
+ es: readLocale("terms_of_service.md", "es"),
50
78
  ru: readLocale("terms_of_service.md", "ru"),
51
79
  ja: readLocale("terms_of_service.md", "ja"),
52
80
  fr: readLocale("terms_of_service.md", "fr"),
53
81
  ko: readLocale("terms_of_service.md", "ko"),
54
82
  zh: readLocale("terms_of_service.md", "zh"),
55
- es: readLocale("terms_of_service.md", "es"),
56
83
  de: readLocale("terms_of_service.md", "de"),
57
84
  ar: readLocale("terms_of_service.md", "ar"),
58
85
  it: readLocale("terms_of_service.md", "it"),
@@ -1 +1 @@
1
- {"version":3,"file":"legal.entry.cjs","names":[],"sources":["../../../src/generated/legal.entry.ts"],"sourcesContent":["/* AUTO-GENERATED – DO NOT EDIT */\n/* REGENERATE USING `pnpm prepare` */\nimport { existsSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join, dirname as pathDirname } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\n// Robustly resolve the base directory of the @intlayer/docs package in both\n// bundled environments (Next.js) and standalone CLIs (MCP via npx).\nconst currentDir =\n typeof __dirname !== 'undefined'\n ? __dirname\n : pathDirname(fileURLToPath(import.meta.url));\n\nlet baseDir: string;\ntry {\n // Prefer resolving from the location of this file (works for CLIs).\n const projectRequire = getProjectRequire(currentDir);\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n} catch {\n try {\n // Fallback: resolve from the consumer project (works for apps/bundlers).\n const projectRequire = getProjectRequire();\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n } catch {\n // Last resort: walk up from currentDir (useful when executed inside @intlayer/docs).\n baseDir = getPackageJsonPath(currentDir).baseDir;\n }\n}\n\nconst readLocale = (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n const target1 = join(baseDir, `./legal/${locale}/${relativeAfterLocale}`);\n if (existsSync(target1)) {\n return readFile(target1, 'utf8');\n }\n const target2 = join(baseDir, `./legal/en/${relativeAfterLocale}`);\n if (existsSync(target2)) {\n return readFile(target2, 'utf8');\n }\n\n return Promise.reject(\n new Error(\n `[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`\n )\n );\n};\n\nexport const legalEntry = {\n './legal/en/privacy_notice.md': {\n en: readLocale('privacy_notice.md', 'en'),\n ru: readLocale('privacy_notice.md', 'ru'),\n ja: readLocale('privacy_notice.md', 'ja'),\n fr: readLocale('privacy_notice.md', 'fr'),\n ko: readLocale('privacy_notice.md', 'ko'),\n zh: readLocale('privacy_notice.md', 'zh'),\n es: readLocale('privacy_notice.md', 'es'),\n de: readLocale('privacy_notice.md', 'de'),\n ar: readLocale('privacy_notice.md', 'ar'),\n it: readLocale('privacy_notice.md', 'it'),\n 'en-GB': readLocale('privacy_notice.md', 'en-GB'),\n pt: readLocale('privacy_notice.md', 'pt'),\n hi: readLocale('privacy_notice.md', 'hi'),\n tr: readLocale('privacy_notice.md', 'tr'),\n pl: readLocale('privacy_notice.md', 'pl'),\n id: readLocale('privacy_notice.md', 'id'),\n vi: readLocale('privacy_notice.md', 'vi'),\n uk: readLocale('privacy_notice.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './legal/en/terms_of_service.md': {\n en: readLocale('terms_of_service.md', 'en'),\n ru: readLocale('terms_of_service.md', 'ru'),\n ja: readLocale('terms_of_service.md', 'ja'),\n fr: readLocale('terms_of_service.md', 'fr'),\n ko: readLocale('terms_of_service.md', 'ko'),\n zh: readLocale('terms_of_service.md', 'zh'),\n es: readLocale('terms_of_service.md', 'es'),\n de: readLocale('terms_of_service.md', 'de'),\n ar: readLocale('terms_of_service.md', 'ar'),\n it: readLocale('terms_of_service.md', 'it'),\n 'en-GB': readLocale('terms_of_service.md', 'en-GB'),\n pt: readLocale('terms_of_service.md', 'pt'),\n hi: readLocale('terms_of_service.md', 'hi'),\n tr: readLocale('terms_of_service.md', 'tr'),\n pl: readLocale('terms_of_service.md', 'pl'),\n id: readLocale('terms_of_service.md', 'id'),\n vi: readLocale('terms_of_service.md', 'vi'),\n uk: readLocale('terms_of_service.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n} as const;\n"],"mappings":";;;;;;;;AAWA,MAAM,aACJ,OAAO,cAAc,cACjB,4GACyC,CAAC;AAEhD,IAAI;AACJ,IAAI;CAIF,uGAFyC,UACP,CAAC,CAAC,QAAQ,gBACJ,CAAC,CAAC,CAAC;AAC7C,QAAQ;CACN,IAAI;EAIF,uGADkC,CAAC,CAAC,QAAQ,gBACJ,CAAC,CAAC,CAAC;CAC7C,QAAQ;EAEN,yDAA6B,UAAU,CAAC,CAAC;CAC3C;AACF;AAEA,MAAM,cACJ,qBACA,WACoB;CACpB,MAAM,8BAAe,SAAS,WAAW,OAAO,GAAG,qBAAqB;CACxE,4BAAe,OAAO,GACpB,sCAAgB,SAAS,MAAM;CAEjC,MAAM,8BAAe,SAAS,cAAc,qBAAqB;CACjE,4BAAe,OAAO,GACpB,sCAAgB,SAAS,MAAM;CAGjC,OAAO,QAAQ,uBACb,IAAI,MACF,0BAA0B,oBAAoB,aAAa,OAAO,WAAW,QAAQ,WAAW,SAClG,CACF;AACF;AAEA,MAAa,aAAa;CACxB,gCAAgC;EAC9B,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,SAAS,WAAW,qBAAqB,OAAO;EAChD,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;EACxC,IAAI,WAAW,qBAAqB,IAAI;CAC1C;CACA,kCAAkC;EAChC,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,SAAS,WAAW,uBAAuB,OAAO;EAClD,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;EAC1C,IAAI,WAAW,uBAAuB,IAAI;CAC5C;AACF"}
1
+ {"version":3,"file":"legal.entry.cjs","names":[],"sources":["../../../src/generated/legal.entry.ts"],"sourcesContent":["/* AUTO-GENERATED – DO NOT EDIT */\n/* REGENERATE USING `pnpm prepare` */\nimport { existsSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join, dirname as pathDirname } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\n// Robustly resolve the base directory of the @intlayer/docs package in both\n// bundled environments (Next.js) and standalone CLIs (MCP via npx).\nconst currentDir =\n typeof __dirname !== 'undefined'\n ? __dirname\n : pathDirname(fileURLToPath(import.meta.url));\n\nlet baseDir: string;\ntry {\n // Prefer resolving from the location of this file (works for CLIs).\n const projectRequire = getProjectRequire(currentDir);\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n} catch {\n try {\n // Fallback: resolve from the consumer project (works for apps/bundlers).\n const projectRequire = getProjectRequire();\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n } catch {\n // Last resort: walk up from currentDir (useful when executed inside @intlayer/docs).\n baseDir = getPackageJsonPath(currentDir).baseDir;\n }\n}\n\n/**\n * Reads a document, preferring the requested locale and falling back to English.\n */\nconst readLocaleFile = async (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n const target1 = join(baseDir, `./legal/${locale}/${relativeAfterLocale}`);\n if (existsSync(target1)) {\n return await readFile(target1, 'utf8');\n }\n const target2 = join(baseDir, `./legal/en/${relativeAfterLocale}`);\n if (existsSync(target2)) {\n return await readFile(target2, 'utf8');\n }\n\n throw new Error(\n `[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`\n );\n};\n\n/**\n * Builds a lazy, awaitable handle over a document.\n *\n * The entry map below holds one handle per document *per locale*, so reading\n * eagerly would pull every markdown file of every locale into memory as soon as\n * this module is imported — hundreds of megabytes, duplicated in every\n * prerender worker, for the handful of documents a page actually renders.\n *\n * The returned value is a thenable rather than a promise: consumers only ever\n * `await` it, and `await` triggers `then`, so the file is read on first use and\n * the resulting promise is cached for subsequent reads.\n */\nconst readLocale = (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n let pendingRead: Promise<string> | undefined;\n\n const read = (): Promise<string> => {\n pendingRead ??= readLocaleFile(relativeAfterLocale, locale);\n return pendingRead;\n };\n\n return {\n // biome-ignore lint/suspicious/noThenProperty: the thenable is intentional — `await` is what triggers the lazy read.\n then: (onFulfilled, onRejected) => read().then(onFulfilled, onRejected),\n catch: (onRejected) => read().catch(onRejected),\n finally: (onFinally) => read().finally(onFinally),\n } as Promise<string>;\n};\n\nexport const legalEntry = {\n './legal/en/privacy_notice.md': {\n en: readLocale('privacy_notice.md', 'en'),\n es: readLocale('privacy_notice.md', 'es'),\n ru: readLocale('privacy_notice.md', 'ru'),\n ja: readLocale('privacy_notice.md', 'ja'),\n fr: readLocale('privacy_notice.md', 'fr'),\n ko: readLocale('privacy_notice.md', 'ko'),\n zh: readLocale('privacy_notice.md', 'zh'),\n de: readLocale('privacy_notice.md', 'de'),\n ar: readLocale('privacy_notice.md', 'ar'),\n it: readLocale('privacy_notice.md', 'it'),\n 'en-GB': readLocale('privacy_notice.md', 'en-GB'),\n pt: readLocale('privacy_notice.md', 'pt'),\n hi: readLocale('privacy_notice.md', 'hi'),\n tr: readLocale('privacy_notice.md', 'tr'),\n pl: readLocale('privacy_notice.md', 'pl'),\n id: readLocale('privacy_notice.md', 'id'),\n vi: readLocale('privacy_notice.md', 'vi'),\n uk: readLocale('privacy_notice.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './legal/en/terms_of_service.md': {\n en: readLocale('terms_of_service.md', 'en'),\n es: readLocale('terms_of_service.md', 'es'),\n ru: readLocale('terms_of_service.md', 'ru'),\n ja: readLocale('terms_of_service.md', 'ja'),\n fr: readLocale('terms_of_service.md', 'fr'),\n ko: readLocale('terms_of_service.md', 'ko'),\n zh: readLocale('terms_of_service.md', 'zh'),\n de: readLocale('terms_of_service.md', 'de'),\n ar: readLocale('terms_of_service.md', 'ar'),\n it: readLocale('terms_of_service.md', 'it'),\n 'en-GB': readLocale('terms_of_service.md', 'en-GB'),\n pt: readLocale('terms_of_service.md', 'pt'),\n hi: readLocale('terms_of_service.md', 'hi'),\n tr: readLocale('terms_of_service.md', 'tr'),\n pl: readLocale('terms_of_service.md', 'pl'),\n id: readLocale('terms_of_service.md', 'id'),\n vi: readLocale('terms_of_service.md', 'vi'),\n uk: readLocale('terms_of_service.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n} as const;\n"],"mappings":";;;;;;;;AAWA,MAAM,aACJ,OAAO,cAAc,cACjB,4GACyC,CAAC;AAEhD,IAAI;AACJ,IAAI;CAIF,uGAFyC,UACP,CAAC,CAAC,QAAQ,gBACJ,CAAC,CAAC,CAAC;AAC7C,QAAQ;CACN,IAAI;EAIF,uGADkC,CAAC,CAAC,QAAQ,gBACJ,CAAC,CAAC,CAAC;CAC7C,QAAQ;EAEN,yDAA6B,UAAU,CAAC,CAAC;CAC3C;AACF;;;;AAKA,MAAM,iBAAiB,OACrB,qBACA,WACoB;CACpB,MAAM,8BAAe,SAAS,WAAW,OAAO,GAAG,qBAAqB;CACxE,4BAAe,OAAO,GACpB,OAAO,qCAAe,SAAS,MAAM;CAEvC,MAAM,8BAAe,SAAS,cAAc,qBAAqB;CACjE,4BAAe,OAAO,GACpB,OAAO,qCAAe,SAAS,MAAM;CAGvC,MAAM,IAAI,MACR,0BAA0B,oBAAoB,aAAa,OAAO,WAAW,QAAQ,WAAW,SAClG;AACF;;;;;;;;;;;;;AAcA,MAAM,cACJ,qBACA,WACoB;CACpB,IAAI;CAEJ,MAAM,aAA8B;EAClC,gBAAgB,eAAe,qBAAqB,MAAM;EAC1D,OAAO;CACT;CAEA,OAAO;EAEL,OAAO,aAAa,eAAe,KAAK,CAAC,CAAC,KAAK,aAAa,UAAU;EACtE,QAAQ,eAAe,KAAK,CAAC,CAAC,MAAM,UAAU;EAC9C,UAAU,cAAc,KAAK,CAAC,CAAC,QAAQ,SAAS;CAClD;AACF;AAEA,MAAa,aAAa;CACxB,gCAAgC;EAC9B,IAAI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const getFileMetadata = async (files, docKey, locale = defaultLocale) => {
45
45
  const file = await getFile(files, docKey, locale);
46
46
  return formatMetadata(docKey, file, locale);
47
47
  };
48
- const getFileMetadataRecord = async (files, locale = defaultLocale) => {
48
+ /**
49
+ * Per-locale metadata records, keyed by the entry map they were built from.
50
+ *
51
+ * Building a record parses the frontmatter of every document of a category, and
52
+ * callers such as {@link getFileMetadataBySlug} need the whole record just to
53
+ * resolve a single slug — which a static site generator repeats for every page
54
+ * it renders. Documents are read once per process anyway (each entry caches its
55
+ * own read), so the derived metadata is equally safe to keep.
56
+ */
57
+ const fileMetadataRecordCache = /* @__PURE__ */ new WeakMap();
58
+ const buildFileMetadataRecord = async (files, locale) => {
49
59
  const filesEntries = (await Promise.allSettled(Object.entries(files).map(async ([key]) => {
50
60
  return [key, await getFileMetadata(files, key, locale)];
51
61
  }))).filter((r) => r.status === "fulfilled").map((r) => r.value);
52
62
  return Object.fromEntries(filesEntries);
53
63
  };
64
+ const getFileMetadataRecord = async (files, locale = defaultLocale) => {
65
+ let localeCache = fileMetadataRecordCache.get(files);
66
+ if (!localeCache) {
67
+ localeCache = /* @__PURE__ */ new Map();
68
+ fileMetadataRecordCache.set(files, localeCache);
69
+ }
70
+ let record = localeCache.get(locale);
71
+ if (!record) {
72
+ record = buildFileMetadataRecord(files, locale);
73
+ localeCache.set(locale, record);
74
+ }
75
+ return await record;
76
+ };
54
77
  const getFileMetadataBySlug = async (files, slugs, locale = defaultLocale, strict = false) => {
55
78
  const slugsArray = Array.isArray(slugs) ? slugs : [slugs];
56
79
  const filesMetadata = await getFileMetadataRecord(files, defaultLocale);