@intlayer/docs 7.2.2 → 7.3.0-canary.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 (478) hide show
  1. package/README.md +2 -0
  2. package/blog/ar/compiler_vs_declarative_i18n.md +138 -0
  3. package/blog/ar/intlayer_with_next-i18next.md +0 -1
  4. package/blog/ar/intlayer_with_vue-i18n.md +0 -1
  5. package/blog/de/compiler_vs_declarative_i18n.md +138 -0
  6. package/blog/de/intlayer_with_next-i18next.md +0 -1
  7. package/blog/de/intlayer_with_vue-i18n.md +0 -1
  8. package/blog/en/compiler_vs_declarative_i18n.md +138 -0
  9. package/blog/en/i18n_using_next-i18next.md +1 -1
  10. package/blog/en/i18n_using_next-intl.md +1 -1
  11. package/blog/en/intlayer_with_i18next.md +1 -1
  12. package/blog/en/intlayer_with_next-i18next.md +1 -2
  13. package/blog/en/intlayer_with_next-intl.md +1 -1
  14. package/blog/en/intlayer_with_react-i18next.md +1 -1
  15. package/blog/en/intlayer_with_react-intl.md +1 -1
  16. package/blog/en/intlayer_with_vue-i18n.md +1 -2
  17. package/blog/en-GB/compiler_vs_declarative_i18n.md +138 -0
  18. package/blog/en-GB/intlayer_with_next-i18next.md +0 -1
  19. package/blog/en-GB/intlayer_with_vue-i18n.md +0 -1
  20. package/blog/es/compiler_vs_declarative_i18n.md +138 -0
  21. package/blog/es/intlayer_with_next-i18next.md +0 -1
  22. package/blog/es/intlayer_with_vue-i18n.md +0 -1
  23. package/blog/fr/compiler_vs_declarative_i18n.md +138 -0
  24. package/blog/fr/intlayer_with_next-i18next.md +0 -1
  25. package/blog/fr/intlayer_with_vue-i18n.md +0 -1
  26. package/blog/hi/compiler_vs_declarative_i18n.md +138 -0
  27. package/blog/hi/intlayer_with_next-i18next.md +0 -1
  28. package/blog/hi/intlayer_with_vue-i18n.md +0 -1
  29. package/blog/id/compiler_vs_declarative_i18n.md +138 -0
  30. package/blog/id/intlayer_with_next-i18next.md +0 -1
  31. package/blog/id/intlayer_with_vue-i18n.md +0 -1
  32. package/blog/it/compiler_vs_declarative_i18n.md +138 -0
  33. package/blog/it/intlayer_with_next-i18next.md +0 -1
  34. package/blog/it/intlayer_with_vue-i18n.md +0 -1
  35. package/blog/ja/compiler_vs_declarative_i18n.md +138 -0
  36. package/blog/ja/intlayer_with_next-i18next.md +0 -1
  37. package/blog/ja/intlayer_with_vue-i18n.md +0 -1
  38. package/blog/ko/compiler_vs_declarative_i18n.md +138 -0
  39. package/blog/ko/intlayer_with_next-i18next.md +0 -1
  40. package/blog/ko/intlayer_with_vue-i18n.md +0 -1
  41. package/blog/pl/compiler_vs_declarative_i18n.md +138 -0
  42. package/blog/pl/intlayer_with_next-i18next.md +0 -1
  43. package/blog/pl/intlayer_with_vue-i18n.md +0 -1
  44. package/blog/pt/compiler_vs_declarative_i18n.md +138 -0
  45. package/blog/pt/intlayer_with_next-i18next.md +0 -1
  46. package/blog/pt/intlayer_with_vue-i18n.md +0 -1
  47. package/blog/ru/compiler_vs_declarative_i18n.md +138 -0
  48. package/blog/ru/intlayer_with_next-i18next.md +0 -1
  49. package/blog/ru/intlayer_with_vue-i18n.md +0 -1
  50. package/blog/tr/compiler_vs_declarative_i18n.md +138 -0
  51. package/blog/tr/intlayer_with_next-i18next.md +0 -1
  52. package/blog/tr/intlayer_with_vue-i18n.md +0 -1
  53. package/blog/vi/compiler_vs_declarative_i18n.md +138 -0
  54. package/blog/vi/intlayer_with_next-i18next.md +0 -1
  55. package/blog/vi/intlayer_with_vue-i18n.md +0 -1
  56. package/blog/zh/compiler_vs_declarative_i18n.md +138 -0
  57. package/blog/zh/intlayer_with_next-i18next.md +0 -1
  58. package/blog/zh/intlayer_with_vue-i18n.md +0 -1
  59. package/dist/cjs/generated/blog.entry.cjs +19 -0
  60. package/dist/cjs/generated/blog.entry.cjs.map +1 -1
  61. package/dist/cjs/generated/docs.entry.cjs +323 -19
  62. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  63. package/dist/esm/generated/blog.entry.mjs +19 -0
  64. package/dist/esm/generated/blog.entry.mjs.map +1 -1
  65. package/dist/esm/generated/docs.entry.mjs +323 -19
  66. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  67. package/dist/types/generated/blog.entry.d.ts +1 -0
  68. package/dist/types/generated/blog.entry.d.ts.map +1 -1
  69. package/dist/types/generated/docs.entry.d.ts +17 -1
  70. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  71. package/docs/ar/cli/build.md +64 -0
  72. package/docs/ar/cli/configuration.md +63 -0
  73. package/docs/ar/cli/debug.md +46 -0
  74. package/docs/ar/cli/doc-review.md +43 -0
  75. package/docs/ar/cli/doc-translate.md +132 -0
  76. package/docs/ar/cli/editor.md +28 -0
  77. package/docs/ar/cli/fill.md +130 -0
  78. package/docs/ar/cli/index.md +163 -0
  79. package/docs/ar/cli/list.md +53 -0
  80. package/docs/ar/cli/live.md +41 -0
  81. package/docs/ar/cli/pull.md +78 -0
  82. package/docs/ar/cli/push.md +98 -0
  83. package/docs/ar/cli/sdk.md +67 -0
  84. package/docs/ar/cli/test.md +76 -0
  85. package/docs/ar/cli/transform.md +65 -0
  86. package/docs/ar/cli/version.md +24 -0
  87. package/docs/ar/cli/watch.md +37 -0
  88. package/docs/ar/intlayer_with_svelte_kit.md +3 -2
  89. package/docs/ar/packages/intlayer/getPrefix.md +210 -0
  90. package/docs/de/cli/build.md +64 -0
  91. package/docs/de/cli/configuration.md +63 -0
  92. package/docs/de/cli/debug.md +46 -0
  93. package/docs/de/cli/doc-review.md +43 -0
  94. package/docs/de/cli/doc-translate.md +132 -0
  95. package/docs/de/cli/editor.md +28 -0
  96. package/docs/de/cli/fill.md +130 -0
  97. package/docs/de/cli/index.md +163 -0
  98. package/docs/de/cli/list.md +53 -0
  99. package/docs/de/cli/live.md +41 -0
  100. package/docs/de/cli/pull.md +78 -0
  101. package/docs/de/cli/push.md +98 -0
  102. package/docs/de/cli/sdk.md +67 -0
  103. package/docs/de/cli/test.md +76 -0
  104. package/docs/de/cli/transform.md +65 -0
  105. package/docs/de/cli/version.md +24 -0
  106. package/docs/de/cli/watch.md +37 -0
  107. package/docs/de/intlayer_with_svelte_kit.md +3 -2
  108. package/docs/de/packages/intlayer/getPrefix.md +213 -0
  109. package/docs/en/CI_CD.md +2 -2
  110. package/docs/en/autoFill.md +24 -2
  111. package/docs/en/cli/build.md +64 -0
  112. package/docs/en/cli/configuration.md +63 -0
  113. package/docs/en/cli/debug.md +46 -0
  114. package/docs/en/cli/doc-review.md +43 -0
  115. package/docs/en/cli/doc-translate.md +132 -0
  116. package/docs/en/cli/editor.md +28 -0
  117. package/docs/en/cli/fill.md +130 -0
  118. package/docs/en/cli/index.md +163 -0
  119. package/docs/en/cli/list.md +53 -0
  120. package/docs/en/cli/live.md +41 -0
  121. package/docs/en/cli/pull.md +78 -0
  122. package/docs/en/cli/push.md +98 -0
  123. package/docs/en/cli/sdk.md +67 -0
  124. package/docs/en/cli/test.md +76 -0
  125. package/docs/en/cli/transform.md +65 -0
  126. package/docs/en/cli/version.md +24 -0
  127. package/docs/en/cli/watch.md +37 -0
  128. package/docs/en/dictionary/condition.md +1 -1
  129. package/docs/en/dictionary/enumeration.md +1 -1
  130. package/docs/en/dictionary/file.md +1 -1
  131. package/docs/en/dictionary/gender.md +1 -1
  132. package/docs/en/dictionary/insertion.md +1 -1
  133. package/docs/en/dictionary/markdown.md +1 -1
  134. package/docs/en/dictionary/nesting.md +1 -1
  135. package/docs/en/index.md +1 -1
  136. package/docs/en/intlayer_with_angular.md +1 -1
  137. package/docs/en/intlayer_with_astro.md +1 -1
  138. package/docs/en/intlayer_with_create_react_app.md +1 -1
  139. package/docs/en/intlayer_with_lynx+react.md +1 -1
  140. package/docs/en/intlayer_with_next-i18next.md +1 -1
  141. package/docs/en/intlayer_with_next-intl.md +1 -1
  142. package/docs/en/intlayer_with_nextjs_14.md +1 -1
  143. package/docs/en/intlayer_with_nextjs_15.md +1 -1
  144. package/docs/en/intlayer_with_nextjs_16.md +1 -1
  145. package/docs/en/intlayer_with_nextjs_page_router.md +1 -1
  146. package/docs/en/intlayer_with_nuxt.md +1 -1
  147. package/docs/en/intlayer_with_react_native+expo.md +1 -1
  148. package/docs/en/intlayer_with_react_router_v7.md +1 -1
  149. package/docs/en/intlayer_with_svelte_kit.md +3 -2
  150. package/docs/en/intlayer_with_tanstack.md +1 -1
  151. package/docs/en/intlayer_with_vite+preact.md +1 -1
  152. package/docs/en/intlayer_with_vite+react.md +1 -1
  153. package/docs/en/intlayer_with_vite+solid.md +1 -1
  154. package/docs/en/intlayer_with_vite+svelte.md +1 -1
  155. package/docs/en/intlayer_with_vite+vue.md +1 -1
  156. package/docs/en/introduction.md +1 -1
  157. package/docs/en/mcp_server.md +1 -2
  158. package/docs/en/per_locale_file.md +1 -1
  159. package/docs/en/plugins/sync-json.md +1 -1
  160. package/docs/en/releases/v6.md +2 -2
  161. package/docs/en/roadmap.md +1 -1
  162. package/docs/en-GB/cli/build.md +64 -0
  163. package/docs/en-GB/cli/configuration.md +63 -0
  164. package/docs/en-GB/cli/debug.md +46 -0
  165. package/docs/en-GB/cli/doc-review.md +43 -0
  166. package/docs/en-GB/cli/doc-translate.md +132 -0
  167. package/docs/en-GB/cli/editor.md +28 -0
  168. package/docs/en-GB/cli/fill.md +130 -0
  169. package/docs/en-GB/cli/index.md +163 -0
  170. package/docs/en-GB/cli/list.md +53 -0
  171. package/docs/en-GB/cli/live.md +41 -0
  172. package/docs/en-GB/cli/pull.md +78 -0
  173. package/docs/en-GB/cli/push.md +98 -0
  174. package/docs/en-GB/cli/sdk.md +67 -0
  175. package/docs/en-GB/cli/test.md +100 -0
  176. package/docs/en-GB/cli/transform.md +65 -0
  177. package/docs/en-GB/cli/version.md +24 -0
  178. package/docs/en-GB/cli/watch.md +37 -0
  179. package/docs/en-GB/dictionary/condition.md +1 -1
  180. package/docs/en-GB/dictionary/markdown.md +1 -1
  181. package/docs/en-GB/dictionary/nesting.md +1 -1
  182. package/docs/en-GB/intlayer_with_nextjs_14.md +1 -1
  183. package/docs/en-GB/intlayer_with_react_native+expo.md +1 -1
  184. package/docs/en-GB/intlayer_with_svelte_kit.md +3 -2
  185. package/docs/en-GB/packages/intlayer/getPrefix.md +213 -0
  186. package/docs/es/cli/build.md +64 -0
  187. package/docs/es/cli/configuration.md +63 -0
  188. package/docs/es/cli/debug.md +46 -0
  189. package/docs/es/cli/doc-review.md +43 -0
  190. package/docs/es/cli/doc-translate.md +132 -0
  191. package/docs/es/cli/editor.md +28 -0
  192. package/docs/es/cli/fill.md +130 -0
  193. package/docs/es/cli/index.md +163 -0
  194. package/docs/es/cli/list.md +53 -0
  195. package/docs/es/cli/live.md +41 -0
  196. package/docs/es/cli/pull.md +78 -0
  197. package/docs/es/cli/push.md +98 -0
  198. package/docs/es/cli/sdk.md +67 -0
  199. package/docs/es/cli/test.md +76 -0
  200. package/docs/es/cli/transform.md +65 -0
  201. package/docs/es/cli/version.md +24 -0
  202. package/docs/es/cli/watch.md +37 -0
  203. package/docs/es/intlayer_with_svelte_kit.md +3 -2
  204. package/docs/es/packages/intlayer/getPrefix.md +213 -0
  205. package/docs/fr/cli/build.md +64 -0
  206. package/docs/fr/cli/configuration.md +63 -0
  207. package/docs/fr/cli/debug.md +46 -0
  208. package/docs/fr/cli/doc-review.md +43 -0
  209. package/docs/fr/cli/doc-translate.md +132 -0
  210. package/docs/fr/cli/editor.md +28 -0
  211. package/docs/fr/cli/fill.md +130 -0
  212. package/docs/fr/cli/index.md +163 -0
  213. package/docs/fr/cli/list.md +53 -0
  214. package/docs/fr/cli/live.md +41 -0
  215. package/docs/fr/cli/pull.md +78 -0
  216. package/docs/fr/cli/push.md +98 -0
  217. package/docs/fr/cli/sdk.md +67 -0
  218. package/docs/fr/cli/test.md +76 -0
  219. package/docs/fr/cli/transform.md +65 -0
  220. package/docs/fr/cli/version.md +24 -0
  221. package/docs/fr/cli/watch.md +37 -0
  222. package/docs/fr/intlayer_with_svelte_kit.md +3 -2
  223. package/docs/fr/packages/intlayer/getPrefix.md +213 -0
  224. package/docs/hi/cli/build.md +64 -0
  225. package/docs/hi/cli/configuration.md +63 -0
  226. package/docs/hi/cli/debug.md +46 -0
  227. package/docs/hi/cli/doc-review.md +43 -0
  228. package/docs/hi/cli/doc-translate.md +132 -0
  229. package/docs/hi/cli/editor.md +28 -0
  230. package/docs/hi/cli/fill.md +130 -0
  231. package/docs/hi/cli/index.md +163 -0
  232. package/docs/hi/cli/list.md +53 -0
  233. package/docs/hi/cli/live.md +41 -0
  234. package/docs/hi/cli/pull.md +78 -0
  235. package/docs/hi/cli/push.md +98 -0
  236. package/docs/hi/cli/sdk.md +67 -0
  237. package/docs/hi/cli/test.md +76 -0
  238. package/docs/hi/cli/transform.md +65 -0
  239. package/docs/hi/cli/version.md +24 -0
  240. package/docs/hi/cli/watch.md +37 -0
  241. package/docs/hi/intlayer_with_svelte_kit.md +3 -2
  242. package/docs/hi/intlayer_with_tanstack.md +1 -1
  243. package/docs/hi/intlayer_with_vite+solid.md +1 -1
  244. package/docs/hi/packages/intlayer/getPrefix.md +217 -0
  245. package/docs/id/cli/build.md +64 -0
  246. package/docs/id/cli/configuration.md +62 -0
  247. package/docs/id/cli/debug.md +46 -0
  248. package/docs/id/cli/doc-review.md +43 -0
  249. package/docs/id/cli/doc-translate.md +132 -0
  250. package/docs/id/cli/editor.md +28 -0
  251. package/docs/id/cli/fill.md +130 -0
  252. package/docs/id/cli/index.md +163 -0
  253. package/docs/id/cli/list.md +53 -0
  254. package/docs/id/cli/live.md +41 -0
  255. package/docs/id/cli/pull.md +78 -0
  256. package/docs/id/cli/push.md +98 -0
  257. package/docs/id/cli/sdk.md +67 -0
  258. package/docs/id/cli/test.md +76 -0
  259. package/docs/id/cli/transform.md +65 -0
  260. package/docs/id/cli/version.md +24 -0
  261. package/docs/id/cli/watch.md +37 -0
  262. package/docs/id/intlayer_with_svelte_kit.md +3 -2
  263. package/docs/id/packages/intlayer/getPrefix.md +210 -0
  264. package/docs/it/cli/build.md +64 -0
  265. package/docs/it/cli/configuration.md +63 -0
  266. package/docs/it/cli/debug.md +46 -0
  267. package/docs/it/cli/doc-review.md +43 -0
  268. package/docs/it/cli/doc-translate.md +132 -0
  269. package/docs/it/cli/editor.md +28 -0
  270. package/docs/it/cli/fill.md +130 -0
  271. package/docs/it/cli/index.md +158 -0
  272. package/docs/it/cli/list.md +53 -0
  273. package/docs/it/cli/live.md +41 -0
  274. package/docs/it/cli/pull.md +78 -0
  275. package/docs/it/cli/push.md +98 -0
  276. package/docs/it/cli/sdk.md +67 -0
  277. package/docs/it/cli/test.md +76 -0
  278. package/docs/it/cli/transform.md +65 -0
  279. package/docs/it/cli/version.md +24 -0
  280. package/docs/it/cli/watch.md +39 -0
  281. package/docs/it/intlayer_with_svelte_kit.md +3 -2
  282. package/docs/it/packages/intlayer/getPrefix.md +211 -0
  283. package/docs/ja/cli/build.md +78 -0
  284. package/docs/ja/cli/configuration.md +63 -0
  285. package/docs/ja/cli/debug.md +46 -0
  286. package/docs/ja/cli/doc-review.md +43 -0
  287. package/docs/ja/cli/doc-translate.md +132 -0
  288. package/docs/ja/cli/editor.md +28 -0
  289. package/docs/ja/cli/fill.md +130 -0
  290. package/docs/ja/cli/index.md +163 -0
  291. package/docs/ja/cli/list.md +53 -0
  292. package/docs/ja/cli/live.md +41 -0
  293. package/docs/ja/cli/pull.md +78 -0
  294. package/docs/ja/cli/push.md +113 -0
  295. package/docs/ja/cli/sdk.md +67 -0
  296. package/docs/ja/cli/test.md +76 -0
  297. package/docs/ja/cli/transform.md +65 -0
  298. package/docs/ja/cli/version.md +24 -0
  299. package/docs/ja/cli/watch.md +37 -0
  300. package/docs/ja/intlayer_with_svelte_kit.md +3 -2
  301. package/docs/ja/packages/intlayer/getPrefix.md +212 -0
  302. package/docs/ko/cli/build.md +64 -0
  303. package/docs/ko/cli/configuration.md +63 -0
  304. package/docs/ko/cli/debug.md +46 -0
  305. package/docs/ko/cli/doc-review.md +43 -0
  306. package/docs/ko/cli/doc-translate.md +132 -0
  307. package/docs/ko/cli/editor.md +28 -0
  308. package/docs/ko/cli/fill.md +130 -0
  309. package/docs/ko/cli/index.md +163 -0
  310. package/docs/ko/cli/list.md +53 -0
  311. package/docs/ko/cli/live.md +41 -0
  312. package/docs/ko/cli/pull.md +78 -0
  313. package/docs/ko/cli/push.md +113 -0
  314. package/docs/ko/cli/sdk.md +67 -0
  315. package/docs/ko/cli/test.md +76 -0
  316. package/docs/ko/cli/transform.md +65 -0
  317. package/docs/ko/cli/version.md +24 -0
  318. package/docs/ko/cli/watch.md +37 -0
  319. package/docs/ko/intlayer_with_svelte_kit.md +3 -2
  320. package/docs/ko/packages/intlayer/getPrefix.md +213 -0
  321. package/docs/pl/cli/build.md +64 -0
  322. package/docs/pl/cli/configuration.md +63 -0
  323. package/docs/pl/cli/debug.md +46 -0
  324. package/docs/pl/cli/doc-review.md +43 -0
  325. package/docs/pl/cli/doc-translate.md +132 -0
  326. package/docs/pl/cli/editor.md +28 -0
  327. package/docs/pl/cli/fill.md +130 -0
  328. package/docs/pl/cli/index.md +163 -0
  329. package/docs/pl/cli/list.md +53 -0
  330. package/docs/pl/cli/live.md +41 -0
  331. package/docs/pl/cli/pull.md +78 -0
  332. package/docs/pl/cli/push.md +98 -0
  333. package/docs/pl/cli/sdk.md +67 -0
  334. package/docs/pl/cli/test.md +76 -0
  335. package/docs/pl/cli/transform.md +65 -0
  336. package/docs/pl/cli/version.md +24 -0
  337. package/docs/pl/cli/watch.md +39 -0
  338. package/docs/pl/intlayer_with_svelte_kit.md +3 -2
  339. package/docs/pl/packages/intlayer/getPrefix.md +217 -0
  340. package/docs/pt/cli/build.md +64 -0
  341. package/docs/pt/cli/configuration.md +63 -0
  342. package/docs/pt/cli/debug.md +46 -0
  343. package/docs/pt/cli/doc-review.md +43 -0
  344. package/docs/pt/cli/doc-translate.md +132 -0
  345. package/docs/pt/cli/editor.md +28 -0
  346. package/docs/pt/cli/fill.md +130 -0
  347. package/docs/pt/cli/index.md +163 -0
  348. package/docs/pt/cli/list.md +53 -0
  349. package/docs/pt/cli/live.md +41 -0
  350. package/docs/pt/cli/pull.md +78 -0
  351. package/docs/pt/cli/push.md +98 -0
  352. package/docs/pt/cli/sdk.md +67 -0
  353. package/docs/pt/cli/test.md +76 -0
  354. package/docs/pt/cli/transform.md +65 -0
  355. package/docs/pt/cli/version.md +24 -0
  356. package/docs/pt/cli/watch.md +39 -0
  357. package/docs/pt/intlayer_with_svelte_kit.md +3 -2
  358. package/docs/pt/packages/intlayer/getPrefix.md +217 -0
  359. package/docs/ru/cli/build.md +64 -0
  360. package/docs/ru/cli/configuration.md +63 -0
  361. package/docs/ru/cli/debug.md +46 -0
  362. package/docs/ru/cli/doc-review.md +43 -0
  363. package/docs/ru/cli/doc-translate.md +132 -0
  364. package/docs/ru/cli/editor.md +28 -0
  365. package/docs/ru/cli/fill.md +130 -0
  366. package/docs/ru/cli/index.md +163 -0
  367. package/docs/ru/cli/list.md +53 -0
  368. package/docs/ru/cli/live.md +41 -0
  369. package/docs/ru/cli/pull.md +78 -0
  370. package/docs/ru/cli/push.md +98 -0
  371. package/docs/ru/cli/sdk.md +67 -0
  372. package/docs/ru/cli/test.md +76 -0
  373. package/docs/ru/cli/transform.md +65 -0
  374. package/docs/ru/cli/version.md +24 -0
  375. package/docs/ru/cli/watch.md +39 -0
  376. package/docs/ru/intlayer_with_svelte_kit.md +3 -2
  377. package/docs/ru/packages/intlayer/getPrefix.md +213 -0
  378. package/docs/tr/CI_CD.md +2 -2
  379. package/docs/tr/cli/build.md +64 -0
  380. package/docs/tr/cli/configuration.md +63 -0
  381. package/docs/tr/cli/debug.md +46 -0
  382. package/docs/tr/cli/doc-review.md +43 -0
  383. package/docs/tr/cli/doc-translate.md +132 -0
  384. package/docs/tr/cli/editor.md +28 -0
  385. package/docs/tr/cli/fill.md +130 -0
  386. package/docs/tr/cli/index.md +163 -0
  387. package/docs/tr/cli/list.md +53 -0
  388. package/docs/tr/cli/live.md +41 -0
  389. package/docs/tr/cli/pull.md +78 -0
  390. package/docs/tr/cli/push.md +98 -0
  391. package/docs/tr/cli/sdk.md +67 -0
  392. package/docs/tr/cli/test.md +76 -0
  393. package/docs/tr/cli/transform.md +65 -0
  394. package/docs/tr/cli/version.md +24 -0
  395. package/docs/tr/cli/watch.md +39 -0
  396. package/docs/tr/dictionary/condition.md +1 -1
  397. package/docs/tr/dictionary/enumeration.md +1 -1
  398. package/docs/tr/dictionary/file.md +1 -1
  399. package/docs/tr/dictionary/gender.md +1 -1
  400. package/docs/tr/dictionary/insertion.md +1 -1
  401. package/docs/tr/dictionary/markdown.md +1 -1
  402. package/docs/tr/dictionary/nesting.md +1 -1
  403. package/docs/tr/index.md +1 -1
  404. package/docs/tr/intlayer_with_angular.md +1 -1
  405. package/docs/tr/intlayer_with_create_react_app.md +1 -1
  406. package/docs/tr/intlayer_with_lynx+react.md +1 -1
  407. package/docs/tr/intlayer_with_nextjs_15.md +1 -1
  408. package/docs/tr/intlayer_with_nextjs_page_router.md +1 -1
  409. package/docs/tr/intlayer_with_nuxt.md +1 -1
  410. package/docs/tr/intlayer_with_react_native+expo.md +1 -1
  411. package/docs/tr/intlayer_with_svelte_kit.md +3 -2
  412. package/docs/tr/intlayer_with_vite+preact.md +1 -1
  413. package/docs/tr/intlayer_with_vite+react.md +1 -1
  414. package/docs/tr/intlayer_with_vite+solid.md +1 -1
  415. package/docs/tr/intlayer_with_vite+vue.md +1 -1
  416. package/docs/tr/introduction.md +1 -1
  417. package/docs/tr/mcp_server.md +1 -1
  418. package/docs/tr/packages/intlayer/getPrefix.md +213 -0
  419. package/docs/tr/per_locale_file.md +1 -1
  420. package/docs/tr/roadmap.md +1 -1
  421. package/docs/vi/cli/build.md +64 -0
  422. package/docs/vi/cli/configuration.md +63 -0
  423. package/docs/vi/cli/debug.md +46 -0
  424. package/docs/vi/cli/doc-review.md +43 -0
  425. package/docs/vi/cli/doc-translate.md +132 -0
  426. package/docs/vi/cli/editor.md +28 -0
  427. package/docs/vi/cli/fill.md +130 -0
  428. package/docs/vi/cli/index.md +163 -0
  429. package/docs/vi/cli/list.md +53 -0
  430. package/docs/vi/cli/live.md +41 -0
  431. package/docs/vi/cli/pull.md +78 -0
  432. package/docs/vi/cli/push.md +98 -0
  433. package/docs/vi/cli/sdk.md +67 -0
  434. package/docs/vi/cli/test.md +76 -0
  435. package/docs/vi/cli/transform.md +65 -0
  436. package/docs/vi/cli/version.md +24 -0
  437. package/docs/vi/cli/watch.md +37 -0
  438. package/docs/vi/intlayer_with_svelte_kit.md +3 -2
  439. package/docs/vi/packages/intlayer/getPrefix.md +213 -0
  440. package/docs/zh/cli/build.md +64 -0
  441. package/docs/zh/cli/configuration.md +63 -0
  442. package/docs/zh/cli/debug.md +46 -0
  443. package/docs/zh/cli/doc-review.md +43 -0
  444. package/docs/zh/cli/doc-translate.md +132 -0
  445. package/docs/zh/cli/editor.md +28 -0
  446. package/docs/zh/cli/fill.md +130 -0
  447. package/docs/zh/cli/index.md +168 -0
  448. package/docs/zh/cli/list.md +53 -0
  449. package/docs/zh/cli/live.md +41 -0
  450. package/docs/zh/cli/pull.md +78 -0
  451. package/docs/zh/cli/push.md +113 -0
  452. package/docs/zh/cli/sdk.md +67 -0
  453. package/docs/zh/cli/test.md +76 -0
  454. package/docs/zh/cli/transform.md +65 -0
  455. package/docs/zh/cli/version.md +24 -0
  456. package/docs/zh/cli/watch.md +37 -0
  457. package/docs/zh/intlayer_with_svelte_kit.md +3 -2
  458. package/docs/zh/packages/intlayer/getPrefix.md +213 -0
  459. package/package.json +7 -7
  460. package/src/generated/blog.entry.ts +19 -0
  461. package/src/generated/docs.entry.ts +323 -19
  462. package/docs/ar/intlayer_cli.md +0 -578
  463. package/docs/de/intlayer_cli.md +0 -579
  464. package/docs/en/intlayer_cli.md +0 -857
  465. package/docs/en-GB/intlayer_cli.md +0 -579
  466. package/docs/es/intlayer_cli.md +0 -578
  467. package/docs/fr/intlayer_cli.md +0 -578
  468. package/docs/hi/intlayer_cli.md +0 -580
  469. package/docs/id/intlayer_cli.md +0 -850
  470. package/docs/it/intlayer_cli.md +0 -574
  471. package/docs/ja/intlayer_cli.md +0 -580
  472. package/docs/ko/intlayer_cli.md +0 -578
  473. package/docs/pl/intlayer_cli.md +0 -857
  474. package/docs/pt/intlayer_cli.md +0 -579
  475. package/docs/ru/intlayer_cli.md +0 -849
  476. package/docs/tr/intlayer_cli.md +0 -578
  477. package/docs/vi/intlayer_cli.md +0 -850
  478. package/docs/zh/intlayer_cli.md +0 -577
@@ -0,0 +1,98 @@
1
+ ---
2
+ createdAt: 2024-08-11
3
+ updatedAt: 2025-11-22
4
+ title: Pousser les dictionnaires
5
+ description: Apprenez comment pousser vos dictionnaires vers l'éditeur Intlayer et le CMS.
6
+ keywords:
7
+ - Pousser
8
+ - Dictionnaires
9
+ - CLI
10
+ - Intlayer
11
+ - Éditeur
12
+ - CMS
13
+ slugs:
14
+ - doc
15
+ - concept
16
+ - cli
17
+ - push
18
+ ---
19
+
20
+ # Pousser les dictionnaires
21
+
22
+ ```bash
23
+ npx intlayer dictionary push
24
+ ```
25
+
26
+ Si [l'éditeur intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/intlayer_visual_editor.md) est installé, vous pouvez également pousser les dictionnaires vers l'éditeur. Cette commande permettra de rendre les dictionnaires disponibles dans [l'éditeur](https://intlayer.org/dashboard). De cette manière, vous pouvez partager vos dictionnaires avec votre équipe et éditer votre contenu sans modifier le code de votre application.
27
+
28
+ ## Alias :
29
+
30
+ - `npx intlayer dictionaries push`
31
+ - `npx intlayer dictionary push`
32
+ - `npx intlayer dic push`
33
+
34
+ ## Arguments :
35
+
36
+ **Options du dictionnaire :**
37
+
38
+ - **`-d`, `--dictionaries`** : identifiants des dictionnaires à pousser. Si non spécifié, tous les dictionnaires seront poussés.
39
+
40
+ > Exemple : `npx intlayer dictionary push -d my-dictionary-id my-other-dictionary-id`
41
+
42
+ - **`--dictionary`** : identifiants des dictionnaires à pousser (alias de --dictionaries).
43
+
44
+ > Exemple : `npx intlayer dictionary push --dictionary my-dictionary-id my-other-dictionary-id`
45
+
46
+ **Options de configuration :**
47
+
48
+ - **`--base-dir`** : Spécifie le répertoire de base du projet. Pour récupérer la configuration intlayer, la commande recherchera le fichier `intlayer.config.{ts,js,json,cjs,mjs}` dans le répertoire de base.
49
+
50
+ > Exemple : `npx intlayer dictionary push --env-file .env.production.local`
51
+
52
+ - **`--no-cache`** : Désactive le cache.
53
+
54
+ > Exemple : `npx intlayer build --no-cache`
55
+
56
+ **Options des variables d'environnement :**
57
+
58
+ - **`--env`** : Spécifie l'environnement (par exemple, `development`, `production`). Utile dans le cas où vous utilisez des variables d'environnement dans votre fichier de configuration intlayer.
59
+ - **`--env-file`** : Fournit un fichier d'environnement personnalisé pour charger les variables. Utile dans le cas où vous utilisez des variables d'environnement dans votre fichier de configuration intlayer.
60
+
61
+ > Exemple : `npx intlayer dictionary push --env-file .env.production.local`
62
+
63
+ > Exemple : `npx intlayer dictionary push --env production`
64
+
65
+ **Options de sortie :**
66
+
67
+ - **`-r`, `--delete-locale-dictionary`** : Ignore la question demandant de supprimer les répertoires des locales une fois les dictionnaires poussés, et les supprime. Par défaut, si le dictionnaire est défini localement, il écrasera le contenu des dictionnaires distants.
68
+
69
+ > Exemple : `npx intlayer dictionary push -r`
70
+
71
+ > Exemple : `npx intlayer dictionary push --delete-locale-dictionary`
72
+
73
+ - **`-k`, `--keep-locale-dictionary`** : Ignore la question demandant de supprimer les répertoires des locales une fois les dictionnaires poussés, et les conserve. Par défaut, si le dictionnaire est défini localement, il écrasera le contenu des dictionnaires distants.
74
+
75
+ > Exemple : `npx intlayer dictionary push -k`
76
+
77
+ > Exemple : `npx intlayer dictionary push --keep-locale-dictionary`
78
+
79
+ **Options de préparation :**
80
+
81
+ - **`--build`** : Construire les dictionnaires avant de les pousser pour s'assurer que le contenu est à jour. True forcera la construction, false la sautera, undefined permettra d'utiliser le cache de la construction.
82
+
83
+ **Options de journalisation :**
84
+
85
+ - **`--verbose`** : Activer la journalisation détaillée pour le débogage. (par défaut à true en utilisant la CLI)
86
+
87
+ **Options Git :**
88
+
89
+ - **`--git-diff`** : Ne s'exécute que sur les dictionnaires qui incluent des modifications depuis la base (par défaut `origin/main`) vers la branche courante (par défaut : `HEAD`).
90
+ - **`--git-diff-base`** : Spécifier la référence de base pour le git diff (par défaut `origin/main`).
91
+ - **`--git-diff-current`** : Spécifier la référence courante pour le git diff (par défaut : `HEAD`).
92
+ - **`--uncommitted`** : Inclure les modifications non validées.
93
+ - **`--unpushed`** : Inclure les modifications non poussées.
94
+ - **`--untracked`** : Inclure les fichiers non suivis.
95
+
96
+ > Exemple : `npx intlayer dictionary push --git-diff --git-diff-base origin/main --git-diff-current HEAD`
97
+
98
+ > Exemple : `npx intlayer dictionary push --uncommitted --unpushed --untracked`
@@ -0,0 +1,67 @@
1
+ ---
2
+ createdAt: 2024-08-11
3
+ updatedAt: 2025-11-22
4
+ title: SDK CLI
5
+ description: Apprenez à utiliser le SDK CLI Intlayer dans votre propre code.
6
+ keywords:
7
+ - SDK
8
+ - CLI
9
+ - Intlayer
10
+ - Programmation
11
+ slugs:
12
+ - doc
13
+ - concept
14
+ - cli
15
+ - sdk
16
+ ---
17
+
18
+ # SDK CLI
19
+
20
+ Le SDK CLI est une bibliothèque qui vous permet d'utiliser la CLI Intlayer dans votre propre code.
21
+
22
+ ```bash packageManager="npm"
23
+ npm install @intlayer/cli --save-dev
24
+ ```
25
+
26
+ ```bash packageManager="yarn"
27
+ yarn add @intlayer/cli --save-dev
28
+ ```
29
+
30
+ ```bash packageManager="pnpm"
31
+ pnpm add @intlayer/cli --save-dev
32
+ ```
33
+
34
+ Exemple d'utilisation :
35
+
36
+ ```ts
37
+ import {
38
+ push,
39
+ pull,
40
+ fill,
41
+ build,
42
+ listContentDeclaration,
43
+ testMissingTranslations,
44
+ docTranslate,
45
+ docReview,
46
+ transform,
47
+ } from "@intlayer/cli";
48
+
49
+ push();
50
+ // ...
51
+ pull();
52
+ // ...
53
+ fill();
54
+ // ...
55
+ build();
56
+ // ...
57
+ listContentDeclaration();
58
+ // ...
59
+ testMissingTranslations();
60
+ // ...
61
+ docTranslate();
62
+ // ...
63
+ docReview();
64
+ // ...
65
+ transform();
66
+ // ...
67
+ ```
@@ -0,0 +1,76 @@
1
+ ---
2
+ createdAt: 2024-08-11
3
+ updatedAt: 2025-11-22
4
+ title: Tester les traductions manquantes
5
+ description: Apprenez à tester et identifier les traductions manquantes dans vos dictionnaires.
6
+ keywords:
7
+ - Test
8
+ - Traductions manquantes
9
+ - CLI
10
+ - Intlayer
11
+ slugs:
12
+ - doc
13
+ - concept
14
+ - cli
15
+ - test
16
+ ---
17
+
18
+ # Tester les traductions manquantes
19
+
20
+ ```bash
21
+ npx intlayer content test
22
+ ```
23
+
24
+ ## Alias :
25
+
26
+ - `npx intlayer test`
27
+
28
+ Cette commande analyse vos fichiers de déclaration de contenu pour identifier les traductions manquantes dans toutes les locales configurées. Elle fournit un rapport complet indiquant quelles clés de traduction manquent pour quelles locales, vous aidant ainsi à maintenir la cohérence de votre contenu multilingue.
29
+
30
+ ## Exemple de sortie :
31
+
32
+ ```bash
33
+ pnpm intlayer content test
34
+ Missing translations:
35
+ - home-page - tr - src/components/HomePage/homePage.content.ts
36
+ - server-component - es, tr - src/components/ServerComponent/serverComponent.content.ts
37
+ - client-component - pl, tr - src/components/ClientComponent/clientComponent.content.ts
38
+ Locales : en, ru, ja, fr, ko, zh, es, de, ar, it, en-GB, pt, hi, tr, pl
39
+ Locales requises : en
40
+ Locales manquantes : pl, tr, es
41
+ Locales requises manquantes : -
42
+ Total des locales manquantes : 3
43
+ Total des locales requises manquantes : 0
44
+ ```
45
+
46
+ ## Arguments :
47
+
48
+ **Options de configuration :**
49
+
50
+ - **`--env`** : Spécifiez l'environnement (par exemple, `development`, `production`).
51
+ - **`--env-file [envFile]`** : Fournissez un fichier d'environnement personnalisé pour charger les variables.
52
+ - **`--base-dir`** : Spécifiez le répertoire de base pour le projet.
53
+
54
+ > Exemple : `npx intlayer content test --base-dir ./src --env-file .env.production.local`
55
+
56
+ - **`--no-cache`** : Désactive le cache.
57
+
58
+ > Exemple : `npx intlayer build --no-cache`
59
+
60
+ **Options de préparation :**
61
+
62
+ - **`--build`** : Construire les dictionnaires avant de pousser pour s'assurer que le contenu est à jour. True forcera la construction, false la sautera, undefined permettra d'utiliser le cache de la construction.
63
+
64
+ **Options de journalisation :**
65
+
66
+ - **`--verbose`** : Active la journalisation détaillée pour le débogage. (par défaut à true en utilisant la CLI)
67
+
68
+ > Exemple : `npx intlayer content test --verbose`
69
+
70
+ ## Exemple :
71
+
72
+ ```bash
73
+ npx intlayer content test --verbose
74
+ ```
75
+
76
+ La sortie vous aide à identifier rapidement quelles traductions doivent être complétées pour garantir que votre application fonctionne correctement sur toutes les locales configurées.
@@ -0,0 +1,65 @@
1
+ ---
2
+ createdAt: 2024-08-11
3
+ updatedAt: 2025-11-22
4
+ title: Transformer les composants
5
+ description: Apprenez comment transformer des composants existants pour utiliser Intlayer.
6
+ keywords:
7
+ - Transformation
8
+ - Composants
9
+ - Migration
10
+ - CLI
11
+ - Intlayer
12
+ slugs:
13
+ - doc
14
+ - concept
15
+ - cli
16
+ - transform
17
+ ---
18
+
19
+ # Transformer les composants
20
+
21
+ ```bash
22
+ npx intlayer transform
23
+ ```
24
+
25
+ Cette commande analyse vos fichiers de code pour aider à migrer les composants existants afin d’utiliser Intlayer. Elle prend en charge la sélection interactive des fichiers ou la cible de fichiers spécifiques.
26
+
27
+ ## Alias :
28
+
29
+ - `npx intlayer trans`
30
+
31
+ ## Arguments :
32
+
33
+ **Options de sélection des fichiers :**
34
+
35
+ - **`-f, --file [files...]`** : Liste des fichiers spécifiques à transformer. Si non fourni, le CLI analysera les fichiers correspondants (`**/*.{tsx,jsx,vue,svelte,ts,js}`) et vous invitera à sélectionner ceux à transformer.
36
+
37
+ > Exemple : `npx intlayer transform -f src/components/MyComponent.tsx`
38
+
39
+ **Options de sortie :**
40
+
41
+ - **`-o, --output-content-declarations [outputContentDeclarations]`** : Répertoire pour enregistrer les fichiers de déclaration de contenu générés.
42
+
43
+ > Exemple : `npx intlayer transform -o src/content`
44
+
45
+ - **`--code-only`** : Transformer uniquement le code du composant (ne pas écrire la déclaration de contenu).
46
+
47
+ > Exemple : `npx intlayer transform --code-only`
48
+
49
+ - **`--declaration-only`** : Générer uniquement la déclaration de contenu (ne pas réécrire le composant).
50
+
51
+ > Exemple : `npx intlayer transform --declaration-only`
52
+
53
+ **Options de configuration :**
54
+
55
+ - **`--base-dir`** : Spécifier le répertoire de base du projet.
56
+ - **`--env`** : Spécifier l’environnement.
57
+ - **`--env-file`** : Fournir un fichier d’environnement personnalisé.
58
+ - **`--verbose`** : Activer la journalisation détaillée.
59
+
60
+ **Plugins requis :**
61
+
62
+ La commande transform fonctionne sans plugin supplémentaire sur les fichiers TypeScript / JSX. Cependant, elle nécessite l'installation des plugins suivants pour les projets Vue et Svelte :
63
+
64
+ - **`@intlayer/vue-transformer`** : Pour les fichiers Vue.
65
+ - **`@intlayer/svelte-transformer`** : Pour les fichiers Svelte.
@@ -0,0 +1,24 @@
1
+ ---
2
+ createdAt: 2024-08-11
3
+ updatedAt: 2025-11-22
4
+ title: Vérifier la version du CLI
5
+ description: Apprenez comment vérifier la version installée du CLI Intlayer.
6
+ keywords:
7
+ - Version
8
+ - CLI
9
+ - Intlayer
10
+ slugs:
11
+ - doc
12
+ - concept
13
+ - cli
14
+ - version
15
+ ---
16
+
17
+ # Vérifier la version du CLI
18
+
19
+ ```bash
20
+ npx intlayer --version
21
+ npx intlayer version
22
+ ```
23
+
24
+ Les deux commandes affichent la version installée du CLI Intlayer.
@@ -0,0 +1,37 @@
1
+ ---
2
+ createdAt: 2024-08-11
3
+ updatedAt: 2025-11-22
4
+ title: Surveiller les dictionnaires
5
+ description: Apprenez à surveiller les modifications dans vos fichiers de déclaration de contenu et à construire automatiquement les dictionnaires.
6
+ keywords:
7
+ - Surveiller
8
+ - Dictionnaires
9
+ - CLI
10
+ - Intlayer
11
+ slugs:
12
+ - doc
13
+ - concept
14
+ - cli
15
+ - watch
16
+ ---
17
+
18
+ # Surveiller les dictionnaires
19
+
20
+ ```bash
21
+ npx intlayer watch
22
+ ```
23
+
24
+ Cette commande surveillera les modifications dans vos fichiers de déclaration de contenu et construira les dictionnaires dans le répertoire `.intlayer`.
25
+ Cette commande est l'équivalent de `npx intlayer build --watch --skip-prepare`.
26
+
27
+ ## Alias :
28
+
29
+ - `npx intlayer dictionaries watch`
30
+ - `npx intlayer dictionary watch`
31
+ - `npx intlayer dic watch`
32
+
33
+ ## Arguments :
34
+
35
+ - **`--with`** : Démarrer une commande en parallèle avec la surveillance.
36
+
37
+ > Exemple : `npx intlayer watch --with "next dev --turbopack"`
@@ -555,8 +555,9 @@ export const load: Load = ({ params }) => {
555
555
  let { children, data }: { children: Snippet, data: LayoutData } = $props();
556
556
 
557
557
  // Initialiser Intlayer avec la locale provenant de la route
558
- setupIntlayer(data.locale);
559
-
558
+ $effect(() => {
559
+ setupIntlayer(data.locale);
560
+ });
560
561
  // Utiliser le dictionnaire de contenu du layout
561
562
  const layoutContent = useIntlayer('layout');
562
563
  </script>
@@ -0,0 +1,213 @@
1
+ ---
2
+ createdAt: 2025-11-16
3
+ updatedAt: 2025-11-16
4
+ title: Documentation de la fonction getPrefix | intlayer
5
+ description: Découvrez comment utiliser la fonction getPrefix pour le package intlayer
6
+ keywords:
7
+ - getPrefix
8
+ - préfixe
9
+ - Intlayer
10
+ - intlayer
11
+ - Internationalisation
12
+ - Documentation
13
+ - Next.js
14
+ - JavaScript
15
+ - React
16
+ slugs:
17
+ - doc
18
+ - packages
19
+ - intlayer
20
+ - getPrefix
21
+ history:
22
+ - version: 7.1.0
23
+ date: 2025-11-16
24
+ changes: Documentation initiale
25
+ ---
26
+
27
+ # Documentation : Fonction `getPrefix` dans `intlayer`
28
+
29
+ ## Description
30
+
31
+ La fonction `getPrefix` détermine le préfixe d’URL pour une locale donnée en fonction de la configuration du mode de routage. Elle compare la locale avec la locale par défaut et retourne un objet contenant trois formats de préfixe différents pour une construction flexible des URL.
32
+
33
+ **Fonctionnalités clés :**
34
+
35
+ - Prend une locale en premier paramètre (obligatoire)
36
+ - Objet `options` optionnel avec `defaultLocale` et `mode`
37
+ - Retourne un objet avec les propriétés `prefix` et `localePrefix`
38
+ - Supporte tous les modes de routage : `prefix-no-default`, `prefix-all`, `no-prefix` et `search-params`
39
+ - Utilitaire léger pour déterminer quand ajouter les préfixes de locale
40
+
41
+ ---
42
+
43
+ ## Signature de la fonction
44
+
45
+ ```typescript
46
+ getPrefix(
47
+ locale: Locales, // Obligatoire
48
+ options?: { // Optionnel
49
+ defaultLocale?: Locales;
50
+ mode?: 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params';
51
+ }
52
+ ): GetPrefixResult
53
+
54
+ type GetPrefixResult = {
55
+ prefix: string; // ex. : 'fr/' ou ''
56
+ localePrefix?: Locale; // ex. : 'fr' ou undefined
57
+ }
58
+ ```
59
+
60
+ ---
61
+
62
+ ## Paramètres
63
+
64
+ - `locale: Locales`
65
+ - **Description** : La locale pour laquelle générer le préfixe. Si la valeur est falsy (undefined, null, chaîne vide), la fonction retourne une chaîne vide.
66
+ - **Type** : `Locales`
67
+ - **Obligatoire** : Oui
68
+
69
+ - `options?: object`
70
+ - **Description** : Objet de configuration pour la détermination du préfixe.
71
+ - **Type** : `object`
72
+ - **Obligatoire** : Non (Optionnel)
73
+
74
+ - `options.defaultLocale?: Locales`
75
+ - **Description** : La locale par défaut de l'application. Si non fournie, utilise la locale par défaut configurée dans la configuration de votre projet.
76
+ - **Type** : `Locales`
77
+ - **Défaut** : [`Configuration du projet`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/configuration.md#middleware)
78
+
79
+ - `options.mode?: 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params'`
80
+ - **Description** : Le mode de routage URL pour la gestion des locales. Si non fourni, utilise le mode configuré dans la configuration de votre projet.
81
+ - **Type** : `'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params'`
82
+ - **Défaut** : [`Configuration du projet`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/configuration.md#middleware)
83
+ - **Modes** :
84
+ - `prefix-no-default` : Retourne des chaînes vides lorsque la locale correspond à la locale par défaut
85
+ - `prefix-all` : Retourne un préfixe pour toutes les locales, y compris la locale par défaut
86
+ - `no-prefix` : Retourne des chaînes vides (pas de préfixe dans les URLs)
87
+ - `search-params` : Retourne des chaînes vides (locale dans les paramètres de requête)
88
+
89
+ ### Retourne
90
+
91
+ - **Type** : `GetPrefixResult`
92
+ - **Description** : Un objet contenant trois formats de préfixes différents :
93
+ - `prefix` : Le préfixe de chemin avec une barre oblique finale (par exemple, `'fr/'`, `''`)
94
+ - `localePrefix` : L'identifiant de la locale sans barres obliques (par exemple, `'fr'`, `undefined`)
95
+
96
+ ---
97
+
98
+ ## Exemple d'utilisation
99
+
100
+ ### Utilisation basique
101
+
102
+ ```typescript codeFormat="typescript"
103
+ import { getPrefix, Locales } from "intlayer";
104
+
105
+ // Vérifier le préfixe pour la locale anglaise
106
+ getPrefix(Locales.ENGLISH, {
107
+ defaultLocale: Locales.ENGLISH,
108
+ mode: "prefix-all",
109
+ });
110
+ // Retourne : { prefix: 'en/', localePrefix: 'en' }
111
+
112
+ // Vérifier le préfixe pour la locale française
113
+ getPrefix(Locales.FRENCH, {
114
+ defaultLocale: Locales.ENGLISH,
115
+ mode: "prefix-no-default",
116
+ });
117
+ // Retourne : { prefix: 'fr/', localePrefix: 'fr' }
118
+ ```
119
+
120
+ ```javascript codeFormat="esm"
121
+ import { getPrefix, Locales } from "intlayer";
122
+
123
+ getPrefix(Locales.ENGLISH, { mode: "prefix-all" });
124
+ // Retourne : { prefix: '', localePrefix: undefined }
125
+ ```
126
+
127
+ ```javascript codeFormat="commonjs"
128
+ const { getPrefix, Locales } = require("intlayer");
129
+
130
+ getPrefix(Locales.ENGLISH, { mode: "prefix-all" });
131
+ // Retourne : { prefix: '', localePrefix: undefined }
132
+ ```
133
+
134
+ ### Différents modes de routage
135
+
136
+ ```typescript
137
+ import { getPrefix, Locales } from "intlayer";
138
+
139
+ // prefix-all : Retourne toujours un préfixe
140
+ getPrefix(Locales.ENGLISH, {
141
+ mode: "prefix-all",
142
+ defaultLocale: Locales.ENGLISH,
143
+ });
144
+ // Retourne : { prefix: '/en', localePrefix: 'en' }
145
+
146
+ // prefix-no-default : Pas de préfixe lorsque la locale correspond à la locale par défaut
147
+ getPrefix(Locales.ENGLISH, {
148
+ mode: "prefix-no-default",
149
+ defaultLocale: Locales.ENGLISH,
150
+ });
151
+ // Retourne : { prefix: '', localePrefix: undefined }
152
+
153
+ // prefix-no-default : Retourne un préfixe lorsque la locale diffère de la locale par défaut
154
+ getPrefix(Locales.FRENCH, {
155
+ mode: "prefix-no-default",
156
+ defaultLocale: Locales.ENGLISH,
157
+ });
158
+ // Retourne : { prefix: 'fr/', localePrefix: 'fr' }
159
+
160
+ // no-prefix & search-params : Ne retourne jamais de préfixe
161
+ getPrefix(Locales.ENGLISH, { mode: "no-prefix" });
162
+ // Retourne : { prefix: '', localePrefix: undefined }
163
+
164
+ getPrefix(Locales.ENGLISH, { mode: "search-params" });
165
+ // Retourne : { prefix: '', localePrefix: undefined }
166
+ ```
167
+
168
+ ### Exemple pratique
169
+
170
+ ```typescript
171
+ import { getPrefix, Locales } from "intlayer";
172
+
173
+ // Construire des URLs avec le préfixe approprié pour une locale spécifique
174
+ const locale = Locales.FRENCH;
175
+ const { prefix, localePrefix } = getPrefix(locale, {
176
+ defaultLocale: Locales.ENGLISH,
177
+ mode: "prefix-no-default",
178
+ });
179
+
180
+ // // Utilisation du préfixe pour la construction du chemin
181
+ const url1 = `/${prefix}about`.replace(/\/+/g, "/");
182
+ // Résultat : "/fr/about"
183
+
184
+ // Utilisation de localePrefix pour l'identification de la locale
185
+ console.log(`Locale actuelle : ${localePrefix}`);
186
+ // Sortie : "Locale actuelle : fr"
187
+ ```
188
+
189
+ ---
190
+
191
+ ## Fonctions associées
192
+
193
+ - [`getLocalizedUrl`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/intlayer/getLocalizedUrl.md) : Génère une URL localisée pour une locale spécifique
194
+ - [`getMultilingualUrls`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/intlayer/getMultilingualUrls.md) : Génère des URLs pour toutes les locales configurées
195
+
196
+ ---
197
+
198
+ ## TypeScript
199
+
200
+ ```typescript
201
+ type GetPrefixResult = {
202
+ prefix: string; // Le préfixe de chemin avec une barre oblique finale (ex. : 'fr/' ou '')
203
+ localePrefix?: Locale; // L'identifiant de la locale sans slash (par exemple, 'fr' ou undefined)
204
+ };
205
+
206
+ function getPrefix(
207
+ locale: Locales,
208
+ options?: {
209
+ defaultLocale?: Locales;
210
+ mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params";
211
+ }
212
+ ): GetPrefixResult;
213
+ ```
@@ -0,0 +1,64 @@
1
+ ---
2
+ createdAt: 2024-08-11
3
+ updatedAt: 2025-11-22
4
+ title: शब्दकोश बनाएं
5
+ description: कंटेंट घोषणा फ़ाइलों से अपने Intlayer शब्दकोश बनाने का तरीका सीखें।
6
+ keywords:
7
+ - बनाएं
8
+ - शब्दकोश
9
+ - CLI
10
+ - Intlayer
11
+ slugs:
12
+ - doc
13
+ - concept
14
+ - cli
15
+ - build
16
+ ---
17
+
18
+ # शब्दकोश बनाएं
19
+
20
+ अपने शब्दकोश बनाने के लिए, आप निम्नलिखित कमांड चला सकते हैं:
21
+
22
+ ```bash
23
+ npx intlayer build
24
+ ```
25
+
26
+ या वॉच मोड में
27
+
28
+ ```bash
29
+ npx intlayer build --watch
30
+ ```
31
+
32
+ यह कमांड डिफ़ॉल्ट रूप से आपकी घोषणा कंटेंट फ़ाइलों को `./src/**/*.content.{ts|js|mjs|cjs|json|tsx|jsx}` के रूप में खोजेगा। और `.intlayer` डायरेक्टरी में शब्दकोश बनाएगा।
33
+
34
+ ## उपनाम:
35
+
36
+ - `npx intlayer dictionaries build`
37
+ - `npx intlayer dictionary build`
38
+ - `npx intlayer dic build`
39
+
40
+ ## तर्क:
41
+
42
+ - **`--base-dir`**: प्रोजेक्ट के लिए बेस डायरेक्टरी निर्दिष्ट करें। intlayer कॉन्फ़िगरेशन प्राप्त करने के लिए, कमांड बेस डायरेक्टरी में `intlayer.config.{ts,js,json,cjs,mjs}` फ़ाइल खोजेगा।
43
+
44
+ > उदाहरण: `npx intlayer build --base-dir ./src`
45
+
46
+ - **`--env`**: पर्यावरण निर्दिष्ट करें (जैसे, `development`, `production`)। यह उपयोगी होता है जब आप अपनी intlayer कॉन्फ़िगरेशन फ़ाइल में पर्यावरण चर (environment variables) का उपयोग करते हैं।
47
+
48
+ > उदाहरण: `npx intlayer build --env production`
49
+
50
+ - **`--env-file`**: एक कस्टम पर्यावरण फ़ाइल प्रदान करें जिससे चर लोड किए जाएं। यह उपयोगी होता है जब आप अपनी intlayer कॉन्फ़िगरेशन फ़ाइल में पर्यावरण चर का उपयोग करते हैं।
51
+
52
+ > उदाहरण: `npx intlayer build --env-file .env.production.local`
53
+
54
+ - **`--with`**: बिल्ड के साथ समानांतर में कमांड शुरू करें।
55
+
56
+ > उदाहरण: `npx intlayer build --with "next dev --turbopack"`
57
+
58
+ - **`--skip-prepare`**: prepare चरण को छोड़ें।
59
+
60
+ > उदाहरण: `npx intlayer build --skip-prepare`
61
+
62
+ - **`--no-cache`**: कैश को अक्षम करें।
63
+
64
+ > उदाहरण: `npx intlayer build --no-cache`