@intlayer/docs 9.0.0-canary.5 → 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 +62 -80
- 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/react-native-intlayer/exports.md +48 -14
- 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 +56 -69
- 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/react-native-intlayer/exports.md +47 -13
- 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 +20 -19
- 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/react-native-intlayer/exports.md +47 -13
- 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 +46 -95
- 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/react-native-intlayer/exports.md +51 -18
- 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 +49 -81
- 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/react-native-intlayer/exports.md +47 -13
- 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 +60 -69
- 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/react-native-intlayer/exports.md +47 -13
- 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 +96 -88
- 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/react-native-intlayer/exports.md +48 -14
- 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 +51 -34
- 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/react-native-intlayer/exports.md +47 -13
- 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 +38 -73
- 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/react-native-intlayer/exports.md +47 -13
- 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 +104 -138
- 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/react-native-intlayer/exports.md +47 -14
- 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 +237 -30
- 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/react-native-intlayer/exports.md +48 -14
- 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 +81 -47
- 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/react-native-intlayer/exports.md +47 -13
- 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 +44 -76
- 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/react-native-intlayer/exports.md +47 -13
- 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 +77 -61
- 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/react-native-intlayer/exports.md +49 -16
- 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 +36 -57
- 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/react-native-intlayer/exports.md +48 -15
- 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 +70 -53
- 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/react-native-intlayer/exports.md +47 -13
- 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 +49 -33
- 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/react-native-intlayer/exports.md +47 -13
- 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 +221 -82
- 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/react-native-intlayer/exports.md +48 -14
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-06-18
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-06-25
|
|
4
4
|
title: "Expo + React Native i18n - Guida completa per tradurre la tua applicazione"
|
|
5
5
|
description: "Niente più i18next. La guida 2026 per creare un'applicazione Expo + React Native multilingue (i18n). Traduci con agenti AI e ottimizza la dimensione del bundle, SEO e prestazioni."
|
|
6
6
|
keywords:
|
|
@@ -17,6 +17,9 @@ slugs:
|
|
|
17
17
|
applicationTemplate: https://github.com/aymericzip/intlayer-react-native-template
|
|
18
18
|
applicationShowcase: https://intlayer-react-native.vercel.app
|
|
19
19
|
history:
|
|
20
|
+
- version: 9.0.0
|
|
21
|
+
date: 2026-06-25
|
|
22
|
+
changes: "Importa provider e hook direttamente da react-native-intlayer; react-intlayer non è più necessario come dipendenza diretta"
|
|
20
23
|
- version: 8.9.0
|
|
21
24
|
date: 2026-05-04
|
|
22
25
|
changes: "Aggiornare l'uso dell'API useIntlayer di Solid all'accesso diretto alle proprietà"
|
|
@@ -56,7 +59,9 @@ author: aymericzip
|
|
|
56
59
|
</Tab>
|
|
57
60
|
</Tabs>
|
|
58
61
|
|
|
59
|
-
|
|
62
|
+
## Indice
|
|
63
|
+
|
|
64
|
+
<TOC/>
|
|
60
65
|
|
|
61
66
|
## Perché Intlayer rispetto alle alternative?
|
|
62
67
|
|
|
@@ -109,52 +114,9 @@ Invece di caricare enormi file JSON nelle tue pagine, carica solo il contenuto n
|
|
|
109
114
|
|
|
110
115
|
<Steps>
|
|
111
116
|
|
|
112
|
-
<Step number={1} title="
|
|
113
|
-
|
|
114
|
-
Vedere [Modello di applicazione](https://github.com/aymericzip/intlayer-react-native-template) su GitHub.
|
|
115
|
-
|
|
116
|
-
Dal tuo progetto React Native, installa i seguenti pacchetti:
|
|
117
|
-
|
|
118
|
-
```bash pacchettoManager="npm"
|
|
119
|
-
npm installa interlayer react-intlayer
|
|
120
|
-
npm install --save-dev react-native-intlayer
|
|
121
|
-
init dell'interlayer npx
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
```bash packageManager="pnpm"
|
|
125
|
-
pnpm aggiungi intlayer react-intlayer
|
|
126
|
-
pnpm aggiungi --save-dev react-native-intlayer
|
|
127
|
-
init dell'interlayer pnpm
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
```bash packageManager="filato"
|
|
131
|
-
il filato aggiunge l'interstrato reagisce all'interstrato
|
|
132
|
-
filato aggiungi --save-dev react-native-intlayer
|
|
133
|
-
init.interstrato di filato
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
```bash packageManager="panino"
|
|
137
|
-
bun aggiungi intlayer react-intlayer
|
|
138
|
-
bun aggiungi --dev react-native-intlayer
|
|
139
|
-
bun x intlayer init
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Pacchetti
|
|
143
|
-
|
|
144
|
-
- **interstrato**
|
|
145
|
-
Il toolkit i18n principale per configurazione, contenuto del dizionario, generazione di tipi e comandi CLI.
|
|
146
|
-
|
|
147
|
-
- **reagire-interstrato**
|
|
148
|
-
Integrazione React che fornisce i provider di contesto e gli hook React che utilizzerai in React Native per ottenere e cambiare locale.
|
|
117
|
+
<Step number={1} title="Installare le dipendenze">
|
|
149
118
|
|
|
150
|
-
-
|
|
151
|
-
Integrazione React Native che fornisce il plug-in Metro per l'integrazione di Intlayer con il bundler React Native.
|
|
152
|
-
|
|
153
|
-
---
|
|
154
|
-
|
|
155
|
-
</Step>
|
|
156
|
-
|
|
157
|
-
<Step number={2} title="Installa le dipendenze">
|
|
119
|
+
Vedere il [Modello di applicazione](https://github.com/aymericzip/intlayer-react-native-template) su GitHub.
|
|
158
120
|
|
|
159
121
|
Dal tuo progetto React Native, installa i seguenti pacchetti:
|
|
160
122
|
|
|
@@ -174,28 +136,24 @@ yarn dlx intlayer-cli init --interactive
|
|
|
174
136
|
bunx intlayer-cli init --interactive
|
|
175
137
|
```
|
|
176
138
|
|
|
177
|
-
>
|
|
139
|
+
> Il flag `--interactive` è opzionale. Usa `intlayer-cli init` se sei un agente IA.
|
|
178
140
|
|
|
179
141
|
> Questo comando rileverà il tuo ambiente e installerà i pacchetti richiesti. Ad esempio:
|
|
180
142
|
|
|
181
143
|
```bash packageManager="npm"
|
|
182
|
-
npm install intlayer react-intlayer
|
|
183
|
-
npm install --save-dev react-native-intlayer
|
|
144
|
+
npm install intlayer react-native-intlayer
|
|
184
145
|
```
|
|
185
146
|
|
|
186
147
|
```bash packageManager="pnpm"
|
|
187
|
-
pnpm add intlayer react-intlayer
|
|
188
|
-
pnpm add --save-dev react-native-intlayer
|
|
148
|
+
pnpm add intlayer react-native-intlayer
|
|
189
149
|
```
|
|
190
150
|
|
|
191
151
|
```bash packageManager="yarn"
|
|
192
|
-
yarn add intlayer react-intlayer
|
|
193
|
-
yarn add --save-dev react-native-intlayer
|
|
152
|
+
yarn add intlayer react-native-intlayer
|
|
194
153
|
```
|
|
195
154
|
|
|
196
155
|
```bash packageManager="bun"
|
|
197
|
-
bun add intlayer react-intlayer
|
|
198
|
-
bun add --dev react-native-intlayer
|
|
156
|
+
bun add intlayer react-native-intlayer
|
|
199
157
|
```
|
|
200
158
|
|
|
201
159
|
### Pacchetti
|
|
@@ -203,17 +161,14 @@ bun add --dev react-native-intlayer
|
|
|
203
161
|
- **intlayer**
|
|
204
162
|
Il toolkit i18n principale per la configurazione, il contenuto del dizionario, la generazione dei tipi e i comandi CLI.
|
|
205
163
|
|
|
206
|
-
- **react-intlayer**
|
|
207
|
-
Integrazione React che fornisce i provider di contesto e gli hook React che utilizzerai in React Native per ottenere e cambiare le localizzazioni.
|
|
208
|
-
|
|
209
164
|
- **react-native-intlayer**
|
|
210
|
-
Integrazione React Native che fornisce il plugin Metro per integrare Intlayer con il bundler di React Native.
|
|
165
|
+
Integrazione React Native che fornisce i provider di contesto e gli hook React che utilizzerai per ottenere e cambiare le localizzazioni, i polyfill React Native e il plugin Metro per integrare Intlayer con il bundler di React Native. Riesporta tutto da `react-intlayer`, quindi hai bisogno solo di questo singolo pacchetto in un'app React Native.
|
|
211
166
|
|
|
212
167
|
---
|
|
213
168
|
|
|
214
169
|
</Step>
|
|
215
170
|
|
|
216
|
-
<Step number={
|
|
171
|
+
<Step number={2} title="Crea una Configurazione Intlayer">
|
|
217
172
|
|
|
218
173
|
Nella root del tuo progetto (o in qualsiasi posizione conveniente), crea un file di **configurazione Intlayer**. Potrebbe apparire così:
|
|
219
174
|
|
|
@@ -247,7 +202,7 @@ All'interno di questa configurazione, puoi:
|
|
|
247
202
|
|
|
248
203
|
</Step>
|
|
249
204
|
|
|
250
|
-
<Step number={
|
|
205
|
+
<Step number={3} title="Aggiungi il plugin Metro">
|
|
251
206
|
|
|
252
207
|
Metro è un bundler per React Native. È il bundler predefinito per i progetti React Native creati con il comando `react-native init`. Per usare Intlayer con Metro, devi aggiungere il plugin al file `metro.config.js`:
|
|
253
208
|
|
|
@@ -262,13 +217,18 @@ module.exports = (async () => {
|
|
|
262
217
|
})();
|
|
263
218
|
```
|
|
264
219
|
|
|
220
|
+
> Nota: `configMetroIntlayer` è una funzione promise. Usa `configMetroIntlayerSync` se vuoi usarla in modo sincrono, o evita l'IFFE (Immediately Invoked Function Expression).
|
|
221
|
+
> Nota: `configMetroIntlayerSync` non consente di costruire dizionari intlayer all'avvio del server
|
|
222
|
+
|
|
265
223
|
</Step>
|
|
266
224
|
|
|
267
|
-
<Step number={
|
|
225
|
+
<Step number={4} title="Aggiungi il provider Intlayer">
|
|
226
|
+
|
|
227
|
+
Per mantenere sincronizzata la lingua dell'utente in tutta l'applicazione, devi avvolgere il componente radice con il componente `IntlayerProvider` da `react-native-intlayer`.
|
|
268
228
|
|
|
269
|
-
|
|
229
|
+
> Importa sempre da `react-native-intlayer`. Il suo `IntlayerProvider` include polyfill per le API web usate da Intlayer, e il pacchetto riesporta tutti gli hook e le utilità da `react-intlayer`.
|
|
270
230
|
|
|
271
|
-
|
|
231
|
+
Inoltre, devi aggiungere la funzione `intlayerPolyfill` al tuo file `index.js` per assicurarti che Intlayer possa funzionare correttamente.
|
|
272
232
|
|
|
273
233
|
```tsx fileName="app/_layout.tsx" codeFormat={["typescript", "esm"]}
|
|
274
234
|
import { Stack } from "expo-router";
|
|
@@ -293,11 +253,13 @@ export default RootLayout;
|
|
|
293
253
|
|
|
294
254
|
</Step>
|
|
295
255
|
|
|
296
|
-
<Step number={
|
|
256
|
+
<Step number={5} title="Dichiarare il Tuo Contenuto">
|
|
297
257
|
|
|
298
258
|
Crea file di **dichiarazione del contenuto** in qualsiasi punto del tuo progetto (comunemente all'interno di `src/`), utilizzando uno qualsiasi dei formati di estensione supportati da Intlayer:
|
|
299
259
|
|
|
300
260
|
- `.content.json`
|
|
261
|
+
- `.content.jsonc`
|
|
262
|
+
- `.content.json5`
|
|
301
263
|
- `.content.ts`
|
|
302
264
|
- `.content.tsx`
|
|
303
265
|
- `.content.js`
|
|
@@ -305,7 +267,10 @@ Crea file di **dichiarazione del contenuto** in qualsiasi punto del tuo progetto
|
|
|
305
267
|
- `.content.mjs`
|
|
306
268
|
- `.content.mjx`
|
|
307
269
|
- `.content.cjs`
|
|
308
|
-
- `.content.
|
|
270
|
+
- `.content.md`
|
|
271
|
+
- `.content.mdx`
|
|
272
|
+
- `.content.yaml`
|
|
273
|
+
- `.content.yml`
|
|
309
274
|
- ecc.
|
|
310
275
|
|
|
311
276
|
> **Expo Router (web): tieni i file `.content.*` fuori dalla directory `app/`.** Expo Router tratta ogni file JavaScript/TypeScript all'interno di `app/` come una rotta. Sul web, la sua scoperta delle rotte scansiona direttamente il file system e **non** rispetta il `resolver.blockList` di Metro, quindi un `*.content.ts` co-localizzato viene registrato come una rotta. Un file come `app/(tabs)/_layout.content.ts` viene persino analizzato come un layout (la parte `.content` viene letta come suffisso della piattaforma), il che entra in conflitto con il vero `_layout.tsx` e genera l'errore:
|
|
@@ -364,7 +329,7 @@ export default homeScreenContent;
|
|
|
364
329
|
|
|
365
330
|
</Step>
|
|
366
331
|
|
|
367
|
-
<Step number={
|
|
332
|
+
<Step number={6} title="Usa Intlayer nei tuoi componenti">
|
|
368
333
|
|
|
369
334
|
Usa l'hook `useIntlayer` nei componenti figli per ottenere contenuti localizzati.
|
|
370
335
|
|
|
@@ -372,7 +337,7 @@ Usa l'hook `useIntlayer` nei componenti figli per ottenere contenuti localizzati
|
|
|
372
337
|
|
|
373
338
|
```tsx fileName="app/(tabs)/index.tsx" codeFormat={["typescript", "esm"]}
|
|
374
339
|
import { Image, StyleSheet, Platform } from "react-native";
|
|
375
|
-
import { useIntlayer } from "intlayer";
|
|
340
|
+
import { useIntlayer } from "react-native-intlayer";
|
|
376
341
|
import { HelloWave } from "@/components/HelloWave";
|
|
377
342
|
import ParallaxScrollView from "@/components/ParallaxScrollView";
|
|
378
343
|
import { ThemedText } from "@/components/ThemedText";
|
|
@@ -419,7 +384,7 @@ export default HomeScreen;
|
|
|
419
384
|
|
|
420
385
|
</Step>
|
|
421
386
|
|
|
422
|
-
<Step number={
|
|
387
|
+
<Step number={7} title="Cambiare la Lingua dell'App" isOptional={true}>
|
|
423
388
|
|
|
424
389
|
Per cambiare la lingua dall'interno dei tuoi componenti, puoi usare il metodo `setLocale` dell'hook `useLocale`:
|
|
425
390
|
|
|
@@ -427,7 +392,7 @@ Per cambiare la lingua dall'interno dei tuoi componenti, puoi usare il metodo `s
|
|
|
427
392
|
import { type FC } from "react";
|
|
428
393
|
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
|
|
429
394
|
import { getLocaleName } from "intlayer";
|
|
430
|
-
import { useLocale } from "react-intlayer";
|
|
395
|
+
import { useLocale } from "react-native-intlayer";
|
|
431
396
|
|
|
432
397
|
export const LocaleSwitcher: FC = () => {
|
|
433
398
|
const { setLocale, availableLocales } = useLocale();
|
|
@@ -504,7 +469,7 @@ Questo abilita funzionalità come:
|
|
|
504
469
|
Per evitare di commettere file generati automaticamente da Intlayer, aggiungi quanto segue al tuo `.gitignore`:
|
|
505
470
|
|
|
506
471
|
```bash
|
|
507
|
-
#
|
|
472
|
+
# Ignora i file generati da Intlayer
|
|
508
473
|
.intlayer
|
|
509
474
|
```
|
|
510
475
|
|
|
@@ -545,7 +510,7 @@ Intlayer è principalmente orientato all'API Web Intl; su React Native è necess
|
|
|
545
510
|
|
|
546
511
|
Checklist:
|
|
547
512
|
|
|
548
|
-
- Utilizza le versioni più recenti di `intlayer
|
|
513
|
+
- Utilizza le versioni più recenti di `intlayer` e `react-native-intlayer`.
|
|
549
514
|
- Abilita il polyfill di Intlayer.
|
|
550
515
|
- Se utilizzi `getLocaleName` o altre utility basate su Intl-API, importa questi polyfill all'inizio (ad esempio in `index.js` o `App.tsx`):
|
|
551
516
|
|
|
@@ -635,6 +635,8 @@ bun x intlayer extract
|
|
|
635
635
|
</Tab>
|
|
636
636
|
<Tab value='Compilatore Babel'>
|
|
637
637
|
|
|
638
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
639
|
+
|
|
638
640
|
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
639
641
|
|
|
640
642
|
```ts fileName="vite.config.ts"
|
|
@@ -644,7 +646,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
644
646
|
export default defineConfig({
|
|
645
647
|
plugins: [
|
|
646
648
|
intlayer(),
|
|
647
|
-
intlayerCompiler(), //
|
|
649
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
648
650
|
],
|
|
649
651
|
});
|
|
650
652
|
```
|
|
@@ -680,6 +680,8 @@ bun x intlayer extract
|
|
|
680
680
|
</Tab>
|
|
681
681
|
<Tab value='Compilatore Babel'>
|
|
682
682
|
|
|
683
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
684
|
+
|
|
683
685
|
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
684
686
|
|
|
685
687
|
```ts fileName="vite.config.ts"
|
|
@@ -689,7 +691,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
689
691
|
export default defineConfig({
|
|
690
692
|
plugins: [
|
|
691
693
|
intlayer(),
|
|
692
|
-
intlayerCompiler(), //
|
|
694
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
693
695
|
],
|
|
694
696
|
});
|
|
695
697
|
```
|
|
@@ -190,7 +190,13 @@ const config: StorybookConfig = {
|
|
|
190
190
|
} as const;
|
|
191
191
|
|
|
192
192
|
const viteConfig = defineConfig(() => ({
|
|
193
|
-
plugins: [
|
|
193
|
+
plugins: [
|
|
194
|
+
intlayer({
|
|
195
|
+
proxy: {
|
|
196
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
197
|
+
},
|
|
198
|
+
}),
|
|
199
|
+
],
|
|
194
200
|
}));
|
|
195
201
|
|
|
196
202
|
return mergeConfig(baseConfig, viteConfig(env));
|
|
@@ -614,14 +614,17 @@ Per aggiungere un proxy backend alla tua applicazione SvelteKit, puoi usare la f
|
|
|
614
614
|
|
|
615
615
|
```ts fileName="vite.config.ts"
|
|
616
616
|
import { defineConfig } from "vite";
|
|
617
|
-
import { intlayer
|
|
617
|
+
import { intlayer } from "vite-intlayer";
|
|
618
618
|
import { sveltekit } from "@sveltejs/kit/vite";
|
|
619
619
|
|
|
620
620
|
// https://vitejs.dev/config/
|
|
621
621
|
export default defineConfig({
|
|
622
622
|
plugins: [
|
|
623
|
-
|
|
624
|
-
|
|
623
|
+
intlayer({
|
|
624
|
+
proxy: {
|
|
625
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
626
|
+
},
|
|
627
|
+
}),
|
|
625
628
|
sveltekit(),
|
|
626
629
|
],],
|
|
627
630
|
});
|
|
@@ -719,6 +722,8 @@ bun x intlayer extract
|
|
|
719
722
|
</Tab>
|
|
720
723
|
<Tab value='Compilatore Babel'>
|
|
721
724
|
|
|
725
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
726
|
+
|
|
722
727
|
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
723
728
|
|
|
724
729
|
```ts fileName="vite.config.ts"
|
|
@@ -728,7 +733,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
728
733
|
export default defineConfig({
|
|
729
734
|
plugins: [
|
|
730
735
|
intlayer(),
|
|
731
|
-
intlayerCompiler(), //
|
|
736
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
732
737
|
],
|
|
733
738
|
});
|
|
734
739
|
```
|
|
@@ -228,11 +228,15 @@ export default defineConfig({
|
|
|
228
228
|
tanstackStart({
|
|
229
229
|
router: {
|
|
230
230
|
routeFileIgnorePattern:
|
|
231
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
231
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
232
232
|
},
|
|
233
233
|
}),
|
|
234
234
|
solidPlugin({ ssr: true }),
|
|
235
|
-
intlayer(
|
|
235
|
+
intlayer({
|
|
236
|
+
proxy: {
|
|
237
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
238
|
+
},
|
|
239
|
+
}),
|
|
236
240
|
],
|
|
237
241
|
});
|
|
238
242
|
```
|
|
@@ -568,22 +572,25 @@ Puoi anche utilizzare `intlayerProxy` per aggiungere il routing lato server alla
|
|
|
568
572
|
|
|
569
573
|
> Tieni presente che per utilizzare `intlayerProxy` in produzione, è necessario spostare il pacchetto `vite-intlayer` da `devDependencies` a `dependencies`.
|
|
570
574
|
|
|
571
|
-
```typescript
|
|
575
|
+
```typescript fileName="vite.config.ts"
|
|
572
576
|
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
573
577
|
import solid from "vite-plugin-solid";
|
|
574
578
|
import { nitro } from "nitro/vite";
|
|
575
579
|
import { defineConfig } from "vite";
|
|
576
|
-
import { intlayer
|
|
580
|
+
import { intlayer } from "vite-intlayer";
|
|
577
581
|
|
|
578
582
|
export default defineConfig({
|
|
579
583
|
plugins: [
|
|
580
|
-
intlayerProxy(), // Il proxy deve essere posizionato prima del server se si usa Nitro
|
|
581
584
|
nitro(),
|
|
582
|
-
intlayer(
|
|
585
|
+
intlayer({
|
|
586
|
+
proxy: {
|
|
587
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
588
|
+
},
|
|
589
|
+
}),
|
|
583
590
|
tanstackStart({
|
|
584
591
|
router: {
|
|
585
592
|
routeFileIgnorePattern:
|
|
586
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
593
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
587
594
|
},
|
|
588
595
|
}),
|
|
589
596
|
solid(),
|
|
@@ -826,9 +833,9 @@ bun x intlayer extract
|
|
|
826
833
|
</Tab>
|
|
827
834
|
<Tab value='Compilatore Babel'>
|
|
828
835
|
|
|
829
|
-
|
|
836
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
830
837
|
|
|
831
|
-
|
|
838
|
+
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
832
839
|
|
|
833
840
|
```ts fileName="vite.config.ts"
|
|
834
841
|
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
@@ -843,12 +850,12 @@ export default defineConfig({
|
|
|
843
850
|
tanstackStart({
|
|
844
851
|
router: {
|
|
845
852
|
routeFileIgnorePattern:
|
|
846
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
853
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
847
854
|
},
|
|
848
855
|
}),
|
|
849
856
|
solidPlugin({ ssr: true }),
|
|
850
857
|
intlayer(),
|
|
851
|
-
intlayerCompiler(),
|
|
858
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
852
859
|
],
|
|
853
860
|
});
|
|
854
861
|
```
|
|
@@ -242,11 +242,15 @@ import { intlayer } from "vite-intlayer";
|
|
|
242
242
|
const config = defineConfig({
|
|
243
243
|
plugins: [
|
|
244
244
|
nitro(),
|
|
245
|
-
intlayer(
|
|
245
|
+
intlayer({
|
|
246
|
+
proxy: {
|
|
247
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
248
|
+
},
|
|
249
|
+
}),
|
|
246
250
|
tanstackStart({
|
|
247
251
|
router: {
|
|
248
252
|
routeFileIgnorePattern:
|
|
249
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
253
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
250
254
|
},
|
|
251
255
|
}),
|
|
252
256
|
viteReact(),
|
|
@@ -650,22 +654,25 @@ Puoi anche utilizzare `intlayerProxy` per aggiungere il routing lato server alla
|
|
|
650
654
|
|
|
651
655
|
> Nota che per utilizzare `intlayerProxy` in produzione, è necessario spostare il pacchetto `vite-intlayer` da `devDependencies` a `dependencies`.
|
|
652
656
|
|
|
653
|
-
```typescript
|
|
657
|
+
```typescript fileName="vite.config.ts"
|
|
654
658
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
655
659
|
import viteReact from "@vitejs/plugin-react";
|
|
656
660
|
import { nitro } from "nitro/vite";
|
|
657
661
|
import { defineConfig } from "vite";
|
|
658
|
-
import { intlayer
|
|
662
|
+
import { intlayer } from "vite-intlayer";
|
|
659
663
|
|
|
660
664
|
export default defineConfig({
|
|
661
665
|
plugins: [
|
|
662
|
-
intlayerProxy(), // Il proxy deve essere posizionato prima del server se usi Nitro
|
|
663
666
|
nitro(),
|
|
664
|
-
intlayer(
|
|
667
|
+
intlayer({
|
|
668
|
+
proxy: {
|
|
669
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
670
|
+
},
|
|
671
|
+
}),
|
|
665
672
|
tanstackStart({
|
|
666
673
|
router: {
|
|
667
674
|
routeFileIgnorePattern:
|
|
668
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
675
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
669
676
|
},
|
|
670
677
|
}),
|
|
671
678
|
viteReact(),
|
|
@@ -904,6 +911,8 @@ bun x intlayer extract
|
|
|
904
911
|
</Tab>
|
|
905
912
|
<Tab value='Compilatore Babel'>
|
|
906
913
|
|
|
914
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
915
|
+
|
|
907
916
|
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
908
917
|
|
|
909
918
|
```ts fileName="vite.config.ts"
|
|
@@ -913,7 +922,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
913
922
|
export default defineConfig({
|
|
914
923
|
plugins: [
|
|
915
924
|
intlayer(),
|
|
916
|
-
intlayerCompiler(), //
|
|
925
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
917
926
|
],
|
|
918
927
|
});
|
|
919
928
|
```
|
|
@@ -205,7 +205,13 @@ import { intlayer } from "vite-intlayer";
|
|
|
205
205
|
|
|
206
206
|
// https://vitejs.dev/config/
|
|
207
207
|
export default defineConfig({
|
|
208
|
-
plugins: [
|
|
208
|
+
plugins: [
|
|
209
|
+
intlayer({
|
|
210
|
+
proxy: {
|
|
211
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
212
|
+
},
|
|
213
|
+
}),
|
|
214
|
+
],
|
|
209
215
|
});
|
|
210
216
|
```
|
|
211
217
|
|
|
@@ -474,12 +480,15 @@ Innanzitutto, aggiungi `intlayerProxy` alla tua configurazione Vite:
|
|
|
474
480
|
|
|
475
481
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
476
482
|
import { defineConfig } from "vite";
|
|
477
|
-
import { intlayer
|
|
483
|
+
import { intlayer } from "vite-intlayer";
|
|
478
484
|
|
|
479
485
|
export default defineConfig({
|
|
480
486
|
plugins: [
|
|
481
|
-
|
|
482
|
-
|
|
487
|
+
intlayer({
|
|
488
|
+
proxy: {
|
|
489
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
490
|
+
},
|
|
491
|
+
}),
|
|
483
492
|
],
|
|
484
493
|
});
|
|
485
494
|
```
|
|
@@ -829,6 +829,8 @@ bun x intlayer extract
|
|
|
829
829
|
</Tab>
|
|
830
830
|
<Tab value='Compilatore Babel'>
|
|
831
831
|
|
|
832
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
833
|
+
|
|
832
834
|
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
833
835
|
|
|
834
836
|
```ts fileName="vite.config.ts"
|
|
@@ -838,7 +840,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
838
840
|
export default defineConfig({
|
|
839
841
|
plugins: [
|
|
840
842
|
intlayer(),
|
|
841
|
-
intlayerCompiler(), //
|
|
843
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
842
844
|
],
|
|
843
845
|
});
|
|
844
846
|
```
|
|
@@ -507,14 +507,17 @@ In parallelo, puoi anche utilizzare il `intlayerProxy` per aggiungere il routing
|
|
|
507
507
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
508
508
|
import { defineConfig } from "vite";
|
|
509
509
|
import react from "@vitejs/plugin-react-swc";
|
|
510
|
-
import { intlayer
|
|
510
|
+
import { intlayer } from "vite-intlayer";
|
|
511
511
|
|
|
512
512
|
// https://vitejs.dev/config/
|
|
513
513
|
export default defineConfig({
|
|
514
514
|
plugins: [
|
|
515
|
-
intlayerProxy(), // should be placed first
|
|
516
515
|
react(),
|
|
517
|
-
intlayer(
|
|
516
|
+
intlayer({
|
|
517
|
+
proxy: {
|
|
518
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
519
|
+
},
|
|
520
|
+
}),
|
|
518
521
|
],
|
|
519
522
|
});
|
|
520
523
|
```
|
|
@@ -823,6 +826,8 @@ bun x intlayer extract
|
|
|
823
826
|
</Tab>
|
|
824
827
|
<Tab value='Compilatore Babel'>
|
|
825
828
|
|
|
829
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
830
|
+
|
|
826
831
|
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
827
832
|
|
|
828
833
|
```ts fileName="vite.config.ts"
|
|
@@ -832,7 +837,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
832
837
|
export default defineConfig({
|
|
833
838
|
plugins: [
|
|
834
839
|
intlayer(),
|
|
835
|
-
intlayerCompiler(), //
|
|
840
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
836
841
|
],
|
|
837
842
|
});
|
|
838
843
|
```
|
|
@@ -218,11 +218,18 @@ Aggiungi il plugin intlayer nella tua configurazione.
|
|
|
218
218
|
```typescript fileName="vite.config.ts"
|
|
219
219
|
import { defineConfig } from "vite";
|
|
220
220
|
import react from "@vitejs/plugin-react-swc";
|
|
221
|
-
import { intlayer
|
|
221
|
+
import { intlayer } from "vite-intlayer";
|
|
222
222
|
|
|
223
223
|
// https://vitejs.dev/config/
|
|
224
224
|
export default defineConfig({
|
|
225
|
-
plugins: [
|
|
225
|
+
plugins: [
|
|
226
|
+
react(),
|
|
227
|
+
intlayer({
|
|
228
|
+
proxy: {
|
|
229
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
230
|
+
},
|
|
231
|
+
}),
|
|
232
|
+
],
|
|
226
233
|
});
|
|
227
234
|
```
|
|
228
235
|
|
|
@@ -598,6 +598,8 @@ bun x intlayer extract
|
|
|
598
598
|
</Tab>
|
|
599
599
|
<Tab value='Compilatore Babel'>
|
|
600
600
|
|
|
601
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
602
|
+
|
|
601
603
|
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
602
604
|
|
|
603
605
|
```ts fileName="vite.config.ts"
|
|
@@ -607,7 +609,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
607
609
|
export default defineConfig({
|
|
608
610
|
plugins: [
|
|
609
611
|
intlayer(),
|
|
610
|
-
intlayerCompiler(), //
|
|
612
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
611
613
|
],
|
|
612
614
|
});
|
|
613
615
|
```
|
|
@@ -459,7 +459,7 @@ In parallelo, puoi anche utilizzare `intlayerProxy` per aggiungere il routing la
|
|
|
459
459
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
460
460
|
import { defineConfig } from "vite";
|
|
461
461
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
462
|
-
import { intlayer
|
|
462
|
+
import { intlayer } from "vite-intlayer";
|
|
463
463
|
|
|
464
464
|
plugins: [intlayerProxy(), // should be placed first
|
|
465
465
|
svelte(), intlayer()],
|
|
@@ -569,6 +569,8 @@ bun x intlayer extract
|
|
|
569
569
|
</Tab>
|
|
570
570
|
<Tab value='Compilatore Babel'>
|
|
571
571
|
|
|
572
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
573
|
+
|
|
572
574
|
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
573
575
|
|
|
574
576
|
```ts fileName="vite.config.ts"
|
|
@@ -578,7 +580,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
578
580
|
export default defineConfig({
|
|
579
581
|
plugins: [
|
|
580
582
|
intlayer(),
|
|
581
|
-
intlayerCompiler(), //
|
|
583
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
582
584
|
],
|
|
583
585
|
});
|
|
584
586
|
```
|