@intlayer/docs 8.5.0 → 8.5.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/intlayer_with_i18next.md +1 -1
- package/blog/ar/intlayer_with_next-i18next.md +1 -1
- package/blog/ar/intlayer_with_next-intl.md +1 -1
- package/blog/ar/intlayer_with_react-i18next.md +1 -1
- package/blog/ar/intlayer_with_react-intl.md +1 -1
- package/blog/ar/intlayer_with_vue-i18n.md +1 -1
- package/blog/de/intlayer_with_i18next.md +1 -1
- package/blog/de/intlayer_with_next-i18next.md +1 -1
- package/blog/de/intlayer_with_next-intl.md +1 -1
- package/blog/de/intlayer_with_react-i18next.md +1 -1
- package/blog/de/intlayer_with_react-intl.md +1 -1
- package/blog/de/intlayer_with_vue-i18n.md +1 -1
- package/blog/en/intlayer_with_i18next.md +1 -1
- package/blog/en/intlayer_with_next-i18next.md +1 -1
- package/blog/en/intlayer_with_next-intl.md +1 -1
- package/blog/en/intlayer_with_react-i18next.md +1 -1
- package/blog/en/intlayer_with_react-intl.md +1 -1
- package/blog/en/intlayer_with_vue-i18n.md +1 -1
- package/blog/en-GB/intlayer_with_i18next.md +1 -1
- package/blog/en-GB/intlayer_with_next-i18next.md +1 -1
- package/blog/en-GB/intlayer_with_next-intl.md +1 -1
- package/blog/en-GB/intlayer_with_react-i18next.md +1 -1
- package/blog/en-GB/intlayer_with_react-intl.md +1 -1
- package/blog/en-GB/intlayer_with_vue-i18n.md +1 -1
- package/blog/es/intlayer_with_i18next.md +1 -1
- package/blog/es/intlayer_with_next-i18next.md +1 -1
- package/blog/es/intlayer_with_next-intl.md +1 -1
- package/blog/es/intlayer_with_react-i18next.md +1 -1
- package/blog/es/intlayer_with_react-intl.md +1 -1
- package/blog/es/intlayer_with_vue-i18n.md +1 -1
- package/blog/fr/intlayer_with_i18next.md +1 -1
- package/blog/fr/intlayer_with_next-i18next.md +1 -1
- package/blog/fr/intlayer_with_next-intl.md +1 -1
- package/blog/fr/intlayer_with_react-i18next.md +1 -1
- package/blog/fr/intlayer_with_react-intl.md +1 -1
- package/blog/fr/intlayer_with_vue-i18n.md +1 -1
- package/blog/hi/intlayer_with_i18next.md +1 -1
- package/blog/hi/intlayer_with_next-i18next.md +1 -1
- package/blog/hi/intlayer_with_next-intl.md +1 -1
- package/blog/hi/intlayer_with_react-i18next.md +1 -1
- package/blog/hi/intlayer_with_react-intl.md +1 -1
- package/blog/hi/intlayer_with_vue-i18n.md +1 -1
- package/blog/id/intlayer_with_i18next.md +1 -1
- package/blog/id/intlayer_with_next-i18next.md +1 -1
- package/blog/id/intlayer_with_next-intl.md +1 -1
- package/blog/id/intlayer_with_react-i18next.md +1 -1
- package/blog/id/intlayer_with_react-intl.md +1 -1
- package/blog/id/intlayer_with_vue-i18n.md +1 -1
- package/blog/it/intlayer_with_i18next.md +1 -1
- package/blog/it/intlayer_with_next-i18next.md +1 -1
- package/blog/it/intlayer_with_next-intl.md +1 -1
- package/blog/it/intlayer_with_react-i18next.md +1 -1
- package/blog/it/intlayer_with_react-intl.md +1 -1
- package/blog/it/intlayer_with_vue-i18n.md +1 -1
- package/blog/ja/intlayer_with_i18next.md +1 -1
- package/blog/ja/intlayer_with_next-i18next.md +1 -1
- package/blog/ja/intlayer_with_next-intl.md +1 -1
- package/blog/ja/intlayer_with_react-i18next.md +1 -1
- package/blog/ja/intlayer_with_react-intl.md +1 -1
- package/blog/ja/intlayer_with_vue-i18n.md +1 -1
- package/blog/ko/intlayer_with_i18next.md +1 -1
- package/blog/ko/intlayer_with_next-i18next.md +1 -1
- package/blog/ko/intlayer_with_next-intl.md +1 -1
- package/blog/ko/intlayer_with_react-i18next.md +1 -1
- package/blog/ko/intlayer_with_react-intl.md +1 -1
- package/blog/ko/intlayer_with_vue-i18n.md +1 -1
- package/blog/pl/intlayer_with_i18next.md +1 -1
- package/blog/pl/intlayer_with_next-i18next.md +1 -1
- package/blog/pl/intlayer_with_next-intl.md +1 -1
- package/blog/pl/intlayer_with_react-i18next.md +1 -1
- package/blog/pl/intlayer_with_react-intl.md +1 -1
- package/blog/pl/intlayer_with_vue-i18n.md +1 -1
- package/blog/pt/intlayer_with_i18next.md +1 -1
- package/blog/pt/intlayer_with_next-i18next.md +1 -1
- package/blog/pt/intlayer_with_next-intl.md +1 -1
- package/blog/pt/intlayer_with_react-i18next.md +1 -1
- package/blog/pt/intlayer_with_react-intl.md +1 -1
- package/blog/pt/intlayer_with_vue-i18n.md +1 -1
- package/blog/ru/intlayer_with_i18next.md +1 -1
- package/blog/ru/intlayer_with_next-i18next.md +1 -1
- package/blog/ru/intlayer_with_next-intl.md +1 -1
- package/blog/ru/intlayer_with_react-i18next.md +1 -1
- package/blog/ru/intlayer_with_react-intl.md +1 -1
- package/blog/ru/intlayer_with_vue-i18n.md +1 -1
- package/blog/tr/intlayer_with_i18next.md +1 -1
- package/blog/tr/intlayer_with_next-i18next.md +1 -1
- package/blog/tr/intlayer_with_next-intl.md +1 -1
- package/blog/tr/intlayer_with_react-i18next.md +1 -1
- package/blog/tr/intlayer_with_react-intl.md +1 -1
- package/blog/tr/intlayer_with_vue-i18n.md +1 -1
- package/blog/uk/intlayer_with_i18next.md +1 -1
- package/blog/uk/intlayer_with_next-i18next.md +1 -1
- package/blog/uk/intlayer_with_next-intl.md +1 -1
- package/blog/uk/intlayer_with_react-i18next.md +1 -1
- package/blog/uk/intlayer_with_react-intl.md +1 -1
- package/blog/uk/intlayer_with_vue-i18n.md +1 -1
- package/blog/vi/intlayer_with_i18next.md +1 -1
- package/blog/vi/intlayer_with_next-i18next.md +1 -1
- package/blog/vi/intlayer_with_next-intl.md +1 -1
- package/blog/vi/intlayer_with_react-i18next.md +1 -1
- package/blog/vi/intlayer_with_react-intl.md +1 -1
- package/blog/vi/intlayer_with_vue-i18n.md +1 -1
- package/blog/zh/intlayer_with_i18next.md +1 -1
- package/blog/zh/intlayer_with_next-i18next.md +1 -1
- package/blog/zh/intlayer_with_next-intl.md +1 -1
- package/blog/zh/intlayer_with_react-i18next.md +1 -1
- package/blog/zh/intlayer_with_react-intl.md +1 -1
- package/blog/zh/intlayer_with_vue-i18n.md +1 -1
- package/dist/cjs/generated/docs.entry.cjs +20 -0
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +20 -0
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +1 -0
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/docs/ar/dictionary/html.md +10 -3
- package/docs/ar/dictionary/markdown.md +15 -17
- package/docs/ar/intlayer_CMS.md +1 -1
- package/docs/ar/intlayer_with_adonisjs.md +1 -1
- package/docs/ar/intlayer_with_analog.md +9 -15
- package/docs/ar/intlayer_with_angular.md +1 -1
- package/docs/ar/intlayer_with_create_react_app.md +1 -1
- package/docs/ar/intlayer_with_express.md +1 -1
- package/docs/ar/intlayer_with_fastify.md +1 -1
- package/docs/ar/intlayer_with_hono.md +1 -1
- package/docs/ar/intlayer_with_lynx+react.md +1 -1
- package/docs/ar/intlayer_with_nestjs.md +1 -1
- package/docs/ar/intlayer_with_next-i18next.md +1 -1
- package/docs/ar/intlayer_with_next-intl.md +1 -1
- package/docs/ar/intlayer_with_nextjs_14.md +1 -1
- package/docs/ar/intlayer_with_nextjs_15.md +1 -1
- package/docs/ar/intlayer_with_nextjs_16.md +2 -2
- package/docs/ar/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/ar/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/ar/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ar/intlayer_with_nuxt.md +1 -1
- package/docs/ar/intlayer_with_react_native+expo.md +1 -1
- package/docs/ar/intlayer_with_react_router_v7.md +2 -2
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/ar/intlayer_with_svelte_kit.md +3 -3
- package/docs/ar/intlayer_with_tanstack+solid.md +911 -0
- package/docs/ar/intlayer_with_tanstack.md +2 -2
- package/docs/ar/intlayer_with_vite+lit.md +9 -58
- package/docs/ar/intlayer_with_vite+preact.md +2 -2
- package/docs/ar/intlayer_with_vite+react.md +2 -2
- package/docs/ar/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/ar/intlayer_with_vite+solid.md +2 -2
- package/docs/ar/intlayer_with_vite+svelte.md +2 -2
- package/docs/ar/intlayer_with_vite+vanilla.md +2 -2
- package/docs/ar/intlayer_with_vite+vue.md +5 -5
- package/docs/bn/intlayer_with_fastify.md +1 -1
- package/docs/bn/intlayer_with_hono.md +1 -1
- package/docs/bn/intlayer_with_vite+lit.md +9 -58
- package/docs/bn/intlayer_with_vite+vanilla.md +2 -2
- package/docs/cs/intlayer_with_fastify.md +1 -1
- package/docs/cs/intlayer_with_hono.md +1 -1
- package/docs/cs/intlayer_with_vite+lit.md +9 -58
- package/docs/cs/intlayer_with_vite+vanilla.md +2 -2
- package/docs/de/compiler.md +6 -1
- package/docs/de/configuration.md +12 -9
- package/docs/de/dictionary/html.md +11 -8
- package/docs/de/dictionary/markdown.md +17 -23
- package/docs/de/intlayer_CMS.md +1 -1
- package/docs/de/intlayer_with_adonisjs.md +1 -1
- package/docs/de/intlayer_with_analog.md +9 -15
- package/docs/de/intlayer_with_angular.md +1 -1
- package/docs/de/intlayer_with_create_react_app.md +1 -1
- package/docs/de/intlayer_with_express.md +1 -1
- package/docs/de/intlayer_with_fastify.md +1 -1
- package/docs/de/intlayer_with_hono.md +1 -1
- package/docs/de/intlayer_with_lynx+react.md +1 -1
- package/docs/de/intlayer_with_nestjs.md +1 -1
- package/docs/de/intlayer_with_next-i18next.md +1 -1
- package/docs/de/intlayer_with_next-intl.md +1 -1
- package/docs/de/intlayer_with_nextjs_14.md +1 -1
- package/docs/de/intlayer_with_nextjs_15.md +1 -1
- package/docs/de/intlayer_with_nextjs_16.md +2 -2
- package/docs/de/intlayer_with_nextjs_compiler.md +1 -1
- package/docs/de/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/de/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/de/intlayer_with_nuxt.md +1 -1
- package/docs/de/intlayer_with_react_router_v7.md +2 -2
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/de/intlayer_with_svelte_kit.md +3 -3
- package/docs/de/intlayer_with_tanstack+solid.md +911 -0
- package/docs/de/intlayer_with_tanstack.md +2 -2
- package/docs/de/intlayer_with_vite+lit.md +9 -58
- package/docs/de/intlayer_with_vite+preact.md +2 -2
- package/docs/de/intlayer_with_vite+react.md +2 -2
- package/docs/de/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/de/intlayer_with_vite+solid.md +2 -2
- package/docs/de/intlayer_with_vite+svelte.md +2 -2
- package/docs/de/intlayer_with_vite+vanilla.md +2 -2
- package/docs/de/intlayer_with_vite+vue.md +5 -5
- package/docs/en/compiler.md +2 -0
- package/docs/en/configuration.md +8 -8
- package/docs/en/dictionary/html.md +12 -9
- package/docs/en/dictionary/markdown.md +18 -24
- package/docs/en/intlayer_CMS.md +1 -1
- package/docs/en/intlayer_with_adonisjs.md +1 -1
- package/docs/en/intlayer_with_analog.md +9 -15
- package/docs/en/intlayer_with_angular.md +1 -1
- package/docs/en/intlayer_with_create_react_app.md +1 -1
- package/docs/en/intlayer_with_express.md +1 -1
- package/docs/en/intlayer_with_fastify.md +1 -1
- package/docs/en/intlayer_with_hono.md +1 -1
- package/docs/en/intlayer_with_lynx+react.md +1 -1
- package/docs/en/intlayer_with_nestjs.md +1 -1
- package/docs/en/intlayer_with_next-i18next.md +1 -1
- package/docs/en/intlayer_with_next-intl.md +1 -1
- package/docs/en/intlayer_with_nextjs_14.md +1 -1
- package/docs/en/intlayer_with_nextjs_15.md +1 -1
- package/docs/en/intlayer_with_nextjs_16.md +2 -2
- package/docs/en/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/en/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/en/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/en/intlayer_with_nuxt.md +1 -1
- package/docs/en/intlayer_with_react_native+expo.md +1 -1
- package/docs/en/intlayer_with_react_router_v7.md +2 -2
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/en/intlayer_with_svelte_kit.md +2 -2
- package/docs/en/intlayer_with_tanstack+solid.md +911 -0
- package/docs/en/intlayer_with_tanstack.md +2 -2
- package/docs/en/intlayer_with_vite+lit.md +11 -58
- package/docs/en/intlayer_with_vite+preact.md +2 -2
- package/docs/en/intlayer_with_vite+react.md +2 -2
- package/docs/en/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/en/intlayer_with_vite+solid.md +2 -2
- package/docs/en/intlayer_with_vite+svelte.md +2 -2
- package/docs/en/intlayer_with_vite+vanilla.md +2 -2
- package/docs/en/intlayer_with_vite+vue.md +15 -5
- package/docs/en-GB/dictionary/html.md +10 -3
- package/docs/en-GB/dictionary/markdown.md +16 -18
- package/docs/en-GB/intlayer_CMS.md +1 -1
- package/docs/en-GB/intlayer_with_adonisjs.md +1 -1
- package/docs/en-GB/intlayer_with_analog.md +9 -15
- package/docs/en-GB/intlayer_with_angular.md +1 -1
- package/docs/en-GB/intlayer_with_create_react_app.md +2 -2
- package/docs/en-GB/intlayer_with_express.md +1 -1
- package/docs/en-GB/intlayer_with_fastify.md +1 -1
- package/docs/en-GB/intlayer_with_hono.md +1 -1
- package/docs/en-GB/intlayer_with_lynx+react.md +2 -2
- package/docs/en-GB/intlayer_with_nestjs.md +1 -1
- package/docs/en-GB/intlayer_with_next-i18next.md +1 -1
- package/docs/en-GB/intlayer_with_next-intl.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_14.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_15.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_16.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_compiler.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/en-GB/intlayer_with_nuxt.md +1 -1
- package/docs/en-GB/intlayer_with_react_native+expo.md +1 -1
- package/docs/en-GB/intlayer_with_react_router_v7.md +1 -1
- package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/en-GB/intlayer_with_svelte_kit.md +2 -2
- package/docs/en-GB/intlayer_with_tanstack+solid.md +912 -0
- package/docs/en-GB/intlayer_with_tanstack.md +1 -1
- package/docs/en-GB/intlayer_with_vite+lit.md +11 -58
- 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+react_compiler.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+vanilla.md +2 -2
- package/docs/en-GB/intlayer_with_vite+vue.md +4 -4
- package/docs/es/compiler.md +6 -1
- package/docs/es/configuration.md +12 -9
- package/docs/es/dictionary/html.md +11 -8
- package/docs/es/dictionary/markdown.md +18 -24
- package/docs/es/intlayer_CMS.md +1 -1
- package/docs/es/intlayer_with_adonisjs.md +1 -1
- package/docs/es/intlayer_with_analog.md +9 -15
- package/docs/es/intlayer_with_angular.md +1 -1
- package/docs/es/intlayer_with_create_react_app.md +1 -1
- 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 +1 -1
- package/docs/es/intlayer_with_nestjs.md +1 -1
- package/docs/es/intlayer_with_next-i18next.md +1 -1
- package/docs/es/intlayer_with_next-intl.md +1 -1
- package/docs/es/intlayer_with_nextjs_14.md +1 -1
- package/docs/es/intlayer_with_nextjs_15.md +1 -1
- package/docs/es/intlayer_with_nextjs_16.md +2 -2
- package/docs/es/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/es/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/es/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/es/intlayer_with_nuxt.md +1 -1
- package/docs/es/intlayer_with_react_native+expo.md +1 -1
- package/docs/es/intlayer_with_react_router_v7.md +2 -2
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/es/intlayer_with_svelte_kit.md +3 -3
- package/docs/es/intlayer_with_tanstack+solid.md +911 -0
- package/docs/es/intlayer_with_tanstack.md +2 -2
- package/docs/es/intlayer_with_vite+lit.md +9 -58
- package/docs/es/intlayer_with_vite+preact.md +2 -2
- package/docs/es/intlayer_with_vite+react.md +2 -2
- package/docs/es/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/es/intlayer_with_vite+solid.md +2 -2
- package/docs/es/intlayer_with_vite+svelte.md +2 -2
- package/docs/es/intlayer_with_vite+vanilla.md +2 -2
- package/docs/es/intlayer_with_vite+vue.md +5 -5
- package/docs/es/packages/next-intlayer/index.md +1 -1
- package/docs/es/packages/react-intlayer/index.md +1 -1
- package/docs/fr/compiler.md +8 -3
- package/docs/fr/configuration.md +12 -9
- package/docs/fr/dictionary/html.md +11 -8
- package/docs/fr/dictionary/markdown.md +18 -24
- package/docs/fr/intlayer_CMS.md +1 -1
- package/docs/fr/intlayer_with_adonisjs.md +1 -1
- package/docs/fr/intlayer_with_analog.md +9 -15
- package/docs/fr/intlayer_with_angular.md +1 -1
- package/docs/fr/intlayer_with_create_react_app.md +1 -1
- 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 +1 -1
- package/docs/fr/intlayer_with_nestjs.md +1 -1
- package/docs/fr/intlayer_with_next-i18next.md +1 -1
- package/docs/fr/intlayer_with_next-intl.md +1 -1
- package/docs/fr/intlayer_with_nextjs_14.md +1 -1
- package/docs/fr/intlayer_with_nextjs_15.md +1 -1
- package/docs/fr/intlayer_with_nextjs_16.md +2 -2
- package/docs/fr/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/fr/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/fr/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/fr/intlayer_with_nuxt.md +1 -1
- package/docs/fr/intlayer_with_react_router_v7.md +2 -2
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/fr/intlayer_with_svelte_kit.md +3 -3
- package/docs/fr/intlayer_with_tanstack+solid.md +911 -0
- package/docs/fr/intlayer_with_tanstack.md +2 -2
- package/docs/fr/intlayer_with_vite+lit.md +9 -58
- package/docs/fr/intlayer_with_vite+preact.md +2 -2
- package/docs/fr/intlayer_with_vite+react.md +2 -2
- package/docs/fr/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/fr/intlayer_with_vite+solid.md +2 -2
- package/docs/fr/intlayer_with_vite+svelte.md +2 -2
- package/docs/fr/intlayer_with_vite+vanilla.md +2 -2
- package/docs/fr/intlayer_with_vite+vue.md +5 -5
- package/docs/fr/packages/react-intlayer/index.md +1 -1
- package/docs/hi/dictionary/html.md +10 -3
- package/docs/hi/dictionary/markdown.md +17 -19
- package/docs/hi/intlayer_CMS.md +1 -1
- package/docs/hi/intlayer_with_adonisjs.md +1 -1
- package/docs/hi/intlayer_with_analog.md +9 -15
- package/docs/hi/intlayer_with_angular.md +1 -1
- package/docs/hi/intlayer_with_create_react_app.md +1 -1
- package/docs/hi/intlayer_with_express.md +1 -1
- package/docs/hi/intlayer_with_fastify.md +1 -1
- package/docs/hi/intlayer_with_hono.md +1 -1
- package/docs/hi/intlayer_with_lynx+react.md +1 -1
- package/docs/hi/intlayer_with_nestjs.md +1 -1
- package/docs/hi/intlayer_with_next-i18next.md +1 -1
- package/docs/hi/intlayer_with_next-intl.md +1 -1
- package/docs/hi/intlayer_with_nextjs_14.md +1 -1
- package/docs/hi/intlayer_with_nextjs_15.md +1 -1
- package/docs/hi/intlayer_with_nextjs_16.md +2 -2
- package/docs/hi/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/hi/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/hi/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/hi/intlayer_with_nuxt.md +1 -1
- package/docs/hi/intlayer_with_react_router_v7.md +2 -2
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/hi/intlayer_with_svelte_kit.md +3 -3
- package/docs/hi/intlayer_with_tanstack+solid.md +911 -0
- package/docs/hi/intlayer_with_tanstack.md +2 -2
- package/docs/hi/intlayer_with_vite+lit.md +9 -58
- package/docs/hi/intlayer_with_vite+preact.md +2 -2
- package/docs/hi/intlayer_with_vite+react.md +2 -2
- package/docs/hi/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/hi/intlayer_with_vite+solid.md +2 -2
- package/docs/hi/intlayer_with_vite+svelte.md +2 -2
- package/docs/hi/intlayer_with_vite+vanilla.md +2 -2
- package/docs/hi/intlayer_with_vite+vue.md +5 -5
- package/docs/hi/packages/intlayer/index.md +1 -1
- package/docs/id/dictionary/html.md +10 -3
- package/docs/id/dictionary/markdown.md +17 -19
- package/docs/id/intlayer_CMS.md +1 -1
- package/docs/id/intlayer_with_adonisjs.md +1 -1
- package/docs/id/intlayer_with_analog.md +9 -15
- package/docs/id/intlayer_with_angular.md +1 -1
- package/docs/id/intlayer_with_create_react_app.md +1 -1
- package/docs/id/intlayer_with_express.md +1 -1
- package/docs/id/intlayer_with_fastify.md +1 -1
- package/docs/id/intlayer_with_hono.md +1 -1
- package/docs/id/intlayer_with_lynx+react.md +1 -1
- package/docs/id/intlayer_with_nestjs.md +1 -1
- package/docs/id/intlayer_with_next-i18next.md +1 -1
- package/docs/id/intlayer_with_next-intl.md +1 -1
- package/docs/id/intlayer_with_nextjs_14.md +1 -1
- package/docs/id/intlayer_with_nextjs_15.md +1 -1
- package/docs/id/intlayer_with_nextjs_16.md +2 -2
- package/docs/id/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/id/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/id/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/id/intlayer_with_nuxt.md +1 -1
- package/docs/id/intlayer_with_react_native+expo.md +1 -1
- package/docs/id/intlayer_with_react_router_v7.md +2 -2
- package/docs/id/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/id/intlayer_with_svelte_kit.md +3 -3
- package/docs/id/intlayer_with_tanstack+solid.md +911 -0
- package/docs/id/intlayer_with_tanstack.md +2 -2
- package/docs/id/intlayer_with_vite+lit.md +9 -58
- package/docs/id/intlayer_with_vite+preact.md +2 -2
- package/docs/id/intlayer_with_vite+react.md +2 -2
- package/docs/id/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/id/intlayer_with_vite+solid.md +2 -2
- package/docs/id/intlayer_with_vite+svelte.md +2 -2
- package/docs/id/intlayer_with_vite+vanilla.md +2 -2
- package/docs/id/intlayer_with_vite+vue.md +5 -5
- package/docs/it/compiler.md +8 -3
- package/docs/it/configuration.md +12 -9
- package/docs/it/dictionary/html.md +11 -8
- package/docs/it/dictionary/markdown.md +18 -24
- package/docs/it/intlayer_CMS.md +1 -1
- package/docs/it/intlayer_with_adonisjs.md +1 -1
- package/docs/it/intlayer_with_analog.md +9 -15
- package/docs/it/intlayer_with_angular.md +1 -1
- package/docs/it/intlayer_with_create_react_app.md +1 -1
- package/docs/it/intlayer_with_express.md +1 -1
- package/docs/it/intlayer_with_fastify.md +1 -1
- package/docs/it/intlayer_with_hono.md +1 -1
- package/docs/it/intlayer_with_lynx+react.md +1 -1
- package/docs/it/intlayer_with_nestjs.md +1 -1
- package/docs/it/intlayer_with_next-i18next.md +1 -1
- package/docs/it/intlayer_with_next-intl.md +1 -1
- package/docs/it/intlayer_with_nextjs_14.md +1 -1
- package/docs/it/intlayer_with_nextjs_15.md +1 -1
- package/docs/it/intlayer_with_nextjs_16.md +2 -2
- package/docs/it/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/it/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/it/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/it/intlayer_with_nuxt.md +1 -1
- package/docs/it/intlayer_with_react_native+expo.md +1 -1
- package/docs/it/intlayer_with_react_router_v7.md +2 -2
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/it/intlayer_with_svelte_kit.md +3 -3
- package/docs/it/intlayer_with_tanstack+solid.md +911 -0
- package/docs/it/intlayer_with_tanstack.md +2 -2
- package/docs/it/intlayer_with_vite+lit.md +9 -58
- package/docs/it/intlayer_with_vite+preact.md +2 -2
- package/docs/it/intlayer_with_vite+react.md +2 -2
- package/docs/it/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/it/intlayer_with_vite+solid.md +2 -2
- package/docs/it/intlayer_with_vite+svelte.md +2 -2
- package/docs/it/intlayer_with_vite+vanilla.md +2 -2
- package/docs/it/intlayer_with_vite+vue.md +5 -5
- package/docs/ja/dictionary/html.md +11 -8
- package/docs/ja/dictionary/markdown.md +21 -24
- package/docs/ja/intlayer_CMS.md +1 -1
- package/docs/ja/intlayer_with_adonisjs.md +1 -1
- package/docs/ja/intlayer_with_analog.md +9 -15
- package/docs/ja/intlayer_with_angular.md +1 -1
- package/docs/ja/intlayer_with_create_react_app.md +1 -1
- package/docs/ja/intlayer_with_express.md +1 -1
- package/docs/ja/intlayer_with_fastify.md +1 -1
- package/docs/ja/intlayer_with_hono.md +1 -1
- package/docs/ja/intlayer_with_lynx+react.md +1 -1
- package/docs/ja/intlayer_with_nestjs.md +1 -1
- package/docs/ja/intlayer_with_next-i18next.md +1 -1
- package/docs/ja/intlayer_with_next-intl.md +1 -1
- package/docs/ja/intlayer_with_nextjs_14.md +1 -1
- package/docs/ja/intlayer_with_nextjs_15.md +1 -1
- package/docs/ja/intlayer_with_nextjs_16.md +2 -2
- package/docs/ja/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/ja/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/ja/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ja/intlayer_with_nuxt.md +1 -1
- package/docs/ja/intlayer_with_react_router_v7.md +1 -1
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/ja/intlayer_with_svelte_kit.md +1 -1
- package/docs/ja/intlayer_with_tanstack+solid.md +911 -0
- package/docs/ja/intlayer_with_tanstack.md +1 -1
- package/docs/ja/intlayer_with_vite+lit.md +9 -58
- package/docs/ja/intlayer_with_vite+preact.md +1 -1
- package/docs/ja/intlayer_with_vite+react.md +1 -1
- package/docs/ja/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/ja/intlayer_with_vite+solid.md +2 -2
- package/docs/ja/intlayer_with_vite+svelte.md +2 -2
- package/docs/ja/intlayer_with_vite+vanilla.md +2 -2
- package/docs/ja/intlayer_with_vite+vue.md +5 -5
- package/docs/ko/dictionary/html.md +11 -8
- package/docs/ko/dictionary/markdown.md +18 -24
- package/docs/ko/intlayer_CMS.md +1 -1
- package/docs/ko/intlayer_with_adonisjs.md +1 -1
- package/docs/ko/intlayer_with_analog.md +9 -15
- package/docs/ko/intlayer_with_angular.md +1 -1
- package/docs/ko/intlayer_with_create_react_app.md +1 -1
- package/docs/ko/intlayer_with_express.md +1 -1
- package/docs/ko/intlayer_with_fastify.md +1 -1
- package/docs/ko/intlayer_with_hono.md +1 -1
- package/docs/ko/intlayer_with_lynx+react.md +1 -1
- package/docs/ko/intlayer_with_nestjs.md +1 -1
- package/docs/ko/intlayer_with_next-i18next.md +1 -1
- package/docs/ko/intlayer_with_next-intl.md +1 -1
- package/docs/ko/intlayer_with_nextjs_14.md +1 -1
- package/docs/ko/intlayer_with_nextjs_15.md +1 -1
- package/docs/ko/intlayer_with_nextjs_16.md +2 -2
- package/docs/ko/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/ko/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/ko/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ko/intlayer_with_nuxt.md +1 -1
- package/docs/ko/intlayer_with_react_native+expo.md +1 -1
- package/docs/ko/intlayer_with_react_router_v7.md +2 -2
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/ko/intlayer_with_svelte_kit.md +3 -3
- package/docs/ko/intlayer_with_tanstack+solid.md +911 -0
- package/docs/ko/intlayer_with_tanstack.md +2 -2
- package/docs/ko/intlayer_with_vite+lit.md +9 -58
- package/docs/ko/intlayer_with_vite+preact.md +2 -2
- package/docs/ko/intlayer_with_vite+react.md +2 -2
- package/docs/ko/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/ko/intlayer_with_vite+solid.md +2 -2
- package/docs/ko/intlayer_with_vite+svelte.md +2 -2
- package/docs/ko/intlayer_with_vite+vanilla.md +2 -2
- package/docs/ko/intlayer_with_vite+vue.md +5 -5
- package/docs/nl/intlayer_with_fastify.md +1 -1
- package/docs/nl/intlayer_with_hono.md +1 -1
- package/docs/nl/intlayer_with_vite+lit.md +9 -58
- package/docs/nl/intlayer_with_vite+vanilla.md +2 -2
- package/docs/pl/dictionary/html.md +11 -8
- package/docs/pl/dictionary/markdown.md +18 -24
- package/docs/pl/intlayer_CMS.md +1 -1
- package/docs/pl/intlayer_with_adonisjs.md +1 -1
- package/docs/pl/intlayer_with_analog.md +9 -15
- package/docs/pl/intlayer_with_angular.md +1 -1
- package/docs/pl/intlayer_with_create_react_app.md +1 -1
- package/docs/pl/intlayer_with_express.md +1 -1
- package/docs/pl/intlayer_with_fastify.md +1 -1
- package/docs/pl/intlayer_with_hono.md +1 -1
- package/docs/pl/intlayer_with_lynx+react.md +1 -1
- package/docs/pl/intlayer_with_nestjs.md +1 -1
- package/docs/pl/intlayer_with_next-i18next.md +1 -1
- package/docs/pl/intlayer_with_next-intl.md +1 -1
- package/docs/pl/intlayer_with_nextjs_14.md +1 -1
- package/docs/pl/intlayer_with_nextjs_15.md +1 -1
- package/docs/pl/intlayer_with_nextjs_16.md +2 -2
- package/docs/pl/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/pl/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/pl/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/pl/intlayer_with_nuxt.md +1 -1
- package/docs/pl/intlayer_with_react_native+expo.md +1 -1
- package/docs/pl/intlayer_with_react_router_v7.md +2 -2
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/pl/intlayer_with_svelte_kit.md +3 -3
- package/docs/pl/intlayer_with_tanstack+solid.md +911 -0
- package/docs/pl/intlayer_with_tanstack.md +2 -2
- package/docs/pl/intlayer_with_vite+lit.md +9 -58
- package/docs/pl/intlayer_with_vite+preact.md +2 -2
- package/docs/pl/intlayer_with_vite+react.md +2 -2
- package/docs/pl/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/pl/intlayer_with_vite+solid.md +2 -2
- package/docs/pl/intlayer_with_vite+svelte.md +2 -2
- package/docs/pl/intlayer_with_vite+vanilla.md +2 -2
- package/docs/pl/intlayer_with_vite+vue.md +5 -5
- package/docs/pt/compiler.md +7 -2
- package/docs/pt/configuration.md +11 -9
- package/docs/pt/dictionary/html.md +11 -8
- package/docs/pt/dictionary/markdown.md +18 -24
- package/docs/pt/intlayer_CMS.md +1 -1
- package/docs/pt/intlayer_with_adonisjs.md +1 -1
- package/docs/pt/intlayer_with_analog.md +9 -15
- package/docs/pt/intlayer_with_angular.md +1 -1
- package/docs/pt/intlayer_with_create_react_app.md +1 -1
- package/docs/pt/intlayer_with_express.md +1 -1
- package/docs/pt/intlayer_with_fastify.md +1 -1
- package/docs/pt/intlayer_with_hono.md +1 -1
- package/docs/pt/intlayer_with_lynx+react.md +1 -1
- package/docs/pt/intlayer_with_nestjs.md +1 -1
- package/docs/pt/intlayer_with_next-i18next.md +1 -1
- package/docs/pt/intlayer_with_next-intl.md +1 -1
- package/docs/pt/intlayer_with_nextjs_14.md +1 -1
- package/docs/pt/intlayer_with_nextjs_15.md +1 -1
- package/docs/pt/intlayer_with_nextjs_16.md +2 -2
- package/docs/pt/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/pt/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/pt/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/pt/intlayer_with_nuxt.md +1 -1
- package/docs/pt/intlayer_with_react_native+expo.md +1 -1
- package/docs/pt/intlayer_with_react_router_v7.md +2 -2
- package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/pt/intlayer_with_svelte_kit.md +3 -3
- package/docs/pt/intlayer_with_tanstack+solid.md +911 -0
- package/docs/pt/intlayer_with_tanstack.md +2 -2
- package/docs/pt/intlayer_with_vite+lit.md +9 -58
- package/docs/pt/intlayer_with_vite+preact.md +2 -2
- package/docs/pt/intlayer_with_vite+react.md +2 -2
- package/docs/pt/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/pt/intlayer_with_vite+solid.md +2 -2
- package/docs/pt/intlayer_with_vite+svelte.md +2 -2
- package/docs/pt/intlayer_with_vite+vanilla.md +2 -2
- package/docs/pt/intlayer_with_vite+vue.md +5 -5
- package/docs/ru/dictionary/html.md +11 -8
- package/docs/ru/dictionary/markdown.md +18 -24
- package/docs/ru/intlayer_CMS.md +1 -1
- package/docs/ru/intlayer_with_adonisjs.md +1 -1
- package/docs/ru/intlayer_with_analog.md +9 -15
- package/docs/ru/intlayer_with_angular.md +1 -1
- package/docs/ru/intlayer_with_create_react_app.md +1 -1
- package/docs/ru/intlayer_with_express.md +1 -1
- package/docs/ru/intlayer_with_fastify.md +1 -1
- package/docs/ru/intlayer_with_hono.md +1 -1
- package/docs/ru/intlayer_with_lynx+react.md +1 -1
- package/docs/ru/intlayer_with_nestjs.md +1 -1
- package/docs/ru/intlayer_with_next-i18next.md +1 -1
- package/docs/ru/intlayer_with_next-intl.md +1 -1
- package/docs/ru/intlayer_with_nextjs_14.md +1 -1
- package/docs/ru/intlayer_with_nextjs_15.md +1 -1
- package/docs/ru/intlayer_with_nextjs_16.md +2 -2
- package/docs/ru/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/ru/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/ru/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ru/intlayer_with_nuxt.md +1 -1
- package/docs/ru/intlayer_with_react_native+expo.md +1 -1
- package/docs/ru/intlayer_with_react_router_v7.md +2 -2
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/ru/intlayer_with_svelte_kit.md +3 -3
- package/docs/ru/intlayer_with_tanstack+solid.md +911 -0
- package/docs/ru/intlayer_with_tanstack.md +2 -2
- package/docs/ru/intlayer_with_vite+lit.md +9 -58
- package/docs/ru/intlayer_with_vite+preact.md +2 -2
- package/docs/ru/intlayer_with_vite+react.md +2 -2
- package/docs/ru/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/ru/intlayer_with_vite+solid.md +2 -2
- package/docs/ru/intlayer_with_vite+svelte.md +2 -2
- package/docs/ru/intlayer_with_vite+vanilla.md +2 -2
- package/docs/ru/intlayer_with_vite+vue.md +5 -5
- package/docs/tr/dictionary/html.md +11 -8
- package/docs/tr/dictionary/markdown.md +18 -24
- package/docs/tr/intlayer_CMS.md +1 -1
- package/docs/tr/intlayer_with_adonisjs.md +1 -1
- package/docs/tr/intlayer_with_analog.md +9 -15
- package/docs/tr/intlayer_with_angular.md +1 -1
- package/docs/tr/intlayer_with_create_react_app.md +1 -1
- package/docs/tr/intlayer_with_express.md +1 -1
- package/docs/tr/intlayer_with_fastify.md +1 -1
- package/docs/tr/intlayer_with_hono.md +1 -1
- package/docs/tr/intlayer_with_lynx+react.md +1 -1
- package/docs/tr/intlayer_with_nestjs.md +1 -1
- package/docs/tr/intlayer_with_next-i18next.md +1 -1
- package/docs/tr/intlayer_with_next-intl.md +1 -1
- package/docs/tr/intlayer_with_nextjs_14.md +1 -1
- package/docs/tr/intlayer_with_nextjs_15.md +1 -1
- package/docs/tr/intlayer_with_nextjs_16.md +2 -2
- package/docs/tr/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/tr/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/tr/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/tr/intlayer_with_nuxt.md +1 -1
- package/docs/tr/intlayer_with_react_native+expo.md +1 -1
- package/docs/tr/intlayer_with_react_router_v7.md +2 -2
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/tr/intlayer_with_svelte_kit.md +3 -3
- package/docs/tr/intlayer_with_tanstack+solid.md +912 -0
- package/docs/tr/intlayer_with_tanstack.md +2 -2
- package/docs/tr/intlayer_with_vite+lit.md +9 -58
- package/docs/tr/intlayer_with_vite+preact.md +2 -2
- package/docs/tr/intlayer_with_vite+react.md +2 -2
- package/docs/tr/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/tr/intlayer_with_vite+solid.md +2 -2
- package/docs/tr/intlayer_with_vite+svelte.md +2 -2
- package/docs/tr/intlayer_with_vite+vanilla.md +2 -2
- package/docs/tr/intlayer_with_vite+vue.md +5 -5
- package/docs/uk/dictionary/html.md +10 -3
- package/docs/uk/dictionary/markdown.md +17 -19
- package/docs/uk/intlayer_CMS.md +1 -1
- package/docs/uk/intlayer_with_adonisjs.md +1 -1
- package/docs/uk/intlayer_with_analog.md +9 -15
- package/docs/uk/intlayer_with_angular.md +1 -1
- package/docs/uk/intlayer_with_create_react_app.md +1 -1
- package/docs/uk/intlayer_with_express.md +1 -1
- package/docs/uk/intlayer_with_fastify.md +1 -1
- package/docs/uk/intlayer_with_hono.md +1 -1
- package/docs/uk/intlayer_with_lynx+react.md +1 -1
- package/docs/uk/intlayer_with_nestjs.md +1 -1
- package/docs/uk/intlayer_with_next-i18next.md +1 -1
- package/docs/uk/intlayer_with_next-intl.md +1 -1
- package/docs/uk/intlayer_with_nextjs_14.md +1 -1
- package/docs/uk/intlayer_with_nextjs_15.md +1 -1
- package/docs/uk/intlayer_with_nextjs_16.md +2 -2
- package/docs/uk/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/uk/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/uk/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/uk/intlayer_with_nuxt.md +1 -1
- package/docs/uk/intlayer_with_react_native+expo.md +1 -1
- package/docs/uk/intlayer_with_react_router_v7.md +2 -2
- package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/uk/intlayer_with_svelte_kit.md +2 -2
- package/docs/uk/intlayer_with_tanstack+solid.md +911 -0
- package/docs/uk/intlayer_with_tanstack.md +2 -2
- package/docs/uk/intlayer_with_vite+lit.md +9 -58
- package/docs/uk/intlayer_with_vite+preact.md +2 -2
- package/docs/uk/intlayer_with_vite+react.md +2 -2
- package/docs/uk/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/uk/intlayer_with_vite+solid.md +2 -2
- package/docs/uk/intlayer_with_vite+svelte.md +2 -2
- package/docs/uk/intlayer_with_vite+vanilla.md +2 -2
- package/docs/uk/intlayer_with_vite+vue.md +5 -5
- package/docs/ur/intlayer_with_fastify.md +1 -1
- package/docs/ur/intlayer_with_hono.md +1 -1
- package/docs/ur/intlayer_with_vite+lit.md +9 -58
- package/docs/ur/intlayer_with_vite+vanilla.md +1 -1
- package/docs/vi/cli/index.md +1 -1
- package/docs/vi/dictionary/html.md +10 -3
- package/docs/vi/dictionary/markdown.md +17 -19
- package/docs/vi/intlayer_CMS.md +1 -1
- package/docs/vi/intlayer_with_adonisjs.md +1 -1
- package/docs/vi/intlayer_with_analog.md +9 -15
- package/docs/vi/intlayer_with_angular.md +1 -1
- package/docs/vi/intlayer_with_create_react_app.md +1 -1
- package/docs/vi/intlayer_with_express.md +1 -1
- package/docs/vi/intlayer_with_fastify.md +1 -1
- package/docs/vi/intlayer_with_hono.md +1 -1
- package/docs/vi/intlayer_with_lynx+react.md +1 -1
- package/docs/vi/intlayer_with_nestjs.md +1 -1
- package/docs/vi/intlayer_with_next-i18next.md +1 -1
- package/docs/vi/intlayer_with_next-intl.md +1 -1
- package/docs/vi/intlayer_with_nextjs_14.md +1 -1
- package/docs/vi/intlayer_with_nextjs_15.md +1 -1
- package/docs/vi/intlayer_with_nextjs_16.md +2 -2
- package/docs/vi/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/vi/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/vi/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/vi/intlayer_with_nuxt.md +1 -1
- package/docs/vi/intlayer_with_react_native+expo.md +1 -1
- package/docs/vi/intlayer_with_react_router_v7.md +2 -2
- package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/vi/intlayer_with_svelte_kit.md +3 -3
- package/docs/vi/intlayer_with_tanstack+solid.md +911 -0
- package/docs/vi/intlayer_with_tanstack.md +2 -2
- package/docs/vi/intlayer_with_vite+lit.md +9 -58
- package/docs/vi/intlayer_with_vite+preact.md +2 -2
- package/docs/vi/intlayer_with_vite+react.md +2 -2
- package/docs/vi/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/vi/intlayer_with_vite+solid.md +2 -2
- package/docs/vi/intlayer_with_vite+svelte.md +2 -2
- package/docs/vi/intlayer_with_vite+vanilla.md +2 -2
- package/docs/vi/intlayer_with_vite+vue.md +5 -5
- package/docs/zh/compiler.md +8 -3
- package/docs/zh/configuration.md +4 -1
- package/docs/zh/dictionary/html.md +11 -8
- package/docs/zh/dictionary/markdown.md +18 -24
- package/docs/zh/intlayer_CMS.md +1 -1
- package/docs/zh/intlayer_with_adonisjs.md +1 -1
- package/docs/zh/intlayer_with_analog.md +9 -15
- package/docs/zh/intlayer_with_angular.md +1 -1
- package/docs/zh/intlayer_with_create_react_app.md +1 -1
- 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 +1 -1
- package/docs/zh/intlayer_with_nestjs.md +1 -1
- package/docs/zh/intlayer_with_next-i18next.md +1 -1
- package/docs/zh/intlayer_with_next-intl.md +1 -1
- package/docs/zh/intlayer_with_nextjs_14.md +1 -1
- package/docs/zh/intlayer_with_nextjs_15.md +1 -1
- package/docs/zh/intlayer_with_nextjs_16.md +2 -2
- package/docs/zh/intlayer_with_nextjs_compiler.md +2 -2
- package/docs/zh/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/zh/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/zh/intlayer_with_nuxt.md +1 -1
- package/docs/zh/intlayer_with_react_native+expo.md +1 -1
- package/docs/zh/intlayer_with_react_router_v7.md +2 -2
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +2 -2
- package/docs/zh/intlayer_with_svelte_kit.md +3 -3
- package/docs/zh/intlayer_with_tanstack+solid.md +911 -0
- package/docs/zh/intlayer_with_tanstack.md +2 -2
- package/docs/zh/intlayer_with_vite+lit.md +9 -58
- package/docs/zh/intlayer_with_vite+preact.md +2 -2
- package/docs/zh/intlayer_with_vite+react.md +2 -2
- package/docs/zh/intlayer_with_vite+react_compiler.md +1 -1
- package/docs/zh/intlayer_with_vite+solid.md +2 -2
- package/docs/zh/intlayer_with_vite+svelte.md +2 -2
- package/docs/zh/intlayer_with_vite+vanilla.md +2 -2
- package/docs/zh/intlayer_with_vite+vue.md +5 -5
- package/package.json +6 -6
- package/src/generated/docs.entry.ts +20 -0
|
@@ -0,0 +1,911 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-03-25
|
|
3
|
+
updatedAt: 2026-03-25
|
|
4
|
+
title: i18n Tanstack Start - Comment traduire une application Tanstack Start en utilisant Solid.js en 2026
|
|
5
|
+
description: Apprenez à ajouter l'internationalisation (i18n) à votre application Tanstack Start en utilisant Intlayer et Solid.js. Suivez ce guide complet pour rendre votre application multilingue avec un routage tenant compte de la localisation.
|
|
6
|
+
keywords:
|
|
7
|
+
- Internationalisation
|
|
8
|
+
- Documentation
|
|
9
|
+
- Intlayer
|
|
10
|
+
- Tanstack Start
|
|
11
|
+
- Solid
|
|
12
|
+
- i18n
|
|
13
|
+
- TypeScript
|
|
14
|
+
- Routage de localisation
|
|
15
|
+
slugs:
|
|
16
|
+
- doc
|
|
17
|
+
- environment
|
|
18
|
+
- tanstack-start
|
|
19
|
+
applicationTemplate: https://github.com/aymericzip/intlayer-tanstack-start-solid-template
|
|
20
|
+
youtubeVideo: https://www.youtube.com/watch?v=_XTdKVWaeqg
|
|
21
|
+
history:
|
|
22
|
+
- version: 8.5.1
|
|
23
|
+
date: 2026-03-25
|
|
24
|
+
changes: "Ajouté pour Tanstack Start Solid.js"
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Traduisez votre site web Tanstack Start avec Solid.js en utilisant Intlayer | Internationalisation (i18n)
|
|
28
|
+
|
|
29
|
+
## Table des matières
|
|
30
|
+
|
|
31
|
+
<TOC/>
|
|
32
|
+
|
|
33
|
+
Ce guide démontre comment intégrer **Intlayer** pour une internationalisation fluide dans les projets Tanstack Start avec Solid.js, le routage tenant compte de la localisation, le support TypeScript et les pratiques de développement modernes.
|
|
34
|
+
|
|
35
|
+
## Qu'est-ce qu'Intlayer ?
|
|
36
|
+
|
|
37
|
+
**Intlayer** est une bibliothèque d'internationalisation (i18n) innovante et open-source conçue pour simplifier le support multilingue dans les applications web modernes.
|
|
38
|
+
|
|
39
|
+
Avec Intlayer, vous pouvez :
|
|
40
|
+
|
|
41
|
+
- **Gérer facilement les traductions** en utilisant des dictionnaires déclaratifs au niveau des composants.
|
|
42
|
+
- **Localiser dynamiquement les métadonnées**, les routes et le contenu.
|
|
43
|
+
- **Assurer le support TypeScript** avec des types autogénérés, améliorant l'autocomplétion et la détection d'erreurs.
|
|
44
|
+
- **Bénéficier de fonctionnalités avancées**, comme la détection et le changement dynamique de langue.
|
|
45
|
+
- **Activer le routage tenant compte de la localisation** avec le système de routage basé sur les fichiers de Tanstack Start.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Guide étape par étape pour configurer Intlayer dans une application Tanstack Start
|
|
50
|
+
|
|
51
|
+
<Tabs defaultTab="video">
|
|
52
|
+
<Tab label="Vidéo" value="video">
|
|
53
|
+
|
|
54
|
+
<iframe title="La meilleure solution i18n pour Tanstack Start ? Découvrez Intlayer" class="m-auto aspect-16/9 w-full overflow-hidden rounded-lg border-0" allow="autoplay; gyroscope;" loading="lazy" width="1080" height="auto" src="https://www.youtube.com/embed/_XTdKVWaeqg?autoplay=0&origin=http://intlayer.org&controls=0&rel=1"/>
|
|
55
|
+
|
|
56
|
+
</Tab>
|
|
57
|
+
<Tab label="Code" value="code">
|
|
58
|
+
|
|
59
|
+
<iframe
|
|
60
|
+
src="https://stackblitz.com/github/aymericzip/intlayer-tanstack-start-solid-template?embed=1&ctl=1&file=intlayer.config.ts"
|
|
61
|
+
className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
|
|
62
|
+
title="Démo CodeSandbox - Comment internationaliser votre application en utilisant Intlayer"
|
|
63
|
+
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
|
|
64
|
+
loading="lazy"
|
|
65
|
+
/>
|
|
66
|
+
|
|
67
|
+
</Tab>
|
|
68
|
+
</Tabs>
|
|
69
|
+
|
|
70
|
+
Voir le [Modèle d'Application](https://github.com/aymericzip/intlayer-tanstack-start-solid-template) sur GitHub.
|
|
71
|
+
|
|
72
|
+
### Étape 1 : Créer le projet
|
|
73
|
+
|
|
74
|
+
Commencez par créer un nouveau projet TanStack Start en suivant le guide [Démarrer un nouveau projet](https://tanstack.com/start/latest/docs/framework/solid/quick-start) sur le site web de TanStack Start.
|
|
75
|
+
|
|
76
|
+
### Étape 2 : Installer les packages Intlayer
|
|
77
|
+
|
|
78
|
+
Installez les packages nécessaires en utilisant votre gestionnaire de paquets préféré :
|
|
79
|
+
|
|
80
|
+
```bash packageManager="npm"
|
|
81
|
+
npm install intlayer solid-intlayer
|
|
82
|
+
npm install vite-intlayer --save-dev
|
|
83
|
+
npx intlayer init
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```bash packageManager="pnpm"
|
|
87
|
+
pnpm add intlayer solid-intlayer
|
|
88
|
+
pnpm add vite-intlayer --save-dev
|
|
89
|
+
pnpm intlayer init
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
```bash packageManager="yarn"
|
|
93
|
+
yarn add intlayer solid-intlayer
|
|
94
|
+
yarn add vite-intlayer --save-dev
|
|
95
|
+
yarn intlayer init
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
```bash packageManager="bun"
|
|
99
|
+
bun add intlayer solid-intlayer
|
|
100
|
+
bun add vite-intlayer --dev
|
|
101
|
+
bun x intlayer init
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
- **intlayer**
|
|
105
|
+
|
|
106
|
+
Le package principal qui fournit des outils d'internationalisation pour la gestion de la configuration, la traduction, la [déclaration de contenu](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/dictionary/content_file.md), la transpilation et les [commandes CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/cli/index.md).
|
|
107
|
+
|
|
108
|
+
- **solid-intlayer**
|
|
109
|
+
Le package qui intègre Intlayer avec une application Solid. Il fournit des fournisseurs de contexte et des hooks pour l'internationalisation Solid.
|
|
110
|
+
|
|
111
|
+
- **vite-intlayer**
|
|
112
|
+
Inclut le plugin Vite pour intégrer Intlayer avec le [bundler Vite](https://vite.dev/guide/why.html#why-bundle-for-production), ainsi qu'un middleware pour détecter la langue préférée de l'utilisateur, gérer les cookies et gérer la redirection d'URL.
|
|
113
|
+
|
|
114
|
+
### Étape 3 : Configuration de votre projet
|
|
115
|
+
|
|
116
|
+
Créez un fichier de configuration pour configurer les langues de votre application :
|
|
117
|
+
|
|
118
|
+
```typescript fileName="intlayer.config.ts"
|
|
119
|
+
import type { IntlayerConfig } from "intlayer";
|
|
120
|
+
|
|
121
|
+
import { Locales } from "intlayer";
|
|
122
|
+
|
|
123
|
+
const config: IntlayerConfig = {
|
|
124
|
+
internationalization: {
|
|
125
|
+
defaultLocale: Locales.ENGLISH,
|
|
126
|
+
locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export default config;
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
> Grâce à ce fichier de configuration, vous pouvez configurer des URL localisées, la redirection du middleware, les noms des cookies, l'emplacement et l'extension de vos déclarations de contenu, désactiver les logs Intlayer dans la console, et plus encore. Pour une liste complète des paramètres disponibles, reportez-vous à la [documentation de configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/configuration.md).
|
|
134
|
+
|
|
135
|
+
### Étape 4 : Intégrer Intlayer dans votre configuration Vite
|
|
136
|
+
|
|
137
|
+
Ajoutez le plugin intlayer dans votre configuration :
|
|
138
|
+
|
|
139
|
+
```typescript fileName="vite.config.ts"
|
|
140
|
+
import { intlayer } from "vite-intlayer";
|
|
141
|
+
import { defineConfig } from "vite";
|
|
142
|
+
import { devtools } from "@tanstack/devtools-vite";
|
|
143
|
+
import viteTsConfigPaths from "vite-tsconfig-paths";
|
|
144
|
+
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
145
|
+
import solidPlugin from "vite-plugin-solid";
|
|
146
|
+
|
|
147
|
+
export default defineConfig({
|
|
148
|
+
plugins: [
|
|
149
|
+
devtools(),
|
|
150
|
+
viteTsConfigPaths({
|
|
151
|
+
projects: ["./tsconfig.json"],
|
|
152
|
+
}),
|
|
153
|
+
tanstackStart({
|
|
154
|
+
router: {
|
|
155
|
+
routeFileIgnorePattern:
|
|
156
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
157
|
+
},
|
|
158
|
+
}),
|
|
159
|
+
solidPlugin({ ssr: true }),
|
|
160
|
+
intlayer(),
|
|
161
|
+
],
|
|
162
|
+
});
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
> Le plugin Vite `intlayer()` est utilisé pour intégrer Intlayer avec Vite. Il assure la construction des fichiers de déclaration de contenu et les surveille en mode développement. Il définit les variables d'environnement Intlayer au sein de l'application Vite. De plus, il fournit des alias pour optimiser les performances.
|
|
166
|
+
|
|
167
|
+
### Étape 5 : Créer l'affichage racine (Root Layout)
|
|
168
|
+
|
|
169
|
+
Configurez votre affichage racine pour supporter l'internationalisation en utilisant `useMatches` pour détecter la langue actuelle et en définissant les attributs `lang` et `dir` sur la balise `html`.
|
|
170
|
+
|
|
171
|
+
```tsx fileName="src/routes/__root.tsx"
|
|
172
|
+
import {
|
|
173
|
+
HeadContent,
|
|
174
|
+
Outlet,
|
|
175
|
+
Scripts,
|
|
176
|
+
createRootRouteWithContext,
|
|
177
|
+
useMatches,
|
|
178
|
+
} from "@tanstack/solid-router";
|
|
179
|
+
import { TanStackRouterDevtools } from "@tanstack/solid-router-devtools";
|
|
180
|
+
import { HydrationScript } from "solid-js/web";
|
|
181
|
+
import { Suspense } from "solid-js";
|
|
182
|
+
import { IntlayerProvider } from "solid-intlayer";
|
|
183
|
+
import { defaultLocale, getHTMLTextDir, type Locale } from "intlayer";
|
|
184
|
+
|
|
185
|
+
export const Route = createRootRouteWithContext()({
|
|
186
|
+
shellComponent: RootComponent,
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
type Params = {
|
|
190
|
+
locale: Locale;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
function RootComponent() {
|
|
194
|
+
const matches = useMatches();
|
|
195
|
+
|
|
196
|
+
// Essayer de trouver la locale dans les paramètres de n'importe quel match actif
|
|
197
|
+
// Cela suppose que vous utilisez le segment dynamique "/{-$locale}" dans votre arbre de routes
|
|
198
|
+
const locale =
|
|
199
|
+
(
|
|
200
|
+
matches().find((match) => match.routeId === "/{-$locale}/")
|
|
201
|
+
?.params as Params
|
|
202
|
+
)?.locale ?? defaultLocale;
|
|
203
|
+
|
|
204
|
+
return (
|
|
205
|
+
<html dir={getHTMLTextDir(locale)} lang={locale}>
|
|
206
|
+
<head>
|
|
207
|
+
<HydrationScript />
|
|
208
|
+
</head>
|
|
209
|
+
<body>
|
|
210
|
+
<HeadContent />
|
|
211
|
+
<IntlayerProvider locale={locale}>
|
|
212
|
+
<Suspense>
|
|
213
|
+
<Outlet />
|
|
214
|
+
<TanStackRouterDevtools />
|
|
215
|
+
</Suspense>
|
|
216
|
+
</IntlayerProvider>
|
|
217
|
+
<Scripts />
|
|
218
|
+
</body>
|
|
219
|
+
</html>
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
> [!NOTE]
|
|
225
|
+
> Dans Solid, `useMatches` retourne un **signal** (accesseur réactif). Utilisez `matches()` (avec parenthèses) pour accéder à la valeur actuelle de manière réactive.
|
|
226
|
+
|
|
227
|
+
### Étape 6 : Créer la mise en page de la langue (Optionnel)
|
|
228
|
+
|
|
229
|
+
Créez une mise en page qui gère le préfixe de la langue et effectue la validation. Cette mise en page garantira que seules les langues valides sont traitées.
|
|
230
|
+
|
|
231
|
+
> Cette étape est facultative si vous n'avez pas besoin de valider le préfixe de la langue au niveau de la route.
|
|
232
|
+
|
|
233
|
+
```tsx fileName="src/routes/{-$locale}/route.tsx"
|
|
234
|
+
import { createFileRoute, Outlet, redirect } from "@tanstack/solid-router";
|
|
235
|
+
import { validatePrefix } from "intlayer";
|
|
236
|
+
|
|
237
|
+
export const Route = createFileRoute("/{-$locale}")({
|
|
238
|
+
beforeLoad: ({ params }) => {
|
|
239
|
+
const localeParam = params.locale;
|
|
240
|
+
|
|
241
|
+
// Valider le préfixe de la langue
|
|
242
|
+
const { isValid, localePrefix } = validatePrefix(localeParam);
|
|
243
|
+
|
|
244
|
+
if (!isValid) {
|
|
245
|
+
throw redirect({
|
|
246
|
+
to: "/{-$locale}/404",
|
|
247
|
+
params: { locale: localePrefix },
|
|
248
|
+
replace: true,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
component: Outlet,
|
|
253
|
+
});
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
> Ici, `{-$locale}` est un paramètre de route dynamique qui est remplacé par la langue actuelle. Cette notation rend le segment optionnel, lui permettant de fonctionner avec des modes de routage tels que `'prefix-no-default'`, etc.
|
|
257
|
+
|
|
258
|
+
> Sachez que ce segment peut causer des problèmes si vous utilisez plusieurs segments dynamiques dans la même route (par exemple, `/{-$locale}/autre-chemin/$unAutreCheminDynamique/...`).
|
|
259
|
+
> Pour le mode `'prefix-all'`, vous préférerez peut-être remplacer le segment par `$locale`.
|
|
260
|
+
> Pour le mode `'no-prefix'` ou `'search-params'`, vous pouvez supprimer complètement le segment.
|
|
261
|
+
|
|
262
|
+
### Étape 7 : Déclarer votre contenu
|
|
263
|
+
|
|
264
|
+
Créez et gérez vos déclarations de contenu pour stocker les traductions :
|
|
265
|
+
|
|
266
|
+
```tsx fileName="src/contents/page.content.ts"
|
|
267
|
+
import type { Dictionary } from "intlayer";
|
|
268
|
+
|
|
269
|
+
import { t } from "intlayer";
|
|
270
|
+
|
|
271
|
+
const appContent = {
|
|
272
|
+
content: {
|
|
273
|
+
links: {
|
|
274
|
+
about: t({
|
|
275
|
+
en: "About",
|
|
276
|
+
es: "Acerca de",
|
|
277
|
+
fr: "À propos",
|
|
278
|
+
}),
|
|
279
|
+
home: t({
|
|
280
|
+
en: "Home",
|
|
281
|
+
es: "Inicio",
|
|
282
|
+
fr: "Accueil",
|
|
283
|
+
}),
|
|
284
|
+
},
|
|
285
|
+
meta: {
|
|
286
|
+
title: t({
|
|
287
|
+
en: "Welcome to Intlayer + TanStack Router",
|
|
288
|
+
es: "Bienvenido a Intlayer + TanStack Router",
|
|
289
|
+
fr: "Bienvenue à Intlayer + TanStack Router",
|
|
290
|
+
}),
|
|
291
|
+
description: t({
|
|
292
|
+
en: "This is an example of using Intlayer with TanStack Router",
|
|
293
|
+
es: "Este es un exemple de uso de Intlayer con TanStack Router",
|
|
294
|
+
fr: "Ceci est un exemple d'utilisation d'Intlayer avec TanStack Router",
|
|
295
|
+
}),
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
key: "app",
|
|
299
|
+
} satisfies Dictionary;
|
|
300
|
+
|
|
301
|
+
export default appContent;
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
> Vos déclarations de contenu peuvent être définies n'importe où dans votre application tant qu'elles sont incluses dans le répertoire `contentDir` (par défaut, `./app`). Et qu'elles correspondent à l'extension du fichier de déclaration de contenu (par défaut, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
|
|
305
|
+
|
|
306
|
+
> Pour plus de détails, reportez-vous à la [documentation sur la déclaration de contenu](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/dictionary/content_file.md).
|
|
307
|
+
|
|
308
|
+
### Étape 8 : Créer des composants et des hooks tenant compte de la langue
|
|
309
|
+
|
|
310
|
+
Créez un composant `LocalizedLink` pour une navigation tenant compte de la langue :
|
|
311
|
+
|
|
312
|
+
```tsx fileName="src/components/LocalizedLink.tsx"
|
|
313
|
+
import { Link, type LinkProps } from "@tanstack/solid-router";
|
|
314
|
+
import { getPrefix } from "intlayer";
|
|
315
|
+
import { useLocale } from "solid-intlayer";
|
|
316
|
+
import type { JSX } from "solid-js";
|
|
317
|
+
|
|
318
|
+
export const LOCALE_ROUTE = "{-$locale}" as const;
|
|
319
|
+
|
|
320
|
+
export type RemoveLocaleParam<TVal> = TVal extends string
|
|
321
|
+
? RemoveLocaleFromString<TVal>
|
|
322
|
+
: TVal;
|
|
323
|
+
|
|
324
|
+
export type To = RemoveLocaleParam<LinkProps["to"]>;
|
|
325
|
+
|
|
326
|
+
type CollapseDoubleSlashes<TString extends string> =
|
|
327
|
+
TString extends `${infer THead}//${infer TTail}`
|
|
328
|
+
? CollapseDoubleSlashes<`${THead}/${TTail}`>
|
|
329
|
+
: TString;
|
|
330
|
+
|
|
331
|
+
export type LocalizedLinkProps = Omit<LinkProps, "to"> & {
|
|
332
|
+
to?: To;
|
|
333
|
+
} & JSX.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
334
|
+
|
|
335
|
+
type RemoveAll<
|
|
336
|
+
TString extends string,
|
|
337
|
+
TSub extends string,
|
|
338
|
+
> = TString extends `${infer THead}${TSub}${infer TTail}`
|
|
339
|
+
? RemoveAll<`${THead}${TTail}`, TSub>
|
|
340
|
+
: TString;
|
|
341
|
+
|
|
342
|
+
type RemoveLocaleFromString<TString extends string> = CollapseDoubleSlashes<
|
|
343
|
+
RemoveAll<TString, typeof LOCALE_ROUTE>
|
|
344
|
+
>;
|
|
345
|
+
|
|
346
|
+
export const LocalizedLink = (props: LocalizedLinkProps) => {
|
|
347
|
+
const { locale } = useLocale();
|
|
348
|
+
|
|
349
|
+
return (
|
|
350
|
+
<Link
|
|
351
|
+
{...props}
|
|
352
|
+
params={{
|
|
353
|
+
locale: getPrefix(locale()).localePrefix,
|
|
354
|
+
...(typeof props.params === "object" ? props.params : {}),
|
|
355
|
+
}}
|
|
356
|
+
to={`/${LOCALE_ROUTE}${props.to ?? ""}` as LinkProps["to"]}
|
|
357
|
+
/>
|
|
358
|
+
);
|
|
359
|
+
};
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
Ce composant a deux objectifs :
|
|
363
|
+
|
|
364
|
+
- Supprimer le préfixe inutile `{-$locale}` de l'URL.
|
|
365
|
+
- Injecter le paramètre de langue dans l'URL pour garantir que l'utilisateur est directement redirigé vers la route localisée.
|
|
366
|
+
|
|
367
|
+
Ensuite, nous pouvons créer un hook `useLocalizedNavigate` pour la navigation programmatique :
|
|
368
|
+
|
|
369
|
+
```tsx fileName="src/hooks/useLocalizedNavigate.tsx"
|
|
370
|
+
import { useNavigate } from "@tanstack/solid-router";
|
|
371
|
+
import { getLocalizedUrl } from "intlayer";
|
|
372
|
+
import { useLocale } from "solid-intlayer";
|
|
373
|
+
|
|
374
|
+
export const useLocalizedNavigate = () => {
|
|
375
|
+
const navigate = useNavigate();
|
|
376
|
+
const { locale } = useLocale();
|
|
377
|
+
|
|
378
|
+
const localizedNavigate = (to: string) => {
|
|
379
|
+
const localizedTo = getLocalizedUrl(to, locale());
|
|
380
|
+
return navigate({ to: localizedTo });
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
return localizedNavigate;
|
|
384
|
+
};
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
### Étape 9 : Utiliser Intlayer dans vos pages
|
|
388
|
+
|
|
389
|
+
Accédez à vos dictionnaires de contenu partout dans votre application :
|
|
390
|
+
|
|
391
|
+
#### Page d'accueil localisée
|
|
392
|
+
|
|
393
|
+
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
394
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
395
|
+
import { useIntlayer } from "solid-intlayer";
|
|
396
|
+
import { LocalizedLink } from "@/components/LocalizedLink";
|
|
397
|
+
|
|
398
|
+
export const Route = createFileRoute("/{-$locale}/")({
|
|
399
|
+
component: RouteComponent,
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
function RouteComponent() {
|
|
403
|
+
const content = useIntlayer("index-page");
|
|
404
|
+
|
|
405
|
+
return (
|
|
406
|
+
<main>
|
|
407
|
+
<h1>{content().heroTitle}</h1>
|
|
408
|
+
<p>{content().heroDesc}</p>
|
|
409
|
+
<div>
|
|
410
|
+
<LocalizedLink to="/">{content().navHome}</LocalizedLink>
|
|
411
|
+
<LocalizedLink to="/about">{content().navAbout}</LocalizedLink>
|
|
412
|
+
</div>
|
|
413
|
+
</main>
|
|
414
|
+
);
|
|
415
|
+
}
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
> [!NOTE]
|
|
419
|
+
> Dans Solid, `useIntlayer` retourne une fonction **accesseur** (par exemple, `content()`). Vous devez appeler cette fonction pour accéder au contenu réactif.
|
|
420
|
+
>
|
|
421
|
+
> Pour en savoir plus sur le hook `useIntlayer`, reportez-vous à la [documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/solid-intlayer/useIntlayer.md).
|
|
422
|
+
|
|
423
|
+
### Étape 10 : Créer un composant de changement de langue (Locale Switcher)
|
|
424
|
+
|
|
425
|
+
Créez un composant pour permettre aux utilisateurs de changer de langue :
|
|
426
|
+
|
|
427
|
+
```tsx fileName="src/components/LocaleSwitcher.tsx"
|
|
428
|
+
import { useLocation } from "@tanstack/solid-router";
|
|
429
|
+
import { getLocaleName, getPathWithoutLocale, getPrefix } from "intlayer";
|
|
430
|
+
import { For } from "solid-js";
|
|
431
|
+
import { useIntlayer, useLocale } from "solid-intlayer";
|
|
432
|
+
import { LocalizedLink, type To } from "./LocalizedLink";
|
|
433
|
+
|
|
434
|
+
export const LocaleSwitcher = () => {
|
|
435
|
+
const content = useIntlayer("locale-switcher");
|
|
436
|
+
const location = useLocation();
|
|
437
|
+
|
|
438
|
+
const { availableLocales, locale, setLocale } = useLocale();
|
|
439
|
+
|
|
440
|
+
const pathWithoutLocale = () => getPathWithoutLocale(location().pathname);
|
|
441
|
+
|
|
442
|
+
return (
|
|
443
|
+
<div class="flex flex-row gap-2">
|
|
444
|
+
<For each={availableLocales}>
|
|
445
|
+
{(localeEl) => (
|
|
446
|
+
<LocalizedLink
|
|
447
|
+
aria-current={localeEl === locale() ? "page" : undefined}
|
|
448
|
+
onClick={() => setLocale(localeEl)}
|
|
449
|
+
params={{ locale: getPrefix(localeEl).localePrefix }}
|
|
450
|
+
to={pathWithoutLocale() as To}
|
|
451
|
+
>
|
|
452
|
+
{getLocaleName(localeEl)}
|
|
453
|
+
</LocalizedLink>
|
|
454
|
+
)}
|
|
455
|
+
</For>
|
|
456
|
+
</div>
|
|
457
|
+
);
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
export default LocaleSwitcher;
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
> [!NOTE]
|
|
464
|
+
> Dans Solid, `locale` provenant de `useLocale` est un **accesseur de signal**. Utilisez `locale()` (avec parenthèses) pour lire sa valeur actuelle de manière réactive.
|
|
465
|
+
>
|
|
466
|
+
> Pour en savoir plus sur le hook `useLocale`, reportez-vous à la [documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/solid-intlayer/useLocale.md).
|
|
467
|
+
|
|
468
|
+
### Étape 11 : Gestion des attributs HTML
|
|
469
|
+
|
|
470
|
+
Comme vu à l'étape 5, vous pouvez gérer les attributs `lang` et `dir` de la balise `html` en utilisant `useMatches` dans votre composant racine. Cela garantit que les attributs corrects sont définis sur le serveur et le client.
|
|
471
|
+
|
|
472
|
+
```tsx fileName="src/routes/__root.tsx"
|
|
473
|
+
const RootComponent: ParentComponent = (props) => {
|
|
474
|
+
const matches = useMatches();
|
|
475
|
+
|
|
476
|
+
// Essayer de trouver la langue dans les paramètres de n'importe quel match actif
|
|
477
|
+
const locale =
|
|
478
|
+
(
|
|
479
|
+
matches().find((match) => match.routeId === "/{-$locale}/")
|
|
480
|
+
?.params as Params
|
|
481
|
+
)?.locale ?? defaultLocale;
|
|
482
|
+
|
|
483
|
+
return (
|
|
484
|
+
<html dir={getHTMLTextDir(locale)} lang={locale}>
|
|
485
|
+
{/* ... */}
|
|
486
|
+
</html>
|
|
487
|
+
);
|
|
488
|
+
};
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
---
|
|
492
|
+
|
|
493
|
+
### Étape 12 : Ajouter un middleware (Optionnel)
|
|
494
|
+
|
|
495
|
+
Vous pouvez également utiliser `intlayerProxy` pour ajouter un routage côté serveur à votre application. Ce plugin détectera automatiquement la langue actuelle en fonction de l'URL et définira le cookie de langue approprié. Si aucune langue n'est spécifiée, le plugin déterminera la langue la plus appropriée en fonction des préférences linguistiques du navigateur de l'utilisateur. Si aucune langue n'est détectée, il redirigera vers la langue par défaut.
|
|
496
|
+
|
|
497
|
+
> Notez que pour utiliser `intlayerProxy` en production, vous devez déplacer le package `vite-intlayer` de `devDependencies` vers `dependencies`.
|
|
498
|
+
|
|
499
|
+
```typescript {7,14-17} fileName="vite.config.ts"
|
|
500
|
+
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
501
|
+
import solid from "vite-plugin-solid";
|
|
502
|
+
import { nitro } from "nitro/vite";
|
|
503
|
+
import { defineConfig } from "vite";
|
|
504
|
+
import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
505
|
+
import viteTsConfigPaths from "vite-tsconfig-paths";
|
|
506
|
+
|
|
507
|
+
export default defineConfig({
|
|
508
|
+
plugins: [
|
|
509
|
+
intlayerProxy(), // Le proxy doit être placé avant le serveur si vous utilisez Nitro
|
|
510
|
+
nitro(),
|
|
511
|
+
viteTsConfigPaths({
|
|
512
|
+
projects: ["./tsconfig.json"],
|
|
513
|
+
}),
|
|
514
|
+
intlayer(),
|
|
515
|
+
tanstackStart({
|
|
516
|
+
router: {
|
|
517
|
+
routeFileIgnorePattern:
|
|
518
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
519
|
+
},
|
|
520
|
+
}),
|
|
521
|
+
solid(),
|
|
522
|
+
],
|
|
523
|
+
});
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
---
|
|
527
|
+
|
|
528
|
+
### Étape 13 : Internationaliser vos métadonnées (Optionnel)
|
|
529
|
+
|
|
530
|
+
Vous pouvez également utiliser la fonction `getIntlayer` pour accéder à vos dictionnaires de contenu à l'intérieur du chargeur `head` pour des métadonnées tenant compte de la localisation :
|
|
531
|
+
|
|
532
|
+
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
533
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
534
|
+
import { getIntlayer } from "intlayer";
|
|
535
|
+
|
|
536
|
+
export const Route = createFileRoute("/{-$locale}/")({
|
|
537
|
+
component: RouteComponent,
|
|
538
|
+
head: ({ params }) => {
|
|
539
|
+
const { locale } = params;
|
|
540
|
+
const metaContent = getIntlayer("page-metadata", locale);
|
|
541
|
+
|
|
542
|
+
return {
|
|
543
|
+
meta: [
|
|
544
|
+
{ title: metaContent.title },
|
|
545
|
+
{ content: metaContent.description, name: "description" },
|
|
546
|
+
],
|
|
547
|
+
};
|
|
548
|
+
},
|
|
549
|
+
});
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
---
|
|
553
|
+
|
|
554
|
+
### Étape 14 : Récupérer la langue dans vos actions serveur (Optionnel)
|
|
555
|
+
|
|
556
|
+
Vous voudrez peut-être accéder à la langue actuelle depuis vos actions serveur ou vos points de terminaison d'API.
|
|
557
|
+
Vous pouvez le faire en utilisant l'utilitaire `getLocale` d'`intlayer`.
|
|
558
|
+
|
|
559
|
+
Voici un exemple utilisant les fonctions serveur de TanStack Start :
|
|
560
|
+
|
|
561
|
+
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
562
|
+
import { createServerFn } from "@tanstack/solid-start";
|
|
563
|
+
import {
|
|
564
|
+
getRequestHeader,
|
|
565
|
+
getRequestHeaders,
|
|
566
|
+
} from "@tanstack/solid-start/server";
|
|
567
|
+
import { getCookie, getIntlayer, getLocale } from "intlayer";
|
|
568
|
+
|
|
569
|
+
export const getLocaleServer = createServerFn().handler(async () => {
|
|
570
|
+
const locale = await getLocale({
|
|
571
|
+
// Récupérer le cookie de la requête (par défaut : 'INTLAYER_LOCALE')
|
|
572
|
+
getCookie: (name) => {
|
|
573
|
+
const cookieString = getRequestHeader("cookie");
|
|
574
|
+
|
|
575
|
+
return getCookie(name, cookieString);
|
|
576
|
+
},
|
|
577
|
+
// Récupérer l'en-tête de la requête (par défaut : 'x-intlayer-locale')
|
|
578
|
+
// Repli en utilisant la négociation Accept-Language
|
|
579
|
+
getHeader: (name) => getRequestHeader(name),
|
|
580
|
+
});
|
|
581
|
+
|
|
582
|
+
// Récupérer du contenu en utilisant getIntlayer()
|
|
583
|
+
const content = getIntlayer("app", locale);
|
|
584
|
+
|
|
585
|
+
return { locale, content };
|
|
586
|
+
});
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
---
|
|
590
|
+
|
|
591
|
+
### Étape 15 : Gérer les pages non trouvées (Optionnel)
|
|
592
|
+
|
|
593
|
+
Lorsqu'un utilisateur visite une page inexistante, vous pouvez afficher une page 404 personnalisée et le préfixe de langue peut impacter la manière dont la page non trouvée est déclenchée.
|
|
594
|
+
|
|
595
|
+
#### Comprendre la gestion 404 de TanStack Router avec les préfixes de langue
|
|
596
|
+
|
|
597
|
+
Dans TanStack Router, la gestion des pages 404 avec des routes localisées nécessite une approche à plusieurs niveaux :
|
|
598
|
+
|
|
599
|
+
1. **Route 404 dédiée** : Une route spécifique pour afficher l'interface 404.
|
|
600
|
+
2. **Validation au niveau de la route** : Valide les préfixes de langue et redirige les préfixes invalides vers la page 404.
|
|
601
|
+
3. **Route fourre-tout (Catch-all)** : Capture tous les chemins non correspondants à l'intérieur du segment de langue.
|
|
602
|
+
|
|
603
|
+
```tsx fileName="src/routes/{-$locale}/404.tsx"
|
|
604
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
605
|
+
|
|
606
|
+
// Cela crée une route dédiée /[locale]/404
|
|
607
|
+
// Elle est utilisée à la fois comme route directe et importée en tant que composant dans d'autres fichiers
|
|
608
|
+
export const Route = createFileRoute("/{-$locale}/404")({
|
|
609
|
+
component: NotFoundComponent,
|
|
610
|
+
});
|
|
611
|
+
|
|
612
|
+
// Exporté séparément pour pouvoir être réutilisé dans notFoundComponent et les routes fourre-tout
|
|
613
|
+
export function NotFoundComponent() {
|
|
614
|
+
return (
|
|
615
|
+
<div>
|
|
616
|
+
<h1>404</h1>
|
|
617
|
+
</div>
|
|
618
|
+
);
|
|
619
|
+
}
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
```tsx fileName="src/routes/{-$locale}/route.tsx"
|
|
623
|
+
import { createFileRoute, Outlet, redirect } from "@tanstack/solid-router";
|
|
624
|
+
import { validatePrefix } from "intlayer";
|
|
625
|
+
import { NotFoundComponent } from "./404";
|
|
626
|
+
|
|
627
|
+
export const Route = createFileRoute("/{-$locale}")({
|
|
628
|
+
// beforeLoad s'exécute avant le rendu de la route (sur le serveur et le client)
|
|
629
|
+
// C'est l'endroit idéal pour valider le préfixe de langue
|
|
630
|
+
beforeLoad: ({ params }) => {
|
|
631
|
+
const localeParam = params.locale;
|
|
632
|
+
|
|
633
|
+
// validatePrefix vérifie si la langue est valide selon votre configuration intlayer
|
|
634
|
+
const { isValid, localePrefix } = validatePrefix(localeParam);
|
|
635
|
+
|
|
636
|
+
if (!isValid) {
|
|
637
|
+
// Préfixe de langue invalide - rediriger vers la page 404 avec un préfixe de langue valide
|
|
638
|
+
throw redirect({
|
|
639
|
+
to: "/{-$locale}/404",
|
|
640
|
+
params: { locale: localePrefix },
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
component: Outlet,
|
|
645
|
+
// notFoundComponent est appelé lorsqu'une route enfant n'existe pas
|
|
646
|
+
// par exemple, /en/page-inexistante déclenche cela à l'intérieur de la mise en page /en
|
|
647
|
+
notFoundComponent: NotFoundComponent,
|
|
648
|
+
});
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
```tsx fileName="src/routes/{-$locale}/$.tsx"
|
|
652
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
653
|
+
|
|
654
|
+
import { NotFoundComponent } from "./404";
|
|
655
|
+
|
|
656
|
+
// La route $ (splat/catch-all) correspond à n'importe quel chemin qui ne correspond pas aux autres routes
|
|
657
|
+
// par exemple, /en/certains/chemins/profondément/imbriqués/invalides
|
|
658
|
+
// Cela garantit que TOUS les chemins non correspondants à l'intérieur d'une langue affichent la page 404
|
|
659
|
+
// Sans cela, les chemins profonds non correspondants pourraient afficher une page blanche ou une erreur
|
|
660
|
+
export const Route = createFileRoute("/{-$locale}/$")({
|
|
661
|
+
component: NotFoundComponent,
|
|
662
|
+
});
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
### (Optionnel) Étape 16 : Extraire le contenu de vos composants
|
|
666
|
+
|
|
667
|
+
Si vous avez une base de code existante, transformer des milliers de fichiers peut prendre du temps.
|
|
668
|
+
|
|
669
|
+
Pour faciliter ce processus, Intlayer propose un [compilateur](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/compiler.md) / [extracteur](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/cli/extract.md) pour transformer vos composants et extraire le contenu.
|
|
670
|
+
|
|
671
|
+
Pour le configurer, vous pouvez ajouter une section `compiler` dans votre fichier `intlayer.config.ts` :
|
|
672
|
+
|
|
673
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
674
|
+
import { type IntlayerConfig } from "intlayer";
|
|
675
|
+
|
|
676
|
+
const config: IntlayerConfig = {
|
|
677
|
+
// ... Reste de votre config
|
|
678
|
+
compiler: {
|
|
679
|
+
/**
|
|
680
|
+
* Indique si le compilateur doit être activé.
|
|
681
|
+
*/
|
|
682
|
+
enabled: true,
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Définit le chemin des fichiers de sortie
|
|
686
|
+
*/
|
|
687
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Indique si les composants doivent être enregistrés après avoir été transformés.
|
|
691
|
+
*
|
|
692
|
+
* - Si `true`, le compilateur réécrira le fichier du composant sur le disque. Ainsi, la transformation sera permanente, et le compilateur ignorera la transformation pour le prochain processus. De cette façon, le compilateur peut transformer l'application, puis il peut être supprimé.
|
|
693
|
+
*
|
|
694
|
+
* - Si `false`, le compilateur injectera l'appel de fonction `useIntlayer()` dans le code de la sortie de construction uniquement, et gardera la base de code intacte. La transformation se fera uniquement en mémoire.
|
|
695
|
+
*/
|
|
696
|
+
saveComponents: false,
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Préfixe de clé de dictionnaire
|
|
700
|
+
*/
|
|
701
|
+
dictionaryKeyPrefix: "",
|
|
702
|
+
},
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
export default config;
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
709
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
710
|
+
const config = {
|
|
711
|
+
// ... Reste de votre config
|
|
712
|
+
compiler: {
|
|
713
|
+
/**
|
|
714
|
+
* Indique si le compilateur doit être activé.
|
|
715
|
+
*/
|
|
716
|
+
enabled: true,
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Définit le chemin des fichiers de sortie
|
|
720
|
+
*/
|
|
721
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Indique si les composants doivent être enregistrés après avoir été transformés.
|
|
725
|
+
*
|
|
726
|
+
* - Si `true`, le compilateur réécrira le fichier du composant sur le disque. Ainsi, la transformation sera permanente, et le compilateur ignorera la transformation pour le prochain processus. De cette façon, le compilateur peut transformer l'application, puis il peut être supprimé.
|
|
727
|
+
*
|
|
728
|
+
* - Si `false`, le compilateur injectera l'appel de fonction `useIntlayer()` dans le code de la sortie de construction uniquement, et gardera la base de code intacte. La transformation se fera uniquement en mémoire.
|
|
729
|
+
*/
|
|
730
|
+
saveComponents: false,
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Préfixe de clé de dictionnaire
|
|
734
|
+
*/
|
|
735
|
+
dictionaryKeyPrefix: "",
|
|
736
|
+
},
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
export default config;
|
|
740
|
+
```
|
|
741
|
+
|
|
742
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
743
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
744
|
+
const config = {
|
|
745
|
+
// ... Reste de votre config
|
|
746
|
+
compiler: {
|
|
747
|
+
/**
|
|
748
|
+
* Indique si le compilateur doit être activé.
|
|
749
|
+
*/
|
|
750
|
+
enabled: true,
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Définit le chemin des fichiers de sortie
|
|
754
|
+
*/
|
|
755
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Indique si les composants doivent être enregistrés après avoir été transformés.
|
|
759
|
+
*
|
|
760
|
+
* - Si `true`, le compilateur réécrira le fichier du composant sur le disque. Ainsi, la transformation sera permanente, et le compilateur ignorera la transformation pour le prochain processus. De cette façon, le compilateur peut transformer l'application, puis il peut être supprimé.
|
|
761
|
+
*
|
|
762
|
+
* - Si `false`, le compilateur injectera l'appel de fonction `useIntlayer()` dans le code de la sortie de construction uniquement, et gardera la base de code intacte. La transformation se fera uniquement en mémoire.
|
|
763
|
+
*/
|
|
764
|
+
saveComponents: false,
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Préfixe de clé de dictionnaire
|
|
768
|
+
*/
|
|
769
|
+
dictionaryKeyPrefix: "",
|
|
770
|
+
},
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
module.exports = config;
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
<Tabs>
|
|
777
|
+
<Tab value='Extract command'>
|
|
778
|
+
|
|
779
|
+
Exécutez l'extracteur pour transformer vos composants et extraire le contenu
|
|
780
|
+
|
|
781
|
+
```bash packageManager="npm"
|
|
782
|
+
npx intlayer extract
|
|
783
|
+
```
|
|
784
|
+
|
|
785
|
+
```bash packageManager="pnpm"
|
|
786
|
+
pnpm intlayer extract
|
|
787
|
+
```
|
|
788
|
+
|
|
789
|
+
```bash packageManager="yarn"
|
|
790
|
+
yarn intlayer extract
|
|
791
|
+
```
|
|
792
|
+
|
|
793
|
+
```bash packageManager="bun"
|
|
794
|
+
bun x intlayer extract
|
|
795
|
+
```
|
|
796
|
+
|
|
797
|
+
</Tab>
|
|
798
|
+
<Tab value='Babel compiler'>
|
|
799
|
+
|
|
800
|
+
Mettez à jour votre `vite.config.ts` pour inclure le plugin `intlayerCompiler` :
|
|
801
|
+
|
|
802
|
+
```ts fileName="vite.config.ts"
|
|
803
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
804
|
+
import { defineConfig } from "vite";
|
|
805
|
+
import { devtools } from "@tanstack/devtools-vite";
|
|
806
|
+
import viteTsConfigPaths from "vite-tsconfig-paths";
|
|
807
|
+
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
808
|
+
import solidPlugin from "vite-plugin-solid";
|
|
809
|
+
|
|
810
|
+
export default defineConfig({
|
|
811
|
+
plugins: [
|
|
812
|
+
devtools(),
|
|
813
|
+
viteTsConfigPaths({
|
|
814
|
+
projects: ["./tsconfig.json"],
|
|
815
|
+
}),
|
|
816
|
+
tanstackStart({
|
|
817
|
+
router: {
|
|
818
|
+
routeFileIgnorePattern:
|
|
819
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
820
|
+
},
|
|
821
|
+
}),
|
|
822
|
+
solidPlugin({ ssr: true }),
|
|
823
|
+
intlayer(),
|
|
824
|
+
intlayerCompiler(),
|
|
825
|
+
],
|
|
826
|
+
});
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
```bash packageManager="npm"
|
|
830
|
+
npm run build # Ou npm run dev
|
|
831
|
+
```
|
|
832
|
+
|
|
833
|
+
```bash packageManager="pnpm"
|
|
834
|
+
pnpm run build # Ou pnpm run dev
|
|
835
|
+
```
|
|
836
|
+
|
|
837
|
+
```bash packageManager="yarn"
|
|
838
|
+
yarn build # Ou yarn dev
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
```bash packageManager="bun"
|
|
842
|
+
bun run build # Ou bun run dev
|
|
843
|
+
```
|
|
844
|
+
|
|
845
|
+
</Tab>
|
|
846
|
+
</Tabs>
|
|
847
|
+
|
|
848
|
+
---
|
|
849
|
+
|
|
850
|
+
### Étape 17 : Configurer TypeScript (Optionnel)
|
|
851
|
+
|
|
852
|
+
Intlayer utilise l'augmentation de module pour bénéficier des avantages de TypeScript et rendre votre base de code plus robuste.
|
|
853
|
+
|
|
854
|
+
Assurez-vous que votre configuration TypeScript inclut les types autogénérés :
|
|
855
|
+
|
|
856
|
+
```json5 fileName="tsconfig.json"
|
|
857
|
+
{
|
|
858
|
+
// ... vos configurations existantes
|
|
859
|
+
include: [
|
|
860
|
+
// ... vos inclusions existantes
|
|
861
|
+
".intlayer/**/*.ts", // Inclure les types auto-générés
|
|
862
|
+
],
|
|
863
|
+
}
|
|
864
|
+
```
|
|
865
|
+
|
|
866
|
+
---
|
|
867
|
+
|
|
868
|
+
### Configuration Git
|
|
869
|
+
|
|
870
|
+
Il est recommandé d'ignorer les fichiers générés par Intlayer. Cela vous permet d'éviter de les commettre dans votre dépôt Git.
|
|
871
|
+
|
|
872
|
+
Pour ce faire, vous pouvez ajouter les instructions suivantes à votre fichier `.gitignore` :
|
|
873
|
+
|
|
874
|
+
```plaintext fileName=".gitignore"
|
|
875
|
+
# Ignorer les fichiers générés par Intlayer
|
|
876
|
+
.intlayer
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
---
|
|
880
|
+
|
|
881
|
+
## Extension VS Code
|
|
882
|
+
|
|
883
|
+
Pour améliorer votre expérience de développement avec Intlayer, vous pouvez installer l'**extension officielle Intlayer VS Code**.
|
|
884
|
+
|
|
885
|
+
[Installer depuis le VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
|
|
886
|
+
|
|
887
|
+
Cette extension fournit :
|
|
888
|
+
|
|
889
|
+
- **Autocomplétion** pour les clés de traduction.
|
|
890
|
+
- **Détection des erreurs en temps réel** pour les traductions manquantes.
|
|
891
|
+
- **Aperçus en ligne** du contenu traduit.
|
|
892
|
+
- **Actions rapides** pour créer et mettre à jour facilement les traductions.
|
|
893
|
+
|
|
894
|
+
Pour plus de détails sur l'utilisation de l'extension, reportez-vous à la [documentation de l'extension Intlayer VS Code](https://intlayer.org/doc/vs-code-extension).
|
|
895
|
+
|
|
896
|
+
---
|
|
897
|
+
|
|
898
|
+
## Aller plus loin
|
|
899
|
+
|
|
900
|
+
Pour aller plus loin, vous pouvez implémenter l'[éditeur visuel](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/intlayer_visual_editor.md) ou externaliser votre contenu en utilisant le [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/intlayer_CMS.md).
|
|
901
|
+
|
|
902
|
+
---
|
|
903
|
+
|
|
904
|
+
## Références de la documentation
|
|
905
|
+
|
|
906
|
+
- [Documentation Intlayer](https://intlayer.org)
|
|
907
|
+
- [Documentation Tanstack Start](https://tanstack.com/start/latest)
|
|
908
|
+
- [Hook useIntlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/solid-intlayer/useIntlayer.md)
|
|
909
|
+
- [Hook useLocale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/solid-intlayer/useLocale.md)
|
|
910
|
+
- [Déclaration de contenu](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/dictionary/content_file.md)
|
|
911
|
+
- [Configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/configuration.md)
|