@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
|
@@ -622,44 +622,165 @@ export const Link: ParentComponent<AnchorProps> = (props) => {
|
|
|
622
622
|
};
|
|
623
623
|
```
|
|
624
624
|
|
|
625
|
-
### (Optional) Step 11:
|
|
625
|
+
### (Optional) Step 11: Extract the content of your components
|
|
626
626
|
|
|
627
|
-
|
|
627
|
+
If you have an existing codebase, transforming thousands of files can be time-consuming.
|
|
628
628
|
|
|
629
|
-
|
|
630
|
-
import { render } from "solid-js/web";
|
|
631
|
-
import { MarkdownProvider } from "solid-intlayer";
|
|
632
|
-
import App from "./App";
|
|
629
|
+
To ease this process, Intlayer propose a [compiler](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/compiler.md) / [extractor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/extract.md) to transform your components and extract the content.
|
|
633
630
|
|
|
634
|
-
|
|
631
|
+
To set it up, you can add a `compiler` section in your `intlayer.config.ts` file:
|
|
635
632
|
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
<MarkdownProvider>
|
|
639
|
-
<App />
|
|
640
|
-
</MarkdownProvider>
|
|
641
|
-
),
|
|
642
|
-
root!
|
|
643
|
-
);
|
|
644
|
-
```
|
|
633
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
634
|
+
import { type IntlayerConfig } from "intlayer";
|
|
645
635
|
|
|
646
|
-
|
|
636
|
+
const config: IntlayerConfig = {
|
|
637
|
+
// ... Rest of your config
|
|
638
|
+
compiler: {
|
|
639
|
+
/**
|
|
640
|
+
* Indicates if the compiler should be enabled.
|
|
641
|
+
*/
|
|
642
|
+
enabled: true,
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Defines the output files path
|
|
646
|
+
*/
|
|
647
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Indicates if the components should be saved after being transformed.
|
|
651
|
+
* That way, the compiler can be run only once to transform the app, and then it can be removed.
|
|
652
|
+
*/
|
|
653
|
+
saveComponents: false,
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Dictionary key prefix
|
|
657
|
+
*/
|
|
658
|
+
dictionaryKeyPrefix: "",
|
|
659
|
+
},
|
|
660
|
+
};
|
|
647
661
|
|
|
648
|
-
|
|
649
|
-
|
|
662
|
+
export default config;
|
|
663
|
+
```
|
|
650
664
|
|
|
651
|
-
|
|
652
|
-
|
|
665
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
666
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
667
|
+
const config = {
|
|
668
|
+
// ... Rest of your config
|
|
669
|
+
compiler: {
|
|
670
|
+
/**
|
|
671
|
+
* Indicates if the compiler should be enabled.
|
|
672
|
+
*/
|
|
673
|
+
enabled: true,
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Defines the output files path
|
|
677
|
+
*/
|
|
678
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Indicates if the components should be saved after being transformed.
|
|
682
|
+
* That way, the compiler can be run only once to transform the app, and then it can be removed.
|
|
683
|
+
*/
|
|
684
|
+
saveComponents: false,
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Dictionary key prefix
|
|
688
|
+
*/
|
|
689
|
+
dictionaryKeyPrefix: "",
|
|
690
|
+
},
|
|
691
|
+
};
|
|
653
692
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
693
|
+
export default config;
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
697
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
698
|
+
const config = {
|
|
699
|
+
// ... Rest of your config
|
|
700
|
+
compiler: {
|
|
701
|
+
/**
|
|
702
|
+
* Indicates if the compiler should be enabled.
|
|
703
|
+
*/
|
|
704
|
+
enabled: true,
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Defines the output files path
|
|
708
|
+
*/
|
|
709
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Indicates if the components should be saved after being transformed.
|
|
713
|
+
* That way, the compiler can be run only once to transform the app, and then it can be removed.
|
|
714
|
+
*/
|
|
715
|
+
saveComponents: false,
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Dictionary key prefix
|
|
719
|
+
*/
|
|
720
|
+
dictionaryKeyPrefix: "",
|
|
721
|
+
},
|
|
660
722
|
};
|
|
723
|
+
|
|
724
|
+
module.exports = config;
|
|
661
725
|
```
|
|
662
726
|
|
|
727
|
+
<Tabs>
|
|
728
|
+
<Tab value='Extract command'>
|
|
729
|
+
|
|
730
|
+
Run the extractor to transform your components and extract the content
|
|
731
|
+
|
|
732
|
+
```bash packageManager="npm"
|
|
733
|
+
npx intlayer extract
|
|
734
|
+
```
|
|
735
|
+
|
|
736
|
+
```bash packageManager="pnpm"
|
|
737
|
+
pnpm intlayer extract
|
|
738
|
+
```
|
|
739
|
+
|
|
740
|
+
```bash packageManager="yarn"
|
|
741
|
+
yarn intlayer extract
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
```bash packageManager="bun"
|
|
745
|
+
bunx intlayer extract
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
</Tab>
|
|
749
|
+
<Tab value='Babel compiler'>
|
|
750
|
+
|
|
751
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
752
|
+
|
|
753
|
+
```ts fileName="vite.config.ts"
|
|
754
|
+
import { defineConfig } from "vite";
|
|
755
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
756
|
+
|
|
757
|
+
export default defineConfig({
|
|
758
|
+
plugins: [
|
|
759
|
+
intlayer(),
|
|
760
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
761
|
+
],
|
|
762
|
+
});
|
|
763
|
+
```
|
|
764
|
+
|
|
765
|
+
```bash packageManager="npm"
|
|
766
|
+
npm run build # Or npm run dev
|
|
767
|
+
```
|
|
768
|
+
|
|
769
|
+
```bash packageManager="pnpm"
|
|
770
|
+
pnpm run build # Or pnpm run dev
|
|
771
|
+
```
|
|
772
|
+
|
|
773
|
+
```bash packageManager="yarn"
|
|
774
|
+
yarn build # Or yarn dev
|
|
775
|
+
```
|
|
776
|
+
|
|
777
|
+
```bash packageManager="bun"
|
|
778
|
+
bun run build # Or bun run dev
|
|
779
|
+
```
|
|
780
|
+
|
|
781
|
+
</Tab>
|
|
782
|
+
</Tabs>
|
|
783
|
+
|
|
663
784
|
### Configure TypeScript
|
|
664
785
|
|
|
665
786
|
Ensure your TypeScript configuration includes the autogenerated types.
|
|
@@ -679,7 +800,7 @@ It is recommended to ignore the files generated by Intlayer. This allows you to
|
|
|
679
800
|
|
|
680
801
|
To do this, you can add the following instructions to your `.gitignore` file:
|
|
681
802
|
|
|
682
|
-
```
|
|
803
|
+
```bash
|
|
683
804
|
# Ignore the files generated by Intlayer
|
|
684
805
|
.intlayer
|
|
685
806
|
```
|
|
@@ -504,13 +504,172 @@ For SEO, it is recommended to prefix your routes with the locale (e.g., `/about`
|
|
|
504
504
|
</a>
|
|
505
505
|
```
|
|
506
506
|
|
|
507
|
+
### (Optional) Step 10: Extract the content of your components
|
|
508
|
+
|
|
509
|
+
If you have an existing codebase, transforming thousands of files can be time-consuming.
|
|
510
|
+
|
|
511
|
+
To ease this process, Intlayer propose a [compiler](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/compiler.md) / [extractor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/extract.md) to transform your components and extract the content.
|
|
512
|
+
|
|
513
|
+
To set it up, you can add a `compiler` section in your `intlayer.config.ts` file:
|
|
514
|
+
|
|
515
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
516
|
+
import { type IntlayerConfig } from "intlayer";
|
|
517
|
+
|
|
518
|
+
const config: IntlayerConfig = {
|
|
519
|
+
// ... Rest of your config
|
|
520
|
+
compiler: {
|
|
521
|
+
/**
|
|
522
|
+
* Indicates if the compiler should be enabled.
|
|
523
|
+
*/
|
|
524
|
+
enabled: true,
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Defines the output files path
|
|
528
|
+
*/
|
|
529
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Indicates if the components should be saved after being transformed.
|
|
533
|
+
* That way, the compiler can be run only once to transform the app, and then it can be removed.
|
|
534
|
+
*/
|
|
535
|
+
saveComponents: false,
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Dictionary key prefix
|
|
539
|
+
*/
|
|
540
|
+
dictionaryKeyPrefix: "",
|
|
541
|
+
},
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
export default config;
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
548
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
549
|
+
const config = {
|
|
550
|
+
// ... Rest of your config
|
|
551
|
+
compiler: {
|
|
552
|
+
/**
|
|
553
|
+
* Indicates if the compiler should be enabled.
|
|
554
|
+
*/
|
|
555
|
+
enabled: true,
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Defines the output files path
|
|
559
|
+
*/
|
|
560
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Indicates if the components should be saved after being transformed.
|
|
564
|
+
* That way, the compiler can be run only once to transform the app, and then it can be removed.
|
|
565
|
+
*/
|
|
566
|
+
saveComponents: false,
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Dictionary key prefix
|
|
570
|
+
*/
|
|
571
|
+
dictionaryKeyPrefix: "",
|
|
572
|
+
},
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
export default config;
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
579
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
580
|
+
const config = {
|
|
581
|
+
// ... Rest of your config
|
|
582
|
+
compiler: {
|
|
583
|
+
/**
|
|
584
|
+
* Indicates if the compiler should be enabled.
|
|
585
|
+
*/
|
|
586
|
+
enabled: true,
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Defines the output files path
|
|
590
|
+
*/
|
|
591
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Indicates if the components should be saved after being transformed.
|
|
595
|
+
* That way, the compiler can be run only once to transform the app, and then it can be removed.
|
|
596
|
+
*/
|
|
597
|
+
saveComponents: false,
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Dictionary key prefix
|
|
601
|
+
*/
|
|
602
|
+
dictionaryKeyPrefix: "",
|
|
603
|
+
},
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
module.exports = config;
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
<Tabs>
|
|
610
|
+
<Tab value='Extract command'>
|
|
611
|
+
|
|
612
|
+
Run the extractor to transform your components and extract the content
|
|
613
|
+
|
|
614
|
+
```bash packageManager="npm"
|
|
615
|
+
npx intlayer extract
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
```bash packageManager="pnpm"
|
|
619
|
+
pnpm intlayer extract
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
```bash packageManager="yarn"
|
|
623
|
+
yarn intlayer extract
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
```bash packageManager="bun"
|
|
627
|
+
bunx intlayer extract
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
</Tab>
|
|
631
|
+
<Tab value='Babel compiler'>
|
|
632
|
+
|
|
633
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
634
|
+
|
|
635
|
+
```ts fileName="vite.config.ts"
|
|
636
|
+
import { defineConfig } from "vite";
|
|
637
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
638
|
+
|
|
639
|
+
export default defineConfig({
|
|
640
|
+
plugins: [
|
|
641
|
+
intlayer(),
|
|
642
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
643
|
+
],
|
|
644
|
+
});
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
```bash packageManager="npm"
|
|
648
|
+
npm run build # Or npm run dev
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
```bash packageManager="pnpm"
|
|
652
|
+
pnpm run build # Or pnpm run dev
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
```bash packageManager="yarn"
|
|
656
|
+
yarn build # Or yarn dev
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
```bash packageManager="bun"
|
|
660
|
+
bun run build # Or bun run dev
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
</Tab>
|
|
664
|
+
</Tabs>
|
|
665
|
+
|
|
507
666
|
### Git Configuration
|
|
508
667
|
|
|
509
668
|
It is recommended to ignore the files generated by Intlayer. This allows you to avoid committing them to your Git repository.
|
|
510
669
|
|
|
511
670
|
To do this, you can add the following instructions to your `.gitignore` file:
|
|
512
671
|
|
|
513
|
-
```
|
|
672
|
+
```bash
|
|
514
673
|
# Ignore the files generated by Intlayer
|
|
515
674
|
.intlayer
|
|
516
675
|
```
|
|
@@ -957,64 +957,165 @@ import RouterLink from "@components/RouterLink.vue";
|
|
|
957
957
|
</template>
|
|
958
958
|
```
|
|
959
959
|
|
|
960
|
-
### (Optional) Step 11:
|
|
960
|
+
### (Optional) Step 11: Extract the content of your components
|
|
961
961
|
|
|
962
|
-
|
|
962
|
+
If you have an existing codebase, transforming thousands of files can be time-consuming.
|
|
963
963
|
|
|
964
|
-
|
|
964
|
+
To ease this process, Intlayer propose a [compiler](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/compiler.md) / [extractor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/cli/extract.md) to transform your components and extract the content.
|
|
965
965
|
|
|
966
|
-
|
|
966
|
+
To set it up, you can add a `compiler` section in your `intlayer.config.ts` file:
|
|
967
967
|
|
|
968
|
-
|
|
968
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
969
|
+
import { type IntlayerConfig } from "intlayer";
|
|
969
970
|
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
971
|
+
const config: IntlayerConfig = {
|
|
972
|
+
// ... Rest of your config
|
|
973
|
+
compiler: {
|
|
974
|
+
/**
|
|
975
|
+
* Indicates if the compiler should be enabled.
|
|
976
|
+
*/
|
|
977
|
+
enabled: true,
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Defines the output files path
|
|
981
|
+
*/
|
|
982
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* Indicates if the components should be saved after being transformed.
|
|
986
|
+
* That way, the compiler can be run only once to transform the app, and then it can be removed.
|
|
987
|
+
*/
|
|
988
|
+
saveComponents: false,
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Dictionary key prefix
|
|
992
|
+
*/
|
|
993
|
+
dictionaryKeyPrefix: "",
|
|
994
|
+
},
|
|
995
|
+
};
|
|
974
996
|
|
|
975
|
-
|
|
997
|
+
export default config;
|
|
998
|
+
```
|
|
976
999
|
|
|
977
|
-
|
|
1000
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
1001
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
1002
|
+
const config = {
|
|
1003
|
+
// ... Rest of your config
|
|
1004
|
+
compiler: {
|
|
1005
|
+
/**
|
|
1006
|
+
* Indicates if the compiler should be enabled.
|
|
1007
|
+
*/
|
|
1008
|
+
enabled: true,
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Defines the output files path
|
|
1012
|
+
*/
|
|
1013
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Indicates if the components should be saved after being transformed.
|
|
1017
|
+
* That way, the compiler can be run only once to transform the app, and then it can be removed.
|
|
1018
|
+
*/
|
|
1019
|
+
saveComponents: false,
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Dictionary key prefix
|
|
1023
|
+
*/
|
|
1024
|
+
dictionaryKeyPrefix: "",
|
|
1025
|
+
},
|
|
1026
|
+
};
|
|
978
1027
|
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
}
|
|
1028
|
+
export default config;
|
|
1029
|
+
```
|
|
1030
|
+
|
|
1031
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
1032
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
1033
|
+
const config = {
|
|
1034
|
+
// ... Rest of your config
|
|
1035
|
+
compiler: {
|
|
1036
|
+
/**
|
|
1037
|
+
* Indicates if the compiler should be enabled.
|
|
1038
|
+
*/
|
|
1039
|
+
enabled: true,
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Defines the output files path
|
|
1043
|
+
*/
|
|
1044
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Indicates if the components should be saved after being transformed.
|
|
1048
|
+
* That way, the compiler can be run only once to transform the app, and then it can be removed.
|
|
1049
|
+
*/
|
|
1050
|
+
saveComponents: false,
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Dictionary key prefix
|
|
1054
|
+
*/
|
|
1055
|
+
dictionaryKeyPrefix: "",
|
|
1056
|
+
},
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
module.exports = config;
|
|
1060
|
+
```
|
|
1061
|
+
|
|
1062
|
+
<Tabs>
|
|
1063
|
+
<Tab value='Extract command'>
|
|
1064
|
+
|
|
1065
|
+
Run the extractor to transform your components and extract the content
|
|
1066
|
+
|
|
1067
|
+
```bash packageManager="npm"
|
|
1068
|
+
npx intlayer extract
|
|
1069
|
+
```
|
|
1070
|
+
|
|
1071
|
+
```bash packageManager="pnpm"
|
|
1072
|
+
pnpm intlayer extract
|
|
1073
|
+
```
|
|
1074
|
+
|
|
1075
|
+
```bash packageManager="yarn"
|
|
1076
|
+
yarn intlayer extract
|
|
1077
|
+
```
|
|
1078
|
+
|
|
1079
|
+
```bash packageManager="bun"
|
|
1080
|
+
bunx intlayer extract
|
|
1081
|
+
```
|
|
984
1082
|
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1083
|
+
</Tab>
|
|
1084
|
+
<Tab value='Babel compiler'>
|
|
1085
|
+
|
|
1086
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
1087
|
+
|
|
1088
|
+
```ts fileName="vite.config.ts"
|
|
1089
|
+
import { defineConfig } from "vite";
|
|
1090
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
1091
|
+
|
|
1092
|
+
export default defineConfig({
|
|
1093
|
+
plugins: [
|
|
1094
|
+
intlayer(),
|
|
1095
|
+
intlayerCompiler(), // Adds the compiler plugin
|
|
1096
|
+
],
|
|
989
1097
|
});
|
|
990
1098
|
```
|
|
991
1099
|
|
|
992
|
-
|
|
1100
|
+
```bash packageManager="npm"
|
|
1101
|
+
npm run build # Or npm run dev
|
|
1102
|
+
```
|
|
993
1103
|
|
|
994
|
-
```
|
|
995
|
-
|
|
996
|
-
|
|
1104
|
+
```bash packageManager="pnpm"
|
|
1105
|
+
pnpm run build # Or pnpm run dev
|
|
1106
|
+
```
|
|
997
1107
|
|
|
998
|
-
|
|
999
|
-
|
|
1108
|
+
```bash packageManager="yarn"
|
|
1109
|
+
yarn build # Or yarn dev
|
|
1110
|
+
```
|
|
1000
1111
|
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
<!-- Basic syntax -->
|
|
1004
|
-
<myMarkdownContent />
|
|
1005
|
-
|
|
1006
|
-
<!-- Or with custom components -->
|
|
1007
|
-
<component
|
|
1008
|
-
:is="
|
|
1009
|
-
myMarkdownContent.use({
|
|
1010
|
-
h1: (props) => h('h1', { style: { color: 'red' } }, props.children),
|
|
1011
|
-
})
|
|
1012
|
-
"
|
|
1013
|
-
/>
|
|
1014
|
-
</div>
|
|
1015
|
-
</template>
|
|
1112
|
+
```bash packageManager="bun"
|
|
1113
|
+
bun run build # Or bun run dev
|
|
1016
1114
|
```
|
|
1017
1115
|
|
|
1116
|
+
</Tab>
|
|
1117
|
+
</Tabs>
|
|
1118
|
+
|
|
1018
1119
|
### Configure TypeScript
|
|
1019
1120
|
|
|
1020
1121
|
Intlayer uses module augmentation to get benefits of TypeScript and make your codebase stronger.
|
|
@@ -1041,7 +1142,7 @@ It is recommended to ignore the files generated by Intlayer. This allows you to
|
|
|
1041
1142
|
|
|
1042
1143
|
To do this, you can add the following instructions to your `.gitignore` file:
|
|
1043
1144
|
|
|
1044
|
-
```
|
|
1145
|
+
```bash
|
|
1045
1146
|
# Ignore the files generated by Intlayer
|
|
1046
1147
|
.intlayer
|
|
1047
1148
|
```
|
|
@@ -123,7 +123,7 @@ The extension can load environment variables from your workspace to run Intlayer
|
|
|
123
123
|
|
|
124
124
|
#### Selecting the active environment
|
|
125
125
|
|
|
126
|
-
- **Command Palette**: open the palette and run `Intlayer: Select Environment`, then choose the environment (e.g., `development`, `staging`, `production`). The extension will attempt to load the first available file in the priority list above and show a notification like “Loaded env from
|
|
126
|
+
- **Command Palette**: open the palette and run `Intlayer: Select Environment`, then choose the environment (e.g., `development`, `staging`, `production`). The extension will attempt to load the first available file in the priority list above and show a notification like “Loaded env from `.env.<env>.local`”.
|
|
127
127
|
- **Settings**: go to `Settings → Extensions → Intlayer`, and set:
|
|
128
128
|
- **Environment**: the environment name used to resolve `.env.<env>*` files.
|
|
129
129
|
- (Optional) **Env File**: an explicit path to a `.env` file. When provided, it takes precedence over the inferred list.
|