@intlayer/docs 9.0.0-canary.6 → 9.0.0-canary.7
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/dist/cjs/generated/docs.entry.cjs +80 -0
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +80 -0
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +4 -0
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/docs/ar/compiler.md +6 -3
- package/docs/ar/custom_domains.md +8 -2
- package/docs/ar/custom_url_rewrites.md +8 -2
- package/docs/ar/intlayer_with_analog.md +5 -1
- package/docs/ar/intlayer_with_astro.md +2 -0
- package/docs/ar/intlayer_with_astro_lit.md +2 -0
- package/docs/ar/intlayer_with_astro_preact.md +2 -0
- package/docs/ar/intlayer_with_astro_react.md +2 -0
- package/docs/ar/intlayer_with_astro_solid.md +2 -0
- package/docs/ar/intlayer_with_astro_svelte.md +2 -0
- package/docs/ar/intlayer_with_astro_vanilla.md +2 -0
- package/docs/ar/intlayer_with_astro_vue.md +2 -0
- package/docs/ar/intlayer_with_lynx+react.md +6 -1
- package/docs/ar/intlayer_with_nextjs_16.md +2 -0
- package/docs/ar/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/ar/intlayer_with_react_native+expo.md +6 -1
- package/docs/ar/intlayer_with_react_router_v7.md +3 -1
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/ar/intlayer_with_storybook.md +7 -1
- package/docs/ar/intlayer_with_svelte_kit.md +8 -3
- package/docs/ar/intlayer_with_tanstack+solid.md +18 -11
- package/docs/ar/intlayer_with_tanstack.md +16 -7
- package/docs/ar/intlayer_with_vite+lit.md +8 -2
- package/docs/ar/intlayer_with_vite+preact.md +2 -0
- package/docs/ar/intlayer_with_vite+react.md +8 -3
- package/docs/ar/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/ar/intlayer_with_vite+solid.md +2 -0
- package/docs/ar/intlayer_with_vite+svelte.md +4 -2
- package/docs/ar/intlayer_with_vite+vanilla.md +16 -5
- package/docs/ar/intlayer_with_vite+vue.md +8 -3
- package/docs/ar/packages/@intlayer_babel/export.md +131 -0
- package/docs/ar/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/ar/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/ar/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/ar/releases/v9.md +45 -1
- package/docs/bn/custom_domains.md +8 -2
- package/docs/bn/intlayer_with_storybook.md +7 -1
- package/docs/bn/intlayer_with_vite+lit.md +8 -2
- package/docs/bn/intlayer_with_vite+vanilla.md +16 -5
- package/docs/cs/custom_domains.md +8 -2
- package/docs/cs/intlayer_with_storybook.md +7 -1
- package/docs/cs/intlayer_with_vite+lit.md +8 -2
- package/docs/cs/intlayer_with_vite+vanilla.md +16 -5
- package/docs/de/compiler.md +6 -3
- package/docs/de/custom_domains.md +8 -2
- package/docs/de/custom_url_rewrites.md +8 -2
- package/docs/de/intlayer_with_analog.md +5 -1
- package/docs/de/intlayer_with_astro.md +3 -1
- package/docs/de/intlayer_with_astro_lit.md +3 -1
- package/docs/de/intlayer_with_astro_preact.md +3 -1
- package/docs/de/intlayer_with_astro_react.md +3 -1
- package/docs/de/intlayer_with_astro_solid.md +3 -1
- package/docs/de/intlayer_with_astro_svelte.md +3 -1
- package/docs/de/intlayer_with_astro_vanilla.md +3 -1
- package/docs/de/intlayer_with_astro_vue.md +3 -1
- package/docs/de/intlayer_with_lynx+react.md +6 -1
- package/docs/de/intlayer_with_nextjs_16.md +2 -0
- package/docs/de/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/de/intlayer_with_react_native+expo.md +6 -1
- package/docs/de/intlayer_with_react_router_v7.md +3 -1
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +8 -3
- package/docs/de/intlayer_with_storybook.md +7 -1
- package/docs/de/intlayer_with_svelte_kit.md +9 -4
- package/docs/de/intlayer_with_tanstack+solid.md +18 -11
- package/docs/de/intlayer_with_tanstack.md +17 -8
- package/docs/de/intlayer_with_vite+lit.md +13 -4
- package/docs/de/intlayer_with_vite+preact.md +3 -1
- package/docs/de/intlayer_with_vite+react.md +9 -4
- package/docs/de/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/de/intlayer_with_vite+solid.md +3 -1
- package/docs/de/intlayer_with_vite+svelte.md +9 -4
- package/docs/de/intlayer_with_vite+vanilla.md +16 -5
- package/docs/de/intlayer_with_vite+vue.md +9 -4
- package/docs/de/packages/@intlayer_babel/export.md +131 -0
- package/docs/de/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/de/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/de/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/de/releases/v9.md +23 -1
- package/docs/en/compiler.md +5 -1
- package/docs/en/custom_domains.md +8 -2
- package/docs/en/custom_url_rewrites.md +8 -2
- package/docs/en/intlayer_with_analog.md +5 -1
- package/docs/en/intlayer_with_astro.md +2 -2
- package/docs/en/intlayer_with_astro_lit.md +2 -2
- package/docs/en/intlayer_with_astro_preact.md +2 -2
- package/docs/en/intlayer_with_astro_react.md +2 -2
- package/docs/en/intlayer_with_astro_solid.md +2 -2
- package/docs/en/intlayer_with_astro_svelte.md +2 -2
- package/docs/en/intlayer_with_astro_vanilla.md +2 -2
- package/docs/en/intlayer_with_astro_vue.md +2 -2
- package/docs/en/intlayer_with_lynx+react.md +6 -1
- package/docs/en/intlayer_with_nextjs_16.md +2 -0
- package/docs/en/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/en/intlayer_with_react_native+expo.md +6 -1
- package/docs/en/intlayer_with_react_router_v7.md +8 -3
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +8 -3
- package/docs/en/intlayer_with_storybook.md +7 -1
- package/docs/en/intlayer_with_svelte_kit.md +8 -5
- package/docs/en/intlayer_with_tanstack+solid.md +18 -9
- package/docs/en/intlayer_with_tanstack.md +16 -7
- package/docs/en/intlayer_with_vite+lit.md +13 -4
- package/docs/en/intlayer_with_vite+preact.md +8 -3
- package/docs/en/intlayer_with_vite+react.md +8 -3
- package/docs/en/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/en/intlayer_with_vite+solid.md +8 -3
- package/docs/en/intlayer_with_vite+svelte.md +8 -3
- package/docs/en/intlayer_with_vite+vanilla.md +15 -6
- package/docs/en/intlayer_with_vite+vue.md +8 -3
- package/docs/en/packages/@intlayer_babel/export.md +131 -0
- package/docs/en/packages/vite-intlayer/exports.md +38 -13
- package/docs/en/packages/vite-intlayer/intlayer.md +133 -14
- package/docs/en/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/en/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/en/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/en/packages/vite-intlayer/intlayerPrune.md +90 -12
- package/docs/en/releases/v9.md +25 -1
- package/docs/en-GB/compiler.md +6 -3
- package/docs/en-GB/custom_domains.md +8 -2
- package/docs/en-GB/custom_url_rewrites.md +8 -2
- package/docs/en-GB/intlayer_with_analog.md +5 -1
- package/docs/en-GB/intlayer_with_astro.md +2 -0
- package/docs/en-GB/intlayer_with_astro_lit.md +2 -0
- package/docs/en-GB/intlayer_with_astro_preact.md +2 -0
- package/docs/en-GB/intlayer_with_astro_react.md +2 -0
- package/docs/en-GB/intlayer_with_astro_solid.md +2 -0
- package/docs/en-GB/intlayer_with_astro_svelte.md +2 -0
- package/docs/en-GB/intlayer_with_astro_vanilla.md +2 -0
- package/docs/en-GB/intlayer_with_astro_vue.md +2 -0
- package/docs/en-GB/intlayer_with_lynx+react.md +6 -1
- package/docs/en-GB/intlayer_with_react_native+expo.md +6 -1
- package/docs/en-GB/intlayer_with_react_router_v7.md +6 -3
- package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +6 -3
- package/docs/en-GB/intlayer_with_storybook.md +7 -1
- package/docs/en-GB/intlayer_with_svelte_kit.md +6 -3
- package/docs/en-GB/intlayer_with_tanstack+solid.md +18 -11
- package/docs/en-GB/intlayer_with_tanstack.md +14 -7
- package/docs/en-GB/intlayer_with_vite+lit.md +13 -4
- package/docs/en-GB/intlayer_with_vite+react.md +6 -3
- package/docs/en-GB/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/en-GB/intlayer_with_vite+svelte.md +6 -3
- package/docs/en-GB/intlayer_with_vite+vanilla.md +15 -4
- package/docs/en-GB/intlayer_with_vite+vue.md +6 -3
- package/docs/en-GB/packages/@intlayer_babel/export.md +131 -0
- package/docs/en-GB/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/en-GB/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/en-GB/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/en-GB/releases/v9.md +23 -1
- package/docs/es/compiler.md +6 -3
- package/docs/es/custom_domains.md +8 -2
- package/docs/es/custom_url_rewrites.md +8 -2
- package/docs/es/intlayer_with_analog.md +5 -1
- package/docs/es/intlayer_with_astro.md +3 -1
- package/docs/es/intlayer_with_astro_lit.md +3 -1
- package/docs/es/intlayer_with_astro_preact.md +3 -1
- package/docs/es/intlayer_with_astro_react.md +3 -1
- package/docs/es/intlayer_with_astro_solid.md +3 -1
- package/docs/es/intlayer_with_astro_svelte.md +3 -1
- package/docs/es/intlayer_with_astro_vanilla.md +3 -1
- package/docs/es/intlayer_with_astro_vue.md +3 -1
- package/docs/es/intlayer_with_lynx+react.md +6 -1
- package/docs/es/intlayer_with_nextjs_16.md +2 -0
- package/docs/es/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/es/intlayer_with_react_native+expo.md +6 -1
- package/docs/es/intlayer_with_react_router_v7.md +3 -1
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +9 -4
- package/docs/es/intlayer_with_storybook.md +7 -1
- package/docs/es/intlayer_with_svelte_kit.md +9 -4
- package/docs/es/intlayer_with_tanstack+solid.md +18 -11
- package/docs/es/intlayer_with_tanstack.md +17 -8
- package/docs/es/intlayer_with_vite+lit.md +13 -4
- package/docs/es/intlayer_with_vite+preact.md +3 -1
- package/docs/es/intlayer_with_vite+react.md +9 -4
- package/docs/es/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/es/intlayer_with_vite+solid.md +3 -1
- package/docs/es/intlayer_with_vite+svelte.md +4 -2
- package/docs/es/intlayer_with_vite+vanilla.md +16 -5
- package/docs/es/intlayer_with_vite+vue.md +9 -4
- package/docs/es/packages/@intlayer_babel/export.md +131 -0
- package/docs/es/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/es/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/es/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/es/releases/v9.md +23 -1
- package/docs/fr/compiler.md +6 -3
- package/docs/fr/custom_domains.md +8 -2
- package/docs/fr/custom_url_rewrites.md +8 -2
- package/docs/fr/intlayer_with_analog.md +5 -1
- package/docs/fr/intlayer_with_astro.md +3 -1
- package/docs/fr/intlayer_with_astro_lit.md +3 -1
- package/docs/fr/intlayer_with_astro_preact.md +3 -1
- package/docs/fr/intlayer_with_astro_react.md +3 -1
- package/docs/fr/intlayer_with_astro_solid.md +3 -1
- package/docs/fr/intlayer_with_astro_svelte.md +3 -1
- package/docs/fr/intlayer_with_astro_vanilla.md +3 -1
- package/docs/fr/intlayer_with_astro_vue.md +3 -1
- package/docs/fr/intlayer_with_lynx+react.md +6 -1
- package/docs/fr/intlayer_with_nextjs_16.md +2 -0
- package/docs/fr/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/fr/intlayer_with_react_native+expo.md +6 -1
- package/docs/fr/intlayer_with_react_router_v7.md +3 -1
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/fr/intlayer_with_storybook.md +7 -1
- package/docs/fr/intlayer_with_svelte_kit.md +9 -4
- package/docs/fr/intlayer_with_tanstack+solid.md +18 -11
- package/docs/fr/intlayer_with_tanstack.md +17 -8
- package/docs/fr/intlayer_with_vite+lit.md +13 -4
- package/docs/fr/intlayer_with_vite+preact.md +3 -1
- package/docs/fr/intlayer_with_vite+react.md +9 -4
- package/docs/fr/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/fr/intlayer_with_vite+solid.md +3 -1
- package/docs/fr/intlayer_with_vite+svelte.md +9 -4
- package/docs/fr/intlayer_with_vite+vanilla.md +16 -5
- package/docs/fr/intlayer_with_vite+vue.md +9 -4
- package/docs/fr/packages/@intlayer_babel/export.md +131 -0
- package/docs/fr/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/fr/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/fr/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/fr/releases/v9.md +23 -1
- package/docs/hi/compiler.md +6 -3
- package/docs/hi/custom_domains.md +8 -2
- package/docs/hi/custom_url_rewrites.md +8 -2
- package/docs/hi/intlayer_with_analog.md +5 -1
- package/docs/hi/intlayer_with_astro.md +6 -3
- package/docs/hi/intlayer_with_astro_lit.md +6 -3
- package/docs/hi/intlayer_with_astro_preact.md +6 -3
- package/docs/hi/intlayer_with_astro_react.md +6 -3
- package/docs/hi/intlayer_with_astro_solid.md +6 -3
- package/docs/hi/intlayer_with_astro_svelte.md +6 -3
- package/docs/hi/intlayer_with_astro_vanilla.md +6 -3
- package/docs/hi/intlayer_with_astro_vue.md +6 -3
- package/docs/hi/intlayer_with_lynx+react.md +6 -1
- package/docs/hi/intlayer_with_react_native+expo.md +6 -1
- package/docs/hi/intlayer_with_react_router_v7.md +6 -3
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +6 -3
- package/docs/hi/intlayer_with_storybook.md +7 -1
- package/docs/hi/intlayer_with_svelte_kit.md +12 -6
- package/docs/hi/intlayer_with_tanstack+solid.md +18 -11
- package/docs/hi/intlayer_with_tanstack.md +20 -10
- package/docs/hi/intlayer_with_vite+lit.md +8 -2
- package/docs/hi/intlayer_with_vite+preact.md +6 -3
- package/docs/hi/intlayer_with_vite+react.md +12 -6
- package/docs/hi/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/hi/intlayer_with_vite+solid.md +6 -3
- package/docs/hi/intlayer_with_vite+svelte.md +7 -4
- package/docs/hi/intlayer_with_vite+vanilla.md +16 -5
- package/docs/hi/intlayer_with_vite+vue.md +12 -6
- package/docs/hi/packages/@intlayer_babel/export.md +131 -0
- package/docs/hi/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/hi/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/hi/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/hi/releases/v9.md +23 -1
- package/docs/id/compiler.md +6 -3
- package/docs/id/custom_domains.md +8 -2
- package/docs/id/custom_url_rewrites.md +8 -2
- package/docs/id/intlayer_with_analog.md +5 -1
- package/docs/id/intlayer_with_astro.md +3 -1
- package/docs/id/intlayer_with_astro_lit.md +3 -1
- package/docs/id/intlayer_with_astro_preact.md +3 -1
- package/docs/id/intlayer_with_astro_react.md +3 -1
- package/docs/id/intlayer_with_astro_solid.md +3 -1
- package/docs/id/intlayer_with_astro_svelte.md +3 -1
- package/docs/id/intlayer_with_astro_vanilla.md +3 -1
- package/docs/id/intlayer_with_astro_vue.md +3 -1
- package/docs/id/intlayer_with_lynx+react.md +6 -1
- package/docs/id/intlayer_with_nextjs_16.md +2 -0
- package/docs/id/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/id/intlayer_with_react_native+expo.md +6 -1
- package/docs/id/intlayer_with_react_router_v7.md +3 -1
- package/docs/id/intlayer_with_react_router_v7_fs_routes.md +9 -4
- package/docs/id/intlayer_with_storybook.md +7 -1
- package/docs/id/intlayer_with_svelte_kit.md +9 -4
- package/docs/id/intlayer_with_tanstack+solid.md +18 -11
- package/docs/id/intlayer_with_tanstack.md +17 -8
- package/docs/id/intlayer_with_vite+lit.md +8 -2
- package/docs/id/intlayer_with_vite+preact.md +3 -1
- package/docs/id/intlayer_with_vite+react.md +9 -4
- package/docs/id/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/id/intlayer_with_vite+solid.md +3 -1
- package/docs/id/intlayer_with_vite+svelte.md +5 -3
- package/docs/id/intlayer_with_vite+vanilla.md +16 -5
- package/docs/id/intlayer_with_vite+vue.md +9 -4
- package/docs/id/packages/@intlayer_babel/export.md +131 -0
- package/docs/id/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/id/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/id/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/id/releases/v9.md +23 -1
- package/docs/it/compiler.md +6 -3
- package/docs/it/custom_domains.md +8 -2
- package/docs/it/custom_url_rewrites.md +8 -2
- package/docs/it/intlayer_with_analog.md +5 -1
- package/docs/it/intlayer_with_astro.md +3 -1
- package/docs/it/intlayer_with_astro_lit.md +3 -1
- package/docs/it/intlayer_with_astro_preact.md +3 -1
- package/docs/it/intlayer_with_astro_react.md +3 -1
- package/docs/it/intlayer_with_astro_solid.md +3 -1
- package/docs/it/intlayer_with_astro_svelte.md +3 -1
- package/docs/it/intlayer_with_astro_vanilla.md +3 -1
- package/docs/it/intlayer_with_astro_vue.md +3 -1
- package/docs/it/intlayer_with_lynx+react.md +6 -1
- package/docs/it/intlayer_with_nextjs_16.md +2 -0
- package/docs/it/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/it/intlayer_with_react_native+expo.md +6 -1
- package/docs/it/intlayer_with_react_router_v7.md +3 -1
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/it/intlayer_with_storybook.md +7 -1
- package/docs/it/intlayer_with_svelte_kit.md +9 -4
- package/docs/it/intlayer_with_tanstack+solid.md +18 -11
- package/docs/it/intlayer_with_tanstack.md +17 -8
- package/docs/it/intlayer_with_vite+lit.md +13 -4
- package/docs/it/intlayer_with_vite+preact.md +3 -1
- package/docs/it/intlayer_with_vite+react.md +9 -4
- package/docs/it/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/it/intlayer_with_vite+solid.md +3 -1
- package/docs/it/intlayer_with_vite+svelte.md +4 -2
- package/docs/it/intlayer_with_vite+vanilla.md +16 -5
- package/docs/it/intlayer_with_vite+vue.md +9 -4
- package/docs/it/packages/@intlayer_babel/export.md +131 -0
- package/docs/it/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/it/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/it/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/it/releases/v9.md +23 -1
- package/docs/ja/compiler.md +6 -3
- package/docs/ja/custom_domains.md +8 -2
- package/docs/ja/custom_url_rewrites.md +8 -2
- package/docs/ja/intlayer_with_analog.md +5 -1
- package/docs/ja/intlayer_with_astro.md +2 -0
- package/docs/ja/intlayer_with_astro_lit.md +2 -0
- package/docs/ja/intlayer_with_astro_preact.md +2 -0
- package/docs/ja/intlayer_with_astro_react.md +2 -0
- package/docs/ja/intlayer_with_astro_solid.md +2 -0
- package/docs/ja/intlayer_with_astro_svelte.md +2 -0
- package/docs/ja/intlayer_with_astro_vanilla.md +2 -0
- package/docs/ja/intlayer_with_astro_vue.md +2 -0
- package/docs/ja/intlayer_with_lynx+react.md +6 -1
- package/docs/ja/intlayer_with_nextjs_16.md +2 -0
- package/docs/ja/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/ja/intlayer_with_react_native+expo.md +6 -1
- package/docs/ja/intlayer_with_react_router_v7.md +8 -3
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/ja/intlayer_with_storybook.md +7 -1
- package/docs/ja/intlayer_with_svelte_kit.md +2 -0
- package/docs/ja/intlayer_with_tanstack+solid.md +18 -11
- package/docs/ja/intlayer_with_tanstack.md +18 -11
- package/docs/ja/intlayer_with_vite+lit.md +13 -4
- package/docs/ja/intlayer_with_vite+preact.md +8 -3
- package/docs/ja/intlayer_with_vite+react.md +3 -1
- package/docs/ja/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/ja/intlayer_with_vite+solid.md +3 -1
- package/docs/ja/intlayer_with_vite+svelte.md +5 -3
- package/docs/ja/intlayer_with_vite+vanilla.md +16 -5
- package/docs/ja/intlayer_with_vite+vue.md +9 -4
- package/docs/ja/packages/@intlayer_babel/export.md +131 -0
- package/docs/ja/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/ja/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/ja/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/ja/releases/v9.md +23 -1
- package/docs/ko/compiler.md +6 -3
- package/docs/ko/custom_domains.md +8 -2
- package/docs/ko/custom_url_rewrites.md +8 -2
- package/docs/ko/intlayer_with_analog.md +5 -1
- package/docs/ko/intlayer_with_astro.md +3 -1
- package/docs/ko/intlayer_with_astro_lit.md +3 -1
- package/docs/ko/intlayer_with_astro_preact.md +3 -1
- package/docs/ko/intlayer_with_astro_react.md +3 -1
- package/docs/ko/intlayer_with_astro_solid.md +3 -1
- package/docs/ko/intlayer_with_astro_svelte.md +3 -1
- package/docs/ko/intlayer_with_astro_vanilla.md +3 -1
- package/docs/ko/intlayer_with_astro_vue.md +3 -1
- package/docs/ko/intlayer_with_lynx+react.md +6 -1
- package/docs/ko/intlayer_with_nextjs_16.md +2 -0
- package/docs/ko/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/ko/intlayer_with_react_native+expo.md +6 -1
- package/docs/ko/intlayer_with_react_router_v7.md +3 -1
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/ko/intlayer_with_storybook.md +7 -1
- package/docs/ko/intlayer_with_svelte_kit.md +9 -4
- package/docs/ko/intlayer_with_tanstack+solid.md +18 -11
- package/docs/ko/intlayer_with_tanstack.md +17 -8
- package/docs/ko/intlayer_with_vite+lit.md +13 -4
- package/docs/ko/intlayer_with_vite+preact.md +3 -1
- package/docs/ko/intlayer_with_vite+react.md +3 -1
- package/docs/ko/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/ko/intlayer_with_vite+svelte.md +5 -3
- package/docs/ko/intlayer_with_vite+vanilla.md +16 -5
- package/docs/ko/intlayer_with_vite+vue.md +9 -4
- package/docs/ko/packages/@intlayer_babel/export.md +131 -0
- package/docs/ko/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/ko/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/ko/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/ko/releases/v9.md +23 -1
- package/docs/nl/custom_domains.md +8 -2
- package/docs/nl/intlayer_with_storybook.md +7 -1
- package/docs/nl/intlayer_with_vite+lit.md +8 -2
- package/docs/nl/intlayer_with_vite+vanilla.md +16 -5
- package/docs/pl/compiler.md +6 -3
- package/docs/pl/custom_domains.md +8 -2
- package/docs/pl/custom_url_rewrites.md +8 -2
- package/docs/pl/intlayer_with_analog.md +5 -1
- package/docs/pl/intlayer_with_astro.md +6 -4
- package/docs/pl/intlayer_with_astro_lit.md +3 -1
- package/docs/pl/intlayer_with_astro_preact.md +3 -1
- package/docs/pl/intlayer_with_astro_react.md +3 -1
- package/docs/pl/intlayer_with_astro_solid.md +3 -1
- package/docs/pl/intlayer_with_astro_svelte.md +3 -1
- package/docs/pl/intlayer_with_astro_vanilla.md +3 -1
- package/docs/pl/intlayer_with_astro_vue.md +3 -1
- package/docs/pl/intlayer_with_lynx+react.md +6 -1
- package/docs/pl/intlayer_with_nextjs_16.md +2 -0
- package/docs/pl/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/pl/intlayer_with_react_native+expo.md +6 -1
- package/docs/pl/intlayer_with_react_router_v7.md +3 -1
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/pl/intlayer_with_storybook.md +7 -1
- package/docs/pl/intlayer_with_svelte_kit.md +9 -4
- package/docs/pl/intlayer_with_tanstack+solid.md +18 -9
- package/docs/pl/intlayer_with_tanstack.md +17 -8
- package/docs/pl/intlayer_with_vite+lit.md +8 -2
- package/docs/pl/intlayer_with_vite+preact.md +3 -1
- package/docs/pl/intlayer_with_vite+react.md +9 -4
- package/docs/pl/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/pl/intlayer_with_vite+solid.md +3 -1
- package/docs/pl/intlayer_with_vite+svelte.md +4 -2
- package/docs/pl/intlayer_with_vite+vanilla.md +16 -5
- package/docs/pl/intlayer_with_vite+vue.md +9 -4
- package/docs/pl/packages/@intlayer_babel/export.md +131 -0
- package/docs/pl/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/pl/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/pl/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/pl/releases/v9.md +23 -1
- package/docs/pt/compiler.md +6 -3
- package/docs/pt/custom_domains.md +8 -2
- package/docs/pt/custom_url_rewrites.md +8 -2
- package/docs/pt/intlayer_with_analog.md +5 -1
- package/docs/pt/intlayer_with_astro.md +6 -4
- package/docs/pt/intlayer_with_astro_lit.md +3 -1
- package/docs/pt/intlayer_with_astro_preact.md +3 -1
- package/docs/pt/intlayer_with_astro_react.md +3 -1
- package/docs/pt/intlayer_with_astro_solid.md +3 -1
- package/docs/pt/intlayer_with_astro_svelte.md +3 -1
- package/docs/pt/intlayer_with_astro_vanilla.md +3 -1
- package/docs/pt/intlayer_with_astro_vue.md +3 -1
- package/docs/pt/intlayer_with_lynx+react.md +6 -1
- package/docs/pt/intlayer_with_nextjs_16.md +2 -0
- package/docs/pt/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/pt/intlayer_with_react_native+expo.md +6 -1
- package/docs/pt/intlayer_with_react_router_v7.md +8 -3
- package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/pt/intlayer_with_storybook.md +7 -1
- package/docs/pt/intlayer_with_svelte_kit.md +9 -4
- package/docs/pt/intlayer_with_tanstack+solid.md +18 -9
- package/docs/pt/intlayer_with_tanstack.md +17 -8
- package/docs/pt/intlayer_with_vite+lit.md +13 -4
- package/docs/pt/intlayer_with_vite+preact.md +3 -1
- package/docs/pt/intlayer_with_vite+react.md +9 -4
- package/docs/pt/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/pt/intlayer_with_vite+solid.md +3 -1
- package/docs/pt/intlayer_with_vite+svelte.md +4 -2
- package/docs/pt/intlayer_with_vite+vanilla.md +16 -5
- package/docs/pt/intlayer_with_vite+vue.md +9 -4
- package/docs/pt/packages/@intlayer_babel/export.md +131 -0
- package/docs/pt/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/pt/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/pt/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/pt/releases/v9.md +23 -1
- package/docs/ru/compiler.md +6 -3
- package/docs/ru/custom_domains.md +8 -2
- package/docs/ru/custom_url_rewrites.md +8 -2
- package/docs/ru/intlayer_with_analog.md +5 -1
- package/docs/ru/intlayer_with_astro.md +3 -1
- package/docs/ru/intlayer_with_astro_lit.md +3 -1
- package/docs/ru/intlayer_with_astro_preact.md +3 -1
- package/docs/ru/intlayer_with_astro_react.md +3 -1
- package/docs/ru/intlayer_with_astro_solid.md +3 -1
- package/docs/ru/intlayer_with_astro_svelte.md +3 -1
- package/docs/ru/intlayer_with_astro_vanilla.md +3 -1
- package/docs/ru/intlayer_with_astro_vue.md +3 -1
- package/docs/ru/intlayer_with_lynx+react.md +6 -1
- package/docs/ru/intlayer_with_nextjs_16.md +2 -0
- package/docs/ru/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/ru/intlayer_with_react_native+expo.md +6 -1
- package/docs/ru/intlayer_with_react_router_v7.md +3 -1
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/ru/intlayer_with_storybook.md +7 -1
- package/docs/ru/intlayer_with_svelte_kit.md +9 -4
- package/docs/ru/intlayer_with_tanstack+solid.md +18 -11
- package/docs/ru/intlayer_with_tanstack.md +17 -8
- package/docs/ru/intlayer_with_vite+lit.md +13 -4
- package/docs/ru/intlayer_with_vite+preact.md +3 -1
- package/docs/ru/intlayer_with_vite+react.md +9 -4
- package/docs/ru/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/ru/intlayer_with_vite+solid.md +3 -1
- package/docs/ru/intlayer_with_vite+svelte.md +4 -2
- package/docs/ru/intlayer_with_vite+vanilla.md +16 -5
- package/docs/ru/intlayer_with_vite+vue.md +9 -4
- package/docs/ru/packages/@intlayer_babel/export.md +131 -0
- package/docs/ru/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/ru/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/ru/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/ru/releases/v9.md +23 -1
- package/docs/tr/compiler.md +6 -3
- package/docs/tr/custom_domains.md +8 -2
- package/docs/tr/custom_url_rewrites.md +8 -2
- package/docs/tr/intlayer_with_analog.md +5 -1
- package/docs/tr/intlayer_with_astro_lit.md +3 -1
- package/docs/tr/intlayer_with_astro_preact.md +3 -1
- package/docs/tr/intlayer_with_astro_react.md +3 -1
- package/docs/tr/intlayer_with_astro_solid.md +3 -1
- package/docs/tr/intlayer_with_astro_svelte.md +3 -1
- package/docs/tr/intlayer_with_astro_vanilla.md +3 -1
- package/docs/tr/intlayer_with_astro_vue.md +3 -1
- package/docs/tr/intlayer_with_lynx+react.md +6 -1
- package/docs/tr/intlayer_with_nextjs_16.md +2 -0
- package/docs/tr/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/tr/intlayer_with_react_native+expo.md +6 -1
- package/docs/tr/intlayer_with_react_router_v7.md +3 -1
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/tr/intlayer_with_storybook.md +7 -1
- package/docs/tr/intlayer_with_svelte_kit.md +9 -4
- package/docs/tr/intlayer_with_tanstack+solid.md +18 -11
- package/docs/tr/intlayer_with_tanstack.md +17 -8
- package/docs/tr/intlayer_with_vite+lit.md +8 -2
- package/docs/tr/intlayer_with_vite+preact.md +3 -1
- package/docs/tr/intlayer_with_vite+react.md +9 -4
- package/docs/tr/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/tr/intlayer_with_vite+solid.md +3 -1
- package/docs/tr/intlayer_with_vite+svelte.md +4 -2
- package/docs/tr/intlayer_with_vite+vanilla.md +16 -5
- package/docs/tr/intlayer_with_vite+vue.md +9 -4
- package/docs/tr/packages/@intlayer_babel/export.md +131 -0
- package/docs/tr/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/tr/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/tr/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/tr/releases/v9.md +23 -1
- package/docs/uk/compiler.md +6 -3
- package/docs/uk/custom_domains.md +8 -2
- package/docs/uk/custom_url_rewrites.md +8 -2
- package/docs/uk/intlayer_with_analog.md +5 -1
- package/docs/uk/intlayer_with_astro.md +3 -1
- package/docs/uk/intlayer_with_astro_lit.md +3 -1
- package/docs/uk/intlayer_with_astro_preact.md +3 -1
- package/docs/uk/intlayer_with_astro_react.md +3 -1
- package/docs/uk/intlayer_with_astro_solid.md +3 -1
- package/docs/uk/intlayer_with_astro_svelte.md +3 -1
- package/docs/uk/intlayer_with_astro_vanilla.md +3 -1
- package/docs/uk/intlayer_with_astro_vue.md +3 -1
- package/docs/uk/intlayer_with_lynx+react.md +6 -1
- package/docs/uk/intlayer_with_nextjs_16.md +2 -0
- package/docs/uk/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/uk/intlayer_with_react_native+expo.md +6 -1
- package/docs/uk/intlayer_with_react_router_v7.md +3 -1
- package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/uk/intlayer_with_storybook.md +7 -1
- package/docs/uk/intlayer_with_svelte_kit.md +9 -4
- package/docs/uk/intlayer_with_tanstack+solid.md +18 -11
- package/docs/uk/intlayer_with_tanstack.md +17 -8
- package/docs/uk/intlayer_with_vite+lit.md +8 -2
- package/docs/uk/intlayer_with_vite+preact.md +3 -1
- package/docs/uk/intlayer_with_vite+react.md +9 -4
- package/docs/uk/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/uk/intlayer_with_vite+solid.md +3 -1
- package/docs/uk/intlayer_with_vite+svelte.md +9 -4
- package/docs/uk/intlayer_with_vite+vanilla.md +16 -5
- package/docs/uk/intlayer_with_vite+vue.md +9 -4
- package/docs/uk/packages/@intlayer_babel/export.md +131 -0
- package/docs/uk/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/uk/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/uk/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/uk/releases/v9.md +23 -1
- package/docs/ur/custom_domains.md +8 -2
- package/docs/ur/intlayer_with_storybook.md +7 -1
- package/docs/ur/intlayer_with_vite+lit.md +8 -2
- package/docs/ur/intlayer_with_vite+vanilla.md +16 -5
- package/docs/vi/compiler.md +6 -3
- package/docs/vi/custom_domains.md +8 -2
- package/docs/vi/custom_url_rewrites.md +8 -2
- package/docs/vi/intlayer_with_analog.md +5 -1
- package/docs/vi/intlayer_with_astro.md +3 -1
- package/docs/vi/intlayer_with_astro_lit.md +3 -1
- package/docs/vi/intlayer_with_astro_preact.md +3 -1
- package/docs/vi/intlayer_with_astro_react.md +3 -1
- package/docs/vi/intlayer_with_astro_solid.md +3 -1
- package/docs/vi/intlayer_with_astro_svelte.md +3 -1
- package/docs/vi/intlayer_with_astro_vanilla.md +3 -1
- package/docs/vi/intlayer_with_astro_vue.md +3 -1
- package/docs/vi/intlayer_with_lynx+react.md +6 -1
- package/docs/vi/intlayer_with_nextjs_15.md +2 -0
- package/docs/vi/intlayer_with_nextjs_16.md +2 -0
- package/docs/vi/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/vi/intlayer_with_react_native+expo.md +6 -1
- package/docs/vi/intlayer_with_react_router_v7.md +3 -1
- package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +9 -4
- package/docs/vi/intlayer_with_storybook.md +7 -1
- package/docs/vi/intlayer_with_svelte_kit.md +9 -4
- package/docs/vi/intlayer_with_tanstack+solid.md +18 -11
- package/docs/vi/intlayer_with_tanstack.md +17 -8
- package/docs/vi/intlayer_with_vite+lit.md +8 -2
- package/docs/vi/intlayer_with_vite+preact.md +3 -1
- package/docs/vi/intlayer_with_vite+react.md +9 -4
- package/docs/vi/intlayer_with_vite+react_compiler.md +9 -2
- package/docs/vi/intlayer_with_vite+solid.md +3 -1
- package/docs/vi/intlayer_with_vite+svelte.md +9 -4
- package/docs/vi/intlayer_with_vite+vanilla.md +16 -5
- package/docs/vi/intlayer_with_vite+vue.md +9 -4
- package/docs/vi/packages/@intlayer_babel/export.md +131 -0
- package/docs/vi/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/vi/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/vi/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/vi/releases/v9.md +23 -1
- package/docs/zh/compiler.md +6 -3
- package/docs/zh/custom_domains.md +8 -2
- package/docs/zh/custom_url_rewrites.md +8 -2
- package/docs/zh/intlayer_with_astro.md +3 -1
- package/docs/zh/intlayer_with_astro_lit.md +3 -1
- package/docs/zh/intlayer_with_astro_preact.md +3 -1
- package/docs/zh/intlayer_with_astro_react.md +3 -1
- package/docs/zh/intlayer_with_astro_solid.md +3 -1
- package/docs/zh/intlayer_with_astro_svelte.md +3 -1
- package/docs/zh/intlayer_with_astro_vanilla.md +3 -1
- package/docs/zh/intlayer_with_astro_vue.md +3 -1
- package/docs/zh/intlayer_with_nextjs_16.md +2 -0
- package/docs/zh/intlayer_with_nextjs_compiler.md +2 -0
- package/docs/zh/intlayer_with_react_native+expo.md +6 -1
- package/docs/zh/intlayer_with_react_router_v7.md +3 -1
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +3 -1
- package/docs/zh/intlayer_with_storybook.md +7 -1
- package/docs/zh/intlayer_with_svelte_kit.md +9 -4
- package/docs/zh/intlayer_with_vite+preact.md +3 -1
- package/docs/zh/intlayer_with_vite+react.md +9 -4
- package/docs/zh/intlayer_with_vite+svelte.md +9 -4
- package/docs/zh/intlayer_with_vite+vue.md +9 -4
- package/docs/zh/packages/@intlayer_babel/export.md +131 -0
- package/docs/zh/packages/vite-intlayer/intlayerCompiler.md +120 -0
- package/docs/zh/packages/vite-intlayer/intlayerMinify.md +92 -0
- package/docs/zh/packages/vite-intlayer/intlayerProxy.md +172 -0
- package/docs/zh/releases/v9.md +23 -1
- package/package.json +6 -6
- package/src/generated/docs.entry.ts +80 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2026-06-25
|
|
3
|
+
updatedAt: 2026-06-25
|
|
4
|
+
title: intlayerMinify Vite-Plugin-Dokumentation | vite-intlayer
|
|
5
|
+
description: Vite-Plugin, das kompilierte Intlayer-Wörterbuch-JSON-Dateien minifiziert und optional Inhaltsfeldnamen maskiert, um die Bundle-Größe zu reduzieren.
|
|
6
|
+
keywords:
|
|
7
|
+
- intlayerMinify
|
|
8
|
+
- vite
|
|
9
|
+
- plugin
|
|
10
|
+
- minify
|
|
11
|
+
- bundle size
|
|
12
|
+
- dictionary
|
|
13
|
+
- internationalization
|
|
14
|
+
- i18n
|
|
15
|
+
slugs:
|
|
16
|
+
- doc
|
|
17
|
+
- packages
|
|
18
|
+
- vite-intlayer
|
|
19
|
+
- intlayerMinify
|
|
20
|
+
history:
|
|
21
|
+
- version: 9.0.0
|
|
22
|
+
date: 2026-06-25
|
|
23
|
+
changes: "Dokumentation initialisiert"
|
|
24
|
+
author: aymericzip
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# intlayerMinify
|
|
28
|
+
|
|
29
|
+
`intlayerMinify` ist ein Vite-Plugin, das kompilierte Wörterbuch-JSON-Dateien während eines Produktions-Builds minifiziert. Es entfernt alle unnötigen Leerzeichen und benennt in Kombination mit `intlayerPrune` optional Inhaltsfeldnamen in kurze alphabetische Aliase (`a`, `b`, `c`, …) um, um die Bundle-Größe weiter zu reduzieren.
|
|
30
|
+
|
|
31
|
+
> Das Plugin ist bereits automatisch enthalten und konfiguriert, wenn Sie [`intlayer()`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/packages/vite-intlayer/intlayer.md) verwenden. Sie müssen es nur dann manuell registrieren, wenn Sie den Plugin-Stack selbst zusammenstellen.
|
|
32
|
+
|
|
33
|
+
## Verwendung
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
// vite.config.ts
|
|
37
|
+
import { defineConfig } from "vite";
|
|
38
|
+
import { intlayerMinify, intlayerPrune } from "vite-intlayer";
|
|
39
|
+
import { createPruneContext } from "@intlayer/babel";
|
|
40
|
+
|
|
41
|
+
const pruneContext = createPruneContext();
|
|
42
|
+
|
|
43
|
+
export default defineConfig({
|
|
44
|
+
plugins: [
|
|
45
|
+
intlayerPrune(intlayerConfig, pruneContext),
|
|
46
|
+
intlayerMinify(intlayerConfig, pruneContext),
|
|
47
|
+
],
|
|
48
|
+
});
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Aktivierungsbedingungen
|
|
52
|
+
|
|
53
|
+
`intlayerMinify` ist **nur** aktiv, wenn alle drei folgenden Bedingungen erfüllt sind:
|
|
54
|
+
|
|
55
|
+
1. Der Vite-Befehl lautet `build` (nicht `serve` / dev).
|
|
56
|
+
2. `build.optimize` ist `true` (oder `undefined`, was standardmäßig `true` für Builds ist).
|
|
57
|
+
3. `build.minify` ist in Ihrer Intlayer-Konfiguration auf `true` gesetzt.
|
|
58
|
+
|
|
59
|
+
Es wird automatisch **deaktiviert**, wenn `editor.enabled` auf `true` gesetzt ist, da der Editor den vollständigen, für Menschen lesbaren Wörterbuchinhalt benötigt.
|
|
60
|
+
|
|
61
|
+
## Was wird minifiziert
|
|
62
|
+
|
|
63
|
+
Das Plugin zielt auf zwei Wörterbuchverzeichnisse ab (wie in `intlayer.system` aufgelöst):
|
|
64
|
+
|
|
65
|
+
- `dictionariesDir` — statische Wörterbücher für alle Sprachen (z. B. `.intlayer/dictionaries/*.json`)
|
|
66
|
+
- `dynamicDictionariesDir` — dynamische Wörterbücher pro Sprache
|
|
67
|
+
|
|
68
|
+
> Wörterbücher im Fetch-Modus (`fetchDictionariesDir`) werden **nie** minifiziert, da sie zur Laufzeit von einer Remote-API unter ihren ursprünglichen Feldnamen bereitgestellt werden. Das Umbenennen von Feldern würde eine Diskrepanz zwischen der Serverantwort und den clientseitigen Eigenschaftszugriffen verursachen.
|
|
69
|
+
|
|
70
|
+
## Feldnamen-Maskierung (Eigenschafts-Minifizierung)
|
|
71
|
+
|
|
72
|
+
Wenn `intlayerPrune` die Codebasis analysiert und `pruneContext.dictionaryKeyToFieldRenameMap` befüllt hat, benennt `intlayerMinify` auch Inhaltsfeldnamen in kurze Aliase um. Zum Beispiel:
|
|
73
|
+
|
|
74
|
+
```json
|
|
75
|
+
// vorher
|
|
76
|
+
{ "key": "myDict", "content": { "title": "Hello", "description": "World" } }
|
|
77
|
+
|
|
78
|
+
// nachher (mit Maskierung)
|
|
79
|
+
{ "key": "myDict", "content": { "a": "Hello", "b": "World" } }
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Die entsprechenden Eigenschaftszugriffe in den Quelldateien werden durch den Babel-Durchlauf in `intlayerOptimize` umbenannt, sodass das Laufzeitverhalten unverändert bleibt.
|
|
83
|
+
|
|
84
|
+
Interne Intlayer-Felder (`nodeType`, `translation` usw.) werden niemals umbenannt.
|
|
85
|
+
|
|
86
|
+
## Edge-Case-Wörterbücher
|
|
87
|
+
|
|
88
|
+
Wörterbücher, die in `pruneContext.dictionariesWithEdgeCases` gekennzeichnet sind (strukturelle Anomalien, die während der Prune-Phase festgestellt wurden), werden vollständig übersprungen — weder minifiziert noch maskiert —, um die Auslieferung fehlerhafter Daten zu vermeiden.
|
|
89
|
+
|
|
90
|
+
## Qualifizierte Gruppen (Sammlungen / Varianten / Meta-Einträge)
|
|
91
|
+
|
|
92
|
+
Bei Wörterbüchern mit einem `qualifierTypes`-Array (Sammlungen, Varianten und Meta-Einträge) behält das Plugin das `qualifierTypes`-Array und das `meta`-Side-Map wortwörtlich bei. Nur die `content`-Einträge werden in ihren Feldnamen maskiert. Die zusammengesetzten Schlüssel (die für den Selektor-Abgleich zur Laufzeit verwendet werden) werden niemals berührt.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2026-06-25
|
|
3
|
+
updatedAt: 2026-06-25
|
|
4
|
+
title: intlayerProxy Vite-Plugin-Dokumentation | vite-intlayer
|
|
5
|
+
description: Sprach-Routing-Middleware für Vite-Entwicklungs-/Vorschau-Server und Produktions-SSR. Verwaltet Spracherkennung, URL-Redirections und interne Rewrites.
|
|
6
|
+
keywords:
|
|
7
|
+
- intlayerProxy
|
|
8
|
+
- vite
|
|
9
|
+
- plugin
|
|
10
|
+
- middleware
|
|
11
|
+
- locale
|
|
12
|
+
- routing
|
|
13
|
+
- internationalization
|
|
14
|
+
- i18n
|
|
15
|
+
- SSR
|
|
16
|
+
slugs:
|
|
17
|
+
- doc
|
|
18
|
+
- packages
|
|
19
|
+
- vite-intlayer
|
|
20
|
+
- intlayerProxy
|
|
21
|
+
history:
|
|
22
|
+
- version: 9.0.0
|
|
23
|
+
date: 2026-06-25
|
|
24
|
+
changes: "configOptions in ein einzelnes Option-Objekt zusammengeführt; Proxy in intlayer() gebündelt"
|
|
25
|
+
author: aymericzip
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# intlayerProxy
|
|
29
|
+
|
|
30
|
+
`intlayerProxy` ist ein Vite-Plugin, das eine Sprach-Routing-Middleware für **jede Umgebung** registriert: Entwicklungs-Server, Vorschau-Server und Produktions-SSR (Nitro / TanStack Start).
|
|
31
|
+
|
|
32
|
+
> **Seit Intlayer v9** ist `intlayerProxy` automatisch im Hauptplugin [`intlayer()`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/packages/vite-intlayer/intlayer.md) enthalten und standardmäßig über `routing.enableProxy: true` aktiviert. Sie müssen es nur separat registrieren, wenn Sie eine Kontrolle auf niedrigerer Ebene benötigen oder es außerhalb des Standard-Setups von `intlayer()` verwenden.
|
|
33
|
+
|
|
34
|
+
## Verwendung
|
|
35
|
+
|
|
36
|
+
### Als Teil von `intlayer()` (empfohlen, v9+)
|
|
37
|
+
|
|
38
|
+
Übergeben Sie `proxy`-Optionen an das Hauptplugin, anstatt `intlayerProxy` separat zu registrieren:
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
// vite.config.ts
|
|
42
|
+
import { defineConfig } from "vite";
|
|
43
|
+
import { intlayer } from "vite-intlayer";
|
|
44
|
+
|
|
45
|
+
export default defineConfig({
|
|
46
|
+
plugins: [
|
|
47
|
+
intlayer({
|
|
48
|
+
proxy: {
|
|
49
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
50
|
+
},
|
|
51
|
+
}),
|
|
52
|
+
],
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Standalone (falls erforderlich)
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
// vite.config.ts
|
|
60
|
+
import { defineConfig } from "vite";
|
|
61
|
+
import { intlayer } from "vite-intlayer";
|
|
62
|
+
|
|
63
|
+
export default defineConfig({
|
|
64
|
+
plugins: [intlayer()],
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Optionen
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import type { IntlayerProxyPluginOptions } from "vite-intlayer";
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Alle Optionen sind optional und werden als einzelnes Objekt übergeben:
|
|
75
|
+
|
|
76
|
+
| Option | Typ | Beschreibung |
|
|
77
|
+
| --------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
78
|
+
| `ignore` | `(req: IncomingMessage) => boolean` | Prädikat, das Anfragen vom Sprach-Routing ausschließt. Gibt `true` zurück, um eine Anfrage zu überspringen (z. B. API-Routen, Health-Checks). |
|
|
79
|
+
| `configOptions` | `GetConfigurationOptions` | Intlayer-Konfigurations-Overrides, die an `getConfiguration()` weitergeleitet werden. Verwenden Sie dies, wenn der Proxy eine bestimmte Konfigurationsdatei lesen oder Werte überschreiben soll. |
|
|
80
|
+
|
|
81
|
+
### Beispiel
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
intlayerProxy({
|
|
85
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
86
|
+
configOptions: { configFile: "./config/intlayer.config.ts" },
|
|
87
|
+
});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## createIntlayerProxyHandler
|
|
91
|
+
|
|
92
|
+
`createIntlayerProxyHandler` erstellt eine eigenständige, Framework-agnostische Node.js-Middleware `(req, res, next)`, die die gesamte Sprach-Routing-Logik enthält. Sie ist nützlich in Umgebungen, in denen die Vite-Plugin-API nicht verfügbar ist (z. B. ein reiner Node.js-Server oder ein benutzerdefiniertes Nitro-Modul).
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { createIntlayerProxyHandler } from "vite-intlayer";
|
|
96
|
+
|
|
97
|
+
const handler = createIntlayerProxyHandler({
|
|
98
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
99
|
+
configOptions: { configFile: "./config/intlayer.config.ts" },
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// Express / Connect
|
|
103
|
+
app.use(handler);
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Produktions-SSR (TanStack Start / Nitro über h3)
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
// server/middleware/intlayerProxy.ts
|
|
110
|
+
import { fromNodeMiddleware } from "h3";
|
|
111
|
+
import { createIntlayerProxyHandler } from "vite-intlayer";
|
|
112
|
+
|
|
113
|
+
export default fromNodeMiddleware(
|
|
114
|
+
createIntlayerProxyHandler({
|
|
115
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
116
|
+
})
|
|
117
|
+
);
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Routing-Verhalten
|
|
121
|
+
|
|
122
|
+
Die Middleware spiegelt die Routing-Logik der `next-intlayer`-Middleware wider und unterstützt alle Intlayer-Routing-Modi.
|
|
123
|
+
|
|
124
|
+
### Routing-Modi
|
|
125
|
+
|
|
126
|
+
| Modus | URL im Browser sichtbar | Verhalten |
|
|
127
|
+
| --------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
128
|
+
| `prefix` | `/de/about` | Standard. Sprachpräfix in der URL. Die Standardsprache leitet auf die URL ohne Präfix um, es sei denn, `prefix-all` ist aktiv. |
|
|
129
|
+
| `prefix-all` | `/en/about`, `/de/about` | Alle Sprachen — einschließlich der Standardsprache — sind immer präfigiert. |
|
|
130
|
+
| `no-prefix` | `/about` | Keine Sprache in der URL. Die Sprache wird nur in Cookies gespeichert; URL-Rewrites erfolgen intern. |
|
|
131
|
+
| `search-params` | `/about?locale=de` | Sprache wird als Query-Parameter übergeben. Leitet um, um den `locale`-Parameter hinzuzufügen/zu aktualisieren, wenn er fehlt oder veraltet ist. |
|
|
132
|
+
|
|
133
|
+
### Erkennungspriorität
|
|
134
|
+
|
|
135
|
+
1. URL-Pfadpräfix (z. B. `/de/about` → `de`).
|
|
136
|
+
2. Cookie- / localStorage-Wert (`intlayer-locale`).
|
|
137
|
+
3. `Accept-Language`-Header.
|
|
138
|
+
4. `defaultLocale` aus der Konfiguration.
|
|
139
|
+
|
|
140
|
+
### Automatischer Bypass
|
|
141
|
+
|
|
142
|
+
Die Middleware leitet diese Anfragen immer direkt und ohne Sprachbehandlung weiter:
|
|
143
|
+
|
|
144
|
+
- Anfragen, die dem `ignore`-Prädikat entsprechen.
|
|
145
|
+
- `/node_modules/**`
|
|
146
|
+
- `/@**` – Vite-Interna (`@vite/`, `@fs/`, `@id/` usw.).
|
|
147
|
+
- `/_**` – Server-Interna (`__vite_ping`, `__manifest` usw.).
|
|
148
|
+
- Anfragen, deren Pfad mit einer Dateiendung endet (statische Assets). Wenn ein Sprachpräfix im Pfad eines statischen Assets vorhanden ist (z. B. `/de/logo.png`), wird es entfernt, damit die Datei korrekt ausgeliefert werden kann.
|
|
149
|
+
|
|
150
|
+
### Domain-Routing
|
|
151
|
+
|
|
152
|
+
Wenn `routing.domains` in Ihrer Intlayer-Konfiguration konfiguriert ist, verarbeitet die Middleware das domänenübergreifende Sprach-Routing:
|
|
153
|
+
|
|
154
|
+
- Eine Anfrage für `/zh/about` auf `intlayer.org` wird an `https://intlayer.zh/about` weitergeleitet, wenn `domains.zh = "intlayer.zh"`.
|
|
155
|
+
- Eine Anfrage an `intlayer.zh/about` wird intern in `/zh/about` umgeschrieben, sodass der Routing-Parameter `[locale]` befüllt wird.
|
|
156
|
+
|
|
157
|
+
### Schutz vor Redirect-Schleifen
|
|
158
|
+
|
|
159
|
+
Die Middleware verfolgt die Anzahl der Weiterleitungen pro `originalUrl → newUrl`-Paar innerhalb eines gleitenden 2-Sekunden-Fensters. Mehr als 10 Weiterleitungen innerhalb dieses Fensters geben eine `500`-Antwort mit einem beschreibenden Fehler zurück, anstatt ewig im Kreis zu leiten.
|
|
160
|
+
|
|
161
|
+
## Nitro / Produktions-SSR (automatische Injektion, v9+)
|
|
162
|
+
|
|
163
|
+
Wenn `intlayerProxy` als Vite-Plugin verwendet wird, trägt es eine `.nitro`-Eigenschaft. Das Build-Plugin `nitro/vite` liest diese Eigenschaft und fügt sie in `nitroConfig.modules` ein, sodass `intlayerNitroHandler` automatisch als Nitro-Server-Middleware registriert wird — für das Produktions-SSR ist keine manuelle Konfiguration erforderlich.
|
|
164
|
+
|
|
165
|
+
Der Nitro-Handler verwendet das Web Fetch API-Ereignismodell von h3 v2 (nicht `fromNodeMiddleware`), sodass er mit allen Nitro-Presets kompatibel ist: Node, Bun, Deno, Edge-Laufzeiten.
|
|
166
|
+
|
|
167
|
+
## Veraltete Aliase
|
|
168
|
+
|
|
169
|
+
| Veralteter Export | Ersatz |
|
|
170
|
+
| -------------------------- | --------------- |
|
|
171
|
+
| `intlayerMiddleware` | `intlayerProxy` |
|
|
172
|
+
| `intLayerMiddlewarePlugin` | `intlayerProxy` |
|
package/docs/de/releases/v9.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2026-06-14
|
|
3
|
-
updatedAt: 2026-06-
|
|
3
|
+
updatedAt: 2026-06-25
|
|
4
4
|
title: Neues Intlayer v9 – Was ist neu?
|
|
5
5
|
description: Entdecken Sie die Neuerungen in Intlayer v9. Einführung von Drop-in-Kompatibilitätspaketen für beliebte i18n-Bibliotheken und Unterstützung für Collections, Variants und Dynamic Records.
|
|
6
6
|
keywords:
|
|
@@ -252,6 +252,28 @@ Die eigenständigen `intlayerCompiler()` und `intlayerProxy()` Plugins bleiben f
|
|
|
252
252
|
|
|
253
253
|
---
|
|
254
254
|
|
|
255
|
+
## React Native: Importe aus einem einzigen Paket
|
|
256
|
+
|
|
257
|
+
In einer React Native- oder Expo-App müssen Sie nicht mehr beide Pakete `react-intlayer` und `react-native-intlayer` jonglieren. Das Paket `react-native-intlayer` **re-exportiert nun die vollständige `react-intlayer` API** (Hooks, Utilities sowie die Subpfade `/format`, `/html` und `/markdown`), und sein `IntlayerProvider` wendet automatisch die React Native Polyfills an.
|
|
258
|
+
|
|
259
|
+
Importieren Sie alles aus dem einzigen Paket `react-native-intlayer`:
|
|
260
|
+
|
|
261
|
+
```tsx
|
|
262
|
+
import {
|
|
263
|
+
IntlayerProvider,
|
|
264
|
+
useIntlayer,
|
|
265
|
+
useLocale,
|
|
266
|
+
} from "react-native-intlayer";
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
npm install intlayer react-native-intlayer
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
> Importe aus `react-intlayer` funktionieren weiterhin, aber `react-native-intlayer` ist nun der empfohlene einzige Einstiegspunkt für React Native — sein Provider liefert die Polyfills, die der weborientierte `react-intlayer`-Provider nicht enthält.
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
255
277
|
## Migrationshinweise von v8
|
|
256
278
|
|
|
257
279
|
Wenn Sie von v8 upgraden, beachten Sie, dass v9 keine Breaking Changes enthält. Hier sind jedoch die wichtigsten Änderungen:
|
package/docs/en/compiler.md
CHANGED
|
@@ -92,7 +92,11 @@ import { intlayer } from "vite-intlayer";
|
|
|
92
92
|
|
|
93
93
|
export default defineConfig({
|
|
94
94
|
plugins: [
|
|
95
|
-
intlayer(
|
|
95
|
+
intlayer({
|
|
96
|
+
proxy: {
|
|
97
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
98
|
+
},
|
|
99
|
+
}),
|
|
96
100
|
],
|
|
97
101
|
});
|
|
98
102
|
```
|
|
@@ -169,10 +169,16 @@ The `intlayerProxy` Vite plugin applies the same logic during development:
|
|
|
169
169
|
|
|
170
170
|
```typescript fileName="vite.config.ts"
|
|
171
171
|
import { defineConfig } from "vite";
|
|
172
|
-
import {
|
|
172
|
+
import { intlayer } from "vite-intlayer";
|
|
173
173
|
|
|
174
174
|
export default defineConfig({
|
|
175
|
-
plugins: [
|
|
175
|
+
plugins: [
|
|
176
|
+
intlayer({
|
|
177
|
+
proxy: {
|
|
178
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
179
|
+
},
|
|
180
|
+
}),
|
|
181
|
+
],
|
|
176
182
|
});
|
|
177
183
|
```
|
|
178
184
|
|
|
@@ -344,10 +344,16 @@ For SolidJS, Vue, and Svelte, the `intlayerProxy` Vite plugin manages the rewrit
|
|
|
344
344
|
|
|
345
345
|
```typescript fileName="vite.config.ts"
|
|
346
346
|
import { defineConfig } from "vite";
|
|
347
|
-
import {
|
|
347
|
+
import { intlayer } from "vite-intlayer";
|
|
348
348
|
|
|
349
349
|
export default defineConfig({
|
|
350
|
-
plugins: [
|
|
350
|
+
plugins: [
|
|
351
|
+
intlayer({
|
|
352
|
+
proxy: {
|
|
353
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
354
|
+
},
|
|
355
|
+
}),
|
|
356
|
+
],
|
|
351
357
|
});
|
|
352
358
|
```
|
|
353
359
|
|
|
@@ -207,7 +207,11 @@ import analog from "@analogjs/platform";
|
|
|
207
207
|
export default defineConfig(() => ({
|
|
208
208
|
plugins: [
|
|
209
209
|
analog(),
|
|
210
|
-
intlayer(
|
|
210
|
+
intlayer({
|
|
211
|
+
proxy: {
|
|
212
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
213
|
+
},
|
|
214
|
+
}),
|
|
211
215
|
],
|
|
212
216
|
}));
|
|
213
217
|
```
|
|
@@ -601,9 +601,9 @@ bun x intlayer extract
|
|
|
601
601
|
</Tab>
|
|
602
602
|
<Tab value='Babel compiler'>
|
|
603
603
|
|
|
604
|
-
|
|
604
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
605
605
|
|
|
606
|
-
|
|
606
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
607
607
|
|
|
608
608
|
```ts fileName="vite.config.ts"
|
|
609
609
|
import { defineConfig } from "vite";
|
|
@@ -605,9 +605,9 @@ bun x intlayer extract
|
|
|
605
605
|
</Tab>
|
|
606
606
|
<Tab value='Babel compiler'>
|
|
607
607
|
|
|
608
|
-
|
|
608
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
609
609
|
|
|
610
|
-
|
|
610
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
611
611
|
|
|
612
612
|
```ts fileName="vite.config.ts"
|
|
613
613
|
import { defineConfig } from "vite";
|
|
@@ -560,9 +560,9 @@ bun x intlayer extract
|
|
|
560
560
|
</Tab>
|
|
561
561
|
<Tab value='Babel compiler'>
|
|
562
562
|
|
|
563
|
-
|
|
563
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
564
564
|
|
|
565
|
-
|
|
565
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
566
566
|
|
|
567
567
|
```ts fileName="vite.config.ts"
|
|
568
568
|
import { defineConfig } from "vite";
|
|
@@ -557,9 +557,9 @@ bun x intlayer extract
|
|
|
557
557
|
</Tab>
|
|
558
558
|
<Tab value='Babel compiler'>
|
|
559
559
|
|
|
560
|
-
|
|
560
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
561
561
|
|
|
562
|
-
|
|
562
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
563
563
|
|
|
564
564
|
```ts fileName="vite.config.ts"
|
|
565
565
|
import { defineConfig } from "vite";
|
|
@@ -557,9 +557,9 @@ bun x intlayer extract
|
|
|
557
557
|
</Tab>
|
|
558
558
|
<Tab value='Babel compiler'>
|
|
559
559
|
|
|
560
|
-
|
|
560
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
561
561
|
|
|
562
|
-
|
|
562
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
563
563
|
|
|
564
564
|
```ts fileName="vite.config.ts"
|
|
565
565
|
import { defineConfig } from "vite";
|
|
@@ -561,9 +561,9 @@ bun x intlayer extract
|
|
|
561
561
|
</Tab>
|
|
562
562
|
<Tab value='Babel compiler'>
|
|
563
563
|
|
|
564
|
-
|
|
564
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
565
565
|
|
|
566
|
-
|
|
566
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
567
567
|
|
|
568
568
|
```ts fileName="vite.config.ts"
|
|
569
569
|
import { defineConfig } from "vite";
|
|
@@ -534,9 +534,9 @@ bun x intlayer extract
|
|
|
534
534
|
</Tab>
|
|
535
535
|
<Tab value='Babel compiler'>
|
|
536
536
|
|
|
537
|
-
|
|
537
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
538
538
|
|
|
539
|
-
|
|
539
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
540
540
|
|
|
541
541
|
```ts fileName="vite.config.ts"
|
|
542
542
|
import { defineConfig } from "vite";
|
|
@@ -571,9 +571,9 @@ bun x intlayer extract
|
|
|
571
571
|
</Tab>
|
|
572
572
|
<Tab value='Babel compiler'>
|
|
573
573
|
|
|
574
|
-
|
|
574
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
575
575
|
|
|
576
|
-
|
|
576
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
577
577
|
|
|
578
578
|
```ts fileName="vite.config.ts"
|
|
579
579
|
import { defineConfig } from "vite";
|
|
@@ -231,6 +231,8 @@ if (import.meta.webpackHot) {
|
|
|
231
231
|
Create **content declaration** files anywhere in your project (commonly within `src/`), using any of the extension formats that Intlayer supports:
|
|
232
232
|
|
|
233
233
|
- `.content.json`
|
|
234
|
+
- `.content.jsonc`
|
|
235
|
+
- `.content.json5`
|
|
234
236
|
- `.content.ts`
|
|
235
237
|
- `.content.tsx`
|
|
236
238
|
- `.content.js`
|
|
@@ -238,7 +240,10 @@ Create **content declaration** files anywhere in your project (commonly within `
|
|
|
238
240
|
- `.content.mjs`
|
|
239
241
|
- `.content.mjx`
|
|
240
242
|
- `.content.cjs`
|
|
241
|
-
- `.content.
|
|
243
|
+
- `.content.md`
|
|
244
|
+
- `.content.mdx`
|
|
245
|
+
- `.content.yaml`
|
|
246
|
+
- `.content.yml`
|
|
242
247
|
- etc.
|
|
243
248
|
|
|
244
249
|
Example:
|
|
@@ -1002,6 +1002,8 @@ bun x intlayer extract
|
|
|
1002
1002
|
</Tab>
|
|
1003
1003
|
<Tab value='Babel compiler'>
|
|
1004
1004
|
|
|
1005
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
1006
|
+
|
|
1005
1007
|
```bash packageManager="npm"
|
|
1006
1008
|
npm install @intlayer/babel --save-dev
|
|
1007
1009
|
```
|
|
@@ -595,6 +595,8 @@ bun x intlayer extract
|
|
|
595
595
|
</Tab>
|
|
596
596
|
<Tab value='Babel compiler'>
|
|
597
597
|
|
|
598
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
599
|
+
|
|
598
600
|
```bash packageManager="npm"
|
|
599
601
|
npm install @intlayer/babel --save-dev
|
|
600
602
|
```
|
|
@@ -261,6 +261,8 @@ export default RootLayout;
|
|
|
261
261
|
Create **content declaration** files anywhere in your project (commonly within `src/`), using any of the extension formats that Intlayer supports:
|
|
262
262
|
|
|
263
263
|
- `.content.json`
|
|
264
|
+
- `.content.jsonc`
|
|
265
|
+
- `.content.json5`
|
|
264
266
|
- `.content.ts`
|
|
265
267
|
- `.content.tsx`
|
|
266
268
|
- `.content.js`
|
|
@@ -268,7 +270,10 @@ Create **content declaration** files anywhere in your project (commonly within `
|
|
|
268
270
|
- `.content.mjs`
|
|
269
271
|
- `.content.mjx`
|
|
270
272
|
- `.content.cjs`
|
|
271
|
-
- `.content.
|
|
273
|
+
- `.content.md`
|
|
274
|
+
- `.content.mdx`
|
|
275
|
+
- `.content.yaml`
|
|
276
|
+
- `.content.yml`
|
|
272
277
|
- etc.
|
|
273
278
|
|
|
274
279
|
> **Expo Router (web): keep `.content.*` files out of the `app/` directory.** Expo Router treats every JavaScript/TypeScript file inside `app/` as a route. On web, its route discovery scans the filesystem directly and does **not** honor Metro's `resolver.blockList`, so a co-located `*.content.ts` is registered as a route. A file such as `app/(tabs)/_layout.content.ts` is even parsed as a layout (the `.content` part is read as a platform suffix), which collides with the real `_layout.tsx` and throws:
|
|
@@ -582,14 +582,17 @@ You can also use the `intlayerProxy` to add server-side routing to your applicat
|
|
|
582
582
|
```typescript {3,7} fileName="vite.config.ts"
|
|
583
583
|
import { defineConfig } from "vite";
|
|
584
584
|
import react from "@vitejs/plugin-react-swc";
|
|
585
|
-
import { intlayer
|
|
585
|
+
import { intlayer } from "vite-intlayer";
|
|
586
586
|
|
|
587
587
|
// https://vitejs.dev/config/
|
|
588
588
|
export default defineConfig({
|
|
589
589
|
plugins: [
|
|
590
|
-
intlayerProxy(), // should be placed first
|
|
591
590
|
react(),
|
|
592
|
-
intlayer(
|
|
591
|
+
intlayer({
|
|
592
|
+
proxy: {
|
|
593
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
594
|
+
},
|
|
595
|
+
}),
|
|
593
596
|
],
|
|
594
597
|
});
|
|
595
598
|
```
|
|
@@ -663,6 +666,8 @@ bun x intlayer extract
|
|
|
663
666
|
</Tab>
|
|
664
667
|
<Tab value='Babel compiler'>
|
|
665
668
|
|
|
669
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
670
|
+
|
|
666
671
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
667
672
|
|
|
668
673
|
```ts fileName="vite.config.ts"
|
|
@@ -631,14 +631,17 @@ You can also use the `intlayerProxy` to add server-side routing to your applicat
|
|
|
631
631
|
```typescript {3,7} fileName="vite.config.ts"
|
|
632
632
|
import { reactRouter } from "@react-router/dev/vite";
|
|
633
633
|
import { defineConfig } from "vite";
|
|
634
|
-
import { intlayer
|
|
634
|
+
import { intlayer } from "vite-intlayer";
|
|
635
635
|
|
|
636
636
|
export default defineConfig({
|
|
637
637
|
plugins: [
|
|
638
|
-
intlayerProxy(), // should be placed first
|
|
639
638
|
reactRouter(),
|
|
640
639
|
|
|
641
|
-
intlayer(
|
|
640
|
+
intlayer({
|
|
641
|
+
proxy: {
|
|
642
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
643
|
+
},
|
|
644
|
+
}),
|
|
642
645
|
],
|
|
643
646
|
});
|
|
644
647
|
```
|
|
@@ -712,6 +715,8 @@ bun x intlayer extract
|
|
|
712
715
|
</Tab>
|
|
713
716
|
<Tab value='Babel compiler'>
|
|
714
717
|
|
|
718
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
719
|
+
|
|
715
720
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
716
721
|
|
|
717
722
|
```ts fileName="vite.config.ts"
|
|
@@ -190,7 +190,13 @@ const config: StorybookConfig = {
|
|
|
190
190
|
} as const;
|
|
191
191
|
|
|
192
192
|
const viteConfig = defineConfig(() => ({
|
|
193
|
-
plugins: [
|
|
193
|
+
plugins: [
|
|
194
|
+
intlayer({
|
|
195
|
+
proxy: {
|
|
196
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
197
|
+
},
|
|
198
|
+
}),
|
|
199
|
+
],
|
|
194
200
|
}));
|
|
195
201
|
|
|
196
202
|
return mergeConfig(baseConfig, viteConfig(env));
|
|
@@ -620,14 +620,17 @@ To add a backend proxy to your SvelteKit application, you can use the `intlayerP
|
|
|
620
620
|
|
|
621
621
|
```ts fileName="vite.config.ts"
|
|
622
622
|
import { defineConfig } from "vite";
|
|
623
|
-
import { intlayer
|
|
623
|
+
import { intlayer } from "vite-intlayer";
|
|
624
624
|
import { sveltekit } from "@sveltejs/kit/vite";
|
|
625
625
|
|
|
626
626
|
// https://vitejs.dev/config/
|
|
627
627
|
export default defineConfig({
|
|
628
628
|
plugins: [
|
|
629
|
-
|
|
630
|
-
|
|
629
|
+
intlayer({
|
|
630
|
+
proxy: {
|
|
631
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
632
|
+
},
|
|
633
|
+
}),
|
|
631
634
|
sveltekit(),
|
|
632
635
|
],
|
|
633
636
|
});
|
|
@@ -729,9 +732,9 @@ bun x intlayer extract
|
|
|
729
732
|
</Tab>
|
|
730
733
|
<Tab value='Babel compiler'>
|
|
731
734
|
|
|
732
|
-
|
|
735
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
733
736
|
|
|
734
|
-
|
|
737
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
735
738
|
|
|
736
739
|
```ts fileName="vite.config.ts"
|
|
737
740
|
import { defineConfig } from "vite";
|