@intlayer/docs 9.5.5 → 9.5.6
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/README.md +0 -1
- package/blog/ar/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/de/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/en/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/en-GB/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/es/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/fr/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/hi/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/id/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/it/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/ja/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/ko/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/pl/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/pt/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/ru/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/tr/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/uk/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/vi/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/blog/zh/transform_existing_vite_react_app_using_compiler.md +4 -2
- package/docs/ar/intlayer_with_astro.md +19 -32
- package/docs/ar/intlayer_with_astro_lit.md +32 -36
- package/docs/ar/intlayer_with_astro_preact.md +32 -36
- package/docs/ar/intlayer_with_astro_react.md +32 -36
- package/docs/ar/intlayer_with_astro_solid.md +32 -36
- package/docs/ar/intlayer_with_astro_svelte.md +32 -36
- package/docs/ar/intlayer_with_astro_vue.md +32 -36
- package/docs/ar/intlayer_with_react_router_v7.md +12 -1
- package/docs/ar/intlayer_with_solid_start.md +14 -7
- package/docs/ar/intlayer_with_svelte_kit.md +12 -1
- package/docs/ar/intlayer_with_tanstack+solid.md +13 -2
- package/docs/ar/intlayer_with_tanstack.md +13 -6
- package/docs/ar/intlayer_with_vite+lit.md +75 -3
- package/docs/ar/intlayer_with_vite+preact.md +27 -19
- package/docs/ar/intlayer_with_vite+react.md +27 -19
- package/docs/ar/intlayer_with_vite+solid.md +27 -19
- package/docs/ar/intlayer_with_vite+svelte.md +27 -19
- package/docs/ar/intlayer_with_vite+vanilla.md +16 -3
- package/docs/ar/intlayer_with_vite+vue.md +27 -19
- package/docs/ar/introduction.md +0 -1
- package/docs/ar/readme.md +0 -1
- package/docs/ar/releases/v8.md +1 -5
- package/docs/bn/intlayer_with_vite+lit.md +75 -3
- package/docs/bn/intlayer_with_vite+vanilla.md +16 -3
- package/docs/bn/introduction.md +0 -1
- package/docs/cs/intlayer_with_vite+lit.md +75 -3
- package/docs/cs/intlayer_with_vite+vanilla.md +16 -3
- package/docs/cs/introduction.md +0 -1
- package/docs/de/intlayer_with_astro.md +12 -25
- package/docs/de/intlayer_with_astro_lit.md +23 -27
- package/docs/de/intlayer_with_astro_preact.md +23 -27
- package/docs/de/intlayer_with_astro_react.md +23 -27
- package/docs/de/intlayer_with_astro_solid.md +23 -27
- package/docs/de/intlayer_with_astro_svelte.md +23 -27
- package/docs/de/intlayer_with_astro_vue.md +23 -27
- package/docs/de/intlayer_with_react_router_v7.md +12 -1
- package/docs/de/intlayer_with_solid_start.md +14 -7
- package/docs/de/intlayer_with_svelte_kit.md +12 -1
- package/docs/de/intlayer_with_tanstack+solid.md +13 -2
- package/docs/de/intlayer_with_tanstack.md +13 -6
- package/docs/de/intlayer_with_vite+lit.md +75 -3
- package/docs/de/intlayer_with_vite+preact.md +16 -3
- package/docs/de/intlayer_with_vite+react.md +16 -3
- package/docs/de/intlayer_with_vite+solid.md +16 -3
- package/docs/de/intlayer_with_vite+svelte.md +16 -3
- package/docs/de/intlayer_with_vite+vanilla.md +16 -3
- package/docs/de/intlayer_with_vite+vue.md +16 -3
- package/docs/de/introduction.md +0 -1
- package/docs/de/readme.md +0 -1
- package/docs/de/releases/v8.md +1 -5
- package/docs/en/intlayer_with_astro.md +5 -20
- package/docs/en/intlayer_with_astro_lit.md +22 -26
- package/docs/en/intlayer_with_astro_preact.md +22 -26
- package/docs/en/intlayer_with_astro_react.md +22 -26
- package/docs/en/intlayer_with_astro_solid.md +22 -26
- package/docs/en/intlayer_with_astro_svelte.md +22 -26
- package/docs/en/intlayer_with_astro_vanilla.md +20 -13
- package/docs/en/intlayer_with_astro_vue.md +22 -26
- package/docs/en/intlayer_with_react_router_v7.md +12 -1
- package/docs/en/intlayer_with_solid_start.md +14 -7
- package/docs/en/intlayer_with_svelte_kit.md +12 -1
- package/docs/en/intlayer_with_tanstack+solid.md +13 -2
- package/docs/en/intlayer_with_tanstack.md +12 -5
- package/docs/en/intlayer_with_vite+lit.md +75 -3
- package/docs/en/intlayer_with_vite+preact.md +16 -3
- package/docs/en/intlayer_with_vite+react.md +16 -3
- package/docs/en/intlayer_with_vite+solid.md +16 -3
- package/docs/en/intlayer_with_vite+svelte.md +16 -3
- package/docs/en/intlayer_with_vite+vanilla.md +16 -3
- package/docs/en/intlayer_with_vite+vue.md +16 -3
- package/docs/en/introduction.md +0 -1
- package/docs/en/readme.md +0 -1
- package/docs/en/releases/v8.md +1 -5
- package/docs/en-GB/intlayer_with_astro.md +12 -25
- package/docs/en-GB/intlayer_with_astro_lit.md +23 -27
- package/docs/en-GB/intlayer_with_astro_preact.md +23 -27
- package/docs/en-GB/intlayer_with_astro_react.md +23 -27
- package/docs/en-GB/intlayer_with_astro_solid.md +23 -27
- package/docs/en-GB/intlayer_with_astro_svelte.md +23 -27
- package/docs/en-GB/intlayer_with_astro_vue.md +23 -27
- package/docs/en-GB/intlayer_with_react_router_v7.md +12 -1
- package/docs/en-GB/intlayer_with_solid_start.md +14 -7
- package/docs/en-GB/intlayer_with_svelte_kit.md +12 -1
- package/docs/en-GB/intlayer_with_tanstack+solid.md +13 -2
- package/docs/en-GB/intlayer_with_tanstack.md +13 -6
- package/docs/en-GB/intlayer_with_vite+lit.md +75 -3
- package/docs/en-GB/intlayer_with_vite+preact.md +16 -3
- package/docs/en-GB/intlayer_with_vite+react.md +16 -3
- package/docs/en-GB/intlayer_with_vite+solid.md +25 -15
- package/docs/en-GB/intlayer_with_vite+svelte.md +16 -3
- package/docs/en-GB/intlayer_with_vite+vanilla.md +16 -3
- package/docs/en-GB/intlayer_with_vite+vue.md +16 -3
- package/docs/en-GB/introduction.md +0 -1
- package/docs/en-GB/readme.md +0 -1
- package/docs/en-GB/releases/v8.md +1 -5
- package/docs/es/intlayer_with_astro.md +12 -25
- package/docs/es/intlayer_with_astro_lit.md +23 -27
- package/docs/es/intlayer_with_astro_preact.md +23 -27
- package/docs/es/intlayer_with_astro_react.md +23 -27
- package/docs/es/intlayer_with_astro_solid.md +23 -27
- package/docs/es/intlayer_with_astro_svelte.md +23 -27
- package/docs/es/intlayer_with_astro_vue.md +23 -27
- package/docs/es/intlayer_with_react_router_v7.md +12 -1
- package/docs/es/intlayer_with_solid_start.md +14 -7
- package/docs/es/intlayer_with_svelte_kit.md +12 -1
- package/docs/es/intlayer_with_tanstack+solid.md +13 -2
- package/docs/es/intlayer_with_tanstack.md +13 -6
- package/docs/es/intlayer_with_vite+lit.md +75 -3
- package/docs/es/intlayer_with_vite+preact.md +16 -3
- package/docs/es/intlayer_with_vite+react.md +16 -3
- package/docs/es/intlayer_with_vite+solid.md +16 -3
- package/docs/es/intlayer_with_vite+svelte.md +16 -3
- package/docs/es/intlayer_with_vite+vanilla.md +16 -3
- package/docs/es/intlayer_with_vite+vue.md +16 -3
- package/docs/es/introduction.md +0 -1
- package/docs/es/readme.md +0 -1
- package/docs/es/releases/v8.md +1 -5
- package/docs/fr/intlayer_with_astro.md +13 -26
- package/docs/fr/intlayer_with_astro_lit.md +24 -28
- package/docs/fr/intlayer_with_astro_preact.md +24 -28
- package/docs/fr/intlayer_with_astro_react.md +24 -28
- package/docs/fr/intlayer_with_astro_solid.md +24 -28
- package/docs/fr/intlayer_with_astro_svelte.md +24 -28
- package/docs/fr/intlayer_with_astro_vue.md +24 -28
- package/docs/fr/intlayer_with_react_router_v7.md +15 -4
- package/docs/fr/intlayer_with_solid_start.md +14 -7
- package/docs/fr/intlayer_with_svelte_kit.md +15 -4
- package/docs/fr/intlayer_with_tanstack+solid.md +15 -4
- package/docs/fr/intlayer_with_tanstack.md +13 -6
- package/docs/fr/intlayer_with_vite+lit.md +75 -3
- package/docs/fr/intlayer_with_vite+preact.md +19 -6
- package/docs/fr/intlayer_with_vite+react.md +19 -6
- package/docs/fr/intlayer_with_vite+solid.md +19 -6
- package/docs/fr/intlayer_with_vite+svelte.md +19 -6
- package/docs/fr/intlayer_with_vite+vanilla.md +19 -6
- package/docs/fr/intlayer_with_vite+vue.md +19 -6
- package/docs/fr/introduction.md +0 -1
- package/docs/fr/readme.md +0 -1
- package/docs/fr/releases/v8.md +1 -5
- package/docs/hi/intlayer_with_astro.md +15 -31
- package/docs/hi/intlayer_with_astro_lit.md +26 -33
- package/docs/hi/intlayer_with_astro_preact.md +26 -33
- package/docs/hi/intlayer_with_astro_react.md +26 -33
- package/docs/hi/intlayer_with_astro_solid.md +26 -33
- package/docs/hi/intlayer_with_astro_svelte.md +26 -33
- package/docs/hi/intlayer_with_astro_vue.md +26 -33
- package/docs/hi/intlayer_with_react_router_v7.md +20 -12
- package/docs/hi/intlayer_with_solid_start.md +14 -7
- package/docs/hi/intlayer_with_svelte_kit.md +20 -12
- package/docs/hi/intlayer_with_tanstack+solid.md +13 -2
- package/docs/hi/intlayer_with_tanstack.md +21 -17
- package/docs/hi/intlayer_with_vite+lit.md +75 -3
- package/docs/hi/intlayer_with_vite+preact.md +24 -14
- package/docs/hi/intlayer_with_vite+react.md +24 -14
- package/docs/hi/intlayer_with_vite+solid.md +24 -14
- package/docs/hi/intlayer_with_vite+svelte.md +24 -14
- package/docs/hi/intlayer_with_vite+vanilla.md +16 -3
- package/docs/hi/intlayer_with_vite+vue.md +24 -14
- package/docs/hi/introduction.md +0 -1
- package/docs/hi/readme.md +0 -1
- package/docs/hi/releases/v8.md +1 -5
- package/docs/id/intlayer_with_astro.md +12 -25
- package/docs/id/intlayer_with_astro_lit.md +23 -27
- package/docs/id/intlayer_with_astro_preact.md +23 -27
- package/docs/id/intlayer_with_astro_react.md +23 -27
- package/docs/id/intlayer_with_astro_solid.md +23 -27
- package/docs/id/intlayer_with_astro_svelte.md +23 -27
- package/docs/id/intlayer_with_astro_vue.md +23 -27
- package/docs/id/intlayer_with_react_router_v7.md +12 -1
- package/docs/id/intlayer_with_solid_start.md +14 -7
- package/docs/id/intlayer_with_svelte_kit.md +12 -1
- package/docs/id/intlayer_with_tanstack+solid.md +13 -2
- package/docs/id/intlayer_with_tanstack.md +13 -6
- package/docs/id/intlayer_with_vite+lit.md +75 -3
- package/docs/id/intlayer_with_vite+preact.md +16 -3
- package/docs/id/intlayer_with_vite+react.md +16 -3
- package/docs/id/intlayer_with_vite+solid.md +16 -3
- package/docs/id/intlayer_with_vite+svelte.md +16 -3
- package/docs/id/intlayer_with_vite+vanilla.md +16 -3
- package/docs/id/intlayer_with_vite+vue.md +16 -3
- package/docs/id/introduction.md +0 -1
- package/docs/id/readme.md +0 -1
- package/docs/id/releases/v8.md +1 -5
- package/docs/it/intlayer_with_astro.md +12 -25
- package/docs/it/intlayer_with_astro_lit.md +23 -27
- package/docs/it/intlayer_with_astro_preact.md +23 -27
- package/docs/it/intlayer_with_astro_react.md +23 -27
- package/docs/it/intlayer_with_astro_solid.md +23 -27
- package/docs/it/intlayer_with_astro_svelte.md +23 -27
- package/docs/it/intlayer_with_astro_vue.md +23 -27
- package/docs/it/intlayer_with_react_router_v7.md +12 -1
- package/docs/it/intlayer_with_solid_start.md +14 -7
- package/docs/it/intlayer_with_svelte_kit.md +12 -1
- package/docs/it/intlayer_with_tanstack+solid.md +13 -2
- package/docs/it/intlayer_with_tanstack.md +13 -6
- package/docs/it/intlayer_with_vite+lit.md +75 -3
- package/docs/it/intlayer_with_vite+preact.md +16 -3
- package/docs/it/intlayer_with_vite+react.md +16 -3
- package/docs/it/intlayer_with_vite+solid.md +16 -3
- package/docs/it/intlayer_with_vite+svelte.md +16 -3
- package/docs/it/intlayer_with_vite+vanilla.md +16 -3
- package/docs/it/intlayer_with_vite+vue.md +16 -3
- package/docs/it/introduction.md +0 -1
- package/docs/it/readme.md +0 -1
- package/docs/it/releases/v8.md +1 -5
- package/docs/ja/intlayer_with_astro.md +12 -25
- package/docs/ja/intlayer_with_astro_lit.md +23 -27
- package/docs/ja/intlayer_with_astro_preact.md +23 -27
- package/docs/ja/intlayer_with_astro_react.md +23 -27
- package/docs/ja/intlayer_with_astro_solid.md +23 -27
- package/docs/ja/intlayer_with_astro_svelte.md +23 -27
- package/docs/ja/intlayer_with_astro_vue.md +23 -27
- package/docs/ja/intlayer_with_react_router_v7.md +12 -1
- package/docs/ja/intlayer_with_solid_start.md +14 -7
- package/docs/ja/intlayer_with_svelte_kit.md +21 -15
- package/docs/ja/intlayer_with_tanstack+solid.md +13 -2
- package/docs/ja/intlayer_with_tanstack.md +13 -6
- package/docs/ja/intlayer_with_vite+lit.md +75 -3
- package/docs/ja/intlayer_with_vite+preact.md +16 -3
- package/docs/ja/intlayer_with_vite+react.md +16 -3
- package/docs/ja/intlayer_with_vite+solid.md +16 -3
- package/docs/ja/intlayer_with_vite+svelte.md +16 -3
- package/docs/ja/intlayer_with_vite+vanilla.md +16 -3
- package/docs/ja/intlayer_with_vite+vue.md +16 -3
- package/docs/ja/introduction.md +0 -1
- package/docs/ja/readme.md +0 -1
- package/docs/ja/releases/v8.md +1 -5
- package/docs/ko/intlayer_with_astro.md +6 -21
- package/docs/ko/intlayer_with_astro_lit.md +23 -27
- package/docs/ko/intlayer_with_astro_preact.md +23 -27
- package/docs/ko/intlayer_with_astro_react.md +23 -27
- package/docs/ko/intlayer_with_astro_solid.md +23 -27
- package/docs/ko/intlayer_with_astro_svelte.md +23 -27
- package/docs/ko/intlayer_with_astro_vue.md +23 -27
- package/docs/ko/intlayer_with_react_router_v7.md +12 -1
- package/docs/ko/intlayer_with_solid_start.md +14 -7
- package/docs/ko/intlayer_with_svelte_kit.md +12 -1
- package/docs/ko/intlayer_with_tanstack+solid.md +13 -2
- package/docs/ko/intlayer_with_tanstack.md +13 -6
- package/docs/ko/intlayer_with_vite+lit.md +75 -3
- package/docs/ko/intlayer_with_vite+preact.md +16 -3
- package/docs/ko/intlayer_with_vite+react.md +16 -3
- package/docs/ko/intlayer_with_vite+solid.md +26 -16
- package/docs/ko/intlayer_with_vite+svelte.md +16 -3
- package/docs/ko/intlayer_with_vite+vanilla.md +16 -3
- package/docs/ko/intlayer_with_vite+vue.md +16 -3
- package/docs/ko/introduction.md +0 -1
- package/docs/ko/readme.md +0 -1
- package/docs/ko/releases/v8.md +1 -5
- package/docs/nl/intlayer_with_vite+lit.md +75 -3
- package/docs/nl/intlayer_with_vite+vanilla.md +16 -3
- package/docs/nl/introduction.md +0 -1
- package/docs/pl/intlayer_with_astro.md +6 -21
- package/docs/pl/intlayer_with_astro_lit.md +23 -27
- package/docs/pl/intlayer_with_astro_preact.md +23 -27
- package/docs/pl/intlayer_with_astro_react.md +23 -27
- package/docs/pl/intlayer_with_astro_solid.md +23 -27
- package/docs/pl/intlayer_with_astro_svelte.md +23 -27
- package/docs/pl/intlayer_with_astro_vue.md +23 -27
- package/docs/pl/intlayer_with_react_router_v7.md +12 -1
- package/docs/pl/intlayer_with_solid_start.md +14 -7
- package/docs/pl/intlayer_with_svelte_kit.md +12 -1
- package/docs/pl/intlayer_with_tanstack+solid.md +13 -2
- package/docs/pl/intlayer_with_tanstack.md +13 -6
- package/docs/pl/intlayer_with_vite+lit.md +75 -3
- package/docs/pl/intlayer_with_vite+preact.md +16 -3
- package/docs/pl/intlayer_with_vite+react.md +16 -3
- package/docs/pl/intlayer_with_vite+solid.md +16 -3
- package/docs/pl/intlayer_with_vite+svelte.md +16 -3
- package/docs/pl/intlayer_with_vite+vanilla.md +16 -3
- package/docs/pl/intlayer_with_vite+vue.md +16 -3
- package/docs/pl/introduction.md +0 -1
- package/docs/pl/readme.md +0 -1
- package/docs/pl/releases/v8.md +1 -5
- package/docs/pt/intlayer_with_astro.md +6 -21
- package/docs/pt/intlayer_with_astro_lit.md +23 -27
- package/docs/pt/intlayer_with_astro_preact.md +23 -27
- package/docs/pt/intlayer_with_astro_react.md +23 -27
- package/docs/pt/intlayer_with_astro_solid.md +23 -27
- package/docs/pt/intlayer_with_astro_svelte.md +23 -27
- package/docs/pt/intlayer_with_astro_vue.md +23 -27
- package/docs/pt/intlayer_with_react_router_v7.md +12 -1
- package/docs/pt/intlayer_with_solid_start.md +14 -7
- package/docs/pt/intlayer_with_svelte_kit.md +12 -1
- package/docs/pt/intlayer_with_tanstack+solid.md +13 -2
- package/docs/pt/intlayer_with_tanstack.md +13 -6
- package/docs/pt/intlayer_with_vite+lit.md +75 -3
- package/docs/pt/intlayer_with_vite+preact.md +16 -3
- package/docs/pt/intlayer_with_vite+react.md +16 -3
- package/docs/pt/intlayer_with_vite+solid.md +16 -3
- package/docs/pt/intlayer_with_vite+svelte.md +16 -3
- package/docs/pt/intlayer_with_vite+vanilla.md +16 -3
- package/docs/pt/intlayer_with_vite+vue.md +16 -3
- package/docs/pt/introduction.md +0 -1
- package/docs/pt/readme.md +0 -1
- package/docs/pt/releases/v8.md +1 -5
- package/docs/ru/intlayer_with_astro.md +12 -25
- package/docs/ru/intlayer_with_astro_lit.md +23 -27
- package/docs/ru/intlayer_with_astro_preact.md +23 -27
- package/docs/ru/intlayer_with_astro_react.md +23 -27
- package/docs/ru/intlayer_with_astro_solid.md +23 -27
- package/docs/ru/intlayer_with_astro_svelte.md +23 -27
- package/docs/ru/intlayer_with_astro_vue.md +23 -27
- package/docs/ru/intlayer_with_react_router_v7.md +12 -1
- package/docs/ru/intlayer_with_solid_start.md +14 -7
- package/docs/ru/intlayer_with_svelte_kit.md +12 -1
- package/docs/ru/intlayer_with_tanstack+solid.md +13 -2
- package/docs/ru/intlayer_with_tanstack.md +13 -6
- package/docs/ru/intlayer_with_vite+lit.md +75 -3
- package/docs/ru/intlayer_with_vite+preact.md +16 -3
- package/docs/ru/intlayer_with_vite+react.md +16 -3
- package/docs/ru/intlayer_with_vite+solid.md +16 -3
- package/docs/ru/intlayer_with_vite+svelte.md +16 -3
- package/docs/ru/intlayer_with_vite+vanilla.md +16 -3
- package/docs/ru/intlayer_with_vite+vue.md +16 -3
- package/docs/ru/introduction.md +0 -1
- package/docs/ru/readme.md +0 -1
- package/docs/ru/releases/v8.md +1 -5
- package/docs/tr/intlayer_with_astro.md +12 -25
- package/docs/tr/intlayer_with_astro_lit.md +24 -28
- package/docs/tr/intlayer_with_astro_preact.md +24 -28
- package/docs/tr/intlayer_with_astro_react.md +24 -28
- package/docs/tr/intlayer_with_astro_solid.md +24 -28
- package/docs/tr/intlayer_with_astro_svelte.md +24 -28
- package/docs/tr/intlayer_with_astro_vue.md +24 -28
- package/docs/tr/intlayer_with_react_router_v7.md +12 -1
- package/docs/tr/intlayer_with_solid_start.md +14 -7
- package/docs/tr/intlayer_with_svelte_kit.md +12 -1
- package/docs/tr/intlayer_with_tanstack+solid.md +13 -2
- package/docs/tr/intlayer_with_tanstack.md +13 -6
- package/docs/tr/intlayer_with_vite+lit.md +75 -3
- package/docs/tr/intlayer_with_vite+preact.md +16 -3
- package/docs/tr/intlayer_with_vite+react.md +16 -3
- package/docs/tr/intlayer_with_vite+solid.md +16 -3
- package/docs/tr/intlayer_with_vite+svelte.md +16 -3
- package/docs/tr/intlayer_with_vite+vanilla.md +16 -3
- package/docs/tr/intlayer_with_vite+vue.md +16 -3
- package/docs/tr/introduction.md +0 -1
- package/docs/tr/readme.md +0 -1
- package/docs/tr/releases/v8.md +1 -5
- package/docs/uk/intlayer_with_astro.md +12 -25
- package/docs/uk/intlayer_with_astro_lit.md +23 -27
- package/docs/uk/intlayer_with_astro_preact.md +23 -27
- package/docs/uk/intlayer_with_astro_react.md +23 -27
- package/docs/uk/intlayer_with_astro_solid.md +23 -27
- package/docs/uk/intlayer_with_astro_svelte.md +23 -27
- package/docs/uk/intlayer_with_astro_vue.md +23 -27
- package/docs/uk/intlayer_with_react_router_v7.md +12 -1
- package/docs/uk/intlayer_with_solid_start.md +14 -7
- package/docs/uk/intlayer_with_svelte_kit.md +12 -1
- package/docs/uk/intlayer_with_tanstack+solid.md +13 -2
- package/docs/uk/intlayer_with_tanstack.md +13 -6
- package/docs/uk/intlayer_with_vite+lit.md +75 -3
- package/docs/uk/intlayer_with_vite+preact.md +16 -3
- package/docs/uk/intlayer_with_vite+react.md +16 -3
- package/docs/uk/intlayer_with_vite+solid.md +16 -3
- package/docs/uk/intlayer_with_vite+svelte.md +16 -3
- package/docs/uk/intlayer_with_vite+vanilla.md +16 -3
- package/docs/uk/intlayer_with_vite+vue.md +16 -3
- package/docs/uk/introduction.md +0 -1
- package/docs/uk/readme.md +0 -1
- package/docs/uk/releases/v8.md +1 -5
- package/docs/ur/intlayer_with_vite+lit.md +75 -3
- package/docs/ur/intlayer_with_vite+vanilla.md +16 -3
- package/docs/ur/introduction.md +0 -1
- package/docs/vi/intlayer_with_astro.md +12 -25
- package/docs/vi/intlayer_with_astro_lit.md +23 -27
- package/docs/vi/intlayer_with_astro_preact.md +23 -27
- package/docs/vi/intlayer_with_astro_react.md +23 -27
- package/docs/vi/intlayer_with_astro_solid.md +23 -27
- package/docs/vi/intlayer_with_astro_svelte.md +23 -27
- package/docs/vi/intlayer_with_astro_vue.md +23 -27
- package/docs/vi/intlayer_with_react_router_v7.md +12 -1
- package/docs/vi/intlayer_with_solid_start.md +14 -7
- package/docs/vi/intlayer_with_svelte_kit.md +12 -1
- package/docs/vi/intlayer_with_tanstack+solid.md +13 -2
- package/docs/vi/intlayer_with_tanstack.md +13 -6
- package/docs/vi/intlayer_with_vite+lit.md +75 -3
- package/docs/vi/intlayer_with_vite+preact.md +16 -3
- package/docs/vi/intlayer_with_vite+react.md +16 -3
- package/docs/vi/intlayer_with_vite+solid.md +16 -3
- package/docs/vi/intlayer_with_vite+svelte.md +16 -3
- package/docs/vi/intlayer_with_vite+vanilla.md +16 -3
- package/docs/vi/intlayer_with_vite+vue.md +16 -3
- package/docs/vi/introduction.md +0 -1
- package/docs/vi/readme.md +0 -1
- package/docs/vi/releases/v8.md +1 -5
- package/docs/zh/intlayer_with_astro.md +6 -21
- package/docs/zh/intlayer_with_astro_lit.md +23 -27
- package/docs/zh/intlayer_with_astro_preact.md +23 -27
- package/docs/zh/intlayer_with_astro_react.md +23 -27
- package/docs/zh/intlayer_with_astro_solid.md +23 -27
- package/docs/zh/intlayer_with_astro_svelte.md +23 -27
- package/docs/zh/intlayer_with_astro_vue.md +23 -27
- package/docs/zh/intlayer_with_react_router_v7.md +12 -1
- package/docs/zh/intlayer_with_solid_start.md +14 -7
- package/docs/zh/intlayer_with_svelte_kit.md +12 -1
- package/docs/zh/intlayer_with_tanstack+solid.md +13 -2
- package/docs/zh/intlayer_with_tanstack.md +13 -6
- package/docs/zh/intlayer_with_vite+lit.md +75 -3
- package/docs/zh/intlayer_with_vite+preact.md +16 -3
- package/docs/zh/intlayer_with_vite+react.md +16 -3
- package/docs/zh/intlayer_with_vite+solid.md +16 -3
- package/docs/zh/intlayer_with_vite+svelte.md +16 -3
- package/docs/zh/intlayer_with_vite+vanilla.md +16 -3
- package/docs/zh/intlayer_with_vite+vue.md +16 -3
- package/docs/zh/introduction.md +0 -1
- package/docs/zh/readme.md +0 -1
- package/docs/zh/releases/v8.md +1 -5
- package/docs/zh-TW/introduction.md +0 -1
- package/package.json +6 -6
- package/docs/ar/intlayer_with_astro_vanilla.md +0 -709
- package/docs/de/intlayer_with_astro_vanilla.md +0 -705
- package/docs/en-GB/intlayer_with_astro_vanilla.md +0 -709
- package/docs/es/intlayer_with_astro_vanilla.md +0 -701
- package/docs/fr/intlayer_with_astro_vanilla.md +0 -701
- package/docs/hi/intlayer_with_astro_vanilla.md +0 -720
- package/docs/id/intlayer_with_astro_vanilla.md +0 -705
- package/docs/it/intlayer_with_astro_vanilla.md +0 -705
- package/docs/ja/intlayer_with_astro_vanilla.md +0 -708
- package/docs/ko/intlayer_with_astro_vanilla.md +0 -720
- package/docs/pl/intlayer_with_astro_vanilla.md +0 -705
- package/docs/pt/intlayer_with_astro_vanilla.md +0 -705
- package/docs/ru/intlayer_with_astro_vanilla.md +0 -716
- package/docs/tr/intlayer_with_astro_vanilla.md +0 -705
- package/docs/uk/intlayer_with_astro_vanilla.md +0 -705
- package/docs/vi/intlayer_with_astro_vanilla.md +0 -705
- package/docs/zh/intlayer_with_astro_vanilla.md +0 -704
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2026-04-24
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "Astro + Svelte i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) Astro + Svelte 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
|
|
6
6
|
keywords:
|
|
@@ -19,6 +19,9 @@ slugs:
|
|
|
19
19
|
applicationTemplate: https://github.com/aymericzip/intlayer-astro-template
|
|
20
20
|
applicationShowcase: https://intlayer-astro-template.vercel.app
|
|
21
21
|
history:
|
|
22
|
+
- version: 9.5.5
|
|
23
|
+
date: 2026-09-19
|
|
24
|
+
changes: "在 Astro 页面中使用 astro-intlayer 的 useIntlayer / useLocale 钩子"
|
|
22
25
|
- version: 8.9.0
|
|
23
26
|
date: 2026-05-04
|
|
24
27
|
changes: "更新 Solid useIntlayer API 用法以直接访问属性"
|
|
@@ -150,7 +153,7 @@ bun add intlayer astro-intlayer svelte svelte-intlayer @astrojs/svelte
|
|
|
150
153
|
核心软件包,提供用于配置管理、翻译、[内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)、编译和 [CLI 命令](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/cli/index.md)的国际化工具。
|
|
151
154
|
|
|
152
155
|
- **astro-intlayer**
|
|
153
|
-
|
|
156
|
+
包含用于将 Intlayer 与 [Vite 打包器](https://vite.dev/guide/why.html#why-bundle-for-production) 集成的 Astro 集成插件、将每个请求的语言环境解析到 `Astro.locals.intlayer` 的中间件,以及 `useIntlayer` / `useDictionary` / `useLocale` 钩子。相同的导入路径在 `.astro` frontmatter 中解析为服务端实现,在 `<script>` 块中解析为客户端实现(由 `vanilla-intlayer` 支持)。
|
|
154
157
|
|
|
155
158
|
- **svelte**
|
|
156
159
|
核心 Svelte 软件包。
|
|
@@ -238,19 +241,21 @@ export default appContent;
|
|
|
238
241
|
</Step>
|
|
239
242
|
<Step number={5} title="在 Astro 中使用内容">
|
|
240
243
|
|
|
241
|
-
|
|
244
|
+
使用 `astro-intlayer` 导出的钩子在 `.astro` 文件中使用你的字典。它们与 `react-intlayer` 具有相同的签名:`useIntlayer("key")` 返回字典内容,`useLocale()` 返回当前语言环境,无需传递参数。
|
|
245
|
+
|
|
246
|
+
语言环境来自 `astro-intlayer` 中间件,集成会自动在你的 `src/middleware.ts` 之前注册该中间件。它会依次从 URL 前缀、客户端持久化的语言环境(Cookie 或标头)、`Accept-Language` 解析每个请求的语言环境,并将其存储在 `Astro.locals.intlayer` 中。预渲染页面仅使用 URL,因为它们只为每个访客渲染一次。
|
|
247
|
+
|
|
248
|
+
您还应在每个页面添加 SEO 元数据(如 hreflang 和规范链接),并为客户端交互内容引入 Svelte 岛。
|
|
242
249
|
|
|
243
250
|
```astro fileName="src/pages/[...locale]/index.astro"
|
|
244
251
|
---
|
|
252
|
+
import { useIntlayer, useLocale } from "astro-intlayer";
|
|
245
253
|
import {
|
|
246
|
-
getIntlayer,
|
|
247
|
-
getLocaleFromPath,
|
|
248
254
|
getLocalizedUrl,
|
|
249
|
-
getHTMLTextDir,
|
|
250
255
|
getPrefix,
|
|
251
256
|
localeMap,
|
|
252
257
|
defaultLocale,
|
|
253
|
-
|
|
258
|
+
getHTMLTextDir,
|
|
254
259
|
} from "intlayer";
|
|
255
260
|
import SvelteIsland from "../../components/svelte/SvelteIsland.svelte";
|
|
256
261
|
|
|
@@ -260,8 +265,11 @@ export const getStaticPaths = () => {
|
|
|
260
265
|
}));
|
|
261
266
|
};
|
|
262
267
|
|
|
263
|
-
|
|
264
|
-
const {
|
|
268
|
+
// 中间件解析的语言环境(例如 /zh/about -> 'zh')
|
|
269
|
+
const { locale } = useLocale();
|
|
270
|
+
|
|
271
|
+
// 该语言环境的 'app' 字典内容
|
|
272
|
+
const { title } = useIntlayer("app");
|
|
265
273
|
---
|
|
266
274
|
|
|
267
275
|
<!doctype html>
|
|
@@ -317,6 +325,8 @@ const { title } = getIntlayer("app", locale);
|
|
|
317
325
|
> <img src={String(content.image.src)} alt={String(content.image)} />
|
|
318
326
|
> ```
|
|
319
327
|
|
|
328
|
+
> `Astro.locals.intlayer` 还向你自己的中间件和端点公开 `locale`、`defaultLocale` 和 `availableLocales`。将语言环境或选择器作为第二个参数传递(`useIntlayer("app", "fr")`、`useIntlayer("faq", { item: 2 })`)可在单次调用中覆盖请求语言环境。
|
|
329
|
+
|
|
320
330
|
> **关于路由设置的说明:**
|
|
321
331
|
> 您使用的目录结构取决于 `intlayer.config.ts` 中的 `middleware.routing` 设置:
|
|
322
332
|
>
|
|
@@ -437,10 +447,10 @@ const pathList: SitemapUrlEntry[] = [
|
|
|
437
447
|
{ path: "/about", changefreq: "monthly", priority: 0.7 },
|
|
438
448
|
];
|
|
439
449
|
|
|
440
|
-
const SITE_URL = import.meta.env.SITE ?? "http://localhost:4321";
|
|
441
|
-
|
|
442
450
|
export const GET: APIRoute = async ({ site }) => {
|
|
443
|
-
const xmlOutput = generateSitemap(pathList, {
|
|
451
|
+
const xmlOutput = generateSitemap(pathList, {
|
|
452
|
+
siteUrl: "https://example.com",
|
|
453
|
+
});
|
|
444
454
|
|
|
445
455
|
return new Response(xmlOutput, {
|
|
446
456
|
headers: { "Content-Type": "application/xml" },
|
|
@@ -540,21 +550,7 @@ bun x intlayer extract
|
|
|
540
550
|
</Tab>
|
|
541
551
|
<Tab value='Babel 编译器'>
|
|
542
552
|
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
546
|
-
|
|
547
|
-
```ts fileName="vite.config.ts"
|
|
548
|
-
import { defineConfig } from "vite";
|
|
549
|
-
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
550
|
-
|
|
551
|
-
export default defineConfig({
|
|
552
|
-
plugins: [
|
|
553
|
-
intlayer(),
|
|
554
|
-
intlayerCompiler(), // Adds the compiler plugin
|
|
555
|
-
],
|
|
556
|
-
});
|
|
557
|
-
```
|
|
553
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
558
554
|
|
|
559
555
|
```bash packageManager="npm"
|
|
560
556
|
npm run build # 或 npm run dev
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2026-04-24
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "Astro + Vue i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) Astro + Vue 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
|
|
6
6
|
keywords:
|
|
@@ -19,6 +19,9 @@ slugs:
|
|
|
19
19
|
applicationTemplate: https://github.com/aymericzip/intlayer-astro-template
|
|
20
20
|
applicationShowcase: https://intlayer-astro-template.vercel.app
|
|
21
21
|
history:
|
|
22
|
+
- version: 9.5.5
|
|
23
|
+
date: 2026-09-19
|
|
24
|
+
changes: "在 Astro 页面中使用 astro-intlayer 的 useIntlayer / useLocale 钩子"
|
|
22
25
|
- version: 8.9.0
|
|
23
26
|
date: 2026-05-04
|
|
24
27
|
changes: "更新 Solid useIntlayer API 用法以直接访问属性"
|
|
@@ -150,7 +153,7 @@ bun add intlayer astro-intlayer vue vue-intlayer @astrojs/vue
|
|
|
150
153
|
核心软件包,提供用于配置管理、翻译、[内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)、编译和 [CLI 命令](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/cli/index.md)的国际化工具。
|
|
151
154
|
|
|
152
155
|
- **astro-intlayer**
|
|
153
|
-
|
|
156
|
+
包含用于将 Intlayer 与 [Vite 打包器](https://vite.dev/guide/why.html#why-bundle-for-production) 集成的 Astro 集成插件、将每个请求的语言环境解析到 `Astro.locals.intlayer` 的中间件,以及 `useIntlayer` / `useDictionary` / `useLocale` 钩子。相同的导入路径在 `.astro` frontmatter 中解析为服务端实现,在 `<script>` 块中解析为客户端实现(由 `vanilla-intlayer` 支持)。
|
|
154
157
|
|
|
155
158
|
- **vue**
|
|
156
159
|
核心 Vue 软件包。
|
|
@@ -238,19 +241,21 @@ export default appContent;
|
|
|
238
241
|
</Step>
|
|
239
242
|
<Step number={5} title="在 Astro 中使用内容">
|
|
240
243
|
|
|
241
|
-
|
|
244
|
+
使用 `astro-intlayer` 导出的钩子在 `.astro` 文件中使用你的字典。它们与 `react-intlayer` 具有相同的签名:`useIntlayer("key")` 返回字典内容,`useLocale()` 返回当前语言环境,无需传递参数。
|
|
245
|
+
|
|
246
|
+
语言环境来自 `astro-intlayer` 中间件,集成会自动在你的 `src/middleware.ts` 之前注册该中间件。它会依次从 URL 前缀、客户端持久化的语言环境(Cookie 或标头)、`Accept-Language` 解析每个请求的语言环境,并将其存储在 `Astro.locals.intlayer` 中。预渲染页面仅使用 URL,因为它们只为每个访客渲染一次。
|
|
247
|
+
|
|
248
|
+
您还应在每个页面添加 SEO 元数据(如 hreflang 和规范链接),并为客户端交互内容引入 Vue 岛。
|
|
242
249
|
|
|
243
250
|
```astro fileName="src/pages/[...locale]/index.astro"
|
|
244
251
|
---
|
|
252
|
+
import { useIntlayer, useLocale } from "astro-intlayer";
|
|
245
253
|
import {
|
|
246
|
-
getIntlayer,
|
|
247
|
-
getLocaleFromPath,
|
|
248
254
|
getLocalizedUrl,
|
|
249
|
-
getHTMLTextDir,
|
|
250
255
|
getPrefix,
|
|
251
256
|
localeMap,
|
|
252
257
|
defaultLocale,
|
|
253
|
-
|
|
258
|
+
getHTMLTextDir,
|
|
254
259
|
} from "intlayer";
|
|
255
260
|
import VueIsland from "../../components/vue/VueIsland.vue";
|
|
256
261
|
|
|
@@ -260,8 +265,11 @@ export const getStaticPaths = () => {
|
|
|
260
265
|
}));
|
|
261
266
|
};
|
|
262
267
|
|
|
263
|
-
|
|
264
|
-
const {
|
|
268
|
+
// 中间件解析的语言环境(例如 /zh/about -> 'zh')
|
|
269
|
+
const { locale } = useLocale();
|
|
270
|
+
|
|
271
|
+
// 该语言环境的 'app' 字典内容
|
|
272
|
+
const { title } = useIntlayer("app");
|
|
265
273
|
---
|
|
266
274
|
|
|
267
275
|
<!doctype html>
|
|
@@ -309,6 +317,8 @@ const { title } = getIntlayer("app", locale);
|
|
|
309
317
|
</html>
|
|
310
318
|
```
|
|
311
319
|
|
|
320
|
+
> `Astro.locals.intlayer` 还向你自己的中间件和端点公开 `locale`、`defaultLocale` 和 `availableLocales`。将语言环境或选择器作为第二个参数传递(`useIntlayer("app", "fr")`、`useIntlayer("faq", { item: 2 })`)可在单次调用中覆盖请求语言环境。
|
|
321
|
+
|
|
312
322
|
> **关于路由设置的说明:**
|
|
313
323
|
> 您使用的目录结构取决于 `intlayer.config.ts` 中的 `middleware.routing` 设置:
|
|
314
324
|
>
|
|
@@ -447,10 +457,10 @@ const pathList: SitemapUrlEntry[] = [
|
|
|
447
457
|
{ path: "/about", changefreq: "monthly", priority: 0.7 },
|
|
448
458
|
];
|
|
449
459
|
|
|
450
|
-
const SITE_URL = import.meta.env.SITE ?? "http://localhost:4321";
|
|
451
|
-
|
|
452
460
|
export const GET: APIRoute = async ({ site }) => {
|
|
453
|
-
const xmlOutput = generateSitemap(pathList, {
|
|
461
|
+
const xmlOutput = generateSitemap(pathList, {
|
|
462
|
+
siteUrl: "https://example.com",
|
|
463
|
+
});
|
|
454
464
|
|
|
455
465
|
return new Response(xmlOutput, {
|
|
456
466
|
headers: { "Content-Type": "application/xml" },
|
|
@@ -550,21 +560,7 @@ bun x intlayer extract
|
|
|
550
560
|
</Tab>
|
|
551
561
|
<Tab value='Babel 编译器'>
|
|
552
562
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
556
|
-
|
|
557
|
-
```ts fileName="vite.config.ts"
|
|
558
|
-
import { defineConfig } from "vite";
|
|
559
|
-
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
560
|
-
|
|
561
|
-
export default defineConfig({
|
|
562
|
-
plugins: [
|
|
563
|
-
intlayer(),
|
|
564
|
-
intlayerCompiler(), // Adds the compiler plugin
|
|
565
|
-
],
|
|
566
|
-
});
|
|
567
|
-
```
|
|
563
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
568
564
|
|
|
569
565
|
```bash packageManager="npm"
|
|
570
566
|
npm run build # 或 npm run dev
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-09-04
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "React Router v7 i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) React Router v7 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
|
|
6
6
|
keywords:
|
|
@@ -900,8 +900,14 @@ bun x intlayer extract
|
|
|
900
900
|
</Tab>
|
|
901
901
|
<Tab value='Babel 编译器'>
|
|
902
902
|
|
|
903
|
+
<Tabs>
|
|
904
|
+
<Tab value='intlayer >= 9'>
|
|
905
|
+
|
|
903
906
|
> 自 v9 起,`intlayerCompiler` 已包含在 `intlayer` 插件中。因此你不需要手动添加它。
|
|
904
907
|
|
|
908
|
+
</Tab>
|
|
909
|
+
<Tab value='intlayer < 9'>
|
|
910
|
+
|
|
905
911
|
更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
906
912
|
|
|
907
913
|
```ts fileName="vite.config.ts"
|
|
@@ -916,6 +922,11 @@ export default defineConfig({
|
|
|
916
922
|
});
|
|
917
923
|
```
|
|
918
924
|
|
|
925
|
+
</Tab>
|
|
926
|
+
</Tabs>
|
|
927
|
+
|
|
928
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
929
|
+
|
|
919
930
|
```bash packageManager="npm"
|
|
920
931
|
npm run build # 或 npm run dev
|
|
921
932
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-08-06
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "Solid Start i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) SolidStart 应用的指南。包含服务端渲染的语言路由、hreflang、sitemap 和 AI 辅助翻译。"
|
|
6
6
|
keywords:
|
|
@@ -747,15 +747,13 @@ SolidStart 将导出 HTTP 方法的文件转换为 API 路由,并从路径中
|
|
|
747
747
|
import type { APIEvent } from "@solidjs/start/server";
|
|
748
748
|
import { generateSitemap } from "intlayer";
|
|
749
749
|
|
|
750
|
-
const SITE_URL = process.env.SITE_URL ?? "http://localhost:3000";
|
|
751
|
-
|
|
752
750
|
export const GET = (_event: APIEvent) => {
|
|
753
751
|
const sitemap = generateSitemap(
|
|
754
752
|
[
|
|
755
753
|
{ path: "/", changefreq: "daily", priority: 1.0 },
|
|
756
754
|
{ path: "/about", changefreq: "monthly", priority: 0.8 },
|
|
757
755
|
],
|
|
758
|
-
{ siteUrl:
|
|
756
|
+
{ siteUrl: "https://example.com" }
|
|
759
757
|
);
|
|
760
758
|
|
|
761
759
|
return new Response(sitemap, {
|
|
@@ -789,8 +787,6 @@ export const GET = (_event: APIEvent) => {
|
|
|
789
787
|
```typescript fileName="src/routes/robots.txt.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
790
788
|
import { getMultilingualUrls } from "intlayer";
|
|
791
789
|
|
|
792
|
-
const SITE_URL = process.env.SITE_URL ?? "http://localhost:3000";
|
|
793
|
-
|
|
794
790
|
const disallowedPaths = ["/admin", "/private"].flatMap((path) =>
|
|
795
791
|
Object.values(getMultilingualUrls(path))
|
|
796
792
|
);
|
|
@@ -802,7 +798,7 @@ export const GET = () =>
|
|
|
802
798
|
"Allow: /",
|
|
803
799
|
...disallowedPaths.map((path) => `Disallow: ${path}`),
|
|
804
800
|
"",
|
|
805
|
-
`Sitemap:
|
|
801
|
+
`Sitemap: https://example.com/sitemap.xml`,
|
|
806
802
|
].join("\n"),
|
|
807
803
|
{ headers: { "Content-Type": "text/plain" } }
|
|
808
804
|
);
|
|
@@ -921,8 +917,14 @@ bun x intlayer extract
|
|
|
921
917
|
</Tab>
|
|
922
918
|
<Tab value='Babel 编译器'>
|
|
923
919
|
|
|
920
|
+
<Tabs>
|
|
921
|
+
<Tab value='intlayer >= 9'>
|
|
922
|
+
|
|
924
923
|
> 从 v9 开始,`intlayerCompiler` 已包含在 `intlayer` 插件中。因此你无需手动添加它。
|
|
925
924
|
|
|
925
|
+
</Tab>
|
|
926
|
+
<Tab value='intlayer < 9'>
|
|
927
|
+
|
|
926
928
|
更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
927
929
|
|
|
928
930
|
```ts fileName="vite.config.ts"
|
|
@@ -941,6 +943,11 @@ export default defineConfig({
|
|
|
941
943
|
});
|
|
942
944
|
```
|
|
943
945
|
|
|
946
|
+
</Tab>
|
|
947
|
+
</Tabs>
|
|
948
|
+
|
|
949
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
950
|
+
|
|
944
951
|
```bash packageManager="npm"
|
|
945
952
|
npm run build # 或 npm run dev
|
|
946
953
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-11-20
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "SvelteKit i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) SvelteKit 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
|
|
6
6
|
keywords:
|
|
@@ -713,8 +713,14 @@ bun x intlayer extract
|
|
|
713
713
|
</Tab>
|
|
714
714
|
<Tab value='Babel 编译器'>
|
|
715
715
|
|
|
716
|
+
<Tabs>
|
|
717
|
+
<Tab value='intlayer >= 9'>
|
|
718
|
+
|
|
716
719
|
> 自 v9 起,`intlayerCompiler` 包含在 `intlayer` 插件中。所以你不需要手动添加它。
|
|
717
720
|
|
|
721
|
+
</Tab>
|
|
722
|
+
<Tab value='intlayer < 9'>
|
|
723
|
+
|
|
718
724
|
更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
719
725
|
|
|
720
726
|
```ts fileName="vite.config.ts"
|
|
@@ -729,6 +735,11 @@ export default defineConfig({
|
|
|
729
735
|
});
|
|
730
736
|
```
|
|
731
737
|
|
|
738
|
+
</Tab>
|
|
739
|
+
</Tabs>
|
|
740
|
+
|
|
741
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
742
|
+
|
|
732
743
|
```bash packageManager="npm"
|
|
733
744
|
npm run build # 或 npm run dev
|
|
734
745
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-03-25
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "TanStack Start + Solid i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) TanStack Start + Solid 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
|
|
6
6
|
keywords:
|
|
@@ -993,8 +993,14 @@ bun x intlayer extract
|
|
|
993
993
|
</Tab>
|
|
994
994
|
<Tab value='Babel 编译器'>
|
|
995
995
|
|
|
996
|
+
<Tabs>
|
|
997
|
+
<Tab value='intlayer >= 9'>
|
|
998
|
+
|
|
996
999
|
> 从 v9 开始,`intlayerCompiler` 已包含在 `intlayer` 插件中。所以你不需要手动添加它。
|
|
997
1000
|
|
|
1001
|
+
</Tab>
|
|
1002
|
+
<Tab value='intlayer < 9'>
|
|
1003
|
+
|
|
998
1004
|
更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
999
1005
|
|
|
1000
1006
|
```ts fileName="vite.config.ts"
|
|
@@ -1020,6 +1026,11 @@ export default defineConfig({
|
|
|
1020
1026
|
});
|
|
1021
1027
|
```
|
|
1022
1028
|
|
|
1029
|
+
</Tab>
|
|
1030
|
+
</Tabs>
|
|
1031
|
+
|
|
1032
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
1033
|
+
|
|
1023
1034
|
```bash packageManager="npm"
|
|
1024
1035
|
npm run build # 或 npm run dev
|
|
1025
1036
|
```
|
|
@@ -1099,7 +1110,7 @@ export const Route = createFileRoute("/sitemap.xml")({
|
|
|
1099
1110
|
{ path: "/", changefreq: "daily", priority: 1.0 },
|
|
1100
1111
|
{ path: "/about", changefreq: "monthly", priority: 0.8 },
|
|
1101
1112
|
],
|
|
1102
|
-
{ siteUrl:
|
|
1113
|
+
{ siteUrl: "https://example.com" }
|
|
1103
1114
|
);
|
|
1104
1115
|
|
|
1105
1116
|
return new Response(sitemap, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-09-09
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "TanStack Start i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) TanStack Start 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
|
|
6
6
|
keywords:
|
|
@@ -1077,8 +1077,14 @@ bun x intlayer extract
|
|
|
1077
1077
|
</Tab>
|
|
1078
1078
|
<Tab value="Babel compiler">
|
|
1079
1079
|
|
|
1080
|
+
<Tabs>
|
|
1081
|
+
<Tab value='intlayer >= 9'>
|
|
1082
|
+
|
|
1080
1083
|
> 从 v9 起,`intlayerCompiler` 包含在 `intlayer` 插件中。所以你不需要手动添加它。
|
|
1081
1084
|
|
|
1085
|
+
</Tab>
|
|
1086
|
+
<Tab value='intlayer < 9'>
|
|
1087
|
+
|
|
1082
1088
|
更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
1083
1089
|
|
|
1084
1090
|
```ts fileName="vite.config.ts"
|
|
@@ -1093,6 +1099,11 @@ export default defineConfig({
|
|
|
1093
1099
|
});
|
|
1094
1100
|
```
|
|
1095
1101
|
|
|
1102
|
+
</Tab>
|
|
1103
|
+
</Tabs>
|
|
1104
|
+
|
|
1105
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
1106
|
+
|
|
1096
1107
|
```bash packageManager="npm"
|
|
1097
1108
|
npm run build # 或 npm run dev
|
|
1098
1109
|
```
|
|
@@ -1161,10 +1172,6 @@ export default defineConfig({
|
|
|
1161
1172
|
import { createFileRoute } from "@tanstack/react-router";
|
|
1162
1173
|
import { generateSitemap } from "intlayer";
|
|
1163
1174
|
|
|
1164
|
-
const SITE_URL = (
|
|
1165
|
-
import.meta.env.VITE_SITE_URL ?? "http://localhost:3000"
|
|
1166
|
-
).replace(/\/$/, "");
|
|
1167
|
-
|
|
1168
1175
|
export const Route = createFileRoute("/sitemap.xml")({
|
|
1169
1176
|
server: {
|
|
1170
1177
|
handlers: {
|
|
@@ -1174,7 +1181,7 @@ export const Route = createFileRoute("/sitemap.xml")({
|
|
|
1174
1181
|
{ path: "/", changefreq: "daily", priority: 1.0 },
|
|
1175
1182
|
{ path: "/about", changefreq: "monthly", priority: 0.8 },
|
|
1176
1183
|
],
|
|
1177
|
-
{ siteUrl:
|
|
1184
|
+
{ siteUrl: "https://example.com" }
|
|
1178
1185
|
);
|
|
1179
1186
|
|
|
1180
1187
|
return new Response(sitemap, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2026-03-23
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "Vite + Lit i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) Vite + Lit 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
|
|
6
6
|
keywords:
|
|
@@ -618,6 +618,76 @@ const config: IntlayerConfig = {
|
|
|
618
618
|
export default config;
|
|
619
619
|
```
|
|
620
620
|
|
|
621
|
+
<Tabs>
|
|
622
|
+
<Tab value='Extract command'>
|
|
623
|
+
|
|
624
|
+
运行提取器来转换你的组件并提取内容
|
|
625
|
+
|
|
626
|
+
```bash packageManager="npm"
|
|
627
|
+
npx intlayer extract
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
```bash packageManager="pnpm"
|
|
631
|
+
pnpm intlayer extract
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
```bash packageManager="yarn"
|
|
635
|
+
yarn intlayer extract
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
```bash packageManager="bun"
|
|
639
|
+
bun x intlayer extract
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
</Tab>
|
|
643
|
+
<Tab value='Babel compiler'>
|
|
644
|
+
|
|
645
|
+
<Tabs>
|
|
646
|
+
<Tab value='intlayer >= 9'>
|
|
647
|
+
|
|
648
|
+
> 从 v9 开始,`intlayerCompiler` 包含在 `intlayer` 插件中。所以你不需要手动添加它。
|
|
649
|
+
|
|
650
|
+
</Tab>
|
|
651
|
+
<Tab value='intlayer < 9'>
|
|
652
|
+
|
|
653
|
+
更新你的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
654
|
+
|
|
655
|
+
```ts fileName="vite.config.ts"
|
|
656
|
+
import { defineConfig } from "vite";
|
|
657
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
658
|
+
|
|
659
|
+
export default defineConfig({
|
|
660
|
+
plugins: [
|
|
661
|
+
intlayer(),
|
|
662
|
+
intlayerCompiler(), // 添加编译器插件
|
|
663
|
+
],
|
|
664
|
+
});
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
</Tab>
|
|
668
|
+
</Tabs>
|
|
669
|
+
|
|
670
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
671
|
+
|
|
672
|
+
```bash packageManager="npm"
|
|
673
|
+
npm run build # 或 npm run dev
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
```bash packageManager="pnpm"
|
|
677
|
+
pnpm run build # 或 pnpm run dev
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
```bash packageManager="yarn"
|
|
681
|
+
yarn build # 或 yarn dev
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
```bash packageManager="bun"
|
|
685
|
+
bun run build # 或 bun run dev
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
</Tab>
|
|
689
|
+
</Tabs>
|
|
690
|
+
|
|
621
691
|
</Step>
|
|
622
692
|
|
|
623
693
|
</Steps>
|
|
@@ -656,7 +726,9 @@ const pathList = [
|
|
|
656
726
|
{ path: "/about", changefreq: "monthly", priority: 0.7 },
|
|
657
727
|
];
|
|
658
728
|
|
|
659
|
-
const sitemapXml = generateSitemap(pathList, {
|
|
729
|
+
const sitemapXml = generateSitemap(pathList, {
|
|
730
|
+
siteUrl: "https://example.com",
|
|
731
|
+
});
|
|
660
732
|
fs.writeFileSync(path.join(__dirname, "public", "sitemap.xml"), sitemapXml);
|
|
661
733
|
|
|
662
734
|
const getAllMultilingualUrls = (urls) =>
|
|
@@ -669,7 +741,7 @@ const robotsTxt = [
|
|
|
669
741
|
"Allow: /",
|
|
670
742
|
...disallowedPaths.map((path) => `Disallow: ${path}`),
|
|
671
743
|
"",
|
|
672
|
-
`Sitemap:
|
|
744
|
+
`Sitemap: https://example.com/sitemap.xml`,
|
|
673
745
|
].join("\n");
|
|
674
746
|
|
|
675
747
|
fs.writeFileSync(path.join(__dirname, "public", "robots.txt"), robotsTxt);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-04-18
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "Vite + Preact i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) Vite + Preact 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
|
|
6
6
|
keywords:
|
|
@@ -887,8 +887,14 @@ bun x intlayer extract
|
|
|
887
887
|
</Tab>
|
|
888
888
|
<Tab value='Babel compiler'>
|
|
889
889
|
|
|
890
|
+
<Tabs>
|
|
891
|
+
<Tab value='intlayer >= 9'>
|
|
892
|
+
|
|
890
893
|
> 从 v9 起,`intlayerCompiler` 已包含在 `intlayer` 插件中。所以您不需要手动添加它。
|
|
891
894
|
|
|
895
|
+
</Tab>
|
|
896
|
+
<Tab value='intlayer < 9'>
|
|
897
|
+
|
|
892
898
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
893
899
|
|
|
894
900
|
```ts fileName="vite.config.ts"
|
|
@@ -903,6 +909,11 @@ export default defineConfig({
|
|
|
903
909
|
});
|
|
904
910
|
```
|
|
905
911
|
|
|
912
|
+
</Tab>
|
|
913
|
+
</Tabs>
|
|
914
|
+
|
|
915
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
916
|
+
|
|
906
917
|
```bash packageManager="npm"
|
|
907
918
|
npm run build # 或 npm run dev
|
|
908
919
|
```
|
|
@@ -964,7 +975,9 @@ const pathList = [
|
|
|
964
975
|
];
|
|
965
976
|
|
|
966
977
|
// 生成 sitemap.xml
|
|
967
|
-
const sitemapXml = generateSitemap(pathList, {
|
|
978
|
+
const sitemapXml = generateSitemap(pathList, {
|
|
979
|
+
siteUrl: "https://example.com",
|
|
980
|
+
});
|
|
968
981
|
fs.writeFileSync(path.join(__dirname, "public", "sitemap.xml"), sitemapXml);
|
|
969
982
|
|
|
970
983
|
// 获取所有多语言 URL
|
|
@@ -980,7 +993,7 @@ const robotsTxt = [
|
|
|
980
993
|
"Allow: /",
|
|
981
994
|
...disallowedPaths.map((path) => `Disallow: ${path}`),
|
|
982
995
|
"",
|
|
983
|
-
`Sitemap:
|
|
996
|
+
`Sitemap: https://example.com/sitemap.xml`,
|
|
984
997
|
].join("\n");
|
|
985
998
|
|
|
986
999
|
fs.writeFileSync(path.join(__dirname, "public", "robots.txt"), robotsTxt);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-03-07
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-09-20
|
|
4
4
|
title: "Vite + React i18n - 翻译你的应用的完整指南"
|
|
5
5
|
description: "告别 i18next。2026 年构建多语言 (i18n) Vite + React 应用的完整指南。使用 AI 代理翻译并优化包体积、SEO 和性能。"
|
|
6
6
|
keywords:
|
|
@@ -839,8 +839,14 @@ bun x intlayer extract
|
|
|
839
839
|
</Tab>
|
|
840
840
|
<Tab value='Babel 编译器'>
|
|
841
841
|
|
|
842
|
+
<Tabs>
|
|
843
|
+
<Tab value='intlayer >= 9'>
|
|
844
|
+
|
|
842
845
|
> Since v9, the `intlayerCompiler` is included in the `intlayer` plugin. So you don't need to add it manually.
|
|
843
846
|
|
|
847
|
+
</Tab>
|
|
848
|
+
<Tab value='intlayer < 9'>
|
|
849
|
+
|
|
844
850
|
更新您的 `vite.config.ts` 以包含 `intlayerCompiler` 插件:
|
|
845
851
|
|
|
846
852
|
```ts fileName="vite.config.ts"
|
|
@@ -855,6 +861,11 @@ export default defineConfig({
|
|
|
855
861
|
});
|
|
856
862
|
```
|
|
857
863
|
|
|
864
|
+
</Tab>
|
|
865
|
+
</Tabs>
|
|
866
|
+
|
|
867
|
+
构建你的应用程序来转换你的组件并提取内容
|
|
868
|
+
|
|
858
869
|
```bash packageManager="npm"
|
|
859
870
|
npm run build # 或 npm run dev
|
|
860
871
|
```
|
|
@@ -911,7 +922,9 @@ const pathList = [
|
|
|
911
922
|
{ path: "/about", changefreq: "monthly", priority: 0.7 },
|
|
912
923
|
];
|
|
913
924
|
|
|
914
|
-
const sitemapXml = generateSitemap(pathList, {
|
|
925
|
+
const sitemapXml = generateSitemap(pathList, {
|
|
926
|
+
siteUrl: "https://example.com",
|
|
927
|
+
});
|
|
915
928
|
fs.writeFileSync(path.join(__dirname, "public", "sitemap.xml"), sitemapXml);
|
|
916
929
|
|
|
917
930
|
const getAllMultilingualUrls = (urls) =>
|
|
@@ -924,7 +937,7 @@ const robotsTxt = [
|
|
|
924
937
|
"Allow: /",
|
|
925
938
|
...disallowedPaths.map((path) => `Disallow: ${path}`),
|
|
926
939
|
"",
|
|
927
|
-
`Sitemap:
|
|
940
|
+
`Sitemap: https://example.com/sitemap.xml`,
|
|
928
941
|
].join("\n");
|
|
929
942
|
|
|
930
943
|
fs.writeFileSync(path.join(__dirname, "public", "robots.txt"), robotsTxt);
|