@intlayer/docs 6.1.6 → 7.0.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blog/ar/next-i18next_vs_next-intl_vs_intlayer.md +14 -0
- package/blog/en/{intlayer_with_next-i18next.mdx → _intlayer_with_next-i18next.md} +69 -72
- package/blog/en/{intlayer_with_next-intl.mdx → _intlayer_with_next-intl.md} +52 -56
- package/blog/en/next-i18next_vs_next-intl_vs_intlayer.md +14 -0
- package/dist/cjs/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/cjs/blog.cjs +20 -45
- package/dist/cjs/blog.cjs.map +1 -1
- package/dist/cjs/common.cjs +60 -136
- package/dist/cjs/common.cjs.map +1 -1
- package/dist/cjs/doc.cjs +20 -45
- package/dist/cjs/doc.cjs.map +1 -1
- package/dist/cjs/frequentQuestions.cjs +20 -45
- package/dist/cjs/frequentQuestions.cjs.map +1 -1
- package/dist/cjs/generated/blog.entry.cjs +438 -407
- package/dist/cjs/generated/blog.entry.cjs.map +1 -1
- package/dist/cjs/generated/docs.entry.cjs +1407 -1134
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/cjs/generated/frequentQuestions.entry.cjs +286 -254
- package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
- package/dist/cjs/generated/legal.entry.cjs +58 -78
- package/dist/cjs/generated/legal.entry.cjs.map +1 -1
- package/dist/cjs/index.cjs +33 -29
- package/dist/cjs/legal.cjs +20 -45
- package/dist/cjs/legal.cjs.map +1 -1
- package/dist/esm/blog.mjs +7 -17
- package/dist/esm/blog.mjs.map +1 -1
- package/dist/esm/common.mjs +45 -102
- package/dist/esm/common.mjs.map +1 -1
- package/dist/esm/doc.mjs +7 -17
- package/dist/esm/doc.mjs.map +1 -1
- package/dist/esm/frequentQuestions.mjs +7 -17
- package/dist/esm/frequentQuestions.mjs.map +1 -1
- package/dist/esm/generated/blog.entry.mjs +433 -382
- package/dist/esm/generated/blog.entry.mjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +1402 -1109
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/esm/generated/frequentQuestions.entry.mjs +281 -229
- package/dist/esm/generated/frequentQuestions.entry.mjs.map +1 -1
- package/dist/esm/generated/legal.entry.mjs +53 -53
- package/dist/esm/generated/legal.entry.mjs.map +1 -1
- package/dist/esm/index.mjs +6 -5
- package/dist/esm/legal.mjs +7 -17
- package/dist/esm/legal.mjs.map +1 -1
- package/dist/types/blog.d.ts +17 -12
- package/dist/types/blog.d.ts.map +1 -1
- package/dist/types/common.d.ts +30 -25
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/doc.d.ts +17 -12
- package/dist/types/doc.d.ts.map +1 -1
- package/dist/types/frequentQuestions.d.ts +17 -12
- package/dist/types/frequentQuestions.d.ts.map +1 -1
- package/dist/types/generated/blog.entry.d.ts +28 -24
- package/dist/types/generated/blog.entry.d.ts.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +79 -70
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/dist/types/generated/frequentQuestions.entry.d.ts +20 -15
- package/dist/types/generated/frequentQuestions.entry.d.ts.map +1 -1
- package/dist/types/generated/legal.entry.d.ts +8 -4
- package/dist/types/generated/legal.entry.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/legal.d.ts +17 -12
- package/dist/types/legal.d.ts.map +1 -1
- package/docs/ar/CI_CD.md +4 -6
- package/docs/ar/autoFill.md +10 -8
- package/docs/ar/configuration.md +16 -10
- package/docs/ar/dictionary/content_file.md +7 -7
- package/docs/ar/dictionary/enumeration.md +4 -4
- package/docs/ar/dictionary/file.md +4 -4
- package/docs/ar/dictionary/function_fetching.md +4 -4
- package/docs/ar/dictionary/gender.md +4 -6
- package/docs/ar/dictionary/insertion.md +4 -4
- package/docs/ar/dictionary/translation.md +4 -4
- package/docs/ar/formatters.md +19 -33
- package/docs/ar/how_works_intlayer.md +5 -5
- package/docs/ar/index.md +4 -4
- package/docs/ar/interest_of_intlayer.md +7 -7
- package/docs/ar/intlayer_CMS.md +10 -8
- package/docs/ar/intlayer_cli.md +7 -7
- package/docs/ar/intlayer_visual_editor.md +5 -5
- package/docs/ar/intlayer_with_angular.md +6 -6
- package/docs/ar/intlayer_with_astro.md +6 -8
- package/docs/ar/intlayer_with_create_react_app.md +6 -6
- package/docs/ar/intlayer_with_express.md +6 -6
- package/docs/ar/intlayer_with_lynx+react.md +6 -6
- package/docs/ar/intlayer_with_nestjs.md +6 -8
- package/docs/ar/intlayer_with_nextjs_14.md +2 -2
- package/docs/ar/intlayer_with_nextjs_15.md +7 -6
- package/docs/ar/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/ar/intlayer_with_nuxt.md +6 -6
- package/docs/ar/intlayer_with_react_native+expo.md +6 -6
- package/docs/ar/intlayer_with_react_router_v7.md +9 -9
- package/docs/ar/intlayer_with_tanstack.md +6 -8
- package/docs/ar/intlayer_with_vite+preact.md +6 -6
- package/docs/ar/intlayer_with_vite+react.md +7 -7
- package/docs/ar/intlayer_with_vite+solid.md +6 -6
- package/docs/ar/intlayer_with_vite+svelte.md +6 -6
- package/docs/ar/intlayer_with_vite+vue.md +6 -6
- package/docs/ar/introduction.md +4 -4
- package/docs/ar/locale_mapper.md +4 -6
- package/docs/ar/mcp_server.md +13 -9
- package/docs/ar/packages/express-intlayer/t.md +4 -4
- package/docs/ar/packages/intlayer/getConfiguration.md +4 -4
- package/docs/ar/packages/intlayer/getEnumeration.md +4 -4
- package/docs/ar/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/ar/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/ar/packages/intlayer/getLocaleName.md +4 -4
- package/docs/ar/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/ar/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/ar/packages/intlayer/getTranslation.md +4 -4
- package/docs/ar/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/ar/packages/next-intlayer/t.md +4 -4
- package/docs/ar/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/ar/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/ar/packages/next-intlayer/useLocale.md +4 -4
- package/docs/ar/packages/react-intlayer/t.md +4 -4
- package/docs/ar/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/ar/packages/react-intlayer/useLocale.md +4 -4
- package/docs/ar/per_locale_file.md +4 -4
- package/docs/ar/roadmap.md +7 -5
- package/docs/ar/testing.md +4 -7
- package/docs/ar/vs_code_extension.md +13 -9
- package/docs/de/CI_CD.md +4 -6
- package/docs/de/autoFill.md +10 -8
- package/docs/de/configuration.md +16 -10
- package/docs/de/dictionary/content_file.md +7 -7
- package/docs/de/dictionary/enumeration.md +4 -4
- package/docs/de/dictionary/file.md +4 -4
- package/docs/de/dictionary/function_fetching.md +4 -4
- package/docs/de/dictionary/gender.md +4 -6
- package/docs/de/dictionary/insertion.md +4 -4
- package/docs/de/dictionary/translation.md +4 -4
- package/docs/de/formatters.md +25 -57
- package/docs/de/how_works_intlayer.md +5 -7
- package/docs/de/index.md +4 -4
- package/docs/de/interest_of_intlayer.md +7 -7
- package/docs/de/intlayer_CMS.md +10 -8
- package/docs/de/intlayer_cli.md +7 -7
- package/docs/de/intlayer_visual_editor.md +5 -6
- package/docs/de/intlayer_with_angular.md +6 -6
- package/docs/de/intlayer_with_astro.md +6 -8
- package/docs/de/intlayer_with_create_react_app.md +2 -2
- package/docs/de/intlayer_with_express.md +6 -6
- package/docs/de/intlayer_with_lynx+react.md +6 -6
- package/docs/de/intlayer_with_nestjs.md +6 -8
- package/docs/de/intlayer_with_nextjs_14.md +2 -2
- package/docs/de/intlayer_with_nextjs_15.md +7 -6
- package/docs/de/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/de/intlayer_with_nuxt.md +6 -6
- package/docs/de/intlayer_with_react_native+expo.md +6 -6
- package/docs/de/intlayer_with_react_router_v7.md +9 -9
- package/docs/de/intlayer_with_tanstack.md +6 -8
- package/docs/de/intlayer_with_vite+preact.md +6 -6
- package/docs/de/intlayer_with_vite+react.md +7 -6
- package/docs/de/intlayer_with_vite+solid.md +6 -6
- package/docs/de/intlayer_with_vite+svelte.md +6 -6
- package/docs/de/intlayer_with_vite+vue.md +6 -6
- package/docs/de/introduction.md +4 -4
- package/docs/de/locale_mapper.md +4 -6
- package/docs/de/mcp_server.md +13 -9
- package/docs/de/packages/express-intlayer/t.md +4 -4
- package/docs/de/packages/intlayer/getConfiguration.md +4 -4
- package/docs/de/packages/intlayer/getEnumeration.md +4 -4
- package/docs/de/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/de/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/de/packages/intlayer/getLocaleName.md +4 -4
- package/docs/de/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/de/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/de/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/de/packages/intlayer/getTranslation.md +4 -4
- package/docs/de/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/de/packages/next-intlayer/t.md +4 -4
- package/docs/de/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/de/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/de/packages/next-intlayer/useLocale.md +4 -4
- package/docs/de/packages/react-intlayer/t.md +4 -4
- package/docs/de/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/de/packages/react-intlayer/useI18n.md +4 -4
- package/docs/de/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/de/packages/react-intlayer/useLocale.md +4 -4
- package/docs/de/per_locale_file.md +4 -4
- package/docs/de/roadmap.md +7 -5
- package/docs/de/testing.md +4 -7
- package/docs/de/vs_code_extension.md +13 -9
- package/docs/en/CI_CD.md +4 -6
- package/docs/en/autoFill.md +75 -28
- package/docs/en/configuration.md +214 -56
- package/docs/en/dictionary/condition.md +4 -6
- package/docs/en/dictionary/content_file.md +25 -17
- package/docs/en/dictionary/enumeration.md +4 -6
- package/docs/en/dictionary/file.md +16 -8
- package/docs/en/dictionary/function_fetching.md +4 -6
- package/docs/en/dictionary/gender.md +4 -6
- package/docs/en/dictionary/insertion.md +4 -6
- package/docs/en/dictionary/markdown.md +4 -6
- package/docs/en/dictionary/nesting.md +4 -6
- package/docs/en/dictionary/translation.md +4 -6
- package/docs/en/formatters.md +23 -50
- package/docs/en/how_works_intlayer.md +5 -7
- package/docs/en/index.md +4 -6
- package/docs/en/interest_of_intlayer.md +7 -7
- package/docs/en/intlayer_CMS.md +12 -12
- package/docs/en/intlayer_cli.md +96 -13
- package/docs/en/intlayer_visual_editor.md +14 -10
- package/docs/en/intlayer_with_angular.md +6 -8
- package/docs/en/intlayer_with_astro.md +6 -8
- package/docs/en/intlayer_with_create_react_app.md +6 -8
- package/docs/en/intlayer_with_express.md +6 -8
- package/docs/en/intlayer_with_lynx+react.md +6 -8
- package/docs/en/intlayer_with_nestjs.md +6 -8
- package/docs/en/intlayer_with_next-i18next.md +627 -0
- package/docs/en/intlayer_with_next-intl.md +446 -0
- package/docs/en/intlayer_with_nextjs_14.md +53 -27
- package/docs/en/intlayer_with_nextjs_15.md +68 -31
- package/docs/en/intlayer_with_nextjs_16.md +1586 -0
- package/docs/en/intlayer_with_nextjs_page_router.md +18 -10
- package/docs/en/intlayer_with_nuxt.md +6 -8
- package/docs/en/intlayer_with_react_native+expo.md +9 -9
- package/docs/en/intlayer_with_react_router_v7.md +9 -9
- package/docs/en/intlayer_with_tanstack.md +9 -9
- package/docs/en/intlayer_with_vite+preact.md +6 -8
- package/docs/en/intlayer_with_vite+react.md +56 -305
- package/docs/en/intlayer_with_vite+solid.md +6 -8
- package/docs/en/intlayer_with_vite+svelte.md +6 -8
- package/docs/en/intlayer_with_vite+vue.md +6 -8
- package/docs/en/introduction.md +4 -6
- package/docs/en/locale_mapper.md +4 -6
- package/docs/en/mcp_server.md +13 -9
- package/docs/en/packages/express-intlayer/t.md +4 -6
- package/docs/en/packages/intlayer/getConfiguration.md +4 -6
- package/docs/en/packages/intlayer/getEnumeration.md +4 -6
- package/docs/en/packages/intlayer/getHTMLTextDir.md +4 -6
- package/docs/en/packages/intlayer/getLocaleLang.md +4 -6
- package/docs/en/packages/intlayer/getLocaleName.md +4 -6
- package/docs/en/packages/intlayer/getLocalizedUrl.md +4 -6
- package/docs/en/packages/intlayer/getMultilingualUrls.md +4 -6
- package/docs/en/packages/intlayer/getPathWithoutLocale.md +4 -6
- package/docs/en/packages/intlayer/getTranslation.md +4 -6
- package/docs/en/packages/intlayer/getTranslationContent.md +4 -6
- package/docs/en/packages/next-intlayer/t.md +4 -6
- package/docs/en/packages/next-intlayer/useDictionary.md +4 -6
- package/docs/en/packages/next-intlayer/useIntlayer.md +4 -6
- package/docs/en/packages/next-intlayer/useLocale.md +41 -8
- package/docs/en/packages/react-intlayer/t.md +4 -6
- package/docs/en/packages/react-intlayer/useDictionary.md +4 -6
- package/docs/en/packages/react-intlayer/useI18n.md +4 -4
- package/docs/en/packages/react-intlayer/useIntlayer.md +4 -6
- package/docs/en/packages/react-intlayer/useLocale.md +4 -6
- package/docs/en/per_locale_file.md +4 -6
- package/docs/en/plugins/sync-json.md +244 -0
- package/docs/en/releases/v6.md +6 -0
- package/docs/en/releases/v7.md +486 -0
- package/docs/en/roadmap.md +10 -8
- package/docs/en/testing.md +13 -11
- package/docs/en/vs_code_extension.md +13 -9
- package/docs/en-GB/CI_CD.md +4 -6
- package/docs/en-GB/autoFill.md +10 -8
- package/docs/en-GB/configuration.md +16 -10
- package/docs/en-GB/dictionary/condition.md +4 -4
- package/docs/en-GB/dictionary/content_file.md +7 -7
- package/docs/en-GB/dictionary/enumeration.md +4 -4
- package/docs/en-GB/dictionary/file.md +4 -4
- package/docs/en-GB/dictionary/gender.md +4 -6
- package/docs/en-GB/dictionary/insertion.md +4 -4
- package/docs/en-GB/dictionary/markdown.md +4 -4
- package/docs/en-GB/dictionary/nesting.md +4 -4
- package/docs/en-GB/dictionary/translation.md +4 -4
- package/docs/en-GB/formatters.md +19 -33
- package/docs/en-GB/how_works_intlayer.md +5 -5
- package/docs/en-GB/index.md +4 -4
- package/docs/en-GB/interest_of_intlayer.md +7 -7
- package/docs/en-GB/intlayer_CMS.md +15 -13
- package/docs/en-GB/intlayer_cli.md +7 -7
- package/docs/en-GB/intlayer_visual_editor.md +5 -6
- package/docs/en-GB/intlayer_with_angular.md +5 -5
- package/docs/en-GB/intlayer_with_astro.md +5 -7
- package/docs/en-GB/intlayer_with_create_react_app.md +6 -6
- package/docs/en-GB/intlayer_with_express.md +6 -6
- package/docs/en-GB/intlayer_with_lynx+react.md +5 -5
- package/docs/en-GB/intlayer_with_nestjs.md +5 -7
- package/docs/en-GB/intlayer_with_nextjs_14.md +6 -6
- package/docs/en-GB/intlayer_with_nextjs_15.md +6 -5
- package/docs/en-GB/intlayer_with_nextjs_page_router.md +5 -5
- package/docs/en-GB/intlayer_with_nuxt.md +5 -5
- package/docs/en-GB/intlayer_with_react_native+expo.md +5 -5
- package/docs/en-GB/intlayer_with_react_router_v7.md +8 -8
- package/docs/en-GB/intlayer_with_tanstack.md +8 -8
- package/docs/en-GB/intlayer_with_vite+preact.md +5 -5
- package/docs/en-GB/intlayer_with_vite+react.md +6 -5
- package/docs/en-GB/intlayer_with_vite+solid.md +5 -5
- package/docs/en-GB/intlayer_with_vite+svelte.md +5 -5
- package/docs/en-GB/intlayer_with_vite+vue.md +5 -5
- package/docs/en-GB/introduction.md +4 -4
- package/docs/en-GB/locale_mapper.md +4 -6
- package/docs/en-GB/mcp_server.md +13 -9
- package/docs/en-GB/packages/express-intlayer/t.md +4 -4
- package/docs/en-GB/packages/intlayer/getConfiguration.md +4 -4
- package/docs/en-GB/packages/intlayer/getEnumeration.md +4 -4
- package/docs/en-GB/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/en-GB/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/en-GB/packages/intlayer/getLocaleName.md +4 -4
- package/docs/en-GB/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/en-GB/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/en-GB/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/en-GB/packages/intlayer/getTranslation.md +4 -4
- package/docs/en-GB/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/en-GB/packages/next-intlayer/t.md +4 -4
- package/docs/en-GB/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/en-GB/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/en-GB/packages/next-intlayer/useLocale.md +4 -4
- package/docs/en-GB/packages/react-intlayer/t.md +4 -4
- package/docs/en-GB/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/en-GB/packages/react-intlayer/useI18n.md +4 -4
- package/docs/en-GB/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/en-GB/packages/react-intlayer/useLocale.md +4 -4
- package/docs/en-GB/per_locale_file.md +4 -4
- package/docs/en-GB/roadmap.md +7 -5
- package/docs/en-GB/testing.md +4 -7
- package/docs/en-GB/vs_code_extension.md +13 -9
- package/docs/es/CI_CD.md +4 -6
- package/docs/es/autoFill.md +10 -8
- package/docs/es/configuration.md +16 -10
- package/docs/es/dictionary/content_file.md +7 -7
- package/docs/es/dictionary/enumeration.md +4 -4
- package/docs/es/dictionary/file.md +4 -4
- package/docs/es/dictionary/function_fetching.md +4 -4
- package/docs/es/dictionary/gender.md +4 -6
- package/docs/es/dictionary/insertion.md +4 -4
- package/docs/es/dictionary/translation.md +4 -4
- package/docs/es/formatters.md +25 -57
- package/docs/es/how_works_intlayer.md +5 -5
- package/docs/es/index.md +4 -4
- package/docs/es/interest_of_intlayer.md +7 -7
- package/docs/es/intlayer_CMS.md +10 -8
- package/docs/es/intlayer_cli.md +7 -7
- package/docs/es/intlayer_visual_editor.md +5 -7
- package/docs/es/intlayer_with_angular.md +6 -6
- package/docs/es/intlayer_with_astro.md +6 -8
- package/docs/es/intlayer_with_create_react_app.md +6 -6
- package/docs/es/intlayer_with_express.md +6 -6
- package/docs/es/intlayer_with_lynx+react.md +6 -6
- package/docs/es/intlayer_with_nestjs.md +6 -8
- package/docs/es/intlayer_with_nextjs_14.md +6 -6
- package/docs/es/intlayer_with_nextjs_15.md +7 -6
- package/docs/es/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/es/intlayer_with_nuxt.md +6 -6
- package/docs/es/intlayer_with_react_native+expo.md +6 -6
- package/docs/es/intlayer_with_react_router_v7.md +9 -9
- package/docs/es/intlayer_with_tanstack.md +6 -8
- package/docs/es/intlayer_with_vite+preact.md +6 -6
- package/docs/es/intlayer_with_vite+react.md +7 -6
- package/docs/es/intlayer_with_vite+solid.md +6 -6
- package/docs/es/intlayer_with_vite+svelte.md +6 -6
- package/docs/es/intlayer_with_vite+vue.md +6 -6
- package/docs/es/introduction.md +4 -4
- package/docs/es/locale_mapper.md +4 -6
- package/docs/es/mcp_server.md +13 -9
- package/docs/es/packages/express-intlayer/t.md +4 -4
- package/docs/es/packages/intlayer/getConfiguration.md +4 -4
- package/docs/es/packages/intlayer/getEnumeration.md +4 -4
- package/docs/es/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/es/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/es/packages/intlayer/getLocaleName.md +4 -4
- package/docs/es/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/es/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/es/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/es/packages/intlayer/getTranslation.md +4 -4
- package/docs/es/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/es/packages/next-intlayer/index.md +4 -4
- package/docs/es/packages/next-intlayer/t.md +4 -4
- package/docs/es/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/es/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/es/packages/next-intlayer/useLocale.md +4 -4
- package/docs/es/packages/react-intlayer/index.md +4 -4
- package/docs/es/packages/react-intlayer/t.md +4 -4
- package/docs/es/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/es/packages/react-intlayer/useI18n.md +4 -4
- package/docs/es/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/es/packages/react-intlayer/useLocale.md +4 -4
- package/docs/es/per_locale_file.md +4 -4
- package/docs/es/roadmap.md +7 -5
- package/docs/es/testing.md +4 -7
- package/docs/es/vs_code_extension.md +13 -9
- package/docs/fr/CI_CD.md +4 -4
- package/docs/fr/autoFill.md +10 -8
- package/docs/fr/configuration.md +19 -22
- package/docs/fr/dictionary/content_file.md +7 -7
- package/docs/fr/dictionary/enumeration.md +4 -4
- package/docs/fr/dictionary/file.md +4 -4
- package/docs/fr/dictionary/function_fetching.md +4 -4
- package/docs/fr/dictionary/gender.md +4 -6
- package/docs/fr/dictionary/insertion.md +4 -4
- package/docs/fr/dictionary/translation.md +4 -4
- package/docs/fr/formatters.md +25 -57
- package/docs/fr/how_works_intlayer.md +5 -5
- package/docs/fr/index.md +4 -4
- package/docs/fr/interest_of_intlayer.md +7 -7
- package/docs/fr/intlayer_CMS.md +10 -8
- package/docs/fr/intlayer_cli.md +7 -7
- package/docs/fr/intlayer_visual_editor.md +5 -6
- package/docs/fr/intlayer_with_angular.md +6 -6
- package/docs/fr/intlayer_with_astro.md +6 -8
- package/docs/fr/intlayer_with_create_react_app.md +6 -6
- package/docs/fr/intlayer_with_express.md +6 -6
- package/docs/fr/intlayer_with_lynx+react.md +6 -6
- package/docs/fr/intlayer_with_nestjs.md +6 -8
- package/docs/fr/intlayer_with_nextjs_14.md +2 -2
- package/docs/fr/intlayer_with_nextjs_15.md +7 -6
- package/docs/fr/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/fr/intlayer_with_nuxt.md +6 -6
- package/docs/fr/intlayer_with_react_native+expo.md +6 -6
- package/docs/fr/intlayer_with_react_router_v7.md +9 -9
- package/docs/fr/intlayer_with_tanstack.md +6 -8
- package/docs/fr/intlayer_with_vite+preact.md +6 -6
- package/docs/fr/intlayer_with_vite+react.md +6 -6
- package/docs/fr/intlayer_with_vite+solid.md +6 -6
- package/docs/fr/intlayer_with_vite+svelte.md +6 -6
- package/docs/fr/intlayer_with_vite+vue.md +6 -6
- package/docs/fr/introduction.md +4 -4
- package/docs/fr/locale_mapper.md +4 -6
- package/docs/fr/mcp_server.md +13 -9
- package/docs/fr/packages/express-intlayer/t.md +4 -4
- package/docs/fr/packages/intlayer/getConfiguration.md +4 -4
- package/docs/fr/packages/intlayer/getEnumeration.md +4 -4
- package/docs/fr/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/fr/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/fr/packages/intlayer/getLocaleName.md +4 -4
- package/docs/fr/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/fr/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/fr/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/fr/packages/intlayer/getTranslation.md +4 -4
- package/docs/fr/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/fr/packages/next-intlayer/t.md +4 -4
- package/docs/fr/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/fr/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/fr/packages/next-intlayer/useLocale.md +4 -4
- package/docs/fr/packages/react-intlayer/index.md +4 -4
- package/docs/fr/packages/react-intlayer/t.md +4 -4
- package/docs/fr/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/fr/packages/react-intlayer/useI18n.md +4 -4
- package/docs/fr/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/fr/packages/react-intlayer/useLocale.md +4 -4
- package/docs/fr/per_locale_file.md +4 -4
- package/docs/fr/roadmap.md +7 -5
- package/docs/fr/testing.md +4 -7
- package/docs/fr/vs_code_extension.md +13 -9
- package/docs/hi/CI_CD.md +4 -6
- package/docs/hi/autoFill.md +10 -8
- package/docs/hi/configuration.md +16 -10
- package/docs/hi/dictionary/content_file.md +7 -7
- package/docs/hi/dictionary/enumeration.md +4 -4
- package/docs/hi/dictionary/file.md +4 -4
- package/docs/hi/dictionary/function_fetching.md +4 -4
- package/docs/hi/dictionary/gender.md +4 -6
- package/docs/hi/dictionary/insertion.md +4 -4
- package/docs/hi/dictionary/translation.md +4 -4
- package/docs/hi/formatters.md +19 -33
- package/docs/hi/how_works_intlayer.md +5 -5
- package/docs/hi/index.md +4 -4
- package/docs/hi/interest_of_intlayer.md +7 -7
- package/docs/hi/intlayer_CMS.md +10 -8
- package/docs/hi/intlayer_cli.md +7 -7
- package/docs/hi/intlayer_visual_editor.md +5 -6
- package/docs/hi/intlayer_with_angular.md +6 -6
- package/docs/hi/intlayer_with_astro.md +6 -8
- package/docs/hi/intlayer_with_create_react_app.md +2 -2
- package/docs/hi/intlayer_with_express.md +6 -6
- package/docs/hi/intlayer_with_lynx+react.md +6 -6
- package/docs/hi/intlayer_with_nestjs.md +6 -8
- package/docs/hi/intlayer_with_nextjs_14.md +2 -2
- package/docs/hi/intlayer_with_nextjs_15.md +7 -6
- package/docs/hi/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/hi/intlayer_with_nuxt.md +6 -6
- package/docs/hi/intlayer_with_react_native+expo.md +6 -6
- package/docs/hi/intlayer_with_react_router_v7.md +9 -9
- package/docs/hi/intlayer_with_tanstack.md +9 -9
- package/docs/hi/intlayer_with_vite+preact.md +6 -6
- package/docs/hi/intlayer_with_vite+react.md +7 -6
- package/docs/hi/intlayer_with_vite+solid.md +6 -6
- package/docs/hi/intlayer_with_vite+svelte.md +6 -6
- package/docs/hi/intlayer_with_vite+vue.md +6 -6
- package/docs/hi/introduction.md +4 -4
- package/docs/hi/locale_mapper.md +4 -6
- package/docs/hi/mcp_server.md +13 -9
- package/docs/hi/packages/express-intlayer/t.md +4 -4
- package/docs/hi/packages/intlayer/getConfiguration.md +4 -4
- package/docs/hi/packages/intlayer/getEnumeration.md +4 -4
- package/docs/hi/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/hi/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/hi/packages/intlayer/getLocaleName.md +4 -4
- package/docs/hi/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/hi/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/hi/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/hi/packages/intlayer/getTranslation.md +4 -4
- package/docs/hi/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/hi/packages/intlayer/index.md +4 -4
- package/docs/hi/packages/next-intlayer/t.md +4 -4
- package/docs/hi/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/hi/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/hi/packages/next-intlayer/useLocale.md +4 -4
- package/docs/hi/packages/react-intlayer/t.md +4 -4
- package/docs/hi/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/hi/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/hi/packages/react-intlayer/useLocale.md +4 -4
- package/docs/hi/per_locale_file.md +4 -4
- package/docs/hi/roadmap.md +7 -5
- package/docs/hi/testing.md +4 -7
- package/docs/hi/vs_code_extension.md +13 -9
- package/docs/it/CI_CD.md +4 -6
- package/docs/it/autoFill.md +10 -8
- package/docs/it/configuration.md +16 -10
- package/docs/it/dictionary/content_file.md +7 -7
- package/docs/it/dictionary/enumeration.md +4 -4
- package/docs/it/dictionary/file.md +4 -4
- package/docs/it/dictionary/function_fetching.md +4 -4
- package/docs/it/dictionary/gender.md +4 -6
- package/docs/it/dictionary/insertion.md +4 -4
- package/docs/it/dictionary/translation.md +4 -4
- package/docs/it/formatters.md +19 -55
- package/docs/it/how_works_intlayer.md +5 -5
- package/docs/it/index.md +4 -4
- package/docs/it/interest_of_intlayer.md +7 -7
- package/docs/it/intlayer_CMS.md +10 -8
- package/docs/it/intlayer_cli.md +7 -7
- package/docs/it/intlayer_visual_editor.md +5 -6
- package/docs/it/intlayer_with_angular.md +6 -6
- package/docs/it/intlayer_with_astro.md +6 -8
- package/docs/it/intlayer_with_create_react_app.md +6 -6
- package/docs/it/intlayer_with_express.md +6 -6
- package/docs/it/intlayer_with_lynx+react.md +6 -6
- package/docs/it/intlayer_with_nestjs.md +6 -8
- package/docs/it/intlayer_with_nextjs_14.md +2 -2
- package/docs/it/intlayer_with_nextjs_15.md +7 -6
- package/docs/it/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/it/intlayer_with_nuxt.md +6 -6
- package/docs/it/intlayer_with_react_native+expo.md +6 -6
- package/docs/it/intlayer_with_react_router_v7.md +9 -9
- package/docs/it/intlayer_with_tanstack.md +9 -9
- package/docs/it/intlayer_with_vite+preact.md +6 -6
- package/docs/it/intlayer_with_vite+react.md +7 -6
- package/docs/it/intlayer_with_vite+solid.md +6 -6
- package/docs/it/intlayer_with_vite+svelte.md +6 -6
- package/docs/it/intlayer_with_vite+vue.md +6 -6
- package/docs/it/introduction.md +4 -4
- package/docs/it/locale_mapper.md +4 -6
- package/docs/it/mcp_server.md +13 -9
- package/docs/it/packages/express-intlayer/t.md +4 -4
- package/docs/it/packages/intlayer/getConfiguration.md +4 -4
- package/docs/it/packages/intlayer/getEnumeration.md +4 -4
- package/docs/it/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/it/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/it/packages/intlayer/getLocaleName.md +4 -4
- package/docs/it/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/it/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/it/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/it/packages/intlayer/getTranslation.md +4 -4
- package/docs/it/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/it/packages/next-intlayer/t.md +4 -4
- package/docs/it/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/it/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/it/packages/next-intlayer/useLocale.md +4 -4
- package/docs/it/packages/react-intlayer/t.md +4 -4
- package/docs/it/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/it/packages/react-intlayer/useI18n.md +4 -4
- package/docs/it/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/it/packages/react-intlayer/useLocale.md +4 -4
- package/docs/it/per_locale_file.md +4 -4
- package/docs/it/roadmap.md +7 -5
- package/docs/it/testing.md +4 -7
- package/docs/it/vs_code_extension.md +13 -9
- package/docs/ja/CI_CD.md +4 -6
- package/docs/ja/autoFill.md +10 -8
- package/docs/ja/configuration.md +19 -22
- package/docs/ja/dictionary/content_file.md +7 -7
- package/docs/ja/dictionary/enumeration.md +4 -4
- package/docs/ja/dictionary/file.md +5 -5
- package/docs/ja/dictionary/function_fetching.md +4 -4
- package/docs/ja/dictionary/gender.md +4 -6
- package/docs/ja/dictionary/insertion.md +4 -4
- package/docs/ja/dictionary/translation.md +4 -4
- package/docs/ja/formatters.md +25 -57
- package/docs/ja/how_works_intlayer.md +5 -5
- package/docs/ja/index.md +4 -4
- package/docs/ja/interest_of_intlayer.md +7 -7
- package/docs/ja/intlayer_CMS.md +10 -9
- package/docs/ja/intlayer_cli.md +7 -7
- package/docs/ja/intlayer_visual_editor.md +5 -6
- package/docs/ja/intlayer_with_angular.md +6 -6
- package/docs/ja/intlayer_with_astro.md +6 -8
- package/docs/ja/intlayer_with_create_react_app.md +6 -6
- package/docs/ja/intlayer_with_express.md +6 -6
- package/docs/ja/intlayer_with_lynx+react.md +6 -6
- package/docs/ja/intlayer_with_nestjs.md +6 -8
- package/docs/ja/intlayer_with_nextjs_14.md +6 -6
- package/docs/ja/intlayer_with_nextjs_15.md +7 -6
- package/docs/ja/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/ja/intlayer_with_nuxt.md +6 -6
- package/docs/ja/intlayer_with_react_native+expo.md +6 -6
- package/docs/ja/intlayer_with_react_router_v7.md +9 -9
- package/docs/ja/intlayer_with_tanstack.md +6 -8
- package/docs/ja/intlayer_with_vite+preact.md +6 -6
- package/docs/ja/intlayer_with_vite+react.md +7 -6
- package/docs/ja/intlayer_with_vite+solid.md +6 -6
- package/docs/ja/intlayer_with_vite+svelte.md +6 -6
- package/docs/ja/intlayer_with_vite+vue.md +6 -6
- package/docs/ja/introduction.md +4 -4
- package/docs/ja/locale_mapper.md +4 -6
- package/docs/ja/mcp_server.md +13 -9
- package/docs/ja/packages/express-intlayer/t.md +4 -4
- package/docs/ja/packages/intlayer/getConfiguration.md +4 -4
- package/docs/ja/packages/intlayer/getEnumeration.md +4 -4
- package/docs/ja/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/ja/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/ja/packages/intlayer/getLocaleName.md +4 -4
- package/docs/ja/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/ja/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/ja/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/ja/packages/intlayer/getTranslation.md +4 -4
- package/docs/ja/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/ja/packages/next-intlayer/t.md +4 -4
- package/docs/ja/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/ja/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/ja/packages/next-intlayer/useLocale.md +4 -4
- package/docs/ja/packages/react-intlayer/t.md +4 -4
- package/docs/ja/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/ja/packages/react-intlayer/useI18n.md +4 -4
- package/docs/ja/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/ja/packages/react-intlayer/useLocale.md +4 -4
- package/docs/ja/per_locale_file.md +4 -4
- package/docs/ja/roadmap.md +7 -5
- package/docs/ja/testing.md +4 -7
- package/docs/ja/vs_code_extension.md +13 -9
- package/docs/ko/CI_CD.md +4 -6
- package/docs/ko/autoFill.md +10 -8
- package/docs/ko/configuration.md +19 -22
- package/docs/ko/dictionary/content_file.md +7 -7
- package/docs/ko/dictionary/enumeration.md +4 -4
- package/docs/ko/dictionary/file.md +4 -4
- package/docs/ko/dictionary/function_fetching.md +4 -4
- package/docs/ko/dictionary/gender.md +4 -6
- package/docs/ko/dictionary/insertion.md +4 -4
- package/docs/ko/dictionary/translation.md +4 -4
- package/docs/ko/formatters.md +19 -33
- package/docs/ko/how_works_intlayer.md +5 -5
- package/docs/ko/index.md +4 -4
- package/docs/ko/interest_of_intlayer.md +7 -7
- package/docs/ko/intlayer_CMS.md +10 -8
- package/docs/ko/intlayer_cli.md +7 -7
- package/docs/ko/intlayer_visual_editor.md +5 -6
- package/docs/ko/intlayer_with_angular.md +6 -6
- package/docs/ko/intlayer_with_astro.md +6 -8
- package/docs/ko/intlayer_with_create_react_app.md +6 -6
- package/docs/ko/intlayer_with_express.md +6 -6
- package/docs/ko/intlayer_with_lynx+react.md +6 -10
- package/docs/ko/intlayer_with_nestjs.md +6 -8
- package/docs/ko/intlayer_with_nextjs_14.md +6 -6
- package/docs/ko/intlayer_with_nextjs_15.md +7 -6
- package/docs/ko/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/ko/intlayer_with_nuxt.md +6 -6
- package/docs/ko/intlayer_with_react_native+expo.md +6 -6
- package/docs/ko/intlayer_with_react_router_v7.md +9 -9
- package/docs/ko/intlayer_with_tanstack.md +6 -8
- package/docs/ko/intlayer_with_vite+preact.md +6 -6
- package/docs/ko/intlayer_with_vite+react.md +8 -7
- package/docs/ko/intlayer_with_vite+solid.md +6 -6
- package/docs/ko/intlayer_with_vite+svelte.md +6 -6
- package/docs/ko/intlayer_with_vite+vue.md +6 -6
- package/docs/ko/introduction.md +4 -4
- package/docs/ko/locale_mapper.md +4 -6
- package/docs/ko/mcp_server.md +13 -9
- package/docs/ko/packages/express-intlayer/t.md +4 -4
- package/docs/ko/packages/intlayer/getConfiguration.md +4 -4
- package/docs/ko/packages/intlayer/getEnumeration.md +4 -4
- package/docs/ko/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/ko/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/ko/packages/intlayer/getLocaleName.md +4 -4
- package/docs/ko/packages/intlayer/getLocalizedUrl.md +7 -16
- package/docs/ko/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/ko/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/ko/packages/intlayer/getTranslation.md +4 -4
- package/docs/ko/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/ko/packages/next-intlayer/t.md +4 -4
- package/docs/ko/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/ko/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/ko/packages/next-intlayer/useLocale.md +4 -4
- package/docs/ko/packages/react-intlayer/t.md +4 -4
- package/docs/ko/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/ko/packages/react-intlayer/useI18n.md +4 -4
- package/docs/ko/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/ko/packages/react-intlayer/useLocale.md +4 -4
- package/docs/ko/per_locale_file.md +4 -4
- package/docs/ko/roadmap.md +7 -5
- package/docs/ko/testing.md +4 -7
- package/docs/ko/vs_code_extension.md +13 -9
- package/docs/pt/CI_CD.md +4 -6
- package/docs/pt/autoFill.md +10 -8
- package/docs/pt/configuration.md +16 -22
- package/docs/pt/dictionary/content_file.md +7 -7
- package/docs/pt/dictionary/enumeration.md +4 -4
- package/docs/pt/dictionary/file.md +4 -4
- package/docs/pt/dictionary/function_fetching.md +4 -4
- package/docs/pt/dictionary/gender.md +4 -6
- package/docs/pt/dictionary/insertion.md +4 -4
- package/docs/pt/dictionary/translation.md +4 -4
- package/docs/pt/formatters.md +19 -33
- package/docs/pt/how_works_intlayer.md +5 -5
- package/docs/pt/index.md +4 -4
- package/docs/pt/interest_of_intlayer.md +7 -7
- package/docs/pt/intlayer_CMS.md +10 -8
- package/docs/pt/intlayer_cli.md +7 -7
- package/docs/pt/intlayer_visual_editor.md +5 -6
- package/docs/pt/intlayer_with_angular.md +6 -6
- package/docs/pt/intlayer_with_astro.md +6 -8
- package/docs/pt/intlayer_with_create_react_app.md +6 -6
- package/docs/pt/intlayer_with_express.md +6 -6
- package/docs/pt/intlayer_with_lynx+react.md +6 -6
- package/docs/pt/intlayer_with_nestjs.md +6 -8
- package/docs/pt/intlayer_with_nextjs_14.md +2 -2
- package/docs/pt/intlayer_with_nextjs_15.md +7 -6
- package/docs/pt/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/pt/intlayer_with_nuxt.md +6 -6
- package/docs/pt/intlayer_with_react_native+expo.md +6 -6
- package/docs/pt/intlayer_with_react_router_v7.md +6 -8
- package/docs/pt/intlayer_with_tanstack.md +6 -8
- package/docs/pt/intlayer_with_vite+preact.md +6 -6
- package/docs/pt/intlayer_with_vite+react.md +7 -6
- package/docs/pt/intlayer_with_vite+solid.md +6 -6
- package/docs/pt/intlayer_with_vite+svelte.md +6 -6
- package/docs/pt/intlayer_with_vite+vue.md +6 -6
- package/docs/pt/introduction.md +4 -5
- package/docs/pt/locale_mapper.md +4 -6
- package/docs/pt/mcp_server.md +13 -9
- package/docs/pt/packages/express-intlayer/t.md +4 -4
- package/docs/pt/packages/intlayer/getConfiguration.md +4 -4
- package/docs/pt/packages/intlayer/getEnumeration.md +4 -4
- package/docs/pt/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/pt/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/pt/packages/intlayer/getLocaleName.md +4 -4
- package/docs/pt/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/pt/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/pt/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/pt/packages/intlayer/getTranslation.md +4 -4
- package/docs/pt/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/pt/packages/next-intlayer/t.md +4 -4
- package/docs/pt/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/pt/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/pt/packages/next-intlayer/useLocale.md +4 -4
- package/docs/pt/packages/react-intlayer/t.md +4 -4
- package/docs/pt/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/pt/packages/react-intlayer/useI18n.md +4 -4
- package/docs/pt/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/pt/packages/react-intlayer/useLocale.md +4 -4
- package/docs/pt/per_locale_file.md +4 -4
- package/docs/pt/roadmap.md +7 -5
- package/docs/pt/testing.md +4 -7
- package/docs/pt/vs_code_extension.md +13 -9
- package/docs/ru/CI_CD.md +4 -6
- package/docs/ru/autoFill.md +10 -8
- package/docs/ru/configuration.md +16 -10
- package/docs/ru/dictionary/content_file.md +7 -7
- package/docs/ru/dictionary/enumeration.md +4 -4
- package/docs/ru/dictionary/file.md +4 -4
- package/docs/ru/dictionary/function_fetching.md +4 -4
- package/docs/ru/dictionary/gender.md +4 -6
- package/docs/ru/dictionary/insertion.md +4 -4
- package/docs/ru/dictionary/translation.md +4 -4
- package/docs/ru/formatters.md +20 -77
- package/docs/ru/how_works_intlayer.md +5 -5
- package/docs/ru/index.md +4 -4
- package/docs/ru/interest_of_intlayer.md +7 -7
- package/docs/ru/intlayer_CMS.md +10 -8
- package/docs/ru/intlayer_cli.md +7 -7
- package/docs/ru/intlayer_visual_editor.md +5 -5
- package/docs/ru/intlayer_with_angular.md +6 -6
- package/docs/ru/intlayer_with_astro.md +6 -8
- package/docs/ru/intlayer_with_create_react_app.md +6 -6
- package/docs/ru/intlayer_with_express.md +6 -6
- package/docs/ru/intlayer_with_lynx+react.md +6 -6
- package/docs/ru/intlayer_with_nestjs.md +6 -8
- package/docs/ru/intlayer_with_nextjs_14.md +2 -2
- package/docs/ru/intlayer_with_nextjs_15.md +7 -6
- package/docs/ru/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/ru/intlayer_with_nuxt.md +6 -6
- package/docs/ru/intlayer_with_react_native+expo.md +6 -6
- package/docs/ru/intlayer_with_react_router_v7.md +9 -9
- package/docs/ru/intlayer_with_tanstack.md +6 -8
- package/docs/ru/intlayer_with_vite+preact.md +6 -6
- package/docs/ru/intlayer_with_vite+react.md +7 -6
- package/docs/ru/intlayer_with_vite+solid.md +6 -6
- package/docs/ru/intlayer_with_vite+svelte.md +6 -6
- package/docs/ru/intlayer_with_vite+vue.md +6 -6
- package/docs/ru/introduction.md +4 -4
- package/docs/ru/locale_mapper.md +4 -6
- package/docs/ru/mcp_server.md +13 -9
- package/docs/ru/packages/express-intlayer/t.md +4 -4
- package/docs/ru/packages/intlayer/getConfiguration.md +4 -4
- package/docs/ru/packages/intlayer/getEnumeration.md +4 -4
- package/docs/ru/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/ru/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/ru/packages/intlayer/getLocaleName.md +4 -4
- package/docs/ru/packages/intlayer/getLocalizedUrl.md +4 -4
- package/docs/ru/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/ru/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/ru/packages/intlayer/getTranslation.md +4 -4
- package/docs/ru/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/ru/packages/next-intlayer/t.md +4 -4
- package/docs/ru/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/ru/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/ru/packages/next-intlayer/useLocale.md +4 -4
- package/docs/ru/packages/react-intlayer/t.md +4 -4
- package/docs/ru/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/ru/packages/react-intlayer/useI18n.md +4 -4
- package/docs/ru/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/ru/packages/react-intlayer/useLocale.md +4 -4
- package/docs/ru/per_locale_file.md +4 -4
- package/docs/ru/roadmap.md +7 -5
- package/docs/ru/testing.md +4 -7
- package/docs/ru/vs_code_extension.md +13 -9
- package/docs/tr/CI_CD.md +4 -6
- package/docs/tr/autoFill.md +10 -8
- package/docs/tr/configuration.md +19 -22
- package/docs/tr/dictionary/condition.md +4 -10
- package/docs/tr/dictionary/content_file.md +7 -7
- package/docs/tr/dictionary/enumeration.md +4 -10
- package/docs/tr/dictionary/file.md +4 -10
- package/docs/tr/dictionary/function_fetching.md +4 -10
- package/docs/tr/dictionary/gender.md +4 -10
- package/docs/tr/dictionary/insertion.md +4 -10
- package/docs/tr/dictionary/markdown.md +4 -10
- package/docs/tr/dictionary/nesting.md +4 -10
- package/docs/tr/dictionary/translation.md +4 -10
- package/docs/tr/formatters.md +19 -33
- package/docs/tr/how_works_intlayer.md +5 -7
- package/docs/tr/index.md +4 -6
- package/docs/tr/interest_of_intlayer.md +7 -7
- package/docs/tr/intlayer_CMS.md +10 -8
- package/docs/tr/intlayer_cli.md +7 -7
- package/docs/tr/intlayer_visual_editor.md +5 -7
- package/docs/tr/intlayer_with_angular.md +6 -8
- package/docs/tr/intlayer_with_astro.md +6 -8
- package/docs/tr/intlayer_with_create_react_app.md +6 -8
- package/docs/tr/intlayer_with_express.md +6 -8
- package/docs/tr/intlayer_with_lynx+react.md +6 -8
- package/docs/tr/intlayer_with_nestjs.md +6 -8
- package/docs/tr/intlayer_with_nextjs_14.md +9 -9
- package/docs/tr/intlayer_with_nextjs_15.md +10 -9
- package/docs/tr/intlayer_with_nextjs_page_router.md +9 -9
- package/docs/tr/intlayer_with_nuxt.md +6 -8
- package/docs/tr/intlayer_with_react_native+expo.md +6 -8
- package/docs/tr/intlayer_with_react_router_v7.md +9 -9
- package/docs/tr/intlayer_with_tanstack.md +9 -9
- package/docs/tr/intlayer_with_vite+preact.md +6 -12
- package/docs/tr/intlayer_with_vite+react.md +6 -12
- package/docs/tr/intlayer_with_vite+solid.md +6 -12
- package/docs/tr/intlayer_with_vite+svelte.md +6 -12
- package/docs/tr/intlayer_with_vite+vue.md +6 -12
- package/docs/tr/introduction.md +4 -6
- package/docs/tr/locale_mapper.md +4 -6
- package/docs/tr/mcp_server.md +13 -9
- package/docs/tr/packages/express-intlayer/t.md +4 -6
- package/docs/tr/packages/intlayer/getConfiguration.md +4 -10
- package/docs/tr/packages/intlayer/getEnumeration.md +4 -10
- package/docs/tr/packages/intlayer/getHTMLTextDir.md +4 -10
- package/docs/tr/packages/intlayer/getLocaleLang.md +4 -10
- package/docs/tr/packages/intlayer/getLocaleName.md +4 -10
- package/docs/tr/packages/intlayer/getLocalizedUrl.md +4 -10
- package/docs/tr/packages/intlayer/getMultilingualUrls.md +4 -10
- package/docs/tr/packages/intlayer/getPathWithoutLocale.md +4 -10
- package/docs/tr/packages/intlayer/getTranslation.md +4 -10
- package/docs/tr/packages/intlayer/getTranslationContent.md +4 -10
- package/docs/tr/packages/next-intlayer/t.md +4 -6
- package/docs/tr/packages/next-intlayer/useDictionary.md +4 -6
- package/docs/tr/packages/next-intlayer/useIntlayer.md +4 -6
- package/docs/tr/packages/next-intlayer/useLocale.md +4 -6
- package/docs/tr/packages/react-intlayer/t.md +4 -6
- package/docs/tr/packages/react-intlayer/useDictionary.md +10 -273
- package/docs/tr/packages/react-intlayer/useI18n.md +4 -4
- package/docs/tr/packages/react-intlayer/useIntlayer.md +4 -6
- package/docs/tr/packages/react-intlayer/useLocale.md +4 -6
- package/docs/tr/per_locale_file.md +4 -6
- package/docs/tr/roadmap.md +10 -8
- package/docs/tr/testing.md +4 -7
- package/docs/tr/vs_code_extension.md +13 -9
- package/docs/zh/CI_CD.md +4 -6
- package/docs/zh/autoFill.md +10 -8
- package/docs/zh/configuration.md +19 -22
- package/docs/zh/dictionary/content_file.md +7 -7
- package/docs/zh/dictionary/enumeration.md +4 -4
- package/docs/zh/dictionary/file.md +4 -4
- package/docs/zh/dictionary/function_fetching.md +4 -4
- package/docs/zh/dictionary/gender.md +4 -6
- package/docs/zh/dictionary/insertion.md +4 -4
- package/docs/zh/dictionary/translation.md +4 -4
- package/docs/zh/formatters.md +19 -55
- package/docs/zh/how_works_intlayer.md +5 -5
- package/docs/zh/index.md +4 -4
- package/docs/zh/interest_of_intlayer.md +7 -7
- package/docs/zh/intlayer_CMS.md +10 -9
- package/docs/zh/intlayer_cli.md +7 -7
- package/docs/zh/intlayer_visual_editor.md +5 -6
- package/docs/zh/intlayer_with_angular.md +6 -6
- package/docs/zh/intlayer_with_astro.md +6 -8
- package/docs/zh/intlayer_with_create_react_app.md +6 -6
- package/docs/zh/intlayer_with_express.md +6 -6
- package/docs/zh/intlayer_with_lynx+react.md +6 -6
- package/docs/zh/intlayer_with_nestjs.md +6 -8
- package/docs/zh/intlayer_with_nextjs_14.md +6 -6
- package/docs/zh/intlayer_with_nextjs_15.md +7 -6
- package/docs/zh/intlayer_with_nextjs_page_router.md +6 -6
- package/docs/zh/intlayer_with_nuxt.md +6 -6
- package/docs/zh/intlayer_with_react_native+expo.md +6 -6
- package/docs/zh/intlayer_with_react_router_v7.md +9 -9
- package/docs/zh/intlayer_with_tanstack.md +6 -8
- package/docs/zh/intlayer_with_vite+preact.md +6 -6
- package/docs/zh/intlayer_with_vite+react.md +7 -6
- package/docs/zh/intlayer_with_vite+solid.md +6 -6
- package/docs/zh/intlayer_with_vite+svelte.md +6 -6
- package/docs/zh/intlayer_with_vite+vue.md +6 -6
- package/docs/zh/introduction.md +4 -4
- package/docs/zh/locale_mapper.md +4 -6
- package/docs/zh/mcp_server.md +13 -9
- package/docs/zh/packages/express-intlayer/t.md +4 -4
- package/docs/zh/packages/intlayer/getConfiguration.md +4 -4
- package/docs/zh/packages/intlayer/getEnumeration.md +4 -4
- package/docs/zh/packages/intlayer/getHTMLTextDir.md +4 -4
- package/docs/zh/packages/intlayer/getLocaleLang.md +4 -4
- package/docs/zh/packages/intlayer/getLocaleName.md +4 -4
- package/docs/zh/packages/intlayer/getLocalizedUrl.md +7 -16
- package/docs/zh/packages/intlayer/getMultilingualUrls.md +4 -4
- package/docs/zh/packages/intlayer/getPathWithoutLocale.md +4 -4
- package/docs/zh/packages/intlayer/getTranslation.md +4 -4
- package/docs/zh/packages/intlayer/getTranslationContent.md +4 -4
- package/docs/zh/packages/next-intlayer/t.md +4 -4
- package/docs/zh/packages/next-intlayer/useDictionary.md +4 -4
- package/docs/zh/packages/next-intlayer/useIntlayer.md +4 -4
- package/docs/zh/packages/next-intlayer/useLocale.md +4 -4
- package/docs/zh/packages/react-intlayer/t.md +4 -4
- package/docs/zh/packages/react-intlayer/useDictionary.md +4 -4
- package/docs/zh/packages/react-intlayer/useI18n.md +4 -4
- package/docs/zh/packages/react-intlayer/useIntlayer.md +4 -4
- package/docs/zh/packages/react-intlayer/useLocale.md +4 -4
- package/docs/zh/per_locale_file.md +4 -4
- package/docs/zh/roadmap.md +7 -5
- package/docs/zh/testing.md +4 -7
- package/docs/zh/vs_code_extension.md +13 -9
- package/frequent_questions/ar/bun_set_up.md +54 -0
- package/frequent_questions/de/bun_set_up.md +54 -0
- package/frequent_questions/en/bun_set_up.md +54 -0
- package/frequent_questions/en-GB/bun_set_up.md +54 -0
- package/frequent_questions/es/bun_set_up.md +54 -0
- package/frequent_questions/fr/bun_set_up.md +54 -0
- package/frequent_questions/hi/bun_set_up.md +55 -0
- package/frequent_questions/it/bun_set_up.md +55 -0
- package/frequent_questions/ja/bun_set_up.md +54 -0
- package/frequent_questions/ko/bun_set_up.md +54 -0
- package/frequent_questions/pt/bun_set_up.md +55 -0
- package/frequent_questions/ru/bun_set_up.md +55 -0
- package/frequent_questions/tr/bun_set_up.md +55 -0
- package/frequent_questions/zh/bun_set_up.md +54 -0
- package/package.json +42 -47
- package/src/blog.ts +16 -8
- package/src/common.ts +7 -8
- package/src/doc.ts +18 -8
- package/src/frequentQuestions.ts +23 -8
- package/src/generated/blog.entry.ts +152 -84
- package/src/generated/docs.entry.ts +523 -222
- package/src/generated/frequentQuestions.entry.ts +122 -56
- package/src/generated/legal.entry.ts +32 -24
- package/src/legal.ts +16 -8
- package/LICENSE +0 -202
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/docs/de/packages/@intlayer/api/index.md +0 -56
- package/docs/de/packages/@intlayer/chokidar/index.md +0 -56
- package/docs/de/packages/@intlayer/cli/index.md +0 -45
- package/docs/de/packages/@intlayer/config/index.md +0 -140
- package/docs/de/packages/@intlayer/core/index.md +0 -49
- package/docs/de/packages/@intlayer/design-system/index.md +0 -45
- package/docs/de/packages/@intlayer/dictionary-entry/index.md +0 -45
- package/docs/de/packages/@intlayer/editor/index.md +0 -45
- package/docs/de/packages/@intlayer/editor-react/index.md +0 -45
- package/docs/de/packages/@intlayer/webpack/index.md +0 -59
- package/docs/de/packages/angular-intlayer/index.md +0 -53
- package/docs/de/packages/express-intlayer/index.md +0 -284
- package/docs/de/packages/intlayer/index.md +0 -500
- package/docs/de/packages/intlayer-cli/index.md +0 -65
- package/docs/de/packages/intlayer-editor/index.md +0 -137
- package/docs/de/packages/lynx-intlayer/index.md +0 -83
- package/docs/de/packages/next-intlayer/index.md +0 -285
- package/docs/de/packages/nuxt-intlayer/index.md +0 -53
- package/docs/de/packages/preact-intlayer/index.md +0 -53
- package/docs/de/packages/react-intlayer/index.md +0 -280
- package/docs/de/packages/react-native-intlayer/index.md +0 -83
- package/docs/de/packages/react-scripts-intlayer/index.md +0 -80
- package/docs/de/packages/solid-intlayer/index.md +0 -54
- package/docs/de/packages/svelte-intlayer/index.md +0 -53
- package/docs/de/packages/vite-intlayer/index.md +0 -76
- package/docs/de/packages/vue-intlayer/index.md +0 -53
- package/docs/es/packages/angular-intlayer/index.md +0 -53
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-12-07
|
|
3
3
|
updatedAt: 2025-06-29
|
|
4
|
-
title:
|
|
4
|
+
title: How to translate your Next.js and Page Router app – i18n guide 2025
|
|
5
5
|
description: Discover how to make your Next.js using Page Router website multilingual. Follow the documentation to internationalize (i18n) and translate it.
|
|
6
6
|
keywords:
|
|
7
7
|
- Internationalization
|
|
@@ -16,9 +16,16 @@ slugs:
|
|
|
16
16
|
- environment
|
|
17
17
|
- nextjs
|
|
18
18
|
- next-with-page-router
|
|
19
|
+
history:
|
|
20
|
+
- version: 5.6.0
|
|
21
|
+
date: 2025-07-06
|
|
22
|
+
changes: Transform `withIntlayer()` function to a promise based function
|
|
23
|
+
- version: 5.5.10
|
|
24
|
+
date: 2025-06-29
|
|
25
|
+
changes: Init history
|
|
19
26
|
---
|
|
20
27
|
|
|
21
|
-
#
|
|
28
|
+
# Translate your Next.js and Page Router website using Intlayer | Internationalization (i18n)
|
|
22
29
|
|
|
23
30
|
## What is Intlayer?
|
|
24
31
|
|
|
@@ -139,7 +146,15 @@ export default withIntlayer(nextConfig);
|
|
|
139
146
|
```
|
|
140
147
|
|
|
141
148
|
> The `withIntlayer()` Next.js plugin is used to integrate Intlayer with Next.js. It ensures the building of content declaration files and monitors them in development mode. It defines Intlayer environment variables within the [Webpack](https://webpack.js.org/) or [Turbopack](https://nextjs.org/docs/app/api-reference/turbopack) environments. Additionally, it provides aliases to optimize performance and ensures compatibility with server components.
|
|
142
|
-
|
|
149
|
+
|
|
150
|
+
> The `withIntlayer()` function is a promise function. If you want to use it with other plugins, you can await it. Example:
|
|
151
|
+
>
|
|
152
|
+
> ```tsx
|
|
153
|
+
> const nextConfig = await withIntlayer(nextConfig);
|
|
154
|
+
> const nextConfigWithOtherPlugins = withOtherPlugins(nextConfig);
|
|
155
|
+
>
|
|
156
|
+
> export default nextConfigWithOtherPlugins;
|
|
157
|
+
> ```
|
|
143
158
|
|
|
144
159
|
### Step 4: Configure Middleware for Locale Detection
|
|
145
160
|
|
|
@@ -1480,10 +1495,3 @@ By following this guide, you can effectively integrate Intlayer into your Next.j
|
|
|
1480
1495
|
### Go Further
|
|
1481
1496
|
|
|
1482
1497
|
To go further, you can implement the [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) or externalize your content using the [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md).
|
|
1483
|
-
|
|
1484
|
-
## Doc History
|
|
1485
|
-
|
|
1486
|
-
| Version | Date | Changes |
|
|
1487
|
-
| ------- | ---------- | --------------------------------------------------------------- |
|
|
1488
|
-
| 5.6.0 | 2025-07-06 | Transform `withIntlayer()` function to a promise based function |
|
|
1489
|
-
| 5.5.10 | 2025-06-29 | Init history |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-06-18
|
|
3
3
|
updatedAt: 2025-06-29
|
|
4
|
-
title:
|
|
4
|
+
title: How to translate your Nuxt and Vue app – i18n guide 2025
|
|
5
5
|
description: Discover how to make your Nuxt and Vue website multilingual. Follow the documentation to internationalize (i18n) and translate it.
|
|
6
6
|
keywords:
|
|
7
7
|
- Internationalization
|
|
@@ -15,9 +15,13 @@ slugs:
|
|
|
15
15
|
- environment
|
|
16
16
|
- nuxt-and-vue
|
|
17
17
|
applicationTemplate: https://github.com/aymericzip/intlayer-nuxt-template
|
|
18
|
+
history:
|
|
19
|
+
- version: 5.5.10
|
|
20
|
+
date: 2025-06-29
|
|
21
|
+
changes: Init history
|
|
18
22
|
---
|
|
19
23
|
|
|
20
|
-
#
|
|
24
|
+
# Translate your Nuxt and Vue website using Intlayer | Internationalization (i18n)
|
|
21
25
|
|
|
22
26
|
See [Application Template](https://github.com/aymericzip/intlayer-nuxt-template) on GitHub.
|
|
23
27
|
|
|
@@ -765,9 +769,3 @@ For more details on how to use the extension, refer to the [Intlayer VS Code Ext
|
|
|
765
769
|
To go further, you can implement the [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) or externalize your content using the [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md).
|
|
766
770
|
|
|
767
771
|
---
|
|
768
|
-
|
|
769
|
-
## Doc History
|
|
770
|
-
|
|
771
|
-
| Version | Date | Changes |
|
|
772
|
-
| ------- | ---------- | ------------ |
|
|
773
|
-
| 5.5.10 | 2025-06-29 | Init history |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-06-18
|
|
3
3
|
updatedAt: 2025-10-02
|
|
4
|
-
title:
|
|
4
|
+
title: How to translate your React Native and Expo app – i18n guide 2025
|
|
5
5
|
description: Discover how to make your React Native and Expo website multilingual. Follow the documentation to internationalize (i18n) and translate it.
|
|
6
6
|
keywords:
|
|
7
7
|
- Internationalization
|
|
@@ -15,9 +15,16 @@ slugs:
|
|
|
15
15
|
- environment
|
|
16
16
|
- react-native-and-expo
|
|
17
17
|
applicationTemplate: https://github.com/aymericzip/intlayer-react-native-template
|
|
18
|
+
history:
|
|
19
|
+
- version: 6.1.6
|
|
20
|
+
date: 2025-10-02
|
|
21
|
+
changes: Add debug section
|
|
22
|
+
- version: 5.5.10
|
|
23
|
+
date: 2025-06-29
|
|
24
|
+
changes: Init history
|
|
18
25
|
---
|
|
19
26
|
|
|
20
|
-
#
|
|
27
|
+
# Translate your React Native and Expo website using Intlayer | Internationalization (i18n)
|
|
21
28
|
|
|
22
29
|
See [Application Template](https://github.com/aymericzip/intlayer-react-native-template) on GitHub.
|
|
23
30
|
|
|
@@ -673,10 +680,3 @@ import "@formatjs/intl-datetimeformat/polyfill";
|
|
|
673
680
|
- Verify your Metro configuration (resolver aliases, asset plugins, `tsconfig` paths) if modules fail to resolve.
|
|
674
681
|
|
|
675
682
|
---
|
|
676
|
-
|
|
677
|
-
## Doc History
|
|
678
|
-
|
|
679
|
-
| Version | Date | Changes |
|
|
680
|
-
| ------- | ---------- | ----------------- |
|
|
681
|
-
| 6.1.6 | 2025-10-02 | Add debug section |
|
|
682
|
-
| 5.5.10 | 2025-06-29 | Init history |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-09-04
|
|
3
3
|
updatedAt: 2025-10-03
|
|
4
|
-
title:
|
|
4
|
+
title: How to translate your React Router v7 app – i18n guide 2025
|
|
5
5
|
description: Learn how to add internationalization (i18n) to your React Router v7 application using Intlayer. Follow this comprehensive guide to make your app multilingual with locale-aware routing.
|
|
6
6
|
keywords:
|
|
7
7
|
- Internationalization
|
|
@@ -18,9 +18,16 @@ slugs:
|
|
|
18
18
|
- vite-and-react
|
|
19
19
|
- react-router-v7
|
|
20
20
|
applicationTemplate: https://github.com/aymericzip/intlayer-react-router-v7-template
|
|
21
|
+
history:
|
|
22
|
+
- version: 6.1.5
|
|
23
|
+
date: 2025-10-03
|
|
24
|
+
changes: Updated doc
|
|
25
|
+
- version: 5.8.2
|
|
26
|
+
date: 2025-09-04
|
|
27
|
+
changes: Added for React Router v7
|
|
21
28
|
---
|
|
22
29
|
|
|
23
|
-
#
|
|
30
|
+
# Translate your React Router v7 website using Intlayer | Internationalization (i18n)
|
|
24
31
|
|
|
25
32
|
This guide demonstrates how to integrate **Intlayer** for seamless internationalization in React Router v7 projects with locale-aware routing, TypeScript support, and modern development practices.
|
|
26
33
|
|
|
@@ -475,10 +482,3 @@ To go further, you can implement the [visual editor](https://github.com/aymericz
|
|
|
475
482
|
- [Configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md)
|
|
476
483
|
|
|
477
484
|
This comprehensive guide provides everything you need to integrate Intlayer with React Router v7 for a fully internationalized application with locale-aware routing and TypeScript support.
|
|
478
|
-
|
|
479
|
-
## Doc History
|
|
480
|
-
|
|
481
|
-
| Version | Date | Changes |
|
|
482
|
-
| ------- | ---------- | ------------------------- |
|
|
483
|
-
| 6.1.5 | 2025-10-03 | Updated doc |
|
|
484
|
-
| 5.8.2 | 2025-09-04 | Added for React Router v7 |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-09-09
|
|
3
3
|
updatedAt: 2025-09-09
|
|
4
|
-
title:
|
|
4
|
+
title: How to translate your Tanstack Start app – i18n guide 2025
|
|
5
5
|
description: Learn how to add internationalization (i18n) to your Tanstack Start application using Intlayer. Follow this comprehensive guide to make your app multilingual with locale-aware routing.
|
|
6
6
|
keywords:
|
|
7
7
|
- Internationalization
|
|
@@ -17,9 +17,16 @@ slugs:
|
|
|
17
17
|
- environment
|
|
18
18
|
- tanstack-start
|
|
19
19
|
applicationTemplate: https://github.com/aymericzip/intlayer-tanstack-start-template
|
|
20
|
+
history:
|
|
21
|
+
- version: 6.5.2
|
|
22
|
+
date: 2025-10-03
|
|
23
|
+
changes: Update doc
|
|
24
|
+
- version: 5.8.1
|
|
25
|
+
date: 2025-09-09
|
|
26
|
+
changes: Added for Tanstack Start
|
|
20
27
|
---
|
|
21
28
|
|
|
22
|
-
#
|
|
29
|
+
# Translate your Tanstack Start website using Intlayer | Internationalization (i18n)
|
|
23
30
|
|
|
24
31
|
This guide demonstrates how to integrate **Intlayer** for seamless internationalization in Tanstack Start projects with locale-aware routing, TypeScript support, and modern development practices.
|
|
25
32
|
|
|
@@ -537,10 +544,3 @@ To go further, you can implement the [visual editor](https://github.com/aymericz
|
|
|
537
544
|
- [Configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md)
|
|
538
545
|
|
|
539
546
|
This comprehensive guide provides everything you need to integrate Intlayer with Tanstack Start for a fully internationalized application with locale-aware routing and TypeScript support.
|
|
540
|
-
|
|
541
|
-
## Doc History
|
|
542
|
-
|
|
543
|
-
| Version | Date | Changes |
|
|
544
|
-
| ------- | ---------- | ------------------------ |
|
|
545
|
-
| 6.5.2 | 2025-10-03 | Update doc |
|
|
546
|
-
| 5.8.1 | 2025-09-09 | Added for Tanstack Start |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-04-18
|
|
3
3
|
updatedAt: 2025-06-29
|
|
4
|
-
title:
|
|
4
|
+
title: How to translate your Vite and Preact app – i18n guide 2025
|
|
5
5
|
description: Discover how to make your Vite and Preact website multilingual. Follow the documentation to internationalize (i18n) and translate it.
|
|
6
6
|
keywords:
|
|
7
7
|
- Internationalization
|
|
@@ -15,9 +15,13 @@ slugs:
|
|
|
15
15
|
- environment
|
|
16
16
|
- vite-and-preact
|
|
17
17
|
applicationTemplate: https://github.com/aymericzip/intlayer-vite-preact-template
|
|
18
|
+
history:
|
|
19
|
+
- version: 5.5.10
|
|
20
|
+
date: 2025-06-29
|
|
21
|
+
changes: Init history
|
|
18
22
|
---
|
|
19
23
|
|
|
20
|
-
#
|
|
24
|
+
# Translate your Vite and Preact website using Intlayer | Internationalization (i18n)
|
|
21
25
|
|
|
22
26
|
> This package is in development. See the [issue](https://github.com/aymericzip/intlayer/issues/118) for more information. Show your interest in Intlayer for Preact by liking the issue
|
|
23
27
|
|
|
@@ -1661,9 +1665,3 @@ For more details on how to use the extension, refer to the [Intlayer VS Code Ext
|
|
|
1661
1665
|
To go further, you can implement the [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) or externalize your content using the [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md).
|
|
1662
1666
|
|
|
1663
1667
|
---
|
|
1664
|
-
|
|
1665
|
-
## Doc History
|
|
1666
|
-
|
|
1667
|
-
| Version | Date | Changes |
|
|
1668
|
-
| ------- | ---------- | ------------ |
|
|
1669
|
-
| 5.5.10 | 2025-06-29 | Init history |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-03-07
|
|
3
3
|
updatedAt: 2024-03-07
|
|
4
|
-
title:
|
|
4
|
+
title: How to translate your Vite and React app – i18n guide 2025
|
|
5
5
|
description: Learn how to add internationalization (i18n) to your Vite and React application using Intlayer. Follow this guide to make your app multilingual.
|
|
6
6
|
keywords:
|
|
7
7
|
- Internationalization
|
|
@@ -17,9 +17,13 @@ slugs:
|
|
|
17
17
|
- vite-and-react
|
|
18
18
|
applicationTemplate: https://github.com/aymericzip/intlayer-vite-react-template
|
|
19
19
|
youtubeVideo: https://www.youtube.com/watch?v=dS9L7uJeak4
|
|
20
|
+
history:
|
|
21
|
+
- version: 5.5.10
|
|
22
|
+
date: 2025-06-29
|
|
23
|
+
changes: Init history
|
|
20
24
|
---
|
|
21
25
|
|
|
22
|
-
#
|
|
26
|
+
# Translate your Vite and React website using Intlayer | Internationalization (i18n)
|
|
23
27
|
|
|
24
28
|
<iframe title="The best i18n solution for Vite and React? Discover Intlayer" class="m-auto aspect-[16/9] w-full overflow-hidden rounded-lg border-0" allow="autoplay; gyroscope;" loading="lazy" width="1080" height="auto" src="https://www.youtube.com/embed/dS9L7uJeak4?si=VaKmrYMmXjo3xpk2"/>
|
|
25
29
|
|
|
@@ -631,82 +635,10 @@ Example:
|
|
|
631
635
|
To add localized routing to your application, you can create a `LocaleRouter` component that wraps your application's routes and handles locale-based routing. Here is an example using [React Router](https://reactrouter.com/home):
|
|
632
636
|
|
|
633
637
|
```tsx fileName="src/components/LocaleRouter.tsx" codeFormat="typescript"
|
|
634
|
-
//
|
|
635
|
-
import { type Locales, configuration, getPathWithoutLocale } from "intlayer"; // Utility functions and types from 'intlayer'
|
|
638
|
+
import { localeMap } from "intlayer"; // Utility functions and types from 'intlayer'
|
|
636
639
|
import type { FC, PropsWithChildren } from "react"; // React types for functional components and props
|
|
637
640
|
import { IntlayerProvider } from "react-intlayer"; // Provider for internationalization context
|
|
638
|
-
import {
|
|
639
|
-
BrowserRouter,
|
|
640
|
-
Routes,
|
|
641
|
-
Route,
|
|
642
|
-
Navigate,
|
|
643
|
-
useLocation,
|
|
644
|
-
} from "react-router-dom"; // Router components for managing navigation
|
|
645
|
-
|
|
646
|
-
// Destructuring configuration from Intlayer
|
|
647
|
-
const { internationalization, middleware } = configuration;
|
|
648
|
-
const { locales, defaultLocale } = internationalization;
|
|
649
|
-
|
|
650
|
-
/**
|
|
651
|
-
* A component that handles localization and wraps children with the appropriate locale context.
|
|
652
|
-
* It manages URL-based locale detection and validation.
|
|
653
|
-
*/
|
|
654
|
-
const AppLocalized: FC<PropsWithChildren<{ locale: Locales }>> = ({
|
|
655
|
-
children,
|
|
656
|
-
locale,
|
|
657
|
-
}) => {
|
|
658
|
-
const { pathname, search } = useLocation(); // Get the current URL path
|
|
659
|
-
|
|
660
|
-
// Determine the current locale, falling back to the default if not provided
|
|
661
|
-
const currentLocale = locale ?? defaultLocale;
|
|
662
|
-
|
|
663
|
-
// Remove the locale prefix from the path to construct a base path
|
|
664
|
-
const pathWithoutLocale = getPathWithoutLocale(
|
|
665
|
-
pathname // Current URL path
|
|
666
|
-
);
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* If middleware.prefixDefault is true, the default locale should always be prefixed.
|
|
670
|
-
*/
|
|
671
|
-
if (middleware.prefixDefault) {
|
|
672
|
-
// Validate the locale
|
|
673
|
-
if (!locale || !locales.includes(locale)) {
|
|
674
|
-
// Redirect to the default locale with the updated path
|
|
675
|
-
return (
|
|
676
|
-
<Navigate
|
|
677
|
-
to={`/${defaultLocale}/${pathWithoutLocale}${search}`}
|
|
678
|
-
replace // Replace the current history entry with the new one
|
|
679
|
-
/>
|
|
680
|
-
);
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
// Wrap children with the IntlayerProvider and set the current locale
|
|
684
|
-
return (
|
|
685
|
-
<IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
|
|
686
|
-
);
|
|
687
|
-
} else {
|
|
688
|
-
/**
|
|
689
|
-
* When middleware.prefixDefault is false, the default locale is not prefixed.
|
|
690
|
-
* Ensure that the current locale is valid and not the default locale.
|
|
691
|
-
*/
|
|
692
|
-
if (
|
|
693
|
-
currentLocale.toString() !== defaultLocale.toString() &&
|
|
694
|
-
!locales
|
|
695
|
-
.filter(
|
|
696
|
-
(locale) => locale.toString() !== defaultLocale.toString() // Exclude the default locale
|
|
697
|
-
)
|
|
698
|
-
.includes(currentLocale) // Check if the current locale is in the list of valid locales
|
|
699
|
-
) {
|
|
700
|
-
// Redirect to the path without locale prefix
|
|
701
|
-
return <Navigate to={`${pathWithoutLocale}${search}`} replace />;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
// Wrap children with the IntlayerProvider and set the current locale
|
|
705
|
-
return (
|
|
706
|
-
<IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
|
|
707
|
-
);
|
|
708
|
-
}
|
|
709
|
-
};
|
|
641
|
+
import { BrowserRouter, Route, Routes } from "react-router-dom"; // Router components for managing navigation
|
|
710
642
|
|
|
711
643
|
/**
|
|
712
644
|
* A router component that sets up locale-specific routes.
|
|
@@ -715,256 +647,81 @@ const AppLocalized: FC<PropsWithChildren<{ locale: Locales }>> = ({
|
|
|
715
647
|
export const LocaleRouter: FC<PropsWithChildren> = ({ children }) => (
|
|
716
648
|
<BrowserRouter>
|
|
717
649
|
<Routes>
|
|
718
|
-
{
|
|
719
|
-
|
|
720
|
-
(
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
/>
|
|
729
|
-
))}
|
|
730
|
-
|
|
731
|
-
{
|
|
732
|
-
// If prefixing the default locale is disabled, render the children directly at the root path
|
|
733
|
-
!middleware.prefixDefault && (
|
|
734
|
-
<Route
|
|
735
|
-
path="*"
|
|
736
|
-
element={
|
|
737
|
-
<AppLocalized locale={defaultLocale}>{children}</AppLocalized>
|
|
738
|
-
} // Wraps children with locale management
|
|
739
|
-
/>
|
|
740
|
-
)
|
|
741
|
-
}
|
|
650
|
+
{localeMap(({ locale, urlPrefix }) => (
|
|
651
|
+
<Route
|
|
652
|
+
// Route pattern to capture the locale (e.g., /en/, /fr/) and match all subsequent paths
|
|
653
|
+
path={`${urlPrefix}/*`}
|
|
654
|
+
key={locale}
|
|
655
|
+
element={
|
|
656
|
+
<IntlayerProvider locale={locale}>{children}</IntlayerProvider>
|
|
657
|
+
} // Wraps children with locale management
|
|
658
|
+
/>
|
|
659
|
+
))}
|
|
742
660
|
</Routes>
|
|
743
661
|
</BrowserRouter>
|
|
744
662
|
);
|
|
745
663
|
```
|
|
746
664
|
|
|
747
665
|
```jsx fileName="src/components/LocaleRouter.mjx" codeFormat="esm"
|
|
748
|
-
//
|
|
749
|
-
import {
|
|
750
|
-
|
|
751
|
-
import {
|
|
752
|
-
import {
|
|
753
|
-
BrowserRouter,
|
|
754
|
-
Routes,
|
|
755
|
-
Route,
|
|
756
|
-
Navigate,
|
|
757
|
-
useLocation,
|
|
758
|
-
} from "react-router-dom"; // Router components for managing navigation
|
|
759
|
-
|
|
760
|
-
// Destructuring configuration from Intlayer
|
|
761
|
-
const { internationalization, middleware } = configuration;
|
|
762
|
-
const { locales, defaultLocale } = internationalization;
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
* A component that handles localization and wraps children with the appropriate locale context.
|
|
766
|
-
* It manages URL-based locale detection and validation.
|
|
767
|
-
*/
|
|
768
|
-
const AppLocalized = ({ children, locale }) => {
|
|
769
|
-
const { pathname, search } = useLocation(); // Get the current URL path
|
|
770
|
-
|
|
771
|
-
// Determine the current locale, falling back to the default if not provided
|
|
772
|
-
const currentLocale = locale ?? defaultLocale;
|
|
773
|
-
|
|
774
|
-
// Remove the locale prefix from the path to construct a base path
|
|
775
|
-
const pathWithoutLocale = getPathWithoutLocale(
|
|
776
|
-
pathname // Current URL path
|
|
777
|
-
);
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* If middleware.prefixDefault is true, the default locale should always be prefixed.
|
|
781
|
-
*/
|
|
782
|
-
if (middleware.prefixDefault) {
|
|
783
|
-
// Validate the locale
|
|
784
|
-
if (!locale || !locales.includes(locale)) {
|
|
785
|
-
// Redirect to the default locale with the updated path
|
|
786
|
-
return (
|
|
787
|
-
<Navigate
|
|
788
|
-
to={`/${defaultLocale}/${pathWithoutLocale}${search}`}
|
|
789
|
-
replace // Replace the current history entry with the new one
|
|
790
|
-
/>
|
|
791
|
-
);
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
// Wrap children with the IntlayerProvider and set the current locale
|
|
795
|
-
return (
|
|
796
|
-
<IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
|
|
797
|
-
);
|
|
798
|
-
} else {
|
|
799
|
-
/**
|
|
800
|
-
* When middleware.prefixDefault is false, the default locale is not prefixed.
|
|
801
|
-
* Ensure that the current locale is valid and not the default locale.
|
|
802
|
-
*/
|
|
803
|
-
if (
|
|
804
|
-
currentLocale.toString() !== defaultLocale.toString() &&
|
|
805
|
-
!locales
|
|
806
|
-
.filter(
|
|
807
|
-
(locale) => locale.toString() !== defaultLocale.toString() // Exclude the default locale
|
|
808
|
-
)
|
|
809
|
-
.includes(currentLocale) // Check if the current locale is in the list of valid locales
|
|
810
|
-
) {
|
|
811
|
-
// Redirect to the path without locale prefix
|
|
812
|
-
return <Navigate to={`${pathWithoutLocale}${search}`} replace />;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
// Wrap children with the IntlayerProvider and set the current locale
|
|
816
|
-
return (
|
|
817
|
-
<IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
|
|
818
|
-
);
|
|
819
|
-
}
|
|
820
|
-
};
|
|
666
|
+
import { localeMap } from 'intlayer'; // Utility functions and types from 'intlayer'
|
|
667
|
+
import type { FC, PropsWithChildren } from 'react'; // React types for functional components and props
|
|
668
|
+
import { IntlayerProvider } from 'react-intlayer'; // Provider for internationalization context
|
|
669
|
+
import { BrowserRouter, Route, Routes } from 'react-router-dom'; // Router components for managing navigation
|
|
821
670
|
|
|
822
671
|
/**
|
|
823
672
|
* A router component that sets up locale-specific routes.
|
|
824
673
|
* It uses React Router to manage navigation and render localized components.
|
|
825
674
|
*/
|
|
826
|
-
export const LocaleRouter = ({ children }) => (
|
|
675
|
+
export const LocaleRouter: FC<PropsWithChildren> = ({ children }) => (
|
|
827
676
|
<BrowserRouter>
|
|
828
677
|
<Routes>
|
|
829
|
-
{
|
|
830
|
-
|
|
831
|
-
(
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
/>
|
|
840
|
-
))}
|
|
841
|
-
|
|
842
|
-
{
|
|
843
|
-
// If prefixing the default locale is disabled, render the children directly at the root path
|
|
844
|
-
!middleware.prefixDefault && (
|
|
845
|
-
<Route
|
|
846
|
-
path="*"
|
|
847
|
-
element={
|
|
848
|
-
<AppLocalized locale={defaultLocale}>{children}</AppLocalized>
|
|
849
|
-
} // Wraps children with locale management
|
|
850
|
-
/>
|
|
851
|
-
)
|
|
852
|
-
}
|
|
678
|
+
{localeMap(({ locale, urlPrefix }) => (
|
|
679
|
+
<Route
|
|
680
|
+
// Route pattern to capture the locale (e.g., /en/, /fr/) and match all subsequent paths
|
|
681
|
+
path={`${urlPrefix}/*`}
|
|
682
|
+
key={locale}
|
|
683
|
+
element={
|
|
684
|
+
<IntlayerProvider locale={locale}>{children}</IntlayerProvider>
|
|
685
|
+
} // Wraps children with locale management
|
|
686
|
+
/>
|
|
687
|
+
))}
|
|
853
688
|
</Routes>
|
|
854
689
|
</BrowserRouter>
|
|
855
690
|
);
|
|
856
691
|
```
|
|
857
692
|
|
|
858
693
|
```jsx fileName="src/components/LocaleRouter.cjx" codeFormat="commonjs"
|
|
859
|
-
//
|
|
860
|
-
const
|
|
861
|
-
const { IntlayerProvider
|
|
862
|
-
const {
|
|
863
|
-
BrowserRouter,
|
|
864
|
-
Routes,
|
|
865
|
-
Route,
|
|
866
|
-
Navigate,
|
|
867
|
-
useLocation,
|
|
868
|
-
} = require("react-router-dom"); // Router components for managing navigation
|
|
869
|
-
|
|
870
|
-
// Destructuring configuration from Intlayer
|
|
871
|
-
const { internationalization, middleware } = configuration;
|
|
872
|
-
const { locales, defaultLocale } = internationalization;
|
|
873
|
-
|
|
874
|
-
/**
|
|
875
|
-
* A component that handles localization and wraps children with the appropriate locale context.
|
|
876
|
-
* It manages URL-based locale detection and validation.
|
|
877
|
-
*/
|
|
878
|
-
const AppLocalized = ({ children, locale }) => {
|
|
879
|
-
const { pathname, search } = useLocation(); // Get the current URL path
|
|
880
|
-
|
|
881
|
-
// Determine the current locale, falling back to the default if not provided
|
|
882
|
-
const currentLocale = locale ?? defaultLocale;
|
|
883
|
-
|
|
884
|
-
// Remove the locale prefix from the path to construct a base path
|
|
885
|
-
const pathWithoutLocale = getPathWithoutLocale(
|
|
886
|
-
pathname // Current URL path
|
|
887
|
-
);
|
|
888
|
-
|
|
889
|
-
/**
|
|
890
|
-
* If middleware.prefixDefault is true, the default locale should always be prefixed.
|
|
891
|
-
*/
|
|
892
|
-
if (middleware.prefixDefault) {
|
|
893
|
-
// Validate the locale
|
|
894
|
-
if (!locale || !locales.includes(locale)) {
|
|
895
|
-
// Redirect to the default locale with the updated path
|
|
896
|
-
return (
|
|
897
|
-
<Navigate
|
|
898
|
-
to={`/${defaultLocale}/${pathWithoutLocale}${search}`}
|
|
899
|
-
replace // Replace the current history entry with the new one
|
|
900
|
-
/>
|
|
901
|
-
);
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
// Wrap children with the IntlayerProvider and set the current locale
|
|
905
|
-
return (
|
|
906
|
-
<IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
|
|
907
|
-
);
|
|
908
|
-
} else {
|
|
909
|
-
/**
|
|
910
|
-
* When middleware.prefixDefault is false, the default locale is not prefixed.
|
|
911
|
-
* Ensure that the current locale is valid and not the default locale.
|
|
912
|
-
*/
|
|
913
|
-
if (
|
|
914
|
-
currentLocale.toString() !== defaultLocale.toString() &&
|
|
915
|
-
!locales
|
|
916
|
-
.filter(
|
|
917
|
-
(locale) => locale.toString() !== defaultLocale.toString() // Exclude the default locale
|
|
918
|
-
)
|
|
919
|
-
.includes(currentLocale) // Check if the current locale is in the list of valid locales
|
|
920
|
-
) {
|
|
921
|
-
// Redirect to the path without locale prefix
|
|
922
|
-
return <Navigate to={`${pathWithoutLocale}${search}`} replace />;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
// Wrap children with the IntlayerProvider and set the current locale
|
|
926
|
-
return (
|
|
927
|
-
<IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
|
|
928
|
-
);
|
|
929
|
-
}
|
|
930
|
-
};
|
|
694
|
+
const { localeMap } = require("intlayer"); // Utility functions and types from 'intlayer'
|
|
695
|
+
const React = require("react"); // Import React
|
|
696
|
+
const { IntlayerProvider } = require("react-intlayer"); // Provider for internationalization context
|
|
697
|
+
const { BrowserRouter, Route, Routes } = require("react-router-dom"); // Router components for managing navigation
|
|
931
698
|
|
|
932
699
|
/**
|
|
933
700
|
* A router component that sets up locale-specific routes.
|
|
934
701
|
* It uses React Router to manage navigation and render localized components.
|
|
935
702
|
*/
|
|
936
|
-
const LocaleRouter = ({ children }) =>
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
703
|
+
const LocaleRouter = ({ children }) =>
|
|
704
|
+
React.createElement(
|
|
705
|
+
BrowserRouter,
|
|
706
|
+
{},
|
|
707
|
+
React.createElement(
|
|
708
|
+
Routes,
|
|
709
|
+
{},
|
|
710
|
+
localeMap(({ locale, urlPrefix }) =>
|
|
711
|
+
React.createElement(Route, {
|
|
712
|
+
path: `${urlPrefix}/*`,
|
|
713
|
+
key: locale,
|
|
714
|
+
element: React.createElement(IntlayerProvider, { locale }, children),
|
|
715
|
+
})
|
|
716
|
+
)
|
|
717
|
+
)
|
|
718
|
+
);
|
|
951
719
|
|
|
952
|
-
|
|
953
|
-
// If prefixing the default locale is disabled, render the children directly at the root path
|
|
954
|
-
!middleware.prefixDefault && (
|
|
955
|
-
<Route
|
|
956
|
-
path="*"
|
|
957
|
-
element={
|
|
958
|
-
<AppLocalized locale={defaultLocale}>{children}</AppLocalized>
|
|
959
|
-
} // Wraps children with locale management
|
|
960
|
-
/>
|
|
961
|
-
)
|
|
962
|
-
}
|
|
963
|
-
</Routes>
|
|
964
|
-
</BrowserRouter>
|
|
965
|
-
);
|
|
720
|
+
exports.LocaleRouter = LocaleRouter;
|
|
966
721
|
```
|
|
967
722
|
|
|
723
|
+
> Note: If you use `routing.mode: 'no-prefix' | 'search-params'`, you probably don't need to use the `localeMap` function.
|
|
724
|
+
|
|
968
725
|
Then, you can use the `LocaleRouter` component in your application:
|
|
969
726
|
|
|
970
727
|
```tsx fileName="src/App.tsx" codeFormat="typescript"
|
|
@@ -1620,9 +1377,3 @@ For more details on how to use the extension, refer to the [Intlayer VS Code Ext
|
|
|
1620
1377
|
To go further, you can implement the [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) or externalize your content using the [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md).
|
|
1621
1378
|
|
|
1622
1379
|
---
|
|
1623
|
-
|
|
1624
|
-
## Doc History
|
|
1625
|
-
|
|
1626
|
-
| Version | Date | Changes |
|
|
1627
|
-
| ------- | ---------- | ------------ |
|
|
1628
|
-
| 5.5.10 | 2025-06-29 | Init history |
|