@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
|
@@ -232,6 +232,8 @@ if (import.meta.webpackHot) {
|
|
|
232
232
|
Buat file **deklarasi konten** di mana saja dalam proyek Anda (biasanya di dalam `src/`), menggunakan salah satu format ekstensi yang didukung oleh Intlayer:
|
|
233
233
|
|
|
234
234
|
- `.content.json`
|
|
235
|
+
- `.content.jsonc`
|
|
236
|
+
- `.content.json5`
|
|
235
237
|
- `.content.ts`
|
|
236
238
|
- `.content.tsx`
|
|
237
239
|
- `.content.js`
|
|
@@ -239,7 +241,10 @@ Buat file **deklarasi konten** di mana saja dalam proyek Anda (biasanya di dalam
|
|
|
239
241
|
- `.content.mjs`
|
|
240
242
|
- `.content.mjx`
|
|
241
243
|
- `.content.cjs`
|
|
242
|
-
- `.content.
|
|
244
|
+
- `.content.md`
|
|
245
|
+
- `.content.mdx`
|
|
246
|
+
- `.content.yaml`
|
|
247
|
+
- `.content.yml`
|
|
243
248
|
- dll.
|
|
244
249
|
|
|
245
250
|
Contoh:
|
|
@@ -995,6 +995,8 @@ bun x intlayer extract
|
|
|
995
995
|
</Tab>
|
|
996
996
|
<Tab value='Compiler Babel'>
|
|
997
997
|
|
|
998
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
999
|
+
|
|
998
1000
|
```bash packageManager="npm"
|
|
999
1001
|
npm install @intlayer/babel --save-dev
|
|
1000
1002
|
```
|
|
@@ -559,6 +559,8 @@ bun x intlayer extract
|
|
|
559
559
|
</Tab>
|
|
560
560
|
<Tab value='Compiler Babel'>
|
|
561
561
|
|
|
562
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
563
|
+
|
|
562
564
|
```bash packageManager="npm"
|
|
563
565
|
npm install @intlayer/babel --save-dev
|
|
564
566
|
```
|
|
@@ -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 - Panduan lengkap menerjemahkan aplikasi Anda"
|
|
5
5
|
description: "Tidak ada lagi i18next. Panduan 2026 untuk membangun aplikasi Expo + React Native multibahasa (i18n). Terjemahkan dengan agen AI dan optimalkan ukuran bundle, SEO, dan performa."
|
|
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: "Impor provider dan hook langsung dari react-native-intlayer; react-intlayer tidak lagi diperlukan sebagai dependensi langsung"
|
|
20
23
|
- version: 8.9.0
|
|
21
24
|
date: 2026-05-04
|
|
22
25
|
changes: "Perbarui penggunaan API useIntlayer Solid ke akses properti langsung"
|
|
@@ -120,28 +123,40 @@ Lihat [Template Aplikasi](https://github.com/aymericzip/intlayer-react-native-te
|
|
|
120
123
|
|
|
121
124
|
Dari proyek React Native Anda, instal paket berikut:
|
|
122
125
|
|
|
123
|
-
```bash packageManager
|
|
124
|
-
|
|
125
|
-
npm install --save-dev reaksi-asli-intlayer
|
|
126
|
-
npx lapisan dalam init
|
|
126
|
+
```bash packageManager="npm"
|
|
127
|
+
npx intlayer-cli init --interactive
|
|
127
128
|
```
|
|
128
129
|
|
|
129
|
-
```bash packageManager
|
|
130
|
-
pnpm
|
|
131
|
-
pnpm tambahkan --save-dev react-native-intlayer
|
|
132
|
-
pnpm dalam lapisan init
|
|
130
|
+
```bash packageManager="pnpm"
|
|
131
|
+
pnpm dlx intlayer-cli init --interactive
|
|
133
132
|
```
|
|
134
133
|
|
|
135
|
-
```bash packageManager
|
|
136
|
-
|
|
137
|
-
benang tambahkan --save-dev react-native-intlayer
|
|
138
|
-
benang dalam lapisan init
|
|
134
|
+
```bash packageManager="yarn"
|
|
135
|
+
yarn dlx intlayer-cli init --interactive
|
|
139
136
|
```
|
|
140
137
|
|
|
141
|
-
```bash packageManager
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
138
|
+
```bash packageManager="bun"
|
|
139
|
+
bunx intlayer-cli init --interactive
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
> Flag `--interactive` bersifat opsional. Gunakan `intlayer-cli init` jika Anda adalah agen AI.
|
|
143
|
+
|
|
144
|
+
> Perintah ini akan mendeteksi lingkungan Anda dan menginstal paket yang diperlukan. Contohnya:
|
|
145
|
+
|
|
146
|
+
```bash packageManager="npm"
|
|
147
|
+
npm install intlayer react-native-intlayer
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
```bash packageManager="pnpm"
|
|
151
|
+
pnpm add intlayer react-native-intlayer
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
```bash packageManager="yarn"
|
|
155
|
+
yarn add intlayer react-native-intlayer
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
```bash packageManager="bun"
|
|
159
|
+
bun add intlayer react-native-intlayer
|
|
145
160
|
```
|
|
146
161
|
|
|
147
162
|
### Paket
|
|
@@ -149,17 +164,14 @@ bun x lapisan init
|
|
|
149
164
|
- **intlayer**
|
|
150
165
|
Toolkit inti i18n untuk konfigurasi, konten kamus, generasi tipe, dan perintah CLI.
|
|
151
166
|
|
|
152
|
-
- **react-intlayer**
|
|
153
|
-
Integrasi React yang menyediakan context providers dan React hooks yang akan Anda gunakan di React Native untuk mendapatkan dan mengganti locale.
|
|
154
|
-
|
|
155
167
|
- **react-native-intlayer**
|
|
156
|
-
Integrasi React Native yang menyediakan plugin Metro untuk mengintegrasikan Intlayer dengan bundler React Native.
|
|
168
|
+
Integrasi React Native yang menyediakan context providers dan React hooks yang akan Anda gunakan untuk mendapatkan dan mengganti locale, polyfill React Native, serta plugin Metro untuk mengintegrasikan Intlayer dengan bundler React Native. Paket ini mengekspor ulang semua hal dari `react-intlayer`, sehingga Anda hanya memerlukan satu paket ini dalam aplikasi React Native.
|
|
157
169
|
|
|
158
170
|
---
|
|
159
171
|
|
|
160
172
|
</Step>
|
|
161
173
|
|
|
162
|
-
<Step number={
|
|
174
|
+
<Step number={2} title="Buat Konfigurasi Intlayer">
|
|
163
175
|
|
|
164
176
|
Di root proyek Anda (atau di mana saja yang nyaman), buat file **konfigurasi Intlayer**. File tersebut mungkin terlihat seperti ini:
|
|
165
177
|
|
|
@@ -189,11 +201,11 @@ Dalam konfigurasi ini, Anda dapat:
|
|
|
189
201
|
- Mengonfigurasi **daftar locale yang didukung**.
|
|
190
202
|
- Menetapkan locale **default**.
|
|
191
203
|
- Nanti, Anda dapat menambahkan opsi yang lebih canggih (misalnya, log, direktori konten khusus, dll.).
|
|
192
|
-
- Lihat [dokumentasi konfigurasi Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/
|
|
204
|
+
- Lihat [dokumentasi konfigurasi Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md) untuk informasi lebih lanjut.
|
|
193
205
|
|
|
194
206
|
</Step>
|
|
195
207
|
|
|
196
|
-
<Step number={
|
|
208
|
+
<Step number={3} title="Tambahkan plugin Metro">
|
|
197
209
|
|
|
198
210
|
Metro adalah bundler untuk React Native. Ini adalah bundler default untuk proyek React Native yang dibuat dengan perintah `react-native init`. Untuk menggunakan Intlayer dengan Metro, Anda perlu menambahkan plugin ke file `metro.config.js` Anda:
|
|
199
211
|
|
|
@@ -213,11 +225,11 @@ module.exports = (async () => {
|
|
|
213
225
|
|
|
214
226
|
</Step>
|
|
215
227
|
|
|
216
|
-
<Step number={
|
|
228
|
+
<Step number={4} title="Tambahkan provider Intlayer">
|
|
217
229
|
|
|
218
230
|
Untuk menjaga sinkronisasi bahasa pengguna di seluruh aplikasi Anda, Anda perlu membungkus komponen root Anda dengan komponen `IntlayerProvider` dari `react-native-intlayer`.
|
|
219
231
|
|
|
220
|
-
>
|
|
232
|
+
> Selalu impor dari `react-native-intlayer`. `IntlayerProvider`-nya mencakup polyfill untuk API web yang digunakan oleh Intlayer, dan paket ini mengekspor ulang semua hook serta utilitas dari `react-intlayer`.
|
|
221
233
|
|
|
222
234
|
Selain itu, Anda perlu menambahkan fungsi `intlayerPolyfill` ke file `index.js` Anda untuk memastikan Intlayer dapat bekerja dengan baik.
|
|
223
235
|
|
|
@@ -244,11 +256,13 @@ export default RootLayout;
|
|
|
244
256
|
|
|
245
257
|
</Step>
|
|
246
258
|
|
|
247
|
-
<Step number={
|
|
259
|
+
<Step number={5} title="Deklarasikan Konten Anda">
|
|
248
260
|
|
|
249
261
|
Buat file **deklarasi konten** di mana saja dalam proyek Anda (biasanya di dalam `src/`), menggunakan salah satu format ekstensi yang didukung Intlayer:
|
|
250
262
|
|
|
251
263
|
- `.content.json`
|
|
264
|
+
- `.content.jsonc`
|
|
265
|
+
- `.content.json5`
|
|
252
266
|
- `.content.ts`
|
|
253
267
|
- `.content.tsx`
|
|
254
268
|
- `.content.js`
|
|
@@ -256,7 +270,10 @@ Buat file **deklarasi konten** di mana saja dalam proyek Anda (biasanya di dalam
|
|
|
256
270
|
- `.content.mjs`
|
|
257
271
|
- `.content.mjx`
|
|
258
272
|
- `.content.cjs`
|
|
259
|
-
- `.content.
|
|
273
|
+
- `.content.md`
|
|
274
|
+
- `.content.mdx`
|
|
275
|
+
- `.content.yaml`
|
|
276
|
+
- `.content.yml`
|
|
260
277
|
- dll.
|
|
261
278
|
|
|
262
279
|
> **Expo Router (web): jauhkan file `.content.*` dari direktori `app/`.** Expo Router memperlakukan setiap file JavaScript/TypeScript di dalam `app/` sebagai rute. Di web, penemuan rutenya memindai sistem file secara langsung dan **tidak** menghormati `resolver.blockList` Metro, sehingga `*.content.ts` yang ditempatkan bersama terdaftar sebagai rute. File seperti `app/(tabs)/_layout.content.ts` bahkan diuraikan sebagai tata letak (bagian `.content` dibaca sebagai sufiks platform), yang bertabrakan dengan `_layout.tsx` asli dan menampilkan:
|
|
@@ -315,7 +332,7 @@ export default homeScreenContent;
|
|
|
315
332
|
|
|
316
333
|
</Step>
|
|
317
334
|
|
|
318
|
-
<Step number={
|
|
335
|
+
<Step number={6} title="Gunakan Intlayer di Komponen Anda">
|
|
319
336
|
|
|
320
337
|
Gunakan hook `useIntlayer` di komponen anak untuk mendapatkan konten yang sudah dilokalisasi.
|
|
321
338
|
|
|
@@ -323,7 +340,7 @@ Gunakan hook `useIntlayer` di komponen anak untuk mendapatkan konten yang sudah
|
|
|
323
340
|
|
|
324
341
|
```tsx fileName="app/(tabs)/index.tsx" codeFormat={["typescript", "esm"]}
|
|
325
342
|
import { Image, StyleSheet, Platform } from "react-native";
|
|
326
|
-
import { useIntlayer } from "react-intlayer";
|
|
343
|
+
import { useIntlayer } from "react-native-intlayer";
|
|
327
344
|
import { HelloWave } from "@/components/HelloWave";
|
|
328
345
|
import ParallaxScrollView from "@/components/ParallaxScrollView";
|
|
329
346
|
import { ThemedText } from "@/components/ThemedText";
|
|
@@ -370,7 +387,7 @@ export default HomeScreen;
|
|
|
370
387
|
|
|
371
388
|
</Step>
|
|
372
389
|
|
|
373
|
-
<Step number={
|
|
390
|
+
<Step number={7} title="Ubah Locale Aplikasi" isOptional={true}>
|
|
374
391
|
|
|
375
392
|
Untuk mengganti locale dari dalam komponen Anda, Anda dapat menggunakan metode `setLocale` dari hook `useLocale`:
|
|
376
393
|
|
|
@@ -378,7 +395,7 @@ Untuk mengganti locale dari dalam komponen Anda, Anda dapat menggunakan metode `
|
|
|
378
395
|
import { type FC } from "react";
|
|
379
396
|
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
|
|
380
397
|
import { getLocaleName } from "intlayer";
|
|
381
|
-
import { useLocale } from "react-intlayer";
|
|
398
|
+
import { useLocale } from "react-native-intlayer";
|
|
382
399
|
|
|
383
400
|
export const LocaleSwitcher: FC = () => {
|
|
384
401
|
const { setLocale, availableLocales } = useLocale();
|
|
@@ -455,7 +472,7 @@ Ini yang mengaktifkan fitur seperti:
|
|
|
455
472
|
Untuk menghindari commit file yang dihasilkan otomatis oleh Intlayer, tambahkan berikut ini ke `.gitignore` Anda:
|
|
456
473
|
|
|
457
474
|
```bash
|
|
458
|
-
#
|
|
475
|
+
# Abaikan file yang dihasilkan oleh Intlayer
|
|
459
476
|
.intlayer
|
|
460
477
|
```
|
|
461
478
|
|
|
@@ -496,7 +513,7 @@ Intlayer terutama menargetkan Web Intl API; pada React Native Anda harus menyert
|
|
|
496
513
|
|
|
497
514
|
Daftar periksa:
|
|
498
515
|
|
|
499
|
-
- Gunakan versi terbaru dari `intlayer
|
|
516
|
+
- Gunakan versi terbaru dari `intlayer` dan `react-native-intlayer`.
|
|
500
517
|
- Aktifkan polyfill Intlayer.
|
|
501
518
|
- Jika Anda menggunakan `getLocaleName` atau utilitas lain berbasis Intl-API, impor polyfill ini lebih awal (misalnya di `index.js` atau `App.tsx`):
|
|
502
519
|
|
|
@@ -633,6 +633,8 @@ bun x intlayer extract
|
|
|
633
633
|
</Tab>
|
|
634
634
|
<Tab value='Compiler Babel'>
|
|
635
635
|
|
|
636
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
637
|
+
|
|
636
638
|
Perbarui `vite.config.ts` Anda untuk menyertakan plugin `intlayerCompiler`:
|
|
637
639
|
|
|
638
640
|
```ts fileName="vite.config.ts"
|
|
@@ -642,7 +644,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
642
644
|
export default defineConfig({
|
|
643
645
|
plugins: [
|
|
644
646
|
intlayer(),
|
|
645
|
-
intlayerCompiler(), //
|
|
647
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
646
648
|
],
|
|
647
649
|
});
|
|
648
650
|
```
|
|
@@ -512,6 +512,8 @@ bun x intlayer extract
|
|
|
512
512
|
</Tab>
|
|
513
513
|
<Tab value='Compiler Babel'>
|
|
514
514
|
|
|
515
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
516
|
+
|
|
515
517
|
Perbarui `vite.config.ts` Anda untuk menyertakan plugin `intlayerCompiler`:
|
|
516
518
|
|
|
517
519
|
```ts fileName="vite.config.ts"
|
|
@@ -521,7 +523,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
521
523
|
export default defineConfig({
|
|
522
524
|
plugins: [
|
|
523
525
|
intlayer(),
|
|
524
|
-
intlayerCompiler(), //
|
|
526
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
525
527
|
],
|
|
526
528
|
});
|
|
527
529
|
```
|
|
@@ -592,14 +594,17 @@ Anda juga dapat menggunakan `intlayerProxy` untuk menambahkan routing sisi serve
|
|
|
592
594
|
```typescript {3,7} fileName="vite.config.ts"
|
|
593
595
|
import { reactRouter } from "@react-router/dev/vite";
|
|
594
596
|
import { defineConfig } from "vite";
|
|
595
|
-
import { intlayer
|
|
597
|
+
import { intlayer } from "vite-intlayer";
|
|
596
598
|
|
|
597
599
|
export default defineConfig({
|
|
598
600
|
plugins: [
|
|
599
|
-
intlayerProxy(), // should be placed first
|
|
600
601
|
reactRouter(),
|
|
601
602
|
|
|
602
|
-
intlayer(
|
|
603
|
+
intlayer({
|
|
604
|
+
proxy: {
|
|
605
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
606
|
+
},
|
|
607
|
+
}),
|
|
603
608
|
],
|
|
604
609
|
});
|
|
605
610
|
```
|
|
@@ -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 @@ Untuk menambahkan proxy backend ke aplikasi SvelteKit Anda, Anda dapat menggunak
|
|
|
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='Compiler 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
|
Perbarui `vite.config.ts` Anda untuk menyertakan 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
|
```
|
|
@@ -227,11 +227,15 @@ export default defineConfig({
|
|
|
227
227
|
tanstackStart({
|
|
228
228
|
router: {
|
|
229
229
|
routeFileIgnorePattern:
|
|
230
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
230
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
231
231
|
},
|
|
232
232
|
}),
|
|
233
233
|
solidPlugin({ ssr: true }),
|
|
234
|
-
intlayer(
|
|
234
|
+
intlayer({
|
|
235
|
+
proxy: {
|
|
236
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
237
|
+
},
|
|
238
|
+
}),
|
|
235
239
|
],
|
|
236
240
|
});
|
|
237
241
|
```
|
|
@@ -567,22 +571,25 @@ Anda juga dapat menggunakan `intlayerProxy` untuk menambahkan perutean sisi serv
|
|
|
567
571
|
|
|
568
572
|
> Perlu diketahui bahwa untuk menggunakan `intlayerProxy` dalam produksi, Anda perlu memindahkan paket `vite-intlayer` dari `devDependencies` ke `dependencies`.
|
|
569
573
|
|
|
570
|
-
```typescript
|
|
574
|
+
```typescript fileName="vite.config.ts"
|
|
571
575
|
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
572
576
|
import solid from "vite-plugin-solid";
|
|
573
577
|
import { nitro } from "nitro/vite";
|
|
574
578
|
import { defineConfig } from "vite";
|
|
575
|
-
import { intlayer
|
|
579
|
+
import { intlayer } from "vite-intlayer";
|
|
576
580
|
|
|
577
581
|
export default defineConfig({
|
|
578
582
|
plugins: [
|
|
579
|
-
intlayerProxy(), // Proxy harus ditempatkan sebelum server jika Anda menggunakan Nitro
|
|
580
583
|
nitro(),
|
|
581
|
-
intlayer(
|
|
584
|
+
intlayer({
|
|
585
|
+
proxy: {
|
|
586
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
587
|
+
},
|
|
588
|
+
}),
|
|
582
589
|
tanstackStart({
|
|
583
590
|
router: {
|
|
584
591
|
routeFileIgnorePattern:
|
|
585
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
592
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
586
593
|
},
|
|
587
594
|
}),
|
|
588
595
|
solid(),
|
|
@@ -825,9 +832,9 @@ bun x intlayer extract
|
|
|
825
832
|
</Tab>
|
|
826
833
|
<Tab value='Kompiler Babel'>
|
|
827
834
|
|
|
828
|
-
|
|
835
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
829
836
|
|
|
830
|
-
|
|
837
|
+
Perbarui `vite.config.ts` Anda untuk menyertakan plugin `intlayerCompiler`:
|
|
831
838
|
|
|
832
839
|
```ts fileName="vite.config.ts"
|
|
833
840
|
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
@@ -842,12 +849,12 @@ export default defineConfig({
|
|
|
842
849
|
tanstackStart({
|
|
843
850
|
router: {
|
|
844
851
|
routeFileIgnorePattern:
|
|
845
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
852
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
846
853
|
},
|
|
847
854
|
}),
|
|
848
855
|
solidPlugin({ ssr: true }),
|
|
849
856
|
intlayer(),
|
|
850
|
-
intlayerCompiler(),
|
|
857
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
851
858
|
],
|
|
852
859
|
});
|
|
853
860
|
```
|
|
@@ -241,11 +241,15 @@ import { intlayer } from "vite-intlayer";
|
|
|
241
241
|
const config = defineConfig({
|
|
242
242
|
plugins: [
|
|
243
243
|
nitro(),
|
|
244
|
-
intlayer(
|
|
244
|
+
intlayer({
|
|
245
|
+
proxy: {
|
|
246
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
247
|
+
},
|
|
248
|
+
}),
|
|
245
249
|
tanstackStart({
|
|
246
250
|
router: {
|
|
247
251
|
routeFileIgnorePattern:
|
|
248
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
252
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
249
253
|
},
|
|
250
254
|
}),
|
|
251
255
|
viteReact(),
|
|
@@ -649,22 +653,25 @@ Anda juga dapat menggunakan `intlayerProxy` untuk menambahkan routing sisi serve
|
|
|
649
653
|
|
|
650
654
|
> Perhatikan bahwa untuk menggunakan `intlayerProxy` di produksi, Anda perlu mengganti paket `vite-intlayer` dari `devDependencies` ke `dependencies`.
|
|
651
655
|
|
|
652
|
-
```typescript
|
|
656
|
+
```typescript fileName="vite.config.ts"
|
|
653
657
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
654
658
|
import viteReact from "@vitejs/plugin-react";
|
|
655
659
|
import { nitro } from "nitro/vite";
|
|
656
660
|
import { defineConfig } from "vite";
|
|
657
|
-
import { intlayer
|
|
661
|
+
import { intlayer } from "vite-intlayer";
|
|
658
662
|
|
|
659
663
|
export default defineConfig({
|
|
660
664
|
plugins: [
|
|
661
|
-
intlayerProxy(), // Proxy harus ditempatkan sebelum server jika Anda menggunakan Nitro
|
|
662
665
|
nitro(),
|
|
663
|
-
intlayer(
|
|
666
|
+
intlayer({
|
|
667
|
+
proxy: {
|
|
668
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
669
|
+
},
|
|
670
|
+
}),
|
|
664
671
|
tanstackStart({
|
|
665
672
|
router: {
|
|
666
673
|
routeFileIgnorePattern:
|
|
667
|
-
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
674
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5|md|mdx|yaml|yml)$",
|
|
668
675
|
},
|
|
669
676
|
}),
|
|
670
677
|
viteReact(),
|
|
@@ -925,6 +932,8 @@ bun x intlayer extract
|
|
|
925
932
|
</Tab>
|
|
926
933
|
<Tab value='Compiler Babel'>
|
|
927
934
|
|
|
935
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
936
|
+
|
|
928
937
|
Perbarui `vite.config.ts` Anda untuk menyertakan plugin `intlayerCompiler`:
|
|
929
938
|
|
|
930
939
|
```ts fileName="vite.config.ts"
|
|
@@ -934,7 +943,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
934
943
|
export default defineConfig({
|
|
935
944
|
plugins: [
|
|
936
945
|
intlayer(),
|
|
937
|
-
intlayerCompiler(), //
|
|
946
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
938
947
|
],
|
|
939
948
|
});
|
|
940
949
|
```
|
|
@@ -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,7 +480,7 @@ Pertama, tambahkan `intlayerProxy` ke konfigurasi Vite Anda:
|
|
|
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: [intlayer(), intlayerProxy()],
|
|
@@ -832,6 +832,8 @@ bun x intlayer extract
|
|
|
832
832
|
</Tab>
|
|
833
833
|
<Tab value='Compiler Babel'>
|
|
834
834
|
|
|
835
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
836
|
+
|
|
835
837
|
Perbarui `vite.config.ts` Anda untuk menyertakan plugin `intlayerCompiler`:
|
|
836
838
|
|
|
837
839
|
```ts fileName="vite.config.ts"
|
|
@@ -841,7 +843,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
841
843
|
export default defineConfig({
|
|
842
844
|
plugins: [
|
|
843
845
|
intlayer(),
|
|
844
|
-
intlayerCompiler(), //
|
|
846
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
845
847
|
],
|
|
846
848
|
});
|
|
847
849
|
```
|
|
@@ -511,14 +511,17 @@ Secara paralel, Anda juga dapat menggunakan `intlayerProxy` untuk menambahkan ro
|
|
|
511
511
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
512
512
|
import { defineConfig } from "vite";
|
|
513
513
|
import react from "@vitejs/plugin-react-swc";
|
|
514
|
-
import { intlayer
|
|
514
|
+
import { intlayer } from "vite-intlayer";
|
|
515
515
|
|
|
516
516
|
// https://vitejs.dev/config/
|
|
517
517
|
export default defineConfig({
|
|
518
518
|
plugins: [
|
|
519
|
-
intlayerProxy(), // should be placed first
|
|
520
519
|
react(),
|
|
521
|
-
intlayer(
|
|
520
|
+
intlayer({
|
|
521
|
+
proxy: {
|
|
522
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
523
|
+
},
|
|
524
|
+
}),
|
|
522
525
|
],
|
|
523
526
|
});
|
|
524
527
|
```
|
|
@@ -822,6 +825,8 @@ bun x intlayer extract
|
|
|
822
825
|
</Tab>
|
|
823
826
|
<Tab value='Compiler Babel'>
|
|
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
|
Perbarui `vite.config.ts` Anda untuk menyertakan plugin `intlayerCompiler`:
|
|
826
831
|
|
|
827
832
|
```ts fileName="vite.config.ts"
|
|
@@ -831,7 +836,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
831
836
|
export default defineConfig({
|
|
832
837
|
plugins: [
|
|
833
838
|
intlayer(),
|
|
834
|
-
intlayerCompiler(), //
|
|
839
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
835
840
|
],
|
|
836
841
|
});
|
|
837
842
|
```
|
|
@@ -213,11 +213,18 @@ Tambahkan plugin intlayer ke dalam konfigurasi Anda.
|
|
|
213
213
|
```typescript fileName="vite.config.ts"
|
|
214
214
|
import { defineConfig } from "vite";
|
|
215
215
|
import react from "@vitejs/plugin-react-swc";
|
|
216
|
-
import { intlayer
|
|
216
|
+
import { intlayer } from "vite-intlayer";
|
|
217
217
|
|
|
218
218
|
// https://vitejs.dev/config/
|
|
219
219
|
export default defineConfig({
|
|
220
|
-
plugins: [
|
|
220
|
+
plugins: [
|
|
221
|
+
react(),
|
|
222
|
+
intlayer({
|
|
223
|
+
proxy: {
|
|
224
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
225
|
+
},
|
|
226
|
+
}),
|
|
227
|
+
],
|
|
221
228
|
});
|
|
222
229
|
```
|
|
223
230
|
|
|
@@ -596,6 +596,8 @@ bun x intlayer extract
|
|
|
596
596
|
</Tab>
|
|
597
597
|
<Tab value='Compiler Babel'>
|
|
598
598
|
|
|
599
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
600
|
+
|
|
599
601
|
Perbarui `vite.config.ts` Anda untuk menyertakan plugin `intlayerCompiler`:
|
|
600
602
|
|
|
601
603
|
```ts fileName="vite.config.ts"
|
|
@@ -605,7 +607,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
605
607
|
export default defineConfig({
|
|
606
608
|
plugins: [
|
|
607
609
|
intlayer(),
|
|
608
|
-
intlayerCompiler(), //
|
|
610
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
609
611
|
],
|
|
610
612
|
});
|
|
611
613
|
```
|
|
@@ -458,12 +458,12 @@ Secara paralel, Anda juga dapat menggunakan `intlayerProxy` untuk menambahkan ro
|
|
|
458
458
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
459
459
|
import { defineConfig } from "vite";
|
|
460
460
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
461
|
-
import { intlayer
|
|
461
|
+
import { intlayer } from "vite-intlayer";
|
|
462
462
|
|
|
463
463
|
typescript {3,7} fileName="vite.config.ts" codeFormat="typescript"
|
|
464
464
|
import { defineConfig } from "vite";
|
|
465
465
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
466
|
-
import { intlayer
|
|
466
|
+
import { intlayer } from "vite-intlayer";
|
|
467
467
|
|
|
468
468
|
// https://vitejs.dev/config/
|
|
469
469
|
export default defineConfig({
|
|
@@ -575,6 +575,8 @@ bun x intlayer extract
|
|
|
575
575
|
</Tab>
|
|
576
576
|
<Tab value='Compiler Babel'>
|
|
577
577
|
|
|
578
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
579
|
+
|
|
578
580
|
Perbarui `vite.config.ts` Anda untuk menyertakan plugin `intlayerCompiler`:
|
|
579
581
|
|
|
580
582
|
```ts fileName="vite.config.ts"
|
|
@@ -584,7 +586,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
584
586
|
export default defineConfig({
|
|
585
587
|
plugins: [
|
|
586
588
|
intlayer(),
|
|
587
|
-
intlayerCompiler(), //
|
|
589
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
588
590
|
],
|
|
589
591
|
});
|
|
590
592
|
```
|