@intlayer/docs 7.2.3 → 7.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 (461) 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/packages/intlayer/getPrefix.md +210 -0
  89. package/docs/de/cli/build.md +64 -0
  90. package/docs/de/cli/configuration.md +63 -0
  91. package/docs/de/cli/debug.md +46 -0
  92. package/docs/de/cli/doc-review.md +43 -0
  93. package/docs/de/cli/doc-translate.md +132 -0
  94. package/docs/de/cli/editor.md +28 -0
  95. package/docs/de/cli/fill.md +130 -0
  96. package/docs/de/cli/index.md +163 -0
  97. package/docs/de/cli/list.md +53 -0
  98. package/docs/de/cli/live.md +41 -0
  99. package/docs/de/cli/pull.md +78 -0
  100. package/docs/de/cli/push.md +98 -0
  101. package/docs/de/cli/sdk.md +67 -0
  102. package/docs/de/cli/test.md +76 -0
  103. package/docs/de/cli/transform.md +65 -0
  104. package/docs/de/cli/version.md +24 -0
  105. package/docs/de/cli/watch.md +37 -0
  106. package/docs/de/packages/intlayer/getPrefix.md +213 -0
  107. package/docs/en/CI_CD.md +2 -2
  108. package/docs/en/autoFill.md +24 -2
  109. package/docs/en/cli/build.md +64 -0
  110. package/docs/en/cli/configuration.md +63 -0
  111. package/docs/en/cli/debug.md +46 -0
  112. package/docs/en/cli/doc-review.md +43 -0
  113. package/docs/en/cli/doc-translate.md +132 -0
  114. package/docs/en/cli/editor.md +28 -0
  115. package/docs/en/cli/fill.md +130 -0
  116. package/docs/en/cli/index.md +163 -0
  117. package/docs/en/cli/list.md +53 -0
  118. package/docs/en/cli/live.md +41 -0
  119. package/docs/en/cli/pull.md +78 -0
  120. package/docs/en/cli/push.md +98 -0
  121. package/docs/en/cli/sdk.md +67 -0
  122. package/docs/en/cli/test.md +76 -0
  123. package/docs/en/cli/transform.md +65 -0
  124. package/docs/en/cli/version.md +24 -0
  125. package/docs/en/cli/watch.md +37 -0
  126. package/docs/en/dictionary/condition.md +1 -1
  127. package/docs/en/dictionary/enumeration.md +1 -1
  128. package/docs/en/dictionary/file.md +1 -1
  129. package/docs/en/dictionary/gender.md +1 -1
  130. package/docs/en/dictionary/insertion.md +1 -1
  131. package/docs/en/dictionary/markdown.md +1 -1
  132. package/docs/en/dictionary/nesting.md +1 -1
  133. package/docs/en/index.md +1 -1
  134. package/docs/en/intlayer_with_angular.md +1 -1
  135. package/docs/en/intlayer_with_astro.md +1 -1
  136. package/docs/en/intlayer_with_create_react_app.md +1 -1
  137. package/docs/en/intlayer_with_lynx+react.md +1 -1
  138. package/docs/en/intlayer_with_next-i18next.md +1 -1
  139. package/docs/en/intlayer_with_next-intl.md +1 -1
  140. package/docs/en/intlayer_with_nextjs_14.md +1 -1
  141. package/docs/en/intlayer_with_nextjs_15.md +1 -1
  142. package/docs/en/intlayer_with_nextjs_16.md +1 -1
  143. package/docs/en/intlayer_with_nextjs_page_router.md +1 -1
  144. package/docs/en/intlayer_with_nuxt.md +1 -1
  145. package/docs/en/intlayer_with_react_native+expo.md +1 -1
  146. package/docs/en/intlayer_with_react_router_v7.md +1 -1
  147. package/docs/en/intlayer_with_tanstack.md +1 -1
  148. package/docs/en/intlayer_with_vite+preact.md +1 -1
  149. package/docs/en/intlayer_with_vite+react.md +1 -1
  150. package/docs/en/intlayer_with_vite+solid.md +1 -1
  151. package/docs/en/intlayer_with_vite+svelte.md +1 -1
  152. package/docs/en/intlayer_with_vite+vue.md +1 -1
  153. package/docs/en/introduction.md +1 -1
  154. package/docs/en/mcp_server.md +1 -2
  155. package/docs/en/per_locale_file.md +1 -1
  156. package/docs/en/plugins/sync-json.md +1 -1
  157. package/docs/en/releases/v6.md +2 -2
  158. package/docs/en/roadmap.md +1 -1
  159. package/docs/en-GB/cli/build.md +64 -0
  160. package/docs/en-GB/cli/configuration.md +63 -0
  161. package/docs/en-GB/cli/debug.md +46 -0
  162. package/docs/en-GB/cli/doc-review.md +43 -0
  163. package/docs/en-GB/cli/doc-translate.md +132 -0
  164. package/docs/en-GB/cli/editor.md +28 -0
  165. package/docs/en-GB/cli/fill.md +130 -0
  166. package/docs/en-GB/cli/index.md +163 -0
  167. package/docs/en-GB/cli/list.md +53 -0
  168. package/docs/en-GB/cli/live.md +41 -0
  169. package/docs/en-GB/cli/pull.md +78 -0
  170. package/docs/en-GB/cli/push.md +98 -0
  171. package/docs/en-GB/cli/sdk.md +67 -0
  172. package/docs/en-GB/cli/test.md +100 -0
  173. package/docs/en-GB/cli/transform.md +65 -0
  174. package/docs/en-GB/cli/version.md +24 -0
  175. package/docs/en-GB/cli/watch.md +37 -0
  176. package/docs/en-GB/dictionary/condition.md +1 -1
  177. package/docs/en-GB/dictionary/markdown.md +1 -1
  178. package/docs/en-GB/dictionary/nesting.md +1 -1
  179. package/docs/en-GB/intlayer_with_nextjs_14.md +1 -1
  180. package/docs/en-GB/intlayer_with_react_native+expo.md +1 -1
  181. package/docs/en-GB/packages/intlayer/getPrefix.md +213 -0
  182. package/docs/es/cli/build.md +64 -0
  183. package/docs/es/cli/configuration.md +63 -0
  184. package/docs/es/cli/debug.md +46 -0
  185. package/docs/es/cli/doc-review.md +43 -0
  186. package/docs/es/cli/doc-translate.md +132 -0
  187. package/docs/es/cli/editor.md +28 -0
  188. package/docs/es/cli/fill.md +130 -0
  189. package/docs/es/cli/index.md +163 -0
  190. package/docs/es/cli/list.md +53 -0
  191. package/docs/es/cli/live.md +41 -0
  192. package/docs/es/cli/pull.md +78 -0
  193. package/docs/es/cli/push.md +98 -0
  194. package/docs/es/cli/sdk.md +67 -0
  195. package/docs/es/cli/test.md +76 -0
  196. package/docs/es/cli/transform.md +65 -0
  197. package/docs/es/cli/version.md +24 -0
  198. package/docs/es/cli/watch.md +37 -0
  199. package/docs/es/packages/intlayer/getPrefix.md +213 -0
  200. package/docs/fr/cli/build.md +64 -0
  201. package/docs/fr/cli/configuration.md +63 -0
  202. package/docs/fr/cli/debug.md +46 -0
  203. package/docs/fr/cli/doc-review.md +43 -0
  204. package/docs/fr/cli/doc-translate.md +132 -0
  205. package/docs/fr/cli/editor.md +28 -0
  206. package/docs/fr/cli/fill.md +130 -0
  207. package/docs/fr/cli/index.md +163 -0
  208. package/docs/fr/cli/list.md +53 -0
  209. package/docs/fr/cli/live.md +41 -0
  210. package/docs/fr/cli/pull.md +78 -0
  211. package/docs/fr/cli/push.md +98 -0
  212. package/docs/fr/cli/sdk.md +67 -0
  213. package/docs/fr/cli/test.md +76 -0
  214. package/docs/fr/cli/transform.md +65 -0
  215. package/docs/fr/cli/version.md +24 -0
  216. package/docs/fr/cli/watch.md +37 -0
  217. package/docs/fr/packages/intlayer/getPrefix.md +213 -0
  218. package/docs/hi/cli/build.md +64 -0
  219. package/docs/hi/cli/configuration.md +63 -0
  220. package/docs/hi/cli/debug.md +46 -0
  221. package/docs/hi/cli/doc-review.md +43 -0
  222. package/docs/hi/cli/doc-translate.md +132 -0
  223. package/docs/hi/cli/editor.md +28 -0
  224. package/docs/hi/cli/fill.md +130 -0
  225. package/docs/hi/cli/index.md +163 -0
  226. package/docs/hi/cli/list.md +53 -0
  227. package/docs/hi/cli/live.md +41 -0
  228. package/docs/hi/cli/pull.md +78 -0
  229. package/docs/hi/cli/push.md +98 -0
  230. package/docs/hi/cli/sdk.md +67 -0
  231. package/docs/hi/cli/test.md +76 -0
  232. package/docs/hi/cli/transform.md +65 -0
  233. package/docs/hi/cli/version.md +24 -0
  234. package/docs/hi/cli/watch.md +37 -0
  235. package/docs/hi/intlayer_with_tanstack.md +1 -1
  236. package/docs/hi/intlayer_with_vite+solid.md +1 -1
  237. package/docs/hi/packages/intlayer/getPrefix.md +217 -0
  238. package/docs/id/cli/build.md +64 -0
  239. package/docs/id/cli/configuration.md +62 -0
  240. package/docs/id/cli/debug.md +46 -0
  241. package/docs/id/cli/doc-review.md +43 -0
  242. package/docs/id/cli/doc-translate.md +132 -0
  243. package/docs/id/cli/editor.md +28 -0
  244. package/docs/id/cli/fill.md +130 -0
  245. package/docs/id/cli/index.md +163 -0
  246. package/docs/id/cli/list.md +53 -0
  247. package/docs/id/cli/live.md +41 -0
  248. package/docs/id/cli/pull.md +78 -0
  249. package/docs/id/cli/push.md +98 -0
  250. package/docs/id/cli/sdk.md +67 -0
  251. package/docs/id/cli/test.md +76 -0
  252. package/docs/id/cli/transform.md +65 -0
  253. package/docs/id/cli/version.md +24 -0
  254. package/docs/id/cli/watch.md +37 -0
  255. package/docs/id/packages/intlayer/getPrefix.md +210 -0
  256. package/docs/it/cli/build.md +64 -0
  257. package/docs/it/cli/configuration.md +63 -0
  258. package/docs/it/cli/debug.md +46 -0
  259. package/docs/it/cli/doc-review.md +43 -0
  260. package/docs/it/cli/doc-translate.md +132 -0
  261. package/docs/it/cli/editor.md +28 -0
  262. package/docs/it/cli/fill.md +130 -0
  263. package/docs/it/cli/index.md +158 -0
  264. package/docs/it/cli/list.md +53 -0
  265. package/docs/it/cli/live.md +41 -0
  266. package/docs/it/cli/pull.md +78 -0
  267. package/docs/it/cli/push.md +98 -0
  268. package/docs/it/cli/sdk.md +67 -0
  269. package/docs/it/cli/test.md +76 -0
  270. package/docs/it/cli/transform.md +65 -0
  271. package/docs/it/cli/version.md +24 -0
  272. package/docs/it/cli/watch.md +39 -0
  273. package/docs/it/packages/intlayer/getPrefix.md +211 -0
  274. package/docs/ja/cli/build.md +78 -0
  275. package/docs/ja/cli/configuration.md +63 -0
  276. package/docs/ja/cli/debug.md +46 -0
  277. package/docs/ja/cli/doc-review.md +43 -0
  278. package/docs/ja/cli/doc-translate.md +132 -0
  279. package/docs/ja/cli/editor.md +28 -0
  280. package/docs/ja/cli/fill.md +130 -0
  281. package/docs/ja/cli/index.md +163 -0
  282. package/docs/ja/cli/list.md +53 -0
  283. package/docs/ja/cli/live.md +41 -0
  284. package/docs/ja/cli/pull.md +78 -0
  285. package/docs/ja/cli/push.md +113 -0
  286. package/docs/ja/cli/sdk.md +67 -0
  287. package/docs/ja/cli/test.md +76 -0
  288. package/docs/ja/cli/transform.md +65 -0
  289. package/docs/ja/cli/version.md +24 -0
  290. package/docs/ja/cli/watch.md +37 -0
  291. package/docs/ja/packages/intlayer/getPrefix.md +212 -0
  292. package/docs/ko/cli/build.md +64 -0
  293. package/docs/ko/cli/configuration.md +63 -0
  294. package/docs/ko/cli/debug.md +46 -0
  295. package/docs/ko/cli/doc-review.md +43 -0
  296. package/docs/ko/cli/doc-translate.md +132 -0
  297. package/docs/ko/cli/editor.md +28 -0
  298. package/docs/ko/cli/fill.md +130 -0
  299. package/docs/ko/cli/index.md +163 -0
  300. package/docs/ko/cli/list.md +53 -0
  301. package/docs/ko/cli/live.md +41 -0
  302. package/docs/ko/cli/pull.md +78 -0
  303. package/docs/ko/cli/push.md +113 -0
  304. package/docs/ko/cli/sdk.md +67 -0
  305. package/docs/ko/cli/test.md +76 -0
  306. package/docs/ko/cli/transform.md +65 -0
  307. package/docs/ko/cli/version.md +24 -0
  308. package/docs/ko/cli/watch.md +37 -0
  309. package/docs/ko/packages/intlayer/getPrefix.md +213 -0
  310. package/docs/pl/cli/build.md +64 -0
  311. package/docs/pl/cli/configuration.md +63 -0
  312. package/docs/pl/cli/debug.md +46 -0
  313. package/docs/pl/cli/doc-review.md +43 -0
  314. package/docs/pl/cli/doc-translate.md +132 -0
  315. package/docs/pl/cli/editor.md +28 -0
  316. package/docs/pl/cli/fill.md +130 -0
  317. package/docs/pl/cli/index.md +163 -0
  318. package/docs/pl/cli/list.md +53 -0
  319. package/docs/pl/cli/live.md +41 -0
  320. package/docs/pl/cli/pull.md +78 -0
  321. package/docs/pl/cli/push.md +98 -0
  322. package/docs/pl/cli/sdk.md +67 -0
  323. package/docs/pl/cli/test.md +76 -0
  324. package/docs/pl/cli/transform.md +65 -0
  325. package/docs/pl/cli/version.md +24 -0
  326. package/docs/pl/cli/watch.md +39 -0
  327. package/docs/pl/packages/intlayer/getPrefix.md +217 -0
  328. package/docs/pt/cli/build.md +64 -0
  329. package/docs/pt/cli/configuration.md +63 -0
  330. package/docs/pt/cli/debug.md +46 -0
  331. package/docs/pt/cli/doc-review.md +43 -0
  332. package/docs/pt/cli/doc-translate.md +132 -0
  333. package/docs/pt/cli/editor.md +28 -0
  334. package/docs/pt/cli/fill.md +130 -0
  335. package/docs/pt/cli/index.md +163 -0
  336. package/docs/pt/cli/list.md +53 -0
  337. package/docs/pt/cli/live.md +41 -0
  338. package/docs/pt/cli/pull.md +78 -0
  339. package/docs/pt/cli/push.md +98 -0
  340. package/docs/pt/cli/sdk.md +67 -0
  341. package/docs/pt/cli/test.md +76 -0
  342. package/docs/pt/cli/transform.md +65 -0
  343. package/docs/pt/cli/version.md +24 -0
  344. package/docs/pt/cli/watch.md +39 -0
  345. package/docs/pt/packages/intlayer/getPrefix.md +217 -0
  346. package/docs/ru/cli/build.md +64 -0
  347. package/docs/ru/cli/configuration.md +63 -0
  348. package/docs/ru/cli/debug.md +46 -0
  349. package/docs/ru/cli/doc-review.md +43 -0
  350. package/docs/ru/cli/doc-translate.md +132 -0
  351. package/docs/ru/cli/editor.md +28 -0
  352. package/docs/ru/cli/fill.md +130 -0
  353. package/docs/ru/cli/index.md +163 -0
  354. package/docs/ru/cli/list.md +53 -0
  355. package/docs/ru/cli/live.md +41 -0
  356. package/docs/ru/cli/pull.md +78 -0
  357. package/docs/ru/cli/push.md +98 -0
  358. package/docs/ru/cli/sdk.md +67 -0
  359. package/docs/ru/cli/test.md +76 -0
  360. package/docs/ru/cli/transform.md +65 -0
  361. package/docs/ru/cli/version.md +24 -0
  362. package/docs/ru/cli/watch.md +39 -0
  363. package/docs/ru/packages/intlayer/getPrefix.md +213 -0
  364. package/docs/tr/CI_CD.md +2 -2
  365. package/docs/tr/cli/build.md +64 -0
  366. package/docs/tr/cli/configuration.md +63 -0
  367. package/docs/tr/cli/debug.md +46 -0
  368. package/docs/tr/cli/doc-review.md +43 -0
  369. package/docs/tr/cli/doc-translate.md +132 -0
  370. package/docs/tr/cli/editor.md +28 -0
  371. package/docs/tr/cli/fill.md +130 -0
  372. package/docs/tr/cli/index.md +163 -0
  373. package/docs/tr/cli/list.md +53 -0
  374. package/docs/tr/cli/live.md +41 -0
  375. package/docs/tr/cli/pull.md +78 -0
  376. package/docs/tr/cli/push.md +98 -0
  377. package/docs/tr/cli/sdk.md +67 -0
  378. package/docs/tr/cli/test.md +76 -0
  379. package/docs/tr/cli/transform.md +65 -0
  380. package/docs/tr/cli/version.md +24 -0
  381. package/docs/tr/cli/watch.md +39 -0
  382. package/docs/tr/dictionary/condition.md +1 -1
  383. package/docs/tr/dictionary/enumeration.md +1 -1
  384. package/docs/tr/dictionary/file.md +1 -1
  385. package/docs/tr/dictionary/gender.md +1 -1
  386. package/docs/tr/dictionary/insertion.md +1 -1
  387. package/docs/tr/dictionary/markdown.md +1 -1
  388. package/docs/tr/dictionary/nesting.md +1 -1
  389. package/docs/tr/index.md +1 -1
  390. package/docs/tr/intlayer_with_angular.md +1 -1
  391. package/docs/tr/intlayer_with_create_react_app.md +1 -1
  392. package/docs/tr/intlayer_with_lynx+react.md +1 -1
  393. package/docs/tr/intlayer_with_nextjs_15.md +1 -1
  394. package/docs/tr/intlayer_with_nextjs_page_router.md +1 -1
  395. package/docs/tr/intlayer_with_nuxt.md +1 -1
  396. package/docs/tr/intlayer_with_react_native+expo.md +1 -1
  397. package/docs/tr/intlayer_with_vite+preact.md +1 -1
  398. package/docs/tr/intlayer_with_vite+react.md +1 -1
  399. package/docs/tr/intlayer_with_vite+solid.md +1 -1
  400. package/docs/tr/intlayer_with_vite+vue.md +1 -1
  401. package/docs/tr/introduction.md +1 -1
  402. package/docs/tr/mcp_server.md +1 -1
  403. package/docs/tr/packages/intlayer/getPrefix.md +213 -0
  404. package/docs/tr/per_locale_file.md +1 -1
  405. package/docs/tr/roadmap.md +1 -1
  406. package/docs/vi/cli/build.md +64 -0
  407. package/docs/vi/cli/configuration.md +63 -0
  408. package/docs/vi/cli/debug.md +46 -0
  409. package/docs/vi/cli/doc-review.md +43 -0
  410. package/docs/vi/cli/doc-translate.md +132 -0
  411. package/docs/vi/cli/editor.md +28 -0
  412. package/docs/vi/cli/fill.md +130 -0
  413. package/docs/vi/cli/index.md +163 -0
  414. package/docs/vi/cli/list.md +53 -0
  415. package/docs/vi/cli/live.md +41 -0
  416. package/docs/vi/cli/pull.md +78 -0
  417. package/docs/vi/cli/push.md +98 -0
  418. package/docs/vi/cli/sdk.md +67 -0
  419. package/docs/vi/cli/test.md +76 -0
  420. package/docs/vi/cli/transform.md +65 -0
  421. package/docs/vi/cli/version.md +24 -0
  422. package/docs/vi/cli/watch.md +37 -0
  423. package/docs/vi/packages/intlayer/getPrefix.md +213 -0
  424. package/docs/zh/cli/build.md +64 -0
  425. package/docs/zh/cli/configuration.md +63 -0
  426. package/docs/zh/cli/debug.md +46 -0
  427. package/docs/zh/cli/doc-review.md +43 -0
  428. package/docs/zh/cli/doc-translate.md +132 -0
  429. package/docs/zh/cli/editor.md +28 -0
  430. package/docs/zh/cli/fill.md +130 -0
  431. package/docs/zh/cli/index.md +168 -0
  432. package/docs/zh/cli/list.md +53 -0
  433. package/docs/zh/cli/live.md +41 -0
  434. package/docs/zh/cli/pull.md +78 -0
  435. package/docs/zh/cli/push.md +113 -0
  436. package/docs/zh/cli/sdk.md +67 -0
  437. package/docs/zh/cli/test.md +76 -0
  438. package/docs/zh/cli/transform.md +65 -0
  439. package/docs/zh/cli/version.md +24 -0
  440. package/docs/zh/cli/watch.md +37 -0
  441. package/docs/zh/packages/intlayer/getPrefix.md +213 -0
  442. package/package.json +9 -9
  443. package/src/generated/blog.entry.ts +19 -0
  444. package/src/generated/docs.entry.ts +323 -19
  445. package/docs/ar/intlayer_cli.md +0 -614
  446. package/docs/de/intlayer_cli.md +0 -615
  447. package/docs/en/intlayer_cli.md +0 -897
  448. package/docs/en-GB/intlayer_cli.md +0 -615
  449. package/docs/es/intlayer_cli.md +0 -614
  450. package/docs/fr/intlayer_cli.md +0 -614
  451. package/docs/hi/intlayer_cli.md +0 -616
  452. package/docs/id/intlayer_cli.md +0 -886
  453. package/docs/it/intlayer_cli.md +0 -610
  454. package/docs/ja/intlayer_cli.md +0 -616
  455. package/docs/ko/intlayer_cli.md +0 -614
  456. package/docs/pl/intlayer_cli.md +0 -893
  457. package/docs/pt/intlayer_cli.md +0 -615
  458. package/docs/ru/intlayer_cli.md +0 -885
  459. package/docs/tr/intlayer_cli.md +0 -614
  460. package/docs/vi/intlayer_cli.md +0 -886
  461. package/docs/zh/intlayer_cli.md +0 -613
@@ -1,897 +0,0 @@
1
- ---
2
- createdAt: 2024-08-11
3
- updatedAt: 2025-11-22
4
- title: CLI
5
- description: Discover how to use the Intlayer CLI to manage your multilingual website. Follow the steps in this online documentation to set up your project in a few minutes.
6
- keywords:
7
- - CLI
8
- - Command Line Interface
9
- - Internationalization
10
- - Documentation
11
- - Intlayer
12
- - Next.js
13
- - JavaScript
14
- - React
15
- slugs:
16
- - doc
17
- - concept
18
- - cli
19
- history:
20
- - version: 7.2.3
21
- date: 2025-11-22
22
- changes: Add transform command
23
- - version: 7.1.0
24
- date: 2025-11-05
25
- changes: Add skipIfExists option to translate command
26
- - version: 6.1.4
27
- date: 2025-01-27
28
- changes: Add aliases for CLI arguments and commands
29
- - version: 6.1.3
30
- date: 2025-10-05
31
- changes: Add build option to commands
32
- - version: 6.1.2
33
- date: 2025-09-26
34
- changes: Add version command
35
- - version: 6.1.0
36
- date: 2025-09-26
37
- changes: Set verbose option to default to true using CLI
38
- - version: 6.1.0
39
- date: 2025-09-23
40
- changes: Add watch command and with option
41
- - version: 6.0.1
42
- date: 2025-09-23
43
- changes: Add editor command
44
- - version: 6.0.0
45
- date: 2025-09-17
46
- changes: Add content test and list command
47
- - version: 5.5.11
48
- date: 2025-07-11
49
- changes: Update CLI command parameters documentation
50
- - version: 5.5.10
51
- date: 2025-06-29
52
- changes: Init history
53
- ---
54
-
55
- # Intlayer CLI
56
-
57
- ---
58
-
59
- ## Table of Contents
60
-
61
- <TOC/>
62
-
63
- ---
64
-
65
- ## Install Package
66
-
67
- Install the necessary packages using npm:
68
-
69
- ```bash packageManager="npm"
70
- npm install intlayer-cli -g
71
- ```
72
-
73
- ```bash packageManager="yarn"
74
- yarn add intlayer-cli -g
75
- ```
76
-
77
- ```bash packageManager="pnpm"
78
- pnpm add intlayer-cli -g
79
- ```
80
-
81
- > If `intlayer` package is already installed, the cli is automatically installed. You can skip this step.
82
-
83
- ## intlayer-cli package
84
-
85
- `intlayer-cli` package intend to transpile your [intlayer declarations](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/content_file.md) into dictionaries.
86
-
87
- This package will transpile all intlayer files, such as `src/**/*.content.{ts|js|mjs|cjs|json}`. [See how to declare your Intlayer declaration files](https://github.com/aymericzip/intlayer/blob/main/packages/intlayer/README.md).
88
-
89
- To interpret intlayer dictionaries you can interpreters, such as [react-intlayer](https://www.npmjs.com/package/react-intlayer), or [next-intlayer](https://www.npmjs.com/package/next-intlayer)
90
-
91
- ## Configuration File Support
92
-
93
- Intlayer accepts multiple configuration file formats:
94
-
95
- - `intlayer.config.ts`
96
- - `intlayer.config.js`
97
- - `intlayer.config.json`
98
- - `intlayer.config.cjs`
99
- - `intlayer.config.mjs`
100
- - `.intlayerrc`
101
-
102
- To see how to configure available locales, or other parameters, refer to the [configuration documentation here](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md).
103
-
104
- ## Run intlayer commands
105
-
106
- ### Check CLI version
107
-
108
- ```bash
109
- npx intlayer --version
110
- npx intlayer version
111
- ```
112
-
113
- Both commands print the installed Intlayer CLI version.
114
-
115
- ### Build dictionaries
116
-
117
- To build your dictionaries, you can run the commands:
118
-
119
- ```bash
120
- npx intlayer build
121
- ```
122
-
123
- or in watch mode
124
-
125
- ```bash
126
- npx intlayer build --watch
127
- ```
128
-
129
- This command will find your declaration content files as default as `./src/**/*.content.{ts|js|mjs|cjs|json|tsx|jsx}`. And build the dictionaries in the `.intlayer` directory.
130
-
131
- ##### Aliases:
132
-
133
- - `npx intlayer dictionaries build`
134
- - `npx intlayer dictionary build`
135
- - `npx intlayer dic build`
136
-
137
- ##### Arguments:
138
-
139
- - **`--base-dir`**: Specify the base directory for the project. To retrieve the intlayer configuration, the command will look for the `intlayer.config.{ts,js,json,cjs,mjs}` file in the base directory.
140
-
141
- > Example: `npx intlayer build --base-dir ./src`
142
-
143
- - **`--env`**: Specify the environment (e.g., `development`, `production`). Useful in the case you use environment variables in your intlayer configuration file.
144
-
145
- > Example: `npx intlayer build --env production`
146
-
147
- - **`--env-file`**: Provide a custom environment file to load variables from. Useful in the case you use environment variables in your intlayer configuration file.
148
-
149
- > Example: `npx intlayer build --env-file .env.production.local`
150
-
151
- - **`--with`**: Start command in parallel with the build.
152
-
153
- > Example: `npx intlayer build --with "next dev --turbopack"`
154
-
155
- - **`--skip-prepare`**: Skip the prepare step.
156
-
157
- > Example: `npx intlayer build --skip-prepare`
158
-
159
- - **`--no-cache`**: Disable the cache.
160
-
161
- > Example: `npx intlayer build --no-cache`
162
-
163
- ### Watch dictionaries
164
-
165
- ```bash
166
- npx intlayer watch
167
- ```
168
-
169
- This command will watch for changes in your content declaration files and build the dictionaries in the `.intlayer` directory.
170
- This command is the equivalent of `npx intlayer build --watch --skip-prepare`.
171
-
172
- ##### Aliases:
173
-
174
- - `npx intlayer dictionaries watch`
175
- - `npx intlayer dictionary watch`
176
- - `npx intlayer dic watch`
177
-
178
- ##### Arguments:
179
-
180
- - **`--with`**: Start command in parallel with the watch.
181
-
182
- > Example: `npx intlayer watch --with "next dev --turbopack"`
183
-
184
- ### Push dictionaries
185
-
186
- ```bash
187
- npx intlayer dictionary push
188
- ```
189
-
190
- If [intlayer editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) is installed, you can also push dictionaries to the editor. This command will allow to make the dictionaries available to [the editor](https://intlayer.org/dashboard). By this way, you can share your dictionaries with your team and edit your content without editing the code of your application.
191
-
192
- ##### Aliases:
193
-
194
- - `npx intlayer dictionaries push`
195
- - `npx intlayer dictionary push`
196
- - `npx intlayer dic push`
197
-
198
- ##### Arguments:
199
-
200
- **Dictionary options:**
201
-
202
- - **`-d`, `--dictionaries`**: ids of the dictionaries to pull. If not specified, all dictionaries will be pushed.
203
-
204
- > Example: `npx intlayer dictionary push -d my-dictionary-id my-other-dictionary-id`
205
-
206
- - **`--dictionary`**: ids of the dictionaries to pull (alias for --dictionaries).
207
-
208
- > Example: `npx intlayer dictionary push --dictionary my-dictionary-id my-other-dictionary-id`
209
-
210
- **Configuration options:**
211
-
212
- - **`--base-dir`**: Specify the base directory for the project. To retrieve the intlayer configuration, the command will look for the `intlayer.config.{ts,js,json,cjs,mjs}` file in the base directory.
213
-
214
- > Example: `npx intlayer dictionary push --env-file .env.production.local`
215
-
216
- - **`--no-cache`**: Disable the cache.
217
-
218
- > Example: `npx intlayer build --no-cache`
219
-
220
- **Environment variables options:**
221
-
222
- - **`--env`**: Specify the environment (e.g., `development`, `production`). Useful in the case you use environment variables in your intlayer configuration file.
223
- - **`--env-file`**: Provide a custom environment file to load variables from. Useful in the case you use environment variables in your intlayer configuration file.
224
-
225
- > Example: `npx intlayer dictionary push --env-file .env.production.local`
226
-
227
- > Example: `npx intlayer dictionary push --env production`
228
-
229
- **Output options:**
230
-
231
- - **`-r`, `--delete-locale-dictionary`**: Skip the question that asking to delete the locales directories once the dictionaries are pushed, and remove them. By default, if the dictionary is defined locally, it will overwrite distant dictionaries content.
232
-
233
- > Example: `npx intlayer dictionary push -r`
234
-
235
- > Example: `npx intlayer dictionary push --delete-locale-dictionary`
236
-
237
- - **`-k`, `--keep-locale-dictionary`**: Skip the question that asking to delete the locales directories once the dictionaries are pushed, and keep them. By default, is the dictionary is defined locally, it will overwrite distant dictionaries content.
238
-
239
- > Example: `npx intlayer dictionary push -k`
240
-
241
- > Example: `npx intlayer dictionary push --keep-locale-dictionary`
242
-
243
- **Preparation options:**
244
-
245
- - **`--build`**: Build the dictionaries before pushing to ensure the content is up to date. True will force the build, false will skip the build, undefined will allow using the cache of the build.
246
-
247
- **Log options:**
248
-
249
- - **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
250
-
251
- **Git options:**
252
-
253
- - **`--git-diff`**: Only run on dictionaries that includes changes from base (default `origin/main`) to current branch (default: `HEAD`).
254
- - **`--git-diff-base`**: Specify the base reference for git diff (default `origin/main`).
255
- - **`--git-diff-current`**: Specify the current reference for git diff (default: `HEAD`).
256
- - **`--uncommitted`**: Include uncommitted changes.
257
- - **`--unpushed`**: Include unpushed changes.
258
- - **`--untracked`**: Include untracked files.
259
-
260
- > Example: `npx intlayer dictionary push --git-diff --git-diff-base origin/main --git-diff-current HEAD`
261
-
262
- > Example: `npx intlayer dictionary push --uncommitted --unpushed --untracked`
263
-
264
- ### Pull distant dictionaries
265
-
266
- ```bash
267
- npx intlayer pull
268
- ```
269
-
270
- If [intlayer editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) is installed, you can also pull dictionaries from the editor. By this way, you can overwrite the content of your dictionaries for the need of your application.
271
-
272
- ##### Aliases:
273
-
274
- - `npx intlayer dictionaries pull`
275
- - `npx intlayer dictionary pull`
276
- - `npx intlayer dic pull`
277
-
278
- ##### Arguments:
279
-
280
- **Dictionary options:**
281
-
282
- - **`-d, --dictionaries`**: Ids of the dictionaries to pull. If not specified, all dictionaries will be pulled.
283
-
284
- > Example: `npx intlayer dictionary pull -d my-dictionary-id my-other-dictionary-id`
285
-
286
- - **`--dictionary`**: Ids of the dictionaries to pull (alias for --dictionaries).
287
-
288
- > Example: `npx intlayer dictionary pull --dictionary my-dictionary-id my-other-dictionary-id`
289
-
290
- **Configuration options:**
291
-
292
- - **`--base-dir`**: Specify the base directory for the project. To retrieve the intlayer configuration, the command will look for the `intlayer.config.{ts,js,json,cjs,mjs}` file in the base directory.
293
-
294
- > Example: `npx intlayer dictionary push --env-file .env.production.local`
295
-
296
- - **`--no-cache`**: Disable the cache.
297
-
298
- > Example: `npx intlayer build --no-cache`
299
-
300
- **Environment variables options:**
301
-
302
- - **`--env`**: Specify the environment (e.g., `development`, `production`).
303
- - **`--env-file`**: Provide a custom environment file to load variables from.
304
- - **`--base-dir`**: Specify the base directory for the project. To retrieve the intlayer configuration, the command will look for the `intlayer.config.{ts,js,json,cjs,mjs}` file in the base directory.
305
-
306
- > Example: `npx intlayer dictionary push --env-file .env.production.local`
307
-
308
- > Example: `npx intlayer dictionary push --env production`
309
-
310
- **Output options:**
311
-
312
- - **`--new-dictionaries-path`** : Path to the directory where the new dictionaries will be saved. If not specified, the news dictionaries will be saved in the `./intlayer-dictionaries` directory of the project. If a `filePath` fields is specified in your dictionary content, the dictionaries will not consider this argument and will be saved in the specified `filePath` directory.
313
-
314
- **Log options:**
315
-
316
- - **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
317
-
318
- ##### Example:
319
-
320
- ```bash
321
- npx intlayer dictionary pull --newDictionariesPath ./my-dictionaries-dir/
322
- ```
323
-
324
- ### Fill / audit / translate dictionaries
325
-
326
- ```bash
327
- npx intlayer fill
328
- ```
329
-
330
- This command analyzes your content declaration files for potential issues such as missing translations, structural inconsistencies, or type mismatches. If it finds any problems, **intlayer fill** will propose or apply updates to keep your dictionaries consistent and complete.
331
-
332
- ##### Aliases:
333
-
334
- - `npx intlayer dictionaries fill`
335
- - `npx intlayer dictionary fill`
336
- - `npx intlayer dic fill`
337
-
338
- ##### Arguments:
339
-
340
- **Files list options:**
341
-
342
- - **`-f, --file [files...]`**: A list of specific content declaration files to audit. If not provided, all discovered `*.content.{ts,js,mjs,cjs,tsx,jsx,json}` based on your configuration file setup will be audited.
343
-
344
- > Example: `npx intlayer dictionary fill -f src/home/app.content.ts`
345
-
346
- - **`-k, --keys [keys...]`**: Filter dictionaries based on keys. If not provided, all dictionaries will be audited.
347
-
348
- > Example: `npx intlayer dictionary fill -k key1 key2`
349
-
350
- - **`--key [keys...]`**: Filter dictionaries based on keys (alias for --keys).
351
-
352
- > Example: `npx intlayer dictionary fill --key key1 key2`
353
-
354
- - **`--excluded-keys [excludedKeys...]`**: Filter out dictionaries based on keys. If not provided, all dictionaries will be audited.
355
-
356
- > Example: `npx intlayer dictionary fill --excluded-keys key1 key2`
357
-
358
- - **`--excluded-key [excludedKeys...]`**: Filter out dictionaries based on keys (alias for --excluded-keys).
359
-
360
- > Example: `npx intlayer dictionary fill --excluded-key key1 key2`
361
-
362
- - **`--path-filter [pathFilters...]`**: Filter dictionaries based on glob pattern for file paths.
363
-
364
- > Example: `npx intlayer dictionary fill --path-filter "src/home/**"`
365
-
366
- **Entry output options:**
367
-
368
- - **`--source-locale [sourceLocale]`**: The source locale to translate from. If not specified, the default locale from your configuration will be used.
369
-
370
- - **`--output-locales [outputLocales...]`**: Target locales to translate to. If not specified, all locales from your configuration will be used except the source locale.
371
-
372
- - **`--mode [mode]`**: Translation mode: `complete`, `review`. Default is `complete`. `complete` will fill all missing content, `review` will fill missing content and review existing keys.
373
-
374
- **Git options:**
375
-
376
- - **`--git-diff`**: Only run on dictionaries that includes changes from base (default `origin/main`) to current branch (default: `HEAD`).
377
- - **`--git-diff-base`**: Specify the base reference for git diff (default `origin/main`).
378
- - **`--git-diff-current`**: Specify the current reference for git diff (default: `HEAD`).
379
- - **`--uncommitted`**: Include uncommitted changes.
380
- - **`--unpushed`**: Include unpushed changes.
381
- - **`--untracked`**: Include untracked files.
382
-
383
- > Example: `npx intlayer doc translate --git-diff --git-diff-base origin/main --git-diff-current HEAD`
384
-
385
- > Example: `npx intlayer doc translate --uncommitted --unpushed --untracked`
386
-
387
- **AI options:**
388
-
389
- - **`--model [model]`**: The AI model to use for the translation (e.g., `gpt-3.5-turbo`).
390
- - **`--provider [provider]`**: The AI provider to use for the translation.
391
- - **`--temperature [temperature]`**: Temperature setting for the AI model.
392
- - **`--api-key [apiKey]`**: Provide your own API key for the AI service.
393
- - **`--custom-prompt [prompt]`**: Provide a custom prompt for your translation instructions.
394
- - **`--application-context [applicationContext]`**: Provide additional context for the AI translation.
395
-
396
- > Example: `npx intlayer fill --model gpt-3.5-turbo --provider openai --temperature 0.5 --api-key sk-1234567890 --application-context "My application is a cat store"`
397
-
398
- **Environment variables options:**
399
-
400
- - **`--env`**: Specify the environment (e.g., `development`, `production`).
401
- - **`--env-file [envFile]`**: Provide a custom environment file to load variables from.
402
-
403
- > Example: `npx intlayer fill --env-file .env.production.local`
404
-
405
- > Example: `npx intlayer fill --env production`
406
-
407
- **Configuration options:**
408
-
409
- - **`--base-dir`**: Specify the base directory for the project.
410
-
411
- > Example: `npx intlayer fill --base-dir ./src`
412
-
413
- - **`--no-cache`**: Disable the cache.
414
-
415
- > Example: `npx intlayer build --no-cache`
416
-
417
- **Preparation options:**
418
-
419
- - **`--build`**: Build the dictionaries before pushing to ensure the content is up to date. True will force the build, false will skip the build, undefined will allow using the cache of the build.
420
-
421
- - **`--skip-metadata`**: Skip filling missing metadata (description, title, tags) for dictionaries.
422
-
423
- **Log options:**
424
-
425
- - **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
426
-
427
- ##### Example:
428
-
429
- ```bash
430
- npx intlayer fill --file src/home/*.content.ts --source-locale en --output-locales fr es --model gpt-3.5-turbo
431
- ```
432
-
433
- This command will translate content from English to French and Spanish for all content declaration files in the `src/home/` directory using the GPT-3.5 Turbo model.
434
-
435
- ### Transform components
436
-
437
- ```bash
438
- npx intlayer transform
439
- ```
440
-
441
- This command analyzes your code files to help migrate existing components to use Intlayer. It supports interactive file selection or specific file targeting.
442
-
443
- ##### Aliases:
444
-
445
- - `npx intlayer trans`
446
-
447
- ##### Arguments:
448
-
449
- **File selection options:**
450
-
451
- - **`-f, --file [files...]`**: List of specific files to transform. If not provided, the CLI will scan for matching files (`**/*.{tsx,jsx,vue,svelte,ts,js}`) and prompt you to select which ones to transform.
452
-
453
- > Example: `npx intlayer transform -f src/components/MyComponent.tsx`
454
-
455
- **Output options:**
456
-
457
- - **`-o, --output-content-declarations [outputContentDeclarations]`**: Directory to save the generated content declaration files.
458
-
459
- > Example: `npx intlayer transform -o src/content`
460
-
461
- **Configuration options:**
462
-
463
- - **`--base-dir`**: Specify the base directory for the project.
464
- - **`--env`**: Specify the environment.
465
- - **`--env-file`**: Provide a custom environment file.
466
- - **`--verbose`**: Enable verbose logging.
467
-
468
- ### Test missing translations
469
-
470
- ```bash
471
- npx intlayer content test
472
- ```
473
-
474
- ##### Aliases:
475
-
476
- - `npx intlayer test`
477
-
478
- This command analyzes your content declaration files to identify missing translations across all configured locales. It provides a comprehensive report showing which translation keys are missing for which locales, helping you maintain consistency across your multilingual content.
479
-
480
- ##### Example output:
481
-
482
- ```bash
483
- pnpm intlayer content test
484
- Missing translations:
485
- - home-page - tr - src/components/HomePage/homePage.content.ts
486
- - server-component - es, tr - src/components/ServerComponent/serverComponent.content.ts
487
- - client-component - pl, tr - src/components/ClientComponent/clientComponent.content.ts
488
- Locales: en, ru, ja, fr, ko, zh, es, de, ar, it, en-GB, pt, hi, tr, pl
489
- Required locales: en
490
- Missing locales: pl, tr, es
491
- Missing required locales: -
492
- Total missing locales: 3
493
- Total missing required locales: 0
494
- ```
495
-
496
- ##### Arguments:
497
-
498
- **Configuration options:**
499
-
500
- - **`--env`**: Specify the environment (e.g., `development`, `production`).
501
- - **`--env-file [envFile]`**: Provide a custom environment file to load variables from.
502
- - **`--base-dir`**: Specify the base directory for the project.
503
-
504
- > Example: `npx intlayer content test --base-dir ./src --env-file .env.production.local`
505
-
506
- - **`--no-cache`**: Disable the cache.
507
-
508
- > Example: `npx intlayer build --no-cache`
509
-
510
- **Preparation options:**
511
-
512
- - **`--build`**: Build the dictionaries before pushing to ensure the content is up to date. True will force the build, false will skip the build, undefined will allow using the cache of the build.
513
-
514
- **Log options:**
515
-
516
- - **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
517
-
518
- > Example: `npx intlayer content test --verbose`
519
-
520
- ##### Example:
521
-
522
- ```bash
523
- npx intlayer content test --verbose
524
- ```
525
-
526
- ##### Example output:
527
-
528
- ```bash
529
- npx intlayer content list
530
- Content declaration files:
531
- - home-page - src/components/HomePage/homePage.content.ts
532
- - server-component - src/components/ServerComponent/serverComponent.content.ts
533
- - client-component - src/components/ClientComponent/clientComponent.content.ts
534
-
535
- Total content declaration files: 3
536
- ```
537
-
538
- This command will scan all your content declaration files and display:
539
-
540
- - A detailed list of missing translations with their keys, missing locales, and file paths
541
- - Summary statistics including total missing locales and missing required locales
542
- - Color-coded output for easy identification of issues
543
-
544
- The output helps you quickly identify which translations need to be completed to ensure your application works properly across all configured locales.
545
-
546
- ### List content declaration files
547
-
548
- ```bash
549
- npx intlayer content list
550
- ```
551
-
552
- ##### Aliases:
553
-
554
- - `npx intlayer list`
555
-
556
- This command displays all content declaration files in your project, showing their dictionary keys and file paths. It's useful for getting an overview of all your content files and verifying that they are properly discovered by Intlayer.
557
-
558
- ##### Example:
559
-
560
- ```bash
561
- npx intlayer content list
562
- ```
563
-
564
- This command will output:
565
-
566
- - A formatted list of all content declaration files with their keys and relative file paths
567
- - The total count of content declaration files found
568
-
569
- The output helps you verify that all your content files are properly configured and discoverable by the Intlayer system.
570
-
571
- ### Manage Configuration
572
-
573
- #### Get Configuration
574
-
575
- The `configuration get` command retrieves the current configuration for Intlayer, particularly the locale settings. This is useful for verifying your setup.
576
-
577
- ```bash
578
- npx intlayer configuration get
579
- ```
580
-
581
- ##### Aliases:
582
-
583
- - `npx intlayer config get`
584
- - `npx intlayer conf get`
585
-
586
- ##### Arguments:
587
-
588
- - **`--env`**: Specify the environment (e.g., `development`, `production`).
589
- - **`--env-file`**: Provide a custom environment file to load variables from.
590
- - **`--base-dir`**: Specify the base directory for the project.
591
- - **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
592
- - **`--no-cache`**: Disable the cache.
593
-
594
- #### Push Configuration
595
-
596
- The `configuration push` command uploads your configuration to the Intlayer CMS and editor. This step is necessary to enable the use of distant dictionaries in the Intlayer Visual Editor.
597
-
598
- ```bash
599
- npx intlayer configuration push
600
- ```
601
-
602
- ##### Aliases:
603
-
604
- - `npx intlayer config push`
605
- - `npx intlayer conf push`
606
-
607
- ##### Arguments:
608
-
609
- - **`--env`**: Specify the environment (e.g., `development`, `production`).
610
- - **`--env-file`**: Provide a custom environment file to load variables from.
611
- - **`--base-dir`**: Specify the base directory for the project.
612
- - **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
613
- - **`--no-cache`**: Disable the cache.
614
-
615
- By pushing the configuration, your project is fully integrated with the Intlayer CMS, enabling seamless dictionary management across teams.
616
-
617
- ### Document Management
618
-
619
- The `doc` commands provide tools for managing and translating documentation files across multiple locales.
620
-
621
- #### Translate Document
622
-
623
- The `doc translate` command automatically translates documentation files from a base locale to target locales using AI translation services.
624
-
625
- ```bash
626
- npx intlayer doc translate
627
- ```
628
-
629
- ##### Arguments:
630
-
631
- **File list options:**
632
-
633
- - **`--doc-pattern [docPattern...]`**: Glob patterns to match documentation files to translate.
634
-
635
- > Example: `npx intlayer doc translate --doc-pattern "docs/**/*.md" "src/**/*.mdx"`
636
-
637
- - **`--excluded-glob-pattern [excludedGlobPattern...]`**: Glob patterns to exclude from translation.
638
-
639
- > Example: `npx intlayer doc translate --excluded-glob-pattern "docs/internal/**"`
640
-
641
- - **`--skip-if-modified-before [skipIfModifiedBefore]`**: Skip the file if it has been modified before the given time.
642
- - Can be an absolute time as "2025-12-05" (string or Date)
643
- - Can be a relative time in ms `1 * 60 * 60 * 1000` (1 hour)
644
- - This option check update time of the file using the `fs.stat` method. So it could be impacted by Git or other tools that modify the file.
645
-
646
- > Example: `npx intlayer doc translate --skip-if-modified-before "2025-12-05"`
647
-
648
- - **`--skip-if-modified-after [skipIfModifiedAfter]`**: Skip the file if it has been modified within the given time.
649
- - Can be an absolute time as "2025-12-05" (string or Date)
650
- - Can be a relative time in ms `1 * 60 * 60 * 1000` (1 hour)
651
- - This option check update time of the file using the `fs.stat` method. So it could be impacted by Git or other tools that modify the file.
652
-
653
- > Example: `npx intlayer doc translate --skip-if-modified-after "2025-12-05"`
654
-
655
- - **`--skip-if-exists`**: Skip the file if it already exists.
656
-
657
- > Example: `npx intlayer doc translate --skip-if-exists`
658
-
659
- **Entry output options:**
660
-
661
- - **`--locales [locales...]`**: Target locales to translate documentation to.
662
-
663
- > Example: `npx intlayer doc translate --locales fr es de`
664
-
665
- - **`--base-locale [baseLocale]`**: Source locale to translate from.
666
-
667
- > Example: `npx intlayer doc translate --base-locale en`
668
-
669
- **File processing options:**
670
-
671
- - **`--nb-simultaneous-file-processed [nbSimultaneousFileProcessed]`**: Number of files to process simultaneously for translation.
672
-
673
- > Example: `npx intlayer doc translate --nb-simultaneous-file-processed 5`
674
-
675
- **AI options:**
676
-
677
- - **`--model [model]`**: The AI model to use for translation (e.g., `gpt-3.5-turbo`).
678
- - **`--provider [provider]`**: The AI provider to use for translation.
679
- - **`--temperature [temperature]`**: Temperature setting for the AI model.
680
- - **`--api-key [apiKey]`**: Provide your own API key for the AI service.
681
- - **`--application-context [applicationContext]`**: Provide additional context for the AI translation.
682
- - **`--custom-prompt [prompt]`**: Customize the base prompt used for translation. (Note: For most use cases, the `--custom-instructions` option is recommended instead as it provides better control over translation behavior.)
683
-
684
- > Example: `npx intlayer doc translate --model deepseek-chat --provider deepseek --temperature 0.5 --api-key sk-1234567890 --application-context "My application is a cat store"`
685
-
686
- **Environment variables options:**
687
-
688
- - **`--env`**: Specify the environment (e.g., `development`, `production`).
689
- - **`--env-file [envFile]`**: Provide a custom environment file to load variables from.
690
- - **`--base-dir`**: Specify the base directory for the project.
691
- - **`--no-cache`**: Disable the cache.
692
-
693
- > Example: `npx intlayer doc translate --base-dir ./docs --env-file .env.production.local`
694
-
695
- **Log options:**
696
-
697
- - **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
698
-
699
- > Example: `npx intlayer doc translate --verbose`
700
-
701
- **Custom instructions options:**
702
-
703
- - **`--custom-instructions [customInstructions]`**: Custom instructions added to the prompt. Usefull to apply specific rules regarding formatting, urls translation, etc.
704
- - Can be an absolute time as "2025-12-05" (string or Date)
705
- - Can be a relative time in ms `1 * 60 * 60 * 1000` (1 hour)
706
- - This option check update time of the file using the `fs.stat` method. So it could be impacted by Git or other tools that modify the file.
707
-
708
- > Example: `npx intlayer doc translate --custom-instructions "Avoid translating urls, and keep the markdown format"`
709
-
710
- > Example: `npx intlayer doc translate --custom-instructions "$(cat ./instructions.md)"`
711
-
712
- **Git options:**
713
-
714
- - **`--git-diff`**: Only run on dictionaries that includes changes from base (default `origin/main`) to current branch (default: `HEAD`).
715
- - **`--git-diff-base`**: Specify the base reference for git diff (default `origin/main`).
716
- - **`--git-diff-current`**: Specify the current reference for git diff (default: `HEAD`).
717
- - **`--uncommitted`**: Include uncommitted changes.
718
- - **`--unpushed`**: Include unpushed changes.
719
- - **`--untracked`**: Include untracked files.
720
-
721
- > Example: `npx intlayer doc translate --git-diff --git-diff-base origin/main --git-diff-current HEAD`
722
-
723
- > Example: `npx intlayer doc translate --uncommitted --unpushed --untracked`
724
-
725
- > Note that the output file path will be determined by replacing the following patterns
726
- >
727
- > - `/{{baseLocale}}/` by `/{{locale}}/` (Unix)
728
- > - `\{{baseLocale}}\` by `\{{locale}}\` (Windows)
729
- > - `_{{baseLocale}}.` by `_{{locale}}.`
730
- > - `{{baseLocale}}_` by `{{locale}}_`
731
- > - `.{{baseLocaleName}}.` by `.{{localeName}}.`
732
- >
733
- > If the pattern is not found, the output file will add the `.{{locale}}` at the extensions of the file. `./my/file.md` will be translated to `./my/file.fr.md` for the French locale.
734
-
735
- #### Review Document
736
-
737
- The `doc review` command analyzes documentation files for quality, consistency, and completeness across different locales.
738
-
739
- ```bash
740
- npx intlayer doc review
741
- ```
742
-
743
- It can be used to review files that are already translated, and to check if the translation is correct.
744
-
745
- For most use cases,
746
-
747
- - prefer using the `doc translate` when the translated version of this file is not available.
748
- - prefer using the `doc review` when the translated version of this file already exists.
749
-
750
- > Note that the review process consumes more entry tokens than the translate process to review the same file entirely. However, the review process will optimize the chunks to review, and will skip the parts that are not changed.
751
-
752
- ##### Arguments:
753
-
754
- The `doc review` command accepts the same arguments as `doc translate`, allowing you to review specific documentation files and apply quality checks.
755
-
756
- If you activated one of the git options, the command will only review the part of the files that getting changed. The script will process by chunking the file and review each chunk. If there is no changes in the chunk, the script will skip it to speed up the review process and limit the AI Provider API cost.
757
-
758
- ## Use intlayer commands in your `package.json`
759
-
760
- ```json fileName="package.json"
761
- "scripts": {
762
- "intlayer:build": "npx intlayer build",
763
- "intlayer:watch": "npx intlayer build --watch",
764
- "intlayer:push": "npx intlayer push",
765
- "intlayer:pull": "npx intlayer pull",
766
- "intlayer:fill": "npx intlayer fill",
767
- "intlayer:list": "npx intlayer content list",
768
- "intlayer:test": "npx intlayer content test",
769
- "intlayer:transform": "npx intlayer transform",
770
- "intlayer:doc:translate": "npx intlayer doc translate",
771
- "intlayer:doc:review": "npx intlayer doc review"
772
- }
773
- ```
774
-
775
- > **Note**: You can also use the shorter aliases:
776
- >
777
- > - `npx intlayer list` instead of `npx intlayer content list`
778
- > - `npx intlayer test` instead of `npx intlayer content test`
779
-
780
- ### Editor commands
781
-
782
- The `editor` command rewrap the `intlayer-editor` commands.
783
-
784
- > To be able to use the `editor` command, the `intlayer-editor` package must be installed. (See [Intlayer Visual Editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md))
785
-
786
- ```json fileName="package.json"
787
- "scripts": {
788
- "intlayer:editor:start": "npx intlayer editor start --with 'next dev --turbopack'"
789
- }
790
- ```
791
-
792
- ### Live Sync commands
793
-
794
- Live Sync lets your app reflect CMS content changes at runtime. No rebuild or redeploy required. When enabled, updates are streamed to a Live Sync server that refreshes the dictionaries your application reads. See [Intlayer CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md) for more details.
795
-
796
- ```json fileName="package.json"
797
- "scripts": {
798
- "intlayer:live:start": "npx intlayer live start --with 'next dev --turbopack'"
799
- }
800
- ```
801
-
802
- ##### Arguments:
803
-
804
- **Configuration options:**
805
-
806
- - **`--base-dir`**: Specify the base directory for the project. To retrieve the intlayer configuration, the command will look for the `intlayer.config.{ts,js,json,cjs,mjs}` file in the base directory.
807
-
808
- - **`--no-cache`**: Disable the cache.
809
-
810
- > Example: `npx intlayer dictionary push --env-file .env.production.local`
811
-
812
- **Log options:**
813
-
814
- - **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
815
-
816
- ---
817
-
818
- ## CLI SDK
819
-
820
- The CLI SDK is a library that allows you to use the Intlayer CLI in your own code.
821
-
822
- ```bash packageManager="npm"
823
- npm install @intlayer/cli --save-dev
824
- ```
825
-
826
- ```bash packageManager="yarn"
827
- yarn add @intlayer/cli --save-dev
828
- ```
829
-
830
- ```bash packageManager="pnpm"
831
- pnpm add @intlayer/cli --save-dev
832
- ```
833
-
834
- Example of usage:
835
-
836
- ```ts
837
- import {
838
- push,
839
- pull,
840
- fill,
841
- build,
842
- listContentDeclaration,
843
- testMissingTranslations,
844
- docTranslate,
845
- docReview,
846
- transform,
847
- } from "@intlayer/cli";
848
-
849
- push();
850
- // ...
851
- pull();
852
- // ...
853
- fill();
854
- // ...
855
- build();
856
- // ...
857
- listContentDeclaration();
858
- // ...
859
- testMissingTranslations();
860
- // ...
861
- docTranslate();
862
- // ...
863
- docReview();
864
- // ...
865
- transform();
866
- // ...
867
- ```
868
-
869
- ## Debug intlayer command
870
-
871
- ### 1. **Ensure you're using the latest version**
872
-
873
- Run:
874
-
875
- ```bash
876
- npx intlayer --version # current locale intlayer version
877
- npx intlayer@latest --version # current latest intlayer version
878
- ```
879
-
880
- ### 2. **Check if the command is registered**
881
-
882
- You can check with:
883
-
884
- ```bash
885
- npx intlayer --help # Shows the list of available commands and usage information
886
- npx intlayer dictionary build --help # Shows the list of available options for a command
887
- ```
888
-
889
- ### 3. **Restart your terminal**
890
-
891
- Sometimes a terminal restart is needed to recognize new commands.
892
-
893
- ### 4. **Clear npx cache (if you're stuck with an older version)**
894
-
895
- ```bash
896
- npx clear-npx-cache
897
- ```