@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
@@ -42,7 +42,9 @@ author: aymericzip
42
42
 
43
43
  # Intlayer Formatters
44
44
 
45
- # Intlayer फॉर्मेटर्स
45
+ ## विषय सूची
46
+
47
+ <TOC/>
46
48
 
47
49
  ## अवलोकन
48
50
 
@@ -78,49 +80,61 @@ import {
78
80
 
79
81
  यदि आप React का उपयोग कर रहे हैं, तो हुक्स भी उपलब्ध हैं; देखें `react-intlayer/format`।
80
82
 
81
- ## कैश्ड Intl
82
-
83
- निर्यातित `Intl` वैश्विक `Intl` के चारों ओर एक पतला, कैश्ड रैपर है। यह `NumberFormat`, `DateTimeFormat`, `RelativeTimeFormat`, `ListFormat`, `DisplayNames`, `Collator`, और `PluralRules` के उदाहरणों को मेमोइज़ करता है, जो एक ही फॉर्मेटर को बार-बार पुनर्निर्माण करने से बचाता है।
83
+ ### उपलब्ध Hooks
84
84
 
85
- चूंकि फॉर्मेटर निर्माण अपेक्षाकृत महंगा होता है, यह कैशिंग प्रदर्शन में सुधार करती है बिना व्यवहार को बदले। रैपर मूल `Intl` के समान API प्रदान करता है, इसलिए उपयोग समान होता है।
85
+ सभी hooks स्वचालित रूप से `IntlayerProvider` या `IntlayerServerProvider` से locale का उपयोग करते हैं।
86
86
 
87
- - कैशिंग प्रति प्रक्रिया होती है और कॉलर्स के लिए पारदर्शी होती है।
87
+ | Hook | विवरण | उदाहरण आउटपुट |
88
+ | ------------------- | ----------------------------------------------- | ----------------------------- |
89
+ | `useNumber()` | समूहन के साथ संख्याओं को प्रारूपित करें | `"123,456.789"` |
90
+ | `useCurrency()` | मुद्रा मानों को प्रारूपित करें | `"€1,234.50"` |
91
+ | `usePercentage()` | प्रतिशत को प्रारूपित करें | `"25%"` |
92
+ | `useDate()` | तारीखें और समय प्रारूपित करें | `"Aug 2, 2025"` |
93
+ | `useRelativeTime()` | सापेक्ष समय प्रारूपित करें | `"in 3 days"` |
94
+ | `useUnit()` | इकाइयों के साथ मानों को प्रारूपित करें | `"5 kilometers"` |
95
+ | `useCompact()` | कॉम्पैक्ट नोटेशन में संख्याओं को प्रारूपित करें | `"1.2K"` |
96
+ | `useList()` | सरणियों को सूचियों के रूप में प्रारूपित करें | `"apple, banana, and orange"` |
97
+ | `useIntl()` | locale-bound `Intl` ऑब्जेक्ट प्राप्त करें | Full `Intl` API access |
88
98
 
89
- > यदि `Intl.DisplayNames` पर्यावरण में उपलब्ध नहीं है, तो एकल डेवलपर-केवल चेतावनी प्रदर्शित की जाती है (पॉलीफिल पर विचार करें)।
99
+ ### संपूर्ण उदाहरण
90
100
 
91
- उदाहरण:
92
-
93
- ```ts
94
- import { Intl } from "intlayer";
95
-
96
- // संख्या स्वरूपण
97
- const numberFormat = new Intl.NumberFormat("en-GB", {
98
- style: "currency",
99
- currency: "GBP",
100
- });
101
- numberFormat.format(1234.5); // "£1,234.50"
102
-
103
- // भाषाओं, क्षेत्रों आदि के लिए डिस्प्ले नाम
104
- const displayNames = new Intl.DisplayNames("fr", { type: "language" });
105
- displayNames.of("en"); // "anglais"
101
+ ```tsx
102
+ import {
103
+ useNumber,
104
+ useCurrency,
105
+ useDate,
106
+ usePercentage,
107
+ useCompact,
108
+ useList,
109
+ useRelativeTime,
110
+ useUnit,
111
+ } from "react-intlayer/format";
106
112
 
107
- // क्रमबद्ध करने के लिए कोलेशन
108
- const collator = new Intl.Collator("fr", { sensitivity: "base" });
109
- // स्ट्रिंग की तुलना के लिए collator का उपयोग करें
110
- collator.compare("é", "e"); // 0 (समान)
113
+ const MyComponent = () => {
114
+ const number = useNumber();
115
+ const currency = useCurrency();
116
+ const date = useDate();
117
+ const percentage = usePercentage();
118
+ const compact = useCompact();
119
+ const list = useList();
120
+ const relativeTime = useRelativeTime();
121
+ const unit = useUnit();
111
122
 
112
- // बहुवचन नियम
113
- const pluralRules = new Intl.PluralRules("fr");
114
- // संख्या 1 के लिए बहुवचन रूप चुनें
115
- pluralRules.select(1); // "one"
116
- // संख्या 2 के लिए बहुवचन रूप चुनें
117
- pluralRules.select(2); // "other"
123
+ return (
124
+ <div>
125
+ <p>{number(123456.789)}</p>
126
+ <p>{currency(1234.5, { currency: "EUR" })}</p>
127
+ <p>{date(new Date(), "short")}</p>
128
+ <p>{percentage(0.25)}</p>
129
+ <p>{compact(1200)}</p>
130
+ <p>{list(["apple", "banana", "orange"])}</p>
131
+ <p>{relativeTime(new Date(), new Date(Date.now() + 86400000))}</p>
132
+ <p>{unit(5, { unit: "kilometer" })}</p>
133
+ </div>
134
+ );
135
+ };
118
136
  ```
119
137
 
120
- ## अतिरिक्त Intl उपयोगिताएँ
121
-
122
- फॉर्मेटर हेल्पर्स के अलावा, आप अन्य Intl फीचर्स के लिए कैश किए गए Intl रैपर का सीधे उपयोग भी कर सकते हैं:
123
-
124
138
  ### `Intl.DisplayNames`
125
139
 
126
140
  भाषाओं, क्षेत्रों, मुद्राओं, और स्क्रिप्ट्स के स्थानीयकृत नामों के लिए:
@@ -245,6 +259,189 @@ import {
245
259
  } from "intlayer";
246
260
  ```
247
261
 
262
+ ### Formatter Functions
263
+
264
+ #### `number(value, options?)`
265
+
266
+ एक numeric मान को locale-aware grouping और decimals का उपयोग करके फॉर्मेट करता है।
267
+
268
+ - **value**: `number | string`
269
+ - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }`
270
+
271
+ ```ts
272
+ number(123456.789); // "123,456.789" (in en-US)
273
+ number("1000000", { locale: "fr" }); // "1 000 000"
274
+ number(1234.5, { minimumFractionDigits: 2 }); // "1,234.50"
275
+ ```
276
+
277
+ #### `percentage(value, options?)`
278
+
279
+ एक संख्या को प्रतिशत स्ट्रिंग के रूप में प्रारूपित करता है। 1 से अधिक मान सामान्यीकृत होते हैं (उदाहरण के लिए, `25` → `25%`, `0.25` → `25%`)।
280
+
281
+ - **value**: `number | string`
282
+ - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }`
283
+
284
+ ```ts
285
+ percentage(0.25); // "25%"
286
+ percentage(25); // "25%"
287
+ percentage(0.237, { minimumFractionDigits: 1 }); // "23.7%"
288
+ ```
289
+
290
+ #### `currency(value, options?)`
291
+
292
+ एक मान को स्थानीयकृत मुद्रा के रूप में प्रारूपित करता है। डिफ़ॉल्ट रूप से `USD`।
293
+
294
+ - **value**: `number | string`
295
+ - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }`
296
+ - Common: `currency`, `currencyDisplay` (`"symbol" | "code" | "name"`)
297
+
298
+ ```ts
299
+ currency(1234.5, { currency: "EUR" }); // "€1,234.50"
300
+ currency("5000", { locale: "fr", currency: "CAD", currencyDisplay: "code" }); // "5 000,00 CAD"
301
+ ```
302
+
303
+ #### `date(date, optionsOrPreset?)`
304
+
305
+ एक date/time value को format करता है।
306
+
307
+ - **date**: `Date | string | number`
308
+ - **optionsOrPreset**: `Intl.DateTimeFormatOptions & { locale?: LocalesValues }` या preset: `"short" | "long" | "dateOnly" | "timeOnly" | "full"`
309
+
310
+ ```ts
311
+ date(new Date(), "short"); // e.g., "08/02/25, 14:30"
312
+ date("2025-08-02T14:30:00Z", { locale: "fr", month: "long", day: "numeric" }); // "2 août"
313
+ ```
314
+
315
+ #### `relativeTime(from, to?, options?)`
316
+
317
+ दो तत्काल के बीच सापेक्ष समय को फॉर्मेट करता है।
318
+
319
+ - **from**: `Date | string | number`
320
+ - **to**: `Date | string | number` (डिफ़ॉल्ट `new Date()`)
321
+ - **options**: `{ locale?, unit?, numeric?, style? }`
322
+
323
+ ```ts
324
+ const now = new Date();
325
+ const in3Days = new Date(now.getTime() + 3 * 864e5);
326
+ relativeTime(now, in3Days, { unit: "day" }); // "3 दिन में"
327
+
328
+ const twoHoursAgo = new Date(now.getTime() - 2 * 3600e3);
329
+ relativeTime(now, twoHoursAgo, { unit: "hour", numeric: "auto" }); // "2 घंटे पहले"
330
+ ```
331
+
332
+ #### `units(value, options?)`
333
+
334
+ एक संख्यात्मक मान को एक इकाई के साथ प्रारूपित करता है।
335
+
336
+ - **value**: `number | string`
337
+ - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }`
338
+ - सामान्य: `unit` (उदाहरण के लिए, `"kilometer"`, `"byte"`), `unitDisplay` (`"short" | "narrow" | "long"`)
339
+
340
+ ```ts
341
+ units(5, { unit: "kilometer", unitDisplay: "long", locale: "en-GB" }); // "5 kilometers"
342
+ units(1024, { unit: "byte", unitDisplay: "narrow" }); // "1,024B"
343
+ ```
344
+
345
+ #### `compact(value, options?)`
346
+
347
+ कॉम्पैक्ट नोटेशन का उपयोग करके एक संख्या को फ़ॉर्मेट करता है।
348
+
349
+ - **value**: `number | string`
350
+ - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }`
351
+
352
+ ```ts
353
+ compact(1200); // "1.2K"
354
+ compact("1000000", { locale: "fr", compactDisplay: "long" }); // "1 million"
355
+ ```
356
+
357
+ #### `list(values, options?)`
358
+
359
+ एक array को स्थानीयकृत list string में प्रारूपित करता है।
360
+
361
+ - **values**: `(string | number)[]`
362
+ - **options**: `Intl.ListFormatOptions & { locale?: LocalesValues }`
363
+ - Common: `type` (`"conjunction" | "disjunction" | "unit"`), `style` (`"long" | "short" | "narrow"`)
364
+
365
+ ```ts
366
+ list(["apple", "banana", "orange"]); // "apple, banana, and orange"
367
+ list(["red", "green", "blue"], { locale: "fr", type: "disjunction" }); // "rouge, vert ou bleu"
368
+ ```
369
+
370
+ ## Cached Intl
371
+
372
+ `intlayer` से निर्यात किया गया `Intl` ग्लोबल `Intl` के चारों ओर एक cached wrapper है। यह formatter instances (`NumberFormat`, `DateTimeFormat`, आदि) को memoize करता है ताकि उन्हें बार-बार construct करने से बचा जा सके, जिससे performance में सुधार होता है।
373
+
374
+ ```ts
375
+ import { Intl } from "intlayer";
376
+
377
+ // संख्या फॉर्मेटिंग
378
+ const numberFormat = new Intl.NumberFormat("en-GB", {
379
+ style: "currency",
380
+ currency: "GBP",
381
+ });
382
+ numberFormat.format(1234.5); // "£1,234.50"
383
+
384
+ // भाषाओं, क्षेत्रों आदि के लिए प्रदर्शन नाम
385
+ const displayNames = new Intl.DisplayNames("fr", { type: "language" });
386
+ displayNames.of("en"); // "anglais"
387
+
388
+ // सॉर्टिंग के लिए Collation
389
+ const collator = new Intl.Collator("fr", { sensitivity: "base" });
390
+ collator.compare("é", "e"); // 0 (equal)
391
+
392
+ // बहुवचन नियम
393
+ const pluralRules = new Intl.PluralRules("fr");
394
+ pluralRules.select(1); // "one"
395
+ pluralRules.select(2); // "other"
396
+ ```
397
+
398
+ ### अतिरिक्त Intl Features
399
+
400
+ #### `Intl.DisplayNames`
401
+
402
+ भाषाओं, क्षेत्रों, मुद्राओं और लिपियों के स्थानीयकृत नामों के लिए:
403
+
404
+ ```ts
405
+ import { Intl } from "intlayer";
406
+
407
+ const languageNames = new Intl.DisplayNames("en", { type: "language" });
408
+ languageNames.of("fr"); // "French"
409
+
410
+ const regionNames = new Intl.DisplayNames("fr", { type: "region" });
411
+ regionNames.of("US"); // "États-Unis"
412
+ ```
413
+
414
+ #### `Intl.Collator`
415
+
416
+ लोकेल-जागरूक स्ट्रिंग तुलना और सॉर्टिंग के लिए:
417
+
418
+ ```ts
419
+ import { Intl } from "intlayer";
420
+
421
+ const collator = new Intl.Collator("de", {
422
+ sensitivity: "base",
423
+ numeric: true,
424
+ });
425
+
426
+ const words = ["äpfel", "zebra", "100", "20"];
427
+ words.sort(collator.compare); // ["20", "100", "äpfel", "zebra"]
428
+ ```
429
+
430
+ #### `Intl.PluralRules`
431
+
432
+ विभिन्न locales में plural forms निर्धारित करने के लिए:
433
+
434
+ ```ts
435
+ import { Intl } from "intlayer";
436
+
437
+ const pluralRules = new Intl.PluralRules("ar");
438
+ pluralRules.select(0); // "zero"
439
+ pluralRules.select(1); // "one"
440
+ pluralRules.select(2); // "two"
441
+ pluralRules.select(3); // "few"
442
+ pluralRules.select(11); // "many"
443
+ ```
444
+
248
445
  ## स्थानीय उपयोगिताएँ
249
446
 
250
447
  ### `getLocaleName(displayLocale, targetLocale?)`
@@ -383,21 +580,6 @@ const content = getTranslation(
383
580
  - **locale**: लक्षित लोकल (डिफ़ॉल्ट रूप से कॉन्फ़िगर किए गए डिफ़ॉल्ट लोकल)
384
581
  - **fallback**: क्या डिफ़ॉल्ट लोकल पर वापस जाना है (डिफ़ॉल्ट रूप से true)
385
582
 
386
- ### `getIntlayer(dictionaryKey, locale?, plugins?)`
387
-
388
- डिक्शनरी की कुंजी से सामग्री प्राप्त करता है और रूपांतरित करता है:
389
-
390
- ```ts
391
- import { getIntlayer } from "intlayer";
392
-
393
- const content = getIntlayer("common", "fr");
394
- const nestedContent = getIntlayer("common", "fr", customPlugins);
395
- ```
396
-
397
- - **dictionaryKey**: पुनः प्राप्त करने के लिए शब्दकोश की कुंजी
398
- - **locale**: वैकल्पिक लोकल (डिफ़ॉल्ट रूप से कॉन्फ़िगर किए गए डिफ़ॉल्ट लोकल)
399
- - **plugins**: कस्टम रूपांतरण प्लगइन्स की वैकल्पिक सूची
400
-
401
583
  ### `getIntlayerAsync(dictionaryKey, locale?, plugins?)`
402
584
 
403
585
  दूरस्थ शब्दकोश से असिंक्रोनस रूप से सामग्री पुनः प्राप्त करता है:
@@ -412,291 +594,8 @@ const content = await getIntlayerAsync("common", "fr");
412
594
  - **locale**: वैकल्पिक लोकल (डिफ़ॉल्ट रूप से कॉन्फ़िगर किए गए डिफ़ॉल्ट लोकल)
413
595
  - **plugins**: कस्टम रूपांतरण प्लगइन्स की वैकल्पिक सूची
414
596
 
415
- ## फॉर्मेटर्स
416
-
417
- नीचे सभी हेल्पर्स `intlayer` से निर्यात किए गए हैं।
418
-
419
- ### `number(value, options?)`
420
-
421
- संख्या मान को लोकल-संवेदनशील समूहबद्धता और दशमलव के साथ स्वरूपित करता है।
422
-
423
- - **value**: `number | string`
424
- - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }`
425
-
426
- उदाहरण:
427
-
428
- ```ts
429
- import { number } from "intlayer";
430
-
431
- number(123456.789); // "123,456.789" (en-US में)
432
- number("1000000", { locale: "fr" }); // "1 000 000"
433
- number(1234.5, { minimumFractionDigits: 2 }); // "1,234.50"
434
- ```
435
-
436
- ### `percentage(value, options?)`
437
-
438
- संख्या को प्रतिशत स्ट्रिंग के रूप में स्वरूपित करता है।
439
-
440
- व्यवहार: 1 से अधिक मानों को पूर्ण प्रतिशत के रूप में व्याख्यायित किया जाता है और सामान्यीकृत किया जाता है (जैसे, `25` → `25%`, `0.25` → `25%`)।
441
-
442
- - **value**: `number | string`
443
- - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }`
444
-
445
- उदाहरण:
446
-
447
- ```ts
448
- import { percentage } from "intlayer";
449
-
450
- percentage(0.25); // "25%"
451
- percentage(25); // "25%"
452
- percentage(0.237, { minimumFractionDigits: 1 }); // "23.7%"
453
- ```
454
-
455
- ### `currency(value, options?)`
456
-
457
- मूल्य को स्थानीयकृत मुद्रा के रूप में स्वरूपित करता है। डिफ़ॉल्ट रूप से `USD` और दो दशमलव अंकों के साथ।
458
-
459
- - **value**: `number | string`
460
- - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }`
461
- - सामान्य फ़ील्ड: `currency` (जैसे, `"EUR"`), `currencyDisplay` (`"symbol" | "code" | "name"`)
462
-
463
- उदाहरण:
464
-
465
- ```ts
466
- import { currency } from "intlayer";
467
-
468
- currency(1234.5, { currency: "EUR" }); // "€1,234.50"
469
- currency("5000", { locale: "fr", currency: "CAD", currencyDisplay: "code" }); // "5 000,00 CAD"
470
- ```
471
-
472
- ### `date(date, optionsOrPreset?)`
473
-
474
- `Intl.DateTimeFormat` के साथ तिथि/समय मान को स्वरूपित करता है।
475
-
476
- - **date**: `Date | string | number`
477
- - **optionsOrPreset**: `Intl.DateTimeFormatOptions & { locale?: LocalesValues }` या प्रीसेट्स में से एक:
478
- - प्रीसेट्स: `"short" | "long" | "dateOnly" | "timeOnly" | "full"`
479
-
480
- उदाहरण:
481
-
482
- ```ts
483
- import { date } from "intlayer";
484
-
485
- date(new Date(), "short"); // उदाहरण के लिए, "08/02/25, 14:30"
486
- date("2025-08-02T14:30:00Z", { locale: "fr", month: "long", day: "numeric" }); // "2 août"
487
- ```
488
-
489
- ### `relativeTime(from, to = new Date(), options?)`
490
-
491
- `Intl.RelativeTimeFormat` के साथ दो समय बिंदुओं के बीच सापेक्ष समय को स्वरूपित करता है।
492
-
493
- - प्राकृतिक अभिव्यक्ति पाने के लिए पहले तर्क के रूप में "now" और दूसरे के रूप में लक्ष्य पास करें।
494
- - **from**: `Date | string | number`
495
- - **to**: `Date | string | number` (डिफ़ॉल्ट `new Date()`)
496
- - **options**: `{ locale?: LocalesValues; unit?: Intl.RelativeTimeFormatUnit; numeric?: Intl.RelativeTimeFormatNumeric; style?: Intl.RelativeTimeFormatStyle }`
497
- - डिफ़ॉल्ट `unit` `"second"` है।
498
-
499
- उदाहरण:
500
-
501
- ```ts
502
- import { relativeTime } from "intlayer";
503
-
504
- const now = new Date();
505
- const in3Days = new Date(now.getTime() + 3 * 864e5);
506
- relativeTime(now, in3Days, { unit: "day" }); // "3 दिनों में"
507
-
508
- const twoHoursAgo = new Date(now.getTime() - 2 * 3600e3);
509
- relativeTime(now, twoHoursAgo, { unit: "hour", numeric: "auto" }); // "2 घंटे पहले"
510
- ```
511
-
512
- ### `units(value, options?)`
513
-
514
- `Intl.NumberFormat` के साथ `style: 'unit'` का उपयोग करके एक संख्यात्मक मान को स्थानीयकृत इकाई स्ट्रिंग के रूप में स्वरूपित करता है।
515
-
516
- - **value**: `number | string`
517
- - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }`
518
- - सामान्य फ़ील्ड: `unit` (जैसे, `"kilometer"`, `"byte"`), `unitDisplay` (`"short" | "narrow" | "long"`)
519
- - डिफ़ॉल्ट: `unit: 'day'`, `unitDisplay: 'short'`, `useGrouping: false`
520
-
521
- उदाहरण:
522
-
523
- ```ts
524
- import { units } from "intlayer";
525
-
526
- units(5, { unit: "kilometer", unitDisplay: "long", locale: "en-GB" }); // "5 kilometers"
527
- units(1024, { unit: "byte", unitDisplay: "narrow" }); // "1,024B" (स्थान-निर्भर)
528
- ```
529
-
530
- ### `compact(value, options?)`
531
-
532
- संक्षिप्त संकेतन का उपयोग करके एक संख्या को स्वरूपित करता है (जैसे, `1.2K`, `1M`)।
533
-
534
- - **value**: `number | string`
535
- - **options**: `Intl.NumberFormatOptions & { locale?: LocalesValues }` (अंदर `notation: 'compact'` का उपयोग करता है)
536
-
537
- उदाहरण:
538
-
539
- ```ts
540
- import { compact } from "intlayer";
541
-
542
- compact(1200); // "1.2K"
543
- compact("1000000", { locale: "fr", compactDisplay: "long" }); // "1 million"
544
- ```
545
-
546
- ### `list(values, options?)`
547
-
548
- `Intl.ListFormat` का उपयोग करके मानों की एक सरणी को स्थानीयकृत सूची स्ट्रिंग में स्वरूपित करता है।
549
-
550
- - **values**: `(string | number)[]`
551
- - **options**: `Intl.ListFormatOptions & { locale?: LocalesValues }`
552
- - सामान्य फ़ील्ड: `type` (`"conjunction" | "disjunction" | "unit"`), `style` (`"long" | "short" | "narrow"`)
553
- - डिफ़ॉल्ट: `type: 'conjunction'`, `style: 'long'`
554
-
555
- उदाहरण:
556
-
557
- ```ts
558
- import { list } from "intlayer";
559
-
560
- list(["apple", "banana", "orange"]); // "apple, banana, and orange"
561
- list(["red", "green", "blue"], { locale: "fr", type: "disjunction" }); // "rouge, vert ou bleu"
562
- list([1, 2, 3], { type: "unit" }); // "1, 2, 3"
563
- ```
564
-
565
- ## Content Handling Utilities
566
-
567
- सामग्री हैंडलिंग यूटिलिटीज
568
-
569
597
  ## नोट्स
570
598
 
571
599
  - सभी हेल्पर `string` इनपुट स्वीकार करते हैं; उन्हें आंतरिक रूप से संख्याओं या तिथियों में परिवर्तित किया जाता है।
572
600
  - यदि प्रदान नहीं किया गया है, तो स्थानीय भाषा आपके कॉन्फ़िगर किए गए `internationalization.defaultLocale` पर डिफ़ॉल्ट होती है।
573
601
  - ये यूटिलिटीज़ पतले रैपर हैं; उन्नत स्वरूपण के लिए, मानक `Intl` विकल्पों का उपयोग करें।
574
-
575
- ## प्रवेश बिंदु और पुनः-निर्यात (`@index.ts`)
576
-
577
- फॉर्मेटर कोर पैकेज में रहते हैं और उच्च-स्तरीय पैकेजों से पुनः निर्यात किए जाते हैं ताकि रनटाइम्स में आयात सहज बने रहें:
578
-
579
- उदाहरण:
580
-
581
- ```ts
582
- // ऐप कोड (अनुशंसित)
583
- import {
584
- number,
585
- currency,
586
- date,
587
- relativeTime,
588
- units,
589
- compact,
590
- list,
591
- Intl,
592
- getLocaleName,
593
- getLocaleLang,
594
- getLocaleFromPath,
595
- getPathWithoutLocale,
596
- getLocalizedUrl,
597
- getHTMLTextDir,
598
- getContent,
599
- getTranslation,
600
- getIntlayer,
601
- getIntlayerAsync,
602
- } from "intlayer";
603
- ```
604
-
605
- ### रिएक्ट
606
-
607
- क्लाइंट कंपोनेंट्स:
608
-
609
- ```tsx
610
- import {
611
- useNumber,
612
- useCurrency,
613
- useDate,
614
- usePercentage,
615
- useCompact,
616
- useList,
617
- useRelativeTime,
618
- useUnit,
619
- } from "react-intlayer/format";
620
- // या Next.js ऐप्स में
621
- import {
622
- useNumber,
623
- useCurrency,
624
- useDate,
625
- usePercentage,
626
- useCompact,
627
- useList,
628
- useRelativeTime,
629
- useUnit,
630
- } from "next-intlayer/client/format";
631
-
632
- const MyComponent = () => {
633
- const number = useNumber();
634
- const currency = useCurrency();
635
- const date = useDate();
636
- const percentage = usePercentage();
637
- const compact = useCompact();
638
- const list = useList();
639
- const relativeTime = useRelativeTime();
640
- const unit = useUnit();
641
-
642
- return (
643
- <div>
644
- <p>{number(123456.789)}</p>
645
- <p>{currency(1234.5, { currency: "EUR" })}</p>
646
- <p>{date(new Date(), "short")}</p>
647
- <p>{percentage(0.25)}</p>
648
- <p>{compact(1200)}</p>
649
- <p>{list(["apple", "banana", "orange"])}</p>
650
- <p>{relativeTime(new Date(), new Date() + 1000)}</p>
651
- <p>{unit(123456.789, { unit: "kilometer" })}</p>
652
- </div>
653
- );
654
- };
655
- ```
656
-
657
- सर्वर कंपोनेंट्स (या रिएक्ट सर्वर रनटाइम):
658
-
659
- ```ts
660
- import {
661
- useNumber,
662
- useCurrency,
663
- useDate,
664
- usePercentage,
665
- useCompact,
666
- useList,
667
- useRelativeTime,
668
- useUnit,
669
- } from "intlayer/server/format";
670
- // या Next.js ऐप्स में
671
- import {
672
- useNumber,
673
- useCurrency,
674
- useDate,
675
- usePercentage,
676
- useCompact,
677
- useList,
678
- useRelativeTime,
679
- useUnit,
680
- } from "next-intlayer/server/format";
681
- ```
682
-
683
- > ये हुक्स `IntlayerProvider` या `IntlayerServerProvider` से लोकल को ध्यान में रखेंगे
684
-
685
- ### Vue
686
-
687
- क्लाइंट कंपोनेंट्स:
688
-
689
- ```ts
690
- import {
691
- useNumber,
692
- useCurrency,
693
- useDate,
694
- usePercentage,
695
- useCompact,
696
- useList,
697
- useRelativeTime,
698
- useUnit,
699
- } from "vue-intlayer/format";
700
- ```
701
-
702
- > ये कॉम्पोज़ेबल्स इंजेक्ट किए गए `IntlayerProvider` से लोकल को ध्यान में रखेंगे
@@ -22,7 +22,9 @@ author: aymericzip
22
22
 
23
23
  # Intlayer कैसे काम करता है
24
24
 
25
- # Intlayer कैसे काम करता है
25
+ ## विषय सूची
26
+
27
+ <TOC/>
26
28
 
27
29
  ## अवलोकन
28
30