@intlayer/docs 6.1.6 → 7.0.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blog/ar/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
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-10-05
|
|
3
|
+
updatedAt: 2025-10-05
|
|
4
|
+
title: How to translate your Next.js 15 using next-i18next – i18n guide 2025
|
|
5
|
+
description: A practical, production-ready guide to internationalize a Next.js 15 App Router app with i18next/next-i18next and enhance it with Intlayer.
|
|
6
|
+
keywords:
|
|
7
|
+
- Internationalization
|
|
8
|
+
- Documentation
|
|
9
|
+
- Intlayer
|
|
10
|
+
- Next.js 15
|
|
11
|
+
- next-i18next
|
|
12
|
+
- i18next
|
|
13
|
+
- JavaScript
|
|
14
|
+
- React
|
|
15
|
+
slugs:
|
|
16
|
+
- doc
|
|
17
|
+
- next-i18next
|
|
18
|
+
applicationTemplate: https://github.com/aymericzip/intlayer-next-i18next-template
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Translate your Next.js 15 using next-i18next website using Intlayer | Internationalization (i18n)
|
|
22
|
+
|
|
23
|
+
### Who this guide is for
|
|
24
|
+
|
|
25
|
+
- **Junior**: Follow the exact steps and copy the code blocks. You’ll get a working multilingual app.
|
|
26
|
+
- **Mid-level**: Use the checklists and best-practice callouts to avoid common pitfalls.
|
|
27
|
+
- **Senior**: Skim the high-level structure, SEO, and automation sections; you’ll find sensible defaults and extension points.
|
|
28
|
+
|
|
29
|
+
### What you’ll build
|
|
30
|
+
|
|
31
|
+
- App Router project with localized routes (e.g., `/`, `/fr/...`)
|
|
32
|
+
- i18n config with locales, default locale, RTL support
|
|
33
|
+
- Server-side i18n initialization and a client provider
|
|
34
|
+
- Namespaced translations loaded on-demand
|
|
35
|
+
- SEO with `hreflang`, localized `sitemap`, `robots`
|
|
36
|
+
- Middleware for locale routing
|
|
37
|
+
- Intlayer integration to automate translation workflows (tests, AI fill, JSON sync)
|
|
38
|
+
|
|
39
|
+
> Note: next-i18next is built on top of i18next. This guide uses the i18next primitives compatible with next-i18next in the App Router, while keeping the architecture simple and production-ready.
|
|
40
|
+
> For a broader comparison, see [next-i18next vs next-i18next vs Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/blog/en/next-i18next_vs_next-i18next_vs_intlayer.md).
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 1) Project structure
|
|
45
|
+
|
|
46
|
+
Install the next-i18next dependencies:
|
|
47
|
+
|
|
48
|
+
```bash packageManager="npm"
|
|
49
|
+
npm install next-i18next i18next react-i18next i18next-resources-to-backend
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```bash packageManager="pnpm"
|
|
53
|
+
pnpm add next-i18next i18next react-i18next i18next-resources-to-backend
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```bash packageManager="yarn"
|
|
57
|
+
yarn add next-i18next i18next react-i18next i18next-resources-to-backend
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Start with a clear structure. Keep messages split by locale and namespace.
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
.
|
|
64
|
+
├── i18n.config.ts
|
|
65
|
+
└── src
|
|
66
|
+
├── locales
|
|
67
|
+
│ ├── en
|
|
68
|
+
│ │ ├── common.json
|
|
69
|
+
│ │ └── about.json
|
|
70
|
+
│ └── fr
|
|
71
|
+
│ ├── common.json
|
|
72
|
+
│ └── about.json
|
|
73
|
+
├── app
|
|
74
|
+
│ ├── i18n
|
|
75
|
+
│ │ └── server.ts
|
|
76
|
+
│ └── [locale]
|
|
77
|
+
│ ├── layout.tsx
|
|
78
|
+
│ └── about.tsx
|
|
79
|
+
└── components
|
|
80
|
+
├── I18nProvider.tsx
|
|
81
|
+
├── ClientComponent.tsx
|
|
82
|
+
└── ServerComponent.tsx
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Checklist (mid/senior):
|
|
86
|
+
|
|
87
|
+
- Keep one JSON per namespace per locale
|
|
88
|
+
- Do not over-centralize messages; use small, page/feature-scoped namespaces
|
|
89
|
+
- Avoid importing all locales at once; load only what you need
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## 2) Install dependencies
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
pnpm add i18next react-i18next i18next-resources-to-backend
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
If you plan to use next-i18next APIs or config interop, also:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
pnpm add next-i18next
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 3) Core i18n config
|
|
108
|
+
|
|
109
|
+
Define locales, default locale, RTL, and helpers for localized paths/URLs.
|
|
110
|
+
|
|
111
|
+
```ts fileName="i18n.config.ts"
|
|
112
|
+
export const locales = ["en", "fr"] as const;
|
|
113
|
+
export type Locale = (typeof locales)[number];
|
|
114
|
+
|
|
115
|
+
export const defaultLocale: Locale = "en";
|
|
116
|
+
|
|
117
|
+
export const rtlLocales = ["ar", "he", "fa", "ur"] as const;
|
|
118
|
+
export const isRtl = (locale: string) =>
|
|
119
|
+
(rtlLocales as readonly string[]).includes(locale);
|
|
120
|
+
|
|
121
|
+
export function localizedPath(locale: string, path: string) {
|
|
122
|
+
return locale === defaultLocale ? path : "/" + locale + path;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const ORIGIN = "https://example.com";
|
|
126
|
+
export function abs(locale: string, path: string) {
|
|
127
|
+
return ORIGIN + localizedPath(locale, path);
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Senior note: If you use `next-i18next.config.js`, keep it aligned with `i18n.config.ts` to avoid drift.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 4) Server-side i18n initialization
|
|
136
|
+
|
|
137
|
+
Initialize i18next on the server with a dynamic backend that imports only the required locale/namespace JSON.
|
|
138
|
+
|
|
139
|
+
```ts fileName="src/app/i18n/server.ts"
|
|
140
|
+
import { createInstance } from "i18next";
|
|
141
|
+
import { initReactI18next } from "react-i18next/initReactI18next";
|
|
142
|
+
import resourcesToBackend from "i18next-resources-to-backend";
|
|
143
|
+
import { defaultLocale } from "@/i18n.config";
|
|
144
|
+
|
|
145
|
+
// Load JSON resources from src/locales/<locale>/<namespace>.json
|
|
146
|
+
const backend = resourcesToBackend(
|
|
147
|
+
(locale: string, namespace: string) =>
|
|
148
|
+
import(`../../locales/${locale}/${namespace}.json`)
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
export async function initI18next(
|
|
152
|
+
locale: string,
|
|
153
|
+
namespaces: string[] = ["common"]
|
|
154
|
+
) {
|
|
155
|
+
const i18n = createInstance();
|
|
156
|
+
await i18n
|
|
157
|
+
.use(initReactI18next)
|
|
158
|
+
.use(backend)
|
|
159
|
+
.init({
|
|
160
|
+
lng: locale,
|
|
161
|
+
fallbackLng: defaultLocale,
|
|
162
|
+
ns: namespaces,
|
|
163
|
+
defaultNS: "common",
|
|
164
|
+
interpolation: { escapeValue: false },
|
|
165
|
+
react: { useSuspense: false },
|
|
166
|
+
});
|
|
167
|
+
return i18n;
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Mid note: Keep the namespace list short per page to limit payload. Avoid global “catch-all” bundles.
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## 5) Client provider for React components
|
|
176
|
+
|
|
177
|
+
Wrap client components with a provider that mirrors the server config and loads only the requested namespaces.
|
|
178
|
+
|
|
179
|
+
```tsx fileName="src/components/I18nProvider.tsx"
|
|
180
|
+
"use client";
|
|
181
|
+
|
|
182
|
+
import * as React from "react";
|
|
183
|
+
import { I18nextProvider } from "react-i18next";
|
|
184
|
+
import { createInstance } from "i18next";
|
|
185
|
+
import { initReactI18next } from "react-i18next/initReactI18next";
|
|
186
|
+
import resourcesToBackend from "i18next-resources-to-backend";
|
|
187
|
+
import { defaultLocale } from "@/i18n.config";
|
|
188
|
+
|
|
189
|
+
const backend = resourcesToBackend(
|
|
190
|
+
(locale: string, namespace: string) =>
|
|
191
|
+
import(`../../locales/${locale}/${namespace}.json`)
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
type Props = {
|
|
195
|
+
locale: string;
|
|
196
|
+
namespaces?: string[];
|
|
197
|
+
resources?: Record<string, any>; // { ns: bundle }
|
|
198
|
+
children: React.ReactNode;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
export default function I18nProvider({
|
|
202
|
+
locale,
|
|
203
|
+
namespaces = ["common"],
|
|
204
|
+
resources,
|
|
205
|
+
children,
|
|
206
|
+
}: Props) {
|
|
207
|
+
const [i18n] = React.useState(() => {
|
|
208
|
+
const i = createInstance();
|
|
209
|
+
|
|
210
|
+
i.use(initReactI18next)
|
|
211
|
+
.use(backend)
|
|
212
|
+
.init({
|
|
213
|
+
lng: locale,
|
|
214
|
+
fallbackLng: defaultLocale,
|
|
215
|
+
ns: namespaces,
|
|
216
|
+
resources: resources ? { [locale]: resources } : undefined,
|
|
217
|
+
defaultNS: "common",
|
|
218
|
+
interpolation: { escapeValue: false },
|
|
219
|
+
react: { useSuspense: false },
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
return i;
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
return <I18nextProvider i18n={i18n}>{children}</I18nextProvider>;
|
|
226
|
+
}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Junior tip: You don’t need to pass all messages to the client. Start with the page’s namespaces only.
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## 6) Localized layout and routes
|
|
234
|
+
|
|
235
|
+
Set language and direction, and pre-generate routes per locale to favor static rendering.
|
|
236
|
+
|
|
237
|
+
```tsx fileName="src/app/[locale]/layout.tsx"
|
|
238
|
+
import type { ReactNode } from "react";
|
|
239
|
+
import { locales, defaultLocale, isRtl, type Locale } from "@/i18n.config";
|
|
240
|
+
|
|
241
|
+
export const dynamicParams = false;
|
|
242
|
+
|
|
243
|
+
export function generateStaticParams() {
|
|
244
|
+
return locales.map((locale) => ({ locale }));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export default function LocaleLayout({
|
|
248
|
+
children,
|
|
249
|
+
params,
|
|
250
|
+
}: {
|
|
251
|
+
children: ReactNode;
|
|
252
|
+
params: { locale: string };
|
|
253
|
+
}) {
|
|
254
|
+
const locale: Locale = (locales as readonly string[]).includes(params.locale)
|
|
255
|
+
? (params.locale as any)
|
|
256
|
+
: defaultLocale;
|
|
257
|
+
|
|
258
|
+
const dir = isRtl(locale) ? "rtl" : "ltr";
|
|
259
|
+
|
|
260
|
+
return (
|
|
261
|
+
<html lang={locale} dir={dir}>
|
|
262
|
+
<body>{children}</body>
|
|
263
|
+
</html>
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## 7) Example page with server + client usage
|
|
271
|
+
|
|
272
|
+
```tsx fileName="src/app/[locale]/about.tsx"
|
|
273
|
+
import I18nProvider from "@/components/I18nProvider";
|
|
274
|
+
import { initI18next } from "@/app/i18n/server";
|
|
275
|
+
import type { Locale } from "@/i18n.config";
|
|
276
|
+
import ClientComponent from "@/components/ClientComponent";
|
|
277
|
+
import ServerComponent from "@/components/ServerComponent";
|
|
278
|
+
|
|
279
|
+
// Force static rendering for the page
|
|
280
|
+
export const dynamic = "force-static";
|
|
281
|
+
|
|
282
|
+
export default async function AboutPage({
|
|
283
|
+
params: { locale },
|
|
284
|
+
}: {
|
|
285
|
+
params: { locale: Locale };
|
|
286
|
+
}) {
|
|
287
|
+
const namespaces = ["common", "about"] as const;
|
|
288
|
+
|
|
289
|
+
const i18n = await initI18next(locale, [...namespaces]);
|
|
290
|
+
const tAbout = i18n.getFixedT(locale, "about");
|
|
291
|
+
|
|
292
|
+
return (
|
|
293
|
+
<I18nProvider locale={locale} namespaces={[...namespaces]}>
|
|
294
|
+
<main>
|
|
295
|
+
<h1>{tAbout("title")}</h1>
|
|
296
|
+
|
|
297
|
+
<ClientComponent />
|
|
298
|
+
<ServerComponent t={tAbout} locale={locale} count={0} />
|
|
299
|
+
</main>
|
|
300
|
+
</I18nProvider>
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
Translations (one JSON per namespace under `src/locales/...`):
|
|
306
|
+
|
|
307
|
+
```json fileName="src/locales/en/about.json"
|
|
308
|
+
{
|
|
309
|
+
"title": "About",
|
|
310
|
+
"description": "About page description",
|
|
311
|
+
"counter": {
|
|
312
|
+
"label": "Counter",
|
|
313
|
+
"increment": "Increment"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
```json fileName="src/locales/fr/about.json"
|
|
319
|
+
{
|
|
320
|
+
"title": "À propos",
|
|
321
|
+
"description": "Description de la page À propos",
|
|
322
|
+
"counter": {
|
|
323
|
+
"label": "Compteur",
|
|
324
|
+
"increment": "Incrémenter"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
Client component (loads only the required namespace):
|
|
330
|
+
|
|
331
|
+
```tsx fileName="src/components/ClientComponent.tsx"
|
|
332
|
+
"use client";
|
|
333
|
+
|
|
334
|
+
import React, { useState } from "react";
|
|
335
|
+
import { useTranslation } from "react-i18next";
|
|
336
|
+
|
|
337
|
+
const ClientComponent = () => {
|
|
338
|
+
const { t, i18n } = useTranslation("about");
|
|
339
|
+
const [count, setCount] = useState(0);
|
|
340
|
+
|
|
341
|
+
const numberFormat = new Intl.NumberFormat(i18n.language);
|
|
342
|
+
|
|
343
|
+
return (
|
|
344
|
+
<div>
|
|
345
|
+
<p>{numberFormat.format(count)}</p>
|
|
346
|
+
<button
|
|
347
|
+
aria-label={t("counter.label")}
|
|
348
|
+
onClick={() => setCount((c) => c + 1)}
|
|
349
|
+
>
|
|
350
|
+
{t("counter.increment")}
|
|
351
|
+
</button>
|
|
352
|
+
</div>
|
|
353
|
+
);
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
export default ClientComponent;
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
> Ensure the page/provider includes only the namespaces you need (e.g., `about`).
|
|
360
|
+
> If you use React < 19, memoize heavy formatters like `Intl.NumberFormat`.
|
|
361
|
+
|
|
362
|
+
Synchronous server component embedded under a client boundary:
|
|
363
|
+
|
|
364
|
+
```tsx fileName="src/components/ServerComponent.tsx"
|
|
365
|
+
type ServerComponentProps = {
|
|
366
|
+
t: (key: string) => string;
|
|
367
|
+
locale: string;
|
|
368
|
+
count: number;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
const ServerComponent = ({ t, locale, count }: ServerComponentProps) => {
|
|
372
|
+
const formatted = new Intl.NumberFormat(locale).format(count);
|
|
373
|
+
|
|
374
|
+
return (
|
|
375
|
+
<div>
|
|
376
|
+
<p>{formatted}</p>
|
|
377
|
+
<button aria-label={t("counter.label")}>{t("counter.increment")}</button>
|
|
378
|
+
</div>
|
|
379
|
+
);
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
export default ServerComponent;
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
## 8) SEO: Metadata, Hreflang, Sitemap, Robots
|
|
388
|
+
|
|
389
|
+
Translating content is a means to improve reach. Wire up multilingual SEO thoroughly.
|
|
390
|
+
|
|
391
|
+
Best practices:
|
|
392
|
+
|
|
393
|
+
- Set `lang` and `dir` at the root
|
|
394
|
+
- Add `alternates.languages` for each locale (+ `x-default`)
|
|
395
|
+
- List translated URLs in `sitemap.xml` and use `hreflang`
|
|
396
|
+
- Exclude localized private areas (e.g., `/fr/admin`) in `robots.txt`
|
|
397
|
+
|
|
398
|
+
```tsx fileName="src/app/[locale]/about/layout.tsx"
|
|
399
|
+
import type { Metadata } from "next";
|
|
400
|
+
import { locales, defaultLocale, localizedPath } from "@/i18n.config";
|
|
401
|
+
|
|
402
|
+
export async function generateMetadata({
|
|
403
|
+
params,
|
|
404
|
+
}: {
|
|
405
|
+
params: { locale: string };
|
|
406
|
+
}): Promise<Metadata> {
|
|
407
|
+
const { locale } = params;
|
|
408
|
+
|
|
409
|
+
// Import the correct JSON bundle from src/locales
|
|
410
|
+
const messages = (await import("@/locales/" + locale + "/about.json"))
|
|
411
|
+
.default;
|
|
412
|
+
|
|
413
|
+
const languages = Object.fromEntries(
|
|
414
|
+
locales.map((locale) => [locale, localizedPath(locale, "/about")])
|
|
415
|
+
);
|
|
416
|
+
|
|
417
|
+
return {
|
|
418
|
+
title: messages.title,
|
|
419
|
+
description: messages.description,
|
|
420
|
+
alternates: {
|
|
421
|
+
canonical: localizedPath(locale, "/about"),
|
|
422
|
+
languages: { ...languages, "x-default": "/about" },
|
|
423
|
+
},
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export default async function AboutPage() {
|
|
428
|
+
return <h1>About</h1>;
|
|
429
|
+
}
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
```ts fileName="src/app/sitemap.ts"
|
|
433
|
+
import type { MetadataRoute } from "next";
|
|
434
|
+
import { locales, defaultLocale, abs } from "@/i18n.config";
|
|
435
|
+
|
|
436
|
+
export default function sitemap(): MetadataRoute.Sitemap {
|
|
437
|
+
const languages = Object.fromEntries(
|
|
438
|
+
locales.map((locale) => [locale, abs(locale, "/about")])
|
|
439
|
+
);
|
|
440
|
+
|
|
441
|
+
return [
|
|
442
|
+
{
|
|
443
|
+
url: abs(defaultLocale, "/about"),
|
|
444
|
+
lastModified: new Date(),
|
|
445
|
+
changeFrequency: "monthly",
|
|
446
|
+
priority: 0.7,
|
|
447
|
+
alternates: { languages },
|
|
448
|
+
},
|
|
449
|
+
];
|
|
450
|
+
}
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
```ts fileName="src/app/robots.ts"
|
|
454
|
+
import type { MetadataRoute } from "next";
|
|
455
|
+
import { locales, defaultLocale, localizedPath } from "@/i18n.config";
|
|
456
|
+
|
|
457
|
+
const ORIGIN = "https://example.com";
|
|
458
|
+
|
|
459
|
+
const expandAllLocales = (path: string) => [
|
|
460
|
+
localizedPath(defaultLocale, path),
|
|
461
|
+
...locales
|
|
462
|
+
.filter((locale) => locale !== defaultLocale)
|
|
463
|
+
.map((locale) => localizedPath(locale, path)),
|
|
464
|
+
];
|
|
465
|
+
|
|
466
|
+
export default function robots(): MetadataRoute.Robots {
|
|
467
|
+
const disallow = [
|
|
468
|
+
...expandAllLocales("/dashboard"),
|
|
469
|
+
...expandAllLocales("/admin"),
|
|
470
|
+
];
|
|
471
|
+
|
|
472
|
+
return {
|
|
473
|
+
rules: { userAgent: "*", allow: ["/"], disallow },
|
|
474
|
+
host: ORIGIN,
|
|
475
|
+
sitemap: ORIGIN + "/sitemap.xml",
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
## 9) Middleware for locale routing
|
|
483
|
+
|
|
484
|
+
Detect locale and redirect to a localized route if missing.
|
|
485
|
+
|
|
486
|
+
```ts fileName="src/middleware.ts"
|
|
487
|
+
import { NextResponse, type NextRequest } from "next/server";
|
|
488
|
+
import { defaultLocale, locales } from "@/i18n.config";
|
|
489
|
+
|
|
490
|
+
const PUBLIC_FILE = /\.[^/]+$/; // exclude files with extensions
|
|
491
|
+
|
|
492
|
+
export function middleware(request: NextRequest) {
|
|
493
|
+
const { pathname } = request.nextUrl;
|
|
494
|
+
|
|
495
|
+
if (
|
|
496
|
+
pathname.startsWith("/_next") ||
|
|
497
|
+
pathname.startsWith("/api") ||
|
|
498
|
+
pathname.startsWith("/static") ||
|
|
499
|
+
PUBLIC_FILE.test(pathname)
|
|
500
|
+
) {
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
const hasLocale = locales.some(
|
|
505
|
+
(locale) =>
|
|
506
|
+
pathname === "/" + locale || pathname.startsWith("/" + locale + "/")
|
|
507
|
+
);
|
|
508
|
+
if (!hasLocale) {
|
|
509
|
+
const locale = defaultLocale;
|
|
510
|
+
const url = request.nextUrl.clone();
|
|
511
|
+
url.pathname = "/" + locale + (pathname === "/" ? "" : pathname);
|
|
512
|
+
return NextResponse.redirect(url);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export const config = {
|
|
517
|
+
matcher: [
|
|
518
|
+
// Match all paths except the ones starting with these and files with an extension
|
|
519
|
+
"/((?!api|_next|static|.*\\..*).*)",
|
|
520
|
+
],
|
|
521
|
+
};
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
---
|
|
525
|
+
|
|
526
|
+
## 10) Performance and DX best practices
|
|
527
|
+
|
|
528
|
+
- **Set html `lang` and `dir`**: Done in `src/app/[locale]/layout.tsx`.
|
|
529
|
+
- **Split messages by namespace**: Keep bundles small (`common.json`, `about.json`, etc.).
|
|
530
|
+
- **Minimize client payload**: On pages, pass only required namespaces to the provider.
|
|
531
|
+
- **Prefer static pages**: Use `export const dynamic = 'force-static'` and `generateStaticParams` per locale.
|
|
532
|
+
- **Sync server components**: Pass precomputed strings/formatting instead of async calls at render time.
|
|
533
|
+
- **Memoize heavy operations**: Especially in client code for older React versions.
|
|
534
|
+
- **Cache and headers**: Prefer static or `revalidate` over dynamic rendering when feasible.
|
|
535
|
+
|
|
536
|
+
---
|
|
537
|
+
|
|
538
|
+
## 11) Testing and CI
|
|
539
|
+
|
|
540
|
+
- Add unit tests for components using `t` to ensure keys exist.
|
|
541
|
+
- Validate that each namespace has the same keys across locales.
|
|
542
|
+
- Surface missing keys during CI before deploy.
|
|
543
|
+
|
|
544
|
+
Intlayer will automate much of this (see next section).
|
|
545
|
+
|
|
546
|
+
---
|
|
547
|
+
|
|
548
|
+
## 12) Add Intlayer on top (automation)
|
|
549
|
+
|
|
550
|
+
Intlayer helps you keep JSON translations in sync, test for missing keys, and fill with AI when desired.
|
|
551
|
+
|
|
552
|
+
Install the intlayer dependencies:
|
|
553
|
+
|
|
554
|
+
```bash packageManager="npm"
|
|
555
|
+
npm install intlayer @intlayer/sync-json-plugin -D
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
```bash packageManager="pnpm"
|
|
559
|
+
pnpm add intlayer @intlayer/sync-json-plugin -D
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
```bash packageManager="yarn"
|
|
563
|
+
yarn add intlayer @intlayer/sync-json-plugin -D
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
```ts fileName="intlayer.config.ts"
|
|
567
|
+
import { type IntlayerConfig, Locales } from "intlayer";
|
|
568
|
+
import { locales, defaultLocale } from "@/i18n";
|
|
569
|
+
import { syncJSON } from "@intlayer/sync-json";
|
|
570
|
+
|
|
571
|
+
export const locales = [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH];
|
|
572
|
+
|
|
573
|
+
const config: IntlayerConfig = {
|
|
574
|
+
internationalization: {
|
|
575
|
+
locales,
|
|
576
|
+
defaultLocale,
|
|
577
|
+
},
|
|
578
|
+
ai: {
|
|
579
|
+
apiKey: process.env.OPENAI_API_KEY,
|
|
580
|
+
},
|
|
581
|
+
plugins: [
|
|
582
|
+
syncJSON({
|
|
583
|
+
source: ({ locale }) => `./locales/${locale}.json`,
|
|
584
|
+
}),
|
|
585
|
+
],
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
export default config;
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
Add package scripts:
|
|
592
|
+
|
|
593
|
+
```json fileName="package.json"
|
|
594
|
+
{
|
|
595
|
+
"scripts": {
|
|
596
|
+
"i18n:fill": "intlayer fill",
|
|
597
|
+
"i18n:test": "intlayer test"
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
Common flows:
|
|
603
|
+
|
|
604
|
+
- `pnpm i18n:test` in CI to fail builds on missing keys
|
|
605
|
+
- `pnpm i18n:fill` locally to propose AI translations for newly added keys
|
|
606
|
+
|
|
607
|
+
> You can provide CLI arguments; see the [Intlayer CLI docs](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_cli.md).
|
|
608
|
+
|
|
609
|
+
---
|
|
610
|
+
|
|
611
|
+
## 13) Troubleshooting
|
|
612
|
+
|
|
613
|
+
- **Keys not found**: Ensure the page/provider lists the correct namespaces and the JSON file exists under `src/locales/<locale>/<namespace>.json`.
|
|
614
|
+
- **Wrong language/flash of English**: Double-check locale detection in `middleware.ts` and provider `lng`.
|
|
615
|
+
- **RTL layout issues**: Verify `dir` is derived from `isRtl(locale)` and that your CSS respects `[dir="rtl"]`.
|
|
616
|
+
- **SEO alternates missing**: Confirm `alternates.languages` includes all locales and `x-default`.
|
|
617
|
+
- **Bundles too large**: Split namespaces further and avoid importing entire `locales` trees on the client.
|
|
618
|
+
|
|
619
|
+
---
|
|
620
|
+
|
|
621
|
+
## 14) What’s next
|
|
622
|
+
|
|
623
|
+
- Add more locales and namespaces as features grow
|
|
624
|
+
- Localize error pages, emails, and API-driven content
|
|
625
|
+
- Extend Intlayer workflows to auto-open PRs for translation updates
|
|
626
|
+
|
|
627
|
+
If you prefer a starter, try the template: `https://github.com/aymericzip/intlayer-next-i18next-template`.
|