@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
|
@@ -667,6 +667,8 @@ bun x intlayer extract
|
|
|
667
667
|
</Tab>
|
|
668
668
|
<Tab value='Babelコンパイラ'>
|
|
669
669
|
|
|
670
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
671
|
+
|
|
670
672
|
`vite.config.ts` を更新して `intlayerCompiler` プラグインを含めます。
|
|
671
673
|
|
|
672
674
|
```ts fileName="vite.config.ts"
|
|
@@ -676,7 +678,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
676
678
|
export default defineConfig({
|
|
677
679
|
plugins: [
|
|
678
680
|
intlayer(),
|
|
679
|
-
intlayerCompiler(), //
|
|
681
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
680
682
|
],
|
|
681
683
|
});
|
|
682
684
|
```
|
|
@@ -173,7 +173,13 @@ const config: StorybookConfig = {
|
|
|
173
173
|
} as const;
|
|
174
174
|
|
|
175
175
|
const viteConfig = defineConfig(() => ({
|
|
176
|
-
plugins: [
|
|
176
|
+
plugins: [
|
|
177
|
+
intlayer({
|
|
178
|
+
proxy: {
|
|
179
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
180
|
+
},
|
|
181
|
+
}),
|
|
182
|
+
],
|
|
177
183
|
}));
|
|
178
184
|
|
|
179
185
|
return mergeConfig(baseConfig, viteConfig(env));
|
|
@@ -203,6 +203,8 @@ bun x intlayer extract
|
|
|
203
203
|
</Tab>
|
|
204
204
|
<Tab value='Babelコンパイラ'>
|
|
205
205
|
|
|
206
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
207
|
+
|
|
206
208
|
```bash packageManager="npm"
|
|
207
209
|
npm install @intlayer/babel --save-dev
|
|
208
210
|
```
|
|
@@ -211,11 +211,15 @@ export default defineConfig({
|
|
|
211
211
|
tanstackStart({
|
|
212
212
|
router: {
|
|
213
213
|
routeFileIgnorePattern:
|
|
214
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
214
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
215
215
|
},
|
|
216
216
|
}),
|
|
217
217
|
solidPlugin({ ssr: true }),
|
|
218
|
-
intlayer(
|
|
218
|
+
intlayer({
|
|
219
|
+
proxy: {
|
|
220
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
221
|
+
},
|
|
222
|
+
}),
|
|
219
223
|
],
|
|
220
224
|
});
|
|
221
225
|
```
|
|
@@ -551,22 +555,25 @@ const RootComponent: ParentComponent = (props) => {
|
|
|
551
555
|
|
|
552
556
|
> 本番環境で `intlayerProxy` を使用するには、`vite-intlayer` パッケージを `devDependencies` から `dependencies` に切り替える必要があることに注意してください。
|
|
553
557
|
|
|
554
|
-
```typescript
|
|
558
|
+
```typescript fileName="vite.config.ts"
|
|
555
559
|
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
556
560
|
import solid from "vite-plugin-solid";
|
|
557
561
|
import { nitro } from "nitro/vite";
|
|
558
562
|
import { defineConfig } from "vite";
|
|
559
|
-
import { intlayer
|
|
563
|
+
import { intlayer } from "vite-intlayer";
|
|
560
564
|
|
|
561
565
|
export default defineConfig({
|
|
562
566
|
plugins: [
|
|
563
|
-
intlayerProxy(), // Nitroを使用する場合、プロキシはサーバーの前に配置する必要があります
|
|
564
567
|
nitro(),
|
|
565
|
-
intlayer(
|
|
568
|
+
intlayer({
|
|
569
|
+
proxy: {
|
|
570
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
571
|
+
},
|
|
572
|
+
}),
|
|
566
573
|
tanstackStart({
|
|
567
574
|
router: {
|
|
568
575
|
routeFileIgnorePattern:
|
|
569
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
576
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
570
577
|
},
|
|
571
578
|
}),
|
|
572
579
|
solid(),
|
|
@@ -809,9 +816,9 @@ bun x intlayer extract
|
|
|
809
816
|
</Tab>
|
|
810
817
|
<Tab value='Babel compiler'>
|
|
811
818
|
|
|
812
|
-
`intlayerCompiler`
|
|
819
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
813
820
|
|
|
814
|
-
|
|
821
|
+
`intlayerCompiler` プラグインを含めるように `vite.config.ts` を更新します:
|
|
815
822
|
|
|
816
823
|
```ts fileName="vite.config.ts"
|
|
817
824
|
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
@@ -826,12 +833,12 @@ export default defineConfig({
|
|
|
826
833
|
tanstackStart({
|
|
827
834
|
router: {
|
|
828
835
|
routeFileIgnorePattern:
|
|
829
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
836
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
830
837
|
},
|
|
831
838
|
}),
|
|
832
839
|
solidPlugin({ ssr: true }),
|
|
833
840
|
intlayer(),
|
|
834
|
-
intlayerCompiler(),
|
|
841
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
835
842
|
],
|
|
836
843
|
});
|
|
837
844
|
```
|
|
@@ -228,11 +228,15 @@ import { intlayer } from "vite-intlayer";
|
|
|
228
228
|
const config = defineConfig({
|
|
229
229
|
plugins: [
|
|
230
230
|
nitro(),
|
|
231
|
-
intlayer(
|
|
231
|
+
intlayer({
|
|
232
|
+
proxy: {
|
|
233
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
234
|
+
},
|
|
235
|
+
}),
|
|
232
236
|
tanstackStart({
|
|
233
237
|
router: {
|
|
234
238
|
routeFileIgnorePattern:
|
|
235
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
239
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
236
240
|
},
|
|
237
241
|
}),
|
|
238
242
|
viteReact(),
|
|
@@ -677,22 +681,25 @@ function RootDocument({ children }: { children: ReactNode }) {
|
|
|
677
681
|
|
|
678
682
|
> `intlayerProxy`を本番環境で使用するには、`vite-intlayer`パッケージを`devDependencies`から`dependencies`に切り替える必要があることに注意してください。
|
|
679
683
|
|
|
680
|
-
```typescript
|
|
684
|
+
```typescript fileName="vite.config.ts"
|
|
681
685
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
682
686
|
import viteReact from "@vitejs/plugin-react";
|
|
683
687
|
import { nitro } from "nitro/vite";
|
|
684
688
|
import { defineConfig } from "vite";
|
|
685
|
-
import { intlayer
|
|
689
|
+
import { intlayer } from "vite-intlayer";
|
|
686
690
|
|
|
687
691
|
export default defineConfig({
|
|
688
692
|
plugins: [
|
|
689
|
-
intlayerProxy(), // Nitroを使用する場合、プロキシをサーバーの前に配置する必要があります
|
|
690
693
|
nitro(),
|
|
691
|
-
intlayer(
|
|
694
|
+
intlayer({
|
|
695
|
+
proxy: {
|
|
696
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
697
|
+
},
|
|
698
|
+
}),
|
|
692
699
|
tanstackStart({
|
|
693
700
|
router: {
|
|
694
701
|
routeFileIgnorePattern:
|
|
695
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
702
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
696
703
|
},
|
|
697
704
|
}),
|
|
698
705
|
viteReact(),
|
|
@@ -937,9 +944,9 @@ bun x intlayer extract
|
|
|
937
944
|
</Tab>
|
|
938
945
|
<Tab value='Babelコンパイラ'>
|
|
939
946
|
|
|
940
|
-
`
|
|
947
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
941
948
|
|
|
942
|
-
|
|
949
|
+
`vite.config.ts` を更新して `intlayerCompiler` プラグインを含めます:
|
|
943
950
|
|
|
944
951
|
```ts fileName="vite.config.ts"
|
|
945
952
|
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
@@ -951,15 +958,15 @@ import viteReact from "@vitejs/plugin-react";
|
|
|
951
958
|
export default defineConfig({
|
|
952
959
|
plugins: [
|
|
953
960
|
devtools(),
|
|
954
|
-
intlayerCompiler(),
|
|
955
961
|
tanstackStart({
|
|
956
962
|
router: {
|
|
957
963
|
routeFileIgnorePattern:
|
|
958
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
964
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
959
965
|
},
|
|
960
966
|
}),
|
|
961
967
|
viteReact(),
|
|
962
968
|
intlayer(),
|
|
969
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
963
970
|
],
|
|
964
971
|
});
|
|
965
972
|
```
|
|
@@ -188,7 +188,13 @@ import { intlayer } from "vite-intlayer";
|
|
|
188
188
|
|
|
189
189
|
// https://vitejs.dev/config/
|
|
190
190
|
export default defineConfig({
|
|
191
|
-
plugins: [
|
|
191
|
+
plugins: [
|
|
192
|
+
intlayer({
|
|
193
|
+
proxy: {
|
|
194
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
195
|
+
},
|
|
196
|
+
}),
|
|
197
|
+
],
|
|
192
198
|
});
|
|
193
199
|
```
|
|
194
200
|
|
|
@@ -457,12 +463,15 @@ export class MyElement extends LitElement {
|
|
|
457
463
|
|
|
458
464
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
459
465
|
import { defineConfig } from "vite";
|
|
460
|
-
import { intlayer
|
|
466
|
+
import { intlayer } from "vite-intlayer";
|
|
461
467
|
|
|
462
468
|
export default defineConfig({
|
|
463
469
|
plugins: [
|
|
464
|
-
|
|
465
|
-
|
|
470
|
+
intlayer({
|
|
471
|
+
proxy: {
|
|
472
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
473
|
+
},
|
|
474
|
+
}),
|
|
466
475
|
],
|
|
467
476
|
});
|
|
468
477
|
```
|
|
@@ -522,15 +522,18 @@ export default App;
|
|
|
522
522
|
|
|
523
523
|
```typescript {3,7} fileName="vite.config.ts"
|
|
524
524
|
import { defineConfig } from "vite";
|
|
525
|
-
import { intlayer
|
|
525
|
+
import { intlayer } from "vite-intlayer";
|
|
526
526
|
import preact from "@preact/preset-vite";
|
|
527
527
|
|
|
528
528
|
// https://vitejs.dev/config/
|
|
529
529
|
export default defineConfig({
|
|
530
530
|
plugins: [
|
|
531
|
-
intlayerProxy(), // 最初に配置する必要があります
|
|
532
531
|
preact(),
|
|
533
|
-
intlayer(
|
|
532
|
+
intlayer({
|
|
533
|
+
proxy: {
|
|
534
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
535
|
+
},
|
|
536
|
+
}),
|
|
534
537
|
],
|
|
535
538
|
});
|
|
536
539
|
```
|
|
@@ -813,6 +816,8 @@ bun x intlayer extract
|
|
|
813
816
|
</Tab>
|
|
814
817
|
<Tab value='Babelコンパイラ'>
|
|
815
818
|
|
|
819
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
820
|
+
|
|
816
821
|
```bash packageManager="npm"
|
|
817
822
|
npm install @intlayer/babel --save-dev
|
|
818
823
|
```
|
|
@@ -311,6 +311,8 @@ bun x intlayer extract
|
|
|
311
311
|
</Tab>
|
|
312
312
|
<Tab value='Babel compiler'>
|
|
313
313
|
|
|
314
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
315
|
+
|
|
314
316
|
`vite.config.ts` を更新して `intlayerCompiler` プラグインを含めます:
|
|
315
317
|
|
|
316
318
|
```ts fileName="vite.config.ts"
|
|
@@ -320,7 +322,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
320
322
|
export default defineConfig({
|
|
321
323
|
plugins: [
|
|
322
324
|
intlayer(),
|
|
323
|
-
intlayerCompiler(), //
|
|
325
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
324
326
|
],
|
|
325
327
|
});
|
|
326
328
|
```
|
|
@@ -213,11 +213,18 @@ export default config;
|
|
|
213
213
|
```typescript fileName="vite.config.ts"
|
|
214
214
|
import { defineConfig } from "vite";
|
|
215
215
|
import react from "@vitejs/plugin-react-swc";
|
|
216
|
-
import { intlayer
|
|
216
|
+
import { intlayer } from "vite-intlayer";
|
|
217
217
|
|
|
218
218
|
// https://vitejs.dev/config/
|
|
219
219
|
export default defineConfig({
|
|
220
|
-
plugins: [
|
|
220
|
+
plugins: [
|
|
221
|
+
react(),
|
|
222
|
+
intlayer({
|
|
223
|
+
proxy: {
|
|
224
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
225
|
+
},
|
|
226
|
+
}),
|
|
227
|
+
],
|
|
221
228
|
});
|
|
222
229
|
```
|
|
223
230
|
|
|
@@ -599,6 +599,8 @@ bun x intlayer extract
|
|
|
599
599
|
</Tab>
|
|
600
600
|
<Tab value='Babelコンパイラ'>
|
|
601
601
|
|
|
602
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
603
|
+
|
|
602
604
|
`vite.config.ts` を更新して `intlayerCompiler` プラグインを含めます。
|
|
603
605
|
|
|
604
606
|
```ts fileName="vite.config.ts"
|
|
@@ -608,7 +610,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
608
610
|
export default defineConfig({
|
|
609
611
|
plugins: [
|
|
610
612
|
intlayer(),
|
|
611
|
-
intlayerCompiler(), //
|
|
613
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
612
614
|
],
|
|
613
615
|
});
|
|
614
616
|
```
|
|
@@ -446,12 +446,12 @@ $: content = useIntlayer('app', locale); // ロケールに基づくコンテン
|
|
|
446
446
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
447
447
|
import { defineConfig } from "vite";
|
|
448
448
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
449
|
-
import { intlayer
|
|
449
|
+
import { intlayer } from "vite-intlayer";
|
|
450
450
|
|
|
451
451
|
typescript {3,7} fileName="vite.config.ts" codeFormat="typescript"
|
|
452
452
|
import { defineConfig } from "vite";
|
|
453
453
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
454
|
-
import { intlayer
|
|
454
|
+
import { intlayer } from "vite-intlayer";
|
|
455
455
|
|
|
456
456
|
// https://vitejs.dev/config/
|
|
457
457
|
export default defineConfig({
|
|
@@ -563,6 +563,8 @@ bun x intlayer extract
|
|
|
563
563
|
</Tab>
|
|
564
564
|
<Tab value='Babelコンパイラ'>
|
|
565
565
|
|
|
566
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
567
|
+
|
|
566
568
|
`vite.config.ts` を更新して `intlayerCompiler` プラグインを含めます。
|
|
567
569
|
|
|
568
570
|
```ts fileName="vite.config.ts"
|
|
@@ -572,7 +574,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
572
574
|
export default defineConfig({
|
|
573
575
|
plugins: [
|
|
574
576
|
intlayer(),
|
|
575
|
-
intlayerCompiler(), //
|
|
577
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
576
578
|
],
|
|
577
579
|
});
|
|
578
580
|
```
|
|
@@ -188,7 +188,13 @@ import { intlayer } from "vite-intlayer";
|
|
|
188
188
|
|
|
189
189
|
// https://vitejs.dev/config/
|
|
190
190
|
export default defineConfig({
|
|
191
|
-
plugins: [
|
|
191
|
+
plugins: [
|
|
192
|
+
intlayer({
|
|
193
|
+
proxy: {
|
|
194
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
195
|
+
},
|
|
196
|
+
}),
|
|
197
|
+
],
|
|
192
198
|
});
|
|
193
199
|
```
|
|
194
200
|
|
|
@@ -449,12 +455,15 @@ document.querySelector<HTMLDivElement>(".edit-note")!.innerHTML =
|
|
|
449
455
|
|
|
450
456
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
451
457
|
import { defineConfig } from "vite";
|
|
452
|
-
import { intlayer
|
|
458
|
+
import { intlayer } from "vite-intlayer";
|
|
453
459
|
|
|
454
460
|
export default defineConfig({
|
|
455
461
|
plugins: [
|
|
456
|
-
|
|
457
|
-
|
|
462
|
+
intlayer({
|
|
463
|
+
proxy: {
|
|
464
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
465
|
+
},
|
|
466
|
+
}),
|
|
458
467
|
],
|
|
459
468
|
});
|
|
460
469
|
```
|
|
@@ -586,6 +595,8 @@ bun x intlayer extract
|
|
|
586
595
|
</Tab>
|
|
587
596
|
<Tab value='Babel コンパイラ'>
|
|
588
597
|
|
|
598
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
599
|
+
|
|
589
600
|
`intlayerCompiler` プラグインを含めるように `vite.config.ts` を更新します:
|
|
590
601
|
|
|
591
602
|
```ts fileName="vite.config.ts"
|
|
@@ -595,7 +606,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
595
606
|
export default defineConfig({
|
|
596
607
|
plugins: [
|
|
597
608
|
intlayer(),
|
|
598
|
-
intlayerCompiler(), //
|
|
609
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
599
610
|
],
|
|
600
611
|
});
|
|
601
612
|
```
|
|
@@ -625,14 +625,17 @@ import LocaleSwitcher from "@components/LocaleSwitcher.vue";
|
|
|
625
625
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
626
626
|
import { defineConfig } from "vite";
|
|
627
627
|
import vue from "@vitejs/plugin-vue";
|
|
628
|
-
import { intlayer
|
|
628
|
+
import { intlayer } from "vite-intlayer";
|
|
629
629
|
|
|
630
630
|
// https://vitejs.dev/config/
|
|
631
631
|
export default defineConfig({
|
|
632
632
|
plugins: [
|
|
633
|
-
intlayerProxy(), // should be placed first
|
|
634
633
|
vue(),
|
|
635
|
-
intlayer(
|
|
634
|
+
intlayer({
|
|
635
|
+
proxy: {
|
|
636
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
637
|
+
},
|
|
638
|
+
}),
|
|
636
639
|
],
|
|
637
640
|
});
|
|
638
641
|
```
|
|
@@ -960,6 +963,8 @@ bun x intlayer extract
|
|
|
960
963
|
</Tab>
|
|
961
964
|
<Tab value='Babel compiler'>
|
|
962
965
|
|
|
966
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
967
|
+
|
|
963
968
|
`vite.config.ts` を更新して `intlayerCompiler` プラグインを含めます:
|
|
964
969
|
|
|
965
970
|
```ts fileName="vite.config.ts"
|
|
@@ -969,7 +974,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
969
974
|
export default defineConfig({
|
|
970
975
|
plugins: [
|
|
971
976
|
intlayer(),
|
|
972
|
-
intlayerCompiler(), //
|
|
977
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
973
978
|
],
|
|
974
979
|
});
|
|
975
980
|
```
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2026-06-25
|
|
3
|
+
updatedAt: 2026-06-25
|
|
4
|
+
title: "@intlayer/babel パッケージドキュメント"
|
|
5
|
+
description: コンテンツ抽出、インポートの最適化、未使用フィールドのクリーンアップ、ビルド中のフィールド名の難読化を処理するIntlayer用のBabelプラグイン。
|
|
6
|
+
keywords:
|
|
7
|
+
- "@intlayer/babel"
|
|
8
|
+
- babel
|
|
9
|
+
- plugin
|
|
10
|
+
- 国際化
|
|
11
|
+
- i18n
|
|
12
|
+
- コンパイラ
|
|
13
|
+
- 最適化
|
|
14
|
+
- クリーンアップ
|
|
15
|
+
- ミニファイ
|
|
16
|
+
slugs:
|
|
17
|
+
- doc
|
|
18
|
+
- packages
|
|
19
|
+
- "@intlayer/babel"
|
|
20
|
+
- export
|
|
21
|
+
history:
|
|
22
|
+
- version: 9.0.0
|
|
23
|
+
date: 2026-06-25
|
|
24
|
+
changes: "すべてのエクスポートのドキュメントを統一"
|
|
25
|
+
author: aymericzip
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# @intlayer/babel パッケージ
|
|
29
|
+
|
|
30
|
+
`@intlayer/babel` パッケージは、Intlayer向けに特化した一連のBabelプラグインを提供します。これらのプラグインは、コンテンツ宣言の抽出、`useIntlayer` / `getIntlayer`呼び出しの最適化された辞書インポートへの書き換え、未使用フィールドのクリーンアップ、フィールド名の圧縮など、ビルドサイクル全体をカバーします。
|
|
31
|
+
|
|
32
|
+
## インストール
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install @intlayer/babel
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## エクスポート
|
|
39
|
+
|
|
40
|
+
インポート方法:
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import { ... } from "@intlayer/babel";
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
### プラグイン
|
|
49
|
+
|
|
50
|
+
| 関数 / クラス | 説明 |
|
|
51
|
+
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
52
|
+
| `intlayerExtractBabelPlugin` | ソースファイルから翻訳可能なコンテンツを抽出し、`useIntlayer` / `getIntlayer`フックを自動的に注入するBabelプラグイン。Next.jsおよびBabelベースのビルドツールでの使用向けに設計されています。 |
|
|
53
|
+
| `intlayerOptimizeBabelPlugin` | `useIntlayer`および`getIntlayer`呼び出しを変換し、そのインポートを最適化されたJSON辞書インポート(静的、動的、またはフェッチ経由)に書き換えるBabelプラグイン。 |
|
|
54
|
+
| `intlayerPurgeBabelPlugin` | ソースファイルを分析し、コンパイルされた辞書JSONファイルを書き換えて、未使用のフィールドを削除する(`build.purge`)か、短いアルファベットのエイリアスに名前を変更する(`build.minify`)Babelプラグイン。 |
|
|
55
|
+
| `intlayerMinifyBabelPlugin` | ミニファイ(圧縮)フェーズ中に割り当てられた短いフィールドエイリアス(例:`content.title` ← `content.a`)を使用するようにソースファイルを書き換えるBabelプラグイン。`intlayerPurgeBabelPlugin`に依存します。 |
|
|
56
|
+
| `makeFieldRenameBabelPlugin` | `PruneContext`に入力された`dictionaryKeyToFieldRenameMap`に従って、ソースファイル内の辞書コンテンツフィールドアクセス名を変更するBabelプラグインを生成するファクトリ関数。 |
|
|
57
|
+
| `makeUsageAnalyzerBabelPlugin` | ソースコード内での`useIntlayer` / `getIntlayer`の使用状況を分析し、共有`PruneContext`内にフィールドの使用状況データを集計するBabelプラグインを生成するファクトリ関数。 |
|
|
58
|
+
| `getSharedPruneContext` | 指定されたベースディレクトリに対する共有`PruneContext`オブジェクトを返すヘルパー関数。まだ初期化されていない場合は`null`を返します。 |
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
### プラグイン設定ユーティリティ
|
|
63
|
+
|
|
64
|
+
| 関数 | 説明 |
|
|
65
|
+
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
66
|
+
| `getExtractPluginOptions` | Intlayer設定を読み込み、`intlayerExtractBabelPlugin`で使用できる状態の`ExtractPluginOptions`を返します。 |
|
|
67
|
+
| `getOptimizePluginOptions` | Intlayer設定とコンパイル済み辞書を読み込み、`intlayerOptimizeBabelPlugin`で使用できる状態の`OptimizePluginOptions`を返します。 |
|
|
68
|
+
| `getPurgePluginOptions` | Intlayer設定を読み込み、`intlayerPurgeBabelPlugin`で使用できる状態の`PurgePluginOptions`を返します。 |
|
|
69
|
+
| `getMinifyPluginOptions` | Intlayer設定を読み込み、`intlayerMinifyBabelPlugin`で使用できる状態の`MinifyPluginOptions`を返します。 |
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### 型
|
|
74
|
+
|
|
75
|
+
| 型 | 説明 |
|
|
76
|
+
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
|
|
77
|
+
| `CompilerMode` | コンパイラモード:`'dev'` HMRサポート付き開発用、または`'build'`本番ビルド用。 |
|
|
78
|
+
| `ExtractPluginOptions` | `intlayerExtractBabelPlugin`のオプション:ファイルリスト、設定、`onExtract`コールバックなど。 |
|
|
79
|
+
| `ExtractResult` | 抽出結果:辞書キー、ファイルパス、コンテンツ、およびロケール。 |
|
|
80
|
+
| `OptimizePluginOptions` | `intlayerOptimizeBabelPlugin`のオプション:辞書パス、インポートモード、辞書ごとのモードマップなど。 |
|
|
81
|
+
| `PurgePluginOptions` | `intlayerPurgeBabelPlugin`のオプション:ベースディレクトリ、クリーンアップ/ミニファイ/最適化フラグ、コンポーネントファイルリスト。 |
|
|
82
|
+
| `MinifyPluginOptions` | `intlayerMinifyBabelPlugin`のオプション:ベースディレクトリ、ミニファイ/最適化/editorEnabledフラグ。 |
|
|
83
|
+
| `PruneContext` | 分析プラグインとクリーンアッププラグインの間で共有される状態:フィールド使用マップ、名前変更マップなど。 |
|
|
84
|
+
| `DictionaryFieldUsage` | 単一の辞書に対するフィールド使用結果:静的分析で確定できない場合は`Set<string>`または`'all'`。 |
|
|
85
|
+
| `NestedRenameEntry` | 名前変更ツリー内のノード:`shortName`と子ノードのマップ。 |
|
|
86
|
+
| `NestedRenameMap` | 名前変更ツリー内の1つのレベル:`Map<string, NestedRenameEntry>`。 |
|
|
87
|
+
| `CompatCallerConfig` | 互換アダプタ(compat-adapter)パッケージ用の互換使用アナライザ設定(呼び出し元名と処理オプション)。 |
|
|
88
|
+
| `ScriptBlock` | SFCファイル(VueまたはSvelte)から抽出されたスクリプトブロック:コンテンツ、開始オフセット、および終了オフセット。 |
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
### ユーティリティ関数
|
|
93
|
+
|
|
94
|
+
| 関数 | 説明 |
|
|
95
|
+
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| `generateShortFieldName` | 整数(ゼロから開始)を短いアルファベットの識別子に変換します:`0` → `'a'`、`25` → `'z'`、`26` → `'aa'`など。 |
|
|
97
|
+
| `buildNestedRenameMapFromContent` | コンパイルされた辞書のコンテンツ値から、Intlayerノード構造(translation、enumerationなど)を考慮して`NestedRenameMap`を再帰的に構築します。 |
|
|
98
|
+
| `createPruneContext` | デフォルト値で初期化された新しい空の`PruneContext`オブジェクトを作成します。 |
|
|
99
|
+
| `extractScriptBlocks` | 後続のBabel分析のために、SFCファイル(Vue / Svelte)から`<script>`ブロックを抽出します。 |
|
|
100
|
+
| `BABEL_PARSER_OPTIONS` | サポートされているフレームワーク(React/Vue/Svelte/Angular/...)をカバーするBabelパーサーオプションを表す定数。 |
|
|
101
|
+
| `INTLAYER_CALLER_NAMES` | オリジナルのIntlayer呼び出し元名の定数リスト:`['useIntlayer', 'getIntlayer']`。 |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 使用例
|
|
106
|
+
|
|
107
|
+
```js
|
|
108
|
+
// babel.config.js
|
|
109
|
+
const {
|
|
110
|
+
intlayerExtractBabelPlugin,
|
|
111
|
+
intlayerPurgeBabelPlugin,
|
|
112
|
+
intlayerMinifyBabelPlugin,
|
|
113
|
+
intlayerOptimizeBabelPlugin,
|
|
114
|
+
getExtractPluginOptions,
|
|
115
|
+
getPurgePluginOptions,
|
|
116
|
+
getMinifyPluginOptions,
|
|
117
|
+
getOptimizePluginOptions,
|
|
118
|
+
} = require("@intlayer/babel");
|
|
119
|
+
|
|
120
|
+
module.exports = {
|
|
121
|
+
presets: ["next/babel"],
|
|
122
|
+
plugins: [
|
|
123
|
+
[intlayerExtractBabelPlugin, getExtractPluginOptions()],
|
|
124
|
+
[intlayerPurgeBabelPlugin, getPurgePluginOptions()],
|
|
125
|
+
[intlayerMinifyBabelPlugin, getMinifyPluginOptions()],
|
|
126
|
+
[intlayerOptimizeBabelPlugin, getOptimizePluginOptions()],
|
|
127
|
+
],
|
|
128
|
+
};
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
> **注意:** `intlayerPurgeBabelPlugin`は、後者が前者の構築した名前変更マップを読み取るため、`intlayerMinifyBabelPlugin`よりも**前**に宣言する必要があります。また、`useIntlayer`呼び出しが書き換えられる前に辞書キーを検知できるようにするため、両方の前に`intlayerOptimizeBabelPlugin`を配置する必要があります。
|