@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
@@ -1,850 +0,0 @@
1
- ---
2
- createdAt: 2024-08-11
3
- updatedAt: 2025-01-27
4
- title: CLI
5
- description: Temukan cara menggunakan Intlayer CLI untuk mengelola situs web multibahasa Anda. Ikuti langkah-langkah dalam dokumentasi daring ini untuk mengatur proyek Anda dalam beberapa menit.
6
- keywords:
7
- - CLI
8
- - Command Line Interface
9
- - Internasionalisasi
10
- - Dokumentasi
11
- - Intlayer
12
- - Next.js
13
- - JavaScript
14
- - React
15
- slugs:
16
- - doc
17
- - concept
18
- - cli
19
- history:
20
- - version: 6.1.4
21
- date: 2025-01-27
22
- changes: Menambahkan alias untuk argumen dan perintah CLI
23
- - version: 6.1.3
24
- date: 2025-10-05
25
- changes: Menambahkan opsi build ke perintah
26
- - version: 6.1.2
27
- date: 2025-09-26
28
- changes: Menambahkan perintah version
29
- - version: 6.1.0
30
- date: 2025-09-26
31
- changes: Mengatur opsi verbose menjadi default true menggunakan CLI
32
- - version: 6.1.0
33
- date: 2025-09-23
34
- changes: Menambahkan perintah watch dan opsi with
35
- - version: 6.0.1
36
- date: 2025-09-23
37
- changes: Menambahkan perintah editor
38
- - version: 6.0.0
39
- date: 2025-09-17
40
- changes: Menambahkan perintah content test dan list
41
- - version: 5.5.11
42
- date: 2025-07-11
43
- changes: Memperbarui dokumentasi parameter perintah CLI
44
- - version: 5.5.10
45
- date: 2025-06-29
46
- changes: Inisialisasi riwayat
47
- ---
48
-
49
- # Intlayer CLI
50
-
51
- ---
52
-
53
- ## Daftar Isi
54
-
55
- <TOC/>
56
-
57
- ---
58
-
59
- ## Instal Paket
60
-
61
- Instal paket yang diperlukan menggunakan npm:
62
-
63
- ```bash packageManager="npm"
64
- npm install intlayer-cli -g
65
- ```
66
-
67
- ```bash packageManager="yarn"
68
- yarn add intlayer-cli -g
69
- ```
70
-
71
- ```bash packageManager="pnpm"
72
- pnpm add intlayer-cli -g
73
- ```
74
-
75
- > Jika paket `intlayer` sudah terpasang, CLI akan terpasang secara otomatis. Anda dapat melewati langkah ini.
76
-
77
- ## Paket intlayer-cli
78
-
79
- Paket `intlayer-cli` bertujuan untuk mentranspilasi [deklarasi intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/dictionary/content_file.md) Anda menjadi kamus.
80
-
81
- Paket ini akan mentranspilasi semua file intlayer, seperti `src/**/*.content.{ts|js|mjs|cjs|json}`. [Lihat cara mendeklarasikan file deklarasi Intlayer Anda](https://github.com/aymericzip/intlayer/blob/main/packages/intlayer/README.md).
82
-
83
- Untuk menginterpretasikan kamus intlayer, Anda dapat menggunakan interpreter, seperti [react-intlayer](https://www.npmjs.com/package/react-intlayer), atau [next-intlayer](https://www.npmjs.com/package/next-intlayer).
84
-
85
- ## Dukungan File Konfigurasi
86
-
87
- Intlayer menerima berbagai format file konfigurasi:
88
-
89
- - `intlayer.config.ts`
90
- - `intlayer.config.js`
91
- - `intlayer.config.json`
92
- - `intlayer.config.cjs`
93
- - `intlayer.config.mjs`
94
- - `.intlayerrc`
95
-
96
- Untuk melihat cara mengonfigurasi locale yang tersedia, atau parameter lainnya, lihat [dokumentasi konfigurasi di sini](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/configuration.md).
97
-
98
- ## Menjalankan perintah intlayer
99
-
100
- ### Cek versi CLI
101
-
102
- ```bash
103
- npx intlayer --version
104
- npx intlayer version
105
- ```
106
-
107
- Kedua perintah tersebut akan menampilkan versi Intlayer CLI yang terpasang.
108
-
109
- ### Membangun kamus
110
-
111
- Untuk membangun kamus Anda, Anda dapat menjalankan perintah:
112
-
113
- ```bash
114
- npx intlayer build
115
- ```
116
-
117
- atau dalam mode pengawasan (watch mode)
118
-
119
- ```bash
120
- npx intlayer build --watch
121
- ```
122
-
123
- Perintah ini akan mencari file deklarasi konten Anda secara default di `./src/**/*.content.{ts|js|mjs|cjs|json|tsx|jsx}`. Dan membangun kamus di direktori `.intlayer`.
124
-
125
- ##### Alias:
126
-
127
- - `npx intlayer dictionaries build`
128
- - `npx intlayer dictionary build`
129
- - `npx intlayer dic build`
130
-
131
- ##### Argumen:
132
-
133
- - **`--base-dir`**: Menentukan direktori dasar untuk proyek. Untuk mengambil konfigurasi intlayer, perintah akan mencari file `intlayer.config.{ts,js,json,cjs,mjs}` di direktori dasar.
134
-
135
- > Contoh: `npx intlayer build --base-dir ./src`
136
-
137
- - **`--env`**: Menentukan lingkungan (misalnya, `development`, `production`). Berguna jika Anda menggunakan variabel lingkungan dalam file konfigurasi intlayer Anda.
138
-
139
- > Contoh: `npx intlayer build --env production`
140
-
141
- - **`--env-file`**: Menyediakan file environment kustom untuk memuat variabel. Berguna jika Anda menggunakan variabel environment dalam file konfigurasi intlayer Anda.
142
-
143
- > Contoh: `npx intlayer build --env-file .env.production.local`
144
-
145
- - **`--with`**: Menjalankan perintah secara paralel dengan proses build.
146
-
147
- > Contoh: `npx intlayer build --with "next dev --turbopack"`
148
-
149
- - **`--skip-prepare`**: Melewati langkah prepare.
150
-
151
- > Contoh: `npx intlayer build --skip-prepare`
152
-
153
- - **`--no-cache`**: Menonaktifkan cache.
154
-
155
- > Contoh: `npx intlayer build --no-cache`
156
-
157
- ### Watch dictionaries
158
-
159
- ```bash
160
- npx intlayer watch
161
- ```
162
-
163
- Perintah ini akan memantau perubahan pada file deklarasi konten Anda dan membangun kamus di direktori `.intlayer`.
164
- Perintah ini setara dengan `npx intlayer build --watch --skip-prepare`.
165
-
166
- ##### Alias:
167
-
168
- - `npx intlayer dictionaries watch`
169
- - `npx intlayer dictionary watch`
170
- - `npx intlayer dic watch`
171
-
172
- ##### Argumen:
173
-
174
- - **`--with`**: Menjalankan perintah secara paralel dengan watch.
175
-
176
- > Contoh: `npx intlayer watch --with "next dev --turbopack"`
177
-
178
- ### Push dictionaries
179
-
180
- ```bash
181
- npx intlayer dictionary push
182
- ```
183
-
184
- Jika [intlayer editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/intlayer_visual_editor.md) terpasang, Anda juga dapat mendorong kamus ke editor. Perintah ini akan memungkinkan kamus tersedia di [editor](https://intlayer.org/dashboard). Dengan cara ini, Anda dapat membagikan kamus Anda dengan tim dan mengedit konten tanpa mengubah kode aplikasi Anda.
185
-
186
- ##### Alias:
187
-
188
- - `npx intlayer dictionaries push`
189
- - `npx intlayer dictionary push`
190
- - `npx intlayer dic push`
191
-
192
- ##### Argumen:
193
-
194
- **Opsi Kamus:**
195
-
196
- - **`-d`, `--dictionaries`**: id kamus yang akan ditarik. Jika tidak ditentukan, semua kamus akan didorong.
197
-
198
- > Contoh: `npx intlayer dictionary push -d my-dictionary-id my-other-dictionary-id`
199
-
200
- - **`--dictionary`**: id kamus yang akan ditarik (alias untuk --dictionaries).
201
-
202
- > Contoh: `npx intlayer dictionary push --dictionary my-dictionary-id my-other-dictionary-id`
203
-
204
- **Opsi konfigurasi:**
205
-
206
- - **`--base-dir`**: Tentukan direktori dasar untuk proyek. Untuk mengambil konfigurasi intlayer, perintah akan mencari file `intlayer.config.{ts,js,json,cjs,mjs}` di direktori dasar.
207
-
208
- > Contoh: `npx intlayer dictionary push --env-file .env.production.local`
209
-
210
- - **`--no-cache`**: Nonaktifkan cache.
211
-
212
- > Contoh: `npx intlayer build --no-cache`
213
-
214
- **Opsi variabel lingkungan:**
215
-
216
- - **`--env`**: Tentukan lingkungan (misalnya, `development`, `production`). Berguna jika Anda menggunakan variabel lingkungan dalam file konfigurasi intlayer.
217
- - **`--env-file`**: Sediakan file environment kustom untuk memuat variabel dari file tersebut. Berguna jika Anda menggunakan variabel lingkungan dalam file konfigurasi intlayer Anda.
218
-
219
- > Contoh: `npx intlayer dictionary push --env-file .env.production.local`
220
-
221
- > Contoh: `npx intlayer dictionary push --env production`
222
-
223
- **Opsi output:**
224
-
225
- - **`-r`, `--delete-locale-dictionary`**: Lewati pertanyaan yang menanyakan apakah akan menghapus direktori lokal setelah kamus didorong, dan hapus direktori tersebut. Secara default, jika kamus didefinisikan secara lokal, itu akan menimpa konten kamus yang ada di jarak jauh.
226
-
227
- > Contoh: `npx intlayer dictionary push -r`
228
-
229
- > Contoh: `npx intlayer dictionary push --delete-locale-dictionary`
230
-
231
- - **`-k`, `--keep-locale-dictionary`**: Lewati pertanyaan yang menanyakan apakah akan menghapus direktori lokal setelah kamus didorong, dan simpan direktori tersebut. Secara default, jika kamus didefinisikan secara lokal, itu akan menimpa konten kamus yang ada di jarak jauh.
232
-
233
- > Contoh: `npx intlayer dictionary push -k`
234
-
235
- > Contoh: `npx intlayer dictionary push --keep-locale-dictionary`
236
-
237
- **Opsi persiapan:**
238
-
239
- - **`--build`**: Bangun kamus sebelum mendorong untuk memastikan konten terbaru. True akan memaksa pembangunan, false akan melewati pembangunan, undefined akan memungkinkan menggunakan cache dari pembangunan.
240
-
241
- **Opsi log:**
242
-
243
- - **`--verbose`**: Aktifkan logging verbose untuk debugging. (default true saat menggunakan CLI)
244
-
245
- **Opsi Git:**
246
-
247
- - **`--git-diff`**: Hanya jalankan pada kamus yang mencakup perubahan dari basis (default `origin/main`) ke cabang saat ini (default: `HEAD`).
248
- - **`--git-diff-base`**: Tentukan referensi basis untuk git diff (default `origin/main`).
249
- - **`--git-diff-current`**: Tentukan referensi saat ini untuk git diff (default: `HEAD`).
250
- - **`--uncommitted`**: Sertakan perubahan yang belum dikomit.
251
- - **`--unpushed`**: Sertakan perubahan yang belum didorong.
252
- - **`--untracked`**: Sertakan file yang tidak terlacak.
253
-
254
- > Contoh: `npx intlayer dictionary push --git-diff --git-diff-base origin/main --git-diff-current HEAD`
255
-
256
- > Contoh: `npx intlayer dictionary push --uncommitted --unpushed --untracked`
257
-
258
- ### Tarik kamus jarak jauh
259
-
260
- ```bash
261
- npx intlayer pull
262
- ```
263
-
264
- Jika [intlayer editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/intlayer_visual_editor.md) terpasang, Anda juga dapat menarik kamus dari editor. Dengan cara ini, Anda dapat menimpa konten kamus Anda sesuai kebutuhan aplikasi Anda.
265
-
266
- ##### Alias:
267
-
268
- - `npx intlayer dictionaries pull`
269
- - `npx intlayer dictionary pull`
270
- - `npx intlayer dic pull`
271
-
272
- ##### Argumen:
273
-
274
- **Opsi Kamus:**
275
-
276
- - **`-d, --dictionaries`**: Id kamus yang akan ditarik. Jika tidak ditentukan, semua kamus akan ditarik.
277
-
278
- > Contoh: `npx intlayer dictionary pull -d my-dictionary-id my-other-dictionary-id`
279
-
280
- - **`--dictionary`**: Id kamus yang akan ditarik (alias dari --dictionaries).
281
-
282
- > Contoh: `npx intlayer dictionary pull --dictionary my-dictionary-id my-other-dictionary-id`
283
-
284
- **Opsi Konfigurasi:**
285
-
286
- - **`--base-dir`**: Tentukan direktori dasar untuk proyek. Untuk mengambil konfigurasi intlayer, perintah akan mencari file `intlayer.config.{ts,js,json,cjs,mjs}` di direktori dasar.
287
-
288
- > Contoh: `npx intlayer dictionary push --env-file .env.production.local`
289
-
290
- - **`--no-cache`**: Nonaktifkan cache.
291
-
292
- > Contoh: `npx intlayer build --no-cache`
293
-
294
- **Opsi variabel lingkungan:**
295
-
296
- - **`--env`**: Tentukan lingkungan (misalnya, `development`, `production`).
297
- - **`--env-file`**: Berikan file lingkungan khusus untuk memuat variabel dari file tersebut.
298
- - **`--base-dir`**: Tentukan direktori dasar untuk proyek. Untuk mengambil konfigurasi intlayer, perintah akan mencari file `intlayer.config.{ts,js,json,cjs,mjs}` di direktori dasar.
299
-
300
- > Contoh: `npx intlayer dictionary push --env-file .env.production.local`
301
-
302
- > Contoh: `npx intlayer dictionary push --env production`
303
-
304
- **Opsi output:**
305
-
306
- - **`--new-dictionaries-path`**: Jalur ke direktori tempat kamus baru akan disimpan. Jika tidak ditentukan, kamus baru akan disimpan di direktori `./intlayer-dictionaries` dalam proyek. Jika ada field `filePath` yang ditentukan dalam konten kamus Anda, kamus tidak akan mempertimbangkan argumen ini dan akan disimpan di direktori `filePath` yang ditentukan.
307
-
308
- **Opsi log:**
309
-
310
- - **`--verbose`**: Aktifkan logging verbose untuk debugging. (default true saat menggunakan CLI)
311
-
312
- ##### Contoh:
313
-
314
- ```bash
315
- npx intlayer dictionary pull --newDictionariesPath ./my-dictionaries-dir/
316
- ```
317
-
318
- ### Isi / audit / terjemahkan kamus
319
-
320
- ```bash
321
- npx intlayer fill
322
- ```
323
-
324
- Perintah ini menganalisis file deklarasi konten Anda untuk masalah potensial seperti terjemahan yang hilang, inkonsistensi struktural, atau ketidaksesuaian tipe. Jika ditemukan masalah, **intlayer fill** akan mengusulkan atau menerapkan pembaruan untuk menjaga kamus Anda tetap konsisten dan lengkap.
325
-
326
- ##### Alias:
327
-
328
- - `npx intlayer dictionaries fill`
329
- - `npx intlayer dictionary fill`
330
- - `npx intlayer dic fill`
331
-
332
- ##### Argumen:
333
-
334
- **Opsi daftar file:**
335
-
336
- - **`-f, --file [files...]`**: Daftar file deklarasi konten spesifik yang akan diaudit. Jika tidak diberikan, semua file `*.content.{ts,js,mjs,cjs,tsx,jsx,json}` yang ditemukan berdasarkan pengaturan file konfigurasi Anda akan diaudit.
337
-
338
- > Contoh: `npx intlayer dictionary fill -f src/home/app.content.ts`
339
-
340
- - **`-k, --keys [keys...]`**: Memfilter kamus berdasarkan kunci. Jika tidak diberikan, semua kamus akan diaudit.
341
-
342
- > Contoh: `npx intlayer dictionary fill -k key1 key2`
343
-
344
- - **`--key [keys...]`**: Memfilter kamus berdasarkan kunci (alias dari --keys).
345
-
346
- > Contoh: `npx intlayer dictionary fill --key key1 key2`
347
-
348
- - **`--excluded-keys [excludedKeys...]`**: Memfilter kamus dengan mengecualikan berdasarkan kunci. Jika tidak diberikan, semua kamus akan diaudit.
349
-
350
- > Contoh: `npx intlayer dictionary fill --excluded-keys key1 key2`
351
-
352
- - **`--excluded-key [excludedKeys...]`**: Memfilter kamus berdasarkan kunci (alias dari --excluded-keys).
353
-
354
- > Contoh: `npx intlayer dictionary fill --excluded-key key1 key2`
355
-
356
- - **`--path-filter [pathFilters...]`**: Memfilter kamus berdasarkan pola glob untuk jalur file.
357
-
358
- > Contoh: `npx intlayer dictionary fill --path-filter "src/home/**"`
359
-
360
- **Opsi output entri:**
361
-
362
- - **`--source-locale [sourceLocale]`**: Locale sumber untuk diterjemahkan. Jika tidak ditentukan, locale default dari konfigurasi Anda akan digunakan.
363
-
364
- - **`--output-locales [outputLocales...]`**: Locale target untuk diterjemahkan. Jika tidak ditentukan, semua locale dari konfigurasi Anda akan digunakan kecuali locale sumber.
365
-
366
- - **`--mode [mode]`**: Mode terjemahan: `complete`, `review`. Default adalah `complete`. `complete` akan mengisi semua konten yang hilang, `review` akan mengisi konten yang hilang dan meninjau kunci yang sudah ada.
367
-
368
- **Opsi Git:**
369
-
370
- - **`--git-diff`**: Hanya jalankan pada kamus yang mencakup perubahan dari basis (default `origin/main`) ke cabang saat ini (default: `HEAD`).
371
- - **`--git-diff-base`**: Tentukan referensi basis untuk git diff (default `origin/main`).
372
- - **`--git-diff-current`**: Tentukan referensi saat ini untuk git diff (default: `HEAD`).
373
- - **`--uncommitted`**: Sertakan perubahan yang belum dikomit.
374
- - **`--unpushed`**: Sertakan perubahan yang belum dipush.
375
- - **`--untracked`**: Sertakan file yang belum terlacak.
376
-
377
- > Contoh: `npx intlayer doc translate --git-diff --git-diff-base origin/main --git-diff-current HEAD`
378
-
379
- > Contoh: `npx intlayer doc translate --uncommitted --unpushed --untracked`
380
-
381
- **Opsi AI:**
382
-
383
- - **`--model [model]`**: Model AI yang digunakan untuk terjemahan (misalnya, `gpt-3.5-turbo`).
384
- - **`--provider [provider]`**: Penyedia AI yang digunakan untuk terjemahan.
385
- - **`--temperature [temperature]`**: Pengaturan temperature untuk model AI.
386
- - **`--api-key [apiKey]`**: Berikan API key Anda sendiri untuk layanan AI.
387
- - **`--custom-prompt [prompt]`**: Berikan prompt kustom untuk instruksi terjemahan Anda.
388
- - **`--application-context [applicationContext]`**: Berikan konteks tambahan untuk terjemahan AI.
389
-
390
- > Contoh: `npx intlayer fill --model gpt-3.5-turbo --provider openai --temperature 0.5 --api-key sk-1234567890 --application-context "Aplikasi saya adalah toko kucing"`
391
-
392
- **Opsi variabel lingkungan:**
393
-
394
- - **`--env`**: Tentukan lingkungan (misalnya, `development`, `production`).
395
- - **`--env-file [envFile]`**: Berikan file lingkungan kustom untuk memuat variabel dari file tersebut.
396
-
397
- > Contoh: `npx intlayer fill --env-file .env.production.local`
398
-
399
- > Contoh: `npx intlayer fill --env production`
400
-
401
- **Opsi konfigurasi:**
402
-
403
- - **`--base-dir`**: Tentukan direktori dasar untuk proyek.
404
-
405
- > Contoh: `npx intlayer fill --base-dir ./src`
406
-
407
- - **`--no-cache`**: Nonaktifkan cache.
408
-
409
- > Contoh: `npx intlayer build --no-cache`
410
-
411
- **Opsi persiapan:**
412
-
413
- - **`--build`**: Bangun kamus sebelum melakukan push untuk memastikan konten terbaru. True akan memaksa build, false akan melewati build, undefined akan mengizinkan penggunaan cache dari build.
414
-
415
- - **`--skip-metadata`**: Lewati pengisian metadata yang hilang (deskripsi, judul, tag) untuk kamus.
416
-
417
- **Opsi log:**
418
-
419
- - **`--verbose`**: Aktifkan logging verbose untuk debugging. (default true saat menggunakan CLI)
420
-
421
- ##### Contoh:
422
-
423
- ```bash
424
- npx intlayer fill --file src/home/*.content.ts --source-locale en --output-locales fr es --model gpt-3.5-turbo
425
- ```
426
-
427
- Perintah ini akan menerjemahkan konten dari bahasa Inggris ke bahasa Perancis dan Spanyol untuk semua file deklarasi konten di direktori `src/home/` menggunakan model GPT-3.5 Turbo.
428
-
429
- ### Uji terjemahan yang hilang
430
-
431
- ```bash
432
- npx intlayer content test
433
- ```
434
-
435
- ##### Alias:
436
-
437
- - `npx intlayer test`
438
-
439
- Perintah ini menganalisis file deklarasi konten Anda untuk mengidentifikasi terjemahan yang hilang di semua locale yang dikonfigurasi. Ini memberikan laporan komprehensif yang menunjukkan kunci terjemahan mana yang hilang untuk locale mana, membantu Anda menjaga konsistensi di seluruh konten multibahasa Anda.
440
-
441
- ##### Contoh output:
442
-
443
- ```bash
444
- pnpm intlayer content test
445
- Missing translations:
446
- - home-page - tr - src/components/HomePage/homePage.content.ts
447
- - server-component - es, tr - src/components/ServerComponent/serverComponent.content.ts
448
- - client-component - pl, tr - src/components/ClientComponent/clientComponent.content.ts
449
- Locales: en, ru, ja, fr, ko, zh, es, de, ar, it, en-GB, pt, hi, tr, pl
450
- Required locales: en
451
- Missing locales: pl, tr, es
452
- Terjemahan yang dibutuhkan hilang: -
453
- Total locale yang hilang: 3
454
- Total locale yang dibutuhkan hilang: 0
455
- ```
456
-
457
- ##### Argumen:
458
-
459
- **Opsi konfigurasi:**
460
-
461
- - **`--env`**: Tentukan environment (misalnya, `development`, `production`).
462
- - **`--env-file [envFile]`**: Berikan file environment kustom untuk memuat variabel.
463
- - **`--base-dir`**: Tentukan direktori dasar untuk proyek.
464
-
465
- > Contoh: `npx intlayer content test --base-dir ./src --env-file .env.production.local`
466
-
467
- - **`--no-cache`**: Nonaktifkan cache.
468
-
469
- > Contoh: `npx intlayer build --no-cache`
470
-
471
- **Opsi persiapan:**
472
-
473
- - **`--build`**: Bangun kamus sebelum melakukan push untuk memastikan konten terbaru. True akan memaksa build, false akan melewati build, undefined akan mengizinkan menggunakan cache dari build.
474
-
475
- **Opsi log:**
476
-
477
- - **`--verbose`**: Aktifkan logging verbose untuk debugging. (default true saat menggunakan CLI)
478
-
479
- > Contoh: `npx intlayer content test --verbose`
480
-
481
- ##### Contoh:
482
-
483
- ```bash
484
- npx intlayer content test --verbose
485
- ```
486
-
487
- ##### Contoh output:
488
-
489
- ```bash
490
- npx intlayer content list
491
- File deklarasi konten:
492
- - home-page - src/components/HomePage/homePage.content.ts
493
- - server-component - src/components/ServerComponent/serverComponent.content.ts
494
- - client-component - src/components/ClientComponent/clientComponent.content.ts
495
-
496
- Total file deklarasi konten: 3
497
- ```
498
-
499
- Perintah ini akan memindai semua file deklarasi konten Anda dan menampilkan:
500
-
501
- - Daftar rinci terjemahan yang hilang beserta kunci, locale yang hilang, dan jalur file
502
- - Statistik ringkasan termasuk total locale yang hilang dan locale wajib yang hilang
503
- - Output berwarna untuk memudahkan identifikasi masalah
504
-
505
- Output ini membantu Anda dengan cepat mengidentifikasi terjemahan mana yang perlu diselesaikan agar aplikasi Anda berfungsi dengan baik di semua locale yang dikonfigurasi.
506
-
507
- ### Daftar file deklarasi konten
508
-
509
- ```bash
510
- npx intlayer content list
511
- ```
512
-
513
- ##### Alias:
514
-
515
- - `npx intlayer list`
516
-
517
- Perintah ini menampilkan semua file deklarasi konten dalam proyek Anda, menunjukkan kunci kamus dan jalur file mereka. Ini berguna untuk mendapatkan gambaran semua file konten Anda dan memverifikasi bahwa mereka terdeteksi dengan benar oleh Intlayer.
518
-
519
- ##### Contoh:
520
-
521
- ```bash
522
- npx intlayer content list
523
- ```
524
-
525
- Perintah ini akan menampilkan:
526
-
527
- - Daftar terformat dari semua file deklarasi konten dengan kunci dan jalur file relatif mereka
528
- - Total jumlah file deklarasi konten yang ditemukan
529
-
530
- Output ini membantu Anda memverifikasi bahwa semua file konten Anda telah dikonfigurasi dengan benar dan dapat ditemukan oleh sistem Intlayer.
531
-
532
- ### Kelola Konfigurasi
533
-
534
- #### Dapatkan Konfigurasi
535
-
536
- Perintah `configuration get` mengambil konfigurasi saat ini untuk Intlayer, terutama pengaturan locale. Ini berguna untuk memverifikasi pengaturan Anda.
537
-
538
- ```bash
539
- npx intlayer configuration get
540
- ```
541
-
542
- ##### Alias:
543
-
544
- - `npx intlayer config get`
545
- - `npx intlayer conf get`
546
-
547
- ##### Argumen:
548
-
549
- - **`--env`**: Tentukan lingkungan (misalnya, `development`, `production`).
550
- - **`--env-file`**: Berikan file lingkungan khusus untuk memuat variabel.
551
- - **`--base-dir`**: Tentukan direktori dasar untuk proyek.
552
- - **`--verbose`**: Aktifkan logging verbose untuk debugging. (default true menggunakan CLI)
553
- - **`--no-cache`**: Nonaktifkan cache.
554
-
555
- #### Push Konfigurasi
556
-
557
- Perintah `configuration push` mengunggah konfigurasi Anda ke Intlayer CMS dan editor. Langkah ini diperlukan untuk mengaktifkan penggunaan kamus jarak jauh di Intlayer Visual Editor.
558
-
559
- ```bash
560
- npx intlayer configuration push
561
- ```
562
-
563
- ##### Alias:
564
-
565
- - `npx intlayer config push`
566
- - `npx intlayer conf push`
567
-
568
- ##### Argumen:
569
-
570
- - **`--env`**: Tentukan lingkungan (misalnya, `development`, `production`).
571
- - **`--env-file`**: Berikan file lingkungan khusus untuk memuat variabel.
572
- - **`--base-dir`**: Tentukan direktori dasar untuk proyek.
573
- - **`--verbose`**: Aktifkan logging verbose untuk debugging. (default true menggunakan CLI)
574
- - **`--no-cache`**: Nonaktifkan cache.
575
-
576
- Dengan mendorong konfigurasi, proyek Anda sepenuhnya terintegrasi dengan Intlayer CMS, memungkinkan manajemen kamus yang mulus di seluruh tim.
577
-
578
- ### Manajemen Dokumen
579
-
580
- Perintah `doc` menyediakan alat untuk mengelola dan menerjemahkan file dokumentasi di berbagai locale.
581
-
582
- #### Terjemahkan Dokumen
583
-
584
- Perintah `doc translate` secara otomatis menerjemahkan file dokumentasi dari locale dasar ke locale target menggunakan layanan terjemahan AI.
585
-
586
- ```bash
587
- npx intlayer doc translate
588
- ```
589
-
590
- ##### Argumen:
591
-
592
- **Opsi daftar file:**
593
-
594
- - **`--doc-pattern [docPattern...]`**: Pola glob untuk mencocokkan file dokumentasi yang akan diterjemahkan.
595
-
596
- > Contoh: `npx intlayer doc translate --doc-pattern "docs/**/*.md" "src/**/*.mdx"`
597
-
598
- - **`--excluded-glob-pattern [excludedGlobPattern...]`**: Pola glob untuk mengecualikan file dari terjemahan.
599
-
600
- > Contoh: `npx intlayer doc translate --excluded-glob-pattern "docs/internal/**"`
601
-
602
- - **`--skip-if-modified-before [skipIfModifiedBefore]`**: Lewati file jika telah dimodifikasi sebelum waktu yang diberikan.
603
- - Bisa berupa waktu absolut seperti "2025-12-05" (string atau Date)
604
- - Bisa berupa waktu relatif dalam ms `1 * 60 * 60 * 1000` (1 jam)
605
- - Opsi ini memeriksa waktu pembaruan file menggunakan metode `fs.stat`. Jadi bisa terpengaruh oleh Git atau alat lain yang memodifikasi file.
606
-
607
- > Contoh: `npx intlayer doc translate --skip-if-modified-before "2025-12-05"`
608
-
609
- - **`--skip-if-modified-after [skipIfModifiedAfter]`**: Lewati file jika telah dimodifikasi dalam waktu yang diberikan.
610
- - Bisa berupa waktu absolut seperti "2025-12-05" (string atau Date)
611
- - Bisa berupa waktu relatif dalam ms `1 * 60 * 60 * 1000` (1 jam)
612
- - Opsi ini memeriksa waktu pembaruan file menggunakan metode `fs.stat`. Jadi bisa terpengaruh oleh Git atau alat lain yang memodifikasi file.
613
-
614
- > Contoh: `npx intlayer doc translate --skip-if-modified-after "2025-12-05"`
615
-
616
- **Opsi keluaran entri:**
617
-
618
- - **`--locales [locales...]`**: Lokalisasi target untuk menerjemahkan dokumentasi.
619
-
620
- > Contoh: `npx intlayer doc translate --locales fr es de`
621
-
622
- - **`--base-locale [baseLocale]`**: Lokalisasi sumber untuk menerjemahkan dari.
623
-
624
- > Contoh: `npx intlayer doc translate --base-locale en`
625
-
626
- **Opsi pemrosesan file:**
627
-
628
- - **`--nb-simultaneous-file-processed [nbSimultaneousFileProcessed]`**: Jumlah file yang diproses secara bersamaan untuk terjemahan.
629
-
630
- > Contoh: `npx intlayer doc translate --nb-simultaneous-file-processed 5`
631
-
632
- **Opsi AI:**
633
-
634
- - **`--model [model]`**: Model AI yang digunakan untuk terjemahan (misalnya, `gpt-3.5-turbo`).
635
- - **`--provider [provider]`**: Penyedia AI yang digunakan untuk terjemahan.
636
- - **`--temperature [temperature]`**: Pengaturan temperature untuk model AI.
637
- - **`--api-key [apiKey]`**: Berikan API key Anda sendiri untuk layanan AI.
638
- - **`--application-context [applicationContext]`**: Berikan konteks tambahan untuk terjemahan AI.
639
- - **`--custom-prompt [prompt]`**: Sesuaikan prompt dasar yang digunakan untuk terjemahan. (Catatan: Untuk sebagian besar kasus penggunaan, opsi `--custom-instructions` lebih disarankan karena memberikan kontrol yang lebih baik atas perilaku terjemahan.)
640
-
641
- > Contoh: `npx intlayer doc translate --model deepseek-chat --provider deepseek --temperature 0.5 --api-key sk-1234567890 --application-context "Aplikasi saya adalah toko kucing"`
642
-
643
- **Opsi variabel lingkungan:**
644
-
645
- - **`--env`**: Tentukan lingkungan (misalnya, `development`, `production`).
646
- - **`--env-file [envFile]`**: Berikan file lingkungan khusus untuk memuat variabel.
647
- - **`--base-dir`**: Tentukan direktori dasar untuk proyek.
648
- - **`--no-cache`**: Nonaktifkan cache.
649
-
650
- > Contoh: `npx intlayer doc translate --base-dir ./docs --env-file .env.production.local`
651
-
652
- **Opsi log:**
653
-
654
- - **`--verbose`**: Aktifkan logging verbose untuk debugging. (default true saat menggunakan CLI)
655
-
656
- > Contoh: `npx intlayer doc translate --verbose`
657
-
658
- **Opsi instruksi khusus:**
659
-
660
- - **`--custom-instructions [customInstructions]`**: Instruksi khusus yang ditambahkan ke prompt. Berguna untuk menerapkan aturan spesifik terkait format, terjemahan URL, dll.
661
- - Bisa berupa waktu absolut seperti "2025-12-05" (string atau Date)
662
- - Bisa berupa waktu relatif dalam ms `1 * 60 * 60 * 1000` (1 jam)
663
- - Opsi ini memeriksa waktu pembaruan file menggunakan metode `fs.stat`. Jadi bisa terpengaruh oleh Git atau alat lain yang memodifikasi file.
664
-
665
- > Contoh: `npx intlayer doc translate --custom-instructions "Hindari menerjemahkan url, dan pertahankan format markdown"`
666
-
667
- > Contoh: `npx intlayer doc translate --custom-instructions "$(cat ./instructions.md)"`
668
-
669
- **Opsi Git:**
670
-
671
- - **`--git-diff`**: Hanya jalankan pada kamus yang mencakup perubahan dari base (default `origin/main`) ke cabang saat ini (default: `HEAD`).
672
- - **`--git-diff-base`**: Tentukan referensi base untuk git diff (default `origin/main`).
673
- - **`--git-diff-current`**: Tentukan referensi saat ini untuk git diff (default: `HEAD`).
674
- - **`--uncommitted`**: Sertakan perubahan yang belum dikomit.
675
- - **`--unpushed`**: Sertakan perubahan yang belum dipush.
676
- - **`--untracked`**: Sertakan file yang belum terlacak.
677
-
678
- > Contoh: `npx intlayer doc translate --git-diff --git-diff-base origin/main --git-diff-current HEAD`
679
-
680
- > Contoh: `npx intlayer doc translate --uncommitted --unpushed --untracked`
681
-
682
- > Perlu diperhatikan bahwa jalur file output akan ditentukan dengan mengganti pola-pola berikut
683
- >
684
- > - `/{{baseLocale}}/` menjadi `/{{locale}}/` (Unix)
685
- > - `\{{baseLocale}}\` menjadi `\{{locale}}\` (Windows)
686
- > - `_{{baseLocale}}.` menjadi `_{{locale}}.`
687
- > - `{{baseLocale}}_` menjadi `{{locale}}_`
688
- > - `.{{baseLocaleName}}.` menjadi `.{{localeName}}.`
689
- >
690
- > Jika pola tidak ditemukan, file output akan menambahkan `.{{locale}}` pada ekstensi file. Misalnya `./my/file.md` akan diterjemahkan menjadi `./my/file.fr.md` untuk locale Prancis.
691
-
692
- #### Review Dokumen
693
-
694
- Perintah `doc review` menganalisis file dokumentasi untuk kualitas, konsistensi, dan kelengkapan di berbagai locale.
695
-
696
- ```bash
697
- npx intlayer doc review
698
- ```
699
-
700
- Dapat digunakan untuk meninjau file yang sudah diterjemahkan, dan untuk memeriksa apakah terjemahannya sudah benar.
701
-
702
- Untuk sebagian besar kasus penggunaan,
703
-
704
- - lebih baik menggunakan `doc translate` ketika versi terjemahan dari file ini belum tersedia.
705
- - lebih baik menggunakan `doc review` ketika versi terjemahan dari file ini sudah ada.
706
-
707
- > Perlu diperhatikan bahwa proses review menggunakan lebih banyak token input dibandingkan proses translate untuk meninjau file yang sama secara keseluruhan. Namun, proses review akan mengoptimalkan chunk yang ditinjau, dan akan melewati bagian yang tidak berubah.
708
-
709
- ##### Argumen:
710
-
711
- Perintah `doc review` menerima argumen yang sama dengan `doc translate`, memungkinkan Anda untuk meninjau file dokumentasi tertentu dan menerapkan pemeriksaan kualitas.
712
-
713
- Jika Anda mengaktifkan salah satu opsi git, perintah hanya akan meninjau bagian dari file yang mengalami perubahan. Skrip akan memproses dengan membagi file menjadi beberapa bagian dan meninjau setiap bagian. Jika tidak ada perubahan pada bagian tersebut, skrip akan melewatinya untuk mempercepat proses peninjauan dan membatasi biaya API Penyedia AI.
714
-
715
- ## Gunakan perintah intlayer di `package.json` Anda
716
-
717
- ```json fileName="package.json"
718
- "scripts": {
719
- "intlayer:build": "npx intlayer build",
720
- "intlayer:watch": "npx intlayer build --watch",
721
- "intlayer:push": "npx intlayer push",
722
- "intlayer:pull": "npx intlayer pull",
723
- "intlayer:fill": "npx intlayer fill",
724
- "intlayer:list": "npx intlayer content list",
725
- "intlayer:test": "npx intlayer content test",
726
- "intlayer:doc:translate": "npx intlayer doc translate",
727
- "intlayer:doc:review": "npx intlayer doc review"
728
- }
729
- ```
730
-
731
- > **Catatan**: Anda juga dapat menggunakan alias yang lebih singkat:
732
- >
733
- > - `npx intlayer list` sebagai pengganti `npx intlayer content list`
734
- > - `npx intlayer test` sebagai pengganti `npx intlayer content test`
735
-
736
- ### Perintah Editor
737
-
738
- Perintah `editor` membungkus ulang perintah `intlayer-editor`.
739
-
740
- > Untuk dapat menggunakan perintah `editor`, paket `intlayer-editor` harus diinstal. (Lihat [Intlayer Visual Editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/intlayer_visual_editor.md))
741
-
742
- ```json fileName="package.json"
743
- "scripts": {
744
- "intlayer:editor:start": "npx intlayer editor start --with 'next dev --turbopack'"
745
- }
746
- ```
747
-
748
- ### Perintah Live Sync
749
-
750
- Live Sync memungkinkan aplikasi Anda mencerminkan perubahan konten CMS secara runtime. Tidak perlu membangun ulang atau melakukan deploy ulang. Saat diaktifkan, pembaruan akan dialirkan ke server Live Sync yang menyegarkan kamus yang dibaca oleh aplikasi Anda. Lihat [Intlayer CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/id/intlayer_CMS.md) untuk detail lebih lanjut.
751
-
752
- ```json fileName="package.json"
753
- "scripts": {
754
- "intlayer:live:start": "npx intlayer live start --with 'next dev --turbopack'"
755
- }
756
- ```
757
-
758
- ##### Argumen:
759
-
760
- **Opsi konfigurasi:**
761
-
762
- - **`--base-dir`**: Tentukan direktori dasar untuk proyek. Untuk mengambil konfigurasi intlayer, perintah akan mencari file `intlayer.config.{ts,js,json,cjs,mjs}` di direktori dasar.
763
-
764
- - **`--no-cache`**: Nonaktifkan cache.
765
-
766
- > Contoh: `npx intlayer dictionary push --env-file .env.production.local`
767
-
768
- **Opsi log:**
769
-
770
- - **`--verbose`**: Aktifkan logging verbose untuk debugging. (default true saat menggunakan CLI)
771
-
772
- ---
773
-
774
- ## CLI SDK
775
-
776
- CLI SDK adalah sebuah library yang memungkinkan Anda menggunakan Intlayer CLI dalam kode Anda sendiri.
777
-
778
- ```bash packageManager="npm"
779
- npm install @intlayer/cli --save-dev
780
- ```
781
-
782
- ```bash packageManager="yarn"
783
- yarn add @intlayer/cli --save-dev
784
- ```
785
-
786
- ```bash packageManager="pnpm"
787
- pnpm add @intlayer/cli --save-dev
788
- ```
789
-
790
- Contoh penggunaan:
791
-
792
- ```ts
793
- import {
794
- push,
795
- pull,
796
- fill,
797
- build,
798
- listContentDeclaration,
799
- testMissingTranslations,
800
- docTranslate,
801
- docReview,
802
- } from "@intlayer/cli";
803
-
804
- push();
805
- // ...
806
- pull();
807
- // ...
808
- fill();
809
- // ...
810
- build();
811
- // ...
812
- listContentDeclaration();
813
- // ...
814
- testMissingTranslations();
815
- // ...
816
- docTranslate();
817
- // ...
818
- docReview();
819
- // ...
820
- ```
821
-
822
- ## Debug perintah intlayer
823
-
824
- ### 1. **Pastikan Anda menggunakan versi terbaru**
825
-
826
- Jalankan:
827
-
828
- ```bash
829
- npx intlayer --version # versi intlayer lokal saat ini
830
- npx intlayer@latest --version # versi intlayer terbaru saat ini
831
- ```
832
-
833
- ### 2. **Periksa apakah perintah sudah terdaftar**
834
-
835
- Anda dapat memeriksa dengan:
836
-
837
- ```bash
838
- npx intlayer --help # Menampilkan daftar perintah yang tersedia dan informasi penggunaan
839
- npx intlayer dictionary build --help # Menampilkan daftar opsi yang tersedia untuk sebuah perintah
840
- ```
841
-
842
- ### 3. **Restart terminal Anda**
843
-
844
- Kadang-kadang perlu restart terminal agar perintah baru dikenali.
845
-
846
- ### 4. **Bersihkan cache npx (jika Anda terjebak dengan versi lama)**
847
-
848
- ```bash
849
- npx clear-npx-cache
850
- ```