@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 - Complete guide to translate your app"
|
|
5
5
|
description: "No more i18next. The 2026 guide to building a multilingual (i18n) Expo + React Native app. Translate with AI agents and optimize bundle size, SEO and performances."
|
|
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: "Import providers and hooks directly from react-native-intlayer; react-intlayer is no longer needed as a direct dependency"
|
|
20
23
|
- version: 8.9.0
|
|
21
24
|
date: 2026-05-04
|
|
22
25
|
changes: "Update Solid useIntlayer API usage to direct property access"
|
|
@@ -141,23 +144,19 @@ bunx intlayer-cli init --interactive
|
|
|
141
144
|
> This command will detect your environment and install the required packages. For example:
|
|
142
145
|
|
|
143
146
|
```bash packageManager="npm"
|
|
144
|
-
npm install intlayer react-intlayer
|
|
145
|
-
npm install --save-dev react-native-intlayer
|
|
147
|
+
npm install intlayer react-native-intlayer
|
|
146
148
|
```
|
|
147
149
|
|
|
148
150
|
```bash packageManager="pnpm"
|
|
149
|
-
pnpm add intlayer react-intlayer
|
|
150
|
-
pnpm add --save-dev react-native-intlayer
|
|
151
|
+
pnpm add intlayer react-native-intlayer
|
|
151
152
|
```
|
|
152
153
|
|
|
153
154
|
```bash packageManager="yarn"
|
|
154
|
-
yarn add intlayer react-intlayer
|
|
155
|
-
yarn add --save-dev react-native-intlayer
|
|
155
|
+
yarn add intlayer react-native-intlayer
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
```bash packageManager="bun"
|
|
159
|
-
bun add intlayer react-intlayer
|
|
160
|
-
bun add --dev react-native-intlayer
|
|
159
|
+
bun add intlayer react-native-intlayer
|
|
161
160
|
```
|
|
162
161
|
|
|
163
162
|
### Packages
|
|
@@ -165,11 +164,8 @@ bun add --dev react-native-intlayer
|
|
|
165
164
|
- **intlayer**
|
|
166
165
|
The core i18n toolkit for configuration, dictionary content, types generation, and CLI commands.
|
|
167
166
|
|
|
168
|
-
- **react-intlayer**
|
|
169
|
-
React integration that provides the context providers and React hooks you’ll use in React Native for obtaining and switching locales.
|
|
170
|
-
|
|
171
167
|
- **react-native-intlayer**
|
|
172
|
-
React Native integration that provides the Metro plugin for integrating Intlayer with the React Native bundler.
|
|
168
|
+
React Native integration that provides the context providers and React hooks you'll use to obtain and switch locales, the React Native polyfills, and the Metro plugin for integrating Intlayer with the React Native bundler. It re-exports everything from `react-intlayer`, so you only need this single package in a React Native app.
|
|
173
169
|
|
|
174
170
|
---
|
|
175
171
|
|
|
@@ -231,9 +227,9 @@ module.exports = (async () => {
|
|
|
231
227
|
|
|
232
228
|
<Step number={4} title="Add the Intlayer provider">
|
|
233
229
|
|
|
234
|
-
To keep synchronized the user language across your application, you need to wrap your root component with the `IntlayerProvider` component from `react-intlayer
|
|
230
|
+
To keep synchronized the user language across your application, you need to wrap your root component with the `IntlayerProvider` component from `react-native-intlayer`.
|
|
235
231
|
|
|
236
|
-
>
|
|
232
|
+
> Always import from `react-native-intlayer`. Its `IntlayerProvider` includes polyfills for the web API used by Intlayer, and the package re-exports all the hooks and utilities from `react-intlayer`.
|
|
237
233
|
|
|
238
234
|
Also, you need to add the `intlayerPolyfill` function to your `index.js` file to ensure that Intlayer can work properly.
|
|
239
235
|
|
|
@@ -265,6 +261,8 @@ export default RootLayout;
|
|
|
265
261
|
Create **content declaration** files anywhere in your project (commonly within `src/`), using any of the extension formats that Intlayer supports:
|
|
266
262
|
|
|
267
263
|
- `.content.json`
|
|
264
|
+
- `.content.jsonc`
|
|
265
|
+
- `.content.json5`
|
|
268
266
|
- `.content.ts`
|
|
269
267
|
- `.content.tsx`
|
|
270
268
|
- `.content.js`
|
|
@@ -272,7 +270,10 @@ Create **content declaration** files anywhere in your project (commonly within `
|
|
|
272
270
|
- `.content.mjs`
|
|
273
271
|
- `.content.mjx`
|
|
274
272
|
- `.content.cjs`
|
|
275
|
-
- `.content.
|
|
273
|
+
- `.content.md`
|
|
274
|
+
- `.content.mdx`
|
|
275
|
+
- `.content.yaml`
|
|
276
|
+
- `.content.yml`
|
|
276
277
|
- etc.
|
|
277
278
|
|
|
278
279
|
> **Expo Router (web): keep `.content.*` files out of the `app/` directory.** Expo Router treats every JavaScript/TypeScript file inside `app/` as a route. On web, its route discovery scans the filesystem directly and does **not** honor Metro's `resolver.blockList`, so a co-located `*.content.ts` is registered as a route. A file such as `app/(tabs)/_layout.content.ts` is even parsed as a layout (the `.content` part is read as a platform suffix), which collides with the real `_layout.tsx` and throws:
|
|
@@ -339,7 +340,7 @@ Use the `useIntlayer` hook in child components to get localized content.
|
|
|
339
340
|
|
|
340
341
|
```tsx fileName="app/(tabs)/index.tsx" codeFormat={["typescript", "esm"]}
|
|
341
342
|
import { Image, StyleSheet, Platform } from "react-native";
|
|
342
|
-
import { useIntlayer } from "react-intlayer";
|
|
343
|
+
import { useIntlayer } from "react-native-intlayer";
|
|
343
344
|
import { HelloWave } from "@/components/HelloWave";
|
|
344
345
|
import ParallaxScrollView from "@/components/ParallaxScrollView";
|
|
345
346
|
import { ThemedText } from "@/components/ThemedText";
|
|
@@ -394,7 +395,7 @@ To switch locales from within your components, you can use the `useLocale` hook
|
|
|
394
395
|
import { type FC } from "react";
|
|
395
396
|
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
|
|
396
397
|
import { getLocaleName } from "intlayer";
|
|
397
|
-
import { useLocale } from "react-intlayer";
|
|
398
|
+
import { useLocale } from "react-native-intlayer";
|
|
398
399
|
|
|
399
400
|
export const LocaleSwitcher: FC = () => {
|
|
400
401
|
const { setLocale, availableLocales } = useLocale();
|
|
@@ -512,7 +513,7 @@ Intlayer primarily targets the Web Intl API; on React Native you must include th
|
|
|
512
513
|
|
|
513
514
|
Checklist:
|
|
514
515
|
|
|
515
|
-
- Use the latest versions of `intlayer
|
|
516
|
+
- Use the latest versions of `intlayer` and `react-native-intlayer`.
|
|
516
517
|
- Enable the Intlayer polyfill.
|
|
517
518
|
- If you use `getLocaleName` or other Intl-API-based utilities, import these polyfills early (for example in `index.js` or `App.tsx`):
|
|
518
519
|
|
|
@@ -582,14 +582,17 @@ You can also use the `intlayerProxy` to add server-side routing to your applicat
|
|
|
582
582
|
```typescript {3,7} fileName="vite.config.ts"
|
|
583
583
|
import { defineConfig } from "vite";
|
|
584
584
|
import react from "@vitejs/plugin-react-swc";
|
|
585
|
-
import { intlayer
|
|
585
|
+
import { intlayer } from "vite-intlayer";
|
|
586
586
|
|
|
587
587
|
// https://vitejs.dev/config/
|
|
588
588
|
export default defineConfig({
|
|
589
589
|
plugins: [
|
|
590
|
-
intlayerProxy(), // should be placed first
|
|
591
590
|
react(),
|
|
592
|
-
intlayer(
|
|
591
|
+
intlayer({
|
|
592
|
+
proxy: {
|
|
593
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
594
|
+
},
|
|
595
|
+
}),
|
|
593
596
|
],
|
|
594
597
|
});
|
|
595
598
|
```
|
|
@@ -663,6 +666,8 @@ bun x intlayer extract
|
|
|
663
666
|
</Tab>
|
|
664
667
|
<Tab value='Babel compiler'>
|
|
665
668
|
|
|
669
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
670
|
+
|
|
666
671
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
667
672
|
|
|
668
673
|
```ts fileName="vite.config.ts"
|
|
@@ -631,14 +631,17 @@ You can also use the `intlayerProxy` to add server-side routing to your applicat
|
|
|
631
631
|
```typescript {3,7} fileName="vite.config.ts"
|
|
632
632
|
import { reactRouter } from "@react-router/dev/vite";
|
|
633
633
|
import { defineConfig } from "vite";
|
|
634
|
-
import { intlayer
|
|
634
|
+
import { intlayer } from "vite-intlayer";
|
|
635
635
|
|
|
636
636
|
export default defineConfig({
|
|
637
637
|
plugins: [
|
|
638
|
-
intlayerProxy(), // should be placed first
|
|
639
638
|
reactRouter(),
|
|
640
639
|
|
|
641
|
-
intlayer(
|
|
640
|
+
intlayer({
|
|
641
|
+
proxy: {
|
|
642
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
643
|
+
},
|
|
644
|
+
}),
|
|
642
645
|
],
|
|
643
646
|
});
|
|
644
647
|
```
|
|
@@ -712,6 +715,8 @@ bun x intlayer extract
|
|
|
712
715
|
</Tab>
|
|
713
716
|
<Tab value='Babel compiler'>
|
|
714
717
|
|
|
718
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
719
|
+
|
|
715
720
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
716
721
|
|
|
717
722
|
```ts fileName="vite.config.ts"
|
|
@@ -190,7 +190,13 @@ const config: StorybookConfig = {
|
|
|
190
190
|
} as const;
|
|
191
191
|
|
|
192
192
|
const viteConfig = defineConfig(() => ({
|
|
193
|
-
plugins: [
|
|
193
|
+
plugins: [
|
|
194
|
+
intlayer({
|
|
195
|
+
proxy: {
|
|
196
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
197
|
+
},
|
|
198
|
+
}),
|
|
199
|
+
],
|
|
194
200
|
}));
|
|
195
201
|
|
|
196
202
|
return mergeConfig(baseConfig, viteConfig(env));
|
|
@@ -620,14 +620,17 @@ To add a backend proxy to your SvelteKit application, you can use the `intlayerP
|
|
|
620
620
|
|
|
621
621
|
```ts fileName="vite.config.ts"
|
|
622
622
|
import { defineConfig } from "vite";
|
|
623
|
-
import { intlayer
|
|
623
|
+
import { intlayer } from "vite-intlayer";
|
|
624
624
|
import { sveltekit } from "@sveltejs/kit/vite";
|
|
625
625
|
|
|
626
626
|
// https://vitejs.dev/config/
|
|
627
627
|
export default defineConfig({
|
|
628
628
|
plugins: [
|
|
629
|
-
|
|
630
|
-
|
|
629
|
+
intlayer({
|
|
630
|
+
proxy: {
|
|
631
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
632
|
+
},
|
|
633
|
+
}),
|
|
631
634
|
sveltekit(),
|
|
632
635
|
],
|
|
633
636
|
});
|
|
@@ -729,9 +732,9 @@ bun x intlayer extract
|
|
|
729
732
|
</Tab>
|
|
730
733
|
<Tab value='Babel compiler'>
|
|
731
734
|
|
|
732
|
-
|
|
735
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
733
736
|
|
|
734
|
-
|
|
737
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
735
738
|
|
|
736
739
|
```ts fileName="vite.config.ts"
|
|
737
740
|
import { defineConfig } from "vite";
|
|
@@ -231,11 +231,15 @@ export default defineConfig({
|
|
|
231
231
|
tanstackStart({
|
|
232
232
|
router: {
|
|
233
233
|
routeFileIgnorePattern:
|
|
234
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
234
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
235
235
|
},
|
|
236
236
|
}),
|
|
237
237
|
solidPlugin({ ssr: true }),
|
|
238
|
-
intlayer(
|
|
238
|
+
intlayer({
|
|
239
|
+
proxy: {
|
|
240
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
241
|
+
},
|
|
242
|
+
}),
|
|
239
243
|
],
|
|
240
244
|
});
|
|
241
245
|
```
|
|
@@ -573,22 +577,25 @@ You can also use the `intlayerProxy` to add server-side routing to your applicat
|
|
|
573
577
|
|
|
574
578
|
> Since Intlayer v9, `intlayerProxy()` is bundled directly into the `intlayer()` plugin and enabled by default through the `routing.enableProxy` option (`true` by default). Registering it separately as shown below is now optional — it is kept for backward compatibility and for setups that need to control plugin order. Set `routing.enableProxy: false` to opt out. See the [v9 release notes](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/releases/v9.md).
|
|
575
579
|
|
|
576
|
-
```typescript
|
|
580
|
+
```typescript fileName="vite.config.ts"
|
|
577
581
|
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
578
582
|
import solid from "vite-plugin-solid";
|
|
579
583
|
import { nitro } from "nitro/vite";
|
|
580
584
|
import { defineConfig } from "vite";
|
|
581
|
-
import { intlayer
|
|
585
|
+
import { intlayer } from "vite-intlayer";
|
|
582
586
|
|
|
583
587
|
export default defineConfig({
|
|
584
588
|
plugins: [
|
|
585
|
-
intlayerProxy(), // The proxy should be placed before server if you use Nitro
|
|
586
589
|
nitro(),
|
|
587
|
-
intlayer(
|
|
590
|
+
intlayer({
|
|
591
|
+
proxy: {
|
|
592
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
593
|
+
},
|
|
594
|
+
}),
|
|
588
595
|
tanstackStart({
|
|
589
596
|
router: {
|
|
590
597
|
routeFileIgnorePattern:
|
|
591
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
598
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
592
599
|
},
|
|
593
600
|
}),
|
|
594
601
|
solid(),
|
|
@@ -831,6 +838,8 @@ bun x intlayer extract
|
|
|
831
838
|
</Tab>
|
|
832
839
|
<Tab value='Babel compiler'>
|
|
833
840
|
|
|
841
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
842
|
+
|
|
834
843
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
835
844
|
|
|
836
845
|
```ts fileName="vite.config.ts"
|
|
@@ -846,12 +855,12 @@ export default defineConfig({
|
|
|
846
855
|
tanstackStart({
|
|
847
856
|
router: {
|
|
848
857
|
routeFileIgnorePattern:
|
|
849
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
858
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
850
859
|
},
|
|
851
860
|
}),
|
|
852
861
|
solidPlugin({ ssr: true }),
|
|
853
862
|
intlayer(),
|
|
854
|
-
intlayerCompiler(),
|
|
863
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
855
864
|
],
|
|
856
865
|
});
|
|
857
866
|
```
|
|
@@ -245,11 +245,15 @@ import { intlayer } from "vite-intlayer";
|
|
|
245
245
|
const config = defineConfig({
|
|
246
246
|
plugins: [
|
|
247
247
|
nitro(),
|
|
248
|
-
intlayer(
|
|
248
|
+
intlayer({
|
|
249
|
+
proxy: {
|
|
250
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
251
|
+
},
|
|
252
|
+
}),
|
|
249
253
|
tanstackStart({
|
|
250
254
|
router: {
|
|
251
255
|
routeFileIgnorePattern:
|
|
252
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
256
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
253
257
|
},
|
|
254
258
|
}),
|
|
255
259
|
viteReact(),
|
|
@@ -655,22 +659,25 @@ You can also use the `intlayerProxy` to add server-side routing to your applicat
|
|
|
655
659
|
|
|
656
660
|
> Since Intlayer v9, `intlayerProxy()` is bundled directly into the `intlayer()` plugin and enabled by default through the `routing.enableProxy` option (`true` by default). Registering it separately as shown below is now optional — it is kept for backward compatibility and for setups that need to control plugin order. Set `routing.enableProxy: false` to opt out. See the [v9 release notes](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/releases/v9.md).
|
|
657
661
|
|
|
658
|
-
```typescript
|
|
662
|
+
```typescript fileName="vite.config.ts"
|
|
659
663
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
660
664
|
import viteReact from "@vitejs/plugin-react";
|
|
661
665
|
import { nitro } from "nitro/vite";
|
|
662
666
|
import { defineConfig } from "vite";
|
|
663
|
-
import { intlayer
|
|
667
|
+
import { intlayer } from "vite-intlayer";
|
|
664
668
|
|
|
665
669
|
export default defineConfig({
|
|
666
670
|
plugins: [
|
|
667
|
-
intlayerProxy(), // The proxy should be placed before server if you use Nitro
|
|
668
671
|
nitro(),
|
|
669
|
-
intlayer(
|
|
672
|
+
intlayer({
|
|
673
|
+
proxy: {
|
|
674
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
675
|
+
},
|
|
676
|
+
}),
|
|
670
677
|
tanstackStart({
|
|
671
678
|
router: {
|
|
672
679
|
routeFileIgnorePattern:
|
|
673
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
680
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
674
681
|
},
|
|
675
682
|
}),
|
|
676
683
|
viteReact(),
|
|
@@ -913,6 +920,8 @@ bun x intlayer extract
|
|
|
913
920
|
</Tab>
|
|
914
921
|
<Tab value='Babel compiler'>
|
|
915
922
|
|
|
923
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
924
|
+
|
|
916
925
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
917
926
|
|
|
918
927
|
```ts fileName="vite.config.ts"
|
|
@@ -207,7 +207,13 @@ import { intlayer } from "vite-intlayer";
|
|
|
207
207
|
|
|
208
208
|
// https://vitejs.dev/config/
|
|
209
209
|
export default defineConfig({
|
|
210
|
-
plugins: [
|
|
210
|
+
plugins: [
|
|
211
|
+
intlayer({
|
|
212
|
+
proxy: {
|
|
213
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
214
|
+
},
|
|
215
|
+
}),
|
|
216
|
+
],
|
|
211
217
|
});
|
|
212
218
|
```
|
|
213
219
|
|
|
@@ -478,12 +484,15 @@ First, add `intlayerProxy` to your Vite config:
|
|
|
478
484
|
|
|
479
485
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
480
486
|
import { defineConfig } from "vite";
|
|
481
|
-
import { intlayer
|
|
487
|
+
import { intlayer } from "vite-intlayer";
|
|
482
488
|
|
|
483
489
|
export default defineConfig({
|
|
484
490
|
plugins: [
|
|
485
|
-
|
|
486
|
-
|
|
491
|
+
intlayer({
|
|
492
|
+
proxy: {
|
|
493
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
494
|
+
},
|
|
495
|
+
}),
|
|
487
496
|
],
|
|
488
497
|
});
|
|
489
498
|
```
|
|
@@ -525,15 +525,18 @@ In parallel, you can also use the `intlayerProxy` to add server-side routing to
|
|
|
525
525
|
|
|
526
526
|
```typescript {3,7} fileName="vite.config.ts"
|
|
527
527
|
import { defineConfig } from "vite";
|
|
528
|
-
import { intlayer
|
|
528
|
+
import { intlayer } from "vite-intlayer";
|
|
529
529
|
import preact from "@preact/preset-vite";
|
|
530
530
|
|
|
531
531
|
// https://vitejs.dev/config/
|
|
532
532
|
export default defineConfig({
|
|
533
533
|
plugins: [
|
|
534
|
-
intlayerProxy(), // should be placed first
|
|
535
534
|
preact(),
|
|
536
|
-
intlayer(
|
|
535
|
+
intlayer({
|
|
536
|
+
proxy: {
|
|
537
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
538
|
+
},
|
|
539
|
+
}),
|
|
537
540
|
],
|
|
538
541
|
});
|
|
539
542
|
```
|
|
@@ -865,6 +868,8 @@ bun x intlayer extract
|
|
|
865
868
|
</Tab>
|
|
866
869
|
<Tab value='Babel compiler'>
|
|
867
870
|
|
|
871
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
872
|
+
|
|
868
873
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
869
874
|
|
|
870
875
|
```ts fileName="vite.config.ts"
|
|
@@ -506,14 +506,17 @@ In parallel, you can also use the `intlayerProxy` to add server-side routing to
|
|
|
506
506
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
507
507
|
import { defineConfig } from "vite";
|
|
508
508
|
import react from "@vitejs/plugin-react-swc";
|
|
509
|
-
import { intlayer
|
|
509
|
+
import { intlayer } from "vite-intlayer";
|
|
510
510
|
|
|
511
511
|
// https://vitejs.dev/config/
|
|
512
512
|
export default defineConfig({
|
|
513
513
|
plugins: [
|
|
514
|
-
intlayerProxy(), // should be placed first
|
|
515
514
|
react(),
|
|
516
|
-
intlayer(
|
|
515
|
+
intlayer({
|
|
516
|
+
proxy: {
|
|
517
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
518
|
+
},
|
|
519
|
+
}),
|
|
517
520
|
],
|
|
518
521
|
});
|
|
519
522
|
```
|
|
@@ -822,6 +825,8 @@ bun x intlayer extract
|
|
|
822
825
|
</Tab>
|
|
823
826
|
<Tab value='Babel compiler'>
|
|
824
827
|
|
|
828
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
829
|
+
|
|
825
830
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
826
831
|
|
|
827
832
|
```ts fileName="vite.config.ts"
|
|
@@ -216,11 +216,18 @@ Add the intlayer plugin into your configuration.
|
|
|
216
216
|
```typescript fileName="vite.config.ts"
|
|
217
217
|
import { defineConfig } from "vite";
|
|
218
218
|
import react from "@vitejs/plugin-react-swc";
|
|
219
|
-
import { intlayer
|
|
219
|
+
import { intlayer } from "vite-intlayer";
|
|
220
220
|
|
|
221
221
|
// https://vitejs.dev/config/
|
|
222
222
|
export default defineConfig({
|
|
223
|
-
plugins: [
|
|
223
|
+
plugins: [
|
|
224
|
+
react(),
|
|
225
|
+
intlayer({
|
|
226
|
+
proxy: {
|
|
227
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
228
|
+
},
|
|
229
|
+
}),
|
|
230
|
+
],
|
|
224
231
|
});
|
|
225
232
|
```
|
|
226
233
|
|
|
@@ -572,14 +572,17 @@ In parallel, you can also use the `intlayerProxy` to add server-side routing to
|
|
|
572
572
|
```typescript {3,7} fileName="vite.config.ts"
|
|
573
573
|
import { defineConfig } from "vite";
|
|
574
574
|
import solid from "vite-plugin-solid";
|
|
575
|
-
import { intlayer
|
|
575
|
+
import { intlayer } from "vite-intlayer";
|
|
576
576
|
|
|
577
577
|
// https://vitejs.dev/config/
|
|
578
578
|
export default defineConfig({
|
|
579
579
|
plugins: [
|
|
580
|
-
intlayerProxy(), // should be placed first
|
|
581
580
|
solid(),
|
|
582
|
-
intlayer(
|
|
581
|
+
intlayer({
|
|
582
|
+
proxy: {
|
|
583
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
584
|
+
},
|
|
585
|
+
}),
|
|
583
586
|
],
|
|
584
587
|
});
|
|
585
588
|
```
|
|
@@ -653,6 +656,8 @@ bun x intlayer extract
|
|
|
653
656
|
</Tab>
|
|
654
657
|
<Tab value='Babel compiler'>
|
|
655
658
|
|
|
659
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
660
|
+
|
|
656
661
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
657
662
|
|
|
658
663
|
```ts fileName="vite.config.ts"
|
|
@@ -478,14 +478,17 @@ In parallel, you can also use the `intlayerProxy` to add server-side routing to
|
|
|
478
478
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
479
479
|
import { defineConfig } from "vite";
|
|
480
480
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
481
|
-
import { intlayer
|
|
481
|
+
import { intlayer } from "vite-intlayer";
|
|
482
482
|
|
|
483
483
|
// https://vitejs.dev/config/
|
|
484
484
|
export default defineConfig({
|
|
485
485
|
plugins: [
|
|
486
|
-
intlayerProxy(), // should be placed first
|
|
487
486
|
svelte(),
|
|
488
|
-
intlayer(
|
|
487
|
+
intlayer({
|
|
488
|
+
proxy: {
|
|
489
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
490
|
+
},
|
|
491
|
+
}),
|
|
489
492
|
],
|
|
490
493
|
});
|
|
491
494
|
```
|
|
@@ -620,6 +623,8 @@ bun x intlayer extract
|
|
|
620
623
|
</Tab>
|
|
621
624
|
<Tab value='Babel compiler'>
|
|
622
625
|
|
|
626
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
627
|
+
|
|
623
628
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
624
629
|
|
|
625
630
|
```ts fileName="vite.config.ts"
|
|
@@ -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
|
|
|
@@ -468,12 +474,15 @@ First, add `intlayerProxy` to your Vite config:
|
|
|
468
474
|
|
|
469
475
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
470
476
|
import { defineConfig } from "vite";
|
|
471
|
-
import { intlayer
|
|
477
|
+
import { intlayer } from "vite-intlayer";
|
|
472
478
|
|
|
473
479
|
export default defineConfig({
|
|
474
480
|
plugins: [
|
|
475
|
-
|
|
476
|
-
|
|
481
|
+
intlayer({
|
|
482
|
+
proxy: {
|
|
483
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
484
|
+
},
|
|
485
|
+
}),
|
|
477
486
|
],
|
|
478
487
|
});
|
|
479
488
|
```
|
|
@@ -608,9 +617,9 @@ bun x intlayer extract
|
|
|
608
617
|
</Tab>
|
|
609
618
|
<Tab value='Babel compiler'>
|
|
610
619
|
|
|
611
|
-
|
|
620
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
612
621
|
|
|
613
|
-
|
|
622
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
614
623
|
|
|
615
624
|
```ts fileName="vite.config.ts"
|
|
616
625
|
import { defineConfig } from "vite";
|
|
@@ -634,14 +634,17 @@ In parallel, you can also use the `intlayerProxy` to add server-side routing to
|
|
|
634
634
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
635
635
|
import { defineConfig } from "vite";
|
|
636
636
|
import vue from "@vitejs/plugin-vue";
|
|
637
|
-
import { intlayer
|
|
637
|
+
import { intlayer } from "vite-intlayer";
|
|
638
638
|
|
|
639
639
|
// https://vitejs.dev/config/
|
|
640
640
|
export default defineConfig({
|
|
641
641
|
plugins: [
|
|
642
|
-
intlayerProxy(), // should be placed first
|
|
643
642
|
vue(),
|
|
644
|
-
intlayer(
|
|
643
|
+
intlayer({
|
|
644
|
+
proxy: {
|
|
645
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
646
|
+
},
|
|
647
|
+
}),
|
|
645
648
|
],
|
|
646
649
|
});
|
|
647
650
|
```
|
|
@@ -970,6 +973,8 @@ bun x intlayer extract
|
|
|
970
973
|
</Tab>
|
|
971
974
|
<Tab value='Babel compiler'>
|
|
972
975
|
|
|
976
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
977
|
+
|
|
973
978
|
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
974
979
|
|
|
975
980
|
```ts fileName="vite.config.ts"
|