@intlayer/docs 7.2.3 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/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_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/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/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/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_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/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/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/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/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/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/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/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_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/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/packages/intlayer/getPrefix.md +213 -0
- package/package.json +9 -9
- package/src/generated/blog.entry.ts +19 -0
- package/src/generated/docs.entry.ts +323 -19
- package/docs/ar/intlayer_cli.md +0 -614
- package/docs/de/intlayer_cli.md +0 -615
- package/docs/en/intlayer_cli.md +0 -897
- package/docs/en-GB/intlayer_cli.md +0 -615
- package/docs/es/intlayer_cli.md +0 -614
- package/docs/fr/intlayer_cli.md +0 -614
- package/docs/hi/intlayer_cli.md +0 -616
- package/docs/id/intlayer_cli.md +0 -886
- package/docs/it/intlayer_cli.md +0 -610
- package/docs/ja/intlayer_cli.md +0 -616
- package/docs/ko/intlayer_cli.md +0 -614
- package/docs/pl/intlayer_cli.md +0 -893
- package/docs/pt/intlayer_cli.md +0 -615
- package/docs/ru/intlayer_cli.md +0 -885
- package/docs/tr/intlayer_cli.md +0 -614
- package/docs/vi/intlayer_cli.md +0 -886
- package/docs/zh/intlayer_cli.md +0 -613
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Fehlende Übersetzungen testen
|
|
5
|
+
description: Erfahren Sie, wie Sie fehlende Übersetzungen in Ihren Wörterbüchern testen und identifizieren.
|
|
6
|
+
keywords:
|
|
7
|
+
- Test
|
|
8
|
+
- Fehlende Übersetzungen
|
|
9
|
+
- CLI
|
|
10
|
+
- Intlayer
|
|
11
|
+
slugs:
|
|
12
|
+
- doc
|
|
13
|
+
- concept
|
|
14
|
+
- cli
|
|
15
|
+
- test
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Fehlende Übersetzungen testen
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx intlayer content test
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Aliase:
|
|
25
|
+
|
|
26
|
+
- `npx intlayer test`
|
|
27
|
+
|
|
28
|
+
Dieser Befehl analysiert Ihre Content-Deklarationsdateien, um fehlende Übersetzungen in allen konfigurierten Sprachen zu identifizieren. Er liefert einen umfassenden Bericht, der zeigt, welche Übersetzungsschlüssel für welche Sprachen fehlen, und hilft Ihnen so, die Konsistenz Ihres mehrsprachigen Contents zu gewährleisten.
|
|
29
|
+
|
|
30
|
+
## Beispielausgabe:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pnpm intlayer content test
|
|
34
|
+
Missing translations:
|
|
35
|
+
- home-page - tr - src/components/HomePage/homePage.content.ts
|
|
36
|
+
- server-component - es, tr - src/components/ServerComponent/serverComponent.content.ts
|
|
37
|
+
- client-component - pl, tr - src/components/ClientComponent/clientComponent.content.ts
|
|
38
|
+
Locales: en, ru, ja, fr, ko, zh, es, de, ar, it, en-GB, pt, hi, tr, pl
|
|
39
|
+
Erforderliche Sprachen: en
|
|
40
|
+
Fehlende Sprachen: pl, tr, es
|
|
41
|
+
Fehlende erforderliche Sprachen: -
|
|
42
|
+
Insgesamt fehlende Sprachen: 3
|
|
43
|
+
Insgesamt fehlende erforderliche Sprachen: 0
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Argumente:
|
|
47
|
+
|
|
48
|
+
**Konfigurationsoptionen:**
|
|
49
|
+
|
|
50
|
+
- **`--env`**: Geben Sie die Umgebung an (z. B. `development`, `production`).
|
|
51
|
+
- **`--env-file [envFile]`**: Geben Sie eine benutzerdefinierte Umgebungsdatei an, aus der Variablen geladen werden.
|
|
52
|
+
- **`--base-dir`**: Geben Sie das Basisverzeichnis für das Projekt an.
|
|
53
|
+
|
|
54
|
+
> Beispiel: `npx intlayer content test --base-dir ./src --env-file .env.production.local`
|
|
55
|
+
|
|
56
|
+
- **`--no-cache`**: Deaktiviert den Cache.
|
|
57
|
+
|
|
58
|
+
> Beispiel: `npx intlayer build --no-cache`
|
|
59
|
+
|
|
60
|
+
**Vorbereitungsoptionen:**
|
|
61
|
+
|
|
62
|
+
- **`--build`**: Baut die Wörterbücher vor dem Pushen, um sicherzustellen, dass der Inhalt aktuell ist. True erzwingt den Build, false überspringt den Build, undefined erlaubt die Verwendung des Build-Caches.
|
|
63
|
+
|
|
64
|
+
**Protokolloptionen:**
|
|
65
|
+
|
|
66
|
+
- **`--verbose`**: Aktiviert ausführliche Protokollierung zur Fehlerbehebung. (Standardmäßig true bei Verwendung der CLI)
|
|
67
|
+
|
|
68
|
+
> Beispiel: `npx intlayer content test --verbose`
|
|
69
|
+
|
|
70
|
+
## Beispiel:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npx intlayer content test --verbose
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Die Ausgabe hilft Ihnen schnell zu erkennen, welche Übersetzungen noch abgeschlossen werden müssen, damit Ihre Anwendung in allen konfigurierten Sprachen korrekt funktioniert.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Komponenten transformieren
|
|
5
|
+
description: Erfahren Sie, wie Sie bestehende Komponenten für die Nutzung von Intlayer transformieren.
|
|
6
|
+
keywords:
|
|
7
|
+
- Transformieren
|
|
8
|
+
- Komponenten
|
|
9
|
+
- Migration
|
|
10
|
+
- CLI
|
|
11
|
+
- Intlayer
|
|
12
|
+
slugs:
|
|
13
|
+
- doc
|
|
14
|
+
- concept
|
|
15
|
+
- cli
|
|
16
|
+
- transform
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Komponenten transformieren
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx intlayer transform
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Dieser Befehl analysiert Ihre Code-Dateien, um bei der Migration bestehender Komponenten zur Nutzung von Intlayer zu helfen. Er unterstützt eine interaktive Dateiauswahl oder die gezielte Auswahl bestimmter Dateien.
|
|
26
|
+
|
|
27
|
+
## Aliase:
|
|
28
|
+
|
|
29
|
+
- `npx intlayer trans`
|
|
30
|
+
|
|
31
|
+
## Argumente:
|
|
32
|
+
|
|
33
|
+
**Optionen zur Dateiauswahl:**
|
|
34
|
+
|
|
35
|
+
- **`-f, --file [files...]`**: Liste spezifischer Dateien, die transformiert werden sollen. Wenn nicht angegeben, durchsucht die CLI passende Dateien (`**/*.{tsx,jsx,vue,svelte,ts,js}`) und fordert Sie auf, auszuwählen, welche transformiert werden sollen.
|
|
36
|
+
|
|
37
|
+
> Beispiel: `npx intlayer transform -f src/components/MyComponent.tsx`
|
|
38
|
+
|
|
39
|
+
**Ausgabeoptionen:**
|
|
40
|
+
|
|
41
|
+
- **`-o, --output-content-declarations [outputContentDeclarations]`**: Verzeichnis zum Speichern der generierten Content-Declaration-Dateien.
|
|
42
|
+
|
|
43
|
+
> Beispiel: `npx intlayer transform -o src/content`
|
|
44
|
+
|
|
45
|
+
- **`--code-only`**: Nur den Komponenten-Code transformieren (keine Content-Declaration schreiben).
|
|
46
|
+
|
|
47
|
+
> Beispiel: `npx intlayer transform --code-only`
|
|
48
|
+
|
|
49
|
+
- **`--declaration-only`**: Nur Content-Declaration generieren (Komponente nicht umschreiben).
|
|
50
|
+
|
|
51
|
+
> Beispiel: `npx intlayer transform --declaration-only`
|
|
52
|
+
|
|
53
|
+
**Konfigurationsoptionen:**
|
|
54
|
+
|
|
55
|
+
- **`--base-dir`**: Basisverzeichnis für das Projekt angeben.
|
|
56
|
+
- **`--env`**: Umgebung angeben.
|
|
57
|
+
- **`--env-file`**: Eine benutzerdefinierte Umgebungsdatei bereitstellen.
|
|
58
|
+
- **`--verbose`**: Aktiviert ausführliche Protokollierung.
|
|
59
|
+
|
|
60
|
+
**Erforderliche Plugins:**
|
|
61
|
+
|
|
62
|
+
Der Transform-Befehl funktioniert ohne zusätzliche Plugins bei TypeScript- / JSX-Dateien. Für Vue- und Svelte-Projekte müssen jedoch die folgenden Plugins installiert sein:
|
|
63
|
+
|
|
64
|
+
- **`@intlayer/vue-transformer`**: Für Vue-Dateien.
|
|
65
|
+
- **`@intlayer/svelte-transformer`**: Für Svelte-Dateien.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: CLI-Version überprüfen
|
|
5
|
+
description: Erfahren Sie, wie Sie die installierte Intlayer CLI-Version überprüfen.
|
|
6
|
+
keywords:
|
|
7
|
+
- Version
|
|
8
|
+
- CLI
|
|
9
|
+
- Intlayer
|
|
10
|
+
slugs:
|
|
11
|
+
- doc
|
|
12
|
+
- concept
|
|
13
|
+
- cli
|
|
14
|
+
- version
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# CLI-Version überprüfen
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx intlayer --version
|
|
21
|
+
npx intlayer version
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Beide Befehle geben die installierte Intlayer CLI-Version aus.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Wörterbücher beobachten
|
|
5
|
+
description: Erfahren Sie, wie Sie Änderungen in Ihren Inhaltsdeklarationsdateien überwachen und Wörterbücher automatisch erstellen.
|
|
6
|
+
keywords:
|
|
7
|
+
- Beobachten
|
|
8
|
+
- Wörterbücher
|
|
9
|
+
- CLI
|
|
10
|
+
- Intlayer
|
|
11
|
+
slugs:
|
|
12
|
+
- doc
|
|
13
|
+
- concept
|
|
14
|
+
- cli
|
|
15
|
+
- watch
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Wörterbücher beobachten
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx intlayer watch
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Dieser Befehl überwacht Änderungen in Ihren Inhaltsdeklarationsdateien und erstellt die Wörterbücher im Verzeichnis `.intlayer`.
|
|
25
|
+
Dieser Befehl entspricht `npx intlayer build --watch --skip-prepare`.
|
|
26
|
+
|
|
27
|
+
## Aliase:
|
|
28
|
+
|
|
29
|
+
- `npx intlayer dictionaries watch`
|
|
30
|
+
- `npx intlayer dictionary watch`
|
|
31
|
+
- `npx intlayer dic watch`
|
|
32
|
+
|
|
33
|
+
## Argumente:
|
|
34
|
+
|
|
35
|
+
- **`--with`**: Startet einen Befehl parallel zum Watch-Modus.
|
|
36
|
+
|
|
37
|
+
> Beispiel: `npx intlayer watch --with "next dev --turbopack"`
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-11-16
|
|
3
|
+
updatedAt: 2025-11-16
|
|
4
|
+
title: getPrefix Funktionsdokumentation | intlayer
|
|
5
|
+
description: Siehe, wie die Funktion getPrefix für das intlayer-Paket verwendet wird
|
|
6
|
+
keywords:
|
|
7
|
+
- getPrefix
|
|
8
|
+
- prefix
|
|
9
|
+
- Intlayer
|
|
10
|
+
- intlayer
|
|
11
|
+
- Internationalisierung
|
|
12
|
+
- Dokumentation
|
|
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: Erste Dokumentation
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Dokumentation: `getPrefix` Funktion in `intlayer`
|
|
28
|
+
|
|
29
|
+
## Beschreibung
|
|
30
|
+
|
|
31
|
+
Die Funktion `getPrefix` bestimmt das URL-Präfix für eine gegebene Locale basierend auf der Routing-Modus-Konfiguration. Sie vergleicht die Locale mit der Standard-Locale und gibt ein Objekt zurück, das drei verschiedene Präfix-Formate für eine flexible URL-Konstruktion enthält.
|
|
32
|
+
|
|
33
|
+
**Hauptmerkmale:**
|
|
34
|
+
|
|
35
|
+
- Nimmt eine Locale als ersten Parameter (erforderlich)
|
|
36
|
+
- Optionales `options`-Objekt mit `defaultLocale` und `mode`
|
|
37
|
+
- Gibt ein Objekt mit den Eigenschaften `prefix` und `localePrefix` zurück
|
|
38
|
+
- Unterstützt alle Routing-Modi: `prefix-no-default`, `prefix-all`, `no-prefix` und `search-params`
|
|
39
|
+
- Leichtgewichtige Utility zur Bestimmung, wann Locale-Präfixe hinzugefügt werden sollen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Funktionssignatur
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
getPrefix(
|
|
47
|
+
locale: Locales, // Erforderlich
|
|
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; // z.B. 'fr/' oder ''
|
|
56
|
+
localePrefix?: Locale; // z.B. 'fr' oder undefined
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Parameter
|
|
63
|
+
|
|
64
|
+
- `locale: Locales`
|
|
65
|
+
- **Beschreibung**: Die Locale, für die das Präfix generiert werden soll. Wenn der Wert falsch ist (undefined, null, leerer String), gibt die Funktion einen leeren String zurück.
|
|
66
|
+
- **Typ**: `Locales`
|
|
67
|
+
- **Erforderlich**: Ja
|
|
68
|
+
|
|
69
|
+
- `options?: object`
|
|
70
|
+
- **Beschreibung**: Konfigurationsobjekt zur Bestimmung des Präfixes.
|
|
71
|
+
- **Typ**: `object`
|
|
72
|
+
- **Erforderlich**: Nein (Optional)
|
|
73
|
+
|
|
74
|
+
- `options.defaultLocale?: Locales`
|
|
75
|
+
- **Beschreibung**: Die Standard-Locale für die Anwendung. Wenn nicht angegeben, wird die konfigurierte Standard-Locale aus der Projektkonfiguration verwendet.
|
|
76
|
+
- **Typ**: `Locales`
|
|
77
|
+
- **Standard**: [`Projektkonfiguration`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/configuration.md#middleware)
|
|
78
|
+
|
|
79
|
+
- `options.mode?: 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params'`
|
|
80
|
+
- **Beschreibung**: Der URL-Routing-Modus für die Locale-Verarbeitung. Wenn nicht angegeben, wird der konfigurierte Modus aus Ihrer Projektkonfiguration verwendet.
|
|
81
|
+
- **Typ**: `'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params'`
|
|
82
|
+
- **Standard**: [`Projektkonfiguration`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/configuration.md#middleware)
|
|
83
|
+
- **Modi**:
|
|
84
|
+
- `prefix-no-default`: Gibt leere Strings zurück, wenn die Locale der Standard-Locale entspricht
|
|
85
|
+
- `prefix-all`: Gibt für alle Locales, einschließlich der Standard-Locale, ein Präfix zurück
|
|
86
|
+
- `no-prefix`: Gibt leere Strings zurück (kein Präfix in URLs)
|
|
87
|
+
- `search-params`: Gibt leere Strings zurück (Locale in Abfrageparametern)
|
|
88
|
+
|
|
89
|
+
### Rückgabe
|
|
90
|
+
|
|
91
|
+
- **Typ**: `GetPrefixResult`
|
|
92
|
+
- **Beschreibung**: Ein Objekt, das drei verschiedene Präfix-Formate enthält:
|
|
93
|
+
- `prefix`: Das Pfadpräfix mit abschließendem Schrägstrich (z.B. `'fr/'`, `''`)
|
|
94
|
+
- `localePrefix`: Der Locale-Bezeichner ohne Schrägstriche (z.B. `'fr'`, `undefined`)
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Beispielanwendung
|
|
99
|
+
|
|
100
|
+
### Grundlegende Verwendung
|
|
101
|
+
|
|
102
|
+
```typescript codeFormat="typescript"
|
|
103
|
+
import { getPrefix, Locales } from "intlayer";
|
|
104
|
+
|
|
105
|
+
// Präfix für die englische Locale prüfen
|
|
106
|
+
getPrefix(Locales.ENGLISH, {
|
|
107
|
+
defaultLocale: Locales.ENGLISH,
|
|
108
|
+
mode: "prefix-all",
|
|
109
|
+
});
|
|
110
|
+
// Gibt zurück: { prefix: 'en/', localePrefix: 'en' }
|
|
111
|
+
|
|
112
|
+
// Präfix für die französische Locale prüfen
|
|
113
|
+
getPrefix(Locales.FRENCH, {
|
|
114
|
+
defaultLocale: Locales.ENGLISH,
|
|
115
|
+
mode: "prefix-no-default",
|
|
116
|
+
});
|
|
117
|
+
// Gibt zurück: { 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
|
+
// Gibt zurück: { prefix: '', localePrefix: undefined }
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
```javascript codeFormat="commonjs"
|
|
128
|
+
const { getPrefix, Locales } = require("intlayer");
|
|
129
|
+
|
|
130
|
+
getPrefix(Locales.ENGLISH, { mode: "prefix-all" });
|
|
131
|
+
// Gibt zurück: { prefix: '', localePrefix: undefined }
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Verschiedene Routing-Modi
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
import { getPrefix, Locales } from "intlayer";
|
|
138
|
+
|
|
139
|
+
// prefix-all: Gibt immer ein Präfix zurück
|
|
140
|
+
getPrefix(Locales.ENGLISH, {
|
|
141
|
+
mode: "prefix-all",
|
|
142
|
+
defaultLocale: Locales.ENGLISH,
|
|
143
|
+
});
|
|
144
|
+
// Gibt zurück: { prefix: '/en', localePrefix: 'en' }
|
|
145
|
+
|
|
146
|
+
// prefix-no-default: Kein Präfix, wenn die Locale der Standard-Locale entspricht
|
|
147
|
+
getPrefix(Locales.ENGLISH, {
|
|
148
|
+
mode: "prefix-no-default",
|
|
149
|
+
defaultLocale: Locales.ENGLISH,
|
|
150
|
+
});
|
|
151
|
+
// Gibt zurück: { prefix: '', localePrefix: undefined }
|
|
152
|
+
|
|
153
|
+
// prefix-no-default: Gibt ein Präfix zurück, wenn die Locale von der Standard-Locale abweicht
|
|
154
|
+
getPrefix(Locales.FRENCH, {
|
|
155
|
+
mode: "prefix-no-default",
|
|
156
|
+
defaultLocale: Locales.ENGLISH,
|
|
157
|
+
});
|
|
158
|
+
// Gibt zurück: { prefix: 'fr/', localePrefix: 'fr' }
|
|
159
|
+
|
|
160
|
+
// no-prefix & search-params: Gibt niemals ein Präfix zurück
|
|
161
|
+
getPrefix(Locales.ENGLISH, { mode: "no-prefix" });
|
|
162
|
+
// Gibt zurück: { prefix: '', localePrefix: undefined }
|
|
163
|
+
|
|
164
|
+
getPrefix(Locales.ENGLISH, { mode: "search-params" });
|
|
165
|
+
// Gibt zurück: { prefix: '', localePrefix: undefined }
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Praktisches Beispiel
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
import { getPrefix, Locales } from "intlayer";
|
|
172
|
+
|
|
173
|
+
// URLs mit dem passenden Präfix für eine bestimmte Locale erstellen
|
|
174
|
+
const locale = Locales.FRENCH;
|
|
175
|
+
const { prefix, localePrefix } = getPrefix(locale, {
|
|
176
|
+
defaultLocale: Locales.ENGLISH,
|
|
177
|
+
mode: "prefix-no-default",
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
// Verwendung des Präfixes für die Pfadkonstruktion
|
|
181
|
+
const url1 = `/${prefix}about`.replace(/\/+/g, "/");
|
|
182
|
+
// Ergebnis: "/fr/about"
|
|
183
|
+
|
|
184
|
+
// Verwendung von localePrefix zur Identifikation der Locale
|
|
185
|
+
console.log(`Aktuelle Locale: ${localePrefix}`);
|
|
186
|
+
// Ausgabe: "Aktuelle Locale: fr"
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Verwandte Funktionen
|
|
192
|
+
|
|
193
|
+
- [`getLocalizedUrl`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/packages/intlayer/getLocalizedUrl.md): Generiert eine lokalisierte URL für eine bestimmte Locale
|
|
194
|
+
- [`getMultilingualUrls`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/packages/intlayer/getMultilingualUrls.md): Generiert URLs für alle konfigurierten Locales
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## TypeScript
|
|
199
|
+
|
|
200
|
+
```typescript
|
|
201
|
+
type GetPrefixResult = {
|
|
202
|
+
prefix: string; // Das Pfadpräfix mit abschließendem Schrägstrich (z.B. 'fr/' oder '')
|
|
203
|
+
localePrefix?: Locale; // Der Locale-Bezeichner ohne Schrägstriche (z.B. 'fr' oder 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
|
+
```
|
package/docs/en/CI_CD.md
CHANGED
|
@@ -95,7 +95,7 @@ npx intlayer build # To ensure dictionaries are up to d
|
|
|
95
95
|
npx intlayer fill --unpushed --mode fill # Only fill missing content, does not update existing ones
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
> For more information about Intlayer CLI commands and their usage, refer to the [CLI documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/
|
|
98
|
+
> For more information about Intlayer CLI commands and their usage, refer to the [CLI documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/index.md).
|
|
99
99
|
|
|
100
100
|
> If you have multiple apps in your repo using separate intlayer instances, you can use the `--base-dir` argument like this:
|
|
101
101
|
|
|
@@ -195,4 +195,4 @@ To set up the environment variables, go to GitHub → Settings → Secrets and v
|
|
|
195
195
|
|
|
196
196
|
> By default, the `--git-diff` argument filters dictionaries that include changes from base (default `origin/main`) to current branch (default: `HEAD`).
|
|
197
197
|
|
|
198
|
-
> For more information about Intlayer CLI commands and their usage, refer to the [CLI documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/
|
|
198
|
+
> For more information about Intlayer CLI commands and their usage, refer to the [CLI documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/index.md).
|
package/docs/en/autoFill.md
CHANGED
|
@@ -34,6 +34,26 @@ history:
|
|
|
34
34
|
|
|
35
35
|
**Autofill content declaration files** in your CI are a way to speed up your development workflow.
|
|
36
36
|
|
|
37
|
+
## Understanding the behavior
|
|
38
|
+
|
|
39
|
+
The `fill` command includes two modes:
|
|
40
|
+
|
|
41
|
+
- **Complete**: Automatically fill all missing content for each locale and edit the current file, or another file if specified. That say, complete mode will skip the translation of existing content, if already translated.
|
|
42
|
+
- **Review**: Automatically fill **all** content for each locale and generate for a specific file, or another file if specified.
|
|
43
|
+
|
|
44
|
+
The will command will process all your locale content declaration files. That say, it will not process your remote content from the CMS. The CMS includes its own translations management.
|
|
45
|
+
If you use plugins as `@intlayer/sync-json-plugin`, Intlayer will transform the JSON files into a locale content declaration files. That say, they will be processed by the `fill` command.
|
|
46
|
+
|
|
47
|
+
The new generated files include a `filled` instruction as dictionary metadata. This instruction will be used by Intlayer to know if the file has been autofilled or not, and skip this file from being translated again if present.
|
|
48
|
+
|
|
49
|
+
Intlayer will also consider the following instruction for autofill:
|
|
50
|
+
|
|
51
|
+
- From your `.content.{ts|js|json}` → `fill` instruction
|
|
52
|
+
- From your configuration file `.intlayer.config.ts` → `dictionary.fill` instruction
|
|
53
|
+
- Will be set to `true` by default otherwise
|
|
54
|
+
|
|
55
|
+
For per-locale content declaration files, the `true` instruction will be replaced by `./{{fileName}}.fill.content.json`. This is because the a per-locale content declaration file cannot receive additional localized content. So it will generate a new file to do not overwrite the existing file.
|
|
56
|
+
|
|
37
57
|
## Default Behavior
|
|
38
58
|
|
|
39
59
|
By default, `fill` is set to `true` globally, which means Intlayer will automatically fill all content files and edit the file itself. This behavior can be customized in several ways:
|
|
@@ -42,8 +62,10 @@ By default, `fill` is set to `true` globally, which means Intlayer will automati
|
|
|
42
62
|
|
|
43
63
|
1. **`fill: true` (default)** - Automatically fill all locales and edit the current file
|
|
44
64
|
2. **`fill: false`** - Disable auto-fill for this content file
|
|
45
|
-
3. **`fill: "path/to/file"`** - Create/update the specified file without editing the current one
|
|
46
|
-
4. **`fill:
|
|
65
|
+
3. **`fill: "./relative/path/to/file"`** - Create/update the specified file without editing the current one by pointing to a relative path resolved based on the location of the current file
|
|
66
|
+
4. **`fill: "/absolute/path/to/file"`** - Create/update the specified file without editing the current one by pointing to an relative path resolved based on the location of base directory (field `baseDir` in the configuration file `.intlayer.config.ts`)
|
|
67
|
+
5. **`fill: "C:\\absolute\path\to\file"`** - Create/update the specified file without editing the current one by pointing to an absolute path resolved based on your operating system
|
|
68
|
+
6. **`fill: { [key in Locales]?: string }`** - Create/update the specified file for each locale
|
|
47
69
|
|
|
48
70
|
### v7 Behavior Changes
|
|
49
71
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Build Dictionaries
|
|
5
|
+
description: Learn how to build your Intlayer dictionaries from content declaration files.
|
|
6
|
+
keywords:
|
|
7
|
+
- Build
|
|
8
|
+
- Dictionaries
|
|
9
|
+
- CLI
|
|
10
|
+
- Intlayer
|
|
11
|
+
slugs:
|
|
12
|
+
- doc
|
|
13
|
+
- concept
|
|
14
|
+
- cli
|
|
15
|
+
- build
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Build Dictionaries
|
|
19
|
+
|
|
20
|
+
To build your dictionaries, you can run the commands:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx intlayer build
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
or in watch mode
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx intlayer build --watch
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
This command will find your declaration content files as default as `./src/**/*.content.{ts|js|mjs|cjs|json|tsx|jsx}`. And build the dictionaries in the `.intlayer` directory.
|
|
33
|
+
|
|
34
|
+
## Aliases:
|
|
35
|
+
|
|
36
|
+
- `npx intlayer dictionaries build`
|
|
37
|
+
- `npx intlayer dictionary build`
|
|
38
|
+
- `npx intlayer dic build`
|
|
39
|
+
|
|
40
|
+
## Arguments:
|
|
41
|
+
|
|
42
|
+
- **`--base-dir`**: Specify the base directory for the project. To retrieve the intlayer configuration, the command will look for the `intlayer.config.{ts,js,json,cjs,mjs}` file in the base directory.
|
|
43
|
+
|
|
44
|
+
> Example: `npx intlayer build --base-dir ./src`
|
|
45
|
+
|
|
46
|
+
- **`--env`**: Specify the environment (e.g., `development`, `production`). Useful in the case you use environment variables in your intlayer configuration file.
|
|
47
|
+
|
|
48
|
+
> Example: `npx intlayer build --env production`
|
|
49
|
+
|
|
50
|
+
- **`--env-file`**: Provide a custom environment file to load variables from. Useful in the case you use environment variables in your intlayer configuration file.
|
|
51
|
+
|
|
52
|
+
> Example: `npx intlayer build --env-file .env.production.local`
|
|
53
|
+
|
|
54
|
+
- **`--with`**: Start command in parallel with the build.
|
|
55
|
+
|
|
56
|
+
> Example: `npx intlayer build --with "next dev --turbopack"`
|
|
57
|
+
|
|
58
|
+
- **`--skip-prepare`**: Skip the prepare step.
|
|
59
|
+
|
|
60
|
+
> Example: `npx intlayer build --skip-prepare`
|
|
61
|
+
|
|
62
|
+
- **`--no-cache`**: Disable the cache.
|
|
63
|
+
|
|
64
|
+
> Example: `npx intlayer build --no-cache`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Manage Configuration
|
|
5
|
+
description: Learn how to get and push your Intlayer configuration to the CMS.
|
|
6
|
+
keywords:
|
|
7
|
+
- Configuration
|
|
8
|
+
- Config
|
|
9
|
+
- CLI
|
|
10
|
+
- Intlayer
|
|
11
|
+
- CMS
|
|
12
|
+
slugs:
|
|
13
|
+
- doc
|
|
14
|
+
- concept
|
|
15
|
+
- cli
|
|
16
|
+
- configuration
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Manage Configuration
|
|
20
|
+
|
|
21
|
+
## Get Configuration
|
|
22
|
+
|
|
23
|
+
The `configuration get` command retrieves the current configuration for Intlayer, particularly the locale settings. This is useful for verifying your setup.
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx intlayer configuration get
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Aliases:
|
|
30
|
+
|
|
31
|
+
- `npx intlayer config get`
|
|
32
|
+
- `npx intlayer conf get`
|
|
33
|
+
|
|
34
|
+
## Arguments:
|
|
35
|
+
|
|
36
|
+
- **`--env`**: Specify the environment (e.g., `development`, `production`).
|
|
37
|
+
- **`--env-file`**: Provide a custom environment file to load variables from.
|
|
38
|
+
- **`--base-dir`**: Specify the base directory for the project.
|
|
39
|
+
- **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
|
|
40
|
+
- **`--no-cache`**: Disable the cache.
|
|
41
|
+
|
|
42
|
+
## Push Configuration
|
|
43
|
+
|
|
44
|
+
The `configuration push` command uploads your configuration to the Intlayer CMS and editor. This step is necessary to enable the use of distant dictionaries in the Intlayer Visual Editor.
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npx intlayer configuration push
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Aliases:
|
|
51
|
+
|
|
52
|
+
- `npx intlayer config push`
|
|
53
|
+
- `npx intlayer conf push`
|
|
54
|
+
|
|
55
|
+
## Arguments:
|
|
56
|
+
|
|
57
|
+
- **`--env`**: Specify the environment (e.g., `development`, `production`).
|
|
58
|
+
- **`--env-file`**: Provide a custom environment file to load variables from.
|
|
59
|
+
- **`--base-dir`**: Specify the base directory for the project.
|
|
60
|
+
- **`--verbose`**: Enable verbose logging for debugging. (default to true using CLI)
|
|
61
|
+
- **`--no-cache`**: Disable the cache.
|
|
62
|
+
|
|
63
|
+
By pushing the configuration, your project is fully integrated with the Intlayer CMS, enabling seamless dictionary management across teams.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-11
|
|
3
|
+
updatedAt: 2025-11-22
|
|
4
|
+
title: Debug Intlayer Command
|
|
5
|
+
description: Learn how to debug and troubleshoot Intlayer CLI issues.
|
|
6
|
+
keywords:
|
|
7
|
+
- Debug
|
|
8
|
+
- Troubleshoot
|
|
9
|
+
- CLI
|
|
10
|
+
- Intlayer
|
|
11
|
+
slugs:
|
|
12
|
+
- doc
|
|
13
|
+
- concept
|
|
14
|
+
- cli
|
|
15
|
+
- debug
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Debug intlayer command
|
|
19
|
+
|
|
20
|
+
## 1. **Ensure you're using the latest version**
|
|
21
|
+
|
|
22
|
+
Run:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx intlayer --version # current locale intlayer version
|
|
26
|
+
npx intlayer@latest --version # current latest intlayer version
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 2. **Check if the command is registered**
|
|
30
|
+
|
|
31
|
+
You can check with:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx intlayer --help # Shows the list of available commands and usage information
|
|
35
|
+
npx intlayer dictionary build --help # Shows the list of available options for a command
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## 3. **Restart your terminal**
|
|
39
|
+
|
|
40
|
+
Sometimes a terminal restart is needed to recognize new commands.
|
|
41
|
+
|
|
42
|
+
## 4. **Clear npx cache (if you're stuck with an older version)**
|
|
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: Review Document
|
|
5
|
+
description: Learn how to review documentation files for quality, consistency, and completeness across different locales.
|
|
6
|
+
keywords:
|
|
7
|
+
- Review
|
|
8
|
+
- Document
|
|
9
|
+
- Documentation
|
|
10
|
+
- AI
|
|
11
|
+
- CLI
|
|
12
|
+
- Intlayer
|
|
13
|
+
slugs:
|
|
14
|
+
- doc
|
|
15
|
+
- concept
|
|
16
|
+
- cli
|
|
17
|
+
- doc-review
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Review Document
|
|
21
|
+
|
|
22
|
+
The `doc review` command analyzes documentation files for quality, consistency, and completeness across different locales.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx intlayer doc review
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
It can be used to review files that are already translated, and to check if the translation is correct.
|
|
29
|
+
|
|
30
|
+
For most use cases,
|
|
31
|
+
|
|
32
|
+
- prefer using the `doc translate` when the translated version of this file is not available.
|
|
33
|
+
- prefer using the `doc review` when the translated version of this file already exists.
|
|
34
|
+
|
|
35
|
+
> Note that the review process consumes more entry tokens than the translate process to review the same file entirely. However, the review process will optimize the chunks to review, and will skip the parts that are not changed.
|
|
36
|
+
|
|
37
|
+
## Arguments:
|
|
38
|
+
|
|
39
|
+
The `doc review` command accepts the same arguments as `doc translate`, allowing you to review specific documentation files and apply quality checks.
|
|
40
|
+
|
|
41
|
+
If you activated one of the git options, the command will only review the part of the files that getting changed. The script will process by chunking the file and review each chunk. If there is no changes in the chunk, the script will skip it to speed up the review process and limit the AI Provider API cost.
|
|
42
|
+
|
|
43
|
+
For a complete list of arguments, see the [Translate Document](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/doc-translate.md) command documentation.
|