@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.
- package/README.md +2 -0
- package/blog/ar/compiler_vs_declarative_i18n.md +138 -0
- package/blog/ar/intlayer_with_next-i18next.md +0 -1
- package/blog/ar/intlayer_with_vue-i18n.md +0 -1
- package/blog/de/compiler_vs_declarative_i18n.md +138 -0
- package/blog/de/intlayer_with_next-i18next.md +0 -1
- package/blog/de/intlayer_with_vue-i18n.md +0 -1
- package/blog/en/compiler_vs_declarative_i18n.md +138 -0
- package/blog/en/i18n_using_next-i18next.md +1 -1
- package/blog/en/i18n_using_next-intl.md +1 -1
- package/blog/en/intlayer_with_i18next.md +1 -1
- package/blog/en/intlayer_with_next-i18next.md +1 -2
- package/blog/en/intlayer_with_next-intl.md +1 -1
- package/blog/en/intlayer_with_react-i18next.md +1 -1
- package/blog/en/intlayer_with_react-intl.md +1 -1
- package/blog/en/intlayer_with_vue-i18n.md +1 -2
- package/blog/en-GB/compiler_vs_declarative_i18n.md +138 -0
- package/blog/en-GB/intlayer_with_next-i18next.md +0 -1
- package/blog/en-GB/intlayer_with_vue-i18n.md +0 -1
- package/blog/es/compiler_vs_declarative_i18n.md +138 -0
- package/blog/es/intlayer_with_next-i18next.md +0 -1
- package/blog/es/intlayer_with_vue-i18n.md +0 -1
- package/blog/fr/compiler_vs_declarative_i18n.md +138 -0
- package/blog/fr/intlayer_with_next-i18next.md +0 -1
- package/blog/fr/intlayer_with_vue-i18n.md +0 -1
- package/blog/hi/compiler_vs_declarative_i18n.md +138 -0
- package/blog/hi/intlayer_with_next-i18next.md +0 -1
- package/blog/hi/intlayer_with_vue-i18n.md +0 -1
- package/blog/id/compiler_vs_declarative_i18n.md +138 -0
- package/blog/id/intlayer_with_next-i18next.md +0 -1
- package/blog/id/intlayer_with_vue-i18n.md +0 -1
- package/blog/it/compiler_vs_declarative_i18n.md +138 -0
- package/blog/it/intlayer_with_next-i18next.md +0 -1
- package/blog/it/intlayer_with_vue-i18n.md +0 -1
- package/blog/ja/compiler_vs_declarative_i18n.md +138 -0
- package/blog/ja/intlayer_with_next-i18next.md +0 -1
- package/blog/ja/intlayer_with_vue-i18n.md +0 -1
- package/blog/ko/compiler_vs_declarative_i18n.md +138 -0
- package/blog/ko/intlayer_with_next-i18next.md +0 -1
- package/blog/ko/intlayer_with_vue-i18n.md +0 -1
- package/blog/pl/compiler_vs_declarative_i18n.md +138 -0
- package/blog/pl/intlayer_with_next-i18next.md +0 -1
- package/blog/pl/intlayer_with_vue-i18n.md +0 -1
- package/blog/pt/compiler_vs_declarative_i18n.md +138 -0
- package/blog/pt/intlayer_with_next-i18next.md +0 -1
- package/blog/pt/intlayer_with_vue-i18n.md +0 -1
- package/blog/ru/compiler_vs_declarative_i18n.md +138 -0
- package/blog/ru/intlayer_with_next-i18next.md +0 -1
- package/blog/ru/intlayer_with_vue-i18n.md +0 -1
- package/blog/tr/compiler_vs_declarative_i18n.md +138 -0
- package/blog/tr/intlayer_with_next-i18next.md +0 -1
- package/blog/tr/intlayer_with_vue-i18n.md +0 -1
- package/blog/vi/compiler_vs_declarative_i18n.md +138 -0
- package/blog/vi/intlayer_with_next-i18next.md +0 -1
- package/blog/vi/intlayer_with_vue-i18n.md +0 -1
- package/blog/zh/compiler_vs_declarative_i18n.md +138 -0
- package/blog/zh/intlayer_with_next-i18next.md +0 -1
- package/blog/zh/intlayer_with_vue-i18n.md +0 -1
- package/dist/cjs/generated/blog.entry.cjs +19 -0
- package/dist/cjs/generated/blog.entry.cjs.map +1 -1
- package/dist/cjs/generated/docs.entry.cjs +323 -19
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/esm/generated/blog.entry.mjs +19 -0
- package/dist/esm/generated/blog.entry.mjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +323 -19
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/types/generated/blog.entry.d.ts +1 -0
- package/dist/types/generated/blog.entry.d.ts.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +17 -1
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/docs/ar/cli/build.md +64 -0
- package/docs/ar/cli/configuration.md +63 -0
- package/docs/ar/cli/debug.md +46 -0
- package/docs/ar/cli/doc-review.md +43 -0
- package/docs/ar/cli/doc-translate.md +132 -0
- package/docs/ar/cli/editor.md +28 -0
- package/docs/ar/cli/fill.md +130 -0
- package/docs/ar/cli/index.md +163 -0
- package/docs/ar/cli/list.md +53 -0
- package/docs/ar/cli/live.md +41 -0
- package/docs/ar/cli/pull.md +78 -0
- package/docs/ar/cli/push.md +98 -0
- package/docs/ar/cli/sdk.md +67 -0
- package/docs/ar/cli/test.md +76 -0
- package/docs/ar/cli/transform.md +65 -0
- package/docs/ar/cli/version.md +24 -0
- package/docs/ar/cli/watch.md +37 -0
- package/docs/ar/intlayer_with_svelte_kit.md +3 -2
- package/docs/ar/packages/intlayer/getPrefix.md +210 -0
- package/docs/de/cli/build.md +64 -0
- package/docs/de/cli/configuration.md +63 -0
- package/docs/de/cli/debug.md +46 -0
- package/docs/de/cli/doc-review.md +43 -0
- package/docs/de/cli/doc-translate.md +132 -0
- package/docs/de/cli/editor.md +28 -0
- package/docs/de/cli/fill.md +130 -0
- package/docs/de/cli/index.md +163 -0
- package/docs/de/cli/list.md +53 -0
- package/docs/de/cli/live.md +41 -0
- package/docs/de/cli/pull.md +78 -0
- package/docs/de/cli/push.md +98 -0
- package/docs/de/cli/sdk.md +67 -0
- package/docs/de/cli/test.md +76 -0
- package/docs/de/cli/transform.md +65 -0
- package/docs/de/cli/version.md +24 -0
- package/docs/de/cli/watch.md +37 -0
- package/docs/de/intlayer_with_svelte_kit.md +3 -2
- package/docs/de/packages/intlayer/getPrefix.md +213 -0
- package/docs/en/CI_CD.md +2 -2
- package/docs/en/autoFill.md +24 -2
- package/docs/en/cli/build.md +64 -0
- package/docs/en/cli/configuration.md +63 -0
- package/docs/en/cli/debug.md +46 -0
- package/docs/en/cli/doc-review.md +43 -0
- package/docs/en/cli/doc-translate.md +132 -0
- package/docs/en/cli/editor.md +28 -0
- package/docs/en/cli/fill.md +130 -0
- package/docs/en/cli/index.md +163 -0
- package/docs/en/cli/list.md +53 -0
- package/docs/en/cli/live.md +41 -0
- package/docs/en/cli/pull.md +78 -0
- package/docs/en/cli/push.md +98 -0
- package/docs/en/cli/sdk.md +67 -0
- package/docs/en/cli/test.md +76 -0
- package/docs/en/cli/transform.md +65 -0
- package/docs/en/cli/version.md +24 -0
- package/docs/en/cli/watch.md +37 -0
- package/docs/en/dictionary/condition.md +1 -1
- package/docs/en/dictionary/enumeration.md +1 -1
- package/docs/en/dictionary/file.md +1 -1
- package/docs/en/dictionary/gender.md +1 -1
- package/docs/en/dictionary/insertion.md +1 -1
- package/docs/en/dictionary/markdown.md +1 -1
- package/docs/en/dictionary/nesting.md +1 -1
- package/docs/en/index.md +1 -1
- package/docs/en/intlayer_with_angular.md +1 -1
- package/docs/en/intlayer_with_astro.md +1 -1
- package/docs/en/intlayer_with_create_react_app.md +1 -1
- package/docs/en/intlayer_with_lynx+react.md +1 -1
- package/docs/en/intlayer_with_next-i18next.md +1 -1
- package/docs/en/intlayer_with_next-intl.md +1 -1
- package/docs/en/intlayer_with_nextjs_14.md +1 -1
- package/docs/en/intlayer_with_nextjs_15.md +1 -1
- package/docs/en/intlayer_with_nextjs_16.md +1 -1
- package/docs/en/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/en/intlayer_with_nuxt.md +1 -1
- package/docs/en/intlayer_with_react_native+expo.md +1 -1
- package/docs/en/intlayer_with_react_router_v7.md +1 -1
- package/docs/en/intlayer_with_svelte_kit.md +3 -2
- package/docs/en/intlayer_with_tanstack.md +1 -1
- package/docs/en/intlayer_with_vite+preact.md +1 -1
- package/docs/en/intlayer_with_vite+react.md +1 -1
- package/docs/en/intlayer_with_vite+solid.md +1 -1
- package/docs/en/intlayer_with_vite+svelte.md +1 -1
- package/docs/en/intlayer_with_vite+vue.md +1 -1
- package/docs/en/introduction.md +1 -1
- package/docs/en/mcp_server.md +1 -2
- package/docs/en/per_locale_file.md +1 -1
- package/docs/en/plugins/sync-json.md +1 -1
- package/docs/en/releases/v6.md +2 -2
- package/docs/en/roadmap.md +1 -1
- package/docs/en-GB/cli/build.md +64 -0
- package/docs/en-GB/cli/configuration.md +63 -0
- package/docs/en-GB/cli/debug.md +46 -0
- package/docs/en-GB/cli/doc-review.md +43 -0
- package/docs/en-GB/cli/doc-translate.md +132 -0
- package/docs/en-GB/cli/editor.md +28 -0
- package/docs/en-GB/cli/fill.md +130 -0
- package/docs/en-GB/cli/index.md +163 -0
- package/docs/en-GB/cli/list.md +53 -0
- package/docs/en-GB/cli/live.md +41 -0
- package/docs/en-GB/cli/pull.md +78 -0
- package/docs/en-GB/cli/push.md +98 -0
- package/docs/en-GB/cli/sdk.md +67 -0
- package/docs/en-GB/cli/test.md +100 -0
- package/docs/en-GB/cli/transform.md +65 -0
- package/docs/en-GB/cli/version.md +24 -0
- package/docs/en-GB/cli/watch.md +37 -0
- package/docs/en-GB/dictionary/condition.md +1 -1
- package/docs/en-GB/dictionary/markdown.md +1 -1
- package/docs/en-GB/dictionary/nesting.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_14.md +1 -1
- package/docs/en-GB/intlayer_with_react_native+expo.md +1 -1
- package/docs/en-GB/intlayer_with_svelte_kit.md +3 -2
- package/docs/en-GB/packages/intlayer/getPrefix.md +213 -0
- package/docs/es/cli/build.md +64 -0
- package/docs/es/cli/configuration.md +63 -0
- package/docs/es/cli/debug.md +46 -0
- package/docs/es/cli/doc-review.md +43 -0
- package/docs/es/cli/doc-translate.md +132 -0
- package/docs/es/cli/editor.md +28 -0
- package/docs/es/cli/fill.md +130 -0
- package/docs/es/cli/index.md +163 -0
- package/docs/es/cli/list.md +53 -0
- package/docs/es/cli/live.md +41 -0
- package/docs/es/cli/pull.md +78 -0
- package/docs/es/cli/push.md +98 -0
- package/docs/es/cli/sdk.md +67 -0
- package/docs/es/cli/test.md +76 -0
- package/docs/es/cli/transform.md +65 -0
- package/docs/es/cli/version.md +24 -0
- package/docs/es/cli/watch.md +37 -0
- package/docs/es/intlayer_with_svelte_kit.md +3 -2
- package/docs/es/packages/intlayer/getPrefix.md +213 -0
- package/docs/fr/cli/build.md +64 -0
- package/docs/fr/cli/configuration.md +63 -0
- package/docs/fr/cli/debug.md +46 -0
- package/docs/fr/cli/doc-review.md +43 -0
- package/docs/fr/cli/doc-translate.md +132 -0
- package/docs/fr/cli/editor.md +28 -0
- package/docs/fr/cli/fill.md +130 -0
- package/docs/fr/cli/index.md +163 -0
- package/docs/fr/cli/list.md +53 -0
- package/docs/fr/cli/live.md +41 -0
- package/docs/fr/cli/pull.md +78 -0
- package/docs/fr/cli/push.md +98 -0
- package/docs/fr/cli/sdk.md +67 -0
- package/docs/fr/cli/test.md +76 -0
- package/docs/fr/cli/transform.md +65 -0
- package/docs/fr/cli/version.md +24 -0
- package/docs/fr/cli/watch.md +37 -0
- package/docs/fr/intlayer_with_svelte_kit.md +3 -2
- package/docs/fr/packages/intlayer/getPrefix.md +213 -0
- package/docs/hi/cli/build.md +64 -0
- package/docs/hi/cli/configuration.md +63 -0
- package/docs/hi/cli/debug.md +46 -0
- package/docs/hi/cli/doc-review.md +43 -0
- package/docs/hi/cli/doc-translate.md +132 -0
- package/docs/hi/cli/editor.md +28 -0
- package/docs/hi/cli/fill.md +130 -0
- package/docs/hi/cli/index.md +163 -0
- package/docs/hi/cli/list.md +53 -0
- package/docs/hi/cli/live.md +41 -0
- package/docs/hi/cli/pull.md +78 -0
- package/docs/hi/cli/push.md +98 -0
- package/docs/hi/cli/sdk.md +67 -0
- package/docs/hi/cli/test.md +76 -0
- package/docs/hi/cli/transform.md +65 -0
- package/docs/hi/cli/version.md +24 -0
- package/docs/hi/cli/watch.md +37 -0
- package/docs/hi/intlayer_with_svelte_kit.md +3 -2
- package/docs/hi/intlayer_with_tanstack.md +1 -1
- package/docs/hi/intlayer_with_vite+solid.md +1 -1
- package/docs/hi/packages/intlayer/getPrefix.md +217 -0
- package/docs/id/cli/build.md +64 -0
- package/docs/id/cli/configuration.md +62 -0
- package/docs/id/cli/debug.md +46 -0
- package/docs/id/cli/doc-review.md +43 -0
- package/docs/id/cli/doc-translate.md +132 -0
- package/docs/id/cli/editor.md +28 -0
- package/docs/id/cli/fill.md +130 -0
- package/docs/id/cli/index.md +163 -0
- package/docs/id/cli/list.md +53 -0
- package/docs/id/cli/live.md +41 -0
- package/docs/id/cli/pull.md +78 -0
- package/docs/id/cli/push.md +98 -0
- package/docs/id/cli/sdk.md +67 -0
- package/docs/id/cli/test.md +76 -0
- package/docs/id/cli/transform.md +65 -0
- package/docs/id/cli/version.md +24 -0
- package/docs/id/cli/watch.md +37 -0
- package/docs/id/intlayer_with_svelte_kit.md +3 -2
- package/docs/id/packages/intlayer/getPrefix.md +210 -0
- package/docs/it/cli/build.md +64 -0
- package/docs/it/cli/configuration.md +63 -0
- package/docs/it/cli/debug.md +46 -0
- package/docs/it/cli/doc-review.md +43 -0
- package/docs/it/cli/doc-translate.md +132 -0
- package/docs/it/cli/editor.md +28 -0
- package/docs/it/cli/fill.md +130 -0
- package/docs/it/cli/index.md +158 -0
- package/docs/it/cli/list.md +53 -0
- package/docs/it/cli/live.md +41 -0
- package/docs/it/cli/pull.md +78 -0
- package/docs/it/cli/push.md +98 -0
- package/docs/it/cli/sdk.md +67 -0
- package/docs/it/cli/test.md +76 -0
- package/docs/it/cli/transform.md +65 -0
- package/docs/it/cli/version.md +24 -0
- package/docs/it/cli/watch.md +39 -0
- package/docs/it/intlayer_with_svelte_kit.md +3 -2
- package/docs/it/packages/intlayer/getPrefix.md +211 -0
- package/docs/ja/cli/build.md +78 -0
- package/docs/ja/cli/configuration.md +63 -0
- package/docs/ja/cli/debug.md +46 -0
- package/docs/ja/cli/doc-review.md +43 -0
- package/docs/ja/cli/doc-translate.md +132 -0
- package/docs/ja/cli/editor.md +28 -0
- package/docs/ja/cli/fill.md +130 -0
- package/docs/ja/cli/index.md +163 -0
- package/docs/ja/cli/list.md +53 -0
- package/docs/ja/cli/live.md +41 -0
- package/docs/ja/cli/pull.md +78 -0
- package/docs/ja/cli/push.md +113 -0
- package/docs/ja/cli/sdk.md +67 -0
- package/docs/ja/cli/test.md +76 -0
- package/docs/ja/cli/transform.md +65 -0
- package/docs/ja/cli/version.md +24 -0
- package/docs/ja/cli/watch.md +37 -0
- package/docs/ja/intlayer_with_svelte_kit.md +3 -2
- package/docs/ja/packages/intlayer/getPrefix.md +212 -0
- package/docs/ko/cli/build.md +64 -0
- package/docs/ko/cli/configuration.md +63 -0
- package/docs/ko/cli/debug.md +46 -0
- package/docs/ko/cli/doc-review.md +43 -0
- package/docs/ko/cli/doc-translate.md +132 -0
- package/docs/ko/cli/editor.md +28 -0
- package/docs/ko/cli/fill.md +130 -0
- package/docs/ko/cli/index.md +163 -0
- package/docs/ko/cli/list.md +53 -0
- package/docs/ko/cli/live.md +41 -0
- package/docs/ko/cli/pull.md +78 -0
- package/docs/ko/cli/push.md +113 -0
- package/docs/ko/cli/sdk.md +67 -0
- package/docs/ko/cli/test.md +76 -0
- package/docs/ko/cli/transform.md +65 -0
- package/docs/ko/cli/version.md +24 -0
- package/docs/ko/cli/watch.md +37 -0
- package/docs/ko/intlayer_with_svelte_kit.md +3 -2
- package/docs/ko/packages/intlayer/getPrefix.md +213 -0
- package/docs/pl/cli/build.md +64 -0
- package/docs/pl/cli/configuration.md +63 -0
- package/docs/pl/cli/debug.md +46 -0
- package/docs/pl/cli/doc-review.md +43 -0
- package/docs/pl/cli/doc-translate.md +132 -0
- package/docs/pl/cli/editor.md +28 -0
- package/docs/pl/cli/fill.md +130 -0
- package/docs/pl/cli/index.md +163 -0
- package/docs/pl/cli/list.md +53 -0
- package/docs/pl/cli/live.md +41 -0
- package/docs/pl/cli/pull.md +78 -0
- package/docs/pl/cli/push.md +98 -0
- package/docs/pl/cli/sdk.md +67 -0
- package/docs/pl/cli/test.md +76 -0
- package/docs/pl/cli/transform.md +65 -0
- package/docs/pl/cli/version.md +24 -0
- package/docs/pl/cli/watch.md +39 -0
- package/docs/pl/intlayer_with_svelte_kit.md +3 -2
- package/docs/pl/packages/intlayer/getPrefix.md +217 -0
- package/docs/pt/cli/build.md +64 -0
- package/docs/pt/cli/configuration.md +63 -0
- package/docs/pt/cli/debug.md +46 -0
- package/docs/pt/cli/doc-review.md +43 -0
- package/docs/pt/cli/doc-translate.md +132 -0
- package/docs/pt/cli/editor.md +28 -0
- package/docs/pt/cli/fill.md +130 -0
- package/docs/pt/cli/index.md +163 -0
- package/docs/pt/cli/list.md +53 -0
- package/docs/pt/cli/live.md +41 -0
- package/docs/pt/cli/pull.md +78 -0
- package/docs/pt/cli/push.md +98 -0
- package/docs/pt/cli/sdk.md +67 -0
- package/docs/pt/cli/test.md +76 -0
- package/docs/pt/cli/transform.md +65 -0
- package/docs/pt/cli/version.md +24 -0
- package/docs/pt/cli/watch.md +39 -0
- package/docs/pt/intlayer_with_svelte_kit.md +3 -2
- package/docs/pt/packages/intlayer/getPrefix.md +217 -0
- package/docs/ru/cli/build.md +64 -0
- package/docs/ru/cli/configuration.md +63 -0
- package/docs/ru/cli/debug.md +46 -0
- package/docs/ru/cli/doc-review.md +43 -0
- package/docs/ru/cli/doc-translate.md +132 -0
- package/docs/ru/cli/editor.md +28 -0
- package/docs/ru/cli/fill.md +130 -0
- package/docs/ru/cli/index.md +163 -0
- package/docs/ru/cli/list.md +53 -0
- package/docs/ru/cli/live.md +41 -0
- package/docs/ru/cli/pull.md +78 -0
- package/docs/ru/cli/push.md +98 -0
- package/docs/ru/cli/sdk.md +67 -0
- package/docs/ru/cli/test.md +76 -0
- package/docs/ru/cli/transform.md +65 -0
- package/docs/ru/cli/version.md +24 -0
- package/docs/ru/cli/watch.md +39 -0
- package/docs/ru/intlayer_with_svelte_kit.md +3 -2
- package/docs/ru/packages/intlayer/getPrefix.md +213 -0
- package/docs/tr/CI_CD.md +2 -2
- package/docs/tr/cli/build.md +64 -0
- package/docs/tr/cli/configuration.md +63 -0
- package/docs/tr/cli/debug.md +46 -0
- package/docs/tr/cli/doc-review.md +43 -0
- package/docs/tr/cli/doc-translate.md +132 -0
- package/docs/tr/cli/editor.md +28 -0
- package/docs/tr/cli/fill.md +130 -0
- package/docs/tr/cli/index.md +163 -0
- package/docs/tr/cli/list.md +53 -0
- package/docs/tr/cli/live.md +41 -0
- package/docs/tr/cli/pull.md +78 -0
- package/docs/tr/cli/push.md +98 -0
- package/docs/tr/cli/sdk.md +67 -0
- package/docs/tr/cli/test.md +76 -0
- package/docs/tr/cli/transform.md +65 -0
- package/docs/tr/cli/version.md +24 -0
- package/docs/tr/cli/watch.md +39 -0
- package/docs/tr/dictionary/condition.md +1 -1
- package/docs/tr/dictionary/enumeration.md +1 -1
- package/docs/tr/dictionary/file.md +1 -1
- package/docs/tr/dictionary/gender.md +1 -1
- package/docs/tr/dictionary/insertion.md +1 -1
- package/docs/tr/dictionary/markdown.md +1 -1
- package/docs/tr/dictionary/nesting.md +1 -1
- package/docs/tr/index.md +1 -1
- package/docs/tr/intlayer_with_angular.md +1 -1
- package/docs/tr/intlayer_with_create_react_app.md +1 -1
- package/docs/tr/intlayer_with_lynx+react.md +1 -1
- package/docs/tr/intlayer_with_nextjs_15.md +1 -1
- package/docs/tr/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/tr/intlayer_with_nuxt.md +1 -1
- package/docs/tr/intlayer_with_react_native+expo.md +1 -1
- package/docs/tr/intlayer_with_svelte_kit.md +3 -2
- package/docs/tr/intlayer_with_vite+preact.md +1 -1
- package/docs/tr/intlayer_with_vite+react.md +1 -1
- package/docs/tr/intlayer_with_vite+solid.md +1 -1
- package/docs/tr/intlayer_with_vite+vue.md +1 -1
- package/docs/tr/introduction.md +1 -1
- package/docs/tr/mcp_server.md +1 -1
- package/docs/tr/packages/intlayer/getPrefix.md +213 -0
- package/docs/tr/per_locale_file.md +1 -1
- package/docs/tr/roadmap.md +1 -1
- package/docs/vi/cli/build.md +64 -0
- package/docs/vi/cli/configuration.md +63 -0
- package/docs/vi/cli/debug.md +46 -0
- package/docs/vi/cli/doc-review.md +43 -0
- package/docs/vi/cli/doc-translate.md +132 -0
- package/docs/vi/cli/editor.md +28 -0
- package/docs/vi/cli/fill.md +130 -0
- package/docs/vi/cli/index.md +163 -0
- package/docs/vi/cli/list.md +53 -0
- package/docs/vi/cli/live.md +41 -0
- package/docs/vi/cli/pull.md +78 -0
- package/docs/vi/cli/push.md +98 -0
- package/docs/vi/cli/sdk.md +67 -0
- package/docs/vi/cli/test.md +76 -0
- package/docs/vi/cli/transform.md +65 -0
- package/docs/vi/cli/version.md +24 -0
- package/docs/vi/cli/watch.md +37 -0
- package/docs/vi/intlayer_with_svelte_kit.md +3 -2
- package/docs/vi/packages/intlayer/getPrefix.md +213 -0
- package/docs/zh/cli/build.md +64 -0
- package/docs/zh/cli/configuration.md +63 -0
- package/docs/zh/cli/debug.md +46 -0
- package/docs/zh/cli/doc-review.md +43 -0
- package/docs/zh/cli/doc-translate.md +132 -0
- package/docs/zh/cli/editor.md +28 -0
- package/docs/zh/cli/fill.md +130 -0
- package/docs/zh/cli/index.md +168 -0
- package/docs/zh/cli/list.md +53 -0
- package/docs/zh/cli/live.md +41 -0
- package/docs/zh/cli/pull.md +78 -0
- package/docs/zh/cli/push.md +113 -0
- package/docs/zh/cli/sdk.md +67 -0
- package/docs/zh/cli/test.md +76 -0
- package/docs/zh/cli/transform.md +65 -0
- package/docs/zh/cli/version.md +24 -0
- package/docs/zh/cli/watch.md +37 -0
- package/docs/zh/intlayer_with_svelte_kit.md +3 -2
- package/docs/zh/packages/intlayer/getPrefix.md +213 -0
- package/package.json +7 -7
- package/src/generated/blog.entry.ts +19 -0
- package/src/generated/docs.entry.ts +323 -19
- package/docs/ar/intlayer_cli.md +0 -578
- package/docs/de/intlayer_cli.md +0 -579
- package/docs/en/intlayer_cli.md +0 -857
- package/docs/en-GB/intlayer_cli.md +0 -579
- package/docs/es/intlayer_cli.md +0 -578
- package/docs/fr/intlayer_cli.md +0 -578
- package/docs/hi/intlayer_cli.md +0 -580
- package/docs/id/intlayer_cli.md +0 -850
- package/docs/it/intlayer_cli.md +0 -574
- package/docs/ja/intlayer_cli.md +0 -580
- package/docs/ko/intlayer_cli.md +0 -578
- package/docs/pl/intlayer_cli.md +0 -857
- package/docs/pt/intlayer_cli.md +0 -579
- package/docs/ru/intlayer_cli.md +0 -849
- package/docs/tr/intlayer_cli.md +0 -578
- package/docs/vi/intlayer_cli.md +0 -850
- package/docs/zh/intlayer_cli.md +0 -577
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Watch Dictionaries
|
|
5
|
+
description: Learn how to watch for changes in your content declaration files and automatically build dictionaries.
|
|
6
|
+
keywords:
|
|
7
|
+
- Watch
|
|
8
|
+
- Dictionaries
|
|
9
|
+
- CLI
|
|
10
|
+
- Intlayer
|
|
11
|
+
slugs:
|
|
12
|
+
- doc
|
|
13
|
+
- concept
|
|
14
|
+
- cli
|
|
15
|
+
- watch
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Watch Dictionaries
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx intlayer watch
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
This command will watch for changes in your content declaration files and build the dictionaries in the `.intlayer` directory.
|
|
25
|
+
This command is the equivalent of `npx intlayer build --watch --skip-prepare`.
|
|
26
|
+
|
|
27
|
+
## Aliases:
|
|
28
|
+
|
|
29
|
+
- `npx intlayer dictionaries watch`
|
|
30
|
+
- `npx intlayer dictionary watch`
|
|
31
|
+
- `npx intlayer dic watch`
|
|
32
|
+
|
|
33
|
+
## Arguments:
|
|
34
|
+
|
|
35
|
+
- **`--with`**: Start command in parallel with the watch.
|
|
36
|
+
|
|
37
|
+
> Example: `npx intlayer watch --with "next dev --turbopack"`
|
|
@@ -230,7 +230,7 @@ module.exports = ConditionalComponent;
|
|
|
230
230
|
|
|
231
231
|
For more detailed information on configuration and usage, refer to the following resources:
|
|
232
232
|
|
|
233
|
-
- [Intlayer CLI Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/
|
|
233
|
+
- [Intlayer CLI Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/index.md)
|
|
234
234
|
- [React Intlayer Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_create_react_app.md)
|
|
235
235
|
- [Next Intlayer Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_15.md)
|
|
236
236
|
|
|
@@ -371,7 +371,7 @@ const IntlayerMarkdownProvider = ({ children }) => (
|
|
|
371
371
|
|
|
372
372
|
## Additional Resources
|
|
373
373
|
|
|
374
|
-
- [Intlayer CLI Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/
|
|
374
|
+
- [Intlayer CLI Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/index.md)
|
|
375
375
|
- [React Intlayer Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_create_react_app.md)
|
|
376
376
|
- [Next Intlayer Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_15.md)
|
|
377
377
|
- [markdown-to-jsx on npm](https://www.npmjs.com/package/markdown-to-jsx)
|
|
@@ -266,7 +266,7 @@ module.exports = NestComponent;
|
|
|
266
266
|
|
|
267
267
|
For more detailed information on configuration and usage, refer to the following resources:
|
|
268
268
|
|
|
269
|
-
- [Intlayer CLI Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/
|
|
269
|
+
- [Intlayer CLI Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/index.md)
|
|
270
270
|
- [React Intlayer Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_create_react_app.md)
|
|
271
271
|
- [Next Intlayer Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_15.md)
|
|
272
272
|
|
|
@@ -62,7 +62,7 @@ yarn add intlayer next-intlayer
|
|
|
62
62
|
|
|
63
63
|
- **intlayer**
|
|
64
64
|
|
|
65
|
-
The core package that provides internationalization tools for configuration management, translation, [content declaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/content_file.md), transpilation, and [CLI commands](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/
|
|
65
|
+
The core package that provides internationalization tools for configuration management, translation, [content declaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/content_file.md), transpilation, and [CLI commands](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/index.md).
|
|
66
66
|
|
|
67
67
|
- **next-intlayer**
|
|
68
68
|
|
|
@@ -644,7 +644,7 @@ For more details on how to use the extension, refer to the [Intlayer VS Code Ext
|
|
|
644
644
|
|
|
645
645
|
- **Visual Editor**: Use the [Intlayer Visual Editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/intlayer_visual_editor.md) to manage translations visually.
|
|
646
646
|
- **CMS Integration**: You can also externalise and fetch your dictionary content from a [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md).
|
|
647
|
-
- **CLI Commands**: Explore the [Intlayer CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/
|
|
647
|
+
- **CLI Commands**: Explore the [Intlayer CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/index.md) for tasks like **extracting translations** or **checking missing keys**.
|
|
648
648
|
|
|
649
649
|
Enjoy building your **React Native** apps with fully powered i18n through **Intlayer**!
|
|
650
650
|
|
|
@@ -555,8 +555,9 @@ export const load: Load = ({ params }) => {
|
|
|
555
555
|
let { children, data }: { children: Snippet, data: LayoutData } = $props();
|
|
556
556
|
|
|
557
557
|
// Initialise Intlayer with the locale from the route
|
|
558
|
-
|
|
559
|
-
|
|
558
|
+
$effect(() => {
|
|
559
|
+
setupIntlayer(data.locale);
|
|
560
|
+
});
|
|
560
561
|
// Use the layout content dictionary
|
|
561
562
|
const layoutContent = useIntlayer('layout');
|
|
562
563
|
</script>
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-11-16
|
|
3
|
+
updatedAt: 2025-11-16
|
|
4
|
+
title: getPrefix Function Documentation | intlayer
|
|
5
|
+
description: See how to use the getPrefix function for intlayer package
|
|
6
|
+
keywords:
|
|
7
|
+
- getPrefix
|
|
8
|
+
- prefix
|
|
9
|
+
- Intlayer
|
|
10
|
+
- intlayer
|
|
11
|
+
- Internationalisation
|
|
12
|
+
- Documentation
|
|
13
|
+
- Next.js
|
|
14
|
+
- JavaScript
|
|
15
|
+
- React
|
|
16
|
+
slugs:
|
|
17
|
+
- doc
|
|
18
|
+
- packages
|
|
19
|
+
- intlayer
|
|
20
|
+
- getPrefix
|
|
21
|
+
history:
|
|
22
|
+
- version: 7.1.0
|
|
23
|
+
date: 2025-11-16
|
|
24
|
+
changes: Initial documentation
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Documentation: `getPrefix` Function in `intlayer`
|
|
28
|
+
|
|
29
|
+
## Description
|
|
30
|
+
|
|
31
|
+
The `getPrefix` function determines the URL prefix for a given locale based on the routing mode configuration. It compares the locale with the default locale and returns an object containing three different prefix formats for flexible URL construction.
|
|
32
|
+
|
|
33
|
+
**Key Features:**
|
|
34
|
+
|
|
35
|
+
- Takes a locale as the first parameter (required)
|
|
36
|
+
- Optional `options` object with `defaultLocale` and `mode`
|
|
37
|
+
- Returns an object with `prefix`, and `localePrefix` properties
|
|
38
|
+
- Supports all routing modes: `prefix-no-default`, `prefix-all`, `no-prefix`, and `search-params`
|
|
39
|
+
- Lightweight utility for determining when to add locale prefixes
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Function Signature
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
getPrefix(
|
|
47
|
+
locale: Locales, // Required
|
|
48
|
+
options?: { // Optional
|
|
49
|
+
defaultLocale?: Locales;
|
|
50
|
+
mode?: 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params';
|
|
51
|
+
}
|
|
52
|
+
): GetPrefixResult
|
|
53
|
+
|
|
54
|
+
type GetPrefixResult = {
|
|
55
|
+
prefix: string; // e.g., 'fr/' or ''
|
|
56
|
+
localePrefix?: Locale; // e.g., 'fr' or undefined
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Parameters
|
|
63
|
+
|
|
64
|
+
- `locale: Locales`
|
|
65
|
+
- **Description**: The locale to generate the prefix for. If the value is falsy (undefined, null, empty string), the function returns an empty string.
|
|
66
|
+
- **Type**: `Locales`
|
|
67
|
+
- **Required**: Yes
|
|
68
|
+
|
|
69
|
+
- `options?: object`
|
|
70
|
+
- **Description**: Configuration object for prefix determination.
|
|
71
|
+
- **Type**: `object`
|
|
72
|
+
- **Required**: No (Optional)
|
|
73
|
+
|
|
74
|
+
- `options.defaultLocale?: Locales`
|
|
75
|
+
- **Description**: The default locale for the application. If not provided, uses the configured default locale from your project configuration.
|
|
76
|
+
- **Type**: `Locales`
|
|
77
|
+
- **Default**: [`Project Configuration`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/configuration.md#middleware)
|
|
78
|
+
|
|
79
|
+
- `options.mode?: 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params'`
|
|
80
|
+
- **Description**: The URL routing mode for locale handling. If not provided, uses the configured mode from your project configuration.
|
|
81
|
+
- **Type**: `'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params'`
|
|
82
|
+
- **Default**: [`Project Configuration`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/configuration.md#middleware)
|
|
83
|
+
- **Modes**:
|
|
84
|
+
- `prefix-no-default`: Returns empty strings when locale matches default locale
|
|
85
|
+
- `prefix-all`: Returns prefix for all locales including default
|
|
86
|
+
- `no-prefix`: Returns empty strings (no prefix in URLs)
|
|
87
|
+
- `search-params`: Returns empty strings (locale in query parameters)
|
|
88
|
+
|
|
89
|
+
### Returns
|
|
90
|
+
|
|
91
|
+
- **Type**: `GetPrefixResult`
|
|
92
|
+
- **Description**: An object containing three different prefix formats:
|
|
93
|
+
- `prefix`: The path prefix with trailing slash (e.g., `'fr/'`, `''`)
|
|
94
|
+
- `localePrefix`: The locale identifier without slashes (e.g., `'fr'`, `undefined`)
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Example Usage
|
|
99
|
+
|
|
100
|
+
### Basic Usage
|
|
101
|
+
|
|
102
|
+
```typescript codeFormat="typescript"
|
|
103
|
+
import { getPrefix, Locales } from "intlayer";
|
|
104
|
+
|
|
105
|
+
// Check prefix for English locale
|
|
106
|
+
getPrefix(Locales.ENGLISH, {
|
|
107
|
+
defaultLocale: Locales.ENGLISH,
|
|
108
|
+
mode: "prefix-all",
|
|
109
|
+
});
|
|
110
|
+
// Returns: { prefix: 'en/', localePrefix: 'en' }
|
|
111
|
+
|
|
112
|
+
// Check prefix for French locale
|
|
113
|
+
getPrefix(Locales.FRENCH, {
|
|
114
|
+
defaultLocale: Locales.ENGLISH,
|
|
115
|
+
mode: "prefix-no-default",
|
|
116
|
+
});
|
|
117
|
+
// Returns: { prefix: 'fr/', localePrefix: 'fr' }
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
```javascript codeFormat="esm"
|
|
121
|
+
import { getPrefix, Locales } from "intlayer";
|
|
122
|
+
|
|
123
|
+
getPrefix(Locales.ENGLISH, { mode: "prefix-all" });
|
|
124
|
+
// Returns: { prefix: '', localePrefix: undefined }
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
```javascript codeFormat="commonjs"
|
|
128
|
+
const { getPrefix, Locales } = require("intlayer");
|
|
129
|
+
|
|
130
|
+
getPrefix(Locales.ENGLISH, { mode: "prefix-all" });
|
|
131
|
+
// Returns: { prefix: '', localePrefix: undefined }
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Different Routing Modes
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
import { getPrefix, Locales } from "intlayer";
|
|
138
|
+
|
|
139
|
+
// prefix-all: Always returns prefix
|
|
140
|
+
getPrefix(Locales.ENGLISH, {
|
|
141
|
+
mode: "prefix-all",
|
|
142
|
+
defaultLocale: Locales.ENGLISH,
|
|
143
|
+
});
|
|
144
|
+
// Returns: { prefix: '/en', localePrefix: 'en' }
|
|
145
|
+
|
|
146
|
+
// prefix-no-default: No prefix when locale matches default
|
|
147
|
+
getPrefix(Locales.ENGLISH, {
|
|
148
|
+
mode: "prefix-no-default",
|
|
149
|
+
defaultLocale: Locales.ENGLISH,
|
|
150
|
+
});
|
|
151
|
+
// Returns: { prefix: '', localePrefix: undefined }
|
|
152
|
+
|
|
153
|
+
// // prefix-no-default: Returns prefix when locale differs from default
|
|
154
|
+
getPrefix(Locales.FRENCH, {
|
|
155
|
+
mode: "prefix-no-default",
|
|
156
|
+
defaultLocale: Locales.ENGLISH,
|
|
157
|
+
});
|
|
158
|
+
// Returns: { prefix: 'fr/', localePrefix: 'fr' }
|
|
159
|
+
|
|
160
|
+
// no-prefix & search-params: Never returns prefix
|
|
161
|
+
getPrefix(Locales.ENGLISH, { mode: "no-prefix" });
|
|
162
|
+
// Returns: { prefix: '', localePrefix: undefined }
|
|
163
|
+
|
|
164
|
+
getPrefix(Locales.ENGLISH, { mode: "search-params" });
|
|
165
|
+
// Returns: { prefix: '', localePrefix: undefined }
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Practical Example
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
import { getPrefix, Locales } from "intlayer";
|
|
172
|
+
|
|
173
|
+
// Build URLs with the appropriate prefix for a specific locale
|
|
174
|
+
const locale = Locales.FRENCH;
|
|
175
|
+
const { prefix, localePrefix } = getPrefix(locale, {
|
|
176
|
+
defaultLocale: Locales.ENGLISH,
|
|
177
|
+
mode: "prefix-no-default",
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
// // Using prefix for path construction
|
|
181
|
+
const url1 = `/${prefix}about`.replace(/\/+/g, "/");
|
|
182
|
+
// Result: "/fr/about"
|
|
183
|
+
|
|
184
|
+
// Using localePrefix for locale identification
|
|
185
|
+
console.log(`Current locale: ${localePrefix}`);
|
|
186
|
+
// Output: "Current locale: fr"
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Related Functions
|
|
192
|
+
|
|
193
|
+
- [`getLocalizedUrl`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/packages/intlayer/getLocalizedUrl.md): Generates a localised URL for a specific locale
|
|
194
|
+
- [`getMultilingualUrls`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/packages/intlayer/getMultilingualUrls.md): Generates URLs for all configured locales
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## TypeScript
|
|
199
|
+
|
|
200
|
+
```typescript
|
|
201
|
+
type GetPrefixResult = {
|
|
202
|
+
prefix: string; // The path prefix with trailing slash (e.g., 'fr/' or '')
|
|
203
|
+
localePrefix?: Locale; // The locale identifier without slashes (e.g., 'fr' or undefined)
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
function getPrefix(
|
|
207
|
+
locale: Locales,
|
|
208
|
+
options?: {
|
|
209
|
+
defaultLocale?: Locales;
|
|
210
|
+
mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params";
|
|
211
|
+
}
|
|
212
|
+
): GetPrefixResult;
|
|
213
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Construir Diccionarios
|
|
5
|
+
description: Aprende cómo construir tus diccionarios de Intlayer a partir de archivos de declaración de contenido.
|
|
6
|
+
keywords:
|
|
7
|
+
- Construir
|
|
8
|
+
- Diccionarios
|
|
9
|
+
- CLI
|
|
10
|
+
- Intlayer
|
|
11
|
+
slugs:
|
|
12
|
+
- doc
|
|
13
|
+
- concept
|
|
14
|
+
- cli
|
|
15
|
+
- build
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Construir Diccionarios
|
|
19
|
+
|
|
20
|
+
Para construir tus diccionarios, puedes ejecutar los comandos:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx intlayer build
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
o en modo watch
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx intlayer build --watch
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Este comando encontrará tus archivos de declaración de contenido por defecto en `./src/**/*.content.{ts|js|mjs|cjs|json|tsx|jsx}`. Y construirá los diccionarios en el directorio `.intlayer`.
|
|
33
|
+
|
|
34
|
+
## Alias:
|
|
35
|
+
|
|
36
|
+
- `npx intlayer dictionaries build`
|
|
37
|
+
- `npx intlayer dictionary build`
|
|
38
|
+
- `npx intlayer dic build`
|
|
39
|
+
|
|
40
|
+
## Argumentos:
|
|
41
|
+
|
|
42
|
+
- **`--base-dir`**: Especifica el directorio base para el proyecto. Para obtener la configuración de intlayer, el comando buscará el archivo `intlayer.config.{ts,js,json,cjs,mjs}` en el directorio base.
|
|
43
|
+
|
|
44
|
+
> Ejemplo: `npx intlayer build --base-dir ./src`
|
|
45
|
+
|
|
46
|
+
- **`--env`**: Especifica el entorno (por ejemplo, `development`, `production`). Útil en caso de que uses variables de entorno en tu archivo de configuración de intlayer.
|
|
47
|
+
|
|
48
|
+
> Ejemplo: `npx intlayer build --env production`
|
|
49
|
+
|
|
50
|
+
- **`--env-file`**: Proporciona un archivo de entorno personalizado desde el cual cargar variables. Útil en caso de que uses variables de entorno en tu archivo de configuración de intlayer.
|
|
51
|
+
|
|
52
|
+
> Ejemplo: `npx intlayer build --env-file .env.production.local`
|
|
53
|
+
|
|
54
|
+
- **`--with`**: Inicia un comando en paralelo con la construcción.
|
|
55
|
+
|
|
56
|
+
> Ejemplo: `npx intlayer build --with "next dev --turbopack"`
|
|
57
|
+
|
|
58
|
+
- **`--skip-prepare`**: Omitir el paso de preparación.
|
|
59
|
+
|
|
60
|
+
> Ejemplo: `npx intlayer build --skip-prepare`
|
|
61
|
+
|
|
62
|
+
- **`--no-cache`**: Deshabilitar la caché.
|
|
63
|
+
|
|
64
|
+
> Ejemplo: `npx intlayer build --no-cache`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Gestionar Configuración
|
|
5
|
+
description: Aprende cómo obtener y enviar tu configuración de Intlayer al CMS.
|
|
6
|
+
keywords:
|
|
7
|
+
- Configuración
|
|
8
|
+
- Config
|
|
9
|
+
- CLI
|
|
10
|
+
- Intlayer
|
|
11
|
+
- CMS
|
|
12
|
+
slugs:
|
|
13
|
+
- doc
|
|
14
|
+
- concept
|
|
15
|
+
- cli
|
|
16
|
+
- configuration
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Gestionar Configuración
|
|
20
|
+
|
|
21
|
+
## Obtener Configuración
|
|
22
|
+
|
|
23
|
+
El comando `configuration get` recupera la configuración actual de Intlayer, particularmente los ajustes de localización. Esto es útil para verificar tu configuración.
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx intlayer configuration get
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Alias:
|
|
30
|
+
|
|
31
|
+
- `npx intlayer config get`
|
|
32
|
+
- `npx intlayer conf get`
|
|
33
|
+
|
|
34
|
+
## Argumentos:
|
|
35
|
+
|
|
36
|
+
- **`--env`**: Especifica el entorno (por ejemplo, `development`, `production`).
|
|
37
|
+
- **`--env-file`**: Proporciona un archivo de entorno personalizado para cargar variables desde él.
|
|
38
|
+
- **`--base-dir`**: Especifica el directorio base para el proyecto.
|
|
39
|
+
- **`--verbose`**: Habilita el registro detallado para depuración. (por defecto en true usando CLI)
|
|
40
|
+
- **`--no-cache`**: Desactiva la caché.
|
|
41
|
+
|
|
42
|
+
## Enviar Configuración
|
|
43
|
+
|
|
44
|
+
El comando `configuration push` sube tu configuración al CMS y editor de Intlayer. Este paso es necesario para habilitar el uso de diccionarios remotos en el Editor Visual de Intlayer.
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npx intlayer configuration push
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Alias:
|
|
51
|
+
|
|
52
|
+
- `npx intlayer config push`
|
|
53
|
+
- `npx intlayer conf push`
|
|
54
|
+
|
|
55
|
+
## Argumentos:
|
|
56
|
+
|
|
57
|
+
- **`--env`**: Especifica el entorno (por ejemplo, `development`, `production`).
|
|
58
|
+
- **`--env-file`**: Proporciona un archivo de entorno personalizado para cargar variables.
|
|
59
|
+
- **`--base-dir`**: Especifica el directorio base para el proyecto.
|
|
60
|
+
- **`--verbose`**: Habilita el registro detallado para depuración. (por defecto en true usando CLI)
|
|
61
|
+
- **`--no-cache`**: Desactiva la caché.
|
|
62
|
+
|
|
63
|
+
Al enviar la configuración, tu proyecto queda completamente integrado con el CMS de Intlayer, permitiendo una gestión fluida de diccionarios entre equipos.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Depurar comando Intlayer
|
|
5
|
+
description: Aprende cómo depurar y solucionar problemas del CLI de Intlayer.
|
|
6
|
+
keywords:
|
|
7
|
+
- Depurar
|
|
8
|
+
- Solucionar problemas
|
|
9
|
+
- CLI
|
|
10
|
+
- Intlayer
|
|
11
|
+
slugs:
|
|
12
|
+
- doc
|
|
13
|
+
- concept
|
|
14
|
+
- cli
|
|
15
|
+
- debug
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Depurar comando intlayer
|
|
19
|
+
|
|
20
|
+
## 1. **Asegúrate de estar usando la versión más reciente**
|
|
21
|
+
|
|
22
|
+
Ejecuta:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx intlayer --version # versión actual de intlayer en la localidad
|
|
26
|
+
npx intlayer@latest --version # versión más reciente actual de intlayer
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 2. **Verifica si el comando está registrado**
|
|
30
|
+
|
|
31
|
+
Puedes verificar con:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx intlayer --help # Muestra la lista de comandos disponibles e información de uso
|
|
35
|
+
npx intlayer dictionary build --help # Muestra la lista de opciones disponibles para un comando
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## 3. **Reinicia tu terminal**
|
|
39
|
+
|
|
40
|
+
A veces es necesario reiniciar el terminal para que reconozca nuevos comandos.
|
|
41
|
+
|
|
42
|
+
## 4. **Limpia la caché de npx (si estás atascado con una versión antigua)**
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npx clear-npx-cache
|
|
46
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Revisar Documento
|
|
5
|
+
description: Aprende cómo revisar archivos de documentación para calidad, consistencia y completitud en diferentes locales.
|
|
6
|
+
keywords:
|
|
7
|
+
- Revisión
|
|
8
|
+
- Documento
|
|
9
|
+
- Documentación
|
|
10
|
+
- IA
|
|
11
|
+
- CLI
|
|
12
|
+
- Intlayer
|
|
13
|
+
slugs:
|
|
14
|
+
- doc
|
|
15
|
+
- concept
|
|
16
|
+
- cli
|
|
17
|
+
- doc-review
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Revisar Documento
|
|
21
|
+
|
|
22
|
+
El comando `doc review` analiza archivos de documentación para calidad, consistencia y completitud en diferentes locales.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx intlayer doc review
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Se puede usar para revisar archivos que ya están traducidos y para verificar si la traducción es correcta.
|
|
29
|
+
|
|
30
|
+
Para la mayoría de los casos de uso,
|
|
31
|
+
|
|
32
|
+
- prefiere usar `doc translate` cuando la versión traducida de este archivo no está disponible.
|
|
33
|
+
- prefiere usar `doc review` cuando la versión traducida de este archivo ya existe.
|
|
34
|
+
|
|
35
|
+
> Ten en cuenta que el proceso de revisión consume más tokens de entrada que el proceso de traducción para revisar el mismo archivo en su totalidad. Sin embargo, el proceso de revisión optimizará los fragmentos a revisar y omitirá las partes que no hayan cambiado.
|
|
36
|
+
|
|
37
|
+
## Argumentos:
|
|
38
|
+
|
|
39
|
+
El comando `doc review` acepta los mismos argumentos que `doc translate`, permitiéndote revisar archivos de documentación específicos y aplicar controles de calidad.
|
|
40
|
+
|
|
41
|
+
Si activaste una de las opciones de git, el comando solo revisará la parte de los archivos que están siendo modificados. El script procesará el archivo dividiéndolo en fragmentos y revisará cada fragmento. Si no hay cambios en el fragmento, el script lo omitirá para acelerar el proceso de revisión y limitar el costo de la API del proveedor de IA.
|
|
42
|
+
|
|
43
|
+
Para una lista completa de argumentos, consulta la documentación del comando [Translate Document](https://github.com/aymericzip/intlayer/blob/main/docs/docs/es/cli/doc-translate.md).
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Traducir Documento
|
|
5
|
+
description: Aprende cómo traducir automáticamente archivos de documentación usando servicios de traducción AI.
|
|
6
|
+
keywords:
|
|
7
|
+
- Traducir
|
|
8
|
+
- Documento
|
|
9
|
+
- Documentación
|
|
10
|
+
- AI
|
|
11
|
+
- CLI
|
|
12
|
+
- Intlayer
|
|
13
|
+
slugs:
|
|
14
|
+
- doc
|
|
15
|
+
- concept
|
|
16
|
+
- cli
|
|
17
|
+
- doc-translate
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Traducir Documento
|
|
21
|
+
|
|
22
|
+
El comando `doc translate` traduce automáticamente archivos de documentación desde un locale base a locales destino usando servicios de traducción AI.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx intlayer doc translate
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Argumentos:
|
|
29
|
+
|
|
30
|
+
**Opciones de lista de archivos:**
|
|
31
|
+
|
|
32
|
+
- **`--doc-pattern [docPattern...]`**: Patrones glob para coincidir con archivos de documentación a traducir.
|
|
33
|
+
|
|
34
|
+
> Ejemplo: `npx intlayer doc translate --doc-pattern "docs/**/*.md" "src/**/*.mdx"`
|
|
35
|
+
|
|
36
|
+
- **`--excluded-glob-pattern [excludedGlobPattern...]`**: Patrones glob para excluir archivos de la traducción.
|
|
37
|
+
|
|
38
|
+
> Ejemplo: `npx intlayer doc translate --excluded-glob-pattern "docs/internal/**"`
|
|
39
|
+
|
|
40
|
+
- **`--skip-if-modified-before [skipIfModifiedBefore]`**: Omitir el archivo si ha sido modificado antes del tiempo dado.
|
|
41
|
+
- Puede ser un tiempo absoluto como "2025-12-05" (string o Date)
|
|
42
|
+
- Puede ser un tiempo relativo en ms `1 * 60 * 60 * 1000` (1 hora)
|
|
43
|
+
- Esta opción verifica la hora de actualización del archivo usando el método `fs.stat`. Por lo tanto, podría verse afectada por Git u otras herramientas que modifiquen el archivo.
|
|
44
|
+
|
|
45
|
+
> Ejemplo: `npx intlayer doc translate --skip-if-modified-before "2025-12-05"`
|
|
46
|
+
|
|
47
|
+
- **`--skip-if-modified-after [skipIfModifiedAfter]`**: Omitir el archivo si ha sido modificado dentro del tiempo dado.
|
|
48
|
+
- Puede ser un tiempo absoluto como "2025-12-05" (string o Date)
|
|
49
|
+
- Puede ser un tiempo relativo en ms `1 * 60 * 60 * 1000` (1 hora)
|
|
50
|
+
- Esta opción verifica la hora de actualización del archivo usando el método `fs.stat`. Por lo tanto, podría verse afectada por Git u otras herramientas que modifiquen el archivo.
|
|
51
|
+
|
|
52
|
+
> Ejemplo: `npx intlayer doc translate --skip-if-modified-after "2025-12-05"`
|
|
53
|
+
|
|
54
|
+
- **`--skip-if-exists`**: Omitir el archivo si ya existe.
|
|
55
|
+
|
|
56
|
+
> Ejemplo: `npx intlayer doc translate --skip-if-exists`
|
|
57
|
+
|
|
58
|
+
**Opciones de salida de entrada:**
|
|
59
|
+
|
|
60
|
+
- **`--locales [locales...]`**: Locales de destino para traducir la documentación.
|
|
61
|
+
|
|
62
|
+
> Ejemplo: `npx intlayer doc translate --locales fr es de`
|
|
63
|
+
|
|
64
|
+
- **`--base-locale [baseLocale]`**: Locale de origen desde el cual traducir.
|
|
65
|
+
|
|
66
|
+
> Ejemplo: `npx intlayer doc translate --base-locale en`
|
|
67
|
+
|
|
68
|
+
**Opciones de procesamiento de archivos:**
|
|
69
|
+
|
|
70
|
+
- **`--nb-simultaneous-file-processed [nbSimultaneousFileProcessed]`**: Número de archivos a procesar simultáneamente para la traducción.
|
|
71
|
+
|
|
72
|
+
> Ejemplo: `npx intlayer doc translate --nb-simultaneous-file-processed 5`
|
|
73
|
+
|
|
74
|
+
**Opciones de IA:**
|
|
75
|
+
|
|
76
|
+
- **`--model [model]`**: El modelo de IA a usar para la traducción (por ejemplo, `gpt-3.5-turbo`).
|
|
77
|
+
- **`--provider [provider]`**: El proveedor de IA a usar para la traducción.
|
|
78
|
+
- **`--temperature [temperature]`**: Configuración de temperatura para el modelo de IA.
|
|
79
|
+
- **`--api-key [apiKey]`**: Proporciona tu propia clave API para el servicio de IA.
|
|
80
|
+
- **`--application-context [applicationContext]`**: Proporciona contexto adicional para la traducción de IA.
|
|
81
|
+
- **`--custom-prompt [prompt]`**: Personaliza el prompt base utilizado para la traducción. (Nota: Para la mayoría de los casos, se recomienda usar la opción `--custom-instructions` en su lugar, ya que proporciona un mejor control sobre el comportamiento de la traducción.)
|
|
82
|
+
|
|
83
|
+
> Ejemplo: `npx intlayer doc translate --model deepseek-chat --provider deepseek --temperature 0.5 --api-key sk-1234567890 --application-context "Mi aplicación es una tienda de gatos"`
|
|
84
|
+
|
|
85
|
+
**Opciones de variables de entorno:**
|
|
86
|
+
|
|
87
|
+
- **`--env`**: Especifica el entorno (por ejemplo, `development`, `production`).
|
|
88
|
+
- **`--env-file [envFile]`**: Proporciona un archivo de entorno personalizado para cargar variables.
|
|
89
|
+
- **`--base-dir`**: Especifica el directorio base para el proyecto.
|
|
90
|
+
- **`--no-cache`**: Desactiva la caché.
|
|
91
|
+
|
|
92
|
+
> Ejemplo: `npx intlayer doc translate --base-dir ./docs --env-file .env.production.local`
|
|
93
|
+
|
|
94
|
+
**Opciones de registro:**
|
|
95
|
+
|
|
96
|
+
- **`--verbose`**: Habilita el registro detallado para depuración. (por defecto es true usando CLI)
|
|
97
|
+
|
|
98
|
+
> Ejemplo: `npx intlayer doc translate --verbose`
|
|
99
|
+
|
|
100
|
+
**Opciones de instrucciones personalizadas:**
|
|
101
|
+
|
|
102
|
+
- **`--custom-instructions [customInstructions]`**: Instrucciones personalizadas añadidas al prompt. Útil para aplicar reglas específicas respecto al formato, traducción de URLs, etc.
|
|
103
|
+
- Puede ser un tiempo absoluto como "2025-12-05" (string o Date)
|
|
104
|
+
- Puede ser un tiempo relativo en ms `1 * 60 * 60 * 1000` (1 hora)
|
|
105
|
+
- Esta opción verifica la fecha de actualización del archivo usando el método `fs.stat`. Por lo tanto, podría verse afectada por Git u otras herramientas que modifiquen el archivo.
|
|
106
|
+
|
|
107
|
+
> Ejemplo: `npx intlayer doc translate --custom-instructions "Evitar traducir URLs y mantener el formato markdown"`
|
|
108
|
+
|
|
109
|
+
> Ejemplo: `npx intlayer doc translate --custom-instructions "$(cat ./instructions.md)"`
|
|
110
|
+
|
|
111
|
+
**Opciones de Git:**
|
|
112
|
+
|
|
113
|
+
- **`--git-diff`**: Ejecutar solo en diccionarios que incluyan cambios desde la base (por defecto `origin/main`) hasta la rama actual (por defecto: `HEAD`).
|
|
114
|
+
- **`--git-diff-base`**: Especificar la referencia base para git diff (por defecto `origin/main`).
|
|
115
|
+
- **`--git-diff-current`**: Especificar la referencia actual para git diff (por defecto: `HEAD`).
|
|
116
|
+
- **`--uncommitted`**: Incluir cambios no confirmados.
|
|
117
|
+
- **`--unpushed`**: Incluir cambios no enviados.
|
|
118
|
+
- **`--untracked`**: Incluir archivos no rastreados.
|
|
119
|
+
|
|
120
|
+
> Ejemplo: `npx intlayer doc translate --git-diff --git-diff-base origin/main --git-diff-current HEAD`
|
|
121
|
+
|
|
122
|
+
> Ejemplo: `npx intlayer doc translate --uncommitted --unpushed --untracked`
|
|
123
|
+
|
|
124
|
+
> Tenga en cuenta que la ruta del archivo de salida se determinará reemplazando los siguientes patrones
|
|
125
|
+
>
|
|
126
|
+
> - `/{{baseLocale}}/` por `/{{locale}}/` (Unix)
|
|
127
|
+
> - `\{{baseLocale}}\` por `\{{locale}}\` (Windows)
|
|
128
|
+
> - `_{{baseLocale}}.` por `_{{locale}}.`
|
|
129
|
+
> - `{{baseLocale}}_` por `{{locale}}_`
|
|
130
|
+
> - `.{{baseLocaleName}}.` por `.{{localeName}}.`
|
|
131
|
+
>
|
|
132
|
+
> Si no se encuentra el patrón, el archivo de salida añadirá `.{{locale}}` a la extensión del archivo. `./my/file.md` se traducirá a `./my/file.fr.md` para el locale francés.
|