@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 - Hướng dẫn đầy đủ để dịch ứng dụng của bạn"
|
|
5
5
|
description: "Không còn i18next nữa. Hướng dẫn 2026 để xây dựng ứng dụng Expo + React Native đa ngôn ngữ (i18n). Dịch với các AI agent và tối ưu hóa kích thước bundle, SEO và hiệu suất."
|
|
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: "Nhập provider và hook trực tiếp từ react-native-intlayer; react-intlayer không còn cần thiết như một phụ thuộc trực tiếp"
|
|
20
23
|
- version: 8.9.0
|
|
21
24
|
date: 2026-05-04
|
|
22
25
|
changes: "Cập nhật cách sử dụng API useIntlayer của Solid sang truy cập thuộc tính trực tiếp"
|
|
@@ -101,7 +104,7 @@ Việc kết nối các tệp JSON lớn với các thành phần có thể dẫ
|
|
|
101
104
|
|
|
102
105
|
<Accordion header="Mở rộng quy mô không có nhà phát triển">
|
|
103
106
|
|
|
104
|
-
Không chỉ là giải pháp i18n, Intlayer còn cung cấp **[trình chỉnh sửa trực quan](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md)** và **[CMS đầy đủ](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md)** để giúp bạn quản lý nội dung đa ngôn ngữ của mình trong **thời gian thực**, giúp việc cộng tác với người dịch, người viết quảng cáo và các thành viên khác trong nhóm trở nên liền mạch. Nội dung có thể được lưu trữ cục bộ và/hoặc từ xa.
|
|
107
|
+
Không chỉ là giải pháp i18n, Intlayer còn cung cấp **[trình chỉnh sửa trực quan](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md)** tự lưu trữ và **[CMS đầy đủ](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md)** để giúp bạn quản lý nội dung đa ngôn ngữ của mình trong **thời gian thực**, giúp việc cộng tác với người dịch, người viết quảng cáo và các thành viên khác trong nhóm trở nên liền mạch. Nội dung có thể được lưu trữ cục bộ và/hoặc từ xa.
|
|
105
108
|
|
|
106
109
|
</Accordion>
|
|
107
110
|
|
|
@@ -121,27 +124,39 @@ Xem [Mẫu ứng dụng](https://github.com/aymericzip/intlayer-react-native-tem
|
|
|
121
124
|
Từ dự án React Native của bạn, hãy cài đặt các gói sau:
|
|
122
125
|
|
|
123
126
|
```bash packageManager="npm"
|
|
124
|
-
|
|
125
|
-
cài đặt npm --save-dev Reac -igen-intlayer
|
|
126
|
-
init nội bộ npx
|
|
127
|
+
npx intlayer-cli init --interactive
|
|
127
128
|
```
|
|
128
129
|
|
|
129
130
|
```bash packageManager="pnpm"
|
|
130
|
-
pnpm
|
|
131
|
-
pnpm thêm --save-dev Reac -igen-intlayer
|
|
132
|
-
init nội bộ pnpm
|
|
131
|
+
pnpm dlx intlayer-cli init --interactive
|
|
133
132
|
```
|
|
134
133
|
|
|
135
|
-
```bash packageManager="
|
|
136
|
-
|
|
137
|
-
thêm sợi --save-dev Reac -igen-intlayer
|
|
138
|
-
init sợi bên trong
|
|
134
|
+
```bash packageManager="yarn"
|
|
135
|
+
yarn dlx intlayer-cli init --interactive
|
|
139
136
|
```
|
|
140
137
|
|
|
141
138
|
```bash packageManager="bun"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
bunx intlayer-cli init --interactive
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
> Cờ `--interactive` là tùy chọn. Sử dụng `intlayer-cli init` nếu bạn là AI agent.
|
|
143
|
+
|
|
144
|
+
> Lệnh này sẽ tự động phát hiện môi trường của bạn và cài đặt các gói cần thiết. Ví dụ:
|
|
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
|
### Các gói
|
|
@@ -149,17 +164,14 @@ init x init
|
|
|
149
164
|
- **intlayer**
|
|
150
165
|
Bộ công cụ i18n cốt lõi dùng để cấu hình, nội dung từ điển, tạo kiểu, và các lệnh CLI.
|
|
151
166
|
|
|
152
|
-
- **react-intlayer**
|
|
153
|
-
Tích hợp React cung cấp các context provider và React hook mà bạn sẽ dùng trong React Native để lấy và chuyển đổi ngôn ngữ.
|
|
154
|
-
|
|
155
167
|
- **react-native-intlayer**
|
|
156
|
-
Tích hợp React Native cung cấp plugin Metro để tích hợp Intlayer với bundler của React Native.
|
|
168
|
+
Tích hợp React Native cung cấp các context provider và React hook mà bạn sẽ dùng để lấy và chuyển đổi ngôn ngữ, các polyfill cho React Native, và plugin Metro để tích hợp Intlayer với bundler của React Native. Nó tái xuất tất cả mọi thứ từ `react-intlayer`, vì vậy bạn chỉ cần gói duy nhất này trong một ứng dụng React Native.
|
|
157
169
|
|
|
158
170
|
---
|
|
159
171
|
|
|
160
172
|
</Step>
|
|
161
173
|
|
|
162
|
-
<Step number={
|
|
174
|
+
<Step number={2} title="Tạo cấu hình Intlayer">
|
|
163
175
|
|
|
164
176
|
Trong thư mục gốc dự án của bạn (hoặc bất cứ nơi nào thuận tiện), tạo một file **cấu hình Intlayer**. Nó có thể trông như sau:
|
|
165
177
|
|
|
@@ -189,11 +201,11 @@ Trong cấu hình này, bạn có thể:
|
|
|
189
201
|
- Cấu hình **danh sách các ngôn ngữ được hỗ trợ**.
|
|
190
202
|
- Đặt một ngôn ngữ **mặc định**.
|
|
191
203
|
- Sau này, bạn có thể thêm các tùy chọn nâng cao hơn (ví dụ: ghi log, thư mục nội dung tùy chỉnh, v.v.).
|
|
192
|
-
- Xem thêm tại [tài liệu cấu hình Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/
|
|
204
|
+
- Xem thêm tại [tài liệu cấu hình Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md).
|
|
193
205
|
|
|
194
206
|
</Step>
|
|
195
207
|
|
|
196
|
-
<Step number={
|
|
208
|
+
<Step number={3} title="Thêm plugin Metro">
|
|
197
209
|
|
|
198
210
|
Metro là một trình đóng gói (bundler) cho React Native. Đây là trình đóng gói mặc định cho các dự án React Native được tạo bằng lệnh `react-native init`. Để sử dụng Intlayer với Metro, bạn cần thêm plugin vào file `metro.config.js` của bạn:
|
|
199
211
|
|
|
@@ -213,11 +225,11 @@ module.exports = (async () => {
|
|
|
213
225
|
|
|
214
226
|
</Step>
|
|
215
227
|
|
|
216
|
-
<Step number={
|
|
228
|
+
<Step number={4} title="Thêm Intlayer provider">
|
|
217
229
|
|
|
218
230
|
Để giữ đồng bộ ngôn ngữ người dùng trên toàn bộ ứng dụng của bạn, bạn cần bao bọc component gốc của bạn với component `IntlayerProvider` từ `react-native-intlayer`.
|
|
219
231
|
|
|
220
|
-
>
|
|
232
|
+
> Luôn nhập từ `react-native-intlayer`. `IntlayerProvider` của nó bao gồm các polyfill cho web API được sử dụng bởi Intlayer, và gói này tái xuất tất cả các hook và tiện ích từ `react-intlayer`.
|
|
221
233
|
|
|
222
234
|
Ngoài ra, bạn cần thêm hàm `intlayerPolyfill` vào file `index.js` của bạn để đảm bảo Intlayer hoạt động đúng.
|
|
223
235
|
|
|
@@ -244,11 +256,13 @@ export default RootLayout;
|
|
|
244
256
|
|
|
245
257
|
</Step>
|
|
246
258
|
|
|
247
|
-
<Step number={
|
|
259
|
+
<Step number={5} title="Khai báo Nội dung của Bạn">
|
|
248
260
|
|
|
249
261
|
Tạo các tệp **khai báo nội dung** ở bất kỳ đâu trong dự án của bạn (thường là trong thư mục `src/`), sử dụng bất kỳ định dạng phần mở rộng nào mà Intlayer hỗ trợ:
|
|
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 @@ Tạo các tệp **khai báo nội dung** ở bất kỳ đâu trong dự án c
|
|
|
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
|
- v.v.
|
|
261
278
|
|
|
262
279
|
> **Expo Router (web): giữ các tệp `.content.*` bên ngoài thư mục `app/`.** Expo Router coi mọi tệp JavaScript/TypeScript bên trong `app/` là một tuyến đường (route). Trên web, tính năng khám phá tuyến đường của nó quét trực tiếp hệ thống tệp và **không** tuân theo `resolver.blockList` của Metro, do đó `*.content.ts` đặt cùng vị trí sẽ được đăng ký làm tuyến đường. Một tệp như `app/(tabs)/_layout.content.ts` thậm chí còn được phân tích cú pháp dưới dạng bố cục (phần `.content` được đọc dưới dạng hậu tố nền tảng), xung đột với `_layout.tsx` thực và gây ra lỗi:
|
|
@@ -315,7 +332,7 @@ export default homeScreenContent;
|
|
|
315
332
|
|
|
316
333
|
</Step>
|
|
317
334
|
|
|
318
|
-
<Step number={
|
|
335
|
+
<Step number={6} title="Sử dụng Intlayer trong các Component của bạn">
|
|
319
336
|
|
|
320
337
|
Sử dụng hook `useIntlayer` trong các component con để lấy nội dung đã được bản địa hóa.
|
|
321
338
|
|
|
@@ -323,7 +340,7 @@ Sử dụng hook `useIntlayer` trong các component con để lấy nội dung
|
|
|
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="Thay đổi Ngôn ngữ Ứng dụng" isOptional={true}>
|
|
374
391
|
|
|
375
392
|
Để chuyển đổi ngôn ngữ từ bên trong các component của bạn, bạn có thể sử dụng phương thức `setLocale` của hook `useLocale`:
|
|
376
393
|
|
|
@@ -378,7 +395,7 @@ export default HomeScreen;
|
|
|
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
|
|
398
|
+
import { useLocale } from "react-native-intlayer";
|
|
382
399
|
|
|
383
400
|
export const LocaleSwitcher: FC = () => {
|
|
384
401
|
const { setLocale, availableLocales } = useLocale();
|
|
@@ -421,7 +438,7 @@ const styles = StyleSheet.create({
|
|
|
421
438
|
|
|
422
439
|
Điều này kích hoạt việc render lại tất cả các component sử dụng nội dung Intlayer, giờ đây hiển thị bản dịch cho locale mới.
|
|
423
440
|
|
|
424
|
-
> Xem thêm tài liệu [`useLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/
|
|
441
|
+
> Xem thêm tài liệu [`useLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/useLocale.md) để biết chi tiết.
|
|
425
442
|
|
|
426
443
|
</Step>
|
|
427
444
|
|
|
@@ -496,13 +513,12 @@ Intlayer chủ yếu hướng đến Web Intl API; trên React Native bạn ph
|
|
|
496
513
|
|
|
497
514
|
Danh sách kiểm tra:
|
|
498
515
|
|
|
499
|
-
- Sử dụng các phiên bản mới nhất của `intlayer
|
|
516
|
+
- Sử dụng các phiên bản mới nhất của `intlayer` và `react-native-intlayer`.
|
|
500
517
|
- Kích hoạt polyfill của Intlayer.
|
|
501
518
|
- Nếu bạn sử dụng `getLocaleName` hoặc các tiện ích dựa trên Intl-API khác, hãy nhập các polyfill này sớm (ví dụ trong `index.js` hoặc `App.tsx`):
|
|
502
519
|
|
|
503
520
|
```ts
|
|
504
521
|
import "intl";
|
|
505
|
-
// Nhập polyfill để hỗ trợ các tính năng Intl khác nhau
|
|
506
522
|
import "@formatjs/intl-getcanonicallocales/polyfill";
|
|
507
523
|
import "@formatjs/intl-locale/polyfill";
|
|
508
524
|
import "@formatjs/intl-pluralrules/polyfill";
|
|
@@ -633,6 +633,8 @@ bun x intlayer extract
|
|
|
633
633
|
</Tab>
|
|
634
634
|
<Tab value='Trình biên dịch 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
|
Cập nhật `vite.config.ts` của bạn để bao gồm 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='Trình biên dịch 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
|
Cập nhật `vite.config.ts` của bạn để bao gồm 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 @@ Bạn cũng có thể sử dụng `intlayerProxy` để thêm routing phía serv
|
|
|
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 @@ goto(localizedPath); // Điều hướng đến /en/about hoặc /fr/about tùy
|
|
|
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='Trình biên dịch 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
|
Cập nhật `vite.config.ts` của bạn để bao gồm 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 @@ Bạn cũng có thể sử dụng `intlayerProxy` để thêm điều hướng p
|
|
|
567
571
|
|
|
568
572
|
> Lưu ý rằng để sử dụng `intlayerProxy` trong môi trường production, bạn cần chuyển gói `vite-intlayer` từ `devDependencies` sang `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 phải được đặt trước server nếu bạn sử dụng 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='Babel compiler'>
|
|
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
|
+
Cập nhật `vite.config.ts` của bạn để bao gồm 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 @@ Bạn cũng có thể sử dụng `intlayerProxy` để thêm routing phía serv
|
|
|
649
653
|
|
|
650
654
|
> Lưu ý rằng để sử dụng `intlayerProxy` trong môi trường production, bạn cần chuyển gói `vite-intlayer` từ `devDependencies` sang `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 nên được đặt trước server nếu bạn sử dụng 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='Trình biên dịch 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
|
Cập nhật `vite.config.ts` của bạn để bao gồm 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 @@ export class MyElement extends LitElement {
|
|
|
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='Trình biên dịch 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
|
Cập nhật `vite.config.ts` của bạn để bao gồm 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
|
```
|
|
@@ -514,14 +514,17 @@ Song song đó, bạn cũng có thể sử dụng `intlayerProxy` để thêm ro
|
|
|
514
514
|
```typescript {3,7} fileName="vite.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
515
515
|
import { defineConfig } from "vite";
|
|
516
516
|
import react from "@vitejs/plugin-react-swc";
|
|
517
|
-
import { intlayer
|
|
517
|
+
import { intlayer } from "vite-intlayer";
|
|
518
518
|
|
|
519
519
|
// https://vitejs.dev/config/
|
|
520
520
|
export default defineConfig({
|
|
521
521
|
plugins: [
|
|
522
|
-
intlayerProxy(), // should be placed first
|
|
523
522
|
react(),
|
|
524
|
-
intlayer(
|
|
523
|
+
intlayer({
|
|
524
|
+
proxy: {
|
|
525
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
526
|
+
},
|
|
527
|
+
}),
|
|
525
528
|
],
|
|
526
529
|
});
|
|
527
530
|
```
|
|
@@ -825,6 +828,8 @@ bun x intlayer extract
|
|
|
825
828
|
</Tab>
|
|
826
829
|
<Tab value='Trình biên dịch Babel'>
|
|
827
830
|
|
|
831
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
832
|
+
|
|
828
833
|
Cập nhật `vite.config.ts` của bạn để bao gồm plugin `intlayerCompiler`:
|
|
829
834
|
|
|
830
835
|
```ts fileName="vite.config.ts"
|
|
@@ -834,7 +839,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
834
839
|
export default defineConfig({
|
|
835
840
|
plugins: [
|
|
836
841
|
intlayer(),
|
|
837
|
-
intlayerCompiler(), //
|
|
842
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
838
843
|
],
|
|
839
844
|
});
|
|
840
845
|
```
|
|
@@ -213,11 +213,18 @@ Thêm plugin intlayer vào cấu hình của bạn.
|
|
|
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='Trình biên dịch 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
|
Cập nhật `vite.config.ts` của bạn để bao gồm 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,14 +458,17 @@ Song song với đó, bạn cũng có thể sử dụng `intlayerProxy` để th
|
|
|
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
|
// https://vitejs.dev/config/
|
|
464
464
|
export default defineConfig({
|
|
465
465
|
plugins: [
|
|
466
|
-
intlayerProxy(), // should be placed first
|
|
467
466
|
svelte(),
|
|
468
|
-
intlayer(
|
|
467
|
+
intlayer({
|
|
468
|
+
proxy: {
|
|
469
|
+
ignore: (req) => req.url?.startsWith("/api"),
|
|
470
|
+
},
|
|
471
|
+
}),
|
|
469
472
|
],
|
|
470
473
|
});
|
|
471
474
|
```
|
|
@@ -573,6 +576,8 @@ bun x intlayer extract
|
|
|
573
576
|
</Tab>
|
|
574
577
|
<Tab value='Trình biên dịch Babel'>
|
|
575
578
|
|
|
579
|
+
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
580
|
+
|
|
576
581
|
Cập nhật `vite.config.ts` của bạn để bao gồm plugin `intlayerCompiler`:
|
|
577
582
|
|
|
578
583
|
```ts fileName="vite.config.ts"
|
|
@@ -582,7 +587,7 @@ import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
|
582
587
|
export default defineConfig({
|
|
583
588
|
plugins: [
|
|
584
589
|
intlayer(),
|
|
585
|
-
intlayerCompiler(), //
|
|
590
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
586
591
|
],
|
|
587
592
|
});
|
|
588
593
|
```
|