@intlayer/docs 8.3.0 → 8.3.2
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/blog/ar/i18n_using_next-i18next.md +1 -0
- package/blog/en-GB/next-i18next_vs_next-intl_vs_intlayer.md +0 -29
- package/blog/uk/internationalization_and_SEO.md +1 -1
- package/docs/ar/compiler.md +84 -49
- package/docs/ar/configuration.md +82 -58
- package/docs/ar/intlayer_with_analog.md +2 -2
- package/docs/ar/intlayer_with_angular.md +2 -2
- package/docs/ar/intlayer_with_astro.md +2 -2
- package/docs/ar/intlayer_with_lynx+react.md +2 -2
- package/docs/ar/intlayer_with_nextjs_16.md +174 -1
- package/docs/ar/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ar/intlayer_with_nextjs_no_locale_path.md +4 -7
- package/docs/ar/intlayer_with_react_native+expo.md +2 -2
- package/docs/ar/intlayer_with_react_router_v7.md +224 -1
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/ar/intlayer_with_svelte_kit.md +175 -2
- package/docs/ar/intlayer_with_tanstack.md +176 -1
- package/docs/ar/intlayer_with_vite+preact.md +176 -3
- package/docs/ar/intlayer_with_vite+react.md +174 -1
- package/docs/ar/intlayer_with_vite+solid.md +176 -3
- package/docs/ar/intlayer_with_vite+svelte.md +176 -3
- package/docs/ar/intlayer_with_vite+vue.md +178 -5
- package/docs/ar/vs_code_extension.md +1 -1
- package/docs/de/compiler.md +83 -48
- package/docs/de/configuration.md +417 -214
- package/docs/de/intlayer_with_analog.md +2 -2
- package/docs/de/intlayer_with_angular.md +2 -2
- package/docs/de/intlayer_with_astro.md +2 -2
- package/docs/de/intlayer_with_lynx+react.md +2 -2
- package/docs/de/intlayer_with_nextjs_16.md +176 -1
- package/docs/de/intlayer_with_nextjs_compiler.md +106 -349
- package/docs/de/intlayer_with_react_native+expo.md +2 -2
- package/docs/de/intlayer_with_react_router_v7.md +225 -2
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +221 -79
- package/docs/de/intlayer_with_svelte_kit.md +158 -2
- package/docs/de/intlayer_with_tanstack.md +159 -1
- package/docs/de/intlayer_with_vite+preact.md +159 -3
- package/docs/de/intlayer_with_vite+react.md +157 -1
- package/docs/de/intlayer_with_vite+solid.md +161 -5
- package/docs/de/intlayer_with_vite+svelte.md +159 -3
- package/docs/de/intlayer_with_vite+vue.md +159 -3
- package/docs/de/vs_code_extension.md +1 -1
- package/docs/en/compiler.md +60 -33
- package/docs/en/configuration.md +82 -77
- package/docs/en/intlayer_with_analog.md +1 -1
- package/docs/en/intlayer_with_angular.md +1 -1
- package/docs/en/intlayer_with_astro.md +1 -1
- package/docs/en/intlayer_with_lynx+react.md +1 -1
- package/docs/en/intlayer_with_nextjs_16.md +176 -0
- package/docs/en/intlayer_with_nextjs_compiler.md +179 -1
- package/docs/en/intlayer_with_react_native+expo.md +1 -1
- package/docs/en/intlayer_with_react_router_v7.md +159 -0
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +159 -0
- package/docs/en/intlayer_with_svelte_kit.md +159 -0
- package/docs/en/intlayer_with_tanstack.md +160 -1
- package/docs/en/intlayer_with_vite+preact.md +160 -1
- package/docs/en/intlayer_with_vite+react.md +159 -0
- package/docs/en/intlayer_with_vite+solid.md +149 -28
- package/docs/en/intlayer_with_vite+svelte.md +160 -1
- package/docs/en/intlayer_with_vite+vue.md +143 -42
- package/docs/en/vs_code_extension.md +1 -1
- package/docs/en-GB/compiler.md +66 -34
- package/docs/en-GB/configuration.md +80 -57
- package/docs/en-GB/intlayer_with_analog.md +1 -1
- package/docs/en-GB/intlayer_with_angular.md +1 -1
- package/docs/en-GB/intlayer_with_astro.md +1 -1
- package/docs/en-GB/intlayer_with_lynx+react.md +1 -1
- package/docs/en-GB/intlayer_with_react_native+expo.md +1 -1
- package/docs/en-GB/intlayer_with_vite+preact.md +1 -1
- package/docs/en-GB/intlayer_with_vite+react.md +1 -1
- package/docs/en-GB/intlayer_with_vite+solid.md +1 -1
- package/docs/en-GB/intlayer_with_vite+svelte.md +1 -1
- package/docs/en-GB/intlayer_with_vite+vue.md +2 -2
- package/docs/en-GB/vs_code_extension.md +1 -1
- package/docs/es/compiler.md +83 -48
- package/docs/es/configuration.md +412 -208
- package/docs/es/intlayer_with_adonisjs.md +1 -1
- package/docs/es/intlayer_with_analog.md +2 -2
- package/docs/es/intlayer_with_angular.md +2 -2
- package/docs/es/intlayer_with_astro.md +2 -2
- package/docs/es/intlayer_with_express.md +1 -1
- package/docs/es/intlayer_with_fastify.md +1 -1
- package/docs/es/intlayer_with_hono.md +1 -1
- package/docs/es/intlayer_with_lynx+react.md +2 -2
- package/docs/es/intlayer_with_nestjs.md +1 -1
- package/docs/es/intlayer_with_nextjs_16.md +176 -3
- package/docs/es/intlayer_with_nextjs_compiler.md +175 -2
- package/docs/es/intlayer_with_nuxt.md +1 -1
- package/docs/es/intlayer_with_react_native+expo.md +2 -2
- package/docs/es/intlayer_with_react_router_v7.md +227 -4
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +162 -4
- package/docs/es/intlayer_with_svelte_kit.md +158 -2
- package/docs/es/intlayer_with_tanstack.md +160 -2
- package/docs/es/intlayer_with_vite+preact.md +164 -8
- package/docs/es/intlayer_with_vite+react.md +160 -4
- package/docs/es/intlayer_with_vite+solid.md +165 -9
- package/docs/es/intlayer_with_vite+svelte.md +159 -3
- package/docs/es/intlayer_with_vite+vue.md +169 -13
- package/docs/es/vs_code_extension.md +1 -1
- package/docs/fr/compiler.md +81 -46
- package/docs/fr/configuration.md +351 -149
- package/docs/fr/intlayer_with_adonisjs.md +1 -1
- package/docs/fr/intlayer_with_analog.md +2 -2
- package/docs/fr/intlayer_with_angular.md +2 -2
- package/docs/fr/intlayer_with_astro.md +2 -2
- package/docs/fr/intlayer_with_express.md +1 -1
- package/docs/fr/intlayer_with_fastify.md +1 -1
- package/docs/fr/intlayer_with_hono.md +1 -1
- package/docs/fr/intlayer_with_lynx+react.md +2 -2
- package/docs/fr/intlayer_with_nestjs.md +1 -1
- package/docs/fr/intlayer_with_nextjs_16.md +183 -7
- package/docs/fr/intlayer_with_nextjs_compiler.md +179 -3
- package/docs/fr/intlayer_with_react_native+expo.md +2 -2
- package/docs/fr/intlayer_with_react_router_v7.md +229 -3
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +237 -6
- package/docs/fr/intlayer_with_svelte_kit.md +158 -2
- package/docs/fr/intlayer_with_tanstack.md +159 -1
- package/docs/fr/intlayer_with_vite+preact.md +166 -10
- package/docs/fr/intlayer_with_vite+react.md +163 -7
- package/docs/fr/intlayer_with_vite+solid.md +165 -9
- package/docs/fr/intlayer_with_vite+svelte.md +159 -3
- package/docs/fr/intlayer_with_vite+vue.md +168 -12
- package/docs/fr/vs_code_extension.md +1 -1
- package/docs/hi/compiler.md +81 -46
- package/docs/hi/configuration.md +89 -65
- package/docs/hi/intlayer_with_analog.md +1 -1
- package/docs/hi/intlayer_with_angular.md +2 -2
- package/docs/hi/intlayer_with_astro.md +2 -2
- package/docs/hi/intlayer_with_lynx+react.md +2 -2
- package/docs/hi/intlayer_with_nextjs_16.md +174 -1
- package/docs/hi/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/hi/intlayer_with_react_native+expo.md +2 -2
- package/docs/hi/intlayer_with_react_router_v7.md +224 -1
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/hi/intlayer_with_svelte_kit.md +158 -2
- package/docs/hi/intlayer_with_tanstack.md +159 -1
- package/docs/hi/intlayer_with_vite+preact.md +159 -3
- package/docs/hi/intlayer_with_vite+react.md +157 -1
- package/docs/hi/intlayer_with_vite+solid.md +159 -3
- package/docs/hi/intlayer_with_vite+svelte.md +159 -3
- package/docs/hi/intlayer_with_vite+vue.md +159 -3
- package/docs/hi/vs_code_extension.md +1 -1
- package/docs/id/compiler.md +84 -51
- package/docs/id/configuration.md +85 -65
- package/docs/id/intlayer_with_analog.md +2 -2
- package/docs/id/intlayer_with_angular.md +2 -2
- package/docs/id/intlayer_with_astro.md +2 -2
- package/docs/id/intlayer_with_lynx+react.md +2 -2
- package/docs/id/intlayer_with_nextjs_16.md +174 -1
- package/docs/id/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/id/intlayer_with_react_native+expo.md +2 -2
- package/docs/id/intlayer_with_react_router_v7.md +224 -1
- package/docs/id/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/id/intlayer_with_svelte_kit.md +158 -2
- package/docs/id/intlayer_with_tanstack.md +159 -1
- package/docs/id/intlayer_with_vite+preact.md +159 -3
- package/docs/id/intlayer_with_vite+react.md +159 -3
- package/docs/id/intlayer_with_vite+solid.md +159 -3
- package/docs/id/intlayer_with_vite+svelte.md +159 -3
- package/docs/id/intlayer_with_vite+vue.md +159 -3
- package/docs/id/vs_code_extension.md +1 -1
- package/docs/it/compiler.md +81 -46
- package/docs/it/configuration.md +410 -208
- package/docs/it/intlayer_with_analog.md +2 -2
- package/docs/it/intlayer_with_angular.md +2 -2
- package/docs/it/intlayer_with_astro.md +2 -2
- package/docs/it/intlayer_with_lynx+react.md +2 -2
- package/docs/it/intlayer_with_nextjs_16.md +174 -1
- package/docs/it/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/it/intlayer_with_react_native+expo.md +2 -2
- package/docs/it/intlayer_with_react_router_v7.md +225 -2
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +226 -2
- package/docs/it/intlayer_with_svelte_kit.md +158 -2
- package/docs/it/intlayer_with_tanstack.md +159 -1
- package/docs/it/intlayer_with_vite+preact.md +159 -3
- package/docs/it/intlayer_with_vite+react.md +159 -3
- package/docs/it/intlayer_with_vite+solid.md +161 -5
- package/docs/it/intlayer_with_vite+svelte.md +159 -3
- package/docs/it/intlayer_with_vite+vue.md +161 -5
- package/docs/it/vs_code_extension.md +1 -1
- package/docs/ja/compiler.md +94 -58
- package/docs/ja/configuration.md +90 -66
- package/docs/ja/intlayer_with_analog.md +2 -2
- package/docs/ja/intlayer_with_angular.md +2 -2
- package/docs/ja/intlayer_with_astro.md +2 -2
- package/docs/ja/intlayer_with_lynx+react.md +2 -2
- package/docs/ja/intlayer_with_nextjs_16.md +174 -1
- package/docs/ja/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ja/intlayer_with_react_native+expo.md +2 -2
- package/docs/ja/intlayer_with_react_router_v7.md +184 -394
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +226 -2
- package/docs/ja/intlayer_with_svelte_kit.md +119 -595
- package/docs/ja/intlayer_with_tanstack.md +131 -642
- package/docs/ja/intlayer_with_vite+preact.md +111 -1231
- package/docs/ja/intlayer_with_vite+react.md +129 -1304
- package/docs/ja/intlayer_with_vite+solid.md +161 -5
- package/docs/ja/intlayer_with_vite+svelte.md +159 -3
- package/docs/ja/intlayer_with_vite+vue.md +159 -3
- package/docs/ja/vs_code_extension.md +1 -1
- package/docs/ko/compiler.md +88 -52
- package/docs/ko/configuration.md +89 -65
- package/docs/ko/intlayer_with_analog.md +2 -2
- package/docs/ko/intlayer_with_angular.md +2 -2
- package/docs/ko/intlayer_with_astro.md +2 -2
- package/docs/ko/intlayer_with_lynx+react.md +2 -2
- package/docs/ko/intlayer_with_nextjs_16.md +174 -1
- package/docs/ko/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ko/intlayer_with_react_native+expo.md +2 -2
- package/docs/ko/intlayer_with_react_router_v7.md +225 -2
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +226 -2
- package/docs/ko/intlayer_with_svelte_kit.md +158 -2
- package/docs/ko/intlayer_with_tanstack.md +159 -1
- package/docs/ko/intlayer_with_vite+preact.md +159 -3
- package/docs/ko/intlayer_with_vite+react.md +157 -1
- package/docs/ko/intlayer_with_vite+solid.md +161 -5
- package/docs/ko/intlayer_with_vite+svelte.md +159 -3
- package/docs/ko/intlayer_with_vite+vue.md +159 -3
- package/docs/ko/vs_code_extension.md +1 -1
- package/docs/pl/compiler.md +84 -51
- package/docs/pl/configuration.md +85 -57
- package/docs/pl/intlayer_with_analog.md +2 -2
- package/docs/pl/intlayer_with_angular.md +2 -2
- package/docs/pl/intlayer_with_astro.md +2 -2
- package/docs/pl/intlayer_with_lynx+react.md +2 -2
- package/docs/pl/intlayer_with_nextjs_16.md +174 -1
- package/docs/pl/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/pl/intlayer_with_react_native+expo.md +2 -2
- package/docs/pl/intlayer_with_react_router_v7.md +224 -1
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/pl/intlayer_with_svelte_kit.md +158 -2
- package/docs/pl/intlayer_with_tanstack.md +159 -1
- package/docs/pl/intlayer_with_vite+preact.md +158 -2
- package/docs/pl/intlayer_with_vite+react.md +159 -3
- package/docs/pl/intlayer_with_vite+solid.md +159 -3
- package/docs/pl/intlayer_with_vite+svelte.md +159 -3
- package/docs/pl/intlayer_with_vite+vue.md +161 -5
- package/docs/pl/vs_code_extension.md +1 -1
- package/docs/pt/compiler.md +81 -46
- package/docs/pt/configuration.md +399 -199
- package/docs/pt/intlayer_with_analog.md +2 -2
- package/docs/pt/intlayer_with_angular.md +2 -2
- package/docs/pt/intlayer_with_astro.md +2 -2
- package/docs/pt/intlayer_with_lynx+react.md +2 -2
- package/docs/pt/intlayer_with_nextjs_16.md +174 -1
- package/docs/pt/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/pt/intlayer_with_react_native+expo.md +2 -2
- package/docs/pt/intlayer_with_react_router_v7.md +224 -1
- package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/pt/intlayer_with_svelte_kit.md +158 -2
- package/docs/pt/intlayer_with_tanstack.md +159 -1
- package/docs/pt/intlayer_with_vite+preact.md +158 -2
- package/docs/pt/intlayer_with_vite+react.md +157 -1
- package/docs/pt/intlayer_with_vite+solid.md +159 -3
- package/docs/pt/intlayer_with_vite+svelte.md +159 -3
- package/docs/pt/intlayer_with_vite+vue.md +159 -3
- package/docs/pt/vs_code_extension.md +1 -1
- package/docs/ru/compiler.md +90 -57
- package/docs/ru/configuration.md +78 -67
- package/docs/ru/intlayer_with_analog.md +2 -2
- package/docs/ru/intlayer_with_angular.md +2 -2
- package/docs/ru/intlayer_with_astro.md +2 -2
- package/docs/ru/intlayer_with_lynx+react.md +2 -2
- package/docs/ru/intlayer_with_nextjs_16.md +174 -1
- package/docs/ru/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ru/intlayer_with_react_native+expo.md +2 -2
- package/docs/ru/intlayer_with_react_router_v7.md +224 -1
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/ru/intlayer_with_svelte_kit.md +158 -2
- package/docs/ru/intlayer_with_tanstack.md +159 -1
- package/docs/ru/intlayer_with_vite+preact.md +159 -3
- package/docs/ru/intlayer_with_vite+react.md +157 -1
- package/docs/ru/intlayer_with_vite+solid.md +159 -3
- package/docs/ru/intlayer_with_vite+svelte.md +159 -3
- package/docs/ru/intlayer_with_vite+vue.md +159 -3
- package/docs/ru/vs_code_extension.md +1 -1
- package/docs/tr/compiler.md +85 -52
- package/docs/tr/configuration.md +85 -61
- package/docs/tr/intlayer_with_analog.md +2 -2
- package/docs/tr/intlayer_with_angular.md +2 -2
- package/docs/tr/intlayer_with_astro.md +2 -2
- package/docs/tr/intlayer_with_lynx+react.md +2 -2
- package/docs/tr/intlayer_with_nextjs_16.md +174 -1
- package/docs/tr/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/tr/intlayer_with_nextjs_no_locale_path.md +6 -14
- package/docs/tr/intlayer_with_react_native+expo.md +2 -2
- package/docs/tr/intlayer_with_react_router_v7.md +224 -1
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/tr/intlayer_with_svelte_kit.md +158 -2
- package/docs/tr/intlayer_with_tanstack.md +159 -1
- package/docs/tr/intlayer_with_vite+preact.md +159 -3
- package/docs/tr/intlayer_with_vite+react.md +159 -3
- package/docs/tr/intlayer_with_vite+solid.md +159 -3
- package/docs/tr/intlayer_with_vite+svelte.md +159 -3
- package/docs/tr/intlayer_with_vite+vue.md +159 -3
- package/docs/tr/vs_code_extension.md +1 -1
- package/docs/uk/compiler.md +96 -61
- package/docs/uk/configuration.md +85 -57
- package/docs/uk/intlayer_with_analog.md +2 -2
- package/docs/uk/intlayer_with_angular.md +2 -2
- package/docs/uk/intlayer_with_astro.md +2 -2
- package/docs/uk/intlayer_with_lynx+react.md +2 -2
- package/docs/uk/intlayer_with_nextjs_16.md +174 -1
- package/docs/uk/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/uk/intlayer_with_nextjs_no_locale_path.md +4 -22
- package/docs/uk/intlayer_with_react_native+expo.md +2 -2
- package/docs/uk/intlayer_with_react_router_v7.md +224 -1
- package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/uk/intlayer_with_svelte_kit.md +157 -1
- package/docs/uk/intlayer_with_tanstack.md +159 -1
- package/docs/uk/intlayer_with_vite+preact.md +159 -3
- package/docs/uk/intlayer_with_vite+react.md +157 -1
- package/docs/uk/intlayer_with_vite+solid.md +159 -3
- package/docs/uk/intlayer_with_vite+svelte.md +159 -3
- package/docs/uk/intlayer_with_vite+vue.md +159 -3
- package/docs/uk/vs_code_extension.md +1 -1
- package/docs/vi/compiler.md +85 -50
- package/docs/vi/configuration.md +87 -59
- package/docs/vi/intlayer_with_analog.md +2 -2
- package/docs/vi/intlayer_with_angular.md +2 -2
- package/docs/vi/intlayer_with_astro.md +2 -2
- package/docs/vi/intlayer_with_lynx+react.md +2 -2
- package/docs/vi/intlayer_with_nextjs_16.md +174 -1
- package/docs/vi/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/vi/intlayer_with_react_native+expo.md +2 -2
- package/docs/vi/intlayer_with_react_router_v7.md +224 -1
- package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/vi/intlayer_with_svelte_kit.md +158 -2
- package/docs/vi/intlayer_with_tanstack.md +159 -1
- package/docs/vi/intlayer_with_vite+preact.md +159 -3
- package/docs/vi/intlayer_with_vite+react.md +159 -3
- package/docs/vi/intlayer_with_vite+solid.md +159 -3
- package/docs/vi/intlayer_with_vite+svelte.md +159 -3
- package/docs/vi/intlayer_with_vite+vue.md +159 -3
- package/docs/vi/vs_code_extension.md +1 -1
- package/docs/zh/compiler.md +84 -49
- package/docs/zh/configuration.md +82 -58
- package/docs/zh/intlayer_with_adonisjs.md +1 -1
- package/docs/zh/intlayer_with_analog.md +2 -2
- package/docs/zh/intlayer_with_angular.md +2 -2
- package/docs/zh/intlayer_with_astro.md +2 -2
- package/docs/zh/intlayer_with_express.md +1 -1
- package/docs/zh/intlayer_with_fastify.md +1 -1
- package/docs/zh/intlayer_with_hono.md +1 -1
- package/docs/zh/intlayer_with_lynx+react.md +2 -2
- package/docs/zh/intlayer_with_nestjs.md +1 -1
- package/docs/zh/intlayer_with_nextjs_16.md +174 -1
- package/docs/zh/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/zh/intlayer_with_react_native+expo.md +2 -2
- package/docs/zh/intlayer_with_react_router_v7.md +227 -4
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +228 -4
- package/docs/zh/intlayer_with_svelte_kit.md +158 -2
- package/docs/zh/intlayer_with_tanstack.md +159 -1
- package/docs/zh/intlayer_with_vite+preact.md +161 -5
- package/docs/zh/intlayer_with_vite+react.md +157 -1
- package/docs/zh/intlayer_with_vite+solid.md +163 -7
- package/docs/zh/intlayer_with_vite+svelte.md +159 -3
- package/docs/zh/intlayer_with_vite+vue.md +162 -6
- package/docs/zh/vs_code_extension.md +2 -2
- package/package.json +8 -8
- package/docs/update_docs.py +0 -65
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-04-18
|
|
3
|
-
updatedAt:
|
|
3
|
+
updatedAt: 2026-03-12
|
|
4
4
|
title: Vite + Preact i18n - Come tradurre un'app Preact nel 2026
|
|
5
5
|
description: Scopri come rendere il tuo sito Vite e Preact multilingue. Segui la documentazione per internazionalizzare (i18n) e tradurlo.
|
|
6
6
|
keywords:
|
|
@@ -1335,8 +1335,8 @@ Si consiglia di ignorare i file generati da Intlayer. Ciò ti consente di evitar
|
|
|
1335
1335
|
|
|
1336
1336
|
Per farlo, puoi aggiungere le seguenti istruzioni al tuo file `.gitignore`:
|
|
1337
1337
|
|
|
1338
|
-
```
|
|
1339
|
-
#
|
|
1338
|
+
```bash
|
|
1339
|
+
# Ignora i file generati da Intlayer
|
|
1340
1340
|
.intlayer
|
|
1341
1341
|
```
|
|
1342
1342
|
|
|
@@ -1357,6 +1357,162 @@ Per maggiori dettagli su come utilizzare l'estensione, consulta la [documentazio
|
|
|
1357
1357
|
|
|
1358
1358
|
---
|
|
1359
1359
|
|
|
1360
|
+
### (Opzionale) Passaggio 1 : Estrarre il contenuto dei tuoi componenti
|
|
1361
|
+
|
|
1362
|
+
Se hai una base di codice esistente, trasformare migliaia di file può richiedere molto tempo.
|
|
1363
|
+
|
|
1364
|
+
Per facilitare questo processo, Intlayer propone un [compilatore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/compiler.md) / [estrattore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md) per trasformare i tuoi componenti ed estrarre il contenuto.
|
|
1365
|
+
|
|
1366
|
+
Per configurarlo, puoi aggiungere una sezione `compiler` nel tuo file `intlayer.config.ts`:
|
|
1367
|
+
|
|
1368
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
1369
|
+
import { type IntlayerConfig } from "intlayer";
|
|
1370
|
+
|
|
1371
|
+
const config: IntlayerConfig = {
|
|
1372
|
+
// ... Resto della tua configurazione
|
|
1373
|
+
compiler: {
|
|
1374
|
+
/**
|
|
1375
|
+
* Indica se il compilatore deve essere abilitato.
|
|
1376
|
+
*/
|
|
1377
|
+
enabled: true,
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* Definisce il percorso dei file di output
|
|
1381
|
+
*/
|
|
1382
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
|
|
1386
|
+
*/
|
|
1387
|
+
saveComponents: false,
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Prefisso chiave dizionario
|
|
1391
|
+
*/
|
|
1392
|
+
dictionaryKeyPrefix: "",
|
|
1393
|
+
},
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1396
|
+
export default config;
|
|
1397
|
+
```
|
|
1398
|
+
|
|
1399
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
1400
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
1401
|
+
const config = {
|
|
1402
|
+
// ... Resto della tua configurazione
|
|
1403
|
+
compiler: {
|
|
1404
|
+
/**
|
|
1405
|
+
* Indica se il compilatore deve essere abilitato.
|
|
1406
|
+
*/
|
|
1407
|
+
enabled: true,
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* Definisce il percorso dei file di output
|
|
1411
|
+
*/
|
|
1412
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
|
|
1416
|
+
*/
|
|
1417
|
+
saveComponents: false,
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Prefisso chiave dizionario
|
|
1421
|
+
*/
|
|
1422
|
+
dictionaryKeyPrefix: "",
|
|
1423
|
+
},
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
export default config;
|
|
1427
|
+
```
|
|
1428
|
+
|
|
1429
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
1430
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
1431
|
+
const config = {
|
|
1432
|
+
// ... Resto della tua configurazione
|
|
1433
|
+
compiler: {
|
|
1434
|
+
/**
|
|
1435
|
+
* Indica se il compilatore deve essere abilitato.
|
|
1436
|
+
*/
|
|
1437
|
+
enabled: true,
|
|
1438
|
+
|
|
1439
|
+
/**
|
|
1440
|
+
* Definisce il percorso dei file di output
|
|
1441
|
+
*/
|
|
1442
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
* Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
|
|
1446
|
+
*/
|
|
1447
|
+
saveComponents: false,
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Prefisso chiave dizionario
|
|
1451
|
+
*/
|
|
1452
|
+
dictionaryKeyPrefix: "",
|
|
1453
|
+
},
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
module.exports = config;
|
|
1457
|
+
```
|
|
1458
|
+
|
|
1459
|
+
<Tabs>
|
|
1460
|
+
<Tab value='Comando di estrazione'>
|
|
1461
|
+
|
|
1462
|
+
Esegui l'estrattore per trasformare i tuoi componenti ed estrarre il contenuto
|
|
1463
|
+
|
|
1464
|
+
```bash packageManager="npm"
|
|
1465
|
+
npx intlayer extract
|
|
1466
|
+
```
|
|
1467
|
+
|
|
1468
|
+
```bash packageManager="pnpm"
|
|
1469
|
+
pnpm intlayer extract
|
|
1470
|
+
```
|
|
1471
|
+
|
|
1472
|
+
```bash packageManager="yarn"
|
|
1473
|
+
yarn intlayer extract
|
|
1474
|
+
```
|
|
1475
|
+
|
|
1476
|
+
```bash packageManager="bun"
|
|
1477
|
+
bunx intlayer extract
|
|
1478
|
+
```
|
|
1479
|
+
|
|
1480
|
+
</Tab>
|
|
1481
|
+
<Tab value='Compilatore Babel'>
|
|
1482
|
+
|
|
1483
|
+
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
1484
|
+
|
|
1485
|
+
```ts fileName="vite.config.ts"
|
|
1486
|
+
import { defineConfig } from "vite";
|
|
1487
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
1488
|
+
|
|
1489
|
+
export default defineConfig({
|
|
1490
|
+
plugins: [
|
|
1491
|
+
intlayer(),
|
|
1492
|
+
intlayerCompiler(), // Aggiunge il plugin del compilatore
|
|
1493
|
+
],
|
|
1494
|
+
});
|
|
1495
|
+
```
|
|
1496
|
+
|
|
1497
|
+
```bash packageManager="npm"
|
|
1498
|
+
npm run build # Oppure npm run dev
|
|
1499
|
+
```
|
|
1500
|
+
|
|
1501
|
+
```bash packageManager="pnpm"
|
|
1502
|
+
pnpm run build # O pnpm run dev
|
|
1503
|
+
```
|
|
1504
|
+
|
|
1505
|
+
```bash packageManager="yarn"
|
|
1506
|
+
yarn build # O yarn dev
|
|
1507
|
+
```
|
|
1508
|
+
|
|
1509
|
+
```bash packageManager="bun"
|
|
1510
|
+
bun run build # Or bun run dev
|
|
1511
|
+
```
|
|
1512
|
+
|
|
1513
|
+
</Tab>
|
|
1514
|
+
</Tabs>
|
|
1515
|
+
|
|
1360
1516
|
### Andare oltre
|
|
1361
1517
|
|
|
1362
1518
|
Per andare oltre, puoi implementare l’[editor visuale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_visual_editor.md) o esternalizzare i tuoi contenuti utilizzando il [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_CMS.md).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-03-07
|
|
3
|
-
updatedAt:
|
|
3
|
+
updatedAt: 2026-03-12
|
|
4
4
|
title: Vite + React i18n - Come tradurre un'app React nel 2026
|
|
5
5
|
description: Scopri come aggiungere l'internazionalizzazione (i18n) alla tua applicazione Vite e React utilizzando Intlayer. Segui questa guida per rendere la tua app multilingue.
|
|
6
6
|
keywords:
|
|
@@ -1392,8 +1392,8 @@ Si consiglia di ignorare i file generati da Intlayer. Questo ti permette di evit
|
|
|
1392
1392
|
|
|
1393
1393
|
Per farlo, puoi aggiungere le seguenti istruzioni al tuo file `.gitignore`:
|
|
1394
1394
|
|
|
1395
|
-
```
|
|
1396
|
-
#
|
|
1395
|
+
```bash
|
|
1396
|
+
# Ignora i file generati da Intlayer
|
|
1397
1397
|
.intlayer
|
|
1398
1398
|
```
|
|
1399
1399
|
|
|
@@ -1414,6 +1414,162 @@ Per maggiori dettagli su come utilizzare l'estensione, consulta la [documentazio
|
|
|
1414
1414
|
|
|
1415
1415
|
---
|
|
1416
1416
|
|
|
1417
|
+
### (Opzionale) Passaggio 1 : Estrarre il contenuto dei tuoi componenti
|
|
1418
|
+
|
|
1419
|
+
Se hai una base di codice esistente, trasformare migliaia di file può richiedere molto tempo.
|
|
1420
|
+
|
|
1421
|
+
Per facilitare questo processo, Intlayer propone un [compilatore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/compiler.md) / [estrattore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md) per trasformare i tuoi componenti ed estrarre il contenuto.
|
|
1422
|
+
|
|
1423
|
+
Per configurarlo, puoi aggiungere una sezione `compiler` nel tuo file `intlayer.config.ts`:
|
|
1424
|
+
|
|
1425
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
1426
|
+
import { type IntlayerConfig } from "intlayer";
|
|
1427
|
+
|
|
1428
|
+
const config: IntlayerConfig = {
|
|
1429
|
+
// ... Resto della tua configurazione
|
|
1430
|
+
compiler: {
|
|
1431
|
+
/**
|
|
1432
|
+
* Indica se il compilatore deve essere abilitato.
|
|
1433
|
+
*/
|
|
1434
|
+
enabled: true,
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Definisce il percorso dei file di output
|
|
1438
|
+
*/
|
|
1439
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
|
|
1443
|
+
*/
|
|
1444
|
+
saveComponents: false,
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* Prefisso chiave dizionario
|
|
1448
|
+
*/
|
|
1449
|
+
dictionaryKeyPrefix: "",
|
|
1450
|
+
},
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
export default config;
|
|
1454
|
+
```
|
|
1455
|
+
|
|
1456
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
1457
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
1458
|
+
const config = {
|
|
1459
|
+
// ... Resto della tua configurazione
|
|
1460
|
+
compiler: {
|
|
1461
|
+
/**
|
|
1462
|
+
* Indica se il compilatore deve essere abilitato.
|
|
1463
|
+
*/
|
|
1464
|
+
enabled: true,
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* Definisce il percorso dei file di output
|
|
1468
|
+
*/
|
|
1469
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
|
|
1473
|
+
*/
|
|
1474
|
+
saveComponents: false,
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Prefisso chiave dizionario
|
|
1478
|
+
*/
|
|
1479
|
+
dictionaryKeyPrefix: "",
|
|
1480
|
+
},
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1483
|
+
export default config;
|
|
1484
|
+
```
|
|
1485
|
+
|
|
1486
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
1487
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
1488
|
+
const config = {
|
|
1489
|
+
// ... Resto della tua configurazione
|
|
1490
|
+
compiler: {
|
|
1491
|
+
/**
|
|
1492
|
+
* Indica se il compilatore deve essere abilitato.
|
|
1493
|
+
*/
|
|
1494
|
+
enabled: true,
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* Definisce il percorso dei file di output
|
|
1498
|
+
*/
|
|
1499
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
|
|
1503
|
+
*/
|
|
1504
|
+
saveComponents: false,
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* Prefisso chiave dizionario
|
|
1508
|
+
*/
|
|
1509
|
+
dictionaryKeyPrefix: "",
|
|
1510
|
+
},
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
module.exports = config;
|
|
1514
|
+
```
|
|
1515
|
+
|
|
1516
|
+
<Tabs>
|
|
1517
|
+
<Tab value='Comando di estrazione'>
|
|
1518
|
+
|
|
1519
|
+
Esegui l'estrattore per trasformare i tuoi componenti ed estrarre il contenuto
|
|
1520
|
+
|
|
1521
|
+
```bash packageManager="npm"
|
|
1522
|
+
npx intlayer extract
|
|
1523
|
+
```
|
|
1524
|
+
|
|
1525
|
+
```bash packageManager="pnpm"
|
|
1526
|
+
pnpm intlayer extract
|
|
1527
|
+
```
|
|
1528
|
+
|
|
1529
|
+
```bash packageManager="yarn"
|
|
1530
|
+
yarn intlayer extract
|
|
1531
|
+
```
|
|
1532
|
+
|
|
1533
|
+
```bash packageManager="bun"
|
|
1534
|
+
bunx intlayer extract
|
|
1535
|
+
```
|
|
1536
|
+
|
|
1537
|
+
</Tab>
|
|
1538
|
+
<Tab value='Compilatore Babel'>
|
|
1539
|
+
|
|
1540
|
+
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
1541
|
+
|
|
1542
|
+
```ts fileName="vite.config.ts"
|
|
1543
|
+
import { defineConfig } from "vite";
|
|
1544
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
1545
|
+
|
|
1546
|
+
export default defineConfig({
|
|
1547
|
+
plugins: [
|
|
1548
|
+
intlayer(),
|
|
1549
|
+
intlayerCompiler(), // Aggiunge il plugin del compilatore
|
|
1550
|
+
],
|
|
1551
|
+
});
|
|
1552
|
+
```
|
|
1553
|
+
|
|
1554
|
+
```bash packageManager="npm"
|
|
1555
|
+
npm run build # Oppure npm run dev
|
|
1556
|
+
```
|
|
1557
|
+
|
|
1558
|
+
```bash packageManager="pnpm"
|
|
1559
|
+
pnpm run build # O pnpm run dev
|
|
1560
|
+
```
|
|
1561
|
+
|
|
1562
|
+
```bash packageManager="yarn"
|
|
1563
|
+
yarn build # O yarn dev
|
|
1564
|
+
```
|
|
1565
|
+
|
|
1566
|
+
```bash packageManager="bun"
|
|
1567
|
+
bun run build # Or bun run dev
|
|
1568
|
+
```
|
|
1569
|
+
|
|
1570
|
+
</Tab>
|
|
1571
|
+
</Tabs>
|
|
1572
|
+
|
|
1417
1573
|
### Approfondimenti
|
|
1418
1574
|
|
|
1419
1575
|
Per approfondire, puoi implementare l'[editor visuale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_visual_editor.md) o esternalizzare i tuoi contenuti utilizzando il [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_CMS.md).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-04-18
|
|
3
|
-
updatedAt:
|
|
3
|
+
updatedAt: 2026-03-12
|
|
4
4
|
title: Vite + Solid i18n - Come tradurre un'app Solid nel 2026
|
|
5
5
|
description: Scopri come rendere il tuo sito Vite e Solid multilingue. Segui la documentazione per internazionalizzare (i18n) e tradurlo.
|
|
6
6
|
keywords:
|
|
@@ -45,7 +45,7 @@ history:
|
|
|
45
45
|
</Tab>
|
|
46
46
|
</Tabs>
|
|
47
47
|
|
|
48
|
-
##
|
|
48
|
+
## Indice
|
|
49
49
|
|
|
50
50
|
<TOC/>
|
|
51
51
|
|
|
@@ -68,7 +68,7 @@ Con Intlayer, puoi:
|
|
|
68
68
|
|
|
69
69
|
## Guida passo-passo per configurare Intlayer in un'applicazione Vite e Solid
|
|
70
70
|
|
|
71
|
-
##
|
|
71
|
+
## Indice
|
|
72
72
|
|
|
73
73
|
<TOC/>
|
|
74
74
|
|
|
@@ -557,8 +557,8 @@ Si consiglia di ignorare i file generati da Intlayer. Questo permette di evitare
|
|
|
557
557
|
|
|
558
558
|
Per fare ciò, puoi aggiungere le seguenti istruzioni al tuo file `.gitignore`:
|
|
559
559
|
|
|
560
|
-
```
|
|
561
|
-
#
|
|
560
|
+
```bash
|
|
561
|
+
# Ignora i file generati da Intlayer
|
|
562
562
|
.intlayer
|
|
563
563
|
```
|
|
564
564
|
|
|
@@ -579,6 +579,162 @@ Per maggiori dettagli su come utilizzare l'estensione, consulta la [documentazio
|
|
|
579
579
|
|
|
580
580
|
---
|
|
581
581
|
|
|
582
|
+
### (Opzionale) Passaggio 1 : Estrarre il contenuto dei tuoi componenti
|
|
583
|
+
|
|
584
|
+
Se hai una base di codice esistente, trasformare migliaia di file può richiedere molto tempo.
|
|
585
|
+
|
|
586
|
+
Per facilitare questo processo, Intlayer propone un [compilatore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/compiler.md) / [estrattore](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/cli/extract.md) per trasformare i tuoi componenti ed estrarre il contenuto.
|
|
587
|
+
|
|
588
|
+
Per configurarlo, puoi aggiungere una sezione `compiler` nel tuo file `intlayer.config.ts`:
|
|
589
|
+
|
|
590
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
591
|
+
import { type IntlayerConfig } from "intlayer";
|
|
592
|
+
|
|
593
|
+
const config: IntlayerConfig = {
|
|
594
|
+
// ... Resto della tua configurazione
|
|
595
|
+
compiler: {
|
|
596
|
+
/**
|
|
597
|
+
* Indica se il compilatore deve essere abilitato.
|
|
598
|
+
*/
|
|
599
|
+
enabled: true,
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Definisce il percorso dei file di output
|
|
603
|
+
*/
|
|
604
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
|
|
608
|
+
*/
|
|
609
|
+
saveComponents: false,
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Prefisso chiave dizionario
|
|
613
|
+
*/
|
|
614
|
+
dictionaryKeyPrefix: "",
|
|
615
|
+
},
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
export default config;
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
622
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
623
|
+
const config = {
|
|
624
|
+
// ... Resto della tua configurazione
|
|
625
|
+
compiler: {
|
|
626
|
+
/**
|
|
627
|
+
* Indica se il compilatore deve essere abilitato.
|
|
628
|
+
*/
|
|
629
|
+
enabled: true,
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Definisce il percorso dei file di output
|
|
633
|
+
*/
|
|
634
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
|
|
638
|
+
*/
|
|
639
|
+
saveComponents: false,
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Prefisso chiave dizionario
|
|
643
|
+
*/
|
|
644
|
+
dictionaryKeyPrefix: "",
|
|
645
|
+
},
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
export default config;
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
652
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
653
|
+
const config = {
|
|
654
|
+
// ... Resto della tua configurazione
|
|
655
|
+
compiler: {
|
|
656
|
+
/**
|
|
657
|
+
* Indica se il compilatore deve essere abilitato.
|
|
658
|
+
*/
|
|
659
|
+
enabled: true,
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Definisce il percorso dei file di output
|
|
663
|
+
*/
|
|
664
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Indica se i componenti devono essere salvati dopo essere stati trasformati. In questo modo, il compilatore può essere eseguito solo una volta per trasformare l'app e poi rimosso.
|
|
668
|
+
*/
|
|
669
|
+
saveComponents: false,
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Prefisso chiave dizionario
|
|
673
|
+
*/
|
|
674
|
+
dictionaryKeyPrefix: "",
|
|
675
|
+
},
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
module.exports = config;
|
|
679
|
+
```
|
|
680
|
+
|
|
681
|
+
<Tabs>
|
|
682
|
+
<Tab value='Comando di estrazione'>
|
|
683
|
+
|
|
684
|
+
Esegui l'estrattore per trasformare i tuoi componenti ed estrarre il contenuto
|
|
685
|
+
|
|
686
|
+
```bash packageManager="npm"
|
|
687
|
+
npx intlayer extract
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
```bash packageManager="pnpm"
|
|
691
|
+
pnpm intlayer extract
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
```bash packageManager="yarn"
|
|
695
|
+
yarn intlayer extract
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
```bash packageManager="bun"
|
|
699
|
+
bunx intlayer extract
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
</Tab>
|
|
703
|
+
<Tab value='Compilatore Babel'>
|
|
704
|
+
|
|
705
|
+
Aggiorna il tuo `vite.config.ts` per includere il plugin `intlayerCompiler`:
|
|
706
|
+
|
|
707
|
+
```ts fileName="vite.config.ts"
|
|
708
|
+
import { defineConfig } from "vite";
|
|
709
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
710
|
+
|
|
711
|
+
export default defineConfig({
|
|
712
|
+
plugins: [
|
|
713
|
+
intlayer(),
|
|
714
|
+
intlayerCompiler(), // Aggiunge il plugin del compilatore
|
|
715
|
+
],
|
|
716
|
+
});
|
|
717
|
+
```
|
|
718
|
+
|
|
719
|
+
```bash packageManager="npm"
|
|
720
|
+
npm run build # Oppure npm run dev
|
|
721
|
+
```
|
|
722
|
+
|
|
723
|
+
```bash packageManager="pnpm"
|
|
724
|
+
pnpm run build # O pnpm run dev
|
|
725
|
+
```
|
|
726
|
+
|
|
727
|
+
```bash packageManager="yarn"
|
|
728
|
+
yarn build # O yarn dev
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
```bash packageManager="bun"
|
|
732
|
+
bun run build # Or bun run dev
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
</Tab>
|
|
736
|
+
</Tabs>
|
|
737
|
+
|
|
582
738
|
### Approfondimenti
|
|
583
739
|
|
|
584
740
|
Per approfondire, puoi implementare l'[editor visuale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_visual_editor.md) o esternalizzare i tuoi contenuti utilizzando il [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/intlayer_CMS.md).
|