@intlayer/docs 8.12.1 → 8.12.3
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/dist/cjs/blog.cjs.map +1 -1
- package/dist/cjs/common.cjs.map +1 -1
- package/dist/cjs/doc.cjs.map +1 -1
- package/dist/cjs/frequentQuestions.cjs.map +1 -1
- package/dist/cjs/generated/blog.entry.cjs +1 -0
- package/dist/cjs/generated/blog.entry.cjs.map +1 -1
- package/dist/cjs/generated/docs.entry.cjs +121 -0
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/cjs/generated/frequentQuestions.entry.cjs +1 -0
- package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
- package/dist/cjs/generated/legal.entry.cjs +1 -0
- package/dist/cjs/generated/legal.entry.cjs.map +1 -1
- package/dist/cjs/legal.cjs.map +1 -1
- package/dist/esm/blog.mjs.map +1 -1
- package/dist/esm/common.mjs.map +1 -1
- package/dist/esm/doc.mjs.map +1 -1
- package/dist/esm/frequentQuestions.mjs.map +1 -1
- package/dist/esm/generated/blog.entry.mjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +120 -0
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/esm/generated/frequentQuestions.entry.mjs.map +1 -1
- package/dist/esm/generated/legal.entry.mjs.map +1 -1
- package/dist/esm/legal.mjs.map +1 -1
- package/dist/types/blog.d.ts.map +1 -1
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/doc.d.ts.map +1 -1
- package/dist/types/frequentQuestions.d.ts.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +6 -0
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/dist/types/legal.d.ts.map +1 -1
- package/docs/ar/bundle_optimization.md +250 -102
- package/docs/ar/configuration.md +10 -9
- package/docs/ar/intlayer_with_adonisjs.md +1 -1
- package/docs/ar/intlayer_with_analog.md +1 -1
- package/docs/ar/intlayer_with_angular_19.md +1 -1
- package/docs/ar/intlayer_with_angular_21.md +1 -1
- package/docs/ar/intlayer_with_astro.md +1 -1
- package/docs/ar/intlayer_with_astro_lit.md +1 -1
- package/docs/ar/intlayer_with_astro_preact.md +1 -1
- package/docs/ar/intlayer_with_astro_react.md +1 -1
- package/docs/ar/intlayer_with_astro_solid.md +1 -1
- package/docs/ar/intlayer_with_astro_svelte.md +1 -1
- package/docs/ar/intlayer_with_astro_vanilla.md +1 -1
- package/docs/ar/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/ar/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/ar/intlayer_with_nuxt.md +1 -1
- package/docs/ar/intlayer_with_react_router_v7.md +1 -1
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/ar/intlayer_with_tanstack+solid.md +1 -1
- package/docs/ar/intlayer_with_tanstack.md +1 -1
- package/docs/ar/intlayer_with_vanilla.md +1 -1
- package/docs/ar/intlayer_with_vite+lit.md +1 -1
- package/docs/ar/intlayer_with_vite+preact.md +1 -1
- package/docs/ar/intlayer_with_vite+react.md +1 -1
- package/docs/ar/intlayer_with_vite+solid.md +1 -1
- package/docs/ar/intlayer_with_vite+svelte.md +1 -1
- package/docs/ar/intlayer_with_vite+vanilla.md +1 -1
- package/docs/ar/intlayer_with_vite+vue.md +1 -1
- package/docs/bn/bundle_optimization.md +252 -104
- package/docs/bn/configuration.md +10 -9
- package/docs/bn/intlayer_with_angular_21.md +1 -1
- package/docs/bn/intlayer_with_fastify.md +1 -1
- package/docs/bn/intlayer_with_hono.md +1 -1
- package/docs/bn/intlayer_with_vanilla.md +1 -1
- package/docs/bn/intlayer_with_vite+lit.md +1 -1
- package/docs/bn/intlayer_with_vite+vanilla.md +1 -1
- package/docs/cs/bundle_optimization.md +253 -105
- package/docs/cs/configuration.md +10 -9
- package/docs/cs/intlayer_with_angular_21.md +1 -1
- package/docs/cs/intlayer_with_fastify.md +1 -1
- package/docs/cs/intlayer_with_hono.md +1 -1
- package/docs/cs/intlayer_with_vanilla.md +1 -1
- package/docs/cs/intlayer_with_vite+lit.md +1 -1
- package/docs/cs/intlayer_with_vite+vanilla.md +1 -1
- package/docs/de/bundle_optimization.md +245 -97
- package/docs/de/configuration.md +10 -9
- package/docs/de/intlayer_with_adonisjs.md +1 -1
- package/docs/de/intlayer_with_analog.md +1 -1
- package/docs/de/intlayer_with_angular_19.md +1 -1
- package/docs/de/intlayer_with_angular_21.md +1 -1
- package/docs/de/intlayer_with_astro.md +1 -1
- package/docs/de/intlayer_with_astro_lit.md +1 -1
- package/docs/de/intlayer_with_astro_preact.md +1 -1
- package/docs/de/intlayer_with_astro_react.md +1 -1
- package/docs/de/intlayer_with_astro_solid.md +1 -1
- package/docs/de/intlayer_with_astro_svelte.md +1 -1
- package/docs/de/intlayer_with_astro_vanilla.md +1 -1
- package/docs/de/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/de/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/de/intlayer_with_nuxt.md +1 -1
- package/docs/de/intlayer_with_react_router_v7.md +1 -1
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/de/intlayer_with_tanstack+solid.md +1 -1
- package/docs/de/intlayer_with_tanstack.md +1 -1
- package/docs/de/intlayer_with_vanilla.md +1 -1
- package/docs/de/intlayer_with_vite+lit.md +1 -1
- package/docs/de/intlayer_with_vite+preact.md +1 -1
- package/docs/de/intlayer_with_vite+react.md +1 -1
- package/docs/de/intlayer_with_vite+solid.md +1 -1
- package/docs/de/intlayer_with_vite+svelte.md +1 -1
- package/docs/de/intlayer_with_vite+vanilla.md +1 -1
- package/docs/de/intlayer_with_vite+vue.md +1 -1
- package/docs/de/migration_from_i18next_to_intlayer.md +313 -0
- package/docs/de/migration_from_next-i18next_to_intlayer.md +338 -0
- package/docs/de/migration_from_next-intl_to_intlayer.md +347 -0
- package/docs/de/migration_from_nuxtjs_i18n_to_intlayer.md +311 -0
- package/docs/de/migration_from_react-i18next_to_intlayer.md +367 -0
- package/docs/de/migration_from_vue-i18n_to_intlayer.md +342 -0
- package/docs/en/bundle_optimization.md +172 -49
- package/docs/en/configuration.md +10 -9
- package/docs/en/intlayer_with_adonisjs.md +1 -1
- package/docs/en/intlayer_with_analog.md +1 -1
- package/docs/en/intlayer_with_angular_19.md +1 -1
- package/docs/en/intlayer_with_angular_21.md +1 -1
- package/docs/en/intlayer_with_astro.md +1 -1
- package/docs/en/intlayer_with_astro_lit.md +1 -1
- package/docs/en/intlayer_with_astro_preact.md +1 -1
- package/docs/en/intlayer_with_astro_react.md +1 -1
- package/docs/en/intlayer_with_astro_solid.md +1 -1
- package/docs/en/intlayer_with_astro_svelte.md +1 -1
- package/docs/en/intlayer_with_astro_vanilla.md +1 -1
- package/docs/en/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/en/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/en/intlayer_with_nuxt.md +1 -1
- package/docs/en/intlayer_with_react_router_v7.md +1 -1
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/en/intlayer_with_tanstack+solid.md +1 -1
- package/docs/en/intlayer_with_tanstack.md +1 -1
- package/docs/en/intlayer_with_vanilla.md +1 -1
- package/docs/en/intlayer_with_vite+lit.md +1 -1
- package/docs/en/intlayer_with_vite+preact.md +1 -1
- package/docs/en/intlayer_with_vite+react.md +1 -1
- package/docs/en/intlayer_with_vite+solid.md +1 -1
- package/docs/en/intlayer_with_vite+svelte.md +1 -1
- package/docs/en/intlayer_with_vite+vanilla.md +1 -1
- package/docs/en/intlayer_with_vite+vue.md +1 -1
- package/docs/en/migration_from_i18next_to_intlayer.md +316 -0
- package/docs/en/migration_from_next-i18next_to_intlayer.md +338 -0
- package/docs/en/migration_from_next-intl_to_intlayer.md +347 -0
- package/docs/en/migration_from_nuxtjs_i18n_to_intlayer.md +311 -0
- package/docs/en/migration_from_react-i18next_to_intlayer.md +367 -0
- package/docs/en/migration_from_vue-i18n_to_intlayer.md +342 -0
- package/docs/en-GB/bundle_optimization.md +230 -82
- package/docs/en-GB/configuration.md +10 -9
- 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_19.md +1 -1
- package/docs/en-GB/intlayer_with_angular_21.md +1 -1
- package/docs/en-GB/intlayer_with_astro.md +1 -1
- package/docs/en-GB/intlayer_with_astro_lit.md +1 -1
- package/docs/en-GB/intlayer_with_astro_preact.md +1 -1
- package/docs/en-GB/intlayer_with_astro_react.md +1 -1
- package/docs/en-GB/intlayer_with_astro_solid.md +1 -1
- package/docs/en-GB/intlayer_with_astro_svelte.md +1 -1
- package/docs/en-GB/intlayer_with_astro_vanilla.md +1 -1
- package/docs/en-GB/intlayer_with_astro_vue.md +1 -1
- package/docs/en-GB/intlayer_with_create_react_app.md +1 -1
- 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_nestjs.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_no_locale_path.md +1 -1
- package/docs/en-GB/intlayer_with_nuxt.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_tanstack+solid.md +1 -1
- package/docs/en-GB/intlayer_with_tanstack.md +1 -1
- package/docs/en-GB/intlayer_with_vanilla.md +1 -1
- package/docs/en-GB/intlayer_with_vite+lit.md +1 -1
- package/docs/en-GB/intlayer_with_vite+preact.md +1 -1
- package/docs/en-GB/intlayer_with_vite+react.md +1 -1
- package/docs/en-GB/intlayer_with_vite+solid.md +1 -1
- package/docs/en-GB/intlayer_with_vite+svelte.md +1 -1
- package/docs/en-GB/intlayer_with_vite+vanilla.md +1 -1
- package/docs/en-GB/intlayer_with_vite+vue.md +1 -1
- package/docs/es/bundle_optimization.md +250 -102
- package/docs/es/configuration.md +10 -9
- package/docs/es/intlayer_with_adonisjs.md +1 -1
- package/docs/es/intlayer_with_analog.md +1 -1
- package/docs/es/intlayer_with_angular_19.md +1 -1
- package/docs/es/intlayer_with_angular_21.md +1 -1
- package/docs/es/intlayer_with_astro.md +1 -1
- package/docs/es/intlayer_with_astro_lit.md +1 -1
- package/docs/es/intlayer_with_astro_preact.md +1 -1
- package/docs/es/intlayer_with_astro_react.md +1 -1
- package/docs/es/intlayer_with_astro_solid.md +1 -1
- package/docs/es/intlayer_with_astro_svelte.md +1 -1
- package/docs/es/intlayer_with_astro_vanilla.md +1 -1
- package/docs/es/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/es/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/es/intlayer_with_nuxt.md +1 -1
- package/docs/es/intlayer_with_react_router_v7.md +1 -1
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/es/intlayer_with_tanstack+solid.md +1 -1
- package/docs/es/intlayer_with_tanstack.md +1 -1
- package/docs/es/intlayer_with_vanilla.md +1 -1
- package/docs/es/intlayer_with_vite+lit.md +1 -1
- package/docs/es/intlayer_with_vite+preact.md +1 -1
- package/docs/es/intlayer_with_vite+react.md +1 -1
- package/docs/es/intlayer_with_vite+solid.md +1 -1
- package/docs/es/intlayer_with_vite+svelte.md +1 -1
- package/docs/es/intlayer_with_vite+vanilla.md +1 -1
- package/docs/es/intlayer_with_vite+vue.md +1 -1
- package/docs/es/migration_from_i18next_to_intlayer.md +313 -0
- package/docs/es/migration_from_next-i18next_to_intlayer.md +338 -0
- package/docs/es/migration_from_next-intl_to_intlayer.md +347 -0
- package/docs/es/migration_from_nuxtjs_i18n_to_intlayer.md +311 -0
- package/docs/es/migration_from_react-i18next_to_intlayer.md +367 -0
- package/docs/es/migration_from_vue-i18n_to_intlayer.md +342 -0
- package/docs/es/packages/next-intlayer/index.md +1 -1
- package/docs/es/packages/react-intlayer/index.md +1 -1
- package/docs/fr/bundle_optimization.md +223 -75
- package/docs/fr/configuration.md +10 -9
- package/docs/fr/intlayer_with_adonisjs.md +1 -1
- package/docs/fr/intlayer_with_analog.md +1 -1
- package/docs/fr/intlayer_with_angular_19.md +1 -1
- package/docs/fr/intlayer_with_angular_21.md +1 -1
- package/docs/fr/intlayer_with_astro.md +1 -1
- package/docs/fr/intlayer_with_astro_lit.md +1 -1
- package/docs/fr/intlayer_with_astro_preact.md +1 -1
- package/docs/fr/intlayer_with_astro_react.md +1 -1
- package/docs/fr/intlayer_with_astro_solid.md +1 -1
- package/docs/fr/intlayer_with_astro_svelte.md +1 -1
- package/docs/fr/intlayer_with_astro_vanilla.md +1 -1
- package/docs/fr/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/fr/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/fr/intlayer_with_nuxt.md +1 -1
- package/docs/fr/intlayer_with_react_router_v7.md +1 -1
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/fr/intlayer_with_tanstack+solid.md +1 -1
- package/docs/fr/intlayer_with_tanstack.md +1 -1
- package/docs/fr/intlayer_with_vanilla.md +1 -1
- package/docs/fr/intlayer_with_vite+lit.md +1 -1
- package/docs/fr/intlayer_with_vite+preact.md +1 -1
- package/docs/fr/intlayer_with_vite+react.md +1 -1
- package/docs/fr/intlayer_with_vite+solid.md +1 -1
- package/docs/fr/intlayer_with_vite+svelte.md +1 -1
- package/docs/fr/intlayer_with_vite+vanilla.md +1 -1
- package/docs/fr/intlayer_with_vite+vue.md +1 -1
- package/docs/fr/migration_from_i18next_to_intlayer.md +313 -0
- package/docs/fr/migration_from_next-i18next_to_intlayer.md +338 -0
- package/docs/fr/migration_from_next-intl_to_intlayer.md +347 -0
- package/docs/fr/migration_from_nuxtjs_i18n_to_intlayer.md +311 -0
- package/docs/fr/migration_from_react-i18next_to_intlayer.md +367 -0
- package/docs/fr/migration_from_vue-i18n_to_intlayer.md +342 -0
- package/docs/fr/packages/react-intlayer/index.md +1 -1
- package/docs/hi/bundle_optimization.md +253 -105
- package/docs/hi/configuration.md +10 -9
- package/docs/hi/intlayer_with_adonisjs.md +1 -1
- package/docs/hi/intlayer_with_analog.md +1 -1
- package/docs/hi/intlayer_with_angular_19.md +1 -1
- package/docs/hi/intlayer_with_angular_21.md +1 -1
- package/docs/hi/intlayer_with_astro.md +1 -1
- package/docs/hi/intlayer_with_astro_lit.md +1 -1
- package/docs/hi/intlayer_with_astro_preact.md +1 -1
- package/docs/hi/intlayer_with_astro_react.md +1 -1
- package/docs/hi/intlayer_with_astro_solid.md +1 -1
- package/docs/hi/intlayer_with_astro_svelte.md +1 -1
- package/docs/hi/intlayer_with_astro_vanilla.md +1 -1
- package/docs/hi/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/hi/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/hi/intlayer_with_nuxt.md +1 -1
- package/docs/hi/intlayer_with_react_router_v7.md +1 -1
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/hi/intlayer_with_tanstack+solid.md +1 -1
- package/docs/hi/intlayer_with_tanstack.md +1 -1
- package/docs/hi/intlayer_with_vanilla.md +1 -1
- package/docs/hi/intlayer_with_vite+lit.md +1 -1
- package/docs/hi/intlayer_with_vite+preact.md +1 -1
- package/docs/hi/intlayer_with_vite+react.md +1 -1
- package/docs/hi/intlayer_with_vite+solid.md +1 -1
- package/docs/hi/intlayer_with_vite+svelte.md +1 -1
- package/docs/hi/intlayer_with_vite+vanilla.md +1 -1
- package/docs/hi/intlayer_with_vite+vue.md +1 -1
- package/docs/hi/packages/intlayer/index.md +1 -1
- package/docs/id/bundle_optimization.md +258 -110
- package/docs/id/configuration.md +10 -9
- package/docs/id/intlayer_with_adonisjs.md +1 -1
- package/docs/id/intlayer_with_analog.md +1 -1
- package/docs/id/intlayer_with_angular_19.md +1 -1
- package/docs/id/intlayer_with_angular_21.md +1 -1
- package/docs/id/intlayer_with_astro.md +1 -1
- package/docs/id/intlayer_with_astro_lit.md +1 -1
- package/docs/id/intlayer_with_astro_preact.md +1 -1
- package/docs/id/intlayer_with_astro_react.md +1 -1
- package/docs/id/intlayer_with_astro_solid.md +1 -1
- package/docs/id/intlayer_with_astro_svelte.md +1 -1
- package/docs/id/intlayer_with_astro_vanilla.md +1 -1
- package/docs/id/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/id/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/id/intlayer_with_nuxt.md +1 -1
- package/docs/id/intlayer_with_react_router_v7.md +1 -1
- package/docs/id/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/id/intlayer_with_tanstack+solid.md +1 -1
- package/docs/id/intlayer_with_tanstack.md +1 -1
- package/docs/id/intlayer_with_vanilla.md +1 -1
- package/docs/id/intlayer_with_vite+lit.md +1 -1
- package/docs/id/intlayer_with_vite+preact.md +1 -1
- package/docs/id/intlayer_with_vite+react.md +1 -1
- package/docs/id/intlayer_with_vite+solid.md +1 -1
- package/docs/id/intlayer_with_vite+svelte.md +1 -1
- package/docs/id/intlayer_with_vite+vanilla.md +1 -1
- package/docs/id/intlayer_with_vite+vue.md +1 -1
- package/docs/it/bundle_optimization.md +249 -103
- package/docs/it/configuration.md +10 -9
- package/docs/it/intlayer_with_adonisjs.md +1 -1
- package/docs/it/intlayer_with_analog.md +1 -1
- package/docs/it/intlayer_with_angular_19.md +1 -1
- package/docs/it/intlayer_with_angular_21.md +1 -1
- package/docs/it/intlayer_with_astro.md +1 -1
- package/docs/it/intlayer_with_astro_lit.md +1 -1
- package/docs/it/intlayer_with_astro_preact.md +1 -1
- package/docs/it/intlayer_with_astro_react.md +1 -1
- package/docs/it/intlayer_with_astro_solid.md +1 -1
- package/docs/it/intlayer_with_astro_svelte.md +1 -1
- package/docs/it/intlayer_with_astro_vanilla.md +1 -1
- package/docs/it/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/it/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/it/intlayer_with_nuxt.md +1 -1
- package/docs/it/intlayer_with_react_router_v7.md +1 -1
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/it/intlayer_with_tanstack+solid.md +1 -1
- package/docs/it/intlayer_with_tanstack.md +1 -1
- package/docs/it/intlayer_with_vanilla.md +1 -1
- package/docs/it/intlayer_with_vite+lit.md +1 -1
- package/docs/it/intlayer_with_vite+preact.md +1 -1
- package/docs/it/intlayer_with_vite+react.md +1 -1
- package/docs/it/intlayer_with_vite+solid.md +1 -1
- package/docs/it/intlayer_with_vite+svelte.md +1 -1
- package/docs/it/intlayer_with_vite+vanilla.md +1 -1
- package/docs/it/intlayer_with_vite+vue.md +1 -1
- package/docs/it/migration_from_i18next_to_intlayer.md +313 -0
- package/docs/it/migration_from_next-i18next_to_intlayer.md +338 -0
- package/docs/it/migration_from_next-intl_to_intlayer.md +347 -0
- package/docs/it/migration_from_nuxtjs_i18n_to_intlayer.md +311 -0
- package/docs/it/migration_from_react-i18next_to_intlayer.md +367 -0
- package/docs/it/migration_from_vue-i18n_to_intlayer.md +342 -0
- package/docs/ja/bundle_optimization.md +245 -97
- package/docs/ja/configuration.md +10 -9
- package/docs/ja/intlayer_with_adonisjs.md +1 -1
- package/docs/ja/intlayer_with_analog.md +1 -1
- package/docs/ja/intlayer_with_angular_19.md +1 -1
- package/docs/ja/intlayer_with_angular_21.md +1 -1
- package/docs/ja/intlayer_with_astro.md +1 -1
- package/docs/ja/intlayer_with_astro_lit.md +1 -1
- package/docs/ja/intlayer_with_astro_preact.md +1 -1
- package/docs/ja/intlayer_with_astro_react.md +1 -1
- package/docs/ja/intlayer_with_astro_solid.md +1 -1
- package/docs/ja/intlayer_with_astro_svelte.md +1 -1
- package/docs/ja/intlayer_with_astro_vanilla.md +1 -1
- package/docs/ja/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/ja/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/ja/intlayer_with_nuxt.md +1 -1
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/ja/intlayer_with_tanstack+solid.md +1 -1
- package/docs/ja/intlayer_with_tanstack.md +1 -1
- package/docs/ja/intlayer_with_vanilla.md +1 -1
- package/docs/ja/intlayer_with_vite+lit.md +1 -1
- package/docs/ja/intlayer_with_vite+solid.md +1 -1
- package/docs/ja/intlayer_with_vite+svelte.md +1 -1
- package/docs/ja/intlayer_with_vite+vanilla.md +1 -1
- package/docs/ja/intlayer_with_vite+vue.md +1 -1
- package/docs/ja/migration_from_i18next_to_intlayer.md +313 -0
- package/docs/ja/migration_from_next-i18next_to_intlayer.md +338 -0
- package/docs/ja/migration_from_next-intl_to_intlayer.md +347 -0
- package/docs/ja/migration_from_nuxtjs_i18n_to_intlayer.md +311 -0
- package/docs/ja/migration_from_react-i18next_to_intlayer.md +367 -0
- package/docs/ja/migration_from_vue-i18n_to_intlayer.md +342 -0
- package/docs/ko/bundle_optimization.md +253 -105
- package/docs/ko/configuration.md +10 -9
- package/docs/ko/intlayer_with_adonisjs.md +1 -1
- package/docs/ko/intlayer_with_analog.md +1 -1
- package/docs/ko/intlayer_with_angular_19.md +1 -1
- package/docs/ko/intlayer_with_angular_21.md +1 -1
- package/docs/ko/intlayer_with_astro.md +1 -1
- package/docs/ko/intlayer_with_astro_lit.md +1 -1
- package/docs/ko/intlayer_with_astro_preact.md +1 -1
- package/docs/ko/intlayer_with_astro_react.md +1 -1
- package/docs/ko/intlayer_with_astro_solid.md +1 -1
- package/docs/ko/intlayer_with_astro_svelte.md +1 -1
- package/docs/ko/intlayer_with_astro_vanilla.md +1 -1
- package/docs/ko/intlayer_with_astro_vue.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_nestjs.md +1 -1
- package/docs/ko/intlayer_with_nextjs_14.md +1 -1
- package/docs/ko/intlayer_with_nextjs_15.md +2 -2
- package/docs/ko/intlayer_with_nextjs_16.md +1 -1
- package/docs/ko/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/ko/intlayer_with_nuxt.md +1 -1
- package/docs/ko/intlayer_with_react_router_v7.md +1 -1
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/ko/intlayer_with_tanstack+solid.md +1 -1
- package/docs/ko/intlayer_with_tanstack.md +1 -1
- package/docs/ko/intlayer_with_vanilla.md +1 -1
- package/docs/ko/intlayer_with_vite+lit.md +1 -1
- package/docs/ko/intlayer_with_vite+preact.md +1 -1
- package/docs/ko/intlayer_with_vite+react.md +1 -1
- package/docs/ko/intlayer_with_vite+solid.md +1 -1
- package/docs/ko/intlayer_with_vite+svelte.md +1 -1
- package/docs/ko/intlayer_with_vite+vanilla.md +1 -1
- package/docs/ko/intlayer_with_vite+vue.md +1 -1
- package/docs/ko/migration_from_i18next_to_intlayer.md +313 -0
- package/docs/ko/migration_from_next-i18next_to_intlayer.md +338 -0
- package/docs/ko/migration_from_next-intl_to_intlayer.md +347 -0
- package/docs/ko/migration_from_nuxtjs_i18n_to_intlayer.md +311 -0
- package/docs/ko/migration_from_react-i18next_to_intlayer.md +367 -0
- package/docs/ko/migration_from_vue-i18n_to_intlayer.md +342 -0
- package/docs/nl/bundle_optimization.md +249 -101
- package/docs/nl/configuration.md +10 -9
- package/docs/nl/intlayer_with_angular_21.md +1 -1
- package/docs/nl/intlayer_with_fastify.md +1 -1
- package/docs/nl/intlayer_with_hono.md +1 -1
- package/docs/nl/intlayer_with_vanilla.md +1 -1
- package/docs/nl/intlayer_with_vite+lit.md +1 -1
- package/docs/nl/intlayer_with_vite+vanilla.md +1 -1
- package/docs/pl/bundle_optimization.md +258 -111
- package/docs/pl/configuration.md +10 -9
- package/docs/pl/intlayer_with_adonisjs.md +1 -1
- package/docs/pl/intlayer_with_analog.md +1 -1
- package/docs/pl/intlayer_with_angular_19.md +1 -1
- package/docs/pl/intlayer_with_angular_21.md +1 -1
- package/docs/pl/intlayer_with_astro.md +1 -1
- package/docs/pl/intlayer_with_astro_lit.md +1 -1
- package/docs/pl/intlayer_with_astro_preact.md +1 -1
- package/docs/pl/intlayer_with_astro_react.md +1 -1
- package/docs/pl/intlayer_with_astro_solid.md +1 -1
- package/docs/pl/intlayer_with_astro_svelte.md +1 -1
- package/docs/pl/intlayer_with_astro_vanilla.md +1 -1
- package/docs/pl/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/pl/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/pl/intlayer_with_nuxt.md +1 -1
- package/docs/pl/intlayer_with_react_router_v7.md +1 -1
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/pl/intlayer_with_tanstack+solid.md +1 -1
- package/docs/pl/intlayer_with_tanstack.md +1 -1
- package/docs/pl/intlayer_with_vanilla.md +1 -1
- package/docs/pl/intlayer_with_vite+lit.md +1 -1
- package/docs/pl/intlayer_with_vite+preact.md +1 -1
- package/docs/pl/intlayer_with_vite+react.md +1 -1
- package/docs/pl/intlayer_with_vite+solid.md +1 -1
- package/docs/pl/intlayer_with_vite+svelte.md +1 -1
- package/docs/pl/intlayer_with_vite+vanilla.md +1 -1
- package/docs/pl/intlayer_with_vite+vue.md +1 -1
- package/docs/pt/bundle_optimization.md +256 -115
- package/docs/pt/configuration.md +10 -9
- package/docs/pt/intlayer_with_adonisjs.md +1 -1
- package/docs/pt/intlayer_with_analog.md +1 -1
- package/docs/pt/intlayer_with_angular_19.md +1 -1
- package/docs/pt/intlayer_with_angular_21.md +1 -1
- package/docs/pt/intlayer_with_astro.md +1 -1
- package/docs/pt/intlayer_with_astro_lit.md +1 -1
- package/docs/pt/intlayer_with_astro_preact.md +1 -1
- package/docs/pt/intlayer_with_astro_react.md +1 -1
- package/docs/pt/intlayer_with_astro_solid.md +1 -1
- package/docs/pt/intlayer_with_astro_svelte.md +1 -1
- package/docs/pt/intlayer_with_astro_vanilla.md +1 -1
- package/docs/pt/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/pt/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/pt/intlayer_with_nuxt.md +1 -1
- package/docs/pt/intlayer_with_react_router_v7.md +1 -1
- package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/pt/intlayer_with_tanstack+solid.md +1 -1
- package/docs/pt/intlayer_with_tanstack.md +1 -1
- package/docs/pt/intlayer_with_vanilla.md +1 -1
- package/docs/pt/intlayer_with_vite+lit.md +1 -1
- package/docs/pt/intlayer_with_vite+preact.md +1 -1
- package/docs/pt/intlayer_with_vite+react.md +1 -1
- package/docs/pt/intlayer_with_vite+solid.md +1 -1
- package/docs/pt/intlayer_with_vite+svelte.md +1 -1
- package/docs/pt/intlayer_with_vite+vanilla.md +1 -1
- package/docs/pt/intlayer_with_vite+vue.md +1 -1
- package/docs/pt/migration_from_i18next_to_intlayer.md +313 -0
- package/docs/pt/migration_from_next-i18next_to_intlayer.md +338 -0
- package/docs/pt/migration_from_next-intl_to_intlayer.md +347 -0
- package/docs/pt/migration_from_nuxtjs_i18n_to_intlayer.md +311 -0
- package/docs/pt/migration_from_react-i18next_to_intlayer.md +367 -0
- package/docs/pt/migration_from_vue-i18n_to_intlayer.md +342 -0
- package/docs/ru/bundle_optimization.md +253 -105
- package/docs/ru/configuration.md +10 -9
- package/docs/ru/intlayer_with_adonisjs.md +1 -1
- package/docs/ru/intlayer_with_analog.md +1 -1
- package/docs/ru/intlayer_with_angular_19.md +1 -1
- package/docs/ru/intlayer_with_angular_21.md +1 -1
- package/docs/ru/intlayer_with_astro.md +1 -1
- package/docs/ru/intlayer_with_astro_lit.md +1 -1
- package/docs/ru/intlayer_with_astro_preact.md +1 -1
- package/docs/ru/intlayer_with_astro_react.md +1 -1
- package/docs/ru/intlayer_with_astro_solid.md +1 -1
- package/docs/ru/intlayer_with_astro_svelte.md +1 -1
- package/docs/ru/intlayer_with_astro_vanilla.md +1 -1
- package/docs/ru/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/ru/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/ru/intlayer_with_nuxt.md +1 -1
- package/docs/ru/intlayer_with_react_router_v7.md +1 -1
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/ru/intlayer_with_tanstack+solid.md +1 -1
- package/docs/ru/intlayer_with_tanstack.md +1 -1
- package/docs/ru/intlayer_with_vanilla.md +1 -1
- package/docs/ru/intlayer_with_vite+lit.md +1 -1
- package/docs/ru/intlayer_with_vite+preact.md +1 -1
- package/docs/ru/intlayer_with_vite+react.md +1 -1
- package/docs/ru/intlayer_with_vite+solid.md +1 -1
- package/docs/ru/intlayer_with_vite+svelte.md +1 -1
- package/docs/ru/intlayer_with_vite+vanilla.md +1 -1
- package/docs/ru/intlayer_with_vite+vue.md +1 -1
- package/docs/ru/migration_from_i18next_to_intlayer.md +313 -0
- package/docs/ru/migration_from_next-i18next_to_intlayer.md +338 -0
- package/docs/ru/migration_from_next-intl_to_intlayer.md +347 -0
- package/docs/ru/migration_from_nuxtjs_i18n_to_intlayer.md +311 -0
- package/docs/ru/migration_from_react-i18next_to_intlayer.md +367 -0
- package/docs/ru/migration_from_vue-i18n_to_intlayer.md +342 -0
- package/docs/tr/bundle_optimization.md +255 -107
- package/docs/tr/configuration.md +10 -9
- package/docs/tr/intlayer_with_adonisjs.md +1 -1
- package/docs/tr/intlayer_with_analog.md +1 -1
- package/docs/tr/intlayer_with_angular_19.md +1 -1
- package/docs/tr/intlayer_with_angular_21.md +1 -1
- package/docs/tr/intlayer_with_astro.md +1 -1
- package/docs/tr/intlayer_with_astro_lit.md +1 -1
- package/docs/tr/intlayer_with_astro_preact.md +1 -1
- package/docs/tr/intlayer_with_astro_react.md +1 -1
- package/docs/tr/intlayer_with_astro_solid.md +1 -1
- package/docs/tr/intlayer_with_astro_svelte.md +1 -1
- package/docs/tr/intlayer_with_astro_vanilla.md +1 -1
- package/docs/tr/intlayer_with_astro_vue.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_nestjs.md +1 -1
- package/docs/tr/intlayer_with_nextjs_15.md +1 -1
- package/docs/tr/intlayer_with_nextjs_16.md +1 -1
- package/docs/tr/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/tr/intlayer_with_nuxt.md +1 -1
- package/docs/tr/intlayer_with_react_router_v7.md +1 -1
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/tr/intlayer_with_tanstack+solid.md +1 -1
- package/docs/tr/intlayer_with_tanstack.md +1 -1
- package/docs/tr/intlayer_with_vanilla.md +1 -1
- package/docs/tr/intlayer_with_vite+lit.md +1 -1
- package/docs/tr/intlayer_with_vite+preact.md +1 -1
- package/docs/tr/intlayer_with_vite+react.md +1 -1
- package/docs/tr/intlayer_with_vite+solid.md +1 -1
- package/docs/tr/intlayer_with_vite+svelte.md +1 -1
- package/docs/tr/intlayer_with_vite+vanilla.md +1 -1
- package/docs/tr/intlayer_with_vite+vue.md +1 -1
- package/docs/tr/migration_from_i18next_to_intlayer.md +314 -0
- package/docs/tr/migration_from_next-i18next_to_intlayer.md +339 -0
- package/docs/tr/migration_from_next-intl_to_intlayer.md +348 -0
- package/docs/tr/migration_from_nuxtjs_i18n_to_intlayer.md +312 -0
- package/docs/tr/migration_from_react-i18next_to_intlayer.md +368 -0
- package/docs/tr/migration_from_vue-i18n_to_intlayer.md +343 -0
- package/docs/uk/bundle_optimization.md +250 -102
- package/docs/uk/configuration.md +10 -9
- package/docs/uk/intlayer_with_adonisjs.md +1 -1
- package/docs/uk/intlayer_with_analog.md +1 -1
- package/docs/uk/intlayer_with_angular_19.md +1 -1
- package/docs/uk/intlayer_with_angular_21.md +1 -1
- package/docs/uk/intlayer_with_astro.md +1 -1
- package/docs/uk/intlayer_with_astro_lit.md +1 -1
- package/docs/uk/intlayer_with_astro_preact.md +1 -1
- package/docs/uk/intlayer_with_astro_react.md +1 -1
- package/docs/uk/intlayer_with_astro_solid.md +1 -1
- package/docs/uk/intlayer_with_astro_svelte.md +1 -1
- package/docs/uk/intlayer_with_astro_vanilla.md +1 -1
- package/docs/uk/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/uk/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/uk/intlayer_with_nuxt.md +1 -1
- package/docs/uk/intlayer_with_react_router_v7.md +1 -1
- package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/uk/intlayer_with_tanstack+solid.md +1 -1
- package/docs/uk/intlayer_with_tanstack.md +1 -1
- package/docs/uk/intlayer_with_vanilla.md +1 -1
- package/docs/uk/intlayer_with_vite+lit.md +1 -1
- package/docs/uk/intlayer_with_vite+preact.md +1 -1
- package/docs/uk/intlayer_with_vite+react.md +1 -1
- package/docs/uk/intlayer_with_vite+solid.md +1 -1
- package/docs/uk/intlayer_with_vite+svelte.md +1 -1
- package/docs/uk/intlayer_with_vite+vanilla.md +1 -1
- package/docs/uk/intlayer_with_vite+vue.md +1 -1
- package/docs/ur/bundle_optimization.md +257 -109
- package/docs/ur/configuration.md +10 -9
- package/docs/ur/intlayer_with_angular_21.md +1 -1
- package/docs/ur/intlayer_with_fastify.md +1 -1
- package/docs/ur/intlayer_with_hono.md +1 -1
- package/docs/ur/intlayer_with_vanilla.md +1 -1
- package/docs/ur/intlayer_with_vite+lit.md +1 -1
- package/docs/ur/intlayer_with_vite+vanilla.md +1 -1
- package/docs/vi/bundle_optimization.md +259 -111
- package/docs/vi/configuration.md +10 -9
- package/docs/vi/intlayer_with_adonisjs.md +1 -1
- package/docs/vi/intlayer_with_analog.md +1 -1
- package/docs/vi/intlayer_with_angular_19.md +1 -1
- package/docs/vi/intlayer_with_angular_21.md +1 -1
- package/docs/vi/intlayer_with_astro.md +1 -1
- package/docs/vi/intlayer_with_astro_lit.md +1 -1
- package/docs/vi/intlayer_with_astro_preact.md +1 -1
- package/docs/vi/intlayer_with_astro_react.md +1 -1
- package/docs/vi/intlayer_with_astro_solid.md +1 -1
- package/docs/vi/intlayer_with_astro_svelte.md +1 -1
- package/docs/vi/intlayer_with_astro_vanilla.md +1 -1
- package/docs/vi/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/vi/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/vi/intlayer_with_nuxt.md +1 -1
- package/docs/vi/intlayer_with_react_router_v7.md +1 -1
- package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/vi/intlayer_with_tanstack+solid.md +1 -1
- package/docs/vi/intlayer_with_tanstack.md +1 -1
- package/docs/vi/intlayer_with_vanilla.md +1 -1
- package/docs/vi/intlayer_with_vite+lit.md +1 -1
- package/docs/vi/intlayer_with_vite+preact.md +1 -1
- package/docs/vi/intlayer_with_vite+react.md +1 -1
- package/docs/vi/intlayer_with_vite+solid.md +1 -1
- package/docs/vi/intlayer_with_vite+svelte.md +1 -1
- package/docs/vi/intlayer_with_vite+vanilla.md +1 -1
- package/docs/vi/intlayer_with_vite+vue.md +1 -1
- package/docs/zh/bundle_optimization.md +260 -112
- package/docs/zh/configuration.md +10 -9
- package/docs/zh/intlayer_with_adonisjs.md +1 -1
- package/docs/zh/intlayer_with_analog.md +1 -1
- package/docs/zh/intlayer_with_angular_19.md +1 -1
- package/docs/zh/intlayer_with_angular_21.md +1 -1
- package/docs/zh/intlayer_with_astro.md +1 -1
- package/docs/zh/intlayer_with_astro_lit.md +1 -1
- package/docs/zh/intlayer_with_astro_preact.md +1 -1
- package/docs/zh/intlayer_with_astro_react.md +1 -1
- package/docs/zh/intlayer_with_astro_solid.md +1 -1
- package/docs/zh/intlayer_with_astro_svelte.md +1 -1
- package/docs/zh/intlayer_with_astro_vanilla.md +1 -1
- package/docs/zh/intlayer_with_astro_vue.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_nestjs.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 +1 -1
- package/docs/zh/intlayer_with_nextjs_no_locale_path.md +1 -1
- package/docs/zh/intlayer_with_nuxt.md +1 -1
- package/docs/zh/intlayer_with_react_router_v7.md +1 -1
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +1 -1
- package/docs/zh/intlayer_with_tanstack+solid.md +1 -1
- package/docs/zh/intlayer_with_tanstack.md +1 -1
- package/docs/zh/intlayer_with_vanilla.md +1 -1
- package/docs/zh/intlayer_with_vite+lit.md +1 -1
- package/docs/zh/intlayer_with_vite+preact.md +1 -1
- package/docs/zh/intlayer_with_vite+react.md +1 -1
- package/docs/zh/intlayer_with_vite+solid.md +1 -1
- package/docs/zh/intlayer_with_vite+svelte.md +1 -1
- package/docs/zh/intlayer_with_vite+vanilla.md +1 -1
- package/docs/zh/intlayer_with_vite+vue.md +1 -1
- package/docs/zh-TW/bundle_optimization.md +602 -0
- package/docs/zh-TW/intlayer_with_angular_21.md +1 -1
- package/package.json +8 -8
- package/src/generated/docs.entry.ts +120 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
let node_path = require("node:path");
|
|
3
4
|
let node_fs = require("node:fs");
|
|
4
5
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frequentQuestions.entry.cjs","names":[],"sources":["../../../src/generated/frequentQuestions.entry.ts"],"sourcesContent":["/* AUTO-GENERATED – DO NOT EDIT */\n/* REGENERATE USING `pnpm prepare` */\nimport { existsSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join, dirname as pathDirname } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\n// Robustly resolve the base directory of the @intlayer/docs package in both\n// bundled environments (Next.js) and standalone CLIs (MCP via npx).\nconst currentDir =\n typeof __dirname !== 'undefined'\n ? __dirname\n : pathDirname(fileURLToPath(import.meta.url));\n\nlet baseDir: string;\ntry {\n // Prefer resolving from the location of this file (works for CLIs).\n const projectRequire = getProjectRequire(currentDir);\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n} catch {\n try {\n // Fallback: resolve from the consumer project (works for apps/bundlers).\n const projectRequire = getProjectRequire();\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n } catch {\n // Last resort: walk up from currentDir (useful when executed inside @intlayer/docs).\n baseDir = getPackageJsonPath(currentDir).baseDir;\n }\n}\n\nconst readLocale = (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n const target1 = join(\n baseDir,\n `./frequent_questions/${locale}/${relativeAfterLocale}`\n );\n if (existsSync(target1)) {\n return readFile(target1, 'utf8');\n }\n const target2 = join(\n baseDir,\n `./frequent_questions/en/${relativeAfterLocale}`\n );\n if (existsSync(target2)) {\n return readFile(target2, 'utf8');\n }\n\n return Promise.reject(\n new Error(\n `[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`\n )\n );\n};\n\nexport const frequentQuestionsEntry = {\n './frequent_questions/en/SSR_Next_no_[locale].md': {\n en: readLocale('SSR_Next_no_[locale].md', 'en'),\n ru: readLocale('SSR_Next_no_[locale].md', 'ru'),\n ja: readLocale('SSR_Next_no_[locale].md', 'ja'),\n fr: readLocale('SSR_Next_no_[locale].md', 'fr'),\n ko: readLocale('SSR_Next_no_[locale].md', 'ko'),\n zh: readLocale('SSR_Next_no_[locale].md', 'zh'),\n es: readLocale('SSR_Next_no_[locale].md', 'es'),\n de: readLocale('SSR_Next_no_[locale].md', 'de'),\n ar: readLocale('SSR_Next_no_[locale].md', 'ar'),\n it: readLocale('SSR_Next_no_[locale].md', 'it'),\n 'en-GB': readLocale('SSR_Next_no_[locale].md', 'en-GB'),\n pt: readLocale('SSR_Next_no_[locale].md', 'pt'),\n hi: readLocale('SSR_Next_no_[locale].md', 'hi'),\n tr: readLocale('SSR_Next_no_[locale].md', 'tr'),\n pl: readLocale('SSR_Next_no_[locale].md', 'pl'),\n id: readLocale('SSR_Next_no_[locale].md', 'id'),\n vi: readLocale('SSR_Next_no_[locale].md', 'vi'),\n uk: readLocale('SSR_Next_no_[locale].md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/array_as_content_declaration.md': {\n en: readLocale('array_as_content_declaration.md', 'en'),\n ru: readLocale('array_as_content_declaration.md', 'ru'),\n ja: readLocale('array_as_content_declaration.md', 'ja'),\n fr: readLocale('array_as_content_declaration.md', 'fr'),\n ko: readLocale('array_as_content_declaration.md', 'ko'),\n zh: readLocale('array_as_content_declaration.md', 'zh'),\n es: readLocale('array_as_content_declaration.md', 'es'),\n de: readLocale('array_as_content_declaration.md', 'de'),\n ar: readLocale('array_as_content_declaration.md', 'ar'),\n it: readLocale('array_as_content_declaration.md', 'it'),\n 'en-GB': readLocale('array_as_content_declaration.md', 'en-GB'),\n pt: readLocale('array_as_content_declaration.md', 'pt'),\n hi: readLocale('array_as_content_declaration.md', 'hi'),\n tr: readLocale('array_as_content_declaration.md', 'tr'),\n pl: readLocale('array_as_content_declaration.md', 'pl'),\n id: readLocale('array_as_content_declaration.md', 'id'),\n vi: readLocale('array_as_content_declaration.md', 'vi'),\n uk: readLocale('array_as_content_declaration.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/build_dictionaries.md': {\n en: readLocale('build_dictionaries.md', 'en'),\n ru: readLocale('build_dictionaries.md', 'ru'),\n ja: readLocale('build_dictionaries.md', 'ja'),\n fr: readLocale('build_dictionaries.md', 'fr'),\n ko: readLocale('build_dictionaries.md', 'ko'),\n zh: readLocale('build_dictionaries.md', 'zh'),\n es: readLocale('build_dictionaries.md', 'es'),\n de: readLocale('build_dictionaries.md', 'de'),\n ar: readLocale('build_dictionaries.md', 'ar'),\n it: readLocale('build_dictionaries.md', 'it'),\n 'en-GB': readLocale('build_dictionaries.md', 'en-GB'),\n pt: readLocale('build_dictionaries.md', 'pt'),\n hi: readLocale('build_dictionaries.md', 'hi'),\n tr: readLocale('build_dictionaries.md', 'tr'),\n pl: readLocale('build_dictionaries.md', 'pl'),\n id: readLocale('build_dictionaries.md', 'id'),\n vi: readLocale('build_dictionaries.md', 'vi'),\n uk: readLocale('build_dictionaries.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/build_error_CI_CD.md': {\n en: readLocale('build_error_CI_CD.md', 'en'),\n ru: readLocale('build_error_CI_CD.md', 'ru'),\n ja: readLocale('build_error_CI_CD.md', 'ja'),\n fr: readLocale('build_error_CI_CD.md', 'fr'),\n ko: readLocale('build_error_CI_CD.md', 'ko'),\n zh: readLocale('build_error_CI_CD.md', 'zh'),\n es: readLocale('build_error_CI_CD.md', 'es'),\n de: readLocale('build_error_CI_CD.md', 'de'),\n ar: readLocale('build_error_CI_CD.md', 'ar'),\n it: readLocale('build_error_CI_CD.md', 'it'),\n 'en-GB': readLocale('build_error_CI_CD.md', 'en-GB'),\n pt: readLocale('build_error_CI_CD.md', 'pt'),\n hi: readLocale('build_error_CI_CD.md', 'hi'),\n tr: readLocale('build_error_CI_CD.md', 'tr'),\n pl: readLocale('build_error_CI_CD.md', 'pl'),\n id: readLocale('build_error_CI_CD.md', 'id'),\n vi: readLocale('build_error_CI_CD.md', 'vi'),\n uk: readLocale('build_error_CI_CD.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/bun_set_up.md': {\n en: readLocale('bun_set_up.md', 'en'),\n ru: readLocale('bun_set_up.md', 'ru'),\n ja: readLocale('bun_set_up.md', 'ja'),\n fr: readLocale('bun_set_up.md', 'fr'),\n ko: readLocale('bun_set_up.md', 'ko'),\n zh: readLocale('bun_set_up.md', 'zh'),\n es: readLocale('bun_set_up.md', 'es'),\n de: readLocale('bun_set_up.md', 'de'),\n ar: readLocale('bun_set_up.md', 'ar'),\n it: readLocale('bun_set_up.md', 'it'),\n 'en-GB': readLocale('bun_set_up.md', 'en-GB'),\n pt: readLocale('bun_set_up.md', 'pt'),\n hi: readLocale('bun_set_up.md', 'hi'),\n tr: readLocale('bun_set_up.md', 'tr'),\n pl: readLocale('bun_set_up.md', 'pl'),\n id: readLocale('bun_set_up.md', 'id'),\n vi: readLocale('bun_set_up.md', 'vi'),\n uk: readLocale('bun_set_up.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/customized_locale_list.md': {\n en: readLocale('customized_locale_list.md', 'en'),\n ru: readLocale('customized_locale_list.md', 'ru'),\n ja: readLocale('customized_locale_list.md', 'ja'),\n fr: readLocale('customized_locale_list.md', 'fr'),\n ko: readLocale('customized_locale_list.md', 'ko'),\n zh: readLocale('customized_locale_list.md', 'zh'),\n es: readLocale('customized_locale_list.md', 'es'),\n de: readLocale('customized_locale_list.md', 'de'),\n ar: readLocale('customized_locale_list.md', 'ar'),\n it: readLocale('customized_locale_list.md', 'it'),\n 'en-GB': readLocale('customized_locale_list.md', 'en-GB'),\n pt: readLocale('customized_locale_list.md', 'pt'),\n hi: readLocale('customized_locale_list.md', 'hi'),\n tr: readLocale('customized_locale_list.md', 'tr'),\n pl: readLocale('customized_locale_list.md', 'pl'),\n id: readLocale('customized_locale_list.md', 'id'),\n vi: readLocale('customized_locale_list.md', 'vi'),\n uk: readLocale('customized_locale_list.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/domain_routing.md': {\n en: readLocale('domain_routing.md', 'en'),\n ru: readLocale('domain_routing.md', 'ru'),\n ja: readLocale('domain_routing.md', 'ja'),\n fr: readLocale('domain_routing.md', 'fr'),\n ko: readLocale('domain_routing.md', 'ko'),\n zh: readLocale('domain_routing.md', 'zh'),\n es: readLocale('domain_routing.md', 'es'),\n de: readLocale('domain_routing.md', 'de'),\n ar: readLocale('domain_routing.md', 'ar'),\n it: readLocale('domain_routing.md', 'it'),\n 'en-GB': readLocale('domain_routing.md', 'en-GB'),\n pt: readLocale('domain_routing.md', 'pt'),\n hi: readLocale('domain_routing.md', 'hi'),\n tr: readLocale('domain_routing.md', 'tr'),\n pl: readLocale('domain_routing.md', 'pl'),\n id: readLocale('domain_routing.md', 'id'),\n vi: readLocale('domain_routing.md', 'vi'),\n uk: readLocale('domain_routing.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/error-vite-env-only.md': {\n en: readLocale('error-vite-env-only.md', 'en'),\n ru: readLocale('error-vite-env-only.md', 'ru'),\n ja: readLocale('error-vite-env-only.md', 'ja'),\n fr: readLocale('error-vite-env-only.md', 'fr'),\n ko: readLocale('error-vite-env-only.md', 'ko'),\n zh: readLocale('error-vite-env-only.md', 'zh'),\n es: readLocale('error-vite-env-only.md', 'es'),\n de: readLocale('error-vite-env-only.md', 'de'),\n ar: readLocale('error-vite-env-only.md', 'ar'),\n it: readLocale('error-vite-env-only.md', 'it'),\n 'en-GB': readLocale('error-vite-env-only.md', 'en-GB'),\n pt: readLocale('error-vite-env-only.md', 'pt'),\n hi: readLocale('error-vite-env-only.md', 'hi'),\n tr: readLocale('error-vite-env-only.md', 'tr'),\n pl: readLocale('error-vite-env-only.md', 'pl'),\n id: readLocale('error-vite-env-only.md', 'id'),\n vi: readLocale('error-vite-env-only.md', 'vi'),\n uk: readLocale('error-vite-env-only.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/esbuild_error.md': {\n en: readLocale('esbuild_error.md', 'en'),\n ru: readLocale('esbuild_error.md', 'ru'),\n ja: readLocale('esbuild_error.md', 'ja'),\n fr: readLocale('esbuild_error.md', 'fr'),\n ko: readLocale('esbuild_error.md', 'ko'),\n zh: readLocale('esbuild_error.md', 'zh'),\n es: readLocale('esbuild_error.md', 'es'),\n de: readLocale('esbuild_error.md', 'de'),\n ar: readLocale('esbuild_error.md', 'ar'),\n it: readLocale('esbuild_error.md', 'it'),\n 'en-GB': readLocale('esbuild_error.md', 'en-GB'),\n pt: readLocale('esbuild_error.md', 'pt'),\n hi: readLocale('esbuild_error.md', 'hi'),\n tr: readLocale('esbuild_error.md', 'tr'),\n pl: readLocale('esbuild_error.md', 'pl'),\n id: readLocale('esbuild_error.md', 'id'),\n vi: readLocale('esbuild_error.md', 'vi'),\n uk: readLocale('esbuild_error.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/get_locale_cookie.md': {\n en: readLocale('get_locale_cookie.md', 'en'),\n ru: readLocale('get_locale_cookie.md', 'ru'),\n ja: readLocale('get_locale_cookie.md', 'ja'),\n fr: readLocale('get_locale_cookie.md', 'fr'),\n ko: readLocale('get_locale_cookie.md', 'ko'),\n zh: readLocale('get_locale_cookie.md', 'zh'),\n es: readLocale('get_locale_cookie.md', 'es'),\n de: readLocale('get_locale_cookie.md', 'de'),\n ar: readLocale('get_locale_cookie.md', 'ar'),\n it: readLocale('get_locale_cookie.md', 'it'),\n 'en-GB': readLocale('get_locale_cookie.md', 'en-GB'),\n pt: readLocale('get_locale_cookie.md', 'pt'),\n hi: readLocale('get_locale_cookie.md', 'hi'),\n tr: readLocale('get_locale_cookie.md', 'tr'),\n pl: readLocale('get_locale_cookie.md', 'pl'),\n id: readLocale('get_locale_cookie.md', 'id'),\n vi: readLocale('get_locale_cookie.md', 'vi'),\n uk: readLocale('get_locale_cookie.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/intlayerNode.md': {\n en: readLocale('intlayerNode.md', 'en'),\n ru: readLocale('intlayerNode.md', 'ru'),\n ja: readLocale('intlayerNode.md', 'ja'),\n fr: readLocale('intlayerNode.md', 'fr'),\n ko: readLocale('intlayerNode.md', 'ko'),\n zh: readLocale('intlayerNode.md', 'zh'),\n es: readLocale('intlayerNode.md', 'es'),\n de: readLocale('intlayerNode.md', 'de'),\n ar: readLocale('intlayerNode.md', 'ar'),\n it: readLocale('intlayerNode.md', 'it'),\n 'en-GB': readLocale('intlayerNode.md', 'en-GB'),\n pt: readLocale('intlayerNode.md', 'pt'),\n hi: readLocale('intlayerNode.md', 'hi'),\n tr: readLocale('intlayerNode.md', 'tr'),\n pl: readLocale('intlayerNode.md', 'pl'),\n id: readLocale('intlayerNode.md', 'id'),\n vi: readLocale('intlayerNode.md', 'vi'),\n uk: readLocale('intlayerNode.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/intlayer_command_undefined.md': {\n en: readLocale('intlayer_command_undefined.md', 'en'),\n ru: readLocale('intlayer_command_undefined.md', 'ru'),\n ja: readLocale('intlayer_command_undefined.md', 'ja'),\n fr: readLocale('intlayer_command_undefined.md', 'fr'),\n ko: readLocale('intlayer_command_undefined.md', 'ko'),\n zh: readLocale('intlayer_command_undefined.md', 'zh'),\n es: readLocale('intlayer_command_undefined.md', 'es'),\n de: readLocale('intlayer_command_undefined.md', 'de'),\n ar: readLocale('intlayer_command_undefined.md', 'ar'),\n it: readLocale('intlayer_command_undefined.md', 'it'),\n 'en-GB': readLocale('intlayer_command_undefined.md', 'en-GB'),\n pt: readLocale('intlayer_command_undefined.md', 'pt'),\n hi: readLocale('intlayer_command_undefined.md', 'hi'),\n tr: readLocale('intlayer_command_undefined.md', 'tr'),\n pl: readLocale('intlayer_command_undefined.md', 'pl'),\n id: readLocale('intlayer_command_undefined.md', 'id'),\n vi: readLocale('intlayer_command_undefined.md', 'vi'),\n uk: readLocale('intlayer_command_undefined.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/locale_incorect_in_url.md': {\n en: readLocale('locale_incorect_in_url.md', 'en'),\n ru: readLocale('locale_incorect_in_url.md', 'ru'),\n ja: readLocale('locale_incorect_in_url.md', 'ja'),\n fr: readLocale('locale_incorect_in_url.md', 'fr'),\n ko: readLocale('locale_incorect_in_url.md', 'ko'),\n zh: readLocale('locale_incorect_in_url.md', 'zh'),\n es: readLocale('locale_incorect_in_url.md', 'es'),\n de: readLocale('locale_incorect_in_url.md', 'de'),\n ar: readLocale('locale_incorect_in_url.md', 'ar'),\n it: readLocale('locale_incorect_in_url.md', 'it'),\n 'en-GB': readLocale('locale_incorect_in_url.md', 'en-GB'),\n pt: readLocale('locale_incorect_in_url.md', 'pt'),\n hi: readLocale('locale_incorect_in_url.md', 'hi'),\n tr: readLocale('locale_incorect_in_url.md', 'tr'),\n pl: readLocale('locale_incorect_in_url.md', 'pl'),\n id: readLocale('locale_incorect_in_url.md', 'id'),\n vi: readLocale('locale_incorect_in_url.md', 'vi'),\n uk: readLocale('locale_incorect_in_url.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/package_version_error.md': {\n en: readLocale('package_version_error.md', 'en'),\n ru: readLocale('package_version_error.md', 'ru'),\n ja: readLocale('package_version_error.md', 'ja'),\n fr: readLocale('package_version_error.md', 'fr'),\n ko: readLocale('package_version_error.md', 'ko'),\n zh: readLocale('package_version_error.md', 'zh'),\n es: readLocale('package_version_error.md', 'es'),\n de: readLocale('package_version_error.md', 'de'),\n ar: readLocale('package_version_error.md', 'ar'),\n it: readLocale('package_version_error.md', 'it'),\n 'en-GB': readLocale('package_version_error.md', 'en-GB'),\n pt: readLocale('package_version_error.md', 'pt'),\n hi: readLocale('package_version_error.md', 'hi'),\n tr: readLocale('package_version_error.md', 'tr'),\n pl: readLocale('package_version_error.md', 'pl'),\n id: readLocale('package_version_error.md', 'id'),\n vi: readLocale('package_version_error.md', 'vi'),\n uk: readLocale('package_version_error.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/static_rendering.md': {\n en: readLocale('static_rendering.md', 'en'),\n ru: readLocale('static_rendering.md', 'ru'),\n ja: readLocale('static_rendering.md', 'ja'),\n fr: readLocale('static_rendering.md', 'fr'),\n ko: readLocale('static_rendering.md', 'ko'),\n zh: readLocale('static_rendering.md', 'zh'),\n es: readLocale('static_rendering.md', 'es'),\n de: readLocale('static_rendering.md', 'de'),\n ar: readLocale('static_rendering.md', 'ar'),\n it: readLocale('static_rendering.md', 'it'),\n 'en-GB': readLocale('static_rendering.md', 'en-GB'),\n pt: readLocale('static_rendering.md', 'pt'),\n hi: readLocale('static_rendering.md', 'hi'),\n tr: readLocale('static_rendering.md', 'tr'),\n pl: readLocale('static_rendering.md', 'pl'),\n id: readLocale('static_rendering.md', 'id'),\n vi: readLocale('static_rendering.md', 'vi'),\n uk: readLocale('static_rendering.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/translated_path_url.md': {\n en: readLocale('translated_path_url.md', 'en'),\n ru: readLocale('translated_path_url.md', 'ru'),\n ja: readLocale('translated_path_url.md', 'ja'),\n fr: readLocale('translated_path_url.md', 'fr'),\n ko: readLocale('translated_path_url.md', 'ko'),\n zh: readLocale('translated_path_url.md', 'zh'),\n es: readLocale('translated_path_url.md', 'es'),\n de: readLocale('translated_path_url.md', 'de'),\n ar: readLocale('translated_path_url.md', 'ar'),\n it: readLocale('translated_path_url.md', 'it'),\n 'en-GB': readLocale('translated_path_url.md', 'en-GB'),\n pt: readLocale('translated_path_url.md', 'pt'),\n hi: readLocale('translated_path_url.md', 'hi'),\n tr: readLocale('translated_path_url.md', 'tr'),\n pl: readLocale('translated_path_url.md', 'pl'),\n id: readLocale('translated_path_url.md', 'id'),\n vi: readLocale('translated_path_url.md', 'vi'),\n uk: readLocale('translated_path_url.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/unknown_command.md': {\n en: readLocale('unknown_command.md', 'en'),\n ru: readLocale('unknown_command.md', 'ru'),\n ja: readLocale('unknown_command.md', 'ja'),\n fr: readLocale('unknown_command.md', 'fr'),\n ko: readLocale('unknown_command.md', 'ko'),\n zh: readLocale('unknown_command.md', 'zh'),\n es: readLocale('unknown_command.md', 'es'),\n de: readLocale('unknown_command.md', 'de'),\n ar: readLocale('unknown_command.md', 'ar'),\n it: readLocale('unknown_command.md', 'it'),\n 'en-GB': readLocale('unknown_command.md', 'en-GB'),\n pt: readLocale('unknown_command.md', 'pt'),\n hi: readLocale('unknown_command.md', 'hi'),\n tr: readLocale('unknown_command.md', 'tr'),\n pl: readLocale('unknown_command.md', 'pl'),\n id: readLocale('unknown_command.md', 'id'),\n vi: readLocale('unknown_command.md', 'vi'),\n uk: readLocale('unknown_command.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n} as const;\n"],"mappings":";;;;;;;;AAWA,MAAM,aACJ,OAAO,cAAc,cACjB,4GACyC,CAAC;AAEhD,IAAI;AACJ,IAAI;CAIF,uGAFyC,UACP,EAAE,QAAQ,gBACJ,CAAC,EAAE;AAC7C,QAAQ;CACN,IAAI;EAIF,uGADkC,EAAE,QAAQ,gBACJ,CAAC,EAAE;CAC7C,QAAQ;EAEN,yDAA6B,UAAU,EAAE;CAC3C;AACF;AAEA,MAAM,cACJ,qBACA,WACoB;CACpB,MAAM,8BACJ,SACA,wBAAwB,OAAO,GAAG,qBACpC;CACA,4BAAe,OAAO,GACpB,sCAAgB,SAAS,MAAM;CAEjC,MAAM,8BACJ,SACA,2BAA2B,qBAC7B;CACA,4BAAe,OAAO,GACpB,sCAAgB,SAAS,MAAM;CAGj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IAAI,WAAW,0BAA0B,IAAI;EAC7C,IAAI,WAAW,0BAA0B,IAAI;EAC7C,IAAI,WAAW,0BAA0B,IAAI;CAC/C;CACA,8CAA8C;EAC5C,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,SAAS,WAAW,sBAAsB,OAAO;EACjD,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;EACzC,IAAI,WAAW,sBAAsB,IAAI;CAC3C;AACF"}
|
|
1
|
+
{"version":3,"file":"frequentQuestions.entry.cjs","names":[],"sources":["../../../src/generated/frequentQuestions.entry.ts"],"sourcesContent":["/* AUTO-GENERATED – DO NOT EDIT */\n/* REGENERATE USING `pnpm prepare` */\nimport { existsSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join, dirname as pathDirname } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\n// Robustly resolve the base directory of the @intlayer/docs package in both\n// bundled environments (Next.js) and standalone CLIs (MCP via npx).\nconst currentDir =\n typeof __dirname !== 'undefined'\n ? __dirname\n : pathDirname(fileURLToPath(import.meta.url));\n\nlet baseDir: string;\ntry {\n // Prefer resolving from the location of this file (works for CLIs).\n const projectRequire = getProjectRequire(currentDir);\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n} catch {\n try {\n // Fallback: resolve from the consumer project (works for apps/bundlers).\n const projectRequire = getProjectRequire();\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n } catch {\n // Last resort: walk up from currentDir (useful when executed inside @intlayer/docs).\n baseDir = getPackageJsonPath(currentDir).baseDir;\n }\n}\n\nconst readLocale = (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n const target1 = join(\n baseDir,\n `./frequent_questions/${locale}/${relativeAfterLocale}`\n );\n if (existsSync(target1)) {\n return readFile(target1, 'utf8');\n }\n const target2 = join(\n baseDir,\n `./frequent_questions/en/${relativeAfterLocale}`\n );\n if (existsSync(target2)) {\n return readFile(target2, 'utf8');\n }\n\n return Promise.reject(\n new Error(\n `[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`\n )\n );\n};\n\nexport const frequentQuestionsEntry = {\n './frequent_questions/en/SSR_Next_no_[locale].md': {\n en: readLocale('SSR_Next_no_[locale].md', 'en'),\n ru: readLocale('SSR_Next_no_[locale].md', 'ru'),\n ja: readLocale('SSR_Next_no_[locale].md', 'ja'),\n fr: readLocale('SSR_Next_no_[locale].md', 'fr'),\n ko: readLocale('SSR_Next_no_[locale].md', 'ko'),\n zh: readLocale('SSR_Next_no_[locale].md', 'zh'),\n es: readLocale('SSR_Next_no_[locale].md', 'es'),\n de: readLocale('SSR_Next_no_[locale].md', 'de'),\n ar: readLocale('SSR_Next_no_[locale].md', 'ar'),\n it: readLocale('SSR_Next_no_[locale].md', 'it'),\n 'en-GB': readLocale('SSR_Next_no_[locale].md', 'en-GB'),\n pt: readLocale('SSR_Next_no_[locale].md', 'pt'),\n hi: readLocale('SSR_Next_no_[locale].md', 'hi'),\n tr: readLocale('SSR_Next_no_[locale].md', 'tr'),\n pl: readLocale('SSR_Next_no_[locale].md', 'pl'),\n id: readLocale('SSR_Next_no_[locale].md', 'id'),\n vi: readLocale('SSR_Next_no_[locale].md', 'vi'),\n uk: readLocale('SSR_Next_no_[locale].md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/array_as_content_declaration.md': {\n en: readLocale('array_as_content_declaration.md', 'en'),\n ru: readLocale('array_as_content_declaration.md', 'ru'),\n ja: readLocale('array_as_content_declaration.md', 'ja'),\n fr: readLocale('array_as_content_declaration.md', 'fr'),\n ko: readLocale('array_as_content_declaration.md', 'ko'),\n zh: readLocale('array_as_content_declaration.md', 'zh'),\n es: readLocale('array_as_content_declaration.md', 'es'),\n de: readLocale('array_as_content_declaration.md', 'de'),\n ar: readLocale('array_as_content_declaration.md', 'ar'),\n it: readLocale('array_as_content_declaration.md', 'it'),\n 'en-GB': readLocale('array_as_content_declaration.md', 'en-GB'),\n pt: readLocale('array_as_content_declaration.md', 'pt'),\n hi: readLocale('array_as_content_declaration.md', 'hi'),\n tr: readLocale('array_as_content_declaration.md', 'tr'),\n pl: readLocale('array_as_content_declaration.md', 'pl'),\n id: readLocale('array_as_content_declaration.md', 'id'),\n vi: readLocale('array_as_content_declaration.md', 'vi'),\n uk: readLocale('array_as_content_declaration.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/build_dictionaries.md': {\n en: readLocale('build_dictionaries.md', 'en'),\n ru: readLocale('build_dictionaries.md', 'ru'),\n ja: readLocale('build_dictionaries.md', 'ja'),\n fr: readLocale('build_dictionaries.md', 'fr'),\n ko: readLocale('build_dictionaries.md', 'ko'),\n zh: readLocale('build_dictionaries.md', 'zh'),\n es: readLocale('build_dictionaries.md', 'es'),\n de: readLocale('build_dictionaries.md', 'de'),\n ar: readLocale('build_dictionaries.md', 'ar'),\n it: readLocale('build_dictionaries.md', 'it'),\n 'en-GB': readLocale('build_dictionaries.md', 'en-GB'),\n pt: readLocale('build_dictionaries.md', 'pt'),\n hi: readLocale('build_dictionaries.md', 'hi'),\n tr: readLocale('build_dictionaries.md', 'tr'),\n pl: readLocale('build_dictionaries.md', 'pl'),\n id: readLocale('build_dictionaries.md', 'id'),\n vi: readLocale('build_dictionaries.md', 'vi'),\n uk: readLocale('build_dictionaries.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/build_error_CI_CD.md': {\n en: readLocale('build_error_CI_CD.md', 'en'),\n ru: readLocale('build_error_CI_CD.md', 'ru'),\n ja: readLocale('build_error_CI_CD.md', 'ja'),\n fr: readLocale('build_error_CI_CD.md', 'fr'),\n ko: readLocale('build_error_CI_CD.md', 'ko'),\n zh: readLocale('build_error_CI_CD.md', 'zh'),\n es: readLocale('build_error_CI_CD.md', 'es'),\n de: readLocale('build_error_CI_CD.md', 'de'),\n ar: readLocale('build_error_CI_CD.md', 'ar'),\n it: readLocale('build_error_CI_CD.md', 'it'),\n 'en-GB': readLocale('build_error_CI_CD.md', 'en-GB'),\n pt: readLocale('build_error_CI_CD.md', 'pt'),\n hi: readLocale('build_error_CI_CD.md', 'hi'),\n tr: readLocale('build_error_CI_CD.md', 'tr'),\n pl: readLocale('build_error_CI_CD.md', 'pl'),\n id: readLocale('build_error_CI_CD.md', 'id'),\n vi: readLocale('build_error_CI_CD.md', 'vi'),\n uk: readLocale('build_error_CI_CD.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/bun_set_up.md': {\n en: readLocale('bun_set_up.md', 'en'),\n ru: readLocale('bun_set_up.md', 'ru'),\n ja: readLocale('bun_set_up.md', 'ja'),\n fr: readLocale('bun_set_up.md', 'fr'),\n ko: readLocale('bun_set_up.md', 'ko'),\n zh: readLocale('bun_set_up.md', 'zh'),\n es: readLocale('bun_set_up.md', 'es'),\n de: readLocale('bun_set_up.md', 'de'),\n ar: readLocale('bun_set_up.md', 'ar'),\n it: readLocale('bun_set_up.md', 'it'),\n 'en-GB': readLocale('bun_set_up.md', 'en-GB'),\n pt: readLocale('bun_set_up.md', 'pt'),\n hi: readLocale('bun_set_up.md', 'hi'),\n tr: readLocale('bun_set_up.md', 'tr'),\n pl: readLocale('bun_set_up.md', 'pl'),\n id: readLocale('bun_set_up.md', 'id'),\n vi: readLocale('bun_set_up.md', 'vi'),\n uk: readLocale('bun_set_up.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/customized_locale_list.md': {\n en: readLocale('customized_locale_list.md', 'en'),\n ru: readLocale('customized_locale_list.md', 'ru'),\n ja: readLocale('customized_locale_list.md', 'ja'),\n fr: readLocale('customized_locale_list.md', 'fr'),\n ko: readLocale('customized_locale_list.md', 'ko'),\n zh: readLocale('customized_locale_list.md', 'zh'),\n es: readLocale('customized_locale_list.md', 'es'),\n de: readLocale('customized_locale_list.md', 'de'),\n ar: readLocale('customized_locale_list.md', 'ar'),\n it: readLocale('customized_locale_list.md', 'it'),\n 'en-GB': readLocale('customized_locale_list.md', 'en-GB'),\n pt: readLocale('customized_locale_list.md', 'pt'),\n hi: readLocale('customized_locale_list.md', 'hi'),\n tr: readLocale('customized_locale_list.md', 'tr'),\n pl: readLocale('customized_locale_list.md', 'pl'),\n id: readLocale('customized_locale_list.md', 'id'),\n vi: readLocale('customized_locale_list.md', 'vi'),\n uk: readLocale('customized_locale_list.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/domain_routing.md': {\n en: readLocale('domain_routing.md', 'en'),\n ru: readLocale('domain_routing.md', 'ru'),\n ja: readLocale('domain_routing.md', 'ja'),\n fr: readLocale('domain_routing.md', 'fr'),\n ko: readLocale('domain_routing.md', 'ko'),\n zh: readLocale('domain_routing.md', 'zh'),\n es: readLocale('domain_routing.md', 'es'),\n de: readLocale('domain_routing.md', 'de'),\n ar: readLocale('domain_routing.md', 'ar'),\n it: readLocale('domain_routing.md', 'it'),\n 'en-GB': readLocale('domain_routing.md', 'en-GB'),\n pt: readLocale('domain_routing.md', 'pt'),\n hi: readLocale('domain_routing.md', 'hi'),\n tr: readLocale('domain_routing.md', 'tr'),\n pl: readLocale('domain_routing.md', 'pl'),\n id: readLocale('domain_routing.md', 'id'),\n vi: readLocale('domain_routing.md', 'vi'),\n uk: readLocale('domain_routing.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/error-vite-env-only.md': {\n en: readLocale('error-vite-env-only.md', 'en'),\n ru: readLocale('error-vite-env-only.md', 'ru'),\n ja: readLocale('error-vite-env-only.md', 'ja'),\n fr: readLocale('error-vite-env-only.md', 'fr'),\n ko: readLocale('error-vite-env-only.md', 'ko'),\n zh: readLocale('error-vite-env-only.md', 'zh'),\n es: readLocale('error-vite-env-only.md', 'es'),\n de: readLocale('error-vite-env-only.md', 'de'),\n ar: readLocale('error-vite-env-only.md', 'ar'),\n it: readLocale('error-vite-env-only.md', 'it'),\n 'en-GB': readLocale('error-vite-env-only.md', 'en-GB'),\n pt: readLocale('error-vite-env-only.md', 'pt'),\n hi: readLocale('error-vite-env-only.md', 'hi'),\n tr: readLocale('error-vite-env-only.md', 'tr'),\n pl: readLocale('error-vite-env-only.md', 'pl'),\n id: readLocale('error-vite-env-only.md', 'id'),\n vi: readLocale('error-vite-env-only.md', 'vi'),\n uk: readLocale('error-vite-env-only.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/esbuild_error.md': {\n en: readLocale('esbuild_error.md', 'en'),\n ru: readLocale('esbuild_error.md', 'ru'),\n ja: readLocale('esbuild_error.md', 'ja'),\n fr: readLocale('esbuild_error.md', 'fr'),\n ko: readLocale('esbuild_error.md', 'ko'),\n zh: readLocale('esbuild_error.md', 'zh'),\n es: readLocale('esbuild_error.md', 'es'),\n de: readLocale('esbuild_error.md', 'de'),\n ar: readLocale('esbuild_error.md', 'ar'),\n it: readLocale('esbuild_error.md', 'it'),\n 'en-GB': readLocale('esbuild_error.md', 'en-GB'),\n pt: readLocale('esbuild_error.md', 'pt'),\n hi: readLocale('esbuild_error.md', 'hi'),\n tr: readLocale('esbuild_error.md', 'tr'),\n pl: readLocale('esbuild_error.md', 'pl'),\n id: readLocale('esbuild_error.md', 'id'),\n vi: readLocale('esbuild_error.md', 'vi'),\n uk: readLocale('esbuild_error.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/get_locale_cookie.md': {\n en: readLocale('get_locale_cookie.md', 'en'),\n ru: readLocale('get_locale_cookie.md', 'ru'),\n ja: readLocale('get_locale_cookie.md', 'ja'),\n fr: readLocale('get_locale_cookie.md', 'fr'),\n ko: readLocale('get_locale_cookie.md', 'ko'),\n zh: readLocale('get_locale_cookie.md', 'zh'),\n es: readLocale('get_locale_cookie.md', 'es'),\n de: readLocale('get_locale_cookie.md', 'de'),\n ar: readLocale('get_locale_cookie.md', 'ar'),\n it: readLocale('get_locale_cookie.md', 'it'),\n 'en-GB': readLocale('get_locale_cookie.md', 'en-GB'),\n pt: readLocale('get_locale_cookie.md', 'pt'),\n hi: readLocale('get_locale_cookie.md', 'hi'),\n tr: readLocale('get_locale_cookie.md', 'tr'),\n pl: readLocale('get_locale_cookie.md', 'pl'),\n id: readLocale('get_locale_cookie.md', 'id'),\n vi: readLocale('get_locale_cookie.md', 'vi'),\n uk: readLocale('get_locale_cookie.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/intlayerNode.md': {\n en: readLocale('intlayerNode.md', 'en'),\n ru: readLocale('intlayerNode.md', 'ru'),\n ja: readLocale('intlayerNode.md', 'ja'),\n fr: readLocale('intlayerNode.md', 'fr'),\n ko: readLocale('intlayerNode.md', 'ko'),\n zh: readLocale('intlayerNode.md', 'zh'),\n es: readLocale('intlayerNode.md', 'es'),\n de: readLocale('intlayerNode.md', 'de'),\n ar: readLocale('intlayerNode.md', 'ar'),\n it: readLocale('intlayerNode.md', 'it'),\n 'en-GB': readLocale('intlayerNode.md', 'en-GB'),\n pt: readLocale('intlayerNode.md', 'pt'),\n hi: readLocale('intlayerNode.md', 'hi'),\n tr: readLocale('intlayerNode.md', 'tr'),\n pl: readLocale('intlayerNode.md', 'pl'),\n id: readLocale('intlayerNode.md', 'id'),\n vi: readLocale('intlayerNode.md', 'vi'),\n uk: readLocale('intlayerNode.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/intlayer_command_undefined.md': {\n en: readLocale('intlayer_command_undefined.md', 'en'),\n ru: readLocale('intlayer_command_undefined.md', 'ru'),\n ja: readLocale('intlayer_command_undefined.md', 'ja'),\n fr: readLocale('intlayer_command_undefined.md', 'fr'),\n ko: readLocale('intlayer_command_undefined.md', 'ko'),\n zh: readLocale('intlayer_command_undefined.md', 'zh'),\n es: readLocale('intlayer_command_undefined.md', 'es'),\n de: readLocale('intlayer_command_undefined.md', 'de'),\n ar: readLocale('intlayer_command_undefined.md', 'ar'),\n it: readLocale('intlayer_command_undefined.md', 'it'),\n 'en-GB': readLocale('intlayer_command_undefined.md', 'en-GB'),\n pt: readLocale('intlayer_command_undefined.md', 'pt'),\n hi: readLocale('intlayer_command_undefined.md', 'hi'),\n tr: readLocale('intlayer_command_undefined.md', 'tr'),\n pl: readLocale('intlayer_command_undefined.md', 'pl'),\n id: readLocale('intlayer_command_undefined.md', 'id'),\n vi: readLocale('intlayer_command_undefined.md', 'vi'),\n uk: readLocale('intlayer_command_undefined.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/locale_incorect_in_url.md': {\n en: readLocale('locale_incorect_in_url.md', 'en'),\n ru: readLocale('locale_incorect_in_url.md', 'ru'),\n ja: readLocale('locale_incorect_in_url.md', 'ja'),\n fr: readLocale('locale_incorect_in_url.md', 'fr'),\n ko: readLocale('locale_incorect_in_url.md', 'ko'),\n zh: readLocale('locale_incorect_in_url.md', 'zh'),\n es: readLocale('locale_incorect_in_url.md', 'es'),\n de: readLocale('locale_incorect_in_url.md', 'de'),\n ar: readLocale('locale_incorect_in_url.md', 'ar'),\n it: readLocale('locale_incorect_in_url.md', 'it'),\n 'en-GB': readLocale('locale_incorect_in_url.md', 'en-GB'),\n pt: readLocale('locale_incorect_in_url.md', 'pt'),\n hi: readLocale('locale_incorect_in_url.md', 'hi'),\n tr: readLocale('locale_incorect_in_url.md', 'tr'),\n pl: readLocale('locale_incorect_in_url.md', 'pl'),\n id: readLocale('locale_incorect_in_url.md', 'id'),\n vi: readLocale('locale_incorect_in_url.md', 'vi'),\n uk: readLocale('locale_incorect_in_url.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/package_version_error.md': {\n en: readLocale('package_version_error.md', 'en'),\n ru: readLocale('package_version_error.md', 'ru'),\n ja: readLocale('package_version_error.md', 'ja'),\n fr: readLocale('package_version_error.md', 'fr'),\n ko: readLocale('package_version_error.md', 'ko'),\n zh: readLocale('package_version_error.md', 'zh'),\n es: readLocale('package_version_error.md', 'es'),\n de: readLocale('package_version_error.md', 'de'),\n ar: readLocale('package_version_error.md', 'ar'),\n it: readLocale('package_version_error.md', 'it'),\n 'en-GB': readLocale('package_version_error.md', 'en-GB'),\n pt: readLocale('package_version_error.md', 'pt'),\n hi: readLocale('package_version_error.md', 'hi'),\n tr: readLocale('package_version_error.md', 'tr'),\n pl: readLocale('package_version_error.md', 'pl'),\n id: readLocale('package_version_error.md', 'id'),\n vi: readLocale('package_version_error.md', 'vi'),\n uk: readLocale('package_version_error.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/static_rendering.md': {\n en: readLocale('static_rendering.md', 'en'),\n ru: readLocale('static_rendering.md', 'ru'),\n ja: readLocale('static_rendering.md', 'ja'),\n fr: readLocale('static_rendering.md', 'fr'),\n ko: readLocale('static_rendering.md', 'ko'),\n zh: readLocale('static_rendering.md', 'zh'),\n es: readLocale('static_rendering.md', 'es'),\n de: readLocale('static_rendering.md', 'de'),\n ar: readLocale('static_rendering.md', 'ar'),\n it: readLocale('static_rendering.md', 'it'),\n 'en-GB': readLocale('static_rendering.md', 'en-GB'),\n pt: readLocale('static_rendering.md', 'pt'),\n hi: readLocale('static_rendering.md', 'hi'),\n tr: readLocale('static_rendering.md', 'tr'),\n pl: readLocale('static_rendering.md', 'pl'),\n id: readLocale('static_rendering.md', 'id'),\n vi: readLocale('static_rendering.md', 'vi'),\n uk: readLocale('static_rendering.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/translated_path_url.md': {\n en: readLocale('translated_path_url.md', 'en'),\n ru: readLocale('translated_path_url.md', 'ru'),\n ja: readLocale('translated_path_url.md', 'ja'),\n fr: readLocale('translated_path_url.md', 'fr'),\n ko: readLocale('translated_path_url.md', 'ko'),\n zh: readLocale('translated_path_url.md', 'zh'),\n es: readLocale('translated_path_url.md', 'es'),\n de: readLocale('translated_path_url.md', 'de'),\n ar: readLocale('translated_path_url.md', 'ar'),\n it: readLocale('translated_path_url.md', 'it'),\n 'en-GB': readLocale('translated_path_url.md', 'en-GB'),\n pt: readLocale('translated_path_url.md', 'pt'),\n hi: readLocale('translated_path_url.md', 'hi'),\n tr: readLocale('translated_path_url.md', 'tr'),\n pl: readLocale('translated_path_url.md', 'pl'),\n id: readLocale('translated_path_url.md', 'id'),\n vi: readLocale('translated_path_url.md', 'vi'),\n uk: readLocale('translated_path_url.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './frequent_questions/en/unknown_command.md': {\n en: readLocale('unknown_command.md', 'en'),\n ru: readLocale('unknown_command.md', 'ru'),\n ja: readLocale('unknown_command.md', 'ja'),\n fr: readLocale('unknown_command.md', 'fr'),\n ko: readLocale('unknown_command.md', 'ko'),\n zh: readLocale('unknown_command.md', 'zh'),\n es: readLocale('unknown_command.md', 'es'),\n de: readLocale('unknown_command.md', 'de'),\n ar: readLocale('unknown_command.md', 'ar'),\n it: readLocale('unknown_command.md', 'it'),\n 'en-GB': readLocale('unknown_command.md', 'en-GB'),\n pt: readLocale('unknown_command.md', 'pt'),\n hi: readLocale('unknown_command.md', 'hi'),\n tr: readLocale('unknown_command.md', 'tr'),\n pl: readLocale('unknown_command.md', 'pl'),\n id: readLocale('unknown_command.md', 'id'),\n vi: readLocale('unknown_command.md', 'vi'),\n uk: readLocale('unknown_command.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n} as const;\n"],"mappings":";;;;;;;;;AAWA,MAAM,aACJ,OAAO,cAAc,cACjB,6GAC0C,CAAC;AAEjD,IAAI;AACJ,IAAI;AAIF,wGAFyC,WACN,CAAC,QAAQ,iBACH,CAAC,CAAC;QACrC;AACN,KAAI;AAIF,0GADmC,CAAC,QAAQ,iBACH,CAAC,CAAC;SACrC;AAEN,2DAA6B,WAAW,CAAC;;;AAI7C,MAAM,cACJ,qBACA,WACoB;CACpB,MAAM,8BACJ,SACA,wBAAwB,OAAO,GAAG,sBACnC;AACD,6BAAe,QAAQ,CACrB,uCAAgB,SAAS,OAAO;CAElC,MAAM,8BACJ,SACA,2BAA2B,sBAC5B;AACD,6BAAe,QAAQ,CACrB,uCAAgB,SAAS,OAAO;AAGlC,QAAO,QAAQ,uBACb,IAAI,MACF,0BAA0B,oBAAoB,aAAa,OAAO,WAAW,QAAQ,WAAW,UACjG,CACF;;AAGH,MAAa,yBAAyB;CACpC,mDAAmD;EACjD,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK;EAC/C,SAAS,WAAW,2BAA2B,QAAQ;EACvD,IAAI,WAAW,2BAA2B,KAAK;EAC/C,IAAI,WAAW,2BAA2B,KAAK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AW,sBAAsB,KAAK;EAC1C,IAAI,WAAW,sBAAsB,KAAK;EAC1C,IAAI,WAAW,sBAAsB,KAAK;EAC1C,IAAI,WAAW,sBAAsB,KAAK;EAC1C,IAAI,WAAW,sBAAsB,KAAK;EAC3C;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
let node_path = require("node:path");
|
|
3
4
|
let node_fs = require("node:fs");
|
|
4
5
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal.entry.cjs","names":[],"sources":["../../../src/generated/legal.entry.ts"],"sourcesContent":["/* AUTO-GENERATED – DO NOT EDIT */\n/* REGENERATE USING `pnpm prepare` */\nimport { existsSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join, dirname as pathDirname } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\n// Robustly resolve the base directory of the @intlayer/docs package in both\n// bundled environments (Next.js) and standalone CLIs (MCP via npx).\nconst currentDir =\n typeof __dirname !== 'undefined'\n ? __dirname\n : pathDirname(fileURLToPath(import.meta.url));\n\nlet baseDir: string;\ntry {\n // Prefer resolving from the location of this file (works for CLIs).\n const projectRequire = getProjectRequire(currentDir);\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n} catch {\n try {\n // Fallback: resolve from the consumer project (works for apps/bundlers).\n const projectRequire = getProjectRequire();\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n } catch {\n // Last resort: walk up from currentDir (useful when executed inside @intlayer/docs).\n baseDir = getPackageJsonPath(currentDir).baseDir;\n }\n}\n\nconst readLocale = (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n const target1 = join(baseDir, `./legal/${locale}/${relativeAfterLocale}`);\n if (existsSync(target1)) {\n return readFile(target1, 'utf8');\n }\n const target2 = join(baseDir, `./legal/en/${relativeAfterLocale}`);\n if (existsSync(target2)) {\n return readFile(target2, 'utf8');\n }\n\n return Promise.reject(\n new Error(\n `[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`\n )\n );\n};\n\nexport const legalEntry = {\n './legal/en/privacy_notice.md': {\n en: readLocale('privacy_notice.md', 'en'),\n ru: readLocale('privacy_notice.md', 'ru'),\n ja: readLocale('privacy_notice.md', 'ja'),\n fr: readLocale('privacy_notice.md', 'fr'),\n ko: readLocale('privacy_notice.md', 'ko'),\n zh: readLocale('privacy_notice.md', 'zh'),\n es: readLocale('privacy_notice.md', 'es'),\n de: readLocale('privacy_notice.md', 'de'),\n ar: readLocale('privacy_notice.md', 'ar'),\n it: readLocale('privacy_notice.md', 'it'),\n 'en-GB': readLocale('privacy_notice.md', 'en-GB'),\n pt: readLocale('privacy_notice.md', 'pt'),\n hi: readLocale('privacy_notice.md', 'hi'),\n tr: readLocale('privacy_notice.md', 'tr'),\n pl: readLocale('privacy_notice.md', 'pl'),\n id: readLocale('privacy_notice.md', 'id'),\n vi: readLocale('privacy_notice.md', 'vi'),\n uk: readLocale('privacy_notice.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './legal/en/terms_of_service.md': {\n en: readLocale('terms_of_service.md', 'en'),\n ru: readLocale('terms_of_service.md', 'ru'),\n ja: readLocale('terms_of_service.md', 'ja'),\n fr: readLocale('terms_of_service.md', 'fr'),\n ko: readLocale('terms_of_service.md', 'ko'),\n zh: readLocale('terms_of_service.md', 'zh'),\n es: readLocale('terms_of_service.md', 'es'),\n de: readLocale('terms_of_service.md', 'de'),\n ar: readLocale('terms_of_service.md', 'ar'),\n it: readLocale('terms_of_service.md', 'it'),\n 'en-GB': readLocale('terms_of_service.md', 'en-GB'),\n pt: readLocale('terms_of_service.md', 'pt'),\n hi: readLocale('terms_of_service.md', 'hi'),\n tr: readLocale('terms_of_service.md', 'tr'),\n pl: readLocale('terms_of_service.md', 'pl'),\n id: readLocale('terms_of_service.md', 'id'),\n vi: readLocale('terms_of_service.md', 'vi'),\n uk: readLocale('terms_of_service.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n} as const;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"legal.entry.cjs","names":[],"sources":["../../../src/generated/legal.entry.ts"],"sourcesContent":["/* AUTO-GENERATED – DO NOT EDIT */\n/* REGENERATE USING `pnpm prepare` */\nimport { existsSync } from 'node:fs';\nimport { readFile } from 'node:fs/promises';\nimport { join, dirname as pathDirname } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\n// Robustly resolve the base directory of the @intlayer/docs package in both\n// bundled environments (Next.js) and standalone CLIs (MCP via npx).\nconst currentDir =\n typeof __dirname !== 'undefined'\n ? __dirname\n : pathDirname(fileURLToPath(import.meta.url));\n\nlet baseDir: string;\ntry {\n // Prefer resolving from the location of this file (works for CLIs).\n const projectRequire = getProjectRequire(currentDir);\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n} catch {\n try {\n // Fallback: resolve from the consumer project (works for apps/bundlers).\n const projectRequire = getProjectRequire();\n const docEntryPath = projectRequire.resolve('@intlayer/docs');\n baseDir = getPackageJsonPath(docEntryPath).baseDir;\n } catch {\n // Last resort: walk up from currentDir (useful when executed inside @intlayer/docs).\n baseDir = getPackageJsonPath(currentDir).baseDir;\n }\n}\n\nconst readLocale = (\n relativeAfterLocale: string,\n locale: LocalesValues\n): Promise<string> => {\n const target1 = join(baseDir, `./legal/${locale}/${relativeAfterLocale}`);\n if (existsSync(target1)) {\n return readFile(target1, 'utf8');\n }\n const target2 = join(baseDir, `./legal/en/${relativeAfterLocale}`);\n if (existsSync(target2)) {\n return readFile(target2, 'utf8');\n }\n\n return Promise.reject(\n new Error(\n `[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`\n )\n );\n};\n\nexport const legalEntry = {\n './legal/en/privacy_notice.md': {\n en: readLocale('privacy_notice.md', 'en'),\n ru: readLocale('privacy_notice.md', 'ru'),\n ja: readLocale('privacy_notice.md', 'ja'),\n fr: readLocale('privacy_notice.md', 'fr'),\n ko: readLocale('privacy_notice.md', 'ko'),\n zh: readLocale('privacy_notice.md', 'zh'),\n es: readLocale('privacy_notice.md', 'es'),\n de: readLocale('privacy_notice.md', 'de'),\n ar: readLocale('privacy_notice.md', 'ar'),\n it: readLocale('privacy_notice.md', 'it'),\n 'en-GB': readLocale('privacy_notice.md', 'en-GB'),\n pt: readLocale('privacy_notice.md', 'pt'),\n hi: readLocale('privacy_notice.md', 'hi'),\n tr: readLocale('privacy_notice.md', 'tr'),\n pl: readLocale('privacy_notice.md', 'pl'),\n id: readLocale('privacy_notice.md', 'id'),\n vi: readLocale('privacy_notice.md', 'vi'),\n uk: readLocale('privacy_notice.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n './legal/en/terms_of_service.md': {\n en: readLocale('terms_of_service.md', 'en'),\n ru: readLocale('terms_of_service.md', 'ru'),\n ja: readLocale('terms_of_service.md', 'ja'),\n fr: readLocale('terms_of_service.md', 'fr'),\n ko: readLocale('terms_of_service.md', 'ko'),\n zh: readLocale('terms_of_service.md', 'zh'),\n es: readLocale('terms_of_service.md', 'es'),\n de: readLocale('terms_of_service.md', 'de'),\n ar: readLocale('terms_of_service.md', 'ar'),\n it: readLocale('terms_of_service.md', 'it'),\n 'en-GB': readLocale('terms_of_service.md', 'en-GB'),\n pt: readLocale('terms_of_service.md', 'pt'),\n hi: readLocale('terms_of_service.md', 'hi'),\n tr: readLocale('terms_of_service.md', 'tr'),\n pl: readLocale('terms_of_service.md', 'pl'),\n id: readLocale('terms_of_service.md', 'id'),\n vi: readLocale('terms_of_service.md', 'vi'),\n uk: readLocale('terms_of_service.md', 'uk'),\n } as unknown as Record<LocalesValues, Promise<string>>,\n} as const;\n"],"mappings":";;;;;;;;;AAWA,MAAM,aACJ,OAAO,cAAc,cACjB,6GAC0C,CAAC;AAEjD,IAAI;AACJ,IAAI;AAIF,wGAFyC,WACN,CAAC,QAAQ,iBACH,CAAC,CAAC;QACrC;AACN,KAAI;AAIF,0GADmC,CAAC,QAAQ,iBACH,CAAC,CAAC;SACrC;AAEN,2DAA6B,WAAW,CAAC;;;AAI7C,MAAM,cACJ,qBACA,WACoB;CACpB,MAAM,8BAAe,SAAS,WAAW,OAAO,GAAG,sBAAsB;AACzE,6BAAe,QAAQ,CACrB,uCAAgB,SAAS,OAAO;CAElC,MAAM,8BAAe,SAAS,cAAc,sBAAsB;AAClE,6BAAe,QAAQ,CACrB,uCAAgB,SAAS,OAAO;AAGlC,QAAO,QAAQ,uBACb,IAAI,MACF,0BAA0B,oBAAoB,aAAa,OAAO,WAAW,QAAQ,WAAW,UACjG,CACF;;AAGH,MAAa,aAAa;CACxB,gCAAgC;EAC9B,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,SAAS,WAAW,qBAAqB,QAAQ;EACjD,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EACzC,IAAI,WAAW,qBAAqB,KAAK;EAC1C;CACD,kCAAkC;EAChC,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,SAAS,WAAW,uBAAuB,QAAQ;EACnD,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC3C,IAAI,WAAW,uBAAuB,KAAK;EAC5C;CACF"}
|
package/dist/cjs/legal.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal.cjs","names":["getKeys","legalEntry","defaultLocale","getFiles","getFile","getFileMetadataRecord","getFileMetadata","getFileMetadataBySlug","getFileBySlug"],"sources":["../../src/legal.ts"],"sourcesContent":["import type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport {\n defaultLocale,\n type FileMetadata,\n getFile,\n getFileBySlug,\n getFileMetadata,\n getFileMetadataBySlug,\n getFileMetadataRecord,\n getFiles,\n getKeys,\n} from './common';\nimport { legalEntry } from './generated/legal.entry';\n\nexport type LegalKey = keyof typeof legalEntry;\nexport type Legals = Record<LegalKey, Record<LocalesValues, Promise<string>>>;\nexport type LegalMetadata = FileMetadata;\n\nexport const getLegalsKeys = (): (keyof typeof legalEntry)[] =>\n getKeys(legalEntry);\n\nexport const getLegals = async <L extends LocalesValues = DeclaredLocales>(\n locale: L = defaultLocale as L\n): Promise<Record<LegalKey, string>> => getFiles(legalEntry, locale);\n\nexport const getLegal = async <L extends LocalesValues = DeclaredLocales>(\n docName: keyof typeof legalEntry,\n locale: L = defaultLocale as L\n): Promise<string> => getFile(legalEntry, docName, locale);\n\nexport const getLegalMetadataRecord = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<LegalKey, FileMetadata>> =>\n getFileMetadataRecord(legalEntry, locale);\n\nexport const getLegalMetadata = async <\n D extends LegalKey,\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: D,\n locale: L = defaultLocale as L\n): Promise<FileMetadata> => getFileMetadata(legalEntry, docName, locale);\n\nexport const getLegalMetadataBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<FileMetadata[]> =>\n await getFileMetadataBySlug(legalEntry, slugs, locale, strict);\n\nexport const getLegalBySlug = async <L extends LocalesValues = DeclaredLocales>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<string[]> => await getFileBySlug(legalEntry, slugs, locale, strict);\n"],"mappings":";;;;;AAqBA,MAAa,sBACXA,uBAAQC,
|
|
1
|
+
{"version":3,"file":"legal.cjs","names":["getKeys","legalEntry","defaultLocale","getFiles","getFile","getFileMetadataRecord","getFileMetadata","getFileMetadataBySlug","getFileBySlug"],"sources":["../../src/legal.ts"],"sourcesContent":["import type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport {\n defaultLocale,\n type FileMetadata,\n getFile,\n getFileBySlug,\n getFileMetadata,\n getFileMetadataBySlug,\n getFileMetadataRecord,\n getFiles,\n getKeys,\n} from './common';\nimport { legalEntry } from './generated/legal.entry';\n\nexport type LegalKey = keyof typeof legalEntry;\nexport type Legals = Record<LegalKey, Record<LocalesValues, Promise<string>>>;\nexport type LegalMetadata = FileMetadata;\n\nexport const getLegalsKeys = (): (keyof typeof legalEntry)[] =>\n getKeys(legalEntry);\n\nexport const getLegals = async <L extends LocalesValues = DeclaredLocales>(\n locale: L = defaultLocale as L\n): Promise<Record<LegalKey, string>> => getFiles(legalEntry, locale);\n\nexport const getLegal = async <L extends LocalesValues = DeclaredLocales>(\n docName: keyof typeof legalEntry,\n locale: L = defaultLocale as L\n): Promise<string> => getFile(legalEntry, docName, locale);\n\nexport const getLegalMetadataRecord = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<LegalKey, FileMetadata>> =>\n getFileMetadataRecord(legalEntry, locale);\n\nexport const getLegalMetadata = async <\n D extends LegalKey,\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: D,\n locale: L = defaultLocale as L\n): Promise<FileMetadata> => getFileMetadata(legalEntry, docName, locale);\n\nexport const getLegalMetadataBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<FileMetadata[]> =>\n await getFileMetadataBySlug(legalEntry, slugs, locale, strict);\n\nexport const getLegalBySlug = async <L extends LocalesValues = DeclaredLocales>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<string[]> => await getFileBySlug(legalEntry, slugs, locale, strict);\n"],"mappings":";;;;;AAqBA,MAAa,sBACXA,uBAAQC,yCAAW;AAErB,MAAa,YAAY,OACvB,SAAYC,iCAC0BC,wBAASF,0CAAY,OAAO;AAEpE,MAAa,WAAW,OACtB,SACA,SAAYC,iCACQE,uBAAQH,0CAAY,SAAS,OAAO;AAE1D,MAAa,yBAAyB,OAGpC,SAAYC,iCAEZG,qCAAsBJ,0CAAY,OAAO;AAE3C,MAAa,mBAAmB,OAI9B,SACA,SAAYC,iCACcI,+BAAgBL,0CAAY,SAAS,OAAO;AAExE,MAAa,yBAAyB,OAGpC,OACA,SAAYC,8BACZ,SAAS,UAET,MAAMK,qCAAsBN,0CAAY,OAAO,QAAQ,OAAO;AAEhE,MAAa,iBAAiB,OAC5B,OACA,SAAYC,8BACZ,SAAS,UACa,MAAMM,6BAAcP,0CAAY,OAAO,QAAQ,OAAO"}
|
package/dist/esm/blog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog.mjs","names":[],"sources":["../../src/blog.ts"],"sourcesContent":["import type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport {\n defaultLocale,\n type FileMetadata,\n getFile,\n getFileBySlug,\n getFileMetadata,\n getFileMetadataBySlug,\n getFileMetadataRecord,\n getFiles,\n getKeys,\n} from './common';\nimport { blogEntry } from './generated/blog.entry';\n\nexport type BlogKey = keyof typeof blogEntry;\nexport type Blogs = Record<BlogKey, Record<LocalesValues, Promise<string>>>;\nexport type BlogMetadata = FileMetadata;\n\nexport const getBlogsKeys = (): (keyof typeof blogEntry)[] =>\n getKeys(blogEntry);\n\nexport const getBlogs = async <L extends LocalesValues = DeclaredLocales>(\n locale: L = defaultLocale as L\n): Promise<Record<BlogKey, string>> => await getFiles(blogEntry, locale);\n\nexport const getBlog = async <L extends LocalesValues = DeclaredLocales>(\n docName: BlogKey,\n locale: L = defaultLocale as L\n): Promise<string> => await getFile(blogEntry, docName, locale);\n\nexport const getBlogMetadataRecord = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<BlogKey, FileMetadata>> =>\n await getFileMetadataRecord(blogEntry, locale);\n\nexport const getBlogMetadata = async <\n D extends BlogKey,\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: D,\n locale: L = defaultLocale as L\n): Promise<FileMetadata> => await getFileMetadata(blogEntry, docName, locale);\n\nexport const getBlogMetadataBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<FileMetadata[]> =>\n await getFileMetadataBySlug(blogEntry, slugs, locale, strict);\n\nexport const getBlogBySlug = async <L extends LocalesValues = DeclaredLocales>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<string[]> => await getFileBySlug(blogEntry, slugs, locale, strict);\n"],"mappings":";;;;AAqBA,MAAa,qBACX,QAAQ,
|
|
1
|
+
{"version":3,"file":"blog.mjs","names":[],"sources":["../../src/blog.ts"],"sourcesContent":["import type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport {\n defaultLocale,\n type FileMetadata,\n getFile,\n getFileBySlug,\n getFileMetadata,\n getFileMetadataBySlug,\n getFileMetadataRecord,\n getFiles,\n getKeys,\n} from './common';\nimport { blogEntry } from './generated/blog.entry';\n\nexport type BlogKey = keyof typeof blogEntry;\nexport type Blogs = Record<BlogKey, Record<LocalesValues, Promise<string>>>;\nexport type BlogMetadata = FileMetadata;\n\nexport const getBlogsKeys = (): (keyof typeof blogEntry)[] =>\n getKeys(blogEntry);\n\nexport const getBlogs = async <L extends LocalesValues = DeclaredLocales>(\n locale: L = defaultLocale as L\n): Promise<Record<BlogKey, string>> => await getFiles(blogEntry, locale);\n\nexport const getBlog = async <L extends LocalesValues = DeclaredLocales>(\n docName: BlogKey,\n locale: L = defaultLocale as L\n): Promise<string> => await getFile(blogEntry, docName, locale);\n\nexport const getBlogMetadataRecord = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<BlogKey, FileMetadata>> =>\n await getFileMetadataRecord(blogEntry, locale);\n\nexport const getBlogMetadata = async <\n D extends BlogKey,\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: D,\n locale: L = defaultLocale as L\n): Promise<FileMetadata> => await getFileMetadata(blogEntry, docName, locale);\n\nexport const getBlogMetadataBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<FileMetadata[]> =>\n await getFileMetadataBySlug(blogEntry, slugs, locale, strict);\n\nexport const getBlogBySlug = async <L extends LocalesValues = DeclaredLocales>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<string[]> => await getFileBySlug(blogEntry, slugs, locale, strict);\n"],"mappings":";;;;AAqBA,MAAa,qBACX,QAAQ,UAAU;AAEpB,MAAa,WAAW,OACtB,SAAY,kBACyB,MAAM,SAAS,WAAW,OAAO;AAExE,MAAa,UAAU,OACrB,SACA,SAAY,kBACQ,MAAM,QAAQ,WAAW,SAAS,OAAO;AAE/D,MAAa,wBAAwB,OAGnC,SAAY,kBAEZ,MAAM,sBAAsB,WAAW,OAAO;AAEhD,MAAa,kBAAkB,OAI7B,SACA,SAAY,kBACc,MAAM,gBAAgB,WAAW,SAAS,OAAO;AAE7E,MAAa,wBAAwB,OAGnC,OACA,SAAY,eACZ,SAAS,UAET,MAAM,sBAAsB,WAAW,OAAO,QAAQ,OAAO;AAE/D,MAAa,gBAAgB,OAC3B,OACA,SAAY,eACZ,SAAS,UACa,MAAM,cAAc,WAAW,OAAO,QAAQ,OAAO"}
|
package/dist/esm/common.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.mjs","names":[],"sources":["../../src/common.ts"],"sourcesContent":["import { join } from 'node:path';\nimport { getLocalizedUrl } from '@intlayer/core/localization';\nimport { getMarkdownMetadata } from '@intlayer/core/transpiler';\nimport * as Locales from '@intlayer/types/locales';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\nexport const defaultLocale = Locales.ENGLISH;\n\nexport const GITHUB_URL_PREFIX =\n 'https://github.com/aymericzip/intlayer/blob/main/docs';\nexport const URL_PREFIX = 'https://intlayer.org/';\n\nexport const getKeys = <T extends Record<string, any>>(obj: T): (keyof T)[] =>\n Object.keys(obj) as (keyof T)[];\n\nexport const getFiles = async <\n F extends Record<`./${string}`, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n lang: LocalesValues = defaultLocale as LocalesValues\n): Promise<Record<string, string>> => {\n const filesEntries = await Promise.all(\n Object.entries(files)\n .map(([key, value]) => [key, value[lang as LocalesValues]])\n .map(async ([key, value]) => [key, await value])\n );\n const filesResult = Object.fromEntries(filesEntries);\n return filesResult;\n};\n\nexport const getFile = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n docKey: keyof F,\n locale: LocalesValues = defaultLocale as LocalesValues\n): Promise<string> => {\n const fileRecord = files[docKey];\n\n if (!fileRecord) {\n throw new Error(`File ${docKey as string} not found`);\n }\n\n const file = await files[docKey]?.[locale];\n\n if (!file) {\n const englishFile = await files[docKey]?.[defaultLocale as LocalesValues];\n\n if (!englishFile) {\n throw new Error(`File ${docKey as string} not found`);\n }\n\n return englishFile;\n }\n\n return file;\n};\n\nexport type FileMetadata = {\n docKey: string;\n url: string;\n relativeUrl: string;\n githubUrl: string;\n title: string;\n slugs: string[];\n description: string;\n keywords: string[];\n updatedAt: string;\n createdAt: string;\n author?: string;\n youtubeVideo?: string;\n applicationTemplate?: string;\n applicationShowcase?: string;\n history?: {\n version: string;\n date: string;\n changes: string;\n }[];\n};\n\nexport const formatMetadata = (\n docKey: string,\n file: string,\n locale: LocalesValues = defaultLocale as LocalesValues\n): FileMetadata => {\n const metadata = getMarkdownMetadata(file);\n\n const slugs = (metadata.slugs ?? []).map(String);\n const keywords = (metadata.keywords ?? []).map(String);\n\n const relativeUrl = join('/', ...slugs);\n\n const slicedDocKey = docKey.slice(1);\n\n return {\n ...metadata,\n docKey,\n slugs,\n keywords,\n githubUrl: `${GITHUB_URL_PREFIX}${slicedDocKey}`.replace(\n '/en/',\n `/${locale}/`\n ),\n relativeUrl: getLocalizedUrl(relativeUrl, locale),\n url: getLocalizedUrl(join(URL_PREFIX, relativeUrl), locale),\n } as FileMetadata;\n};\n\nexport const getFileMetadata = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n R extends FileMetadata,\n>(\n files: F,\n docKey: keyof F,\n locale: LocalesValues = defaultLocale as LocalesValues\n): Promise<R> => {\n const file = await getFile(files, docKey, locale);\n\n return formatMetadata(docKey as string, file, locale) as R;\n};\n\nexport const getFileMetadataRecord = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n locale: LocalesValues = defaultLocale as LocalesValues\n): Promise<Record<keyof F, FileMetadata>> => {\n const results = await Promise.allSettled(\n Object.entries(files).map(async ([key]) => {\n const metadata = await getFileMetadata(files, key as keyof F, locale);\n return [key, metadata] as [string, FileMetadata];\n })\n );\n const filesEntries = results\n .filter(\n (r): r is PromiseFulfilledResult<[string, FileMetadata]> =>\n r.status === 'fulfilled'\n )\n .map((r) => r.value);\n const filesResult = Object.fromEntries(filesEntries);\n return filesResult as Record<keyof F, FileMetadata>;\n};\n\nexport const getFileMetadataBySlug = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n slugs: string | string[],\n locale: LocalesValues = defaultLocale as LocalesValues,\n strict = false\n) => {\n const slugsArray = Array.isArray(slugs) ? slugs : [slugs];\n const filesMetadata = await getFileMetadataRecord(\n files,\n defaultLocale as LocalesValues\n );\n\n let fileMetadataArray: FileMetadata[] = Object.values(filesMetadata).filter(\n (fileMetadata) =>\n slugsArray.every((slug) => fileMetadata.slugs?.includes(slug))\n );\n\n if (strict) {\n fileMetadataArray = fileMetadataArray.filter(\n (fileMetadata) => fileMetadata.slugs.length === slugsArray.length\n );\n }\n\n if (locale !== defaultLocale) {\n const localizedFileMetadata = await Promise.all(\n fileMetadataArray.map(\n async (fileMetadata) =>\n await getFileMetadata(files, fileMetadata.docKey, locale)\n )\n );\n\n return localizedFileMetadata;\n }\n\n return fileMetadataArray;\n};\n\nexport const getFileBySlug = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n slugs: string | string[],\n locale: LocalesValues = defaultLocale as LocalesValues,\n strict = false\n) => {\n const slugsArray = Array.isArray(slugs) ? slugs : [slugs];\n const filesMetadata = await getFileMetadataRecord(\n files,\n defaultLocale as LocalesValues\n );\n\n let fileMetadataArray = Object.values(filesMetadata).filter((fileMetadata) =>\n slugsArray.every((slug) => fileMetadata.slugs?.includes(slug))\n );\n\n if (strict) {\n fileMetadataArray = fileMetadataArray.filter(\n (fileMetadata) => fileMetadata.slugs.length === slugsArray.length\n );\n }\n\n const fileList = await Promise.all(\n fileMetadataArray.map(async (fileMetadata) => {\n const file = await getFile(files, fileMetadata.docKey, locale);\n return file;\n })\n );\n\n return fileList;\n};\n"],"mappings":";;;;;;AAMA,MAAa,gBAAgB,QAAQ;AAErC,MAAa,oBACX;AACF,MAAa,aAAa;AAE1B,MAAa,WAA0C,QACrD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"common.mjs","names":[],"sources":["../../src/common.ts"],"sourcesContent":["import { join } from 'node:path';\nimport { getLocalizedUrl } from '@intlayer/core/localization';\nimport { getMarkdownMetadata } from '@intlayer/core/transpiler';\nimport * as Locales from '@intlayer/types/locales';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\n\nexport const defaultLocale = Locales.ENGLISH;\n\nexport const GITHUB_URL_PREFIX =\n 'https://github.com/aymericzip/intlayer/blob/main/docs';\nexport const URL_PREFIX = 'https://intlayer.org/';\n\nexport const getKeys = <T extends Record<string, any>>(obj: T): (keyof T)[] =>\n Object.keys(obj) as (keyof T)[];\n\nexport const getFiles = async <\n F extends Record<`./${string}`, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n lang: LocalesValues = defaultLocale as LocalesValues\n): Promise<Record<string, string>> => {\n const filesEntries = await Promise.all(\n Object.entries(files)\n .map(([key, value]) => [key, value[lang as LocalesValues]])\n .map(async ([key, value]) => [key, await value])\n );\n const filesResult = Object.fromEntries(filesEntries);\n return filesResult;\n};\n\nexport const getFile = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n docKey: keyof F,\n locale: LocalesValues = defaultLocale as LocalesValues\n): Promise<string> => {\n const fileRecord = files[docKey];\n\n if (!fileRecord) {\n throw new Error(`File ${docKey as string} not found`);\n }\n\n const file = await files[docKey]?.[locale];\n\n if (!file) {\n const englishFile = await files[docKey]?.[defaultLocale as LocalesValues];\n\n if (!englishFile) {\n throw new Error(`File ${docKey as string} not found`);\n }\n\n return englishFile;\n }\n\n return file;\n};\n\nexport type FileMetadata = {\n docKey: string;\n url: string;\n relativeUrl: string;\n githubUrl: string;\n title: string;\n slugs: string[];\n description: string;\n keywords: string[];\n updatedAt: string;\n createdAt: string;\n author?: string;\n youtubeVideo?: string;\n applicationTemplate?: string;\n applicationShowcase?: string;\n history?: {\n version: string;\n date: string;\n changes: string;\n }[];\n};\n\nexport const formatMetadata = (\n docKey: string,\n file: string,\n locale: LocalesValues = defaultLocale as LocalesValues\n): FileMetadata => {\n const metadata = getMarkdownMetadata(file);\n\n const slugs = (metadata.slugs ?? []).map(String);\n const keywords = (metadata.keywords ?? []).map(String);\n\n const relativeUrl = join('/', ...slugs);\n\n const slicedDocKey = docKey.slice(1);\n\n return {\n ...metadata,\n docKey,\n slugs,\n keywords,\n githubUrl: `${GITHUB_URL_PREFIX}${slicedDocKey}`.replace(\n '/en/',\n `/${locale}/`\n ),\n relativeUrl: getLocalizedUrl(relativeUrl, locale),\n url: getLocalizedUrl(join(URL_PREFIX, relativeUrl), locale),\n } as FileMetadata;\n};\n\nexport const getFileMetadata = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n R extends FileMetadata,\n>(\n files: F,\n docKey: keyof F,\n locale: LocalesValues = defaultLocale as LocalesValues\n): Promise<R> => {\n const file = await getFile(files, docKey, locale);\n\n return formatMetadata(docKey as string, file, locale) as R;\n};\n\nexport const getFileMetadataRecord = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n locale: LocalesValues = defaultLocale as LocalesValues\n): Promise<Record<keyof F, FileMetadata>> => {\n const results = await Promise.allSettled(\n Object.entries(files).map(async ([key]) => {\n const metadata = await getFileMetadata(files, key as keyof F, locale);\n return [key, metadata] as [string, FileMetadata];\n })\n );\n const filesEntries = results\n .filter(\n (r): r is PromiseFulfilledResult<[string, FileMetadata]> =>\n r.status === 'fulfilled'\n )\n .map((r) => r.value);\n const filesResult = Object.fromEntries(filesEntries);\n return filesResult as Record<keyof F, FileMetadata>;\n};\n\nexport const getFileMetadataBySlug = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n slugs: string | string[],\n locale: LocalesValues = defaultLocale as LocalesValues,\n strict = false\n) => {\n const slugsArray = Array.isArray(slugs) ? slugs : [slugs];\n const filesMetadata = await getFileMetadataRecord(\n files,\n defaultLocale as LocalesValues\n );\n\n let fileMetadataArray: FileMetadata[] = Object.values(filesMetadata).filter(\n (fileMetadata) =>\n slugsArray.every((slug) => fileMetadata.slugs?.includes(slug))\n );\n\n if (strict) {\n fileMetadataArray = fileMetadataArray.filter(\n (fileMetadata) => fileMetadata.slugs.length === slugsArray.length\n );\n }\n\n if (locale !== defaultLocale) {\n const localizedFileMetadata = await Promise.all(\n fileMetadataArray.map(\n async (fileMetadata) =>\n await getFileMetadata(files, fileMetadata.docKey, locale)\n )\n );\n\n return localizedFileMetadata;\n }\n\n return fileMetadataArray;\n};\n\nexport const getFileBySlug = async <\n F extends Record<string, Record<LocalesValues, Promise<string>>>,\n>(\n files: F,\n slugs: string | string[],\n locale: LocalesValues = defaultLocale as LocalesValues,\n strict = false\n) => {\n const slugsArray = Array.isArray(slugs) ? slugs : [slugs];\n const filesMetadata = await getFileMetadataRecord(\n files,\n defaultLocale as LocalesValues\n );\n\n let fileMetadataArray = Object.values(filesMetadata).filter((fileMetadata) =>\n slugsArray.every((slug) => fileMetadata.slugs?.includes(slug))\n );\n\n if (strict) {\n fileMetadataArray = fileMetadataArray.filter(\n (fileMetadata) => fileMetadata.slugs.length === slugsArray.length\n );\n }\n\n const fileList = await Promise.all(\n fileMetadataArray.map(async (fileMetadata) => {\n const file =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,aAAa,MAAM,WAAW,WAAW,OAC5D;AAUH,QAAO,MAPgB,QAAQ,IAC7B,kBAAkB,IAAI,OAAO,iBAAiB;AAE5C,SAAO,MADY,QAAQ,OAAO,aAAa,QAAQ,OAAO;GAE9D,CACH"}
|
package/dist/esm/doc.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doc.mjs","names":[],"sources":["../../src/doc.ts"],"sourcesContent":["import type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport {\n defaultLocale,\n type FileMetadata,\n getFile,\n getFileBySlug,\n getFileMetadata,\n getFileMetadataBySlug,\n getFileMetadataRecord,\n getFiles,\n getKeys,\n} from './common';\nimport { docsEntry } from './generated/docs.entry';\n\nexport type DocKey = keyof typeof docsEntry;\nexport type Docs = Record<DocKey, Record<LocalesValues, Promise<string>>>;\nexport type DocMetadata = FileMetadata;\n\nexport const getDocsKeys = (): (keyof typeof docsEntry)[] => getKeys(docsEntry);\n\nexport const getDocs = async <L extends LocalesValues = DeclaredLocales>(\n locale: L = defaultLocale as L\n): Promise<Record<DocKey, string>> => await getFiles(docsEntry, locale);\n\nexport const getDoc = async <L extends LocalesValues = DeclaredLocales>(\n docName: keyof typeof docsEntry,\n locale: L = defaultLocale as L\n): Promise<string> => await getFile(docsEntry, docName, locale);\n\nexport const getDocMetadataRecord = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<DocKey, FileMetadata>> =>\n await getFileMetadataRecord(docsEntry, locale);\n\nexport const getDocMetadata = async <\n D extends DocKey,\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: D,\n locale: L = defaultLocale as L\n): Promise<FileMetadata> => await getFileMetadata(docsEntry, docName, locale);\n\nexport const getDocMetadataBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<FileMetadata[]> =>\n await getFileMetadataBySlug(docsEntry, slugs, locale, strict);\n\nexport const getDocBySlug = async <L extends LocalesValues = DeclaredLocales>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<string[]> => await getFileBySlug(docsEntry, slugs, locale, strict);\n"],"mappings":";;;;AAqBA,MAAa,oBAAgD,QAAQ,
|
|
1
|
+
{"version":3,"file":"doc.mjs","names":[],"sources":["../../src/doc.ts"],"sourcesContent":["import type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport {\n defaultLocale,\n type FileMetadata,\n getFile,\n getFileBySlug,\n getFileMetadata,\n getFileMetadataBySlug,\n getFileMetadataRecord,\n getFiles,\n getKeys,\n} from './common';\nimport { docsEntry } from './generated/docs.entry';\n\nexport type DocKey = keyof typeof docsEntry;\nexport type Docs = Record<DocKey, Record<LocalesValues, Promise<string>>>;\nexport type DocMetadata = FileMetadata;\n\nexport const getDocsKeys = (): (keyof typeof docsEntry)[] => getKeys(docsEntry);\n\nexport const getDocs = async <L extends LocalesValues = DeclaredLocales>(\n locale: L = defaultLocale as L\n): Promise<Record<DocKey, string>> => await getFiles(docsEntry, locale);\n\nexport const getDoc = async <L extends LocalesValues = DeclaredLocales>(\n docName: keyof typeof docsEntry,\n locale: L = defaultLocale as L\n): Promise<string> => await getFile(docsEntry, docName, locale);\n\nexport const getDocMetadataRecord = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<DocKey, FileMetadata>> =>\n await getFileMetadataRecord(docsEntry, locale);\n\nexport const getDocMetadata = async <\n D extends DocKey,\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: D,\n locale: L = defaultLocale as L\n): Promise<FileMetadata> => await getFileMetadata(docsEntry, docName, locale);\n\nexport const getDocMetadataBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<FileMetadata[]> =>\n await getFileMetadataBySlug(docsEntry, slugs, locale, strict);\n\nexport const getDocBySlug = async <L extends LocalesValues = DeclaredLocales>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<string[]> => await getFileBySlug(docsEntry, slugs, locale, strict);\n"],"mappings":";;;;AAqBA,MAAa,oBAAgD,QAAQ,UAAU;AAE/E,MAAa,UAAU,OACrB,SAAY,kBACwB,MAAM,SAAS,WAAW,OAAO;AAEvE,MAAa,SAAS,OACpB,SACA,SAAY,kBACQ,MAAM,QAAQ,WAAW,SAAS,OAAO;AAE/D,MAAa,uBAAuB,OAGlC,SAAY,kBAEZ,MAAM,sBAAsB,WAAW,OAAO;AAEhD,MAAa,iBAAiB,OAI5B,SACA,SAAY,kBACc,MAAM,gBAAgB,WAAW,SAAS,OAAO;AAE7E,MAAa,uBAAuB,OAGlC,OACA,SAAY,eACZ,SAAS,UAET,MAAM,sBAAsB,WAAW,OAAO,QAAQ,OAAO;AAE/D,MAAa,eAAe,OAC1B,OACA,SAAY,eACZ,SAAS,UACa,MAAM,cAAc,WAAW,OAAO,QAAQ,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frequentQuestions.mjs","names":[],"sources":["../../src/frequentQuestions.ts"],"sourcesContent":["import type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport {\n defaultLocale,\n type FileMetadata,\n getFile,\n getFileBySlug,\n getFileMetadata,\n getFileMetadataBySlug,\n getFileMetadataRecord,\n getFiles,\n getKeys,\n} from './common';\nimport { frequentQuestionsEntry } from './generated/frequentQuestions.entry';\n\nexport type FrequentQuestionKey = keyof typeof frequentQuestionsEntry;\nexport type FrequentQuestions = Record<\n FrequentQuestionKey,\n Record<LocalesValues, Promise<string>>\n>;\nexport type FrequentQuestionMetadata = FileMetadata;\n\nexport const getFrequentQuestionsKeys =\n (): (keyof typeof frequentQuestionsEntry)[] =>\n getKeys(frequentQuestionsEntry);\n\nexport const getFrequentQuestions = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<FrequentQuestionKey, string>> =>\n getFiles(frequentQuestionsEntry, locale);\n\nexport const getFrequentQuestion = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: FrequentQuestionKey,\n locale: L = defaultLocale as L\n): Promise<string> => getFile(frequentQuestionsEntry, docName, locale);\n\nexport const getFrequentQuestionMetadataRecord = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<FrequentQuestionKey, FileMetadata>> =>\n getFileMetadataRecord(frequentQuestionsEntry, locale);\n\nexport const getFrequentQuestionMetadata = async <\n D extends FrequentQuestionKey,\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: D,\n locale: L = defaultLocale as L\n): Promise<FileMetadata> =>\n getFileMetadata(frequentQuestionsEntry, docName, locale);\n\nexport const getFrequentQuestionMetadataBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<FileMetadata[]> =>\n await getFileMetadataBySlug(frequentQuestionsEntry, slugs, locale, strict);\n\nexport const getFrequentQuestionBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<string[]> =>\n await getFileBySlug(frequentQuestionsEntry, slugs, locale, strict);\n"],"mappings":";;;;AAwBA,MAAa,iCAET,QAAQ,
|
|
1
|
+
{"version":3,"file":"frequentQuestions.mjs","names":[],"sources":["../../src/frequentQuestions.ts"],"sourcesContent":["import type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport {\n defaultLocale,\n type FileMetadata,\n getFile,\n getFileBySlug,\n getFileMetadata,\n getFileMetadataBySlug,\n getFileMetadataRecord,\n getFiles,\n getKeys,\n} from './common';\nimport { frequentQuestionsEntry } from './generated/frequentQuestions.entry';\n\nexport type FrequentQuestionKey = keyof typeof frequentQuestionsEntry;\nexport type FrequentQuestions = Record<\n FrequentQuestionKey,\n Record<LocalesValues, Promise<string>>\n>;\nexport type FrequentQuestionMetadata = FileMetadata;\n\nexport const getFrequentQuestionsKeys =\n (): (keyof typeof frequentQuestionsEntry)[] =>\n getKeys(frequentQuestionsEntry);\n\nexport const getFrequentQuestions = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<FrequentQuestionKey, string>> =>\n getFiles(frequentQuestionsEntry, locale);\n\nexport const getFrequentQuestion = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: FrequentQuestionKey,\n locale: L = defaultLocale as L\n): Promise<string> => getFile(frequentQuestionsEntry, docName, locale);\n\nexport const getFrequentQuestionMetadataRecord = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n locale: L = defaultLocale as L\n): Promise<Record<FrequentQuestionKey, FileMetadata>> =>\n getFileMetadataRecord(frequentQuestionsEntry, locale);\n\nexport const getFrequentQuestionMetadata = async <\n D extends FrequentQuestionKey,\n L extends LocalesValues = DeclaredLocales,\n>(\n docName: D,\n locale: L = defaultLocale as L\n): Promise<FileMetadata> =>\n getFileMetadata(frequentQuestionsEntry, docName, locale);\n\nexport const getFrequentQuestionMetadataBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<FileMetadata[]> =>\n await getFileMetadataBySlug(frequentQuestionsEntry, slugs, locale, strict);\n\nexport const getFrequentQuestionBySlug = async <\n L extends LocalesValues = DeclaredLocales,\n>(\n slugs: string | string[],\n locale: L = defaultLocale as L,\n strict = false\n): Promise<string[]> =>\n await getFileBySlug(frequentQuestionsEntry, slugs, locale, strict);\n"],"mappings":";;;;AAwBA,MAAa,iCAET,QAAQ,uBAAuB;AAEnC,MAAa,uBAAuB,OAGlC,SAAY,kBAEZ,SAAS,wBAAwB,OAAO;AAE1C,MAAa,sBAAsB,OAGjC,SACA,SAAY,kBACQ,QAAQ,wBAAwB,SAAS,OAAO;AAEtE,MAAa,oCAAoC,OAG/C,SAAY,kBAEZ,sBAAsB,wBAAwB,OAAO;AAEvD,MAAa,8BAA8B,OAIzC,SACA,SAAY,kBAEZ,gBAAgB,wBAAwB,SAAS,OAAO;AAE1D,MAAa,oCAAoC,OAG/C,OACA,SAAY,eACZ,SAAS,UAET,MAAM,sBAAsB,wBAAwB,OAAO,QAAQ,OAAO;AAE5E,MAAa,4BAA4B,OAGvC,OACA,SAAY,eACZ,SAAS,UAET,MAAM,cAAc,wBAAwB,OAAO,QAAQ,OAAO"}
|