@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,912 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-03-25
|
|
3
|
+
updatedAt: 2026-03-25
|
|
4
|
+
title: i18n Tanstack Start - How to translate a Tanstack Start App using Solid.js in 2026
|
|
5
|
+
description: Learn how to add internationalisation (i18n) to your Tanstack Start application using Intlayer and Solid.js. Follow this comprehensive guide to make your app multi-lingual with locale-aware routing.
|
|
6
|
+
keywords:
|
|
7
|
+
- Internationalisation
|
|
8
|
+
- Documentation
|
|
9
|
+
- Intlayer
|
|
10
|
+
- Tanstack Start
|
|
11
|
+
- Solid
|
|
12
|
+
- i18n
|
|
13
|
+
- TypeScript
|
|
14
|
+
- Locale Routing
|
|
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: "Added for Tanstack Start Solid.js"
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Translate your Tanstack Start website with Solid.js using Intlayer | Internationalisation (i18n)
|
|
28
|
+
|
|
29
|
+
## Table of Contents
|
|
30
|
+
|
|
31
|
+
<TOC/>
|
|
32
|
+
|
|
33
|
+
This guide demonstrates how to integrate **Intlayer** for seamless internationalisation in Tanstack Start projects with Solid.js, locale-aware routing, TypeScript support, and modern development practices.
|
|
34
|
+
|
|
35
|
+
## What is Intlayer?
|
|
36
|
+
|
|
37
|
+
**Intlayer** is an innovative, open-source internationalisation (i18n) library designed to simplify multi-lingual support in modern web applications.
|
|
38
|
+
|
|
39
|
+
With Intlayer, you can:
|
|
40
|
+
|
|
41
|
+
- **Manage translations easily** using declarative dictionaries at the component level.
|
|
42
|
+
- **Localise metadata, routes, and content dynamically**.
|
|
43
|
+
- **Ensure TypeScript support** with auto-generated types, improving autocompletion and error detection.
|
|
44
|
+
- **Benefit from advanced features**, such as dynamic locale detection and switching.
|
|
45
|
+
- **Enable locale-aware routing** with Tanstack Start's file-based routing system.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Step-by-Step Guide to Setting Up Intlayer in a Tanstack Start Application
|
|
50
|
+
|
|
51
|
+
<Tabs defaultTab="video">
|
|
52
|
+
<Tab label="Video" value="video">
|
|
53
|
+
|
|
54
|
+
<iframe title="The best i18n solution for Tanstack Start? Discover 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="Demo CodeSandbox - How to Internationalise your application using 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
|
+
See the [Application Template](https://github.com/aymericzip/intlayer-tanstack-start-solid-template) on GitHub.
|
|
71
|
+
|
|
72
|
+
### Step 1: Project Creation
|
|
73
|
+
|
|
74
|
+
First, create a new TanStack Start project following the [Start New Project](https://tanstack.com/start/latest/docs/framework/solid/quick-start) guide on the TanStack Start website.
|
|
75
|
+
|
|
76
|
+
### Step 2: Install Intlayer Packages
|
|
77
|
+
|
|
78
|
+
Install the necessary packages using your preferred package manager:
|
|
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
|
+
The core package that provides internationalisation tools for configuration management, translation, [content declaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/dictionary/content_file.md), transpilation, and [CLI commands](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/cli/index.md).
|
|
107
|
+
|
|
108
|
+
- **solid-intlayer**
|
|
109
|
+
The package that integrates Intlayer into the Solid application. It provides context providers and hooks for Solid internationalisation.
|
|
110
|
+
|
|
111
|
+
- **vite-intlayer**
|
|
112
|
+
Includes the Vite plugin to integrate Intlayer with the [Vite bundler](https://vite.dev/guide/why.html#why-bundle-for-production), as well as middleware to detect the user's preferred locale, manage cookies, and handle URL redirection.
|
|
113
|
+
|
|
114
|
+
### Step 3: Configuration of your project
|
|
115
|
+
|
|
116
|
+
Create a configuration file to set up the languages of your 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
|
+
> Through this configuration file, you can configure localised URLs, middleware redirection, cookie names, the location and extension of your content declarations, disable Intlayer logs in the console, and more. For a complete list of available parameters, refer to the [configuration documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/configuration.md).
|
|
134
|
+
|
|
135
|
+
### Step 4: Integrate Intlayer in your Vite Configuration
|
|
136
|
+
|
|
137
|
+
Add the intlayer plugin in your 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
|
+
> The `intlayer()` Vite plugin is used to integrate Intlayer with Vite. It ensures the building of content declaration files and monitors them in development mode. It defines the Intlayer environment variables within the Vite application. Additionally, it provides aliases to reduce performance overhead.
|
|
166
|
+
|
|
167
|
+
### Step 5: Create the Root Layout
|
|
168
|
+
|
|
169
|
+
Configure your root layout to support internationalisation by using `useMatches` to detect the current locale and setting the `lang` and `dir` attributes on the `html` tag.
|
|
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
|
+
// Try to find the locale in the parameters of any active match
|
|
197
|
+
// This assumes you use the dynamic segment "/{-$locale}" in your route tree
|
|
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
|
+
> in Solid files, `useMatches` returns a **signal** (reactive accessor). Use `matches()` (with parentheses) to reactively access the current value.
|
|
226
|
+
|
|
227
|
+
### Step 6: Create the Locale Layout (Optional)
|
|
228
|
+
|
|
229
|
+
Create a layout that handles the locale prefix and performs validation. This layout will ensure only valid locales are processed.
|
|
230
|
+
|
|
231
|
+
> This step is optional if you don't need to validate the locale prefix at the route level.
|
|
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
|
+
// Validate the locale prefix
|
|
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
|
+
> Here, `{-$locale}` is a dynamic route parameter that is replaced by the current locale. This notation makes the slot optional, allowing it to work with routing modes like `'prefix-no-default'` etc.
|
|
257
|
+
|
|
258
|
+
> Be aware that this slot may cause issues if you use multiple dynamic segments in the same route (ex: `/{-$locale}/other-path/$anotherDynamicPath/...`).
|
|
259
|
+
> For `'prefix-all'` mode, you might prefer switching the slot to `$locale`.
|
|
260
|
+
> For `'no-prefix'` or `'search-params'` mode, you can remove the slot entirely.
|
|
261
|
+
|
|
262
|
+
### Step 7: Declare Your Content
|
|
263
|
+
|
|
264
|
+
Create and manage your content declarations to store translations:
|
|
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 ejemplo 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
|
+
> Your content declarations can be defined anywhere in your application, as long as they are included in the `contentDir` directory (by default, `./app`). And match the content declaration file extension (by default, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
|
|
305
|
+
|
|
306
|
+
> For more details, refer to the [content declaration documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/dictionary/content_file.md).
|
|
307
|
+
|
|
308
|
+
### Step 8: Utilise Locale-Aware Components and Hooks
|
|
309
|
+
|
|
310
|
+
Create a `LocalizedLink` component for locale-aware navigation:
|
|
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
|
+
McPherson,
|
|
339
|
+
> = TString extends `${infer THead}${TSub}${infer TTail}`
|
|
340
|
+
? RemoveAll<`${THead}${TTail}`, TSub>
|
|
341
|
+
: TString;
|
|
342
|
+
|
|
343
|
+
type RemoveLocaleFromString<TString extends string> = CollapseDoubleSlashes<
|
|
344
|
+
RemoveAll<TString, typeof LOCALE_ROUTE>
|
|
345
|
+
>;
|
|
346
|
+
|
|
347
|
+
export const LocalizedLink = (props: LocalizedLinkProps) => {
|
|
348
|
+
const { locale } = useLocale();
|
|
349
|
+
|
|
350
|
+
return (
|
|
351
|
+
<Link
|
|
352
|
+
{...props}
|
|
353
|
+
params={{
|
|
354
|
+
locale: getPrefix(locale()).localePrefix,
|
|
355
|
+
...(typeof props.params === "object" ? props.params : {}),
|
|
356
|
+
}}
|
|
357
|
+
to={`/${LOCALE_ROUTE}${props.to ?? ""}` as LinkProps["to"]}
|
|
358
|
+
/>
|
|
359
|
+
);
|
|
360
|
+
};
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
This component serves two purposes:
|
|
364
|
+
|
|
365
|
+
- Removing the unnecessary `{-$locale}` prefix from the URL.
|
|
366
|
+
- Injecting the locale parameter into the URL to ensure the user is directly redirected to the localised route.
|
|
367
|
+
|
|
368
|
+
Then, we can create a `useLocalizedNavigate` hook for programmatic navigation:
|
|
369
|
+
|
|
370
|
+
```tsx fileName="src/hooks/useLocalizedNavigate.tsx"
|
|
371
|
+
import { useNavigate } from "@tanstack/solid-router";
|
|
372
|
+
import { getLocalizedUrl } from "intlayer";
|
|
373
|
+
import { useLocale } from "solid-intlayer";
|
|
374
|
+
|
|
375
|
+
export const useLocalizedNavigate = () => {
|
|
376
|
+
const navigate = useNavigate();
|
|
377
|
+
const { locale } = useLocale();
|
|
378
|
+
|
|
379
|
+
const localizedNavigate = (to: string) => {
|
|
380
|
+
const localizedTo = getLocalizedUrl(to, locale());
|
|
381
|
+
return navigate({ to: localizedTo });
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
return localizedNavigate;
|
|
385
|
+
};
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### Step 9: Use Intlayer in Your Pages
|
|
389
|
+
|
|
390
|
+
Access your content dictionaries throughout your application:
|
|
391
|
+
|
|
392
|
+
#### Localised Home Page
|
|
393
|
+
|
|
394
|
+
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
395
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
396
|
+
import { useIntlayer } from "solid-intlayer";
|
|
397
|
+
import { LocalizedLink } from "@/components/LocalizedLink";
|
|
398
|
+
|
|
399
|
+
export const Route = createFileRoute("/{-$locale}/")({
|
|
400
|
+
component: RouteComponent,
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
function RouteComponent() {
|
|
404
|
+
const content = useIntlayer("index-page");
|
|
405
|
+
|
|
406
|
+
return (
|
|
407
|
+
<main>
|
|
408
|
+
<h1>{content().heroTitle}</h1>
|
|
409
|
+
<p>{content().heroDesc}</p>
|
|
410
|
+
<div>
|
|
411
|
+
<LocalizedLink to="/">{content().navHome}</LocalizedLink>
|
|
412
|
+
<LocalizedLink to="/about">{content().navAbout}</LocalizedLink>
|
|
413
|
+
</div>
|
|
414
|
+
</main>
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
> [!NOTE]
|
|
420
|
+
> in Solid, `useIntlayer` returns an **accessor** function (ex: `content()`). You must call this function to access the reactive content.
|
|
421
|
+
>
|
|
422
|
+
> To learn more about the `useIntlayer` hook, refer to the [documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/packages/solid-intlayer/useIntlayer.md).
|
|
423
|
+
|
|
424
|
+
### Step 10: Create a Locale Switcher Component
|
|
425
|
+
|
|
426
|
+
Create a component to allow users to change languages:
|
|
427
|
+
|
|
428
|
+
```tsx fileName="src/components/LocaleSwitcher.tsx"
|
|
429
|
+
import { useLocation } from "@tanstack/solid-router";
|
|
430
|
+
import { getLocaleName, getPathWithoutLocale, getPrefix } from "intlayer";
|
|
431
|
+
import { For } from "solid-js";
|
|
432
|
+
import { useIntlayer, useLocale } from "solid-intlayer";
|
|
433
|
+
import { LocalizedLink, type To } from "./LocalizedLink";
|
|
434
|
+
|
|
435
|
+
export const LocaleSwitcher = () => {
|
|
436
|
+
const content = useIntlayer("locale-switcher");
|
|
437
|
+
const location = useLocation();
|
|
438
|
+
|
|
439
|
+
const { availableLocales, locale, setLocale } = useLocale();
|
|
440
|
+
|
|
441
|
+
const pathWithoutLocale = () => getPathWithoutLocale(location().pathname);
|
|
442
|
+
|
|
443
|
+
return (
|
|
444
|
+
<div class="flex flex-row gap-2">
|
|
445
|
+
<For each={availableLocales}>
|
|
446
|
+
{(localeEl) => (
|
|
447
|
+
<LocalizedLink
|
|
448
|
+
aria-current={localeEl === locale() ? "page" : undefined}
|
|
449
|
+
onClick={() => setLocale(localeEl)}
|
|
450
|
+
params={{ locale: getPrefix(localeEl).localePrefix }}
|
|
451
|
+
to={pathWithoutLocale() as To}
|
|
452
|
+
>
|
|
453
|
+
{getLocaleName(localeEl)}
|
|
454
|
+
</LocalizedLink>
|
|
455
|
+
)}
|
|
456
|
+
</For>
|
|
457
|
+
</div>
|
|
458
|
+
);
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
export default LocaleSwitcher;
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
> [!NOTE]
|
|
465
|
+
> in Solid files, `locale` from `useLocale` is a **signal accessor**. Use `locale()` (with parentheses) to reactively read its current value.
|
|
466
|
+
>
|
|
467
|
+
> To learn more about the `useLocale` hook, refer to the [documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/packages/solid-intlayer/useLocale.md).
|
|
468
|
+
|
|
469
|
+
### Step 11: Management of HTML Attributes
|
|
470
|
+
|
|
471
|
+
As seen in Step 5, you can manage the `lang` and `dir` attributes of the `html` tag by using `useMatches` in your root component. This ensures that the correct attributes are set on both the server and client.
|
|
472
|
+
|
|
473
|
+
```tsx fileName="src/routes/__root.tsx"
|
|
474
|
+
const RootComponent: ParentComponent = (props) => {
|
|
475
|
+
const matches = useMatches();
|
|
476
|
+
|
|
477
|
+
// Try to find the locale in the parameters of any active match
|
|
478
|
+
const locale =
|
|
479
|
+
(
|
|
480
|
+
matches().find((match) => match.routeId === "/{-$locale}/")
|
|
481
|
+
?.params as Params
|
|
482
|
+
)?.locale ?? defaultLocale;
|
|
483
|
+
|
|
484
|
+
return (
|
|
485
|
+
<html dir={getHTMLTextDir(locale)} lang={locale}>
|
|
486
|
+
{/* ... */}
|
|
487
|
+
</html>
|
|
488
|
+
);
|
|
489
|
+
};
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
---
|
|
493
|
+
|
|
494
|
+
### Step 12: Add Middleware (Optional)
|
|
495
|
+
|
|
496
|
+
You can also use the `intlayerProxy` to add server-side routing to your application. This plugin will automatically detect the current locale based on the URL and set the appropriate locale cookie. If no locale is specified, the plugin will determine the most appropriate locale based on the user's browser language preferences. If no locale is detected, it will redirect to the default locale.
|
|
497
|
+
|
|
498
|
+
> Note that to use the `intlayerProxy` in production, you need to switch the `vite-intlayer` package from `devDependencies` to `dependencies`.
|
|
499
|
+
|
|
500
|
+
```typescript {7,14-17} fileName="vite.config.ts"
|
|
501
|
+
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
502
|
+
import solid from "vite-plugin-solid";
|
|
503
|
+
import { nitro } from "nitro/vite";
|
|
504
|
+
import { defineConfig } from "vite";
|
|
505
|
+
import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
506
|
+
import viteTsConfigPaths from "vite-tsconfig-paths";
|
|
507
|
+
|
|
508
|
+
export default defineConfig({
|
|
509
|
+
plugins: [
|
|
510
|
+
intlayerProxy(), // The Proxy should be placed before the server if you use Nitro
|
|
511
|
+
nitro(),
|
|
512
|
+
viteTsConfigPaths({
|
|
513
|
+
projects: ["./tsconfig.json"],
|
|
514
|
+
}),
|
|
515
|
+
intlayer(),
|
|
516
|
+
tanstackStart({
|
|
517
|
+
router: {
|
|
518
|
+
routeFileIgnorePattern:
|
|
519
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
520
|
+
},
|
|
521
|
+
}),
|
|
522
|
+
solid(),
|
|
523
|
+
],
|
|
524
|
+
});
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
---
|
|
528
|
+
|
|
529
|
+
### Step 13: Internationalise Your Metadata (Optional)
|
|
530
|
+
|
|
531
|
+
You can also use the `getIntlayer` function to access your content dictionaries within the `head` loader for locale-aware metadata:
|
|
532
|
+
|
|
533
|
+
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
534
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
535
|
+
import { getIntlayer } from "intlayer";
|
|
536
|
+
|
|
537
|
+
export const Route = createFileRoute("/{-$locale}/")({
|
|
538
|
+
component: RouteComponent,
|
|
539
|
+
head: ({ params }) => {
|
|
540
|
+
const { locale } = params;
|
|
541
|
+
const metaContent = getIntlayer("page-metadata", locale);
|
|
542
|
+
|
|
543
|
+
return {
|
|
544
|
+
meta: [
|
|
545
|
+
{ title: metaContent.title },
|
|
546
|
+
{ content: metaContent.description, name: "description" },
|
|
547
|
+
],
|
|
548
|
+
};
|
|
549
|
+
},
|
|
550
|
+
});
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
---
|
|
554
|
+
|
|
555
|
+
### Step 14: Retrieve the locale in your server actions (Optional)
|
|
556
|
+
|
|
557
|
+
You may want to access the current locale from within your server actions or API endpoints.
|
|
558
|
+
You can do this using the `getLocale` helper from `intlayer`.
|
|
559
|
+
|
|
560
|
+
Here's an example using TanStack Start's server functions:
|
|
561
|
+
|
|
562
|
+
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
563
|
+
import { createServerFn } from "@tanstack/solid-start";
|
|
564
|
+
import {
|
|
565
|
+
getRequestHeader,
|
|
566
|
+
getRequestHeaders,
|
|
567
|
+
} from "@tanstack/solid-start/server";
|
|
568
|
+
import { getCookie, getIntlayer, getLocale } from "intlayer";
|
|
569
|
+
|
|
570
|
+
export const getLocaleServer = createServerFn().handler(async () => {
|
|
571
|
+
const locale = await getLocale({
|
|
572
|
+
// Get the cookie from the request (default: 'INTLAYER_LOCALE')
|
|
573
|
+
getCookie: (name) => {
|
|
574
|
+
const cookieString = getRequestHeader("cookie");
|
|
575
|
+
|
|
576
|
+
return getCookie(name, cookieString);
|
|
577
|
+
},
|
|
578
|
+
// Get the header from the request (default: 'x-intlayer-locale')
|
|
579
|
+
// Fallback using Accept-Language negotiation
|
|
580
|
+
getHeader: (name) => getRequestHeader(name),
|
|
581
|
+
});
|
|
582
|
+
|
|
583
|
+
// Retrieve some content using getIntlayer()
|
|
584
|
+
const content = getIntlayer("app", locale);
|
|
585
|
+
|
|
586
|
+
return { locale, content };
|
|
587
|
+
});
|
|
588
|
+
```
|
|
589
|
+
|
|
590
|
+
---
|
|
591
|
+
|
|
592
|
+
### Step 15: Manage not found pages (Optional)
|
|
593
|
+
|
|
594
|
+
When a user visits a non-existent page, you can display a custom not found page and the locale prefix can impact the way the not found page is triggered.
|
|
595
|
+
|
|
596
|
+
#### Understanding TanStack Router's 404 handling with locale prefixes
|
|
597
|
+
|
|
598
|
+
In TanStack Router, handling 404 pages with localised routes requires a multi-layered approach:
|
|
599
|
+
|
|
600
|
+
1. **Dedicated 404 route**: A specific route to display the 404 UI
|
|
601
|
+
2. **Route-level validation**: Validates locale prefixes and redirects invalid ones to the 404
|
|
602
|
+
3. **Catch-all route**: Captures any non-matching paths within the locale segment
|
|
603
|
+
|
|
604
|
+
```tsx fileName="src/routes/{-$locale}/404.tsx"
|
|
605
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
606
|
+
|
|
607
|
+
// This creates a dedicated /[locale]/404 route
|
|
608
|
+
// It's used both as a direct route and imported as a component in other files
|
|
609
|
+
export const Route = createFileRoute("/{-$locale}/404")({
|
|
610
|
+
component: NotFoundComponent,
|
|
611
|
+
});
|
|
612
|
+
|
|
613
|
+
// Exported separately so it can be reused in notFoundComponent and catch-all routes
|
|
614
|
+
export function NotFoundComponent() {
|
|
615
|
+
return (
|
|
616
|
+
<div>
|
|
617
|
+
<h1>404</h1>
|
|
618
|
+
</div>
|
|
619
|
+
);
|
|
620
|
+
}
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
```tsx fileName="src/routes/{-$locale}/route.tsx"
|
|
624
|
+
import { createFileRoute, Outlet, redirect } from "@tanstack/solid-router";
|
|
625
|
+
import { validatePrefix } from "intlayer";
|
|
626
|
+
import { NotFoundComponent } from "./404";
|
|
627
|
+
|
|
628
|
+
export const Route = createFileRoute("/{-$locale}")({
|
|
629
|
+
// beforeLoad runs before the route renders (both server and client)
|
|
630
|
+
// It's the ideal place to validate the locale prefix
|
|
631
|
+
beforeLoad: ({ params }) => {
|
|
632
|
+
const localeParam = params.locale;
|
|
633
|
+
|
|
634
|
+
// validatePrefix checks if the locale is valid according to your intlayer config
|
|
635
|
+
const { isValid, localePrefix } = validatePrefix(localeParam);
|
|
636
|
+
|
|
637
|
+
if (!isValid) {
|
|
638
|
+
// Invalid locale prefix - redirect to the 404 page with a valid locale prefix
|
|
639
|
+
throw redirect({
|
|
640
|
+
to: "/{-$locale}/404",
|
|
641
|
+
params: { locale: localePrefix },
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
component: Outlet,
|
|
646
|
+
// notFoundComponent is called when a child route doesn't exist
|
|
647
|
+
// ex: /en/non-existent-page triggers this within the /en layout
|
|
648
|
+
notFoundComponent: NotFoundComponent,
|
|
649
|
+
});
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
```tsx fileName="src/routes/{-$locale}/$.tsx"
|
|
653
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
654
|
+
|
|
655
|
+
import { NotFoundComponent } from "./404";
|
|
656
|
+
|
|
657
|
+
// The $ (splat/catch-all) route matches any path that doesn't match other routes
|
|
658
|
+
// ex: /en/some/deeply/nested/invalid/path
|
|
659
|
+
// This ensures ALL non-matching paths within a locale show the 404 page
|
|
660
|
+
// Without this, deep non-matching paths could show a blank page or error
|
|
661
|
+
export const Route = createFileRoute("/{-$locale}/$")({
|
|
662
|
+
component: NotFoundComponent,
|
|
663
|
+
});
|
|
664
|
+
```
|
|
665
|
+
|
|
666
|
+
### (Optional) Step 16: Extract the content from your components
|
|
667
|
+
|
|
668
|
+
If you have an existing codebase, transforming thousands of files can be time-consuming.
|
|
669
|
+
|
|
670
|
+
To ease this process, Intlayer proposes a [compiler](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/compiler.md) / [extractor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/cli/extract.md) to transform your components and extract the content.
|
|
671
|
+
|
|
672
|
+
To set it up, you can add a `compiler` section in your `intlayer.config.ts` file:
|
|
673
|
+
|
|
674
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
675
|
+
import { type IntlayerConfig } from "intlayer";
|
|
676
|
+
|
|
677
|
+
const config: IntlayerConfig = {
|
|
678
|
+
// ... Rest of your config
|
|
679
|
+
compiler: {
|
|
680
|
+
/**
|
|
681
|
+
* Indicates whether the compiler should be enabled.
|
|
682
|
+
*/
|
|
683
|
+
enabled: true,
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Defines the output files path
|
|
687
|
+
*/
|
|
688
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Indicates whether components should be saved after being transformed.
|
|
692
|
+
*
|
|
693
|
+
* - If `true`, the compiler will rewrite the component file on the disk. Thus, the transformation will be permanent, and the compiler will skip the transformation for the next process. In this way, the compiler can transform the app and then it can be removed.
|
|
694
|
+
*
|
|
695
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call in the code only in the build output, keeping the base codebase intact. Transformation will be done only in memory.
|
|
696
|
+
*/
|
|
697
|
+
saveComponents: false,
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Dictionary key prefix
|
|
701
|
+
*/
|
|
702
|
+
dictionaryKeyPrefix: "",
|
|
703
|
+
},
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
export default config;
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
710
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
711
|
+
const config = {
|
|
712
|
+
// ... Rest of your config
|
|
713
|
+
compiler: {
|
|
714
|
+
/**
|
|
715
|
+
* Indicates whether the compiler should be enabled.
|
|
716
|
+
*/
|
|
717
|
+
enabled: true,
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Defines the output files path
|
|
721
|
+
*/
|
|
722
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Indicates whether components should be saved after being transformed.
|
|
726
|
+
*
|
|
727
|
+
* - If `true`, the compiler will rewrite the component file on the disk. Thus, the transformation will be permanent, and the compiler will skip the transformation for the next process. In this way, the compiler can transform the app and then it can be removed.
|
|
728
|
+
*
|
|
729
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call in the code only in the build output, keeping the base codebase intact. Transformation will be done only in memory.
|
|
730
|
+
*/
|
|
731
|
+
saveComponents: false,
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Dictionary key prefix
|
|
735
|
+
*/
|
|
736
|
+
dictionaryKeyPrefix: "",
|
|
737
|
+
},
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
export default config;
|
|
741
|
+
```
|
|
742
|
+
|
|
743
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
744
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
745
|
+
const config = {
|
|
746
|
+
// ... Rest of your config
|
|
747
|
+
compiler: {
|
|
748
|
+
/**
|
|
749
|
+
* Indicates whether the compiler should be enabled.
|
|
750
|
+
*/
|
|
751
|
+
enabled: true,
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Defines the output files path
|
|
755
|
+
*/
|
|
756
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Indicates whether components should be saved after being transformed.
|
|
760
|
+
*
|
|
761
|
+
* - If `true`, the compiler will rewrite the component file on the disk. Thus, the transformation will be permanent, and the compiler will skip the transformation for the next process. In this way, the compiler can transform the app and then it can be removed.
|
|
762
|
+
*
|
|
763
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call in the code only in the build output, keeping the base codebase intact. Transformation will be done only in memory.
|
|
764
|
+
*/
|
|
765
|
+
saveComponents: false,
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Dictionary key prefix
|
|
769
|
+
*/
|
|
770
|
+
dictionaryKeyPrefix: "",
|
|
771
|
+
},
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
module.exports = config;
|
|
775
|
+
```
|
|
776
|
+
|
|
777
|
+
<Tabs>
|
|
778
|
+
<Tab value='Extract command'>
|
|
779
|
+
|
|
780
|
+
Run the extractor to transform your components and extract the content
|
|
781
|
+
|
|
782
|
+
```bash packageManager="npm"
|
|
783
|
+
npx intlayer extract
|
|
784
|
+
```
|
|
785
|
+
|
|
786
|
+
```bash packageManager="pnpm"
|
|
787
|
+
pnpm intlayer extract
|
|
788
|
+
```
|
|
789
|
+
|
|
790
|
+
```bash packageManager="yarn"
|
|
791
|
+
yarn intlayer extract
|
|
792
|
+
```
|
|
793
|
+
|
|
794
|
+
```bash packageManager="bun"
|
|
795
|
+
bun x intlayer extract
|
|
796
|
+
```
|
|
797
|
+
|
|
798
|
+
</Tab>
|
|
799
|
+
<Tab value='Babel compiler'>
|
|
800
|
+
|
|
801
|
+
Update your `vite.config.ts` to include the `intlayerCompiler` plugin:
|
|
802
|
+
|
|
803
|
+
```ts fileName="vite.config.ts"
|
|
804
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
805
|
+
import { defineConfig } from "vite";
|
|
806
|
+
import { devtools } from "@tanstack/devtools-vite";
|
|
807
|
+
import viteTsConfigPaths from "vite-tsconfig-paths";
|
|
808
|
+
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
809
|
+
import solidPlugin from "vite-plugin-solid";
|
|
810
|
+
|
|
811
|
+
export default defineConfig({
|
|
812
|
+
plugins: [
|
|
813
|
+
devtools(),
|
|
814
|
+
viteTsConfigPaths({
|
|
815
|
+
projects: ["./tsconfig.json"],
|
|
816
|
+
}),
|
|
817
|
+
tanstackStart({
|
|
818
|
+
router: {
|
|
819
|
+
routeFileIgnorePattern:
|
|
820
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
821
|
+
},
|
|
822
|
+
}),
|
|
823
|
+
solidPlugin({ ssr: true }),
|
|
824
|
+
intlayer(),
|
|
825
|
+
intlayerCompiler(),
|
|
826
|
+
],
|
|
827
|
+
});
|
|
828
|
+
```
|
|
829
|
+
|
|
830
|
+
```bash packageManager="npm"
|
|
831
|
+
npm run build # Or rpm run dev
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
```bash packageManager="pnpm"
|
|
835
|
+
pnpm run build # Or pnpm run dev
|
|
836
|
+
```
|
|
837
|
+
|
|
838
|
+
```bash packageManager="yarn"
|
|
839
|
+
yarn build # Or yarn dev
|
|
840
|
+
```
|
|
841
|
+
|
|
842
|
+
```bash packageManager="bun"
|
|
843
|
+
bun run build # Or bun run dev
|
|
844
|
+
```
|
|
845
|
+
|
|
846
|
+
</Tab>
|
|
847
|
+
</Tabs>
|
|
848
|
+
|
|
849
|
+
---
|
|
850
|
+
|
|
851
|
+
### Step 17: Configure TypeScript (Optional)
|
|
852
|
+
|
|
853
|
+
Intlayer uses module augmentation to get the benefits of TypeScript and make your codebase stronger.
|
|
854
|
+
|
|
855
|
+
Ensure your TypeScript configuration includes the auto-generated types:
|
|
856
|
+
|
|
857
|
+
```json5 fileName="tsconfig.json"
|
|
858
|
+
{
|
|
859
|
+
// ... your existing settings
|
|
860
|
+
include: [
|
|
861
|
+
// ... your existing includes
|
|
862
|
+
".intlayer/**/*.ts", // Include the auto-generated types
|
|
863
|
+
],
|
|
864
|
+
}
|
|
865
|
+
```
|
|
866
|
+
|
|
867
|
+
---
|
|
868
|
+
|
|
869
|
+
### Git Configuration
|
|
870
|
+
|
|
871
|
+
It is recommended to ignore the files generated by Intlayer. This allows you to avoid committing them to your Git repository.
|
|
872
|
+
|
|
873
|
+
To do this, you can add the following instructions to your `.gitignore` file:
|
|
874
|
+
|
|
875
|
+
```plaintext fileName=".gitignore"
|
|
876
|
+
# Ignore the files generated by Intlayer
|
|
877
|
+
.intlayer
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
---
|
|
881
|
+
|
|
882
|
+
## VS Code Extension
|
|
883
|
+
|
|
884
|
+
To improve your development experience with Intlayer, you can install the official **Intlayer VS Code Extension**.
|
|
885
|
+
|
|
886
|
+
[Install from VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
|
|
887
|
+
|
|
888
|
+
This extension offers:
|
|
889
|
+
|
|
890
|
+
- **Autocompletion** for translation keys.
|
|
891
|
+
- **Real-time error detection** for missing translations.
|
|
892
|
+
- **Inline previews** of translated content.
|
|
893
|
+
- **Quick actions** to create and update translations easily.
|
|
894
|
+
|
|
895
|
+
For more details on how to use the extension, refer to the [Intlayer VS Code Extension documentation](https://intlayer.org/doc/vs-code-extension).
|
|
896
|
+
|
|
897
|
+
---
|
|
898
|
+
|
|
899
|
+
## Going Further
|
|
900
|
+
|
|
901
|
+
To go further, you can implement the [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/intlayer_visual_editor.md) or externalise your content using the [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/intlayer_CMS.md).
|
|
902
|
+
|
|
903
|
+
---
|
|
904
|
+
|
|
905
|
+
## Documentation References
|
|
906
|
+
|
|
907
|
+
- [Intlayer Documentation](https://intlayer.org)
|
|
908
|
+
- [Tanstack Start Documentation](https://tanstack.com/start/latest)
|
|
909
|
+
- [useIntlayer hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/packages/solid-intlayer/useIntlayer.md)
|
|
910
|
+
- [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/packages/solid-intlayer/useLocale.md)
|
|
911
|
+
- [Content Declaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/dictionary/content_file.md)
|
|
912
|
+
- [Configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/configuration.md)
|