@intlayer/docs 7.0.7 → 7.0.8-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/blog/ar/i18n_using_next-i18next.md +1068 -0
- package/blog/ar/i18n_using_next-intl.md +768 -0
- package/blog/ar/intlayer_with_react-intl.md +0 -4
- package/blog/ar/next-i18next_vs_next-intl_vs_intlayer.md +5 -4
- package/blog/de/i18n_using_next-i18next.md +1107 -0
- package/blog/de/i18n_using_next-intl.md +760 -0
- package/blog/de/intlayer_with_react-intl.md +0 -4
- package/blog/de/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/en/i18n_using_next-i18next.md +1073 -0
- package/blog/en/i18n_using_next-intl.md +757 -0
- package/blog/en/intlayer_with_i18next.md +71 -8
- package/blog/en/intlayer_with_next-i18next.md +71 -8
- package/blog/en/intlayer_with_next-intl.md +71 -8
- package/blog/en/intlayer_with_react-i18next.md +69 -8
- package/blog/en/intlayer_with_react-intl.md +68 -9
- package/blog/en/intlayer_with_vue-i18n.md +68 -7
- package/blog/en/react-i18next_vs_react-intl_vs_intlayer.md +2 -0
- package/blog/en/vue-i18n_vs_intlayer.md +2 -0
- package/blog/en-GB/i18n_using_next-i18next.md +1074 -0
- package/blog/en-GB/i18n_using_next-intl.md +757 -0
- package/blog/en-GB/intlayer_with_i18next.md +15 -6
- package/blog/en-GB/intlayer_with_next-i18next.md +16 -6
- package/blog/en-GB/intlayer_with_next-intl.md +16 -6
- package/blog/en-GB/intlayer_with_react-i18next.md +16 -7
- package/blog/en-GB/intlayer_with_react-intl.md +14 -9
- package/blog/en-GB/intlayer_with_vue-i18n.md +16 -7
- package/blog/en-GB/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/en-GB/react-i18next_vs_react-intl_vs_intlayer.md +2 -0
- package/blog/en-GB/vue-i18n_vs_intlayer.md +2 -0
- package/blog/es/i18n_using_next-i18next.md +1066 -0
- package/blog/es/i18n_using_next-intl.md +757 -0
- package/blog/es/intlayer_with_react-intl.md +0 -4
- package/blog/es/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/fr/i18n_using_next-i18next.md +1078 -0
- package/blog/fr/i18n_using_next-intl.md +759 -0
- package/blog/fr/intlayer_with_react-intl.md +0 -4
- package/blog/fr/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/hi/i18n_using_next-i18next.md +1068 -0
- package/blog/hi/i18n_using_next-intl.md +758 -0
- package/blog/hi/intlayer_with_react-intl.md +0 -4
- package/blog/hi/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/id/i18n_using_next-i18next.md +1078 -0
- package/blog/id/i18n_using_next-intl.md +757 -0
- package/blog/id/index.md +69 -0
- package/blog/id/internationalization_and_SEO.md +364 -0
- package/blog/id/intlayer_with_react-intl.md +0 -4
- package/blog/id/list_i18n_technologies/CMS/drupal.md +143 -0
- package/blog/id/list_i18n_technologies/CMS/wix.md +167 -0
- package/blog/id/list_i18n_technologies/CMS/wordpress.md +188 -0
- package/blog/id/list_i18n_technologies/frameworks/angular.md +125 -0
- package/blog/id/list_i18n_technologies/frameworks/flutter.md +150 -0
- package/blog/id/list_i18n_technologies/frameworks/react-native.md +217 -0
- package/blog/id/list_i18n_technologies/frameworks/react.md +155 -0
- package/blog/id/list_i18n_technologies/frameworks/svelte.md +131 -0
- package/blog/id/list_i18n_technologies/frameworks/vue.md +130 -0
- package/blog/id/next-i18next_vs_next-intl_vs_intlayer.md +1500 -0
- package/blog/id/nextjs-multilingual-seo-comparison.md +361 -0
- package/blog/id/rag_powered_documentation_assistant.md +288 -0
- package/blog/id/react-i18next_vs_react-intl_vs_intlayer.md +164 -0
- package/blog/id/vue-i18n_vs_intlayer.md +278 -0
- package/blog/id/what_is_internationalization.md +166 -0
- package/blog/it/i18n_using_next-i18next.md +1078 -0
- package/blog/it/i18n_using_next-intl.md +758 -0
- package/blog/it/intlayer_with_react-intl.md +0 -4
- package/blog/it/react-i18next_vs_react-intl_vs_intlayer.md +4 -0
- package/blog/it/vue-i18n_vs_intlayer.md +2 -0
- package/blog/ja/i18n_using_next-i18next.md +1078 -0
- package/blog/ja/i18n_using_next-intl.md +758 -0
- package/blog/ja/intlayer_with_react-intl.md +0 -4
- package/blog/ja/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/ko/i18n_using_next-i18next.md +1075 -0
- package/blog/ko/i18n_using_next-intl.md +759 -0
- package/blog/ko/intlayer_with_react-intl.md +0 -4
- package/blog/ko/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/pl/i18n_using_next-i18next.md +1078 -0
- package/blog/pl/i18n_using_next-intl.md +758 -0
- package/blog/pl/index.md +69 -0
- package/blog/pl/internationalization_and_SEO.md +363 -0
- package/blog/pl/intlayer_with_react-intl.md +0 -4
- package/blog/pl/list_i18n_technologies/CMS/drupal.md +143 -0
- package/blog/pl/list_i18n_technologies/CMS/wix.md +167 -0
- package/blog/pl/list_i18n_technologies/CMS/wordpress.md +196 -0
- package/blog/pl/list_i18n_technologies/frameworks/angular.md +125 -0
- package/blog/pl/list_i18n_technologies/frameworks/flutter.md +151 -0
- package/blog/pl/list_i18n_technologies/frameworks/react-native.md +217 -0
- package/blog/pl/list_i18n_technologies/frameworks/react.md +155 -0
- package/blog/pl/list_i18n_technologies/frameworks/svelte.md +131 -0
- package/blog/pl/list_i18n_technologies/frameworks/vue.md +130 -0
- package/blog/pl/next-i18next_vs_next-intl_vs_intlayer.md +1501 -0
- package/blog/pl/nextjs-multilingual-seo-comparison.md +362 -0
- package/blog/pl/rag_powered_documentation_assistant.md +288 -0
- package/blog/pl/react-i18next_vs_react-intl_vs_intlayer.md +164 -0
- package/blog/pl/vue-i18n_vs_intlayer.md +278 -0
- package/blog/pl/what_is_internationalization.md +167 -0
- package/blog/pt/i18n_using_next-i18next.md +1067 -0
- package/blog/pt/i18n_using_next-intl.md +760 -0
- package/blog/pt/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/ru/i18n_using_next-i18next.md +1106 -0
- package/blog/ru/i18n_using_next-intl.md +759 -0
- package/blog/ru/intlayer_with_react-intl.md +0 -4
- package/blog/ru/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/tr/i18n_using_next-i18next.md +1078 -0
- package/blog/tr/i18n_using_next-intl.md +760 -0
- package/blog/tr/intlayer_with_react-intl.md +0 -4
- package/blog/tr/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/tr/react-i18next_vs_react-intl_vs_intlayer.md +2 -0
- package/blog/tr/vue-i18n_vs_intlayer.md +2 -0
- package/blog/vi/i18n_using_next-i18next.md +1080 -0
- package/blog/vi/i18n_using_next-intl.md +758 -0
- package/blog/vi/index.md +69 -0
- package/blog/vi/internationalization_and_SEO.md +363 -0
- package/blog/vi/intlayer_with_react-intl.md +0 -4
- package/blog/vi/list_i18n_technologies/CMS/drupal.md +143 -0
- package/blog/vi/list_i18n_technologies/CMS/wix.md +167 -0
- package/blog/vi/list_i18n_technologies/CMS/wordpress.md +188 -0
- package/blog/vi/list_i18n_technologies/frameworks/angular.md +125 -0
- package/blog/vi/list_i18n_technologies/frameworks/flutter.md +150 -0
- package/blog/vi/list_i18n_technologies/frameworks/react-native.md +217 -0
- package/blog/vi/list_i18n_technologies/frameworks/react.md +155 -0
- package/blog/vi/list_i18n_technologies/frameworks/svelte.md +131 -0
- package/blog/vi/list_i18n_technologies/frameworks/vue.md +130 -0
- package/blog/vi/next-i18next_vs_next-intl_vs_intlayer.md +1520 -0
- package/blog/vi/nextjs-multilingual-seo-comparison.md +362 -0
- package/blog/vi/rag_powered_documentation_assistant.md +288 -0
- package/blog/vi/react-i18next_vs_react-intl_vs_intlayer.md +164 -0
- package/blog/vi/vue-i18n_vs_intlayer.md +278 -0
- package/blog/vi/what_is_internationalization.md +168 -0
- package/blog/zh/i18n_using_next-i18next.md +1105 -0
- package/blog/zh/i18n_using_next-intl.md +758 -0
- package/blog/zh/intlayer_with_react-intl.md +0 -4
- package/blog/zh/next-i18next_vs_next-intl_vs_intlayer.md +2 -0
- package/blog/zh/react-i18next_vs_react-intl_vs_intlayer.md +2 -0
- package/dist/cjs/common.cjs +0 -4
- package/dist/cjs/common.cjs.map +1 -1
- package/dist/cjs/generated/blog.entry.cjs +38 -6
- package/dist/cjs/generated/blog.entry.cjs.map +1 -1
- package/dist/cjs/generated/docs.entry.cjs +0 -6
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/cjs/generated/frequentQuestions.entry.cjs +0 -6
- package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
- package/dist/cjs/generated/legal.entry.cjs +0 -6
- package/dist/cjs/generated/legal.entry.cjs.map +1 -1
- package/dist/esm/generated/blog.entry.mjs +38 -0
- package/dist/esm/generated/blog.entry.mjs.map +1 -1
- package/dist/types/generated/blog.entry.d.ts +2 -0
- package/dist/types/generated/blog.entry.d.ts.map +1 -1
- package/docs/ar/component_i18n.md +1 -1
- package/docs/ar/configuration.md +6 -0
- package/docs/ar/intlayer_cli.md +8 -3
- package/docs/ar/intlayer_with_next-i18next.md +619 -0
- package/docs/ar/intlayer_with_next-intl.md +446 -0
- package/docs/ar/intlayer_with_nextjs_16.md +21 -0
- package/docs/ar/intlayer_with_tanstack.md +4 -0
- package/docs/ar/intlayer_with_vite+react.md +4 -0
- package/docs/de/component_i18n.md +1 -1
- package/docs/de/configuration.md +6 -0
- package/docs/de/intlayer_cli.md +8 -3
- package/docs/de/intlayer_with_next-i18next.md +627 -0
- package/docs/de/intlayer_with_next-intl.md +451 -0
- package/docs/de/intlayer_with_nextjs_16.md +21 -0
- package/docs/de/intlayer_with_tanstack.md +4 -0
- package/docs/de/intlayer_with_vite+react.md +4 -0
- package/docs/en/component_i18n.md +1 -1
- package/docs/en/intlayer_cli.md +8 -1
- package/docs/en/intlayer_with_astro.md +10 -2
- package/docs/en/intlayer_with_create_react_app.md +8 -0
- package/docs/en/intlayer_with_lynx+react.md +8 -0
- package/docs/en/intlayer_with_nestjs.md +10 -0
- package/docs/en/intlayer_with_nextjs_14.md +10 -2
- package/docs/en/intlayer_with_nextjs_15.md +21 -4
- package/docs/en/intlayer_with_nextjs_16.md +17 -0
- package/docs/en/intlayer_with_nuxt.md +8 -0
- package/docs/en/intlayer_with_react_native+expo.md +10 -2
- package/docs/en/intlayer_with_react_router_v7.md +8 -0
- package/docs/en/intlayer_with_tanstack.md +10 -0
- package/docs/en/intlayer_with_vite+preact.md +10 -2
- package/docs/en/intlayer_with_vite+react.md +21 -4
- package/docs/en/intlayer_with_vite+vue.md +10 -2
- package/docs/en-GB/component_i18n.md +1 -1
- package/docs/en-GB/configuration.md +6 -0
- package/docs/en-GB/intlayer_cli.md +8 -3
- package/docs/en-GB/intlayer_with_angular.md +4 -4
- package/docs/en-GB/intlayer_with_express.md +4 -4
- package/docs/en-GB/intlayer_with_lynx+react.md +12 -12
- package/{blog/en/_intlayer_with_next-i18next.md → docs/en-GB/intlayer_with_next-i18next.md} +241 -42
- package/{blog/en/_intlayer_with_next-intl.md → docs/en-GB/intlayer_with_next-intl.md} +144 -29
- package/docs/en-GB/intlayer_with_nextjs_16.md +21 -0
- package/docs/en-GB/intlayer_with_tanstack.md +5 -1
- package/docs/en-GB/intlayer_with_vite+react.md +4 -0
- package/docs/en-GB/packages/next-intlayer/t.md +2 -2
- package/docs/es/component_i18n.md +1 -1
- package/docs/es/configuration.md +6 -0
- package/docs/es/intlayer_cli.md +8 -3
- package/docs/es/intlayer_with_next-i18next.md +628 -0
- package/docs/es/intlayer_with_next-intl.md +446 -0
- package/docs/es/intlayer_with_nextjs_16.md +21 -0
- package/docs/es/intlayer_with_tanstack.md +4 -0
- package/docs/es/intlayer_with_vite+react.md +4 -0
- package/docs/fr/configuration.md +6 -0
- package/docs/fr/intlayer_cli.md +8 -3
- package/docs/fr/intlayer_with_next-i18next.md +628 -0
- package/docs/fr/intlayer_with_next-intl.md +446 -0
- package/docs/fr/intlayer_with_nextjs_16.md +23 -2
- package/docs/fr/intlayer_with_tanstack.md +4 -0
- package/docs/fr/intlayer_with_vite+react.md +4 -0
- package/docs/hi/component_i18n.md +1 -1
- package/docs/hi/configuration.md +6 -0
- package/docs/hi/intlayer_cli.md +8 -0
- package/docs/hi/intlayer_with_next-i18next.md +628 -0
- package/docs/hi/intlayer_with_next-intl.md +446 -0
- package/docs/hi/intlayer_with_nextjs_16.md +21 -0
- package/docs/hi/intlayer_with_tanstack.md +4 -0
- package/docs/hi/intlayer_with_vite+react.md +4 -0
- package/docs/id/CI_CD.md +198 -0
- package/docs/id/autoFill.md +284 -0
- package/docs/id/component_i18n.md +186 -0
- package/docs/id/configuration.md +710 -0
- package/docs/id/dictionary/condition.md +231 -0
- package/docs/id/dictionary/content_file.md +1092 -0
- package/docs/id/dictionary/enumeration.md +245 -0
- package/docs/id/dictionary/file.md +237 -0
- package/docs/id/dictionary/function_fetching.md +214 -0
- package/docs/id/dictionary/gender.md +273 -0
- package/docs/id/dictionary/insertion.md +192 -0
- package/docs/id/dictionary/markdown.md +381 -0
- package/docs/id/dictionary/nesting.md +273 -0
- package/docs/id/dictionary/translation.md +310 -0
- package/docs/id/formatters.md +596 -0
- package/docs/id/how_works_intlayer.md +256 -0
- package/docs/id/index.md +176 -0
- package/docs/id/interest_of_intlayer.md +293 -0
- package/docs/id/intlayer_CMS.md +549 -0
- package/docs/id/intlayer_cli.md +850 -0
- package/docs/id/intlayer_visual_editor.md +288 -0
- package/docs/id/intlayer_with_angular.md +694 -0
- package/docs/id/intlayer_with_astro.md +252 -0
- package/docs/id/intlayer_with_create_react_app.md +1233 -0
- package/docs/id/intlayer_with_express.md +411 -0
- package/docs/id/intlayer_with_lynx+react.md +518 -0
- package/docs/id/intlayer_with_nestjs.md +272 -0
- package/docs/id/intlayer_with_next-i18next.md +628 -0
- package/docs/id/intlayer_with_next-intl.md +446 -0
- package/docs/id/intlayer_with_nextjs_14.md +1617 -0
- package/docs/id/intlayer_with_nextjs_15.md +1698 -0
- package/docs/id/intlayer_with_nextjs_16.md +21 -0
- package/docs/id/intlayer_with_nextjs_page_router.md +1478 -0
- package/docs/id/intlayer_with_nuxt.md +808 -0
- package/docs/id/intlayer_with_react_native+expo.md +699 -0
- package/docs/id/intlayer_with_react_router_v7.md +496 -0
- package/docs/id/intlayer_with_tanstack.md +564 -0
- package/docs/id/intlayer_with_vite+preact.md +1737 -0
- package/docs/id/intlayer_with_vite+react.md +1413 -0
- package/docs/id/intlayer_with_vite+solid.md +289 -0
- package/docs/id/intlayer_with_vite+svelte.md +289 -0
- package/docs/id/intlayer_with_vite+vue.md +1088 -0
- package/docs/id/introduction.md +218 -0
- package/docs/id/locale_mapper.md +242 -0
- package/docs/id/mcp_server.md +211 -0
- package/docs/id/packages/express-intlayer/t.md +458 -0
- package/docs/id/packages/intlayer/getConfiguration.md +145 -0
- package/docs/id/packages/intlayer/getEnumeration.md +159 -0
- package/docs/id/packages/intlayer/getHTMLTextDir.md +122 -0
- package/docs/id/packages/intlayer/getLocaleLang.md +81 -0
- package/docs/id/packages/intlayer/getLocaleName.md +119 -0
- package/docs/id/packages/intlayer/getLocalizedUrl.md +309 -0
- package/docs/id/packages/intlayer/getMultilingualUrls.md +223 -0
- package/docs/id/packages/intlayer/getPathWithoutLocale.md +75 -0
- package/docs/id/packages/intlayer/getTranslation.md +190 -0
- package/docs/id/packages/intlayer/getTranslationContent.md +188 -0
- package/docs/id/packages/next-intlayer/t.md +352 -0
- package/docs/id/packages/next-intlayer/useDictionary.md +271 -0
- package/docs/id/packages/next-intlayer/useIntlayer.md +264 -0
- package/docs/id/packages/next-intlayer/useLocale.md +166 -0
- package/docs/id/packages/react-intlayer/t.md +303 -0
- package/docs/id/packages/react-intlayer/useDictionary.md +287 -0
- package/docs/id/packages/react-intlayer/useI18n.md +267 -0
- package/docs/id/packages/react-intlayer/useIntlayer.md +254 -0
- package/docs/id/packages/react-intlayer/useLocale.md +210 -0
- package/docs/id/per_locale_file.md +323 -0
- package/docs/id/readme.md +261 -0
- package/docs/id/releases/v6.md +305 -0
- package/docs/id/roadmap.md +362 -0
- package/docs/id/testing.md +202 -0
- package/docs/id/vs_code_extension.md +126 -0
- package/docs/it/component_i18n.md +1 -1
- package/docs/it/configuration.md +6 -0
- package/docs/it/intlayer_cli.md +8 -3
- package/docs/it/intlayer_with_next-i18next.md +628 -0
- package/docs/it/intlayer_with_next-intl.md +446 -0
- package/docs/it/intlayer_with_nextjs_16.md +21 -0
- package/docs/it/intlayer_with_tanstack.md +4 -0
- package/docs/it/intlayer_with_vite+react.md +4 -0
- package/docs/ja/component_i18n.md +1 -1
- package/docs/ja/configuration.md +6 -0
- package/docs/ja/intlayer_cli.md +8 -3
- package/docs/ja/intlayer_with_next-i18next.md +627 -0
- package/docs/ja/intlayer_with_next-intl.md +446 -0
- package/docs/ja/intlayer_with_nextjs_16.md +21 -0
- package/docs/ja/intlayer_with_tanstack.md +4 -0
- package/docs/ja/intlayer_with_vite+react.md +4 -0
- package/docs/ko/configuration.md +6 -0
- package/docs/ko/intlayer_cli.md +8 -3
- package/docs/ko/intlayer_with_next-i18next.md +627 -0
- package/docs/ko/intlayer_with_next-intl.md +446 -0
- package/docs/ko/intlayer_with_nextjs_16.md +21 -0
- package/docs/ko/intlayer_with_tanstack.md +4 -0
- package/docs/ko/intlayer_with_vite+react.md +4 -0
- package/docs/pl/CI_CD.md +198 -0
- package/docs/pl/autoFill.md +284 -0
- package/docs/pl/component_i18n.md +186 -0
- package/docs/pl/configuration.md +710 -0
- package/docs/pl/dictionary/condition.md +232 -0
- package/docs/pl/dictionary/content_file.md +1130 -0
- package/docs/pl/dictionary/enumeration.md +245 -0
- package/docs/pl/dictionary/file.md +234 -0
- package/docs/pl/dictionary/function_fetching.md +214 -0
- package/docs/pl/dictionary/gender.md +276 -0
- package/docs/pl/dictionary/insertion.md +188 -0
- package/docs/pl/dictionary/markdown.md +408 -0
- package/docs/pl/dictionary/nesting.md +273 -0
- package/docs/pl/dictionary/translation.md +310 -0
- package/docs/pl/formatters.md +596 -0
- package/docs/pl/how_works_intlayer.md +256 -0
- package/docs/pl/index.md +176 -0
- package/docs/pl/interest_of_intlayer.md +291 -0
- package/docs/pl/intlayer_CMS.md +549 -0
- package/docs/pl/intlayer_cli.md +857 -0
- package/docs/pl/intlayer_visual_editor.md +288 -0
- package/docs/pl/intlayer_with_angular.md +690 -0
- package/docs/pl/intlayer_with_astro.md +280 -0
- package/docs/pl/intlayer_with_create_react_app.md +1235 -0
- package/docs/pl/intlayer_with_express.md +411 -0
- package/docs/pl/intlayer_with_lynx+react.md +518 -0
- package/docs/pl/intlayer_with_nestjs.md +272 -0
- package/docs/pl/intlayer_with_next-i18next.md +628 -0
- package/docs/pl/intlayer_with_next-intl.md +446 -0
- package/docs/pl/intlayer_with_nextjs_14.md +1594 -0
- package/docs/pl/intlayer_with_nextjs_15.md +1701 -0
- package/docs/pl/intlayer_with_nextjs_16.md +21 -0
- package/docs/pl/intlayer_with_nextjs_page_router.md +1513 -0
- package/docs/pl/intlayer_with_nuxt.md +885 -0
- package/docs/pl/intlayer_with_react_native+expo.md +698 -0
- package/docs/pl/intlayer_with_react_router_v7.md +503 -0
- package/docs/pl/intlayer_with_tanstack.md +562 -0
- package/docs/pl/intlayer_with_vite+preact.md +1736 -0
- package/docs/pl/intlayer_with_vite+react.md +1438 -0
- package/docs/pl/intlayer_with_vite+solid.md +290 -0
- package/docs/pl/intlayer_with_vite+svelte.md +289 -0
- package/docs/pl/intlayer_with_vite+vue.md +1116 -0
- package/docs/pl/introduction.md +209 -0
- package/docs/pl/locale_mapper.md +242 -0
- package/docs/pl/mcp_server.md +211 -0
- package/docs/pl/packages/express-intlayer/t.md +458 -0
- package/docs/pl/packages/intlayer/getConfiguration.md +146 -0
- package/docs/pl/packages/intlayer/getEnumeration.md +160 -0
- package/docs/pl/packages/intlayer/getHTMLTextDir.md +121 -0
- package/docs/pl/packages/intlayer/getLocaleLang.md +81 -0
- package/docs/pl/packages/intlayer/getLocaleName.md +118 -0
- package/docs/pl/packages/intlayer/getLocalizedUrl.md +300 -0
- package/docs/pl/packages/intlayer/getMultilingualUrls.md +221 -0
- package/docs/pl/packages/intlayer/getPathWithoutLocale.md +75 -0
- package/docs/pl/packages/intlayer/getTranslation.md +190 -0
- package/docs/pl/packages/intlayer/getTranslationContent.md +189 -0
- package/docs/pl/packages/next-intlayer/t.md +353 -0
- package/docs/pl/packages/next-intlayer/useDictionary.md +270 -0
- package/docs/pl/packages/next-intlayer/useIntlayer.md +263 -0
- package/docs/pl/packages/next-intlayer/useLocale.md +166 -0
- package/docs/pl/packages/react-intlayer/t.md +303 -0
- package/docs/pl/packages/react-intlayer/useDictionary.md +289 -0
- package/docs/pl/packages/react-intlayer/useI18n.md +249 -0
- package/docs/pl/packages/react-intlayer/useIntlayer.md +256 -0
- package/docs/pl/packages/react-intlayer/useLocale.md +210 -0
- package/docs/pl/per_locale_file.md +321 -0
- package/docs/pl/readme.md +261 -0
- package/docs/pl/releases/v6.md +305 -0
- package/docs/pl/roadmap.md +362 -0
- package/docs/pl/testing.md +202 -0
- package/docs/pl/vs_code_extension.md +126 -0
- package/docs/pt/component_i18n.md +1 -1
- package/docs/pt/configuration.md +6 -0
- package/docs/pt/intlayer_cli.md +8 -3
- package/docs/pt/intlayer_with_next-i18next.md +627 -0
- package/docs/pt/intlayer_with_next-intl.md +446 -0
- package/docs/pt/intlayer_with_nextjs_16.md +21 -0
- package/docs/pt/intlayer_with_tanstack.md +4 -0
- package/docs/pt/intlayer_with_vite+react.md +4 -0
- package/docs/ru/component_i18n.md +1 -1
- package/docs/ru/configuration.md +6 -0
- package/docs/ru/intlayer_cli.md +301 -22
- package/docs/ru/intlayer_with_next-i18next.md +629 -0
- package/docs/ru/intlayer_with_next-intl.md +448 -0
- package/docs/ru/intlayer_with_nextjs_16.md +21 -0
- package/docs/ru/intlayer_with_tanstack.md +4 -0
- package/docs/ru/intlayer_with_vite+react.md +4 -0
- package/docs/tr/component_i18n.md +1 -1
- package/docs/tr/configuration.md +6 -0
- package/docs/tr/intlayer_cli.md +8 -0
- package/docs/tr/intlayer_with_next-i18next.md +627 -0
- package/docs/tr/intlayer_with_next-intl.md +446 -0
- package/docs/tr/intlayer_with_nextjs_16.md +21 -0
- package/docs/tr/intlayer_with_tanstack.md +4 -0
- package/docs/tr/intlayer_with_vite+react.md +4 -0
- package/docs/vi/CI_CD.md +198 -0
- package/docs/vi/autoFill.md +284 -0
- package/docs/vi/component_i18n.md +186 -0
- package/docs/vi/configuration.md +710 -0
- package/docs/vi/dictionary/condition.md +237 -0
- package/docs/vi/dictionary/content_file.md +1115 -0
- package/docs/vi/dictionary/enumeration.md +255 -0
- package/docs/vi/dictionary/file.md +234 -0
- package/docs/vi/dictionary/function_fetching.md +212 -0
- package/docs/vi/dictionary/gender.md +275 -0
- package/docs/vi/dictionary/insertion.md +191 -0
- package/docs/vi/dictionary/markdown.md +381 -0
- package/docs/vi/dictionary/nesting.md +273 -0
- package/docs/vi/dictionary/translation.md +309 -0
- package/docs/vi/formatters.md +595 -0
- package/docs/vi/how_works_intlayer.md +256 -0
- package/docs/vi/index.md +174 -0
- package/docs/vi/interest_of_intlayer.md +292 -0
- package/docs/vi/intlayer_CMS.md +549 -0
- package/docs/vi/intlayer_cli.md +850 -0
- package/docs/vi/intlayer_visual_editor.md +288 -0
- package/docs/vi/intlayer_with_angular.md +692 -0
- package/docs/vi/intlayer_with_astro.md +252 -0
- package/docs/vi/intlayer_with_create_react_app.md +1230 -0
- package/docs/vi/intlayer_with_express.md +409 -0
- package/docs/vi/intlayer_with_lynx+react.md +520 -0
- package/docs/vi/intlayer_with_nestjs.md +272 -0
- package/docs/vi/intlayer_with_next-i18next.md +628 -0
- package/docs/vi/intlayer_with_next-intl.md +446 -0
- package/docs/vi/intlayer_with_nextjs_14.md +1584 -0
- package/docs/vi/intlayer_with_nextjs_15.md +1738 -0
- package/docs/vi/intlayer_with_nextjs_16.md +21 -0
- package/docs/vi/intlayer_with_nextjs_page_router.md +1504 -0
- package/docs/vi/intlayer_with_nuxt.md +821 -0
- package/docs/vi/intlayer_with_react_native+expo.md +700 -0
- package/docs/vi/intlayer_with_react_router_v7.md +498 -0
- package/docs/vi/intlayer_with_tanstack.md +562 -0
- package/docs/vi/intlayer_with_vite+preact.md +1722 -0
- package/docs/vi/intlayer_with_vite+react.md +1407 -0
- package/docs/vi/intlayer_with_vite+solid.md +287 -0
- package/docs/vi/intlayer_with_vite+svelte.md +289 -0
- package/docs/vi/intlayer_with_vite+vue.md +1071 -0
- package/docs/vi/introduction.md +215 -0
- package/docs/vi/locale_mapper.md +242 -0
- package/docs/vi/mcp_server.md +211 -0
- package/docs/vi/packages/express-intlayer/t.md +457 -0
- package/docs/vi/packages/intlayer/getConfiguration.md +145 -0
- package/docs/vi/packages/intlayer/getEnumeration.md +162 -0
- package/docs/vi/packages/intlayer/getHTMLTextDir.md +121 -0
- package/docs/vi/packages/intlayer/getLocaleLang.md +81 -0
- package/docs/vi/packages/intlayer/getLocaleName.md +129 -0
- package/docs/vi/packages/intlayer/getLocalizedUrl.md +309 -0
- package/docs/vi/packages/intlayer/getMultilingualUrls.md +221 -0
- package/docs/vi/packages/intlayer/getPathWithoutLocale.md +75 -0
- package/docs/vi/packages/intlayer/getTranslation.md +201 -0
- package/docs/vi/packages/intlayer/getTranslationContent.md +188 -0
- package/docs/vi/packages/next-intlayer/t.md +352 -0
- package/docs/vi/packages/next-intlayer/useDictionary.md +273 -0
- package/docs/vi/packages/next-intlayer/useIntlayer.md +264 -0
- package/docs/vi/packages/next-intlayer/useLocale.md +166 -0
- package/docs/vi/packages/react-intlayer/t.md +304 -0
- package/docs/vi/packages/react-intlayer/useDictionary.md +288 -0
- package/docs/vi/packages/react-intlayer/useI18n.md +295 -0
- package/docs/vi/packages/react-intlayer/useIntlayer.md +256 -0
- package/docs/vi/packages/react-intlayer/useLocale.md +210 -0
- package/docs/vi/per_locale_file.md +326 -0
- package/docs/vi/readme.md +261 -0
- package/docs/vi/releases/v6.md +305 -0
- package/docs/vi/roadmap.md +346 -0
- package/docs/vi/testing.md +202 -0
- package/docs/vi/vs_code_extension.md +126 -0
- package/docs/zh/configuration.md +6 -0
- package/docs/zh/intlayer_cli.md +8 -3
- package/docs/zh/intlayer_with_next-i18next.md +628 -0
- package/docs/zh/intlayer_with_next-intl.md +448 -0
- package/docs/zh/intlayer_with_nextjs_16.md +21 -0
- package/docs/zh/intlayer_with_tanstack.md +4 -0
- package/docs/zh/intlayer_with_vite+react.md +4 -0
- package/frequent_questions/ar/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/ar/array_as_content_declaration.md +1 -2
- package/frequent_questions/ar/build_dictionaries.md +1 -2
- package/frequent_questions/ar/build_error_CI_CD.md +1 -2
- package/frequent_questions/ar/bun_set_up.md +1 -2
- package/frequent_questions/ar/customized_locale_list.md +1 -2
- package/frequent_questions/ar/domain_routing.md +1 -2
- package/frequent_questions/ar/esbuild_error.md +1 -2
- package/frequent_questions/ar/get_locale_cookie.md +1 -2
- package/frequent_questions/ar/intlayer_command_undefined.md +1 -2
- package/frequent_questions/ar/locale_incorect_in_url.md +1 -2
- package/frequent_questions/ar/static_rendering.md +1 -3
- package/frequent_questions/ar/translated_path_url.md +1 -2
- package/frequent_questions/ar/unknown_command.md +1 -2
- package/frequent_questions/de/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/de/array_as_content_declaration.md +1 -2
- package/frequent_questions/de/build_dictionaries.md +1 -2
- package/frequent_questions/de/build_error_CI_CD.md +1 -2
- package/frequent_questions/de/bun_set_up.md +1 -2
- package/frequent_questions/de/customized_locale_list.md +1 -2
- package/frequent_questions/de/domain_routing.md +1 -2
- package/frequent_questions/de/esbuild_error.md +1 -2
- package/frequent_questions/de/get_locale_cookie.md +1 -2
- package/frequent_questions/de/intlayer_command_undefined.md +1 -2
- package/frequent_questions/de/locale_incorect_in_url.md +1 -2
- package/frequent_questions/de/static_rendering.md +1 -3
- package/frequent_questions/de/translated_path_url.md +1 -2
- package/frequent_questions/de/unknown_command.md +1 -2
- package/frequent_questions/en/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/en/array_as_content_declaration.md +1 -2
- package/frequent_questions/en/build_dictionaries.md +1 -2
- package/frequent_questions/en/build_error_CI_CD.md +1 -2
- package/frequent_questions/en/bun_set_up.md +1 -2
- package/frequent_questions/en/customized_locale_list.md +1 -2
- package/frequent_questions/en/domain_routing.md +1 -2
- package/frequent_questions/en/esbuild_error.md +1 -2
- package/frequent_questions/en/get_locale_cookie.md +1 -2
- package/frequent_questions/en/intlayer_command_undefined.md +1 -2
- package/frequent_questions/en/locale_incorect_in_url.md +1 -2
- package/frequent_questions/en/static_rendering.md +1 -3
- package/frequent_questions/en/translated_path_url.md +1 -2
- package/frequent_questions/en/unknown_command.md +1 -2
- package/frequent_questions/en-GB/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/en-GB/array_as_content_declaration.md +1 -2
- package/frequent_questions/en-GB/build_dictionaries.md +1 -2
- package/frequent_questions/en-GB/build_error_CI_CD.md +1 -2
- package/frequent_questions/en-GB/bun_set_up.md +1 -2
- package/frequent_questions/en-GB/customized_locale_list.md +1 -2
- package/frequent_questions/en-GB/domain_routing.md +1 -2
- package/frequent_questions/en-GB/esbuild_error.md +1 -2
- package/frequent_questions/en-GB/get_locale_cookie.md +1 -2
- package/frequent_questions/en-GB/intlayer_command_undefined.md +1 -2
- package/frequent_questions/en-GB/locale_incorect_in_url.md +1 -2
- package/frequent_questions/en-GB/static_rendering.md +1 -3
- package/frequent_questions/en-GB/translated_path_url.md +1 -2
- package/frequent_questions/en-GB/unknown_command.md +1 -2
- package/frequent_questions/es/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/es/array_as_content_declaration.md +1 -2
- package/frequent_questions/es/build_dictionaries.md +1 -2
- package/frequent_questions/es/build_error_CI_CD.md +1 -2
- package/frequent_questions/es/bun_set_up.md +1 -2
- package/frequent_questions/es/customized_locale_list.md +1 -2
- package/frequent_questions/es/domain_routing.md +1 -2
- package/frequent_questions/es/esbuild_error.md +1 -2
- package/frequent_questions/es/get_locale_cookie.md +1 -2
- package/frequent_questions/es/intlayer_command_undefined.md +1 -2
- package/frequent_questions/es/locale_incorect_in_url.md +1 -2
- package/frequent_questions/es/static_rendering.md +1 -3
- package/frequent_questions/es/translated_path_url.md +1 -2
- package/frequent_questions/es/unknown_command.md +1 -2
- package/frequent_questions/fr/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/fr/array_as_content_declaration.md +1 -2
- package/frequent_questions/fr/build_dictionaries.md +1 -2
- package/frequent_questions/fr/build_error_CI_CD.md +1 -2
- package/frequent_questions/fr/bun_set_up.md +1 -2
- package/frequent_questions/fr/customized_locale_list.md +1 -2
- package/frequent_questions/fr/domain_routing.md +1 -2
- package/frequent_questions/fr/esbuild_error.md +1 -2
- package/frequent_questions/fr/get_locale_cookie.md +1 -2
- package/frequent_questions/fr/intlayer_command_undefined.md +1 -2
- package/frequent_questions/fr/locale_incorect_in_url.md +1 -2
- package/frequent_questions/fr/static_rendering.md +1 -3
- package/frequent_questions/fr/translated_path_url.md +1 -2
- package/frequent_questions/fr/unknown_command.md +1 -2
- package/frequent_questions/hi/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/hi/array_as_content_declaration.md +1 -2
- package/frequent_questions/hi/build_dictionaries.md +1 -2
- package/frequent_questions/hi/build_error_CI_CD.md +1 -2
- package/frequent_questions/hi/bun_set_up.md +1 -2
- package/frequent_questions/hi/customized_locale_list.md +1 -2
- package/frequent_questions/hi/domain_routing.md +1 -2
- package/frequent_questions/hi/esbuild_error.md +1 -2
- package/frequent_questions/hi/get_locale_cookie.md +1 -2
- package/frequent_questions/hi/intlayer_command_undefined.md +1 -2
- package/frequent_questions/hi/locale_incorect_in_url.md +1 -2
- package/frequent_questions/hi/static_rendering.md +1 -3
- package/frequent_questions/hi/translated_path_url.md +1 -2
- package/frequent_questions/hi/unknown_command.md +1 -2
- package/frequent_questions/id/SSR_Next_no_[locale].md +104 -0
- package/frequent_questions/id/array_as_content_declaration.md +71 -0
- package/frequent_questions/id/build_dictionaries.md +58 -0
- package/frequent_questions/id/build_error_CI_CD.md +74 -0
- package/frequent_questions/id/bun_set_up.md +53 -0
- package/frequent_questions/id/customized_locale_list.md +64 -0
- package/frequent_questions/id/domain_routing.md +113 -0
- package/frequent_questions/id/esbuild_error.md +29 -0
- package/frequent_questions/id/get_locale_cookie.md +142 -0
- package/frequent_questions/id/intlayer_command_undefined.md +155 -0
- package/frequent_questions/id/locale_incorect_in_url.md +73 -0
- package/frequent_questions/id/static_rendering.md +44 -0
- package/frequent_questions/id/translated_path_url.md +55 -0
- package/frequent_questions/id/unknown_command.md +97 -0
- package/frequent_questions/it/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/it/array_as_content_declaration.md +1 -2
- package/frequent_questions/it/build_dictionaries.md +1 -2
- package/frequent_questions/it/build_error_CI_CD.md +1 -2
- package/frequent_questions/it/bun_set_up.md +1 -2
- package/frequent_questions/it/customized_locale_list.md +1 -2
- package/frequent_questions/it/domain_routing.md +1 -2
- package/frequent_questions/it/esbuild_error.md +1 -2
- package/frequent_questions/it/get_locale_cookie.md +1 -2
- package/frequent_questions/it/intlayer_command_undefined.md +1 -2
- package/frequent_questions/it/locale_incorect_in_url.md +1 -2
- package/frequent_questions/it/static_rendering.md +1 -3
- package/frequent_questions/it/translated_path_url.md +1 -2
- package/frequent_questions/it/unknown_command.md +1 -2
- package/frequent_questions/ja/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/ja/array_as_content_declaration.md +1 -2
- package/frequent_questions/ja/build_dictionaries.md +1 -2
- package/frequent_questions/ja/build_error_CI_CD.md +1 -2
- package/frequent_questions/ja/bun_set_up.md +1 -2
- package/frequent_questions/ja/customized_locale_list.md +1 -2
- package/frequent_questions/ja/domain_routing.md +1 -2
- package/frequent_questions/ja/esbuild_error.md +1 -2
- package/frequent_questions/ja/get_locale_cookie.md +1 -2
- package/frequent_questions/ja/intlayer_command_undefined.md +1 -2
- package/frequent_questions/ja/locale_incorect_in_url.md +1 -2
- package/frequent_questions/ja/static_rendering.md +1 -3
- package/frequent_questions/ja/translated_path_url.md +1 -2
- package/frequent_questions/ja/unknown_command.md +1 -2
- package/frequent_questions/ko/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/ko/array_as_content_declaration.md +1 -2
- package/frequent_questions/ko/build_dictionaries.md +1 -2
- package/frequent_questions/ko/build_error_CI_CD.md +1 -2
- package/frequent_questions/ko/bun_set_up.md +1 -2
- package/frequent_questions/ko/customized_locale_list.md +1 -2
- package/frequent_questions/ko/domain_routing.md +1 -2
- package/frequent_questions/ko/esbuild_error.md +1 -2
- package/frequent_questions/ko/get_locale_cookie.md +1 -2
- package/frequent_questions/ko/intlayer_command_undefined.md +1 -2
- package/frequent_questions/ko/locale_incorect_in_url.md +1 -2
- package/frequent_questions/ko/static_rendering.md +1 -3
- package/frequent_questions/ko/translated_path_url.md +1 -2
- package/frequent_questions/ko/unknown_command.md +1 -2
- package/frequent_questions/pl/SSR_Next_no_[locale].md +104 -0
- package/frequent_questions/pl/array_as_content_declaration.md +71 -0
- package/frequent_questions/pl/build_dictionaries.md +58 -0
- package/frequent_questions/pl/build_error_CI_CD.md +74 -0
- package/frequent_questions/pl/bun_set_up.md +54 -0
- package/frequent_questions/pl/customized_locale_list.md +64 -0
- package/frequent_questions/pl/domain_routing.md +113 -0
- package/frequent_questions/pl/esbuild_error.md +29 -0
- package/frequent_questions/pl/get_locale_cookie.md +142 -0
- package/frequent_questions/pl/intlayer_command_undefined.md +155 -0
- package/frequent_questions/pl/locale_incorect_in_url.md +73 -0
- package/frequent_questions/pl/static_rendering.md +44 -0
- package/frequent_questions/pl/translated_path_url.md +55 -0
- package/frequent_questions/pl/unknown_command.md +97 -0
- package/frequent_questions/pt/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/pt/array_as_content_declaration.md +1 -2
- package/frequent_questions/pt/build_dictionaries.md +1 -2
- package/frequent_questions/pt/build_error_CI_CD.md +1 -2
- package/frequent_questions/pt/bun_set_up.md +1 -2
- package/frequent_questions/pt/customized_locale_list.md +1 -2
- package/frequent_questions/pt/domain_routing.md +1 -2
- package/frequent_questions/pt/esbuild_error.md +1 -2
- package/frequent_questions/pt/get_locale_cookie.md +1 -2
- package/frequent_questions/pt/intlayer_command_undefined.md +1 -2
- package/frequent_questions/pt/locale_incorect_in_url.md +1 -2
- package/frequent_questions/pt/static_rendering.md +1 -3
- package/frequent_questions/pt/translated_path_url.md +1 -2
- package/frequent_questions/pt/unknown_command.md +1 -2
- package/frequent_questions/ru/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/ru/array_as_content_declaration.md +1 -2
- package/frequent_questions/ru/build_dictionaries.md +1 -2
- package/frequent_questions/ru/build_error_CI_CD.md +1 -2
- package/frequent_questions/ru/bun_set_up.md +1 -2
- package/frequent_questions/ru/customized_locale_list.md +1 -2
- package/frequent_questions/ru/domain_routing.md +1 -2
- package/frequent_questions/ru/esbuild_error.md +1 -2
- package/frequent_questions/ru/get_locale_cookie.md +1 -2
- package/frequent_questions/ru/intlayer_command_undefined.md +1 -2
- package/frequent_questions/ru/locale_incorect_in_url.md +1 -2
- package/frequent_questions/ru/static_rendering.md +1 -2
- package/frequent_questions/ru/translated_path_url.md +1 -2
- package/frequent_questions/ru/unknown_command.md +1 -2
- package/frequent_questions/tr/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/tr/array_as_content_declaration.md +1 -2
- package/frequent_questions/tr/build_dictionaries.md +1 -2
- package/frequent_questions/tr/build_error_CI_CD.md +1 -2
- package/frequent_questions/tr/bun_set_up.md +1 -2
- package/frequent_questions/tr/customized_locale_list.md +1 -2
- package/frequent_questions/tr/domain_routing.md +1 -2
- package/frequent_questions/tr/esbuild_error.md +1 -2
- package/frequent_questions/tr/get_locale_cookie.md +1 -2
- package/frequent_questions/tr/intlayer_command_undefined.md +1 -2
- package/frequent_questions/tr/locale_incorect_in_url.md +1 -2
- package/frequent_questions/tr/static_rendering.md +1 -2
- package/frequent_questions/tr/translated_path_url.md +1 -2
- package/frequent_questions/tr/unknown_command.md +1 -2
- package/frequent_questions/vi/SSR_Next_no_[locale].md +106 -0
- package/frequent_questions/vi/array_as_content_declaration.md +71 -0
- package/frequent_questions/vi/build_dictionaries.md +58 -0
- package/frequent_questions/vi/build_error_CI_CD.md +74 -0
- package/frequent_questions/vi/bun_set_up.md +53 -0
- package/frequent_questions/vi/customized_locale_list.md +64 -0
- package/frequent_questions/vi/domain_routing.md +113 -0
- package/frequent_questions/vi/esbuild_error.md +29 -0
- package/frequent_questions/vi/get_locale_cookie.md +142 -0
- package/frequent_questions/vi/intlayer_command_undefined.md +155 -0
- package/frequent_questions/vi/locale_incorect_in_url.md +73 -0
- package/frequent_questions/vi/static_rendering.md +44 -0
- package/frequent_questions/vi/translated_path_url.md +55 -0
- package/frequent_questions/vi/unknown_command.md +97 -0
- package/frequent_questions/zh/SSR_Next_no_[locale].md +1 -2
- package/frequent_questions/zh/array_as_content_declaration.md +1 -2
- package/frequent_questions/zh/build_dictionaries.md +1 -2
- package/frequent_questions/zh/build_error_CI_CD.md +1 -2
- package/frequent_questions/zh/bun_set_up.md +1 -2
- package/frequent_questions/zh/customized_locale_list.md +1 -2
- package/frequent_questions/zh/domain_routing.md +1 -2
- package/frequent_questions/zh/esbuild_error.md +1 -2
- package/frequent_questions/zh/get_locale_cookie.md +1 -2
- package/frequent_questions/zh/intlayer_command_undefined.md +1 -2
- package/frequent_questions/zh/locale_incorect_in_url.md +1 -2
- package/frequent_questions/zh/static_rendering.md +1 -3
- package/frequent_questions/zh/translated_path_url.md +1 -2
- package/frequent_questions/zh/unknown_command.md +1 -2
- package/legal/id/privacy_notice.md +83 -0
- package/legal/id/terms_of_service.md +55 -0
- package/legal/pl/privacy_notice.md +83 -0
- package/legal/pl/terms_of_service.md +55 -0
- package/legal/vi/privacy_notice.md +83 -0
- package/legal/vi/terms_of_service.md +55 -0
- package/package.json +19 -18
- package/src/generated/blog.entry.ts +38 -0
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2024-08-13
|
|
3
|
+
updatedAt: 2025-10-25
|
|
4
|
+
title: Konfiguracja
|
|
5
|
+
description: Dowiedz się, jak skonfigurować Intlayer dla swojej aplikacji. Zrozum różne ustawienia i opcje dostępne do dostosowania Intlayer do Twoich potrzeb.
|
|
6
|
+
keywords:
|
|
7
|
+
- Konfiguracja
|
|
8
|
+
- Ustawienia
|
|
9
|
+
- Personalizacja
|
|
10
|
+
- Intlayer
|
|
11
|
+
- Opcje
|
|
12
|
+
slugs:
|
|
13
|
+
- doc
|
|
14
|
+
- concept
|
|
15
|
+
- configuration
|
|
16
|
+
history:
|
|
17
|
+
- version: 7.0.0
|
|
18
|
+
date: 2025-10-25
|
|
19
|
+
changes: Dodano konfigurację `dictionary`
|
|
20
|
+
- version: 7.0.0
|
|
21
|
+
date: 2025-10-21
|
|
22
|
+
changes: Zastąpiono konfigurację `middleware` konfiguracją `routing`
|
|
23
|
+
- version: 7.0.0
|
|
24
|
+
date: 2025-10-12
|
|
25
|
+
changes: Dodano opcję `formatCommand`
|
|
26
|
+
- version: 6.2.0
|
|
27
|
+
date: 2025-10-12
|
|
28
|
+
changes: Zaktualizowano opcję `excludedPath`
|
|
29
|
+
- version: 6.0.2
|
|
30
|
+
date: 2025-09-23
|
|
31
|
+
changes: Dodano opcję `outputFormat`
|
|
32
|
+
- version: 6.0.0
|
|
33
|
+
date: 2025-09-21
|
|
34
|
+
changes: Usunięto pole `dictionaryOutput` oraz pole `i18nextResourcesDir`
|
|
35
|
+
- version: 6.0.0
|
|
36
|
+
date: 2025-09-16
|
|
37
|
+
changes: Dodano tryb importu `live`
|
|
38
|
+
- version: 6.0.0
|
|
39
|
+
date: 2025-09-04
|
|
40
|
+
changes: Zastąpiono pole `hotReload` polem `liveSync` oraz dodano pola `liveSyncPort` i `liveSyncURL`
|
|
41
|
+
- version: 5.6.1
|
|
42
|
+
date: 2025-07-25
|
|
43
|
+
changes: Zastąpiono `activateDynamicImport` opcją `importMode`
|
|
44
|
+
- version: 5.6.0
|
|
45
|
+
date: 2025-07-13
|
|
46
|
+
changes: Zmieniono domyślny contentDir z `['src']` na `['.']`
|
|
47
|
+
- version: 5.5.11
|
|
48
|
+
date: 2025-06-29
|
|
49
|
+
changes: Dodano komendy `docs`
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
# Dokumentacja konfiguracji Intlayer
|
|
53
|
+
|
|
54
|
+
## Przegląd
|
|
55
|
+
|
|
56
|
+
Pliki konfiguracyjne Intlayer umożliwiają dostosowanie różnych aspektów wtyczki, takich jak internacjonalizacja, middleware oraz obsługa treści. Ten dokument zawiera szczegółowy opis każdej właściwości w konfiguracji.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Spis treści
|
|
61
|
+
|
|
62
|
+
<TOC/>
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Obsługiwane formaty plików konfiguracyjnych
|
|
67
|
+
|
|
68
|
+
Intlayer obsługuje formaty plików konfiguracyjnych JSON, JS, MJS oraz TS:
|
|
69
|
+
|
|
70
|
+
- `intlayer.config.ts`
|
|
71
|
+
- `intlayer.config.js`
|
|
72
|
+
- `intlayer.config.json`
|
|
73
|
+
- `intlayer.config.cjs`
|
|
74
|
+
- `intlayer.config.mjs`
|
|
75
|
+
- `.intlayerrc`
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Przykładowy plik konfiguracyjny
|
|
80
|
+
|
|
81
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
82
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
83
|
+
|
|
84
|
+
const config: IntlayerConfig = {
|
|
85
|
+
internationalization: {
|
|
86
|
+
locales: [Locales.ENGLISH],
|
|
87
|
+
},
|
|
88
|
+
content: {
|
|
89
|
+
contentDir: ["src", "../ui-library"],
|
|
90
|
+
},
|
|
91
|
+
dictionary: {
|
|
92
|
+
fill: "./{{fileName}}.content.json",
|
|
93
|
+
},
|
|
94
|
+
routing: {
|
|
95
|
+
mode: "prefix-no-default",
|
|
96
|
+
storage: "cookie",
|
|
97
|
+
},
|
|
98
|
+
editor: {
|
|
99
|
+
applicationURL: "https://example.com",
|
|
100
|
+
},
|
|
101
|
+
ai: {
|
|
102
|
+
apiKey: process.env.OPENAI_API_KEY,
|
|
103
|
+
applicationContext: "To jest aplikacja testowa",
|
|
104
|
+
},
|
|
105
|
+
build: {
|
|
106
|
+
importMode: "dynamic",
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export default config;
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
114
|
+
const { Locales } = require("intlayer");
|
|
115
|
+
|
|
116
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
117
|
+
const config = {
|
|
118
|
+
internationalization: {
|
|
119
|
+
locales: [Locales.ENGLISH],
|
|
120
|
+
},
|
|
121
|
+
content: {
|
|
122
|
+
contentDir: ["src", "../ui-library"],
|
|
123
|
+
},
|
|
124
|
+
routing: {
|
|
125
|
+
mode: "prefix-no-default",
|
|
126
|
+
storage: "cookie",
|
|
127
|
+
},
|
|
128
|
+
editor: {
|
|
129
|
+
applicationURL: "https://example.com",
|
|
130
|
+
},
|
|
131
|
+
ai: {
|
|
132
|
+
apiKey: process.env.OPENAI_API_KEY,
|
|
133
|
+
applicationContext: "To jest aplikacja testowa",
|
|
134
|
+
},
|
|
135
|
+
build: {
|
|
136
|
+
importMode: "dynamic",
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
module.exports = config;
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
```json5 fileName=".intlayerrc" codeFormat="json"
|
|
144
|
+
{
|
|
145
|
+
"internationalization": {
|
|
146
|
+
"locales": ["en"],
|
|
147
|
+
},
|
|
148
|
+
"content": {
|
|
149
|
+
"contentDir": ["src", "../ui-library"],
|
|
150
|
+
},
|
|
151
|
+
"dictionary": {
|
|
152
|
+
"fill": "./{{fileName}}.content.json",
|
|
153
|
+
},
|
|
154
|
+
"routing": {
|
|
155
|
+
"mode": "prefix-no-default",
|
|
156
|
+
"storage": "cookie",
|
|
157
|
+
},
|
|
158
|
+
"editor": {
|
|
159
|
+
"applicationURL": "https://example.com",
|
|
160
|
+
},
|
|
161
|
+
"ai": {
|
|
162
|
+
"apiKey": "XXXX",
|
|
163
|
+
"applicationContext": "To jest aplikacja testowa",
|
|
164
|
+
},
|
|
165
|
+
"build": {
|
|
166
|
+
"importMode": "dynamic",
|
|
167
|
+
},
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Odniesienie do konfiguracji
|
|
174
|
+
|
|
175
|
+
Poniższe sekcje opisują różne ustawienia konfiguracyjne dostępne dla Intlayer.
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
### Konfiguracja internacjonalizacji
|
|
180
|
+
|
|
181
|
+
Definiuje ustawienia związane z internacjonalizacją, w tym dostępne lokalizacje oraz domyślną lokalizację dla aplikacji.
|
|
182
|
+
|
|
183
|
+
#### Właściwości
|
|
184
|
+
|
|
185
|
+
- **locales**:
|
|
186
|
+
- _Typ_: `string[]`
|
|
187
|
+
- _Domyślnie_: `['en']`
|
|
188
|
+
- _Opis_: Lista obsługiwanych lokalizacji w aplikacji.
|
|
189
|
+
- _Przykład_: `['en', 'fr', 'es']`
|
|
190
|
+
|
|
191
|
+
- **requiredLocales**:
|
|
192
|
+
- _Typ_: `string[]`
|
|
193
|
+
- _Domyślnie_: `[]`
|
|
194
|
+
- _Opis_: Lista wymaganych lokalizacji w aplikacji.
|
|
195
|
+
- _Przykład_: `[]`
|
|
196
|
+
- _Uwaga_: Jeśli pusta, wszystkie lokalizacje są wymagane w trybie `strict`.
|
|
197
|
+
- _Uwaga_: Upewnij się, że wymagane lokalizacje są również zdefiniowane w polu `locales`.
|
|
198
|
+
- **strictMode**:
|
|
199
|
+
- _Typ_: `string`
|
|
200
|
+
- _Domyślnie_: `inclusive`
|
|
201
|
+
- _Opis_: Zapewnia silną implementację zinternacjonalizowanej zawartości przy użyciu TypeScript.
|
|
202
|
+
- _Uwaga_: Jeśli ustawione na "strict", funkcja tłumaczenia `t` będzie wymagać zdefiniowania każdej zadeklarowanej lokalizacji. Jeśli jakaś lokalizacja będzie brakować lub nie będzie zadeklarowana w konfiguracji, zostanie zgłoszony błąd.
|
|
203
|
+
- _Uwaga_: Jeśli ustawione na "inclusive", funkcja tłumaczenia `t` będzie wymagać zdefiniowania każdej zadeklarowanej lokalizacji. Jeśli jakaś lokalizacja będzie brakować, zostanie wyświetlone ostrzeżenie. Jednak zaakceptuje lokalizację, która nie jest zadeklarowana w konfiguracji, ale istnieje.
|
|
204
|
+
- _Uwaga_: Jeśli ustawione na "loose", funkcja tłumaczenia `t` zaakceptuje dowolną istniejącą lokalizację.
|
|
205
|
+
|
|
206
|
+
- **defaultLocale**:
|
|
207
|
+
- _Typ_: `string`
|
|
208
|
+
- _Domyślnie_: `'en'`
|
|
209
|
+
- _Opis_: Domyślna lokalizacja używana jako zapasowa, jeśli żądana lokalizacja nie zostanie znaleziona.
|
|
210
|
+
- _Przykład_: `'en'`
|
|
211
|
+
- _Uwaga_: Używane do określenia lokalizacji, gdy żadna nie jest podana w URL, ciasteczku lub nagłówku.
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
### Konfiguracja edytora
|
|
216
|
+
|
|
217
|
+
Definiuje ustawienia związane z zintegrowanym edytorem, w tym port serwera i status aktywności.
|
|
218
|
+
|
|
219
|
+
#### Właściwości
|
|
220
|
+
|
|
221
|
+
- **applicationURL**:
|
|
222
|
+
- _Typ_: `string`
|
|
223
|
+
- _Domyślnie_: `http://localhost:3000`
|
|
224
|
+
- _Opis_: URL aplikacji. Używany do ograniczenia pochodzenia edytora ze względów bezpieczeństwa.
|
|
225
|
+
- _Przykład_:
|
|
226
|
+
- `'http://localhost:3000'`
|
|
227
|
+
- `'https://example.com'`
|
|
228
|
+
- `process.env.INTLAYER_EDITOR_URL`
|
|
229
|
+
- _Uwaga_: URL aplikacji. Używany do ograniczenia pochodzenia edytora ze względów bezpieczeństwa. Jeśli ustawiony na `'*'`, edytor jest dostępny z dowolnego pochodzenia.
|
|
230
|
+
|
|
231
|
+
- **port**:
|
|
232
|
+
- _Typ_: `number`
|
|
233
|
+
- _Domyślnie_: `8000`
|
|
234
|
+
- _Opis_: Port używany przez serwer wizualnego edytora.
|
|
235
|
+
|
|
236
|
+
- **editorURL**:
|
|
237
|
+
- _Typ_: `string`
|
|
238
|
+
- _Domyślnie_: `'http://localhost:8000'`
|
|
239
|
+
- _Opis_: URL serwera edytora. Używany do ograniczenia pochodzenia edytora ze względów bezpieczeństwa.
|
|
240
|
+
- `'http://localhost:3000'`
|
|
241
|
+
- `'https://example.com'`
|
|
242
|
+
- `process.env.INTLAYER_EDITOR_URL`
|
|
243
|
+
- _Uwaga_: URL serwera edytora, do którego aplikacja się łączy. Używany do ograniczenia pochodzenia, które może wchodzić w interakcję z aplikacją ze względów bezpieczeństwa. Jeśli ustawiony na `'*'`, edytor jest dostępny z dowolnego pochodzenia. Powinien być ustawiony, jeśli zmieniono port lub jeśli edytor jest hostowany na innej domenie.
|
|
244
|
+
|
|
245
|
+
- **cmsURL**:
|
|
246
|
+
- _Typ_: `string`
|
|
247
|
+
- _Domyślnie_: `'https://intlayer.org'`
|
|
248
|
+
- _Opis_: URL systemu CMS Intlayer.
|
|
249
|
+
- _Przykład_: `'https://intlayer.org'`
|
|
250
|
+
- _Uwaga_: URL systemu CMS Intlayer.
|
|
251
|
+
|
|
252
|
+
- **backendURL**:
|
|
253
|
+
- _Typ_: `string`
|
|
254
|
+
- _Domyślnie_: `https://back.intlayer.org`
|
|
255
|
+
- _Opis_: URL serwera backendowego.
|
|
256
|
+
- _Przykład_: `http://localhost:4000`
|
|
257
|
+
|
|
258
|
+
- **enabled**:
|
|
259
|
+
- _Typ_: `boolean`
|
|
260
|
+
- _Domyślnie_: `true`
|
|
261
|
+
- _Opis_: Wskazuje, czy aplikacja wchodzi w interakcję z edytorem wizualnym.
|
|
262
|
+
- _Przykład_: `process.env.NODE_ENV !== 'production'`
|
|
263
|
+
- _Uwaga_: Jeśli wartość jest prawdziwa, edytor będzie mógł wchodzić w interakcję z aplikacją. Jeśli fałszywa, edytor nie będzie mógł wchodzić w interakcję z aplikacją. W każdym przypadku edytor może być włączony tylko przez edytor wizualny. Wyłączanie edytora dla określonych środowisk jest sposobem na zwiększenie bezpieczeństwa.
|
|
264
|
+
|
|
265
|
+
- **clientId**:
|
|
266
|
+
- _Typ_: `string` | `undefined`
|
|
267
|
+
- _Domyślnie_: `undefined`
|
|
268
|
+
- _Opis_: clientId i clientSecret pozwalają pakietom intlayer na uwierzytelnianie się z backendem za pomocą uwierzytelniania oAuth2. Token dostępu jest używany do uwierzytelniania użytkownika związanego z projektem. Aby uzyskać token dostępu, przejdź do https://intlayer.org/dashboard/project i załóż konto.
|
|
269
|
+
- _Przykład_: `true`
|
|
270
|
+
- _Uwaga_: Ważne: clientId i clientSecret powinny być przechowywane w tajemnicy i nie udostępniane publicznie. Upewnij się, że są przechowywane w bezpiecznym miejscu, na przykład w zmiennych środowiskowych.
|
|
271
|
+
|
|
272
|
+
- **clientSecret**:
|
|
273
|
+
- _Typ_: `string` | `undefined`
|
|
274
|
+
- _Domyślnie_: `undefined`
|
|
275
|
+
- _Opis_: clientId i clientSecret pozwalają pakietom intlayer na uwierzytelnianie się z backendem za pomocą uwierzytelniania oAuth2. Token dostępu jest używany do uwierzytelniania użytkownika związanego z projektem. Aby uzyskać token dostępu, przejdź do https://intlayer.org/dashboard/project i załóż konto.
|
|
276
|
+
- _Przykład_: `true`
|
|
277
|
+
- _Uwaga_: Ważne: clientId i clientSecret powinny być przechowywane w tajemnicy i nie udostępniane publicznie. Upewnij się, że są przechowywane w bezpiecznym miejscu, na przykład w zmiennych środowiskowych.
|
|
278
|
+
|
|
279
|
+
- **dictionaryPriorityStrategy**:
|
|
280
|
+
- _Typ_: `string`
|
|
281
|
+
- _Domyślnie_: `'local_first'`
|
|
282
|
+
- _Opis_: Strategia priorytetyzacji słowników w przypadku obecności zarówno lokalnych, jak i zdalnych słowników. Jeśli ustawiona na `'distant_first'`, aplikacja będzie priorytetowo traktować słowniki zdalne nad lokalnymi. Jeśli ustawiona na `'local_first'`, aplikacja będzie priorytetowo traktować słowniki lokalne nad zdalnymi.
|
|
283
|
+
- _Przykład_: `'distant_first'`
|
|
284
|
+
|
|
285
|
+
- **liveSync**:
|
|
286
|
+
- _Typ_: `boolean`
|
|
287
|
+
- _Domyślnie_: `false`
|
|
288
|
+
- _Opis_: Wskazuje, czy serwer aplikacji powinien automatycznie przeładowywać zawartość aplikacji po wykryciu zmiany w CMS / Visual Editor / Backend.
|
|
289
|
+
- _Przykład_: `true`
|
|
290
|
+
- _Uwaga_: Na przykład, gdy zostanie dodany lub zaktualizowany nowy słownik, aplikacja zaktualizuje zawartość wyświetlaną na stronie.
|
|
291
|
+
- _Uwaga_: Live sync wymaga zewnętrznego udostępnienia zawartości aplikacji na innym serwerze. Oznacza to, że może to nieznacznie wpłynąć na wydajność aplikacji. Aby to ograniczyć, zalecamy hostowanie aplikacji i serwera live sync na tej samej maszynie. Ponadto, połączenie live sync i `optimize` może generować znaczną liczbę zapytań do serwera live sync. W zależności od infrastruktury, zalecamy przetestowanie obu opcji oraz ich kombinacji.
|
|
292
|
+
|
|
293
|
+
- **liveSyncPort**:
|
|
294
|
+
- _Typ_: `number`
|
|
295
|
+
- _Domyślnie_: `4000`
|
|
296
|
+
- _Opis_: Port serwera live sync.
|
|
297
|
+
- _Przykład_: `4000`
|
|
298
|
+
- _Uwaga_: Port serwera live sync.
|
|
299
|
+
|
|
300
|
+
- **liveSyncURL**:
|
|
301
|
+
- _Typ_: `string`
|
|
302
|
+
- _Domyślnie_: `'http://localhost:{liveSyncPort}'`
|
|
303
|
+
- _Opis_: URL serwera live sync.
|
|
304
|
+
- _Przykład_: `'https://example.com'`
|
|
305
|
+
- _Uwaga_: Domyślnie wskazuje na localhost, ale może zostać zmieniony na dowolny URL w przypadku zdalnego serwera live sync.
|
|
306
|
+
|
|
307
|
+
### Konfiguracja routingu
|
|
308
|
+
|
|
309
|
+
Ustawienia kontrolujące zachowanie routingu, w tym strukturę URL, przechowywanie lokalizacji oraz obsługę middleware.
|
|
310
|
+
|
|
311
|
+
#### Właściwości
|
|
312
|
+
|
|
313
|
+
- **mode**:
|
|
314
|
+
- _Typ_: `'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params'`
|
|
315
|
+
- _Domyślnie_: `'prefix-no-default'`
|
|
316
|
+
- _Opis_: Tryb routingu URL dla obsługi lokalizacji.
|
|
317
|
+
- _Przykłady_:
|
|
318
|
+
- `'prefix-no-default'`: `/dashboard` (en) lub `/fr/dashboard` (fr)
|
|
319
|
+
- `'prefix-all'`: `/en/dashboard` (en) lub `/fr/dashboard` (fr)
|
|
320
|
+
- `'no-prefix'`: `/dashboard` (lokalizacja obsługiwana innymi metodami)
|
|
321
|
+
- `'search-params'`: `/dashboard?locale=fr`
|
|
322
|
+
- _Uwaga_: To ustawienie nie wpływa na zarządzanie ciasteczkami ani przechowywaniem lokalizacji.
|
|
323
|
+
|
|
324
|
+
- **storage**:
|
|
325
|
+
- _Typ_: `false | 'cookie' | 'localStorage' | 'sessionStorage' | 'header' | CookiesAttributes | StorageAttributes | Array`
|
|
326
|
+
- _Domyślnie_: `'localStorage'`
|
|
327
|
+
- _Opis_: Konfiguracja przechowywania lokalizacji po stronie klienta.
|
|
328
|
+
|
|
329
|
+
- **cookie**:
|
|
330
|
+
- _Opis_: Przechowuje dane w ciasteczkach, małych fragmentach danych zapisywanych w przeglądarce klienta, dostępnych zarówno po stronie klienta, jak i serwera.
|
|
331
|
+
- _Uwaga_: Aby przechowywanie było zgodne z RODO, należy zapewnić odpowiednią zgodę użytkownika przed użyciem.
|
|
332
|
+
- _Uwaga_: Parametry ciasteczek są konfigurowalne, jeśli ustawione jako CookiesAttributes (`{ type: 'cookie', name: 'custom-locale', secure: true, httpOnly: false }`).
|
|
333
|
+
|
|
334
|
+
- **localStorage**:
|
|
335
|
+
- _Opis_: Przechowuje dane w przeglądarce bez dat wygaśnięcia, co pozwala na utrzymanie danych pomiędzy sesjami, dostępne tylko po stronie klienta.
|
|
336
|
+
- _Uwaga_: Idealne do przechowywania danych długoterminowych, ale należy pamiętać o kwestiach prywatności i bezpieczeństwa ze względu na brak automatycznego wygasania, chyba że dane zostaną wyraźnie usunięte.
|
|
337
|
+
- _Uwaga_: Przechowywanie lokalizacji jest dostępne tylko po stronie klienta, proxy intlayer nie będzie miało do niego dostępu.
|
|
338
|
+
- _Uwaga_: Parametry przechowywania lokalizacji są konfigurowalne, jeśli ustawione jako StorageAttributes (`{ type: 'localStorage', name: 'custom-locale' }`).
|
|
339
|
+
|
|
340
|
+
- **sessionStorage**:
|
|
341
|
+
- _Opis_: Przechowuje dane przez czas trwania sesji strony, co oznacza, że dane są usuwane po zamknięciu zakładki lub okna, dostępne tylko po stronie klienta.
|
|
342
|
+
- _Uwaga_: Odpowiednie do tymczasowego przechowywania danych dla każdej sesji.
|
|
343
|
+
- _Uwaga_: Przechowywanie lokalne jest dostępne tylko po stronie klienta, proxy intlayer nie będzie miało do niego dostępu.
|
|
344
|
+
- _Uwaga_: Parametry przechowywania lokalnego są konfigurowalne, jeśli ustawione jako StorageAttributes (`{ type: 'sessionStorage', name: 'custom-locale' }`).
|
|
345
|
+
|
|
346
|
+
- **header**:
|
|
347
|
+
- _Opis_: Wykorzystuje nagłówki HTTP do przechowywania lub przesyłania danych lokalizacyjnych, odpowiednie do określania języka po stronie serwera.
|
|
348
|
+
- _Uwaga_: Przydatne w wywołaniach API do utrzymania spójnych ustawień językowych w żądaniach.
|
|
349
|
+
- _Uwaga_: Nagłówek jest dostępny tylko po stronie serwera, klient nie będzie miał do niego dostępu.
|
|
350
|
+
- _Uwaga_: Nazwa nagłówka jest konfigurowalna, jeśli ustawiona jako StorageAttributes (`{ type: 'header', name: 'custom-locale' }`).
|
|
351
|
+
|
|
352
|
+
- **basePath**:
|
|
353
|
+
- _Typ_: `string`
|
|
354
|
+
- _Domyślnie_: `''`
|
|
355
|
+
- _Opis_: Podstawowa ścieżka dla adresów URL aplikacji.
|
|
356
|
+
- _Przykład_: `'/my-app'`
|
|
357
|
+
- _Uwaga_:
|
|
358
|
+
- Jeśli aplikacja jest hostowana pod adresem `https://example.com/my-app`
|
|
359
|
+
- Podstawowa ścieżka to `'/my-app'`
|
|
360
|
+
- Adres URL będzie `https://example.com/my-app/en`
|
|
361
|
+
- Jeśli podstawowa ścieżka nie jest ustawiona, adres URL będzie `https://example.com/en`
|
|
362
|
+
|
|
363
|
+
#### Atrybuty ciasteczek
|
|
364
|
+
|
|
365
|
+
Podczas korzystania z przechowywania w ciasteczkach, możesz skonfigurować dodatkowe atrybuty ciasteczek:
|
|
366
|
+
|
|
367
|
+
- **name**: Nazwa ciasteczka (domyślnie: `'INTLAYER_LOCALE'`)
|
|
368
|
+
- **domain**: Domeną ciasteczka (domyślnie: niezdefiniowane)
|
|
369
|
+
- **path**: Ścieżka ciasteczka (domyślnie: niezdefiniowane)
|
|
370
|
+
- **secure**: Wymagaj HTTPS (domyślnie: niezdefiniowane)
|
|
371
|
+
- **httpOnly**: Flaga HTTP-only (domyślnie: niezdefiniowane)
|
|
372
|
+
- **sameSite**: Polityka SameSite (`'strict' | 'lax' | 'none'`)
|
|
373
|
+
- **expires**: Data wygaśnięcia lub liczba dni (domyślnie: niezdefiniowane)
|
|
374
|
+
|
|
375
|
+
#### Atrybuty przechowywania lokalnego
|
|
376
|
+
|
|
377
|
+
Podczas korzystania z localStorage lub sessionStorage:
|
|
378
|
+
|
|
379
|
+
- **type**: Typ przechowywania (`'localStorage' | 'sessionStorage'`)
|
|
380
|
+
- **name**: Nazwa klucza przechowywania (domyślnie: `'INTLAYER_LOCALE'`)
|
|
381
|
+
|
|
382
|
+
#### Przykłady konfiguracji
|
|
383
|
+
|
|
384
|
+
Oto kilka typowych przykładów konfiguracji dla nowej struktury routingu w wersji v7:
|
|
385
|
+
|
|
386
|
+
**Podstawowa konfiguracja (domyślna)**:
|
|
387
|
+
|
|
388
|
+
```typescript
|
|
389
|
+
// intlayer.config.ts
|
|
390
|
+
export default defineConfig({
|
|
391
|
+
internationalization: {
|
|
392
|
+
locales: ["en", "fr", "es"],
|
|
393
|
+
defaultLocale: "en",
|
|
394
|
+
},
|
|
395
|
+
routing: {
|
|
396
|
+
mode: "prefix-no-default",
|
|
397
|
+
storage: "localStorage",
|
|
398
|
+
headerName: "x-intlayer-locale",
|
|
399
|
+
basePath: "",
|
|
400
|
+
},
|
|
401
|
+
});
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
**Konfiguracja zgodna z RODO**:
|
|
405
|
+
|
|
406
|
+
```typescript
|
|
407
|
+
// intlayer.config.ts
|
|
408
|
+
export default defineConfig({
|
|
409
|
+
internationalization: {
|
|
410
|
+
locales: ["en", "fr", "es"],
|
|
411
|
+
defaultLocale: "en",
|
|
412
|
+
},
|
|
413
|
+
routing: {
|
|
414
|
+
mode: "prefix-no-default",
|
|
415
|
+
storage: [
|
|
416
|
+
{
|
|
417
|
+
type: "localStorage",
|
|
418
|
+
name: "user-locale",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
type: "cookie",
|
|
422
|
+
name: "user-locale",
|
|
423
|
+
secure: true,
|
|
424
|
+
sameSite: "strict",
|
|
425
|
+
httpOnly: false,
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
headerName: "x-intlayer-locale",
|
|
429
|
+
basePath: "",
|
|
430
|
+
},
|
|
431
|
+
});
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
**Tryb parametrów wyszukiwania**:
|
|
435
|
+
|
|
436
|
+
```typescript
|
|
437
|
+
// intlayer.config.ts
|
|
438
|
+
export default defineConfig({
|
|
439
|
+
internationalization: {
|
|
440
|
+
locales: ["en", "fr", "es"],
|
|
441
|
+
defaultLocale: "en",
|
|
442
|
+
},
|
|
443
|
+
routing: {
|
|
444
|
+
mode: "search-params",
|
|
445
|
+
storage: "localStorage",
|
|
446
|
+
headerName: "x-intlayer-locale",
|
|
447
|
+
basePath: "",
|
|
448
|
+
},
|
|
449
|
+
});
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
**Tryb bez prefiksu z niestandardową pamięcią**:
|
|
453
|
+
|
|
454
|
+
```typescript
|
|
455
|
+
// intlayer.config.ts
|
|
456
|
+
export default defineConfig({
|
|
457
|
+
internationalization: {
|
|
458
|
+
locales: ["en", "fr", "es"],
|
|
459
|
+
defaultLocale: "en",
|
|
460
|
+
},
|
|
461
|
+
routing: {
|
|
462
|
+
mode: "no-prefix",
|
|
463
|
+
storage: {
|
|
464
|
+
type: "sessionStorage",
|
|
465
|
+
name: "app-locale",
|
|
466
|
+
},
|
|
467
|
+
headerName: "x-custom-locale",
|
|
468
|
+
basePath: "/my-app",
|
|
469
|
+
},
|
|
470
|
+
});
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
---
|
|
474
|
+
|
|
475
|
+
### Konfiguracja treści
|
|
476
|
+
|
|
477
|
+
Ustawienia związane z obsługą treści w aplikacji, w tym nazwy katalogów, rozszerzenia plików oraz pochodne konfiguracje.
|
|
478
|
+
|
|
479
|
+
#### Właściwości
|
|
480
|
+
|
|
481
|
+
- **watch**:
|
|
482
|
+
- _Typ_: `boolean`
|
|
483
|
+
- _Domyślnie_: `process.env.NODE_ENV === 'development'`
|
|
484
|
+
- _Opis_: Wskazuje, czy Intlayer powinien obserwować zmiany w plikach deklaracji treści w aplikacji, aby przebudować powiązane słowniki.
|
|
485
|
+
|
|
486
|
+
- **fileExtensions**:
|
|
487
|
+
- _Typ_: `string[]`
|
|
488
|
+
- _Domyślnie_: `['.content.ts', '.content.js', '.content.cjs', '.content.mjs', '.content.json', '.content.tsx', '.content.jsx']`
|
|
489
|
+
- _Opis_: Rozszerzenia plików, które mają być wyszukiwane podczas budowania słowników.
|
|
490
|
+
- _Przykład_: `['.data.ts', '.data.js', '.data.json']`
|
|
491
|
+
- _Uwaga_: Dostosowanie rozszerzeń plików może pomóc uniknąć konfliktów.
|
|
492
|
+
|
|
493
|
+
- **baseDir**:
|
|
494
|
+
- _Typ_: `string`
|
|
495
|
+
- _Domyślnie_: `process.cwd()`
|
|
496
|
+
- _Opis_: Katalog bazowy projektu.
|
|
497
|
+
- _Przykład_: `'/path/to/project'`
|
|
498
|
+
- _Uwaga_: Jest używany do rozwiązywania wszystkich katalogów związanych z Intlayer.
|
|
499
|
+
|
|
500
|
+
- **contentDir**:
|
|
501
|
+
- _Typ_: `string[]`
|
|
502
|
+
- _Domyślnie_: `['.']`
|
|
503
|
+
- _Przykład_: `['src', '../../ui-library', require.resolve("@my-package/content")]`
|
|
504
|
+
- _Opis_: Ścieżka katalogu, w którym przechowywana jest zawartość.
|
|
505
|
+
|
|
506
|
+
- **dictionariesDir**:
|
|
507
|
+
- _Typ_: `string`
|
|
508
|
+
- _Domyślnie_: `'.intlayer/dictionaries'`
|
|
509
|
+
- _Opis_: Ścieżka katalogu do przechowywania wyników pośrednich lub wyjściowych.
|
|
510
|
+
|
|
511
|
+
- **moduleAugmentationDir**:
|
|
512
|
+
- _Typ_: `string`
|
|
513
|
+
- _Domyślnie_: `'.intlayer/types'`
|
|
514
|
+
- _Opis_: Katalog do rozszerzania modułów, umożliwiający lepsze sugestie w IDE i sprawdzanie typów.
|
|
515
|
+
- _Przykład_: `'intlayer-types'`
|
|
516
|
+
- _Uwaga_: Upewnij się, że jest to uwzględnione w `tsconfig.json`.
|
|
517
|
+
|
|
518
|
+
- **unmergedDictionariesDir**:
|
|
519
|
+
- _Typ_: `string`
|
|
520
|
+
- _Domyślnie_: `'.intlayer/unmerged_dictionary'`
|
|
521
|
+
- _Opis_: Katalog do przechowywania niepołączonych słowników.
|
|
522
|
+
- _Przykład_: `'translations'`
|
|
523
|
+
|
|
524
|
+
- **dictionariesDir**:
|
|
525
|
+
- _Typ_: `string`
|
|
526
|
+
- _Domyślnie_: `'.intlayer/dictionary'`
|
|
527
|
+
- _Opis_: Katalog do przechowywania słowników lokalizacyjnych.
|
|
528
|
+
- _Przykład_: `'translations'`
|
|
529
|
+
|
|
530
|
+
- **typesDir**:
|
|
531
|
+
- _Typ_: `string`
|
|
532
|
+
- _Domyślnie_: `'types'`
|
|
533
|
+
- _Opis_: Katalog do przechowywania typów słowników.
|
|
534
|
+
- _Przykład_: `'intlayer-types'`
|
|
535
|
+
|
|
536
|
+
- **mainDir**:
|
|
537
|
+
- _Typ_: `string`
|
|
538
|
+
- _Domyślnie_: `'main'`
|
|
539
|
+
- _Opis_: Katalog, w którym przechowywane są główne pliki aplikacji.
|
|
540
|
+
- _Przykład_: `'intlayer-main'`
|
|
541
|
+
|
|
542
|
+
- **excludedPath**:
|
|
543
|
+
- _Typ_: `string[]`
|
|
544
|
+
- _Domyślnie_: `['**/node_modules/**', '**/dist/**', '**/build/**', '**/.intlayer/**', '**/.next/**', '**/.nuxt/**', '**/.expo/**', '**/.vercel/**', '**/.turbo/**', '**/.tanstack/**']`
|
|
545
|
+
- _Opis_: Katalogi wykluczone z wyszukiwania treści.
|
|
546
|
+
- _Uwaga_: To ustawienie nie jest jeszcze używane, ale planowane do implementacji w przyszłości.
|
|
547
|
+
|
|
548
|
+
- **formatCommand**:
|
|
549
|
+
- _Typ_: `string`
|
|
550
|
+
- _Domyślnie_: `undefined`
|
|
551
|
+
- _Opis_: Komenda do formatowania zawartości. Gdy intlayer zapisuje lokalnie twoje pliki .content, ta komenda będzie używana do formatowania zawartości.
|
|
552
|
+
- _Przykład_: `'npx prettier --write "{{file}}" --log-level silent'` Użycie Prettier
|
|
553
|
+
- _Przykład_: `'npx biome format "{{file}}" --write --log-level none'` Użycie Biome
|
|
554
|
+
- _Przykład_: `'npx eslint --fix "{{file}}" --quiet'` Użycie ESLint
|
|
555
|
+
- _Uwaga_: Intlayer zastąpi {{file}} ścieżką do pliku, który ma zostać sformatowany.
|
|
556
|
+
- _Uwaga_: Jeśli nie zostanie ustawione, Intlayer spróbuje automatycznie wykryć polecenie formatowania. Próbując rozpoznać następujące polecenia: prettier, biome, eslint.
|
|
557
|
+
|
|
558
|
+
### Konfiguracja Słownika
|
|
559
|
+
|
|
560
|
+
Ustawienia kontrolujące operacje słownika, w tym zachowanie automatycznego wypełniania oraz generowanie zawartości.
|
|
561
|
+
|
|
562
|
+
Ta konfiguracja słownika służy dwóm głównym celom:
|
|
563
|
+
|
|
564
|
+
1. **Wartości domyślne**: Definiowanie wartości domyślnych podczas tworzenia plików deklaracji zawartości
|
|
565
|
+
2. **Zachowanie zapasowe**: Zapewnienie wartości zapasowych, gdy konkretne pola nie są zdefiniowane, co pozwala na globalne określenie zachowania operacji słownika
|
|
566
|
+
|
|
567
|
+
Aby uzyskać więcej informacji na temat plików deklaracji zawartości oraz sposobu stosowania wartości konfiguracyjnych, zobacz [Dokumentację pliku zawartości](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/content_file.md).
|
|
568
|
+
|
|
569
|
+
#### Właściwości
|
|
570
|
+
|
|
571
|
+
- **fill**
|
|
572
|
+
- **description**
|
|
573
|
+
- **locale**
|
|
574
|
+
- **priority**
|
|
575
|
+
- **live**
|
|
576
|
+
- **title**
|
|
577
|
+
- **tags**
|
|
578
|
+
- **version**
|
|
579
|
+
|
|
580
|
+
---
|
|
581
|
+
|
|
582
|
+
### Konfiguracja Loggera
|
|
583
|
+
|
|
584
|
+
Ustawienia kontrolujące logger, w tym prefiks do użycia.
|
|
585
|
+
|
|
586
|
+
#### Właściwości
|
|
587
|
+
|
|
588
|
+
- **mode**:
|
|
589
|
+
- _Typ_: `string`
|
|
590
|
+
- _Domyślnie_: `default`
|
|
591
|
+
- _Opis_: Określa tryb loggera.
|
|
592
|
+
- _Opcje_: `default`, `verbose`, `disabled`
|
|
593
|
+
- _Przykład_: `default`
|
|
594
|
+
- _Uwaga_: Tryb loggera. Tryb verbose będzie logował więcej informacji, ale może być używany do celów debugowania. Tryb disabled wyłączy logger.
|
|
595
|
+
|
|
596
|
+
- **prefix**:
|
|
597
|
+
- _Typ_: `string`
|
|
598
|
+
- _Domyślnie_: `'[intlayer] '`
|
|
599
|
+
- _Opis_: Prefiks loggera.
|
|
600
|
+
- _Przykład_: `'[my custom prefix] '`
|
|
601
|
+
- _Uwaga_: Prefiks loggera.
|
|
602
|
+
|
|
603
|
+
### Konfiguracja AI
|
|
604
|
+
|
|
605
|
+
Ustawienia kontrolujące funkcje AI w Intlayer, w tym dostawcę, model i klucz API.
|
|
606
|
+
|
|
607
|
+
Ta konfiguracja jest opcjonalna, jeśli jesteś zarejestrowany na [Intlayer Dashboard](https://intlayer.org/dashboard/project) i korzystasz z klucza dostępu. Intlayer automatycznie zarządza najbardziej efektywnym i opłacalnym rozwiązaniem AI dla Twoich potrzeb. Korzystanie z domyślnych opcji zapewnia lepszą długoterminową utrzymalność, ponieważ Intlayer stale aktualizuje się, aby korzystać z najbardziej odpowiednich modeli.
|
|
608
|
+
|
|
609
|
+
Jeśli wolisz używać własnego klucza API lub konkretnego modelu, możesz zdefiniować własną konfigurację AI.
|
|
610
|
+
Ta konfiguracja AI będzie używana globalnie w całym środowisku Intlayer. Polecenia CLI będą korzystać z tych ustawień jako domyślnych dla poleceń (np. `fill`), a także SDK, Visual Editor i CMS. Możesz nadpisać te domyślne wartości dla konkretnych przypadków użycia, korzystając z parametrów poleceń.
|
|
611
|
+
|
|
612
|
+
Intlayer obsługuje wielu dostawców AI, aby zapewnić większą elastyczność i wybór. Obecnie obsługiwani dostawcy to:
|
|
613
|
+
|
|
614
|
+
- **OpenAI** (domyślny)
|
|
615
|
+
- **Anthropic Claude**
|
|
616
|
+
- **Mistral AI**
|
|
617
|
+
- **DeepSeek**
|
|
618
|
+
- **Google Gemini**
|
|
619
|
+
- **Meta Llama**
|
|
620
|
+
|
|
621
|
+
#### Właściwości
|
|
622
|
+
|
|
623
|
+
- **provider**:
|
|
624
|
+
- _Typ_: `string`
|
|
625
|
+
- _Domyślnie_: `'openai'`
|
|
626
|
+
- _Opis_: Dostawca używany do funkcji AI w Intlayer.
|
|
627
|
+
- _Opcje_: `'openai'`, `'anthropic'`, `'mistral'`, `'deepseek'`, `'gemini'`
|
|
628
|
+
- _Przykład_: `'anthropic'`
|
|
629
|
+
- _Uwaga_: Różni dostawcy mogą wymagać różnych kluczy API i mieć różne modele cenowe.
|
|
630
|
+
|
|
631
|
+
- **model**:
|
|
632
|
+
- _Typ_: `string`
|
|
633
|
+
- _Domyślnie_: Brak
|
|
634
|
+
- _Opis_: Model używany do funkcji AI w Intlayer.
|
|
635
|
+
- _Przykład_: `'gpt-4o-2024-11-20'`
|
|
636
|
+
- _Uwaga_: Konkretne modele różnią się w zależności od dostawcy.
|
|
637
|
+
|
|
638
|
+
- **temperature**:
|
|
639
|
+
- _Typ_: `number`
|
|
640
|
+
- _Domyślnie_: Brak
|
|
641
|
+
- _Opis_: Temperatura kontroluje losowość odpowiedzi AI.
|
|
642
|
+
- _Przykład_: `0.1`
|
|
643
|
+
- _Uwaga_: Wyższa temperatura sprawia, że AI jest bardziej kreatywne i mniej przewidywalne.
|
|
644
|
+
|
|
645
|
+
- **apiKey**:
|
|
646
|
+
- _Typ_: `string`
|
|
647
|
+
- _Domyślnie_: Brak
|
|
648
|
+
- _Opis_: Twój klucz API dla wybranego dostawcy.
|
|
649
|
+
- _Przykład_: `process.env.OPENAI_API_KEY`
|
|
650
|
+
- _Uwaga_: Ważne: Klucze API powinny być przechowywane w tajemnicy i nie udostępniane publicznie. Proszę upewnić się, że są przechowywane w bezpiecznym miejscu, takim jak zmienne środowiskowe.
|
|
651
|
+
|
|
652
|
+
- **applicationContext**:
|
|
653
|
+
- _Typ_: `string`
|
|
654
|
+
- _Domyślnie_: Brak
|
|
655
|
+
- _Opis_: Dostarcza dodatkowy kontekst dotyczący Twojej aplikacji dla modelu AI, pomagając mu generować dokładniejsze i kontekstowo odpowiednie tłumaczenia. Może to obejmować informacje o domenie aplikacji, docelowej grupie odbiorców, tonie lub specyficznej terminologii.
|
|
656
|
+
|
|
657
|
+
### Konfiguracja Budowania
|
|
658
|
+
|
|
659
|
+
Ustawienia kontrolujące, jak Intlayer optymalizuje i buduje internacjonalizację Twojej aplikacji.
|
|
660
|
+
|
|
661
|
+
Opcje budowania dotyczą wtyczek `@intlayer/babel` oraz `@intlayer/swc`.
|
|
662
|
+
|
|
663
|
+
> W trybie deweloperskim Intlayer używa statycznych importów słowników, aby uprościć proces tworzenia aplikacji.
|
|
664
|
+
|
|
665
|
+
> Po optymalizacji Intlayer zastąpi wywołania słowników, aby zoptymalizować podział na części (chunking), dzięki czemu finalny pakiet zaimportuje tylko te słowniki, które są faktycznie używane.
|
|
666
|
+
|
|
667
|
+
#### Właściwości
|
|
668
|
+
|
|
669
|
+
- **optimize**:
|
|
670
|
+
- _Typ_: `boolean`
|
|
671
|
+
- _Domyślnie_: `process.env.NODE_ENV === 'production'`
|
|
672
|
+
- _Opis_: Kontroluje, czy budowa powinna być zoptymalizowana.
|
|
673
|
+
- _Przykład_: `true`
|
|
674
|
+
- _Uwaga_: Po włączeniu Intlayer zastąpi wszystkie wywołania słowników, aby zoptymalizować podział na części. W ten sposób finalny pakiet zaimportuje tylko używane słowniki. Wszystkie importy pozostaną statyczne, aby uniknąć asynchronicznego przetwarzania podczas ładowania słowników.
|
|
675
|
+
- _Uwaga_: Intlayer zastąpi wszystkie wywołania `useIntlayer` trybem zdefiniowanym przez opcję `importMode` oraz `getIntlayer` funkcją `getDictionary`.
|
|
676
|
+
- _Uwaga_: Ta opcja wymaga wtyczek `@intlayer/babel` oraz `@intlayer/swc`.
|
|
677
|
+
- _Uwaga_: Upewnij się, że wszystkie klucze są deklarowane statycznie w wywołaniach `useIntlayer`, np. `useIntlayer('navbar')`.
|
|
678
|
+
|
|
679
|
+
- **importMode**:
|
|
680
|
+
- _Typ_: `'static' | 'dynamic' | 'live'`
|
|
681
|
+
- _Domyślnie_: `'static'`
|
|
682
|
+
- _Opis_: Kontroluje sposób importowania słowników.
|
|
683
|
+
- _Przykład_: `'dynamic'`
|
|
684
|
+
- _Uwaga_: Dostępne tryby:
|
|
685
|
+
- "static": Słowniki są importowane statycznie. Zastępuje `useIntlayer` funkcją `useDictionary`.
|
|
686
|
+
- "dynamic": Słowniki są importowane dynamicznie z użyciem Suspense. Zastępuje `useIntlayer` funkcją `useDictionaryDynamic`.
|
|
687
|
+
- "live": Słowniki są pobierane dynamicznie za pomocą API synchronizacji na żywo. Zastępuje `useIntlayer` funkcją `useDictionaryDynamic`.
|
|
688
|
+
- _Uwaga_: Importy dynamiczne opierają się na Suspense i mogą nieznacznie wpływać na wydajność renderowania.
|
|
689
|
+
- _Uwaga_: Jeśli wyłączone, wszystkie lokalizacje zostaną załadowane jednocześnie, nawet jeśli nie są używane.
|
|
690
|
+
- _Uwaga_: Ta opcja wymaga wtyczek `@intlayer/babel` oraz `@intlayer/swc`.
|
|
691
|
+
- _Uwaga_: Upewnij się, że wszystkie klucze są zadeklarowane statycznie w wywołaniach `useIntlayer`, np. `useIntlayer('navbar')`.
|
|
692
|
+
- _Uwaga_: Ta opcja zostanie zignorowana, jeśli `optimize` jest wyłączone.
|
|
693
|
+
- _Uwaga_: Jeśli ustawione na "live", tylko słowniki zawierające zdalną zawartość i oznaczone flagą "live" zostaną przekształcone w tryb live. Pozostałe zostaną zaimportowane dynamicznie w trybie "dynamic", aby zoptymalizować liczbę zapytań fetch i wydajność ładowania.
|
|
694
|
+
- _Uwaga_: Tryb live będzie korzystał z API synchronizacji na żywo do pobierania słowników. Jeśli wywołanie API się nie powiedzie, słowniki zostaną zaimportowane dynamicznie w trybie "dynamic".
|
|
695
|
+
- _Uwaga_: Ta opcja nie wpłynie na funkcje `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` oraz `useDictionaryDynamic`.
|
|
696
|
+
- **outputFormat**:
|
|
697
|
+
- _Typ_: `'esm' | 'cjs'`
|
|
698
|
+
- _Domyślnie_: `'esm'`
|
|
699
|
+
- _Opis_: Kontroluje format wyjściowy słowników.
|
|
700
|
+
- _Przykład_: `'cjs'`
|
|
701
|
+
- _Uwaga_: Format wyjściowy słowników.
|
|
702
|
+
|
|
703
|
+
- **traversePattern**:
|
|
704
|
+
- _Typ_: `string[]`
|
|
705
|
+
- _Domyślnie_: `['**\/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx}', '!**\/node_modules/**']`
|
|
706
|
+
- _Opis_: Wzorce definiujące, które pliki powinny być przeszukiwane podczas optymalizacji.
|
|
707
|
+
- _Przykład_: `['src/**\/*.{ts,tsx}', '../ui-library/**\/*.{ts,tsx}', '!**/node_modules/**']`
|
|
708
|
+
- _Uwaga_: Użyj tego, aby ograniczyć optymalizację do istotnych plików kodu i poprawić wydajność budowania.
|
|
709
|
+
- _Uwaga_: Ta opcja zostanie zignorowana, jeśli `optimize` jest wyłączone.
|
|
710
|
+
- _Uwaga_: Używaj wzorców glob.
|