@intlayer/docs 9.0.0-canary.6 → 9.0.0-canary.8
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 -20
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +80 -20
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +4 -1
- 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/dynamic_dictionaries/index.md +24 -18
- package/docs/ar/dynamic_dictionaries/variants.md +280 -22
- 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/plugins/sync-json.md +0 -1
- package/docs/ar/releases/v9.md +79 -12
- 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/dynamic_dictionaries/index.md +22 -22
- package/docs/de/dynamic_dictionaries/variants.md +272 -14
- 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/plugins/sync-json.md +0 -1
- package/docs/de/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +20 -14
- package/docs/en/dynamic_dictionaries/variants.md +266 -8
- 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/plugins/sync-json.md +0 -1
- package/docs/en/releases/v9.md +59 -12
- 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/dynamic_dictionaries/index.md +21 -15
- package/docs/en-GB/dynamic_dictionaries/variants.md +268 -10
- 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/plugins/sync-json.md +0 -1
- package/docs/en-GB/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +25 -19
- package/docs/es/dynamic_dictionaries/variants.md +275 -17
- 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/plugins/sync-json.md +0 -1
- package/docs/es/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +26 -20
- package/docs/fr/dynamic_dictionaries/variants.md +273 -15
- 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/plugins/sync-json.md +0 -1
- package/docs/fr/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +28 -22
- package/docs/hi/dynamic_dictionaries/variants.md +282 -24
- 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/plugins/sync-json.md +0 -1
- package/docs/hi/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +25 -19
- package/docs/id/dynamic_dictionaries/variants.md +274 -16
- 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/plugins/sync-json.md +0 -1
- package/docs/id/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +26 -20
- package/docs/it/dynamic_dictionaries/variants.md +273 -15
- 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/plugins/sync-json.md +0 -1
- package/docs/it/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +27 -21
- package/docs/ja/dynamic_dictionaries/variants.md +276 -18
- 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/plugins/sync-json.md +0 -1
- package/docs/ja/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +23 -17
- package/docs/ko/dynamic_dictionaries/variants.md +273 -15
- 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/plugins/sync-json.md +0 -1
- package/docs/ko/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +26 -20
- package/docs/pl/dynamic_dictionaries/variants.md +275 -17
- 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/plugins/sync-json.md +0 -1
- package/docs/pl/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +25 -19
- package/docs/pt/dynamic_dictionaries/variants.md +276 -18
- 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/plugins/sync-json.md +0 -1
- package/docs/pt/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +25 -19
- package/docs/ru/dynamic_dictionaries/variants.md +277 -19
- 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/plugins/sync-json.md +0 -1
- package/docs/ru/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +27 -21
- package/docs/tr/dynamic_dictionaries/variants.md +274 -16
- 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/plugins/sync-json.md +0 -1
- package/docs/tr/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +25 -19
- package/docs/uk/dynamic_dictionaries/variants.md +277 -19
- 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/plugins/sync-json.md +0 -1
- package/docs/uk/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +28 -22
- package/docs/vi/dynamic_dictionaries/variants.md +278 -20
- 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/plugins/sync-json.md +0 -1
- package/docs/vi/releases/v9.md +57 -12
- 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/dynamic_dictionaries/index.md +24 -18
- package/docs/zh/dynamic_dictionaries/variants.md +274 -16
- 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/plugins/sync-json.md +0 -1
- package/docs/zh/releases/v9.md +57 -12
- package/package.json +6 -6
- package/src/generated/docs.entry.ts +80 -20
- package/docs/ar/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/de/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/en/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/en-GB/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/es/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/fr/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/hi/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/id/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/it/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/ja/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/ko/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/pl/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/pt/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/ru/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/tr/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/uk/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/vi/dynamic_dictionaries/dynamic_content.md +0 -271
- package/docs/zh/dynamic_dictionaries/dynamic_content.md +0 -271
|
@@ -541,6 +541,8 @@ bun x intlayer extract
|
|
|
541
541
|
</Tab>
|
|
542
542
|
<Tab value='Babel 编译器'>
|
|
543
543
|
|
|
544
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
545
|
+
|
|
544
546
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
545
547
|
|
|
546
548
|
```ts fileName="vite.config.ts"
|
|
@@ -550,7 +552,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
550
552
|
export default defineConfig({
|
|
551
553
|
plugins: [
|
|
552
554
|
intlayer(),
|
|
553
|
-
intlayerCompiler(), //
|
|
555
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
554
556
|
],
|
|
555
557
|
});
|
|
556
558
|
```
|
|
@@ -541,6 +541,8 @@ bun x intlayer extract
|
|
|
541
541
|
</Tab>
|
|
542
542
|
<Tab value='Babel 编译器'>
|
|
543
543
|
|
|
544
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
545
|
+
|
|
544
546
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
545
547
|
|
|
546
548
|
```ts fileName="vite.config.ts"
|
|
@@ -550,7 +552,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
550
552
|
export default defineConfig({
|
|
551
553
|
plugins: [
|
|
552
554
|
intlayer(),
|
|
553
|
-
intlayerCompiler(), //
|
|
555
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
554
556
|
],
|
|
555
557
|
});
|
|
556
558
|
```
|
|
@@ -545,6 +545,8 @@ bun x intlayer extract
|
|
|
545
545
|
</Tab>
|
|
546
546
|
<Tab value='Babel 编译器'>
|
|
547
547
|
|
|
548
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
549
|
+
|
|
548
550
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
549
551
|
|
|
550
552
|
```ts fileName="vite.config.ts"
|
|
@@ -554,7 +556,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
554
556
|
export default defineConfig({
|
|
555
557
|
plugins: [
|
|
556
558
|
intlayer(),
|
|
557
|
-
intlayerCompiler(), //
|
|
559
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
558
560
|
],
|
|
559
561
|
});
|
|
560
562
|
```
|
|
@@ -519,6 +519,8 @@ bun x intlayer extract
|
|
|
519
519
|
</Tab>
|
|
520
520
|
<Tab value='Babel 编译器'>
|
|
521
521
|
|
|
522
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
523
|
+
|
|
522
524
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
523
525
|
|
|
524
526
|
```ts fileName="vite.config.ts"
|
|
@@ -528,7 +530,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
528
530
|
export default defineConfig({
|
|
529
531
|
plugins: [
|
|
530
532
|
intlayer(),
|
|
531
|
-
intlayerCompiler(), //
|
|
533
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
532
534
|
],
|
|
533
535
|
});
|
|
534
536
|
```
|
|
@@ -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
|
```
|
|
@@ -993,6 +993,8 @@ bun x intlayer extract
|
|
|
993
993
|
</Tab>
|
|
994
994
|
<Tab value='Babel 编译器'>
|
|
995
995
|
|
|
996
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
997
|
+
|
|
996
998
|
```bash packageManager="npm"
|
|
997
999
|
npm install @intlayer/babel --save-dev
|
|
998
1000
|
```
|
|
@@ -583,6 +583,8 @@ bun x intlayer extract
|
|
|
583
583
|
</Tab>
|
|
584
584
|
<Tab value='Babel 编译器'>
|
|
585
585
|
|
|
586
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
587
|
+
|
|
586
588
|
```bash packageManager="npm"
|
|
587
589
|
npm install @intlayer/babel --save-dev
|
|
588
590
|
```
|
|
@@ -258,6 +258,8 @@ export default RootLayout;
|
|
|
258
258
|
在项目中任意位置(通常在 `src/` 目录中)创建**内容声明**文件,使用 Intlayer 支持的任何扩展格式:
|
|
259
259
|
|
|
260
260
|
- `.content.json`
|
|
261
|
+
- `.content.jsonc`
|
|
262
|
+
- `.content.json5`
|
|
261
263
|
- `.content.ts`
|
|
262
264
|
- `.content.tsx`
|
|
263
265
|
- `.content.js`
|
|
@@ -265,7 +267,10 @@ export default RootLayout;
|
|
|
265
267
|
- `.content.mjs`
|
|
266
268
|
- `.content.mjx`
|
|
267
269
|
- `.content.cjs`
|
|
268
|
-
- `.content.
|
|
270
|
+
- `.content.md`
|
|
271
|
+
- `.content.mdx`
|
|
272
|
+
- `.content.yaml`
|
|
273
|
+
- `.content.yml`
|
|
269
274
|
- 等等
|
|
270
275
|
|
|
271
276
|
> **Expo Router (web): 请将 `.content.*` 文件保留在 `app/` 目录之外。** Expo Router 会将 `app/` 内的每个 JavaScript/TypeScript 文件视为一个路由。在 web 上,它的路由发现会直接扫描文件系统,并且 **不** 遵循 Metro 的 `resolver.blockList`,因此同位置的 `*.content.ts` 会被注册为一个路由。像 `app/(tabs)/_layout.content.ts` 这样的文件甚至会被解析为布局(`.content` 部分被读取为平台后缀),这会与实际的 `_layout.tsx` 发生冲突并抛出错误:
|
|
@@ -339,6 +339,8 @@ bun x intlayer extract
|
|
|
339
339
|
</Tab>
|
|
340
340
|
<Tab value='Babel 编译器'>
|
|
341
341
|
|
|
342
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
343
|
+
|
|
342
344
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
343
345
|
|
|
344
346
|
```ts fileName="vite.config.ts"
|
|
@@ -348,7 +350,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
348
350
|
export default defineConfig({
|
|
349
351
|
plugins: [
|
|
350
352
|
intlayer(),
|
|
351
|
-
intlayerCompiler(), //
|
|
353
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
352
354
|
],
|
|
353
355
|
});
|
|
354
356
|
```
|
|
@@ -294,6 +294,8 @@ bun x intlayer extract
|
|
|
294
294
|
</Tab>
|
|
295
295
|
<Tab value='Babel 编译器'>
|
|
296
296
|
|
|
297
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
298
|
+
|
|
297
299
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
298
300
|
|
|
299
301
|
```ts fileName="vite.config.ts"
|
|
@@ -303,7 +305,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
303
305
|
export default defineConfig({
|
|
304
306
|
plugins: [
|
|
305
307
|
intlayer(),
|
|
306
|
-
intlayerCompiler(), //
|
|
308
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
307
309
|
],
|
|
308
310
|
});
|
|
309
311
|
```
|
|
@@ -103,7 +103,13 @@ const config: StorybookConfig = {
|
|
|
103
103
|
} as const;
|
|
104
104
|
|
|
105
105
|
const viteConfig = defineConfig(() => ({
|
|
106
|
-
plugins: [
|
|
106
|
+
plugins: [
|
|
107
|
+
intlayer({
|
|
108
|
+
proxy: {
|
|
109
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
110
|
+
},
|
|
111
|
+
}),
|
|
112
|
+
],
|
|
107
113
|
}));
|
|
108
114
|
|
|
109
115
|
return mergeConfig(baseConfig, viteConfig(env));
|
|
@@ -229,14 +229,17 @@ goto(localizedPath); // 根据语言环境导航到 /en/about 或 /fr/about
|
|
|
229
229
|
|
|
230
230
|
```ts fileName="vite.config.ts"
|
|
231
231
|
import { defineConfig } from "vite";
|
|
232
|
-
import { intlayer
|
|
232
|
+
import { intlayer } from "vite-intlayer";
|
|
233
233
|
import { sveltekit } from "@sveltejs/kit/vite";
|
|
234
234
|
|
|
235
235
|
// https://vitejs.dev/config/
|
|
236
236
|
export default defineConfig({
|
|
237
237
|
plugins: [
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
intlayer({
|
|
239
|
+
proxy: {
|
|
240
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
241
|
+
},
|
|
242
|
+
}),
|
|
240
243
|
sveltekit(),
|
|
241
244
|
],],
|
|
242
245
|
});
|
|
@@ -334,6 +337,8 @@ bun x intlayer extract
|
|
|
334
337
|
</Tab>
|
|
335
338
|
<Tab value='Babel 编译器'>
|
|
336
339
|
|
|
340
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
341
|
+
|
|
337
342
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
338
343
|
|
|
339
344
|
```ts fileName="vite.config.ts"
|
|
@@ -343,7 +348,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
343
348
|
export default defineConfig({
|
|
344
349
|
plugins: [
|
|
345
350
|
intlayer(),
|
|
346
|
-
intlayerCompiler(), //
|
|
351
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
347
352
|
],
|
|
348
353
|
});
|
|
349
354
|
```
|
|
@@ -495,6 +495,8 @@ bun x intlayer extract
|
|
|
495
495
|
</Tab>
|
|
496
496
|
<Tab value='Babel 编译器'>
|
|
497
497
|
|
|
498
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
499
|
+
|
|
498
500
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
499
501
|
|
|
500
502
|
```ts fileName="vite.config.ts"
|
|
@@ -504,7 +506,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
504
506
|
export default defineConfig({
|
|
505
507
|
plugins: [
|
|
506
508
|
intlayer(),
|
|
507
|
-
intlayerCompiler(), //
|
|
509
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
508
510
|
],
|
|
509
511
|
});
|
|
510
512
|
```
|
|
@@ -225,14 +225,17 @@ const App: FC = () => (
|
|
|
225
225
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
226
226
|
import { defineConfig } from "vite";
|
|
227
227
|
import react from "@vitejs/plugin-react-swc";
|
|
228
|
-
import { intlayer
|
|
228
|
+
import { intlayer } from "vite-intlayer";
|
|
229
229
|
|
|
230
230
|
// https://vitejs.dev/config/
|
|
231
231
|
export default defineConfig({
|
|
232
232
|
plugins: [
|
|
233
|
-
intlayerProxy(), // should be placed first
|
|
234
233
|
react(),
|
|
235
|
-
intlayer(
|
|
234
|
+
intlayer({
|
|
235
|
+
proxy: {
|
|
236
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
237
|
+
},
|
|
238
|
+
}),
|
|
236
239
|
],
|
|
237
240
|
});
|
|
238
241
|
```
|
|
@@ -536,6 +539,8 @@ bun x intlayer extract
|
|
|
536
539
|
</Tab>
|
|
537
540
|
<Tab value='Babel 编译器'>
|
|
538
541
|
|
|
542
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
543
|
+
|
|
539
544
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
540
545
|
|
|
541
546
|
```ts fileName="vite.config.ts"
|
|
@@ -545,7 +550,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
545
550
|
export default defineConfig({
|
|
546
551
|
plugins: [
|
|
547
552
|
intlayer(),
|
|
548
|
-
intlayerCompiler(), //
|
|
553
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
549
554
|
],
|
|
550
555
|
});
|
|
551
556
|
```
|
|
@@ -460,14 +460,17 @@ $: content = useIntlayer('app', locale);
|
|
|
460
460
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
461
461
|
import { defineConfig } from "vite";
|
|
462
462
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
463
|
-
import { intlayer
|
|
463
|
+
import { intlayer } from "vite-intlayer";
|
|
464
464
|
|
|
465
465
|
// https://vitejs.dev/config/
|
|
466
466
|
export default defineConfig({
|
|
467
467
|
plugins: [
|
|
468
|
-
intlayerProxy(), // should be placed first
|
|
469
468
|
svelte(),
|
|
470
|
-
intlayer(
|
|
469
|
+
intlayer({
|
|
470
|
+
proxy: {
|
|
471
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
472
|
+
},
|
|
473
|
+
}),
|
|
471
474
|
],
|
|
472
475
|
});
|
|
473
476
|
```
|
|
@@ -598,6 +601,8 @@ bun x intlayer extract
|
|
|
598
601
|
</Tab>
|
|
599
602
|
<Tab value='Babel 编译器'>
|
|
600
603
|
|
|
604
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
605
|
+
|
|
601
606
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
602
607
|
|
|
603
608
|
```ts fileName="vite.config.ts"
|
|
@@ -607,7 +612,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
607
612
|
export default defineConfig({
|
|
608
613
|
plugins: [
|
|
609
614
|
intlayer(),
|
|
610
|
-
intlayerCompiler(), //
|
|
615
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
611
616
|
],
|
|
612
617
|
});
|
|
613
618
|
```
|
|
@@ -636,14 +636,17 @@ import LocaleSwitcher from "@components/LocaleSwitcher.vue";
|
|
|
636
636
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
637
637
|
import { defineConfig } from "vite";
|
|
638
638
|
import vue from "@vitejs/plugin-vue";
|
|
639
|
-
import { intlayer
|
|
639
|
+
import { intlayer } from "vite-intlayer";
|
|
640
640
|
|
|
641
641
|
// https://vitejs.dev/config/
|
|
642
642
|
export default defineConfig({
|
|
643
643
|
plugins: [
|
|
644
|
-
intlayerProxy(), // should be placed first
|
|
645
644
|
vue(),
|
|
646
|
-
intlayer(
|
|
645
|
+
intlayer({
|
|
646
|
+
proxy: {
|
|
647
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
648
|
+
},
|
|
649
|
+
}),
|
|
647
650
|
],
|
|
648
651
|
});
|
|
649
652
|
```
|
|
@@ -967,6 +970,8 @@ bun x intlayer extract
|
|
|
967
970
|
</Tab>
|
|
968
971
|
<Tab value='Babel 编译器'>
|
|
969
972
|
|
|
973
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
974
|
+
|
|
970
975
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
971
976
|
|
|
972
977
|
```ts fileName="vite.config.ts"
|
|
@@ -976,7 +981,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
976
981
|
export default defineConfig({
|
|
977
982
|
plugins: [
|
|
978
983
|
intlayer(),
|
|
979
|
-
intlayerCompiler(), //
|
|
984
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
980
985
|
],
|
|
981
986
|
});
|
|
982
987
|
```
|
|
@@ -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` | Babel 插件,可从源文件中提取可翻译内容并自动注入 `useIntlayer` / `getIntlayer` 钩子。设计用于 Next.js 和基于 Babel 的构建工具。 |
|
|
53
|
+
| `intlayerOptimizeBabelPlugin` | Babel 插件,可转换 `useIntlayer` 和 `getIntlayer` 调用,并将其导入重写为优化后的 JSON 字典导入(静态、动态或通过 fetch)。 |
|
|
54
|
+
| `intlayerPurgeBabelPlugin` | Babel 插件,可分析源文件并重写编译后的字典 JSON 文件,以移除未使用的字段(`build.purge`)或将其重命名为简短别名(`build.minify`)。 |
|
|
55
|
+
| `intlayerMinifyBabelPlugin` | Babel 插件,可重写源文件以使用在混淆/压缩阶段分配的简短字段别名(例如 `content.title` ← `content.a`)。依赖于 `intlayerPurgeBabelPlugin`。 |
|
|
56
|
+
| `makeFieldRenameBabelPlugin` | 工厂函数,用于生成一个 Babel 插件,根据 `PruneContext` 中填充的 `dictionaryKeyToFieldRenameMap` 重命名源文件中的字典内容字段访问。 |
|
|
57
|
+
| `makeUsageAnalyzerBabelPlugin` | 工厂函数,用于生成一个 Babel 插件,以分析源代码中 `useIntlayer` / `getIntlayer` 的使用情况,并在共享的 `PruneContext` 中聚合字段使用数据。 |
|
|
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` | 编译器模式:用于带 HMR 支持的开发的 `'dev'`,或用于生产环境构建的 `'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` | 重命名树中的一级:`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` | 从编译好的字典的内容值中递归构建 `NestedRenameMap`,并遵循 Intlayer 节点结构(translation、enumeration 等)。 |
|
|
98
|
+
| `createPruneContext` | 创建一个初始化为默认值的新的空 `PruneContext` 对象。 |
|
|
99
|
+
| `extractScriptBlocks` | 从 SFC 文件(Vue / Svelte)中提取 `<script>` 块,以便进行后续的 Babel 分析。 |
|
|
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` **之前**声明,因为后者需要读取前者构建的重命名映射。此外,这两者之前都必须先声明 `intlayerOptimizeBabelPlugin`,以便它在重写 `useIntlayer` 调用之前能够检测到字典键。
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2026-06-25
|
|
3
|
+
updatedAt: 2026-06-25
|
|
4
|
+
title: intlayerCompiler Vite 插件文档 | vite-intlayer
|
|
5
|
+
description: Vite 插件,用于在构建/转换时从组件文件中提取内联 Intlayer 内容声明并将其写入字典 JSON 文件。
|
|
6
|
+
keywords:
|
|
7
|
+
- intlayerCompiler
|
|
8
|
+
- vite
|
|
9
|
+
- 插件
|
|
10
|
+
- 编译器
|
|
11
|
+
- 内容
|
|
12
|
+
- 字典
|
|
13
|
+
- 国际化
|
|
14
|
+
- i18n
|
|
15
|
+
slugs:
|
|
16
|
+
- doc
|
|
17
|
+
- packages
|
|
18
|
+
- vite-intlayer
|
|
19
|
+
- intlayerCompiler
|
|
20
|
+
history:
|
|
21
|
+
- version: 9.0.0
|
|
22
|
+
date: 2026-06-25
|
|
23
|
+
changes: "集成到 intlayer() 中;初始化文档"
|
|
24
|
+
author: aymericzip
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# intlayerCompiler
|
|
28
|
+
|
|
29
|
+
`intlayerCompiler` 是一个 Vite 插件,它扫描组件源文件以查找**内联 Intlayer 内容声明**(即直接在组件内部定义的内容,而不是在单独的 `.content.ts` 文件中),并在转换(transform)阶段将它们写入字典 JSON 文件中。
|
|
30
|
+
|
|
31
|
+
> **自 Intlayer v9 起**,当您的 Intlayer 配置中同时设置了 `compiler.enabled` 为 `true` 且设置了 `compiler.output` 时,`intlayerCompiler` 会自动包含在主 [`intlayer()`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/vite-intlayer/intlayer.md) 插件中。只有当您希望完全控制编译器特定配置时,才需要单独注册它。
|
|
32
|
+
|
|
33
|
+
## 用法
|
|
34
|
+
|
|
35
|
+
### 作为 `intlayer()` 的一部分(推荐,v9+)
|
|
36
|
+
|
|
37
|
+
通过您的 Intlayer 配置启用编译器:
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
// intlayer.config.ts
|
|
41
|
+
import { defineConfig } from "intlayer";
|
|
42
|
+
|
|
43
|
+
export default defineConfig({
|
|
44
|
+
compiler: {
|
|
45
|
+
enabled: true,
|
|
46
|
+
output: "./src/dictionaries", // 提取的字典写入的位置
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
然后使用标准插件,无需额外交册:
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
// vite.config.ts
|
|
55
|
+
import { defineConfig } from "vite";
|
|
56
|
+
import { intlayer } from "vite-intlayer";
|
|
57
|
+
|
|
58
|
+
export default defineConfig({
|
|
59
|
+
plugins: [intlayer()],
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### 独立使用(需要时)
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
// vite.config.ts
|
|
67
|
+
import { defineConfig } from "vite";
|
|
68
|
+
import { intlayerCompiler } from "vite-intlayer";
|
|
69
|
+
|
|
70
|
+
export default defineConfig({
|
|
71
|
+
plugins: [intlayerCompiler()],
|
|
72
|
+
});
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 选项
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
import type { IntlayerCompilerOptions } from "vite-intlayer";
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
| 选项 | 类型 | 描述 |
|
|
82
|
+
| ---------------- | ------------------------- | --------------------------------------------------------------------- |
|
|
83
|
+
| `configOptions` | `GetConfigurationOptions` | 转发给 `getConfiguration()` 的 Intlayer 配置覆盖项。 |
|
|
84
|
+
| `compilerConfig` | `Partial<CompilerConfig>` | 编译器特定配置部分的覆盖项(例如 `enabled`, `output`, `filesList`)。 |
|
|
85
|
+
|
|
86
|
+
### 示例
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
intlayerCompiler({
|
|
90
|
+
configOptions: { configFile: "./config/intlayer.config.ts" },
|
|
91
|
+
compilerConfig: { enabled: true, output: "./src/dictionaries" },
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## 工作原理
|
|
96
|
+
|
|
97
|
+
### 转换(Transform)阶段
|
|
98
|
+
|
|
99
|
+
对于每个与 `compiler.filesList` 匹配的源文件,编译器插件执行以下操作:
|
|
100
|
+
|
|
101
|
+
1. 将文件内容传递给 `@intlayer/babel` 中的 `extractContent`。
|
|
102
|
+
2. 对找到的每个声明调用 `onExtract`,这会将生成的字典 JSON 写入 `compiler.output`。
|
|
103
|
+
3. 返回转换后的源代码,内联声明已替换为标准的 `useIntlayer('key')` / `getIntlayer('key')` 调用。
|
|
104
|
+
|
|
105
|
+
支持的文件类型:`.ts`, `.tsx`, `.js`, `.jsx`, `.vue`, `.svelte`, `.astro`。
|
|
106
|
+
|
|
107
|
+
### HMR(热模块替换)
|
|
108
|
+
|
|
109
|
+
在开发模式下保存组件文件时,编译器:
|
|
110
|
+
|
|
111
|
+
1. 通过 Vite 的 `handleHotUpdate` 钩子检测文件更改。
|
|
112
|
+
2. 从更新后的文件中重新提取内容。
|
|
113
|
+
3. 写入更新后的字典 JSON。
|
|
114
|
+
4. 触发页面完全重新加载(`server.ws.send({ type: 'full-reload' })`)。
|
|
115
|
+
|
|
116
|
+
500 毫秒的防抖(debounce)可防止字典写入本身(这也会触发文件更改事件)导致无限的重新提取循环。
|
|
117
|
+
|
|
118
|
+
### 去重(Deduplication)
|
|
119
|
+
|
|
120
|
+
`intlayerCompiler` 使用与其他捆绑插件相同的 `createPrimaryInstanceGuard` 去重机制。当同时存在 `intlayer()`(已捆绑编译器)和手动 `intlayerCompiler()` 调用时,仅运行第一个注册 ins — 不会重复写入任何字典。
|