@intlayer/docs 8.5.1 → 8.6.0
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/intlayer_CMS.md +1 -1
- package/docs/ar/intlayer_with_adonisjs.md +1 -1
- package/docs/ar/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/ar/intlayer_with_svelte_kit.md +5 -5
- package/docs/ar/intlayer_with_tanstack+solid.md +894 -0
- package/docs/ar/intlayer_with_tanstack.md +2 -10
- package/docs/ar/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/ar/intlayer_with_vite+svelte.md +3 -3
- package/docs/ar/intlayer_with_vite+vanilla.md +2 -2
- package/docs/ar/intlayer_with_vite+vue.md +2 -2
- 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 +1 -2
- 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 +1 -2
- package/docs/cs/intlayer_with_vite+vanilla.md +2 -2
- package/docs/de/intlayer_CMS.md +1 -1
- package/docs/de/intlayer_with_adonisjs.md +1 -1
- package/docs/de/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +2 -3
- package/docs/de/intlayer_with_svelte_kit.md +5 -5
- package/docs/de/intlayer_with_tanstack+solid.md +970 -0
- package/docs/de/intlayer_with_tanstack.md +98 -30
- package/docs/de/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/de/intlayer_with_vite+svelte.md +3 -3
- package/docs/de/intlayer_with_vite+vanilla.md +2 -2
- package/docs/de/intlayer_with_vite+vue.md +2 -2
- package/docs/en/intlayer_CMS.md +1 -1
- package/docs/en/intlayer_with_adonisjs.md +1 -1
- package/docs/en/intlayer_with_analog.md +1 -1
- 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 +3 -4
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/en/intlayer_with_svelte_kit.md +4 -4
- package/docs/en/intlayer_with_tanstack+solid.md +973 -0
- package/docs/en/intlayer_with_tanstack.md +83 -12
- package/docs/en/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/en/intlayer_with_vite+svelte.md +7 -8
- package/docs/en/intlayer_with_vite+vanilla.md +2 -2
- package/docs/en/intlayer_with_vite+vue.md +2 -2
- 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 +1 -1
- 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 +3 -5
- package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +3 -5
- package/docs/en-GB/intlayer_with_svelte_kit.md +4 -4
- package/docs/en-GB/intlayer_with_tanstack+solid.md +968 -0
- package/docs/en-GB/intlayer_with_tanstack.md +75 -10
- package/docs/en-GB/intlayer_with_vite+lit.md +1 -2
- 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 -2
- package/docs/en-GB/intlayer_with_vite+svelte.md +2 -2
- package/docs/en-GB/intlayer_with_vite+vanilla.md +2 -2
- package/docs/en-GB/intlayer_with_vite+vue.md +1 -1
- package/docs/es/intlayer_CMS.md +1 -1
- package/docs/es/intlayer_with_adonisjs.md +1 -1
- package/docs/es/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/es/intlayer_with_svelte_kit.md +5 -5
- package/docs/es/intlayer_with_tanstack+solid.md +970 -0
- package/docs/es/intlayer_with_tanstack.md +98 -30
- package/docs/es/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/es/intlayer_with_vite+svelte.md +3 -3
- package/docs/es/intlayer_with_vite+vanilla.md +2 -2
- package/docs/es/intlayer_with_vite+vue.md +2 -2
- package/docs/es/packages/next-intlayer/index.md +1 -1
- package/docs/es/packages/react-intlayer/index.md +1 -1
- package/docs/fr/intlayer_CMS.md +1 -1
- package/docs/fr/intlayer_with_adonisjs.md +1 -1
- package/docs/fr/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/fr/intlayer_with_svelte_kit.md +6 -6
- package/docs/fr/intlayer_with_tanstack+solid.md +970 -0
- package/docs/fr/intlayer_with_tanstack.md +98 -30
- package/docs/fr/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/fr/intlayer_with_vite+svelte.md +3 -3
- package/docs/fr/intlayer_with_vite+vanilla.md +2 -2
- package/docs/fr/intlayer_with_vite+vue.md +2 -2
- package/docs/fr/packages/react-intlayer/index.md +1 -1
- package/docs/hi/intlayer_CMS.md +1 -1
- package/docs/hi/intlayer_with_adonisjs.md +1 -1
- package/docs/hi/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/hi/intlayer_with_svelte_kit.md +5 -5
- package/docs/hi/intlayer_with_tanstack+solid.md +894 -0
- package/docs/hi/intlayer_with_tanstack.md +2 -10
- package/docs/hi/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/hi/intlayer_with_vite+svelte.md +3 -3
- package/docs/hi/intlayer_with_vite+vanilla.md +2 -2
- package/docs/hi/intlayer_with_vite+vue.md +2 -2
- package/docs/hi/packages/intlayer/index.md +1 -1
- package/docs/id/intlayer_CMS.md +1 -1
- package/docs/id/intlayer_with_adonisjs.md +1 -1
- package/docs/id/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/id/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/id/intlayer_with_svelte_kit.md +5 -5
- package/docs/id/intlayer_with_tanstack+solid.md +894 -0
- package/docs/id/intlayer_with_tanstack.md +2 -10
- package/docs/id/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/id/intlayer_with_vite+svelte.md +3 -3
- package/docs/id/intlayer_with_vite+vanilla.md +2 -2
- package/docs/id/intlayer_with_vite+vue.md +2 -2
- package/docs/it/intlayer_CMS.md +1 -1
- package/docs/it/intlayer_with_adonisjs.md +1 -1
- package/docs/it/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/it/intlayer_with_svelte_kit.md +6 -6
- package/docs/it/intlayer_with_tanstack+solid.md +970 -0
- package/docs/it/intlayer_with_tanstack.md +98 -32
- package/docs/it/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/it/intlayer_with_vite+svelte.md +3 -3
- package/docs/it/intlayer_with_vite+vanilla.md +2 -2
- package/docs/it/intlayer_with_vite+vue.md +2 -2
- package/docs/ja/intlayer_CMS.md +1 -1
- package/docs/ja/intlayer_with_adonisjs.md +1 -1
- package/docs/ja/intlayer_with_analog.md +1 -1
- 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 +2 -3
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/ja/intlayer_with_svelte_kit.md +1 -1
- package/docs/ja/intlayer_with_tanstack+solid.md +972 -0
- package/docs/ja/intlayer_with_tanstack.md +780 -94
- package/docs/ja/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/ja/intlayer_with_vite+svelte.md +3 -3
- package/docs/ja/intlayer_with_vite+vanilla.md +2 -2
- package/docs/ja/intlayer_with_vite+vue.md +2 -2
- package/docs/ko/intlayer_CMS.md +1 -1
- package/docs/ko/intlayer_with_adonisjs.md +1 -1
- package/docs/ko/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/ko/intlayer_with_svelte_kit.md +5 -5
- package/docs/ko/intlayer_with_tanstack+solid.md +970 -0
- package/docs/ko/intlayer_with_tanstack.md +97 -103
- package/docs/ko/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/ko/intlayer_with_vite+svelte.md +3 -3
- package/docs/ko/intlayer_with_vite+vanilla.md +2 -2
- package/docs/ko/intlayer_with_vite+vue.md +2 -2
- 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 +1 -2
- package/docs/nl/intlayer_with_vite+vanilla.md +2 -2
- package/docs/pl/intlayer_CMS.md +1 -1
- package/docs/pl/intlayer_with_adonisjs.md +1 -1
- package/docs/pl/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/pl/intlayer_with_svelte_kit.md +5 -5
- package/docs/pl/intlayer_with_tanstack+solid.md +894 -0
- package/docs/pl/intlayer_with_tanstack.md +2 -10
- package/docs/pl/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/pl/intlayer_with_vite+svelte.md +3 -3
- package/docs/pl/intlayer_with_vite+vanilla.md +2 -2
- package/docs/pl/intlayer_with_vite+vue.md +2 -2
- package/docs/pt/intlayer_CMS.md +1 -1
- package/docs/pt/intlayer_with_adonisjs.md +1 -1
- package/docs/pt/intlayer_with_analog.md +1 -1
- 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 +3 -4
- package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/pt/intlayer_with_svelte_kit.md +6 -6
- package/docs/pt/intlayer_with_tanstack+solid.md +970 -0
- package/docs/pt/intlayer_with_tanstack.md +98 -32
- package/docs/pt/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/pt/intlayer_with_vite+svelte.md +3 -3
- package/docs/pt/intlayer_with_vite+vanilla.md +2 -2
- package/docs/pt/intlayer_with_vite+vue.md +2 -2
- package/docs/ru/intlayer_CMS.md +1 -1
- package/docs/ru/intlayer_with_adonisjs.md +1 -1
- package/docs/ru/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/ru/intlayer_with_svelte_kit.md +5 -5
- package/docs/ru/intlayer_with_tanstack+solid.md +970 -0
- package/docs/ru/intlayer_with_tanstack.md +101 -35
- package/docs/ru/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/ru/intlayer_with_vite+svelte.md +3 -3
- package/docs/ru/intlayer_with_vite+vanilla.md +2 -2
- package/docs/ru/intlayer_with_vite+vue.md +2 -2
- package/docs/tr/intlayer_CMS.md +1 -1
- package/docs/tr/intlayer_with_adonisjs.md +1 -1
- package/docs/tr/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/tr/intlayer_with_svelte_kit.md +5 -5
- package/docs/tr/intlayer_with_tanstack+solid.md +895 -0
- package/docs/tr/intlayer_with_tanstack.md +2 -10
- package/docs/tr/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/tr/intlayer_with_vite+svelte.md +3 -3
- package/docs/tr/intlayer_with_vite+vanilla.md +2 -2
- package/docs/tr/intlayer_with_vite+vue.md +2 -2
- package/docs/uk/intlayer_CMS.md +1 -1
- package/docs/uk/intlayer_with_adonisjs.md +1 -1
- package/docs/uk/intlayer_with_analog.md +1 -1
- 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 +3 -4
- package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/uk/intlayer_with_svelte_kit.md +4 -4
- package/docs/uk/intlayer_with_tanstack+solid.md +894 -0
- package/docs/uk/intlayer_with_tanstack.md +2 -10
- package/docs/uk/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/uk/intlayer_with_vite+svelte.md +3 -3
- package/docs/uk/intlayer_with_vite+vanilla.md +2 -2
- package/docs/uk/intlayer_with_vite+vue.md +2 -2
- 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 +1 -2
- package/docs/ur/intlayer_with_vite+vanilla.md +1 -1
- package/docs/vi/cli/index.md +1 -1
- package/docs/vi/intlayer_CMS.md +1 -1
- package/docs/vi/intlayer_with_adonisjs.md +1 -1
- package/docs/vi/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/vi/intlayer_with_svelte_kit.md +5 -5
- package/docs/vi/intlayer_with_tanstack+solid.md +894 -0
- package/docs/vi/intlayer_with_tanstack.md +2 -10
- package/docs/vi/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/vi/intlayer_with_vite+svelte.md +3 -3
- package/docs/vi/intlayer_with_vite+vanilla.md +2 -2
- package/docs/vi/intlayer_with_vite+vue.md +2 -2
- package/docs/zh/intlayer_CMS.md +1 -1
- package/docs/zh/intlayer_with_adonisjs.md +1 -1
- package/docs/zh/intlayer_with_analog.md +1 -1
- 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 +4 -6
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +4 -6
- package/docs/zh/intlayer_with_svelte_kit.md +5 -5
- package/docs/zh/intlayer_with_tanstack+solid.md +970 -0
- package/docs/zh/intlayer_with_tanstack.md +98 -106
- package/docs/zh/intlayer_with_vite+lit.md +1 -2
- 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 -3
- package/docs/zh/intlayer_with_vite+svelte.md +3 -3
- package/docs/zh/intlayer_with_vite+vanilla.md +2 -2
- package/docs/zh/intlayer_with_vite+vue.md +2 -2
- package/package.json +8 -8
- package/src/generated/docs.entry.ts +20 -0
|
@@ -0,0 +1,894 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-03-25
|
|
3
|
+
updatedAt: 2026-03-25
|
|
4
|
+
title: i18n Tanstack Start - Jak przetłumaczyć aplikację Tanstack Start używając Solid.js w 2026 roku
|
|
5
|
+
description: Dowiedz się, jak dodać internacjonalizację (i18n) do swojej aplikacji Tanstack Start, korzystając z Intlayer i Solid.js. Postępuj zgodnie z tym kompleksowym przewodnikiem, aby stworzyć wielojęzyczną aplikację z routingiem uwzględniającym lokalizację (locale).
|
|
6
|
+
keywords:
|
|
7
|
+
- Internacjonalizacja
|
|
8
|
+
- Dokumentacja
|
|
9
|
+
- Intlayer
|
|
10
|
+
- Tanstack Start
|
|
11
|
+
- Solid
|
|
12
|
+
- i18n
|
|
13
|
+
- TypeScript
|
|
14
|
+
- Routing językowy
|
|
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: "Dodano dla Tanstack Start Solid.js"
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Przetłumacz swoją stronę Tanstack Start + Solid.js za pomocą Intlayer | Internacjonalizacja (i18n)
|
|
28
|
+
|
|
29
|
+
## Spis treści
|
|
30
|
+
|
|
31
|
+
<TOC/>
|
|
32
|
+
|
|
33
|
+
Ten przewodnik pokazuje, jak zintegrować **Intlayer** w celu zapewnienia bezproblemowej internacjonalizacji w projektach Tanstack Start z Solid.js, z routingiem uwzględniającym lokalizację, wsparciem TypeScript oraz nowoczesnymi praktykami programistycznymi.
|
|
34
|
+
|
|
35
|
+
## Czym jest Intlayer?
|
|
36
|
+
|
|
37
|
+
**Intlayer** to innowacyjna biblioteka internacjonalizacji (i18n) o otwartym kodzie źródłowym, zaprojektowana w celu uproszczenia obsługi wielu języków w nowoczesnych aplikacjach internetowych.
|
|
38
|
+
|
|
39
|
+
Dzięki Intlayer możesz:
|
|
40
|
+
|
|
41
|
+
- **Łatwo zarządzać tłumaczeniami** za pomocą deklaratywnych słowników na poziomie komponentów.
|
|
42
|
+
- **Dynamicznie lokalizować metadane, trasy (routes) i treść**.
|
|
43
|
+
- **Zapewnić wsparcie TypeScript** dzięki automatycznie generowanym typom, co poprawia autouzupełnianie i wykrywanie błędów.
|
|
44
|
+
- **Korzystać z zaawansowanych funkcji**, takich jak dynamiczne wykrywanie i przełączanie języka.
|
|
45
|
+
- **Włączyć routing uwzględniający język** dzięki systemowi routingu Tanstack Start opartemu na plikach.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Przewodnik krok po kroku dotyczący konfiguracji Intlayer w aplikacji Tanstack Start
|
|
50
|
+
|
|
51
|
+
<Tabs defaultTab="video">
|
|
52
|
+
<Tab label="Wideo" value="video">
|
|
53
|
+
|
|
54
|
+
<iframe title="Najlepsze rozwiązanie i18n dla Tanstack Start? Odkryj 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="Kod" 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 - Jak umiędzynarodowić swoją aplikację za pomocą 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
|
+
Zobacz [Szablon Aplikacji](https://github.com/aymericzip/intlayer-tanstack-start-solid-template) na GitHubie.
|
|
71
|
+
|
|
72
|
+
### Krok 1: Utworzenie projektu
|
|
73
|
+
|
|
74
|
+
Najpierw utwórz nowy projekt TanStack Start, postępując zgodnie z przewodnikiem [Rozpoczęcie nowego projektu](https://tanstack.com/start/latest/docs/framework/solid/quick-start) na stronie TanStack Start.
|
|
75
|
+
|
|
76
|
+
### Krok 2: Instalacja pakietów Intlayer
|
|
77
|
+
|
|
78
|
+
Zainstaluj niezbędne pakiety za pomocą preferowanego menedżera pakietów:
|
|
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
|
+
Rdzeń pakietu, który dostarcza narzędzia internacjonalizacji do zarządzania konfiguracją, tłumaczeniami, [deklaracją treści](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/content_file.md), transpilacją oraz [poleceniami CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/cli/index.md).
|
|
107
|
+
|
|
108
|
+
- **solid-intlayer**
|
|
109
|
+
Pakiet integrujący Intlayer z aplikacją Solid. Dostarcza dostawców kontekstu (context providers) i hooki do internacjonalizacji w Solid.
|
|
110
|
+
|
|
111
|
+
- **vite-intlayer**
|
|
112
|
+
Zawiera wtyczkę Vite do integracji Intlayer z [bundlerem Vite](https://vite.dev/guide/why.html#why-bundle-for-production), a także middleware do wykrywania preferowanego języka użytkownika, zarządzania ciasteczkami (cookies) i obsługi przekierowań adresów URL.
|
|
113
|
+
|
|
114
|
+
### Krok 3: Konfiguracja Twojego projektu
|
|
115
|
+
|
|
116
|
+
Utwórz plik konfiguracyjny, aby ustawić języki Twojej aplikacji:
|
|
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
|
+
> Za pomocą tego pliku konfiguracyjnego możesz skonfigurować zlokalizowane adresy URL, przekierowania middleware, nazwy ciasteczek, lokalizację i rozszerzenie deklaracji treści, wyłączyć logi Intlayer w konsoli i wiele więcej. Pełną listę dostępnych parametrów znajdziesz w [dokumentacji konfiguracji](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/configuration.md).
|
|
134
|
+
|
|
135
|
+
### Krok 4: Integracja Intlayer w konfiguracji Vite
|
|
136
|
+
|
|
137
|
+
Dodaj wtyczkę intlayer do swojej konfiguracji:
|
|
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 { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
144
|
+
import solidPlugin from "vite-plugin-solid";
|
|
145
|
+
|
|
146
|
+
export default defineConfig({
|
|
147
|
+
plugins: [
|
|
148
|
+
devtools(),
|
|
149
|
+
tanstackStart({
|
|
150
|
+
router: {
|
|
151
|
+
routeFileIgnorePattern:
|
|
152
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
153
|
+
},
|
|
154
|
+
}),
|
|
155
|
+
solidPlugin({ ssr: true }),
|
|
156
|
+
intlayer(),
|
|
157
|
+
],
|
|
158
|
+
});
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
> Wtyczka `intlayer()` Vite jest używana do integracji Intlayer z Vite. Zapewnia ona budowanie plików deklaracji treści i monitoruje je w trybie deweloperskim. Definiuje ona zmienne środowiskowe Intlayer wewnątrz aplikacji Vite. Dodatkowo zapewnia aliasy w celu zmniejszenia narzutu wydajnościowego.
|
|
162
|
+
|
|
163
|
+
### Krok 5: Utworzenie Root Layoutu
|
|
164
|
+
|
|
165
|
+
Skonfiguruj swój layout główny (root layout), aby obsługiwał internacjonalizację, używając `useMatches` do wykrywania bieżącego języka i ustawiając atrybuty `lang` oraz `dir` w tagu `html`.
|
|
166
|
+
|
|
167
|
+
```tsx fileName="src/routes/__root.tsx"
|
|
168
|
+
import {
|
|
169
|
+
HeadContent,
|
|
170
|
+
Outlet,
|
|
171
|
+
Scripts,
|
|
172
|
+
createRootRouteWithContext,
|
|
173
|
+
useMatches,
|
|
174
|
+
} from "@tanstack/solid-router";
|
|
175
|
+
import { TanStackRouterDevtools } from "@tanstack/solid-router-devtools";
|
|
176
|
+
import { HydrationScript } from "solid-js/web";
|
|
177
|
+
import { Suspense } from "solid-js";
|
|
178
|
+
import { IntlayerProvider } from "solid-intlayer";
|
|
179
|
+
import { defaultLocale, getHTMLTextDir, type Locale } from "intlayer";
|
|
180
|
+
|
|
181
|
+
export const Route = createRootRouteWithContext()({
|
|
182
|
+
shellComponent: RootComponent,
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
type Params = {
|
|
186
|
+
locale: Locale;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
function RootComponent() {
|
|
190
|
+
const matches = useMatches();
|
|
191
|
+
|
|
192
|
+
// Spróbuj znaleźć język w parametrach jakiegokolwiek aktywnego dopasowania
|
|
193
|
+
// Zakłada to, że używasz dynamicznego segmentu "/{-$locale}" w swoim drzewie tras
|
|
194
|
+
const locale =
|
|
195
|
+
(
|
|
196
|
+
matches().find((match) => match.routeId === "/{-$locale}/")
|
|
197
|
+
?.params as Params
|
|
198
|
+
)?.locale ?? defaultLocale;
|
|
199
|
+
|
|
200
|
+
return (
|
|
201
|
+
<html dir={getHTMLTextDir(locale)} lang={locale}>
|
|
202
|
+
<head>
|
|
203
|
+
<HydrationScript />
|
|
204
|
+
</head>
|
|
205
|
+
<body>
|
|
206
|
+
<HeadContent />
|
|
207
|
+
<IntlayerProvider locale={locale}>
|
|
208
|
+
<Suspense>
|
|
209
|
+
<Outlet />
|
|
210
|
+
<TanStackRouterDevtools />
|
|
211
|
+
</Suspense>
|
|
212
|
+
</IntlayerProvider>
|
|
213
|
+
<Scripts />
|
|
214
|
+
</body>
|
|
215
|
+
</html>
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Krok 6: Utworzenie Layoutu Językowego (opcjonalnie)
|
|
221
|
+
|
|
222
|
+
Utwórz layout, który obsługuje prefiks językowy i wykonuje walidację. Ten layout zapewni, że przetwarzane będą tylko prawidłowe języki.
|
|
223
|
+
|
|
224
|
+
> Ten krok jest opcjonalny, jeśli nie potrzebujesz walidacji prefiksu języka na poziomie trasy.
|
|
225
|
+
|
|
226
|
+
```tsx fileName="src/routes/{-$locale}/route.tsx"
|
|
227
|
+
import { createFileRoute, Outlet, redirect } from "@tanstack/solid-router";
|
|
228
|
+
import { validatePrefix } from "intlayer";
|
|
229
|
+
|
|
230
|
+
export const Route = createFileRoute("/{-$locale}")({
|
|
231
|
+
beforeLoad: ({ params }) => {
|
|
232
|
+
const localeParam = params.locale;
|
|
233
|
+
|
|
234
|
+
// Walidacja prefiksu języka
|
|
235
|
+
const { isValid, localePrefix } = validatePrefix(localeParam);
|
|
236
|
+
|
|
237
|
+
if (!isValid) {
|
|
238
|
+
throw redirect({
|
|
239
|
+
to: "/{-$locale}/404",
|
|
240
|
+
params: { locale: localePrefix },
|
|
241
|
+
replace: true,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
component: Outlet,
|
|
246
|
+
});
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
> Tutaj `{-$locale}` jest dynamicznym parametrem trasy, który jest zastępowany przez aktualny język. Ta notacja sprawia, że slot jest opcjonalny, co pozwala na współpracę z trybami routingu takimi jak `'prefix-no-default'` itp.
|
|
250
|
+
|
|
251
|
+
> Bądź świadomy, że ten slot może powodować problemy, jeśli używasz wielu dynamicznych segmentów w tej samej trasie (np.: `/{-$locale}/other-path/$anotherDynamicPath/...`).
|
|
252
|
+
> Dla trybu `'prefix-all'` możesz preferować zamianę slotu na `$locale`.
|
|
253
|
+
> Dla trybu `'no-prefix'` lub `'search-params'` możesz całkowicie usunąć ten slot.
|
|
254
|
+
|
|
255
|
+
### Krok 7: Zadeklaruj swoją treść
|
|
256
|
+
|
|
257
|
+
Twórz i zarządzaj swoimi deklaracjami treści, aby przechowywać tłumaczenia:
|
|
258
|
+
|
|
259
|
+
```tsx fileName="src/contents/page.content.ts"
|
|
260
|
+
import type { Dictionary } from "intlayer";
|
|
261
|
+
|
|
262
|
+
import { t } from "intlayer";
|
|
263
|
+
|
|
264
|
+
const appContent = {
|
|
265
|
+
content: {
|
|
266
|
+
links: {
|
|
267
|
+
about: t({
|
|
268
|
+
en: "About",
|
|
269
|
+
es: "Acerca de",
|
|
270
|
+
fr: "À propos",
|
|
271
|
+
}),
|
|
272
|
+
home: t({
|
|
273
|
+
en: "Home",
|
|
274
|
+
es: "Inicio",
|
|
275
|
+
fr: "Accueil",
|
|
276
|
+
}),
|
|
277
|
+
},
|
|
278
|
+
meta: {
|
|
279
|
+
title: t({
|
|
280
|
+
en: "Welcome to Intlayer + TanStack Router",
|
|
281
|
+
es: "Bienvenido a Intlayer + TanStack Router",
|
|
282
|
+
fr: "Bienvenue à Intlayer + TanStack Router",
|
|
283
|
+
}),
|
|
284
|
+
description: t({
|
|
285
|
+
en: "This is an example of using Intlayer with TanStack Router",
|
|
286
|
+
es: "Este es un ejemplo de uso de Intlayer con TanStack Router",
|
|
287
|
+
fr: "Ceci est un exemple d'utilisation d'Intlayer avec TanStack Router",
|
|
288
|
+
}),
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
key: "app",
|
|
292
|
+
} satisfies Dictionary;
|
|
293
|
+
|
|
294
|
+
export default appContent;
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
> Twoje deklaracje treści mogą być definiowane w dowolnym miejscu w aplikacji, pod warunkiem, że znajdują się w katalogu `contentDir` (domyślnie `./app`) i pasują do rozszerzenia pliku deklaracji treści (domyślnie `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
|
|
298
|
+
|
|
299
|
+
> Więcej szczegółów znajdziesz w [dokumentacji deklaracji treści](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/content_file.md).
|
|
300
|
+
|
|
301
|
+
### Krok 8: Wykorzystaj komponenty i hooki uwzględniające lokalizację
|
|
302
|
+
|
|
303
|
+
Utwórz komponent `LocalizedLink` do nawigacji uwzględniającej język:
|
|
304
|
+
|
|
305
|
+
```tsx fileName="src/components/LocalizedLink.tsx"
|
|
306
|
+
import { Link, type LinkProps } from "@tanstack/solid-router";
|
|
307
|
+
import { getPrefix } from "intlayer";
|
|
308
|
+
import { useLocale } from "solid-intlayer";
|
|
309
|
+
import type { JSX } from "solid-js";
|
|
310
|
+
|
|
311
|
+
export const LOCALE_ROUTE = "{-$locale}" as const;
|
|
312
|
+
|
|
313
|
+
export type RemoveLocaleParam<TVal> = TVal extends string
|
|
314
|
+
? RemoveLocaleFromString<TVal>
|
|
315
|
+
: TVal;
|
|
316
|
+
|
|
317
|
+
export type To = RemoveLocaleParam<LinkProps["to"]>;
|
|
318
|
+
|
|
319
|
+
type CollapseDoubleSlashes<TString extends string> =
|
|
320
|
+
TString extends `${infer THead}//${infer TTail}`
|
|
321
|
+
? CollapseDoubleSlashes<`${THead}/${TTail}`>
|
|
322
|
+
: TString;
|
|
323
|
+
|
|
324
|
+
export type LocalizedLinkProps = Omit<LinkProps, "to"> & {
|
|
325
|
+
to?: To;
|
|
326
|
+
} & JSX.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
327
|
+
|
|
328
|
+
type RemoveAll<
|
|
329
|
+
TString extends string,
|
|
330
|
+
TSub extends string,
|
|
331
|
+
> = TString extends `${infer THead}${TSub}${infer TTail}`
|
|
332
|
+
? RemoveAll<`${THead}${TTail}`, TSub>
|
|
333
|
+
: TString;
|
|
334
|
+
|
|
335
|
+
type RemoveLocaleFromString<TString extends string> = CollapseDoubleSlashes<
|
|
336
|
+
RemoveAll<TString, typeof LOCALE_ROUTE>
|
|
337
|
+
>;
|
|
338
|
+
|
|
339
|
+
export const LocalizedLink = (props: LocalizedLinkProps) => {
|
|
340
|
+
const { locale } = useLocale();
|
|
341
|
+
|
|
342
|
+
return (
|
|
343
|
+
<Link
|
|
344
|
+
{...props}
|
|
345
|
+
params={{
|
|
346
|
+
locale: getPrefix(locale()).localePrefix,
|
|
347
|
+
...(typeof props.params === "object" ? props.params : {}),
|
|
348
|
+
}}
|
|
349
|
+
to={`/${LOCALE_ROUTE}${props.to ?? ""}` as LinkProps["to"]}
|
|
350
|
+
/>
|
|
351
|
+
);
|
|
352
|
+
};
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
Ten komponent służy dwóm celom:
|
|
356
|
+
|
|
357
|
+
- Usuwaniu niepotrzebnego prefiksu `{-$locale}` z adresu URL.
|
|
358
|
+
- Wstrzykiwaniu parametru lokalizacji do adresu URL, aby upewnić się, że użytkownik zostanie bezpośrednio przekierowany na zlokalizowaną trasę.
|
|
359
|
+
|
|
360
|
+
Następnie możemy utworzyć hook `useLocalizedNavigate` do nawigacji programowej:
|
|
361
|
+
|
|
362
|
+
```tsx fileName="src/hooks/useLocalizedNavigate.tsx"
|
|
363
|
+
import { useNavigate } from "@tanstack/solid-router";
|
|
364
|
+
import { getLocalizedUrl } from "intlayer";
|
|
365
|
+
import { useLocale } from "solid-intlayer";
|
|
366
|
+
|
|
367
|
+
export const useLocalizedNavigate = () => {
|
|
368
|
+
const navigate = useNavigate();
|
|
369
|
+
const { locale } = useLocale();
|
|
370
|
+
|
|
371
|
+
const localizedNavigate = (to: string) => {
|
|
372
|
+
const localizedTo = getLocalizedUrl(to, locale());
|
|
373
|
+
return navigate({ to: localizedTo });
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
return localizedNavigate;
|
|
377
|
+
};
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### Krok 9: Użyj Intlayer na swoich stronach
|
|
381
|
+
|
|
382
|
+
Zyskaj dostęp do słowników treści w całej aplikacji:
|
|
383
|
+
|
|
384
|
+
#### Zlokalizowana Strona Główna
|
|
385
|
+
|
|
386
|
+
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
387
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
388
|
+
import { useIntlayer } from "solid-intlayer";
|
|
389
|
+
import { LocalizedLink } from "@/components/LocalizedLink";
|
|
390
|
+
|
|
391
|
+
export const Route = createFileRoute("/{-$locale}/")({
|
|
392
|
+
component: RouteComponent,
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
function RouteComponent() {
|
|
396
|
+
const content = useIntlayer("index-page");
|
|
397
|
+
|
|
398
|
+
return (
|
|
399
|
+
<main>
|
|
400
|
+
<h1>{content().heroTitle}</h1>
|
|
401
|
+
<p>{content().heroDesc}</p>
|
|
402
|
+
<div>
|
|
403
|
+
<LocalizedLink to="/">{content().navHome}</LocalizedLink>
|
|
404
|
+
<LocalizedLink to="/about">{content().navAbout}</LocalizedLink>
|
|
405
|
+
</div>
|
|
406
|
+
</main>
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
> W Solidzie, `useIntlayer` zwraca funkcję **accessor** (np.: `content()`). Musisz wywołać tę funkcję, aby uzyskać dostęp do reaktywnej treści.
|
|
412
|
+
>
|
|
413
|
+
> Aby dowiedzieć się więcej o hooku `useIntlayer`, zapoznaj się z [dokumentacją](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/packages/solid-intlayer/useIntlayer.md).
|
|
414
|
+
|
|
415
|
+
### Krok 10: Utworzenie komponentu Locale Switcher
|
|
416
|
+
|
|
417
|
+
Utwórz komponent pozwalający użytkownikom na zmianę języka:
|
|
418
|
+
|
|
419
|
+
```tsx fileName="src/components/LocaleSwitcher.tsx"
|
|
420
|
+
import { useLocation } from "@tanstack/solid-router";
|
|
421
|
+
import { getLocaleName, getPathWithoutLocale, getPrefix } from "intlayer";
|
|
422
|
+
import { For } from "solid-js";
|
|
423
|
+
import { useIntlayer, useLocale } from "solid-intlayer";
|
|
424
|
+
import { LocalizedLink, type To } from "./LocalizedLink";
|
|
425
|
+
|
|
426
|
+
export const LocaleSwitcher = () => {
|
|
427
|
+
const content = useIntlayer("locale-switcher");
|
|
428
|
+
const location = useLocation();
|
|
429
|
+
|
|
430
|
+
const { availableLocales, locale, setLocale } = useLocale();
|
|
431
|
+
|
|
432
|
+
const pathWithoutLocale = () => getPathWithoutLocale(location().pathname);
|
|
433
|
+
|
|
434
|
+
return (
|
|
435
|
+
<div class="flex flex-row gap-2">
|
|
436
|
+
<For each={availableLocales}>
|
|
437
|
+
{(localeEl) => (
|
|
438
|
+
<LocalizedLink
|
|
439
|
+
aria-current={localeEl === locale() ? "page" : undefined}
|
|
440
|
+
onClick={() => setLocale(localeEl)}
|
|
441
|
+
params={{ locale: getPrefix(localeEl).localePrefix }}
|
|
442
|
+
to={pathWithoutLocale() as To}
|
|
443
|
+
>
|
|
444
|
+
{getLocaleName(localeEl)}
|
|
445
|
+
</LocalizedLink>
|
|
446
|
+
)}
|
|
447
|
+
</For>
|
|
448
|
+
</div>
|
|
449
|
+
);
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
export default LocaleSwitcher;
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
> W plikach Solid, `locale` z `useLocale` to **signal accessor**. Użyj `locale()` (z nawiasami), aby reaktywnie odczytać jego aktualną wartość.
|
|
456
|
+
>
|
|
457
|
+
> Aby dowiedzieć się więcej o hooku `useLocale`, zapoznaj się z [dokumentacją](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/packages/solid-intlayer/useLocale.md).
|
|
458
|
+
|
|
459
|
+
### Krok 11: Zarządzanie atrybutami HTML
|
|
460
|
+
|
|
461
|
+
Jak pokazano w Kroku 5, możesz zarządzać atrybutami `lang` oraz `dir` tagu `html` za pomocą `useMatches` w swoim głównym komponencie (root component). Dzięki temu prawidłowe atrybuty zostaną ustawione zarówno na serwerze, jak i na kliencie.
|
|
462
|
+
|
|
463
|
+
```tsx fileName="src/routes/__root.tsx"
|
|
464
|
+
const RootComponent: ParentComponent = (props) => {
|
|
465
|
+
const matches = useMatches();
|
|
466
|
+
|
|
467
|
+
// Spróbuj znaleźć język w parametrach jakiegokolwiek aktywnego dopasowania
|
|
468
|
+
const locale =
|
|
469
|
+
(
|
|
470
|
+
matches().find((match) => match.routeId === "/{-$locale}/")
|
|
471
|
+
?.params as Params
|
|
472
|
+
)?.locale ?? defaultLocale;
|
|
473
|
+
|
|
474
|
+
return (
|
|
475
|
+
<html dir={getHTMLTextDir(locale)} lang={locale}>
|
|
476
|
+
{/* ... */}
|
|
477
|
+
</html>
|
|
478
|
+
);
|
|
479
|
+
};
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
### Krok 12: Dodaj Middleware (opcjonalnie)
|
|
485
|
+
|
|
486
|
+
Możesz również użyć `intlayerProxy`, aby dodać routing po stronie serwera do swojej aplikacji. Ten plugin automatycznie wykryje aktualny język na podstawie adresu URL i ustawi odpowiednie ciasteczko (cookie) języka. Jeśli nie określono języka, plugin określi najbardziej odpowiedni na podstawie preferencji językowych przeglądarki użytkownika. Jeśli nie zostanie wykryty żaden język, nastąpi przekierowanie do domyślnego języka.
|
|
487
|
+
|
|
488
|
+
> Zauważ, że aby korzystać z `intlayerProxy` w środowisku produkcyjnym, musisz przenieść pakiet `vite-intlayer` z `devDependencies` do `dependencies`.
|
|
489
|
+
|
|
490
|
+
```typescript {7,14-17} fileName="vite.config.ts"
|
|
491
|
+
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
492
|
+
import solid from "vite-plugin-solid";
|
|
493
|
+
import { nitro } from "nitro/vite";
|
|
494
|
+
import { defineConfig } from "vite";
|
|
495
|
+
import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
496
|
+
|
|
497
|
+
export default defineConfig({
|
|
498
|
+
plugins: [
|
|
499
|
+
intlayerProxy(), // Proxy powinno być umieszczone przed serwerem, jeśli używasz Nitro
|
|
500
|
+
nitro(),
|
|
501
|
+
intlayer(),
|
|
502
|
+
tanstackStart({
|
|
503
|
+
router: {
|
|
504
|
+
routeFileIgnorePattern:
|
|
505
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
506
|
+
},
|
|
507
|
+
}),
|
|
508
|
+
solid(),
|
|
509
|
+
],
|
|
510
|
+
});
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
### Krok 13: Umiędzynarowienie metadanych (opcjonalnie)
|
|
516
|
+
|
|
517
|
+
Możesz również użyć funkcji `getIntlayer`, aby uzyskać dostęp do swoich słowników treści wewnątrz loadera `head` w celu uzyskania metadanych uwzględniających lokalizację:
|
|
518
|
+
|
|
519
|
+
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
520
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
521
|
+
import { getIntlayer } from "intlayer";
|
|
522
|
+
|
|
523
|
+
export const Route = createFileRoute("/{-$locale}/")({
|
|
524
|
+
component: RouteComponent,
|
|
525
|
+
head: ({ params }) => {
|
|
526
|
+
const { locale } = params;
|
|
527
|
+
const metaContent = getIntlayer("page-metadata", locale);
|
|
528
|
+
|
|
529
|
+
return {
|
|
530
|
+
meta: [
|
|
531
|
+
{ title: metaContent.title },
|
|
532
|
+
{ content: metaContent.description, name: "description" },
|
|
533
|
+
],
|
|
534
|
+
};
|
|
535
|
+
},
|
|
536
|
+
});
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
---
|
|
540
|
+
|
|
541
|
+
### Krok 14: Pobieranie języka w akcjach serwera (opcjonalnie)
|
|
542
|
+
|
|
543
|
+
Możesz chcieć uzyskać dostęp do bieżącego języka wewnątrz akcji serwera (server actions) lub punktów końcowych API.
|
|
544
|
+
Możesz to zrobić, używając pomocnika `getLocale` z `intlayer`.
|
|
545
|
+
|
|
546
|
+
Oto przykład użycia funkcji serwerowych TanStack Start:
|
|
547
|
+
|
|
548
|
+
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
549
|
+
import { createServerFn } from "@tanstack/solid-start";
|
|
550
|
+
import {
|
|
551
|
+
getRequestHeader,
|
|
552
|
+
getRequestHeaders,
|
|
553
|
+
} from "@tanstack/solid-start/server";
|
|
554
|
+
import { getCookie, getIntlayer, getLocale } from "intlayer";
|
|
555
|
+
|
|
556
|
+
export const getLocaleServer = createServerFn().handler(async () => {
|
|
557
|
+
const locale = await getLocale({
|
|
558
|
+
// Pobierz ciasteczko z żądania (domyślnie: 'INTLAYER_LOCALE')
|
|
559
|
+
getCookie: (name) => {
|
|
560
|
+
const cookieString = getRequestHeader("cookie");
|
|
561
|
+
|
|
562
|
+
return getCookie(name, cookieString);
|
|
563
|
+
},
|
|
564
|
+
// Pobierz nagłówek z żądania (domyślnie: 'x-intlayer-locale')
|
|
565
|
+
// Fallback przy użyciu negocjacji Accept-Language
|
|
566
|
+
getHeader: (name) => getRequestHeader(name),
|
|
567
|
+
});
|
|
568
|
+
|
|
569
|
+
// Pobierz jakąś treść za pomocą getIntlayer()
|
|
570
|
+
const content = getIntlayer("app", locale);
|
|
571
|
+
|
|
572
|
+
return { locale, content };
|
|
573
|
+
});
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
---
|
|
577
|
+
|
|
578
|
+
### Krok 15: Zarządzanie stronami "nie znaleziono" (404) (opcjonalnie)
|
|
579
|
+
|
|
580
|
+
Gdy użytkownik odwiedzi nieistniejącą stronę, możesz wyświetlić niestandardową stronę 404, a prefiks językowy może wpływać na sposób wyzwalania strony 404.
|
|
581
|
+
|
|
582
|
+
#### Zrozumienie obsługi 404 w TanStack Router z prefiksami językowymi
|
|
583
|
+
|
|
584
|
+
W TanStack Router obsługa stron 404 ze zlokalizowanymi trasami wymaga podejścia wielowarstwowego:
|
|
585
|
+
|
|
586
|
+
1. **Dedykowana trasa 404**: Specyficzna trasa do wyświetlania interfejsu 404
|
|
587
|
+
2. **Walidacja na poziomie trasy**: Sprawdza prefiksy języka i przekierowuje nieprawidłowe na stronę 404
|
|
588
|
+
3. **Trasa catch-all**: Przechwytuje wszystkie niepasujące ścieżki wewnątrz segmentu językowego
|
|
589
|
+
|
|
590
|
+
```tsx fileName="src/routes/{-$locale}/404.tsx"
|
|
591
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
592
|
+
|
|
593
|
+
// To tworzy dedykowaną trasę /[locale]/404
|
|
594
|
+
// Jest używana zarówno jako bezpośrednia trasa, jak i importowana jako komponent w innych plikach
|
|
595
|
+
export const Route = createFileRoute("/{-$locale}/404")({
|
|
596
|
+
component: NotFoundComponent,
|
|
597
|
+
});
|
|
598
|
+
|
|
599
|
+
// Wyeksportowane oddzielnie, aby można było użyć ponownie w notFoundComponent i trasach catch-all
|
|
600
|
+
export function NotFoundComponent() {
|
|
601
|
+
return (
|
|
602
|
+
<div>
|
|
603
|
+
<h1>404</h1>
|
|
604
|
+
</div>
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
```tsx fileName="src/routes/{-$locale}/route.tsx"
|
|
610
|
+
import { createFileRoute, Outlet, redirect } from "@tanstack/solid-router";
|
|
611
|
+
import { validatePrefix } from "intlayer";
|
|
612
|
+
import { NotFoundComponent } from "./404";
|
|
613
|
+
|
|
614
|
+
export const Route = createFileRoute("/{-$locale}")({
|
|
615
|
+
// beforeLoad działa przed wyrenderowaniem trasy (zarówno serwer, jak i klient)
|
|
616
|
+
// To idealne miejsce na walidację prefiksu języka
|
|
617
|
+
beforeLoad: ({ params }) => {
|
|
618
|
+
const localeParam = params.locale;
|
|
619
|
+
|
|
620
|
+
// validatePrefix sprawdza, czy język jest prawidłowy zgodnie z Twoją konfiguracją intlayer
|
|
621
|
+
const { isValid, localePrefix } = validatePrefix(localeParam);
|
|
622
|
+
|
|
623
|
+
if (!isValid) {
|
|
624
|
+
// Nieprawidłowy prefiks języka - przekieruj na stronę 404 z prawidłowym prefiksem
|
|
625
|
+
throw redirect({
|
|
626
|
+
to: "/{-$locale}/404",
|
|
627
|
+
params: { locale: localePrefix },
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
component: Outlet,
|
|
632
|
+
// notFoundComponent jest wywoływany, gdy trasa podrzędna nie istnieje
|
|
633
|
+
// np.: /en/non-existent-page wyzwala to wewnątrz układu /en
|
|
634
|
+
notFoundComponent: NotFoundComponent,
|
|
635
|
+
});
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
```tsx fileName="src/routes/{-$locale}/$.tsx"
|
|
639
|
+
import { createFileRoute } from "@tanstack/solid-router";
|
|
640
|
+
|
|
641
|
+
import { NotFoundComponent } from "./404";
|
|
642
|
+
|
|
643
|
+
// Trasa $ (splat/catch-all) pasuje do każdej ścieżki, która nie pasuje do innych tras
|
|
644
|
+
// np.: /en/some/deeply/nested/invalid/path
|
|
645
|
+
// Zapewnia to, że WSZYSTKIE niepasujące ścieżki wewnątrz języka pokażą stronę 404
|
|
646
|
+
// Bez tego głębokie niepasujące ścieżki mogłyby pokazać pustą stronę lub błąd
|
|
647
|
+
export const Route = createFileRoute("/{-$locale}/$")({
|
|
648
|
+
component: NotFoundComponent,
|
|
649
|
+
});
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
### (Opcjonalnie) Krok 16: Wyodrębnij treść ze swoich komponentów
|
|
653
|
+
|
|
654
|
+
Jeśli masz istniejącą bazę kodu, transformacja tysięcy plików może być czasochłonna.
|
|
655
|
+
|
|
656
|
+
Aby ułatwić ten proces, Intlayer proponuje [kompilator](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/compiler.md) / [ekstraktor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/cli/extract.md) do transformacji komponentów i wyodrębnienia treści.
|
|
657
|
+
|
|
658
|
+
Aby go skonfigurować, możesz dodać sekcję `compiler` w pliku `intlayer.config.ts`:
|
|
659
|
+
|
|
660
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
661
|
+
import { type IntlayerConfig } from "intlayer";
|
|
662
|
+
|
|
663
|
+
const config: IntlayerConfig = {
|
|
664
|
+
// ... Reszta Twojej konfiguracji
|
|
665
|
+
compiler: {
|
|
666
|
+
/**
|
|
667
|
+
* Wskazuje, czy kompilator powinien być włączony.
|
|
668
|
+
*/
|
|
669
|
+
enabled: true,
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Definiuje ścieżkę plików wyjściowych
|
|
673
|
+
*/
|
|
674
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Wskazuje, czy komponenty powinny zostać zapisane po transformacji.
|
|
678
|
+
*
|
|
679
|
+
* - Jeśli `true`, kompilator nadpisze plik komponentu na dysku. W ten sposób transformacja będzie trwała, a kompilator pominie transformację przy następnym procesie. W ten sposób kompilator może przetransformować aplikację, a następnie można go usunąć.
|
|
680
|
+
*
|
|
681
|
+
* - Jeśli `false`, kompilator wstrzyknie wywołanie funkcji `useIntlayer()` do kodu tylko w danych wyjściowych buildu, zachowując bazową bazę kodu nienaruszoną. Transformacja zostanie wykonana tylko w pamięci.
|
|
682
|
+
*/
|
|
683
|
+
saveComponents: false,
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Prefiks klucza słownika
|
|
687
|
+
*/
|
|
688
|
+
dictionaryKeyPrefix: "",
|
|
689
|
+
},
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
export default config;
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
696
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
697
|
+
const config = {
|
|
698
|
+
// ... Reszta Twojej konfiguracji
|
|
699
|
+
compiler: {
|
|
700
|
+
/**
|
|
701
|
+
* Wskazuje, czy kompilator powinien być włączony.
|
|
702
|
+
*/
|
|
703
|
+
enabled: true,
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Definiuje ścieżkę plików wyjściowych
|
|
707
|
+
*/
|
|
708
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Wskazuje, czy komponenty powinny zostać zapisane po transformacji.
|
|
712
|
+
*
|
|
713
|
+
* - Jeśli `true`, kompilator nadpisze plik komponentu na dysku. W ten sposób transformacja będzie trwała, a kompilator pominie transformację przy następnym procesie. W ten sposób kompilator może przetransformować aplikację, a następnie można go usunąć.
|
|
714
|
+
*
|
|
715
|
+
* - Jeśli `false`, kompilator wstrzyknie wywołanie funkcji `useIntlayer()` do kodu tylko w danych wyjściowych buildu, zachowując bazową bazę kodu nienaruszoną. Transformacja zostanie wykonana tylko w pamięci.
|
|
716
|
+
*/
|
|
717
|
+
saveComponents: false,
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Prefiks klucza słownika
|
|
721
|
+
*/
|
|
722
|
+
dictionaryKeyPrefix: "",
|
|
723
|
+
},
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
export default config;
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
730
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
731
|
+
const config = {
|
|
732
|
+
// ... Reszta Twojej konfiguracji
|
|
733
|
+
compiler: {
|
|
734
|
+
/**
|
|
735
|
+
* Wskazuje, czy kompilator powinien być włączony.
|
|
736
|
+
*/
|
|
737
|
+
enabled: true,
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Definiuje ścieżkę plików wyjściowych
|
|
741
|
+
*/
|
|
742
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Wskazuje, czy komponenty powinny zostać zapisane po transformacji.
|
|
746
|
+
*
|
|
747
|
+
* - Jeśli `true`, kompilator nadpisze plik komponentu na dysku. W ten sposób transformacja będzie trwała, a kompilator pominie transformację przy następnym procesie. W ten sposób kompilator może przetransformować aplikację, a następnie można go usunąć.
|
|
748
|
+
*
|
|
749
|
+
* - Jeśli `false`, kompilator wstrzyknie wywołanie funkcji `useIntlayer()` do kodu tylko w danych wyjściowych buildu, zachowując bazową bazę kodu nienaruszoną. Transformacja zostanie wykonana tylko w pamięci.
|
|
750
|
+
*/
|
|
751
|
+
saveComponents: false,
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Prefiks klucza słownika
|
|
755
|
+
*/
|
|
756
|
+
dictionaryKeyPrefix: "",
|
|
757
|
+
},
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
module.exports = config;
|
|
761
|
+
```
|
|
762
|
+
|
|
763
|
+
<Tabs>
|
|
764
|
+
<Tab value='Polecenie extract'>
|
|
765
|
+
|
|
766
|
+
Uruchom ekstraktor, aby przetransformować swoje komponenty i wyodrębnić treść
|
|
767
|
+
|
|
768
|
+
```bash packageManager="npm"
|
|
769
|
+
npx intlayer extract
|
|
770
|
+
```
|
|
771
|
+
|
|
772
|
+
```bash packageManager="pnpm"
|
|
773
|
+
pnpm intlayer extract
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
```bash packageManager="yarn"
|
|
777
|
+
yarn intlayer extract
|
|
778
|
+
```
|
|
779
|
+
|
|
780
|
+
```bash packageManager="bun"
|
|
781
|
+
bun x intlayer extract
|
|
782
|
+
```
|
|
783
|
+
|
|
784
|
+
</Tab>
|
|
785
|
+
<Tab value='Kompilator Babel'>
|
|
786
|
+
|
|
787
|
+
Zaktualizuj swoje `vite.config.ts`, aby dołączyć wtyczkę `intlayerCompiler`:
|
|
788
|
+
|
|
789
|
+
```ts fileName="vite.config.ts"
|
|
790
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
791
|
+
import { defineConfig } from "vite";
|
|
792
|
+
import { devtools } from "@tanstack/devtools-vite";
|
|
793
|
+
import { tanstackStart } from "@tanstack/solid-start/plugin/vite";
|
|
794
|
+
import solidPlugin from "vite-plugin-solid";
|
|
795
|
+
|
|
796
|
+
export default defineConfig({
|
|
797
|
+
plugins: [
|
|
798
|
+
devtools(),
|
|
799
|
+
tanstackStart({
|
|
800
|
+
router: {
|
|
801
|
+
routeFileIgnorePattern:
|
|
802
|
+
".content.(ts|tsx|js|mjs|cjs|jsx|json|jsonc|json5)$",
|
|
803
|
+
},
|
|
804
|
+
}),
|
|
805
|
+
solidPlugin({ ssr: true }),
|
|
806
|
+
intlayer(),
|
|
807
|
+
intlayerCompiler(),
|
|
808
|
+
],
|
|
809
|
+
});
|
|
810
|
+
```
|
|
811
|
+
|
|
812
|
+
```bash packageManager="npm"
|
|
813
|
+
npm run build # Lub npm run dev
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
```bash packageManager="pnpm"
|
|
817
|
+
pnpm run build # Lub pnpm run dev
|
|
818
|
+
```
|
|
819
|
+
|
|
820
|
+
```bash packageManager="yarn"
|
|
821
|
+
yarn build # Lub yarn dev
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
```bash packageManager="bun"
|
|
825
|
+
bun run build # Lub bun run dev
|
|
826
|
+
```
|
|
827
|
+
|
|
828
|
+
</Tab>
|
|
829
|
+
</Tabs>
|
|
830
|
+
|
|
831
|
+
---
|
|
832
|
+
|
|
833
|
+
### Krok 17: Skonfiguruj TypeScript (opcjonalnie)
|
|
834
|
+
|
|
835
|
+
Intlayer używa rozszerzania modułów (module augmentation), aby czerpać korzyści z TypeScript i wzmocnić Twoją bazę kodu.
|
|
836
|
+
|
|
837
|
+
Upewnij się, że Twoja konfiguracja TypeScript zawiera automatycznie generowane typy:
|
|
838
|
+
|
|
839
|
+
```json5 fileName="tsconfig.json"
|
|
840
|
+
{
|
|
841
|
+
// ... Twoje istniejące ustawienia
|
|
842
|
+
include: [
|
|
843
|
+
// ... Twoje istniejące inkluzje
|
|
844
|
+
".intlayer/**/*.ts", // Uwzględnij automatycznie generowane typy
|
|
845
|
+
],
|
|
846
|
+
}
|
|
847
|
+
```
|
|
848
|
+
|
|
849
|
+
---
|
|
850
|
+
|
|
851
|
+
### Konfiguracja Git
|
|
852
|
+
|
|
853
|
+
Zaleca się ignorowanie plików generowanych przez Intlayer. Pozwala to uniknąć zakomitowania ich do repozytorium Git.
|
|
854
|
+
|
|
855
|
+
Aby to zrobić, możesz dodać następujące instrukcje do pliku `.gitignore`:
|
|
856
|
+
|
|
857
|
+
```plaintext fileName=".gitignore"
|
|
858
|
+
# Ignoruj pliki generowane przez Intlayer
|
|
859
|
+
.intlayer
|
|
860
|
+
```
|
|
861
|
+
|
|
862
|
+
---
|
|
863
|
+
|
|
864
|
+
## Rozszerzenie VS Code
|
|
865
|
+
|
|
866
|
+
Aby poprawić swoje doświadczenia deweloperskie z Intlayer, możesz zainstalować oficjalne **rozszerzenie Intlayer VS Code**.
|
|
867
|
+
|
|
868
|
+
[Zainstaluj z VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
|
|
869
|
+
|
|
870
|
+
To rozszerzenie oferuje:
|
|
871
|
+
|
|
872
|
+
- **Autouzupełnianie** kluczy tłumaczeń.
|
|
873
|
+
- **Wykrywanie błędów w czasie rzeczywistym** dla brakujących tłumaczeń.
|
|
874
|
+
- **Podgląd wewnątrz linii (inline previews)** przetłumaczonej treści.
|
|
875
|
+
- **Szybkie akcje** do łatwego tworzenia i aktualizowania tłumaczeń.
|
|
876
|
+
|
|
877
|
+
Więcej szczegółów na temat korzystania z rozszerzenia znajdziesz w [dokumentacji rozszerzenia Intlayer VS Code](https://intlayer.org/doc/vs-code-extension).
|
|
878
|
+
|
|
879
|
+
---
|
|
880
|
+
|
|
881
|
+
## Idąc dalej
|
|
882
|
+
|
|
883
|
+
Aby pójść dalej, możesz zaimplementować [edytor wizualny](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/intlayer_visual_editor.md) lub wyeksportować swoją treść za pomocą [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/intlayer_CMS.md).
|
|
884
|
+
|
|
885
|
+
---
|
|
886
|
+
|
|
887
|
+
## Odniesienia do dokumentacji
|
|
888
|
+
|
|
889
|
+
- [Dokumentacja Intlayer](https://intlayer.org)
|
|
890
|
+
- [Dokumentacja Tanstack Start](https://tanstack.com/start/latest)
|
|
891
|
+
- [Hook useIntlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/packages/solid-intlayer/useIntlayer.md)
|
|
892
|
+
- [Hook useLocale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/packages/solid-intlayer/useLocale.md)
|
|
893
|
+
- [Deklaracja Treści](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/content_file.md)
|
|
894
|
+
- [Konfiguracja](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/configuration.md)
|