@intlayer/docs 8.7.6 → 8.7.8-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/i18n_using_next-i18next.md +1 -1
- package/blog/ar/i18n_using_next-intl.md +1 -1
- package/blog/ar/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/de/i18n_using_next-i18next.md +1 -1
- package/blog/de/i18n_using_next-intl.md +1 -1
- package/blog/de/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/en/i18n_using_next-i18next.md +1 -1
- package/blog/en/i18n_using_next-intl.md +1 -1
- package/blog/en/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/en-GB/i18n_using_next-i18next.md +1 -1
- package/blog/en-GB/i18n_using_next-intl.md +1 -1
- package/blog/en-GB/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/es/i18n_using_next-i18next.md +1 -1
- package/blog/es/i18n_using_next-intl.md +1 -1
- package/blog/es/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/fr/i18n_using_next-i18next.md +1 -1
- package/blog/fr/i18n_using_next-intl.md +1 -1
- package/blog/fr/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/hi/i18n_using_next-i18next.md +1 -1
- package/blog/hi/i18n_using_next-intl.md +1 -1
- package/blog/hi/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/id/i18n_using_next-i18next.md +1 -1
- package/blog/id/i18n_using_next-intl.md +1 -1
- package/blog/it/i18n_using_next-i18next.md +1 -1
- package/blog/it/i18n_using_next-intl.md +1 -1
- package/blog/it/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/ja/i18n_using_next-i18next.md +1 -1
- package/blog/ja/i18n_using_next-intl.md +1 -1
- package/blog/ko/i18n_using_next-i18next.md +1 -1
- package/blog/ko/i18n_using_next-intl.md +1 -1
- package/blog/pl/i18n_using_next-i18next.md +1 -1
- package/blog/pl/i18n_using_next-intl.md +1 -1
- package/blog/pt/i18n_using_next-i18next.md +1 -1
- package/blog/pt/i18n_using_next-intl.md +1 -1
- package/blog/pt/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/ru/i18n_using_next-i18next.md +1 -1
- package/blog/ru/i18n_using_next-intl.md +1 -1
- package/blog/ru/list_i18n_technologies/frameworks/react-native.md +0 -4
- package/blog/tr/i18n_using_next-i18next.md +1 -1
- package/blog/tr/i18n_using_next-intl.md +1 -1
- package/blog/uk/i18n_using_next-i18next.md +1 -1
- package/blog/uk/i18n_using_next-intl.md +1 -1
- package/blog/vi/i18n_using_next-i18next.md +1 -1
- package/blog/vi/i18n_using_next-intl.md +1 -1
- package/blog/zh/i18n_using_next-i18next.md +1 -1
- package/blog/zh/i18n_using_next-intl.md +1 -1
- package/dist/cjs/common.cjs.map +1 -1
- package/dist/cjs/generated/docs.entry.cjs +140 -0
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/esm/common.mjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +140 -0
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/types/common.d.ts +1 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +7 -0
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/docs/ar/dictionary/condition.md +2 -116
- package/docs/ar/dictionary/content_file.md +2 -202
- package/docs/ar/dictionary/enumeration.md +2 -116
- package/docs/ar/dictionary/file.md +3 -103
- package/docs/ar/dictionary/function_fetching.md +3 -105
- package/docs/ar/dictionary/gender.md +2 -140
- package/docs/ar/dictionary/insertion.md +3 -57
- package/docs/ar/dictionary/nesting.md +3 -121
- package/docs/ar/dictionary/translation.md +4 -146
- package/docs/ar/interest_of_intlayer.md +2 -59
- package/docs/ar/intlayer_CMS.md +3 -228
- package/docs/ar/intlayer_visual_editor.md +1 -72
- package/docs/ar/intlayer_with_adonisjs.md +3 -109
- package/docs/ar/intlayer_with_analog.md +21 -41
- package/docs/ar/intlayer_with_angular.md +15 -41
- package/docs/ar/intlayer_with_astro.md +187 -58
- package/docs/ar/intlayer_with_astro_lit.md +619 -0
- package/docs/ar/intlayer_with_astro_preact.md +568 -0
- package/docs/ar/intlayer_with_astro_react.md +566 -0
- package/docs/ar/intlayer_with_astro_solid.md +566 -0
- package/docs/ar/intlayer_with_astro_svelte.md +570 -0
- package/docs/ar/intlayer_with_astro_vanilla.md +547 -0
- package/docs/ar/intlayer_with_astro_vue.md +588 -0
- package/docs/ar/intlayer_with_create_react_app.md +8 -388
- package/docs/ar/intlayer_with_express.md +5 -177
- package/docs/ar/intlayer_with_fastify.md +5 -193
- package/docs/ar/intlayer_with_hono.md +2 -2
- package/docs/ar/intlayer_with_lynx+react.md +2 -116
- package/docs/ar/intlayer_with_nestjs.md +3 -33
- package/docs/ar/intlayer_with_nextjs_14.md +58 -491
- package/docs/ar/intlayer_with_nextjs_15.md +56 -815
- package/docs/ar/intlayer_with_nextjs_16.md +40 -883
- package/docs/ar/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/ar/intlayer_with_nextjs_no_locale_path.md +12 -506
- package/docs/ar/intlayer_with_nextjs_page_router.md +37 -652
- package/docs/ar/intlayer_with_nuxt.md +16 -98
- package/docs/ar/intlayer_with_react_native+expo.md +31 -283
- package/docs/ar/intlayer_with_react_router_v7.md +15 -91
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +15 -91
- package/docs/ar/intlayer_with_storybook.md +1 -37
- package/docs/ar/intlayer_with_svelte_kit.md +29 -71
- package/docs/ar/intlayer_with_tanstack+solid.md +14 -70
- package/docs/ar/intlayer_with_tanstack.md +14 -62
- package/docs/ar/intlayer_with_vanilla.md +28 -108
- package/docs/ar/intlayer_with_vite+lit.md +98 -156
- package/docs/ar/intlayer_with_vite+preact.md +101 -710
- package/docs/ar/intlayer_with_vite+react.md +113 -797
- package/docs/ar/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/ar/intlayer_with_vite+solid.md +79 -152
- package/docs/ar/intlayer_with_vite+svelte.md +104 -132
- package/docs/ar/intlayer_with_vite+vanilla.md +105 -155
- package/docs/ar/intlayer_with_vite+vue.md +92 -253
- package/docs/ar/introduction.md +2 -58
- package/docs/ar/packages/express-intlayer/t.md +6 -181
- package/docs/ar/packages/hono-intlayer/t.md +1 -45
- package/docs/ar/packages/intlayer/getConfiguration.md +2 -54
- package/docs/ar/packages/intlayer/getEnumeration.md +2 -60
- package/docs/ar/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/ar/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/ar/packages/intlayer/getLocaleName.md +1 -43
- package/docs/ar/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/ar/packages/intlayer/getMultilingualUrls.md +2 -60
- package/docs/ar/packages/intlayer/getPathWithoutLocale.md +1 -20
- package/docs/ar/packages/intlayer/getPrefix.md +1 -12
- package/docs/ar/packages/intlayer/getTranslation.md +3 -87
- package/docs/ar/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/ar/packages/next-intlayer/t.md +5 -137
- package/docs/ar/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/ar/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/ar/packages/next-intlayer/useLocale.md +1 -51
- package/docs/ar/packages/react-intlayer/t.md +4 -106
- package/docs/ar/packages/react-intlayer/useDictionary.md +3 -115
- package/docs/ar/packages/react-intlayer/useI18n.md +4 -107
- package/docs/ar/packages/react-intlayer/useIntlayer.md +3 -109
- package/docs/ar/packages/react-intlayer/useLocale.md +3 -103
- package/docs/ar/per_locale_file.md +3 -35
- package/docs/bn/intlayer_with_fastify.md +5 -193
- package/docs/bn/intlayer_with_hono.md +5 -158
- package/docs/bn/intlayer_with_storybook.md +1 -37
- package/docs/bn/intlayer_with_vanilla.md +28 -108
- package/docs/bn/intlayer_with_vite+lit.md +98 -119
- package/docs/bn/intlayer_with_vite+vanilla.md +105 -155
- package/docs/bn/introduction.md +2 -58
- package/docs/cs/intlayer_with_fastify.md +5 -193
- package/docs/cs/intlayer_with_hono.md +5 -158
- package/docs/cs/intlayer_with_storybook.md +1 -37
- package/docs/cs/intlayer_with_vanilla.md +28 -108
- package/docs/cs/intlayer_with_vite+lit.md +98 -156
- package/docs/cs/intlayer_with_vite+vanilla.md +105 -155
- package/docs/cs/introduction.md +2 -58
- package/docs/de/dictionary/condition.md +2 -116
- package/docs/de/dictionary/content_file.md +2 -201
- package/docs/de/dictionary/enumeration.md +2 -116
- package/docs/de/dictionary/file.md +3 -100
- package/docs/de/dictionary/function_fetching.md +3 -103
- package/docs/de/dictionary/gender.md +2 -181
- package/docs/de/dictionary/insertion.md +3 -57
- package/docs/de/dictionary/nesting.md +3 -123
- package/docs/de/dictionary/translation.md +4 -146
- package/docs/de/interest_of_intlayer.md +2 -59
- package/docs/de/intlayer_CMS.md +3 -226
- package/docs/de/intlayer_visual_editor.md +1 -72
- package/docs/de/intlayer_with_adonisjs.md +3 -108
- package/docs/de/intlayer_with_analog.md +21 -41
- package/docs/de/intlayer_with_angular.md +15 -41
- package/docs/de/intlayer_with_astro.md +181 -56
- package/docs/de/intlayer_with_astro_lit.md +615 -0
- package/docs/de/intlayer_with_astro_preact.md +564 -0
- package/docs/de/intlayer_with_astro_react.md +562 -0
- package/docs/de/intlayer_with_astro_solid.md +562 -0
- package/docs/de/intlayer_with_astro_svelte.md +566 -0
- package/docs/de/intlayer_with_astro_vanilla.md +543 -0
- package/docs/de/intlayer_with_astro_vue.md +584 -0
- package/docs/de/intlayer_with_create_react_app.md +33 -686
- package/docs/de/intlayer_with_express.md +5 -182
- package/docs/de/intlayer_with_fastify.md +5 -193
- package/docs/de/intlayer_with_hono.md +5 -158
- package/docs/de/intlayer_with_lynx+react.md +2 -75
- package/docs/de/intlayer_with_nestjs.md +3 -33
- package/docs/de/intlayer_with_nextjs_14.md +51 -573
- package/docs/de/intlayer_with_nextjs_15.md +61 -823
- package/docs/de/intlayer_with_nextjs_16.md +45 -870
- package/docs/de/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/de/intlayer_with_nextjs_no_locale_path.md +11 -499
- package/docs/de/intlayer_with_nextjs_page_router.md +36 -632
- package/docs/de/intlayer_with_nuxt.md +16 -98
- package/docs/de/intlayer_with_react_native+expo.md +31 -286
- package/docs/de/intlayer_with_react_router_v7.md +15 -91
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +14 -62
- package/docs/de/intlayer_with_storybook.md +1 -37
- package/docs/de/intlayer_with_svelte_kit.md +29 -71
- package/docs/de/intlayer_with_tanstack+solid.md +14 -70
- package/docs/de/intlayer_with_tanstack.md +14 -62
- package/docs/de/intlayer_with_vanilla.md +28 -108
- package/docs/de/intlayer_with_vite+lit.md +98 -162
- package/docs/de/intlayer_with_vite+preact.md +104 -713
- package/docs/de/intlayer_with_vite+react.md +105 -789
- package/docs/de/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/de/intlayer_with_vite+solid.md +79 -153
- package/docs/de/intlayer_with_vite+svelte.md +104 -132
- package/docs/de/intlayer_with_vite+vanilla.md +105 -155
- package/docs/de/intlayer_with_vite+vue.md +92 -285
- package/docs/de/introduction.md +2 -61
- package/docs/de/packages/express-intlayer/t.md +6 -182
- package/docs/de/packages/hono-intlayer/t.md +3 -95
- package/docs/de/packages/intlayer/getConfiguration.md +2 -54
- package/docs/de/packages/intlayer/getEnumeration.md +2 -60
- package/docs/de/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/de/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/de/packages/intlayer/getLocaleName.md +1 -43
- package/docs/de/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/de/packages/intlayer/getMultilingualUrls.md +2 -60
- package/docs/de/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/de/packages/intlayer/getPrefix.md +1 -15
- package/docs/de/packages/intlayer/getTranslation.md +3 -86
- package/docs/de/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/de/packages/next-intlayer/t.md +5 -137
- package/docs/de/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/de/packages/next-intlayer/useIntlayer.md +3 -120
- package/docs/de/packages/next-intlayer/useLocale.md +1 -51
- package/docs/de/packages/react-intlayer/t.md +4 -109
- package/docs/de/packages/react-intlayer/useDictionary.md +3 -127
- package/docs/de/packages/react-intlayer/useI18n.md +4 -107
- package/docs/de/packages/react-intlayer/useIntlayer.md +3 -114
- package/docs/de/packages/react-intlayer/useLocale.md +3 -103
- package/docs/de/per_locale_file.md +3 -35
- package/docs/en/benchmark/___NOTE.md +16 -0
- package/docs/en/dictionary/condition.md +2 -116
- package/docs/en/dictionary/content_file.md +2 -200
- package/docs/en/dictionary/enumeration.md +4 -202
- package/docs/en/dictionary/file.md +3 -100
- package/docs/en/dictionary/function_fetching.md +3 -103
- package/docs/en/dictionary/gender.md +2 -140
- package/docs/en/dictionary/insertion.md +3 -57
- package/docs/en/dictionary/nesting.md +3 -121
- package/docs/en/dictionary/translation.md +4 -146
- package/docs/en/interest_of_intlayer.md +2 -58
- package/docs/en/intlayer_CMS.md +3 -227
- package/docs/en/intlayer_visual_editor.md +1 -72
- package/docs/en/intlayer_with_adonisjs.md +3 -107
- package/docs/en/intlayer_with_analog.md +21 -41
- package/docs/en/intlayer_with_angular.md +15 -41
- package/docs/en/intlayer_with_astro.md +397 -38
- package/docs/en/intlayer_with_astro_lit.md +616 -0
- package/docs/en/intlayer_with_astro_preact.md +571 -0
- package/docs/en/intlayer_with_astro_react.md +564 -0
- package/docs/en/intlayer_with_astro_solid.md +564 -0
- package/docs/en/intlayer_with_astro_svelte.md +568 -0
- package/docs/en/intlayer_with_astro_vanilla.md +543 -0
- package/docs/en/intlayer_with_astro_vue.md +586 -0
- package/docs/en/intlayer_with_create_react_app.md +34 -686
- package/docs/en/intlayer_with_express.md +5 -179
- package/docs/en/intlayer_with_fastify.md +5 -193
- package/docs/en/intlayer_with_hono.md +5 -158
- package/docs/en/intlayer_with_lynx+react.md +3 -109
- package/docs/en/intlayer_with_nestjs.md +3 -31
- package/docs/en/intlayer_with_nextjs_14.md +47 -777
- package/docs/en/intlayer_with_nextjs_15.md +39 -822
- package/docs/en/intlayer_with_nextjs_16.md +40 -891
- package/docs/en/intlayer_with_nextjs_compiler.md +2 -70
- package/docs/en/intlayer_with_nextjs_no_locale_path.md +11 -488
- package/docs/en/intlayer_with_nextjs_page_router.md +102 -713
- package/docs/en/intlayer_with_nuxt.md +16 -98
- package/docs/en/intlayer_with_react_native+expo.md +31 -291
- package/docs/en/intlayer_with_react_router_v7.md +15 -107
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +15 -99
- package/docs/en/intlayer_with_storybook.md +1 -37
- package/docs/en/intlayer_with_svelte_kit.md +28 -78
- package/docs/en/intlayer_with_tanstack+solid.md +14 -70
- package/docs/en/intlayer_with_tanstack.md +14 -70
- package/docs/en/intlayer_with_vanilla.md +28 -108
- package/docs/en/intlayer_with_vite+lit.md +98 -162
- package/docs/en/intlayer_with_vite+preact.md +100 -717
- package/docs/en/intlayer_with_vite+react.md +104 -796
- package/docs/en/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/en/intlayer_with_vite+solid.md +79 -211
- package/docs/en/intlayer_with_vite+svelte.md +104 -138
- package/docs/en/intlayer_with_vite+vanilla.md +105 -155
- package/docs/en/intlayer_with_vite+vue.md +92 -244
- package/docs/en/introduction.md +2 -58
- package/docs/en/packages/express-intlayer/t.md +6 -181
- package/docs/en/packages/hono-intlayer/t.md +3 -95
- package/docs/en/packages/intlayer/getConfiguration.md +2 -54
- package/docs/en/packages/intlayer/getEnumeration.md +2 -60
- package/docs/en/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/en/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/en/packages/intlayer/getLocaleName.md +1 -43
- package/docs/en/packages/intlayer/getLocalizedUrl.md +3 -71
- package/docs/en/packages/intlayer/getMultilingualUrls.md +3 -79
- package/docs/en/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/en/packages/intlayer/getPrefix.md +1 -15
- package/docs/en/packages/intlayer/getTranslation.md +3 -87
- package/docs/en/packages/next-intlayer/t.md +5 -137
- package/docs/en/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/en/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/en/packages/next-intlayer/useLocale.md +1 -51
- package/docs/en/packages/react-intlayer/t.md +4 -109
- package/docs/en/packages/react-intlayer/useI18n.md +4 -107
- package/docs/en/packages/react-intlayer/useLocale.md +3 -103
- package/docs/en/per_locale_file.md +3 -33
- package/docs/en-GB/dictionary/condition.md +2 -116
- package/docs/en-GB/dictionary/content_file.md +2 -213
- package/docs/en-GB/dictionary/enumeration.md +2 -116
- package/docs/en-GB/dictionary/file.md +3 -100
- package/docs/en-GB/dictionary/function_fetching.md +3 -103
- package/docs/en-GB/dictionary/gender.md +2 -140
- package/docs/en-GB/dictionary/insertion.md +3 -81
- package/docs/en-GB/dictionary/nesting.md +3 -121
- package/docs/en-GB/dictionary/translation.md +4 -146
- package/docs/en-GB/interest_of_intlayer.md +2 -58
- package/docs/en-GB/intlayer_CMS.md +3 -223
- package/docs/en-GB/intlayer_visual_editor.md +1 -72
- package/docs/en-GB/intlayer_with_adonisjs.md +3 -109
- package/docs/en-GB/intlayer_with_analog.md +21 -41
- package/docs/en-GB/intlayer_with_angular.md +15 -41
- package/docs/en-GB/intlayer_with_astro.md +183 -53
- package/docs/en-GB/intlayer_with_astro_lit.md +619 -0
- package/docs/en-GB/intlayer_with_astro_preact.md +568 -0
- package/docs/en-GB/intlayer_with_astro_react.md +566 -0
- package/docs/en-GB/intlayer_with_astro_solid.md +566 -0
- package/docs/en-GB/intlayer_with_astro_svelte.md +570 -0
- package/docs/en-GB/intlayer_with_astro_vanilla.md +547 -0
- package/docs/en-GB/intlayer_with_astro_vue.md +588 -0
- package/docs/en-GB/intlayer_with_create_react_app.md +33 -707
- package/docs/en-GB/intlayer_with_express.md +5 -182
- package/docs/en-GB/intlayer_with_fastify.md +5 -193
- package/docs/en-GB/intlayer_with_hono.md +5 -158
- package/docs/en-GB/intlayer_with_lynx+react.md +2 -116
- package/docs/en-GB/intlayer_with_nestjs.md +3 -31
- package/docs/en-GB/intlayer_with_nextjs_14.md +77 -773
- package/docs/en-GB/intlayer_with_nextjs_15.md +59 -839
- package/docs/en-GB/intlayer_with_nextjs_16.md +39 -822
- package/docs/en-GB/intlayer_with_nextjs_compiler.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_no_locale_path.md +11 -500
- package/docs/en-GB/intlayer_with_nextjs_page_router.md +38 -634
- package/docs/en-GB/intlayer_with_nuxt.md +16 -103
- package/docs/en-GB/intlayer_with_react_native+expo.md +31 -284
- package/docs/en-GB/intlayer_with_react_router_v7.md +14 -30
- package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +14 -30
- package/docs/en-GB/intlayer_with_storybook.md +1 -37
- package/docs/en-GB/intlayer_with_svelte_kit.md +28 -10
- package/docs/en-GB/intlayer_with_tanstack+solid.md +14 -70
- package/docs/en-GB/intlayer_with_tanstack.md +13 -1
- package/docs/en-GB/intlayer_with_vanilla.md +28 -108
- package/docs/en-GB/intlayer_with_vite+lit.md +98 -162
- package/docs/en-GB/intlayer_with_vite+preact.md +98 -647
- package/docs/en-GB/intlayer_with_vite+react.md +99 -906
- package/docs/en-GB/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/en-GB/intlayer_with_vite+solid.md +78 -88
- package/docs/en-GB/intlayer_with_vite+svelte.md +103 -71
- package/docs/en-GB/intlayer_with_vite+vanilla.md +105 -155
- package/docs/en-GB/intlayer_with_vite+vue.md +91 -195
- package/docs/en-GB/introduction.md +2 -58
- package/docs/en-GB/packages/express-intlayer/t.md +6 -181
- package/docs/en-GB/packages/hono-intlayer/t.md +3 -95
- package/docs/en-GB/packages/intlayer/getConfiguration.md +2 -54
- package/docs/en-GB/packages/intlayer/getEnumeration.md +2 -60
- package/docs/en-GB/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/en-GB/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/en-GB/packages/intlayer/getLocaleName.md +1 -43
- package/docs/en-GB/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/en-GB/packages/intlayer/getMultilingualUrls.md +2 -62
- package/docs/en-GB/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/en-GB/packages/intlayer/getPrefix.md +1 -15
- package/docs/en-GB/packages/intlayer/getTranslation.md +4 -107
- package/docs/en-GB/packages/intlayer/getTranslationContent.md +3 -98
- package/docs/en-GB/packages/next-intlayer/t.md +5 -141
- package/docs/en-GB/packages/next-intlayer/useDictionary.md +3 -124
- package/docs/en-GB/packages/next-intlayer/useIntlayer.md +3 -119
- package/docs/en-GB/packages/next-intlayer/useLocale.md +1 -51
- package/docs/en-GB/packages/react-intlayer/t.md +4 -110
- package/docs/en-GB/packages/react-intlayer/useDictionary.md +3 -117
- package/docs/en-GB/packages/react-intlayer/useI18n.md +3 -106
- package/docs/en-GB/packages/react-intlayer/useIntlayer.md +3 -114
- package/docs/en-GB/packages/react-intlayer/useLocale.md +3 -102
- package/docs/en-GB/per_locale_file.md +3 -33
- package/docs/es/dictionary/condition.md +2 -116
- package/docs/es/dictionary/content_file.md +2 -233
- package/docs/es/dictionary/enumeration.md +2 -116
- package/docs/es/dictionary/file.md +3 -100
- package/docs/es/dictionary/function_fetching.md +3 -103
- package/docs/es/dictionary/gender.md +2 -140
- package/docs/es/dictionary/insertion.md +3 -57
- package/docs/es/dictionary/nesting.md +3 -121
- package/docs/es/dictionary/translation.md +4 -146
- package/docs/es/interest_of_intlayer.md +2 -58
- package/docs/es/intlayer_CMS.md +3 -227
- package/docs/es/intlayer_visual_editor.md +1 -72
- package/docs/es/intlayer_with_adonisjs.md +3 -107
- package/docs/es/intlayer_with_analog.md +21 -41
- package/docs/es/intlayer_with_angular.md +15 -41
- package/docs/es/intlayer_with_astro.md +178 -52
- package/docs/es/intlayer_with_astro_lit.md +612 -0
- package/docs/es/intlayer_with_astro_preact.md +562 -0
- package/docs/es/intlayer_with_astro_react.md +560 -0
- package/docs/es/intlayer_with_astro_solid.md +560 -0
- package/docs/es/intlayer_with_astro_svelte.md +564 -0
- package/docs/es/intlayer_with_astro_vanilla.md +539 -0
- package/docs/es/intlayer_with_astro_vue.md +582 -0
- package/docs/es/intlayer_with_create_react_app.md +33 -649
- package/docs/es/intlayer_with_express.md +5 -179
- package/docs/es/intlayer_with_fastify.md +5 -193
- package/docs/es/intlayer_with_hono.md +5 -158
- package/docs/es/intlayer_with_lynx+react.md +2 -108
- package/docs/es/intlayer_with_nestjs.md +3 -31
- package/docs/es/intlayer_with_nextjs_14.md +53 -678
- package/docs/es/intlayer_with_nextjs_15.md +56 -812
- package/docs/es/intlayer_with_nextjs_16.md +40 -890
- package/docs/es/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/es/intlayer_with_nextjs_no_locale_path.md +11 -486
- package/docs/es/intlayer_with_nextjs_page_router.md +37 -648
- package/docs/es/intlayer_with_nuxt.md +16 -98
- package/docs/es/intlayer_with_react_native+expo.md +31 -284
- package/docs/es/intlayer_with_react_router_v7.md +15 -92
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +15 -92
- package/docs/es/intlayer_with_storybook.md +1 -37
- package/docs/es/intlayer_with_svelte_kit.md +29 -71
- package/docs/es/intlayer_with_tanstack+solid.md +14 -70
- package/docs/es/intlayer_with_tanstack.md +14 -62
- package/docs/es/intlayer_with_vanilla.md +28 -108
- package/docs/es/intlayer_with_vite+lit.md +98 -162
- package/docs/es/intlayer_with_vite+preact.md +100 -709
- package/docs/es/intlayer_with_vite+react.md +105 -789
- package/docs/es/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/es/intlayer_with_vite+solid.md +79 -152
- package/docs/es/intlayer_with_vite+svelte.md +104 -132
- package/docs/es/intlayer_with_vite+vanilla.md +105 -155
- package/docs/es/intlayer_with_vite+vue.md +92 -255
- package/docs/es/introduction.md +2 -60
- package/docs/es/packages/express-intlayer/t.md +6 -183
- package/docs/es/packages/hono-intlayer/t.md +3 -95
- package/docs/es/packages/intlayer/getConfiguration.md +2 -54
- package/docs/es/packages/intlayer/getEnumeration.md +2 -60
- package/docs/es/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/es/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/es/packages/intlayer/getLocaleName.md +1 -43
- package/docs/es/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/es/packages/intlayer/getMultilingualUrls.md +2 -62
- package/docs/es/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/es/packages/intlayer/getPrefix.md +1 -15
- package/docs/es/packages/intlayer/getTranslation.md +3 -87
- package/docs/es/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/es/packages/next-intlayer/index.md +2 -60
- package/docs/es/packages/next-intlayer/t.md +5 -137
- package/docs/es/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/es/packages/next-intlayer/useIntlayer.md +3 -119
- package/docs/es/packages/next-intlayer/useLocale.md +1 -51
- package/docs/es/packages/react-intlayer/index.md +2 -60
- package/docs/es/packages/react-intlayer/t.md +4 -110
- package/docs/es/packages/react-intlayer/useDictionary.md +3 -113
- package/docs/es/packages/react-intlayer/useI18n.md +4 -107
- package/docs/es/packages/react-intlayer/useIntlayer.md +3 -110
- package/docs/es/packages/react-intlayer/useLocale.md +3 -103
- package/docs/es/per_locale_file.md +3 -34
- package/docs/fr/dictionary/condition.md +2 -116
- package/docs/fr/dictionary/content_file.md +2 -200
- package/docs/fr/dictionary/enumeration.md +2 -116
- package/docs/fr/dictionary/file.md +3 -100
- package/docs/fr/dictionary/function_fetching.md +3 -103
- package/docs/fr/dictionary/gender.md +2 -141
- package/docs/fr/dictionary/insertion.md +3 -57
- package/docs/fr/dictionary/nesting.md +3 -121
- package/docs/fr/dictionary/translation.md +4 -146
- package/docs/fr/interest_of_intlayer.md +2 -59
- package/docs/fr/intlayer_CMS.md +3 -227
- package/docs/fr/intlayer_visual_editor.md +1 -72
- package/docs/fr/intlayer_with_adonisjs.md +3 -107
- package/docs/fr/intlayer_with_analog.md +21 -41
- package/docs/fr/intlayer_with_angular.md +15 -41
- package/docs/fr/intlayer_with_astro.md +175 -49
- package/docs/fr/intlayer_with_astro_lit.md +612 -0
- package/docs/fr/intlayer_with_astro_preact.md +567 -0
- package/docs/fr/intlayer_with_astro_react.md +560 -0
- package/docs/fr/intlayer_with_astro_solid.md +560 -0
- package/docs/fr/intlayer_with_astro_svelte.md +564 -0
- package/docs/fr/intlayer_with_astro_vanilla.md +539 -0
- package/docs/fr/intlayer_with_astro_vue.md +582 -0
- package/docs/fr/intlayer_with_create_react_app.md +9 -645
- package/docs/fr/intlayer_with_express.md +4 -110
- package/docs/fr/intlayer_with_fastify.md +5 -193
- package/docs/fr/intlayer_with_hono.md +5 -158
- package/docs/fr/intlayer_with_lynx+react.md +2 -108
- package/docs/fr/intlayer_with_nestjs.md +3 -31
- package/docs/fr/intlayer_with_nextjs_14.md +51 -573
- package/docs/fr/intlayer_with_nextjs_15.md +64 -842
- package/docs/fr/intlayer_with_nextjs_16.md +44 -867
- package/docs/fr/intlayer_with_nextjs_compiler.md +2 -64
- package/docs/fr/intlayer_with_nextjs_no_locale_path.md +11 -522
- package/docs/fr/intlayer_with_nextjs_page_router.md +37 -647
- package/docs/fr/intlayer_with_nuxt.md +16 -99
- package/docs/fr/intlayer_with_react_native+expo.md +31 -284
- package/docs/fr/intlayer_with_react_router_v7.md +15 -94
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +15 -94
- package/docs/fr/intlayer_with_storybook.md +1 -37
- package/docs/fr/intlayer_with_svelte_kit.md +29 -71
- package/docs/fr/intlayer_with_tanstack+solid.md +14 -70
- package/docs/fr/intlayer_with_tanstack.md +14 -62
- package/docs/fr/intlayer_with_vanilla.md +28 -108
- package/docs/fr/intlayer_with_vite+lit.md +98 -162
- package/docs/fr/intlayer_with_vite+preact.md +100 -709
- package/docs/fr/intlayer_with_vite+react.md +104 -788
- package/docs/fr/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/fr/intlayer_with_vite+solid.md +79 -152
- package/docs/fr/intlayer_with_vite+svelte.md +104 -132
- package/docs/fr/intlayer_with_vite+vanilla.md +105 -155
- package/docs/fr/intlayer_with_vite+vue.md +92 -251
- package/docs/fr/introduction.md +2 -60
- package/docs/fr/packages/express-intlayer/t.md +6 -184
- package/docs/fr/packages/hono-intlayer/t.md +3 -95
- package/docs/fr/packages/intlayer/getConfiguration.md +2 -54
- package/docs/fr/packages/intlayer/getEnumeration.md +2 -60
- package/docs/fr/packages/intlayer/getHTMLTextDir.md +2 -39
- package/docs/fr/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/fr/packages/intlayer/getLocaleName.md +1 -43
- package/docs/fr/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/fr/packages/intlayer/getMultilingualUrls.md +2 -60
- package/docs/fr/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/fr/packages/intlayer/getPrefix.md +1 -15
- package/docs/fr/packages/intlayer/getTranslation.md +3 -87
- package/docs/fr/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/fr/packages/next-intlayer/t.md +5 -137
- package/docs/fr/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/fr/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/fr/packages/next-intlayer/useLocale.md +1 -51
- package/docs/fr/packages/react-intlayer/index.md +2 -60
- package/docs/fr/packages/react-intlayer/t.md +4 -109
- package/docs/fr/packages/react-intlayer/useDictionary.md +3 -114
- package/docs/fr/packages/react-intlayer/useI18n.md +4 -107
- package/docs/fr/packages/react-intlayer/useIntlayer.md +3 -109
- package/docs/fr/packages/react-intlayer/useLocale.md +3 -103
- package/docs/fr/per_locale_file.md +3 -35
- package/docs/hi/dictionary/condition.md +2 -116
- package/docs/hi/dictionary/content_file.md +2 -201
- package/docs/hi/dictionary/enumeration.md +2 -116
- package/docs/hi/dictionary/file.md +3 -100
- package/docs/hi/dictionary/function_fetching.md +3 -103
- package/docs/hi/dictionary/gender.md +2 -141
- package/docs/hi/dictionary/insertion.md +3 -57
- package/docs/hi/dictionary/nesting.md +3 -121
- package/docs/hi/dictionary/translation.md +4 -149
- package/docs/hi/interest_of_intlayer.md +2 -58
- package/docs/hi/intlayer_CMS.md +3 -227
- package/docs/hi/intlayer_visual_editor.md +1 -72
- package/docs/hi/intlayer_with_adonisjs.md +3 -109
- package/docs/hi/intlayer_with_analog.md +21 -41
- package/docs/hi/intlayer_with_angular.md +15 -41
- package/docs/hi/intlayer_with_astro.md +183 -57
- package/docs/hi/intlayer_with_astro_lit.md +615 -0
- package/docs/hi/intlayer_with_astro_preact.md +564 -0
- package/docs/hi/intlayer_with_astro_react.md +562 -0
- package/docs/hi/intlayer_with_astro_solid.md +562 -0
- package/docs/hi/intlayer_with_astro_svelte.md +566 -0
- package/docs/hi/intlayer_with_astro_vanilla.md +543 -0
- package/docs/hi/intlayer_with_astro_vue.md +584 -0
- package/docs/hi/intlayer_with_create_react_app.md +8 -444
- package/docs/hi/intlayer_with_express.md +6 -195
- package/docs/hi/intlayer_with_fastify.md +5 -193
- package/docs/hi/intlayer_with_hono.md +2 -2
- package/docs/hi/intlayer_with_lynx+react.md +2 -116
- package/docs/hi/intlayer_with_nestjs.md +3 -31
- package/docs/hi/intlayer_with_nextjs_14.md +60 -512
- package/docs/hi/intlayer_with_nextjs_15.md +60 -822
- package/docs/hi/intlayer_with_nextjs_16.md +40 -883
- package/docs/hi/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/hi/intlayer_with_nextjs_no_locale_path.md +11 -498
- package/docs/hi/intlayer_with_nextjs_page_router.md +37 -648
- package/docs/hi/intlayer_with_nuxt.md +16 -101
- package/docs/hi/intlayer_with_react_native+expo.md +31 -284
- package/docs/hi/intlayer_with_react_router_v7.md +15 -91
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +15 -91
- package/docs/hi/intlayer_with_storybook.md +1 -37
- package/docs/hi/intlayer_with_svelte_kit.md +29 -71
- package/docs/hi/intlayer_with_tanstack+solid.md +14 -70
- package/docs/hi/intlayer_with_tanstack.md +14 -62
- package/docs/hi/intlayer_with_vanilla.md +28 -108
- package/docs/hi/intlayer_with_vite+lit.md +98 -156
- package/docs/hi/intlayer_with_vite+preact.md +98 -619
- package/docs/hi/intlayer_with_vite+react.md +123 -816
- package/docs/hi/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/hi/intlayer_with_vite+solid.md +79 -151
- package/docs/hi/intlayer_with_vite+svelte.md +104 -132
- package/docs/hi/intlayer_with_vite+vanilla.md +105 -87
- package/docs/hi/intlayer_with_vite+vue.md +92 -250
- package/docs/hi/introduction.md +2 -62
- package/docs/hi/packages/express-intlayer/t.md +6 -181
- package/docs/hi/packages/hono-intlayer/t.md +1 -45
- package/docs/hi/packages/intlayer/getConfiguration.md +2 -54
- package/docs/hi/packages/intlayer/getEnumeration.md +2 -60
- package/docs/hi/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/hi/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/hi/packages/intlayer/getLocaleName.md +1 -43
- package/docs/hi/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/hi/packages/intlayer/getMultilingualUrls.md +2 -62
- package/docs/hi/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/hi/packages/intlayer/getPrefix.md +1 -19
- package/docs/hi/packages/intlayer/getTranslation.md +3 -87
- package/docs/hi/packages/intlayer/getTranslationContent.md +3 -86
- package/docs/hi/packages/intlayer/index.md +4 -129
- package/docs/hi/packages/next-intlayer/t.md +5 -138
- package/docs/hi/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/hi/packages/next-intlayer/useIntlayer.md +3 -120
- package/docs/hi/packages/next-intlayer/useLocale.md +1 -51
- package/docs/hi/packages/react-intlayer/t.md +4 -106
- package/docs/hi/packages/react-intlayer/useDictionary.md +3 -115
- package/docs/hi/packages/react-intlayer/useI18n.md +3 -111
- package/docs/hi/packages/react-intlayer/useIntlayer.md +3 -113
- package/docs/hi/packages/react-intlayer/useLocale.md +3 -103
- package/docs/hi/per_locale_file.md +3 -34
- package/docs/id/dictionary/condition.md +2 -110
- package/docs/id/dictionary/content_file.md +2 -200
- package/docs/id/dictionary/enumeration.md +2 -116
- package/docs/id/dictionary/file.md +3 -105
- package/docs/id/dictionary/function_fetching.md +3 -103
- package/docs/id/dictionary/gender.md +2 -140
- package/docs/id/dictionary/insertion.md +3 -57
- package/docs/id/dictionary/nesting.md +3 -121
- package/docs/id/dictionary/translation.md +4 -147
- package/docs/id/interest_of_intlayer.md +2 -58
- package/docs/id/intlayer_CMS.md +3 -227
- package/docs/id/intlayer_visual_editor.md +1 -72
- package/docs/id/intlayer_with_adonisjs.md +3 -109
- package/docs/id/intlayer_with_analog.md +21 -41
- package/docs/id/intlayer_with_angular.md +15 -41
- package/docs/id/intlayer_with_astro.md +182 -64
- package/docs/id/intlayer_with_astro_lit.md +615 -0
- package/docs/id/intlayer_with_astro_preact.md +564 -0
- package/docs/id/intlayer_with_astro_react.md +562 -0
- package/docs/id/intlayer_with_astro_solid.md +562 -0
- package/docs/id/intlayer_with_astro_svelte.md +566 -0
- package/docs/id/intlayer_with_astro_vanilla.md +543 -0
- package/docs/id/intlayer_with_astro_vue.md +584 -0
- package/docs/id/intlayer_with_create_react_app.md +39 -694
- package/docs/id/intlayer_with_express.md +5 -181
- package/docs/id/intlayer_with_fastify.md +5 -193
- package/docs/id/intlayer_with_hono.md +2 -2
- package/docs/id/intlayer_with_lynx+react.md +3 -109
- package/docs/id/intlayer_with_nestjs.md +3 -31
- package/docs/id/intlayer_with_nextjs_14.md +59 -796
- package/docs/id/intlayer_with_nextjs_15.md +37 -815
- package/docs/id/intlayer_with_nextjs_16.md +41 -884
- package/docs/id/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/id/intlayer_with_nextjs_no_locale_path.md +11 -501
- package/docs/id/intlayer_with_nextjs_page_router.md +102 -713
- package/docs/id/intlayer_with_nuxt.md +16 -99
- package/docs/id/intlayer_with_react_native+expo.md +31 -291
- package/docs/id/intlayer_with_react_router_v7.md +15 -99
- package/docs/id/intlayer_with_react_router_v7_fs_routes.md +15 -99
- package/docs/id/intlayer_with_storybook.md +1 -37
- package/docs/id/intlayer_with_svelte_kit.md +29 -71
- package/docs/id/intlayer_with_tanstack+solid.md +14 -70
- package/docs/id/intlayer_with_tanstack.md +14 -62
- package/docs/id/intlayer_with_vanilla.md +28 -108
- package/docs/id/intlayer_with_vite+lit.md +98 -156
- package/docs/id/intlayer_with_vite+preact.md +103 -712
- package/docs/id/intlayer_with_vite+react.md +115 -803
- package/docs/id/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/id/intlayer_with_vite+solid.md +79 -150
- package/docs/id/intlayer_with_vite+svelte.md +104 -132
- package/docs/id/intlayer_with_vite+vanilla.md +105 -155
- package/docs/id/intlayer_with_vite+vue.md +92 -258
- package/docs/id/introduction.md +2 -60
- package/docs/id/packages/express-intlayer/t.md +6 -181
- package/docs/id/packages/hono-intlayer/t.md +1 -45
- package/docs/id/packages/intlayer/getConfiguration.md +2 -54
- package/docs/id/packages/intlayer/getEnumeration.md +2 -60
- package/docs/id/packages/intlayer/getHTMLTextDir.md +2 -39
- package/docs/id/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/id/packages/intlayer/getLocaleName.md +1 -44
- package/docs/id/packages/intlayer/getLocalizedUrl.md +2 -59
- package/docs/id/packages/intlayer/getMultilingualUrls.md +2 -64
- package/docs/id/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/id/packages/intlayer/getPrefix.md +1 -12
- package/docs/id/packages/intlayer/getTranslation.md +3 -87
- package/docs/id/packages/intlayer/getTranslationContent.md +3 -86
- package/docs/id/packages/next-intlayer/t.md +5 -137
- package/docs/id/packages/next-intlayer/useDictionary.md +3 -121
- package/docs/id/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/id/packages/next-intlayer/useLocale.md +1 -51
- package/docs/id/packages/react-intlayer/t.md +4 -109
- package/docs/id/packages/react-intlayer/useDictionary.md +3 -113
- package/docs/id/packages/react-intlayer/useI18n.md +4 -123
- package/docs/id/packages/react-intlayer/useIntlayer.md +3 -109
- package/docs/id/packages/react-intlayer/useLocale.md +3 -103
- package/docs/id/per_locale_file.md +3 -35
- package/docs/it/dictionary/condition.md +2 -116
- package/docs/it/dictionary/content_file.md +2 -201
- package/docs/it/dictionary/enumeration.md +2 -116
- package/docs/it/dictionary/file.md +3 -100
- package/docs/it/dictionary/function_fetching.md +3 -103
- package/docs/it/dictionary/gender.md +2 -140
- package/docs/it/dictionary/insertion.md +3 -57
- package/docs/it/dictionary/nesting.md +3 -121
- package/docs/it/dictionary/translation.md +4 -146
- package/docs/it/interest_of_intlayer.md +2 -59
- package/docs/it/intlayer_CMS.md +3 -227
- package/docs/it/intlayer_visual_editor.md +1 -72
- package/docs/it/intlayer_with_adonisjs.md +3 -109
- package/docs/it/intlayer_with_analog.md +21 -41
- package/docs/it/intlayer_with_angular.md +15 -41
- package/docs/it/intlayer_with_astro.md +187 -61
- package/docs/it/intlayer_with_astro_lit.md +615 -0
- package/docs/it/intlayer_with_astro_preact.md +564 -0
- package/docs/it/intlayer_with_astro_react.md +562 -0
- package/docs/it/intlayer_with_astro_solid.md +562 -0
- package/docs/it/intlayer_with_astro_svelte.md +566 -0
- package/docs/it/intlayer_with_astro_vanilla.md +543 -0
- package/docs/it/intlayer_with_astro_vue.md +584 -0
- package/docs/it/intlayer_with_create_react_app.md +9 -551
- package/docs/it/intlayer_with_express.md +5 -182
- package/docs/it/intlayer_with_fastify.md +5 -193
- package/docs/it/intlayer_with_hono.md +2 -2
- package/docs/it/intlayer_with_lynx+react.md +2 -116
- package/docs/it/intlayer_with_nestjs.md +3 -31
- package/docs/it/intlayer_with_nextjs_14.md +51 -575
- package/docs/it/intlayer_with_nextjs_15.md +55 -813
- package/docs/it/intlayer_with_nextjs_16.md +40 -883
- package/docs/it/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/it/intlayer_with_nextjs_no_locale_path.md +11 -498
- package/docs/it/intlayer_with_nextjs_page_router.md +37 -650
- package/docs/it/intlayer_with_nuxt.md +16 -101
- package/docs/it/intlayer_with_react_native+expo.md +31 -286
- package/docs/it/intlayer_with_react_router_v7.md +15 -93
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +15 -93
- package/docs/it/intlayer_with_storybook.md +1 -37
- package/docs/it/intlayer_with_svelte_kit.md +29 -71
- package/docs/it/intlayer_with_tanstack+solid.md +14 -70
- package/docs/it/intlayer_with_tanstack.md +14 -62
- package/docs/it/intlayer_with_vanilla.md +28 -108
- package/docs/it/intlayer_with_vite+lit.md +98 -162
- package/docs/it/intlayer_with_vite+preact.md +102 -711
- package/docs/it/intlayer_with_vite+react.md +112 -797
- package/docs/it/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/it/intlayer_with_vite+solid.md +79 -151
- package/docs/it/intlayer_with_vite+svelte.md +104 -132
- package/docs/it/intlayer_with_vite+vanilla.md +105 -155
- package/docs/it/intlayer_with_vite+vue.md +80 -281
- package/docs/it/introduction.md +2 -60
- package/docs/it/packages/express-intlayer/t.md +6 -181
- package/docs/it/packages/hono-intlayer/t.md +1 -45
- package/docs/it/packages/intlayer/getConfiguration.md +2 -54
- package/docs/it/packages/intlayer/getEnumeration.md +2 -60
- package/docs/it/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/it/packages/intlayer/getLocaleLang.md +1 -20
- package/docs/it/packages/intlayer/getLocaleName.md +1 -43
- package/docs/it/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/it/packages/intlayer/getMultilingualUrls.md +2 -62
- package/docs/it/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/it/packages/intlayer/getPrefix.md +1 -12
- package/docs/it/packages/intlayer/getTranslation.md +3 -86
- package/docs/it/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/it/packages/next-intlayer/t.md +5 -141
- package/docs/it/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/it/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/it/packages/next-intlayer/useLocale.md +1 -51
- package/docs/it/packages/react-intlayer/t.md +4 -109
- package/docs/it/packages/react-intlayer/useDictionary.md +3 -115
- package/docs/it/packages/react-intlayer/useI18n.md +4 -107
- package/docs/it/packages/react-intlayer/useIntlayer.md +3 -109
- package/docs/it/packages/react-intlayer/useLocale.md +3 -103
- package/docs/it/per_locale_file.md +3 -35
- package/docs/ja/dictionary/condition.md +2 -116
- package/docs/ja/dictionary/content_file.md +2 -204
- package/docs/ja/dictionary/enumeration.md +2 -116
- package/docs/ja/dictionary/file.md +3 -100
- package/docs/ja/dictionary/function_fetching.md +3 -103
- package/docs/ja/dictionary/gender.md +2 -140
- package/docs/ja/dictionary/insertion.md +3 -57
- package/docs/ja/dictionary/nesting.md +3 -121
- package/docs/ja/dictionary/translation.md +6 -160
- package/docs/ja/interest_of_intlayer.md +2 -58
- package/docs/ja/intlayer_CMS.md +3 -227
- package/docs/ja/intlayer_visual_editor.md +1 -75
- package/docs/ja/intlayer_with_adonisjs.md +3 -109
- package/docs/ja/intlayer_with_analog.md +21 -41
- package/docs/ja/intlayer_with_angular.md +15 -41
- package/docs/ja/intlayer_with_astro.md +184 -53
- package/docs/ja/intlayer_with_astro_lit.md +618 -0
- package/docs/ja/intlayer_with_astro_preact.md +572 -0
- package/docs/ja/intlayer_with_astro_react.md +565 -0
- package/docs/ja/intlayer_with_astro_solid.md +565 -0
- package/docs/ja/intlayer_with_astro_svelte.md +569 -0
- package/docs/ja/intlayer_with_astro_vanilla.md +546 -0
- package/docs/ja/intlayer_with_astro_vue.md +587 -0
- package/docs/ja/intlayer_with_create_react_app.md +7 -387
- package/docs/ja/intlayer_with_express.md +5 -182
- package/docs/ja/intlayer_with_fastify.md +5 -193
- package/docs/ja/intlayer_with_hono.md +2 -2
- package/docs/ja/intlayer_with_lynx+react.md +2 -116
- package/docs/ja/intlayer_with_nestjs.md +3 -31
- package/docs/ja/intlayer_with_nextjs_14.md +54 -682
- package/docs/ja/intlayer_with_nextjs_15.md +56 -836
- package/docs/ja/intlayer_with_nextjs_16.md +40 -883
- package/docs/ja/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/ja/intlayer_with_nextjs_no_locale_path.md +12 -551
- package/docs/ja/intlayer_with_nextjs_page_router.md +73 -745
- package/docs/ja/intlayer_with_nuxt.md +16 -99
- package/docs/ja/intlayer_with_react_native+expo.md +31 -287
- package/docs/ja/intlayer_with_react_router_v7.md +32 -61
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +15 -91
- package/docs/ja/intlayer_with_storybook.md +1 -37
- package/docs/ja/intlayer_with_svelte_kit.md +27 -69
- package/docs/ja/intlayer_with_tanstack+solid.md +14 -70
- package/docs/ja/intlayer_with_tanstack.md +13 -1
- package/docs/ja/intlayer_with_vanilla.md +28 -108
- package/docs/ja/intlayer_with_vite+lit.md +98 -162
- package/docs/ja/intlayer_with_vite+preact.md +88 -62
- package/docs/ja/intlayer_with_vite+react.md +88 -62
- package/docs/ja/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/ja/intlayer_with_vite+solid.md +80 -161
- package/docs/ja/intlayer_with_vite+svelte.md +104 -132
- package/docs/ja/intlayer_with_vite+vanilla.md +105 -155
- package/docs/ja/intlayer_with_vite+vue.md +92 -264
- package/docs/ja/introduction.md +2 -59
- package/docs/ja/packages/express-intlayer/t.md +6 -188
- package/docs/ja/packages/hono-intlayer/t.md +1 -45
- package/docs/ja/packages/intlayer/getConfiguration.md +2 -54
- package/docs/ja/packages/intlayer/getEnumeration.md +2 -60
- package/docs/ja/packages/intlayer/getHTMLTextDir.md +2 -39
- package/docs/ja/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/ja/packages/intlayer/getLocaleName.md +1 -43
- package/docs/ja/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/ja/packages/intlayer/getMultilingualUrls.md +2 -62
- package/docs/ja/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/ja/packages/intlayer/getPrefix.md +1 -12
- package/docs/ja/packages/intlayer/getTranslation.md +3 -87
- package/docs/ja/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/ja/packages/next-intlayer/t.md +5 -137
- package/docs/ja/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/ja/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/ja/packages/next-intlayer/useLocale.md +1 -51
- package/docs/ja/packages/react-intlayer/t.md +4 -109
- package/docs/ja/packages/react-intlayer/useDictionary.md +3 -115
- package/docs/ja/packages/react-intlayer/useI18n.md +4 -107
- package/docs/ja/packages/react-intlayer/useIntlayer.md +2 -95
- package/docs/ja/packages/react-intlayer/useLocale.md +3 -103
- package/docs/ja/per_locale_file.md +3 -34
- package/docs/ko/cli/index.md +1 -1
- package/docs/ko/dictionary/condition.md +2 -116
- package/docs/ko/dictionary/content_file.md +2 -201
- package/docs/ko/dictionary/enumeration.md +2 -116
- package/docs/ko/dictionary/file.md +3 -100
- package/docs/ko/dictionary/function_fetching.md +3 -103
- package/docs/ko/dictionary/gender.md +2 -140
- package/docs/ko/dictionary/insertion.md +3 -57
- package/docs/ko/dictionary/nesting.md +3 -121
- package/docs/ko/dictionary/translation.md +5 -161
- package/docs/ko/interest_of_intlayer.md +2 -60
- package/docs/ko/intlayer_CMS.md +3 -227
- package/docs/ko/intlayer_visual_editor.md +1 -72
- package/docs/ko/intlayer_with_adonisjs.md +3 -109
- package/docs/ko/intlayer_with_analog.md +21 -41
- package/docs/ko/intlayer_with_angular.md +15 -41
- package/docs/ko/intlayer_with_astro.md +169 -58
- package/docs/ko/intlayer_with_astro_lit.md +598 -0
- package/docs/ko/intlayer_with_astro_preact.md +552 -0
- package/docs/ko/intlayer_with_astro_react.md +545 -0
- package/docs/ko/intlayer_with_astro_solid.md +545 -0
- package/docs/ko/intlayer_with_astro_svelte.md +549 -0
- package/docs/ko/intlayer_with_astro_vanilla.md +526 -0
- package/docs/ko/intlayer_with_astro_vue.md +567 -0
- package/docs/ko/intlayer_with_create_react_app.md +38 -693
- package/docs/ko/intlayer_with_express.md +5 -182
- package/docs/ko/intlayer_with_fastify.md +5 -193
- package/docs/ko/intlayer_with_hono.md +2 -2
- package/docs/ko/intlayer_with_lynx+react.md +2 -116
- package/docs/ko/intlayer_with_nestjs.md +3 -31
- package/docs/ko/intlayer_with_nextjs_14.md +55 -693
- package/docs/ko/intlayer_with_nextjs_15.md +73 -859
- package/docs/ko/intlayer_with_nextjs_16.md +40 -883
- package/docs/ko/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/ko/intlayer_with_nextjs_no_locale_path.md +13 -548
- package/docs/ko/intlayer_with_nextjs_page_router.md +66 -652
- package/docs/ko/intlayer_with_nuxt.md +16 -99
- package/docs/ko/intlayer_with_react_native+expo.md +31 -286
- package/docs/ko/intlayer_with_react_router_v7.md +15 -91
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +15 -91
- package/docs/ko/intlayer_with_storybook.md +1 -37
- package/docs/ko/intlayer_with_svelte_kit.md +29 -71
- package/docs/ko/intlayer_with_tanstack+solid.md +14 -70
- package/docs/ko/intlayer_with_tanstack.md +13 -1
- package/docs/ko/intlayer_with_vanilla.md +28 -108
- package/docs/ko/intlayer_with_vite+lit.md +98 -162
- package/docs/ko/intlayer_with_vite+preact.md +102 -711
- package/docs/ko/intlayer_with_vite+react.md +123 -805
- package/docs/ko/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/ko/intlayer_with_vite+solid.md +79 -151
- package/docs/ko/intlayer_with_vite+svelte.md +104 -130
- package/docs/ko/intlayer_with_vite+vanilla.md +105 -155
- package/docs/ko/intlayer_with_vite+vue.md +92 -269
- package/docs/ko/introduction.md +2 -60
- package/docs/ko/packages/express-intlayer/t.md +5 -158
- package/docs/ko/packages/hono-intlayer/t.md +1 -45
- package/docs/ko/packages/intlayer/getConfiguration.md +2 -54
- package/docs/ko/packages/intlayer/getEnumeration.md +2 -60
- package/docs/ko/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/ko/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/ko/packages/intlayer/getLocaleName.md +1 -43
- package/docs/ko/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/ko/packages/intlayer/getMultilingualUrls.md +2 -64
- package/docs/ko/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/ko/packages/intlayer/getPrefix.md +1 -12
- package/docs/ko/packages/intlayer/getTranslation.md +3 -87
- package/docs/ko/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/ko/packages/next-intlayer/t.md +5 -139
- package/docs/ko/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/ko/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/ko/packages/next-intlayer/useLocale.md +1 -51
- package/docs/ko/packages/react-intlayer/t.md +5 -133
- package/docs/ko/packages/react-intlayer/useDictionary.md +3 -113
- package/docs/ko/packages/react-intlayer/useI18n.md +4 -107
- package/docs/ko/packages/react-intlayer/useIntlayer.md +3 -109
- package/docs/ko/packages/react-intlayer/useLocale.md +3 -103
- package/docs/ko/per_locale_file.md +3 -34
- package/docs/nl/intlayer_with_fastify.md +5 -193
- package/docs/nl/intlayer_with_hono.md +5 -158
- package/docs/nl/intlayer_with_storybook.md +1 -37
- package/docs/nl/intlayer_with_vanilla.md +28 -108
- package/docs/nl/intlayer_with_vite+lit.md +98 -156
- package/docs/nl/intlayer_with_vite+vanilla.md +105 -155
- package/docs/nl/introduction.md +2 -58
- package/docs/pl/dictionary/condition.md +2 -111
- package/docs/pl/dictionary/content_file.md +2 -205
- package/docs/pl/dictionary/enumeration.md +2 -116
- package/docs/pl/dictionary/file.md +3 -102
- package/docs/pl/dictionary/function_fetching.md +3 -103
- package/docs/pl/dictionary/gender.md +2 -141
- package/docs/pl/dictionary/insertion.md +3 -57
- package/docs/pl/dictionary/nesting.md +3 -121
- package/docs/pl/dictionary/translation.md +4 -147
- package/docs/pl/interest_of_intlayer.md +2 -58
- package/docs/pl/intlayer_CMS.md +3 -227
- package/docs/pl/intlayer_visual_editor.md +1 -72
- package/docs/pl/intlayer_with_adonisjs.md +3 -109
- package/docs/pl/intlayer_with_analog.md +21 -41
- package/docs/pl/intlayer_with_angular.md +15 -41
- package/docs/pl/intlayer_with_astro.md +179 -89
- package/docs/pl/intlayer_with_astro_lit.md +615 -0
- package/docs/pl/intlayer_with_astro_preact.md +564 -0
- package/docs/pl/intlayer_with_astro_react.md +562 -0
- package/docs/pl/intlayer_with_astro_solid.md +562 -0
- package/docs/pl/intlayer_with_astro_svelte.md +566 -0
- package/docs/pl/intlayer_with_astro_vanilla.md +543 -0
- package/docs/pl/intlayer_with_astro_vue.md +584 -0
- package/docs/pl/intlayer_with_create_react_app.md +39 -696
- package/docs/pl/intlayer_with_express.md +5 -180
- package/docs/pl/intlayer_with_fastify.md +5 -193
- package/docs/pl/intlayer_with_hono.md +2 -2
- package/docs/pl/intlayer_with_lynx+react.md +3 -109
- package/docs/pl/intlayer_with_nestjs.md +3 -31
- package/docs/pl/intlayer_with_nextjs_14.md +54 -789
- package/docs/pl/intlayer_with_nextjs_15.md +39 -843
- package/docs/pl/intlayer_with_nextjs_16.md +60 -903
- package/docs/pl/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/pl/intlayer_with_nextjs_no_locale_path.md +11 -499
- package/docs/pl/intlayer_with_nextjs_page_router.md +69 -751
- package/docs/pl/intlayer_with_nuxt.md +16 -100
- package/docs/pl/intlayer_with_react_native+expo.md +31 -292
- package/docs/pl/intlayer_with_react_router_v7.md +15 -101
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +16 -94
- package/docs/pl/intlayer_with_storybook.md +1 -37
- package/docs/pl/intlayer_with_svelte_kit.md +29 -71
- package/docs/pl/intlayer_with_tanstack+solid.md +14 -70
- package/docs/pl/intlayer_with_tanstack.md +14 -62
- package/docs/pl/intlayer_with_vanilla.md +28 -108
- package/docs/pl/intlayer_with_vite+lit.md +98 -156
- package/docs/pl/intlayer_with_vite+preact.md +102 -711
- package/docs/pl/intlayer_with_vite+react.md +121 -840
- package/docs/pl/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/pl/intlayer_with_vite+solid.md +79 -151
- package/docs/pl/intlayer_with_vite+svelte.md +104 -132
- package/docs/pl/intlayer_with_vite+vanilla.md +105 -155
- package/docs/pl/intlayer_with_vite+vue.md +92 -267
- package/docs/pl/introduction.md +2 -48
- package/docs/pl/packages/express-intlayer/t.md +6 -181
- package/docs/pl/packages/hono-intlayer/t.md +1 -45
- package/docs/pl/packages/intlayer/getConfiguration.md +2 -54
- package/docs/pl/packages/intlayer/getEnumeration.md +2 -60
- package/docs/pl/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/pl/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/pl/packages/intlayer/getLocaleName.md +1 -43
- package/docs/pl/packages/intlayer/getLocalizedUrl.md +2 -59
- package/docs/pl/packages/intlayer/getMultilingualUrls.md +2 -62
- package/docs/pl/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/pl/packages/intlayer/getPrefix.md +1 -19
- package/docs/pl/packages/intlayer/getTranslation.md +3 -87
- package/docs/pl/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/pl/packages/next-intlayer/t.md +5 -137
- package/docs/pl/packages/next-intlayer/useDictionary.md +3 -120
- package/docs/pl/packages/next-intlayer/useIntlayer.md +2 -82
- package/docs/pl/packages/next-intlayer/useLocale.md +1 -51
- package/docs/pl/packages/react-intlayer/t.md +4 -109
- package/docs/pl/packages/react-intlayer/useDictionary.md +3 -115
- package/docs/pl/packages/react-intlayer/useI18n.md +3 -91
- package/docs/pl/packages/react-intlayer/useIntlayer.md +3 -114
- package/docs/pl/packages/react-intlayer/useLocale.md +3 -103
- package/docs/pl/per_locale_file.md +3 -34
- package/docs/pt/dictionary/condition.md +2 -116
- package/docs/pt/dictionary/content_file.md +2 -202
- package/docs/pt/dictionary/enumeration.md +2 -116
- package/docs/pt/dictionary/file.md +3 -101
- package/docs/pt/dictionary/function_fetching.md +3 -103
- package/docs/pt/dictionary/gender.md +2 -140
- package/docs/pt/dictionary/insertion.md +3 -57
- package/docs/pt/dictionary/nesting.md +3 -121
- package/docs/pt/dictionary/translation.md +4 -146
- package/docs/pt/interest_of_intlayer.md +2 -60
- package/docs/pt/intlayer_CMS.md +3 -227
- package/docs/pt/intlayer_visual_editor.md +1 -72
- package/docs/pt/intlayer_with_adonisjs.md +3 -109
- package/docs/pt/intlayer_with_analog.md +21 -41
- package/docs/pt/intlayer_with_angular.md +15 -41
- package/docs/pt/intlayer_with_astro.md +184 -58
- package/docs/pt/intlayer_with_astro_lit.md +597 -0
- package/docs/pt/intlayer_with_astro_preact.md +564 -0
- package/docs/pt/intlayer_with_astro_react.md +562 -0
- package/docs/pt/intlayer_with_astro_solid.md +562 -0
- package/docs/pt/intlayer_with_astro_svelte.md +566 -0
- package/docs/pt/intlayer_with_astro_vanilla.md +543 -0
- package/docs/pt/intlayer_with_astro_vue.md +584 -0
- package/docs/pt/intlayer_with_create_react_app.md +53 -654
- package/docs/pt/intlayer_with_express.md +5 -183
- package/docs/pt/intlayer_with_fastify.md +5 -193
- package/docs/pt/intlayer_with_hono.md +2 -2
- package/docs/pt/intlayer_with_lynx+react.md +2 -116
- package/docs/pt/intlayer_with_nestjs.md +3 -33
- package/docs/pt/intlayer_with_nextjs_14.md +51 -575
- package/docs/pt/intlayer_with_nextjs_15.md +56 -819
- package/docs/pt/intlayer_with_nextjs_16.md +40 -883
- package/docs/pt/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/pt/intlayer_with_nextjs_no_locale_path.md +11 -499
- package/docs/pt/intlayer_with_nextjs_page_router.md +87 -707
- package/docs/pt/intlayer_with_nuxt.md +16 -98
- package/docs/pt/intlayer_with_react_native+expo.md +31 -283
- package/docs/pt/intlayer_with_react_router_v7.md +3 -98
- package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +15 -91
- package/docs/pt/intlayer_with_storybook.md +1 -37
- package/docs/pt/intlayer_with_svelte_kit.md +29 -71
- package/docs/pt/intlayer_with_tanstack+solid.md +14 -70
- package/docs/pt/intlayer_with_tanstack.md +14 -62
- package/docs/pt/intlayer_with_vanilla.md +28 -108
- package/docs/pt/intlayer_with_vite+lit.md +98 -162
- package/docs/pt/intlayer_with_vite+preact.md +100 -709
- package/docs/pt/intlayer_with_vite+react.md +104 -797
- package/docs/pt/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/pt/intlayer_with_vite+solid.md +79 -149
- package/docs/pt/intlayer_with_vite+svelte.md +104 -132
- package/docs/pt/intlayer_with_vite+vanilla.md +105 -155
- package/docs/pt/intlayer_with_vite+vue.md +80 -263
- package/docs/pt/introduction.md +2 -59
- package/docs/pt/packages/express-intlayer/t.md +6 -181
- package/docs/pt/packages/hono-intlayer/t.md +1 -45
- package/docs/pt/packages/intlayer/getConfiguration.md +2 -54
- package/docs/pt/packages/intlayer/getEnumeration.md +2 -60
- package/docs/pt/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/pt/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/pt/packages/intlayer/getLocaleName.md +1 -43
- package/docs/pt/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/pt/packages/intlayer/getMultilingualUrls.md +2 -60
- package/docs/pt/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/pt/packages/intlayer/getPrefix.md +1 -19
- package/docs/pt/packages/intlayer/getTranslation.md +3 -87
- package/docs/pt/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/pt/packages/next-intlayer/t.md +5 -137
- package/docs/pt/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/pt/packages/next-intlayer/useIntlayer.md +3 -119
- package/docs/pt/packages/next-intlayer/useLocale.md +1 -51
- package/docs/pt/packages/react-intlayer/t.md +4 -109
- package/docs/pt/packages/react-intlayer/useDictionary.md +3 -113
- package/docs/pt/packages/react-intlayer/useI18n.md +4 -107
- package/docs/pt/packages/react-intlayer/useIntlayer.md +3 -114
- package/docs/pt/packages/react-intlayer/useLocale.md +3 -103
- package/docs/pt/per_locale_file.md +3 -35
- package/docs/ru/dictionary/condition.md +2 -116
- package/docs/ru/dictionary/content_file.md +2 -204
- package/docs/ru/dictionary/enumeration.md +2 -116
- package/docs/ru/dictionary/file.md +3 -102
- package/docs/ru/dictionary/function_fetching.md +3 -103
- package/docs/ru/dictionary/gender.md +2 -140
- package/docs/ru/dictionary/insertion.md +3 -57
- package/docs/ru/dictionary/nesting.md +3 -121
- package/docs/ru/dictionary/translation.md +4 -147
- package/docs/ru/interest_of_intlayer.md +2 -60
- package/docs/ru/intlayer_CMS.md +3 -225
- package/docs/ru/intlayer_visual_editor.md +1 -72
- package/docs/ru/intlayer_with_adonisjs.md +3 -109
- package/docs/ru/intlayer_with_analog.md +21 -41
- package/docs/ru/intlayer_with_angular.md +15 -41
- package/docs/ru/intlayer_with_astro.md +172 -45
- package/docs/ru/intlayer_with_astro_lit.md +614 -0
- package/docs/ru/intlayer_with_astro_preact.md +568 -0
- package/docs/ru/intlayer_with_astro_react.md +561 -0
- package/docs/ru/intlayer_with_astro_solid.md +561 -0
- package/docs/ru/intlayer_with_astro_svelte.md +565 -0
- package/docs/ru/intlayer_with_astro_vanilla.md +542 -0
- package/docs/ru/intlayer_with_astro_vue.md +583 -0
- package/docs/ru/intlayer_with_create_react_app.md +9 -677
- package/docs/ru/intlayer_with_express.md +4 -112
- package/docs/ru/intlayer_with_fastify.md +5 -193
- package/docs/ru/intlayer_with_hono.md +2 -2
- package/docs/ru/intlayer_with_lynx+react.md +2 -116
- package/docs/ru/intlayer_with_nestjs.md +3 -33
- package/docs/ru/intlayer_with_nextjs_14.md +50 -534
- package/docs/ru/intlayer_with_nextjs_15.md +60 -834
- package/docs/ru/intlayer_with_nextjs_16.md +60 -903
- package/docs/ru/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/ru/intlayer_with_nextjs_no_locale_path.md +11 -542
- package/docs/ru/intlayer_with_nextjs_page_router.md +38 -610
- package/docs/ru/intlayer_with_nuxt.md +16 -100
- package/docs/ru/intlayer_with_react_native+expo.md +31 -286
- package/docs/ru/intlayer_with_react_router_v7.md +15 -91
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +15 -91
- package/docs/ru/intlayer_with_storybook.md +1 -37
- package/docs/ru/intlayer_with_svelte_kit.md +29 -71
- package/docs/ru/intlayer_with_tanstack+solid.md +14 -70
- package/docs/ru/intlayer_with_tanstack.md +14 -62
- package/docs/ru/intlayer_with_vanilla.md +28 -108
- package/docs/ru/intlayer_with_vite+lit.md +98 -162
- package/docs/ru/intlayer_with_vite+preact.md +102 -711
- package/docs/ru/intlayer_with_vite+react.md +111 -807
- package/docs/ru/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/ru/intlayer_with_vite+solid.md +79 -153
- package/docs/ru/intlayer_with_vite+svelte.md +104 -132
- package/docs/ru/intlayer_with_vite+vanilla.md +105 -155
- package/docs/ru/intlayer_with_vite+vue.md +92 -266
- package/docs/ru/introduction.md +2 -62
- package/docs/ru/packages/express-intlayer/t.md +6 -183
- package/docs/ru/packages/hono-intlayer/t.md +1 -45
- package/docs/ru/packages/intlayer/getConfiguration.md +2 -54
- package/docs/ru/packages/intlayer/getEnumeration.md +2 -60
- package/docs/ru/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/ru/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/ru/packages/intlayer/getLocaleName.md +1 -43
- package/docs/ru/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/ru/packages/intlayer/getMultilingualUrls.md +2 -62
- package/docs/ru/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/ru/packages/intlayer/getPrefix.md +1 -15
- package/docs/ru/packages/intlayer/getTranslation.md +3 -87
- package/docs/ru/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/ru/packages/next-intlayer/t.md +5 -139
- package/docs/ru/packages/next-intlayer/useDictionary.md +3 -119
- package/docs/ru/packages/next-intlayer/useIntlayer.md +3 -120
- package/docs/ru/packages/next-intlayer/useLocale.md +1 -51
- package/docs/ru/packages/react-intlayer/t.md +4 -111
- package/docs/ru/packages/react-intlayer/useDictionary.md +3 -115
- package/docs/ru/packages/react-intlayer/useI18n.md +4 -107
- package/docs/ru/packages/react-intlayer/useIntlayer.md +3 -118
- package/docs/ru/packages/react-intlayer/useLocale.md +2 -58
- package/docs/ru/per_locale_file.md +3 -35
- package/docs/tr/dictionary/condition.md +2 -116
- package/docs/tr/dictionary/content_file.md +2 -201
- package/docs/tr/dictionary/enumeration.md +2 -116
- package/docs/tr/dictionary/file.md +3 -100
- package/docs/tr/dictionary/function_fetching.md +3 -103
- package/docs/tr/dictionary/gender.md +2 -140
- package/docs/tr/dictionary/insertion.md +3 -57
- package/docs/tr/dictionary/nesting.md +3 -121
- package/docs/tr/dictionary/translation.md +4 -119
- package/docs/tr/interest_of_intlayer.md +2 -58
- package/docs/tr/intlayer_CMS.md +3 -227
- package/docs/tr/intlayer_visual_editor.md +1 -72
- package/docs/tr/intlayer_with_adonisjs.md +3 -109
- package/docs/tr/intlayer_with_analog.md +21 -41
- package/docs/tr/intlayer_with_angular.md +15 -41
- package/docs/tr/intlayer_with_astro.md +187 -61
- package/docs/tr/intlayer_with_astro_lit.md +615 -0
- package/docs/tr/intlayer_with_astro_preact.md +564 -0
- package/docs/tr/intlayer_with_astro_react.md +562 -0
- package/docs/tr/intlayer_with_astro_solid.md +562 -0
- package/docs/tr/intlayer_with_astro_svelte.md +566 -0
- package/docs/tr/intlayer_with_astro_vanilla.md +543 -0
- package/docs/tr/intlayer_with_astro_vue.md +584 -0
- package/docs/tr/intlayer_with_create_react_app.md +33 -685
- package/docs/tr/intlayer_with_express.md +5 -179
- package/docs/tr/intlayer_with_fastify.md +5 -193
- package/docs/tr/intlayer_with_hono.md +2 -2
- package/docs/tr/intlayer_with_lynx+react.md +2 -108
- package/docs/tr/intlayer_with_nestjs.md +3 -31
- package/docs/tr/intlayer_with_nextjs_14.md +12 -431
- package/docs/tr/intlayer_with_nextjs_15.md +59 -815
- package/docs/tr/intlayer_with_nextjs_16.md +60 -903
- package/docs/tr/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/tr/intlayer_with_nextjs_no_locale_path.md +11 -498
- package/docs/tr/intlayer_with_nextjs_page_router.md +37 -622
- package/docs/tr/intlayer_with_nuxt.md +16 -98
- package/docs/tr/intlayer_with_react_native+expo.md +31 -265
- package/docs/tr/intlayer_with_react_router_v7.md +15 -91
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +15 -91
- package/docs/tr/intlayer_with_storybook.md +1 -37
- package/docs/tr/intlayer_with_svelte_kit.md +29 -71
- package/docs/tr/intlayer_with_tanstack+solid.md +14 -70
- package/docs/tr/intlayer_with_tanstack.md +14 -62
- package/docs/tr/intlayer_with_vanilla.md +28 -108
- package/docs/tr/intlayer_with_vite+lit.md +98 -156
- package/docs/tr/intlayer_with_vite+preact.md +102 -711
- package/docs/tr/intlayer_with_vite+react.md +107 -791
- package/docs/tr/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/tr/intlayer_with_vite+solid.md +79 -149
- package/docs/tr/intlayer_with_vite+svelte.md +104 -132
- package/docs/tr/intlayer_with_vite+vanilla.md +105 -155
- package/docs/tr/intlayer_with_vite+vue.md +92 -196
- package/docs/tr/introduction.md +2 -58
- package/docs/tr/packages/express-intlayer/t.md +6 -181
- package/docs/tr/packages/hono-intlayer/t.md +1 -45
- package/docs/tr/packages/intlayer/getConfiguration.md +2 -54
- package/docs/tr/packages/intlayer/getEnumeration.md +2 -60
- package/docs/tr/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/tr/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/tr/packages/intlayer/getLocaleName.md +1 -43
- package/docs/tr/packages/intlayer/getLocalizedUrl.md +3 -79
- package/docs/tr/packages/intlayer/getMultilingualUrls.md +2 -60
- package/docs/tr/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/tr/packages/intlayer/getPrefix.md +1 -15
- package/docs/tr/packages/intlayer/getTranslation.md +3 -87
- package/docs/tr/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/tr/packages/next-intlayer/t.md +5 -137
- package/docs/tr/packages/next-intlayer/useDictionary.md +3 -118
- package/docs/tr/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/tr/packages/next-intlayer/useLocale.md +1 -51
- package/docs/tr/packages/react-intlayer/t.md +4 -109
- package/docs/tr/packages/react-intlayer/useDictionary.md +3 -113
- package/docs/tr/packages/react-intlayer/useI18n.md +8 -214
- package/docs/tr/packages/react-intlayer/useIntlayer.md +3 -109
- package/docs/tr/packages/react-intlayer/useLocale.md +3 -103
- package/docs/tr/per_locale_file.md +3 -33
- package/docs/uk/dictionary/condition.md +2 -116
- package/docs/uk/dictionary/content_file.md +2 -218
- package/docs/uk/dictionary/enumeration.md +2 -116
- package/docs/uk/dictionary/file.md +3 -100
- package/docs/uk/dictionary/function_fetching.md +3 -103
- package/docs/uk/dictionary/gender.md +2 -140
- package/docs/uk/dictionary/insertion.md +3 -57
- package/docs/uk/dictionary/nesting.md +3 -121
- package/docs/uk/dictionary/translation.md +4 -156
- package/docs/uk/interest_of_intlayer.md +2 -60
- package/docs/uk/intlayer_CMS.md +3 -227
- package/docs/uk/intlayer_visual_editor.md +1 -72
- package/docs/uk/intlayer_with_adonisjs.md +3 -109
- package/docs/uk/intlayer_with_analog.md +21 -41
- package/docs/uk/intlayer_with_angular.md +15 -41
- package/docs/uk/intlayer_with_astro.md +187 -70
- package/docs/uk/intlayer_with_astro_lit.md +615 -0
- package/docs/uk/intlayer_with_astro_preact.md +564 -0
- package/docs/uk/intlayer_with_astro_react.md +562 -0
- package/docs/uk/intlayer_with_astro_solid.md +562 -0
- package/docs/uk/intlayer_with_astro_svelte.md +566 -0
- package/docs/uk/intlayer_with_astro_vanilla.md +543 -0
- package/docs/uk/intlayer_with_astro_vue.md +584 -0
- package/docs/uk/intlayer_with_create_react_app.md +39 -697
- package/docs/uk/intlayer_with_express.md +5 -184
- package/docs/uk/intlayer_with_fastify.md +5 -193
- package/docs/uk/intlayer_with_hono.md +2 -2
- package/docs/uk/intlayer_with_lynx+react.md +3 -118
- package/docs/uk/intlayer_with_nestjs.md +3 -31
- package/docs/uk/intlayer_with_nextjs_14.md +54 -797
- package/docs/uk/intlayer_with_nextjs_15.md +42 -708
- package/docs/uk/intlayer_with_nextjs_16.md +60 -903
- package/docs/uk/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/uk/intlayer_with_nextjs_no_locale_path.md +11 -499
- package/docs/uk/intlayer_with_nextjs_page_router.md +37 -659
- package/docs/uk/intlayer_with_nuxt.md +16 -106
- package/docs/uk/intlayer_with_react_native+expo.md +31 -293
- package/docs/uk/intlayer_with_react_router_v7.md +15 -99
- package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +15 -93
- package/docs/uk/intlayer_with_storybook.md +1 -37
- package/docs/uk/intlayer_with_svelte_kit.md +28 -70
- package/docs/uk/intlayer_with_tanstack+solid.md +14 -70
- package/docs/uk/intlayer_with_tanstack.md +14 -62
- package/docs/uk/intlayer_with_vanilla.md +28 -108
- package/docs/uk/intlayer_with_vite+lit.md +98 -156
- package/docs/uk/intlayer_with_vite+preact.md +105 -714
- package/docs/uk/intlayer_with_vite+react.md +113 -822
- package/docs/uk/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/uk/intlayer_with_vite+solid.md +79 -151
- package/docs/uk/intlayer_with_vite+svelte.md +104 -132
- package/docs/uk/intlayer_with_vite+vanilla.md +105 -155
- package/docs/uk/intlayer_with_vite+vue.md +92 -268
- package/docs/uk/introduction.md +2 -61
- package/docs/uk/packages/express-intlayer/t.md +6 -187
- package/docs/uk/packages/hono-intlayer/t.md +1 -45
- package/docs/uk/packages/intlayer/getConfiguration.md +2 -54
- package/docs/uk/packages/intlayer/getEnumeration.md +2 -60
- package/docs/uk/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/uk/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/uk/packages/intlayer/getLocaleName.md +1 -43
- package/docs/uk/packages/intlayer/getLocalizedUrl.md +3 -71
- package/docs/uk/packages/intlayer/getMultilingualUrls.md +3 -79
- package/docs/uk/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/uk/packages/intlayer/getPrefix.md +1 -15
- package/docs/uk/packages/intlayer/getTranslation.md +3 -87
- package/docs/uk/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/uk/packages/next-intlayer/t.md +5 -141
- package/docs/uk/packages/next-intlayer/useDictionary.md +3 -126
- package/docs/uk/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/uk/packages/next-intlayer/useLocale.md +1 -51
- package/docs/uk/packages/react-intlayer/t.md +4 -113
- package/docs/uk/packages/react-intlayer/useDictionary.md +3 -118
- package/docs/uk/packages/react-intlayer/useI18n.md +4 -107
- package/docs/uk/packages/react-intlayer/useIntlayer.md +3 -109
- package/docs/uk/packages/react-intlayer/useLocale.md +3 -103
- package/docs/uk/per_locale_file.md +3 -34
- package/docs/ur/intlayer_with_fastify.md +5 -193
- package/docs/ur/intlayer_with_hono.md +5 -158
- package/docs/ur/intlayer_with_storybook.md +1 -37
- package/docs/ur/intlayer_with_vanilla.md +28 -108
- package/docs/ur/intlayer_with_vite+lit.md +98 -156
- package/docs/ur/intlayer_with_vite+vanilla.md +105 -155
- package/docs/ur/introduction.md +2 -58
- package/docs/vi/dictionary/condition.md +2 -116
- package/docs/vi/dictionary/content_file.md +2 -200
- package/docs/vi/dictionary/enumeration.md +2 -116
- package/docs/vi/dictionary/file.md +3 -102
- package/docs/vi/dictionary/function_fetching.md +3 -103
- package/docs/vi/dictionary/gender.md +2 -140
- package/docs/vi/dictionary/insertion.md +3 -57
- package/docs/vi/dictionary/nesting.md +3 -121
- package/docs/vi/dictionary/translation.md +4 -146
- package/docs/vi/interest_of_intlayer.md +2 -60
- package/docs/vi/intlayer_CMS.md +3 -227
- package/docs/vi/intlayer_visual_editor.md +1 -72
- package/docs/vi/intlayer_with_adonisjs.md +3 -109
- package/docs/vi/intlayer_with_analog.md +21 -41
- package/docs/vi/intlayer_with_angular.md +15 -41
- package/docs/vi/intlayer_with_astro.md +184 -66
- package/docs/vi/intlayer_with_astro_lit.md +615 -0
- package/docs/vi/intlayer_with_astro_preact.md +564 -0
- package/docs/vi/intlayer_with_astro_react.md +562 -0
- package/docs/vi/intlayer_with_astro_solid.md +562 -0
- package/docs/vi/intlayer_with_astro_svelte.md +566 -0
- package/docs/vi/intlayer_with_astro_vanilla.md +543 -0
- package/docs/vi/intlayer_with_astro_vue.md +584 -0
- package/docs/vi/intlayer_with_create_react_app.md +39 -693
- package/docs/vi/intlayer_with_express.md +5 -179
- package/docs/vi/intlayer_with_fastify.md +5 -193
- package/docs/vi/intlayer_with_hono.md +2 -2
- package/docs/vi/intlayer_with_lynx+react.md +3 -111
- package/docs/vi/intlayer_with_nestjs.md +3 -31
- package/docs/vi/intlayer_with_nextjs_14.md +54 -785
- package/docs/vi/intlayer_with_nextjs_15.md +34 -1171
- package/docs/vi/intlayer_with_nextjs_16.md +60 -903
- package/docs/vi/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/vi/intlayer_with_nextjs_no_locale_path.md +10 -516
- package/docs/vi/intlayer_with_nextjs_page_router.md +69 -742
- package/docs/vi/intlayer_with_nuxt.md +16 -98
- package/docs/vi/intlayer_with_react_native+expo.md +31 -293
- package/docs/vi/intlayer_with_react_router_v7.md +15 -101
- package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +15 -101
- package/docs/vi/intlayer_with_storybook.md +1 -37
- package/docs/vi/intlayer_with_svelte_kit.md +29 -71
- package/docs/vi/intlayer_with_tanstack+solid.md +14 -70
- package/docs/vi/intlayer_with_tanstack.md +14 -62
- package/docs/vi/intlayer_with_vanilla.md +28 -108
- package/docs/vi/intlayer_with_vite+lit.md +98 -156
- package/docs/vi/intlayer_with_vite+preact.md +103 -712
- package/docs/vi/intlayer_with_vite+react.md +105 -787
- package/docs/vi/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/vi/intlayer_with_vite+solid.md +79 -150
- package/docs/vi/intlayer_with_vite+svelte.md +104 -132
- package/docs/vi/intlayer_with_vite+vanilla.md +105 -155
- package/docs/vi/intlayer_with_vite+vue.md +92 -252
- package/docs/vi/introduction.md +2 -58
- package/docs/vi/packages/express-intlayer/t.md +6 -181
- package/docs/vi/packages/hono-intlayer/t.md +1 -45
- package/docs/vi/packages/intlayer/getConfiguration.md +2 -54
- package/docs/vi/packages/intlayer/getEnumeration.md +2 -62
- package/docs/vi/packages/intlayer/getHTMLTextDir.md +2 -38
- package/docs/vi/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/vi/packages/intlayer/getLocaleName.md +1 -54
- package/docs/vi/packages/intlayer/getLocalizedUrl.md +2 -59
- package/docs/vi/packages/intlayer/getMultilingualUrls.md +2 -62
- package/docs/vi/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/vi/packages/intlayer/getPrefix.md +1 -15
- package/docs/vi/packages/intlayer/getTranslation.md +3 -98
- package/docs/vi/packages/intlayer/getTranslationContent.md +3 -86
- package/docs/vi/packages/next-intlayer/t.md +5 -137
- package/docs/vi/packages/next-intlayer/useDictionary.md +3 -123
- package/docs/vi/packages/next-intlayer/useIntlayer.md +3 -117
- package/docs/vi/packages/next-intlayer/useLocale.md +1 -51
- package/docs/vi/packages/react-intlayer/t.md +4 -111
- package/docs/vi/packages/react-intlayer/useDictionary.md +3 -114
- package/docs/vi/packages/react-intlayer/useI18n.md +5 -124
- package/docs/vi/packages/react-intlayer/useIntlayer.md +3 -114
- package/docs/vi/packages/react-intlayer/useLocale.md +3 -103
- package/docs/vi/per_locale_file.md +3 -35
- package/docs/zh/dictionary/condition.md +2 -116
- package/docs/zh/dictionary/content_file.md +2 -201
- package/docs/zh/dictionary/enumeration.md +2 -116
- package/docs/zh/dictionary/file.md +3 -101
- package/docs/zh/dictionary/function_fetching.md +3 -103
- package/docs/zh/dictionary/gender.md +2 -140
- package/docs/zh/dictionary/insertion.md +3 -57
- package/docs/zh/dictionary/nesting.md +3 -121
- package/docs/zh/dictionary/translation.md +5 -159
- package/docs/zh/interest_of_intlayer.md +2 -59
- package/docs/zh/intlayer_CMS.md +3 -224
- package/docs/zh/intlayer_visual_editor.md +1 -72
- package/docs/zh/intlayer_with_adonisjs.md +3 -109
- package/docs/zh/intlayer_with_analog.md +21 -41
- package/docs/zh/intlayer_with_angular.md +15 -41
- package/docs/zh/intlayer_with_astro.md +169 -58
- package/docs/zh/intlayer_with_astro_lit.md +598 -0
- package/docs/zh/intlayer_with_astro_preact.md +547 -0
- package/docs/zh/intlayer_with_astro_react.md +545 -0
- package/docs/zh/intlayer_with_astro_solid.md +545 -0
- package/docs/zh/intlayer_with_astro_svelte.md +549 -0
- package/docs/zh/intlayer_with_astro_vanilla.md +526 -0
- package/docs/zh/intlayer_with_astro_vue.md +567 -0
- package/docs/zh/intlayer_with_create_react_app.md +33 -680
- package/docs/zh/intlayer_with_express.md +5 -182
- package/docs/zh/intlayer_with_fastify.md +5 -193
- package/docs/zh/intlayer_with_hono.md +5 -158
- package/docs/zh/intlayer_with_lynx+react.md +2 -116
- package/docs/zh/intlayer_with_nestjs.md +3 -31
- package/docs/zh/intlayer_with_nextjs_14.md +56 -597
- package/docs/zh/intlayer_with_nextjs_15.md +56 -818
- package/docs/zh/intlayer_with_nextjs_16.md +60 -903
- package/docs/zh/intlayer_with_nextjs_compiler.md +2 -62
- package/docs/zh/intlayer_with_nextjs_no_locale_path.md +11 -541
- package/docs/zh/intlayer_with_nextjs_page_router.md +39 -636
- package/docs/zh/intlayer_with_nuxt.md +16 -101
- package/docs/zh/intlayer_with_react_native+expo.md +31 -286
- package/docs/zh/intlayer_with_react_router_v7.md +15 -92
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +15 -92
- package/docs/zh/intlayer_with_storybook.md +1 -37
- package/docs/zh/intlayer_with_svelte_kit.md +29 -71
- package/docs/zh/intlayer_with_tanstack+solid.md +14 -70
- package/docs/zh/intlayer_with_tanstack.md +14 -2
- package/docs/zh/intlayer_with_vanilla.md +28 -108
- package/docs/zh/intlayer_with_vite+lit.md +98 -162
- package/docs/zh/intlayer_with_vite+preact.md +104 -713
- package/docs/zh/intlayer_with_vite+react.md +106 -786
- package/docs/zh/intlayer_with_vite+react_compiler.md +87 -1
- package/docs/zh/intlayer_with_vite+solid.md +79 -151
- package/docs/zh/intlayer_with_vite+svelte.md +104 -132
- package/docs/zh/intlayer_with_vite+vanilla.md +105 -155
- package/docs/zh/intlayer_with_vite+vue.md +92 -256
- package/docs/zh/introduction.md +2 -59
- package/docs/zh/packages/express-intlayer/t.md +6 -183
- package/docs/zh/packages/hono-intlayer/t.md +2 -70
- package/docs/zh/packages/intlayer/getConfiguration.md +2 -54
- package/docs/zh/packages/intlayer/getEnumeration.md +2 -60
- package/docs/zh/packages/intlayer/getHTMLTextDir.md +2 -39
- package/docs/zh/packages/intlayer/getLocaleLang.md +1 -19
- package/docs/zh/packages/intlayer/getLocaleName.md +1 -43
- package/docs/zh/packages/intlayer/getLocalizedUrl.md +2 -45
- package/docs/zh/packages/intlayer/getMultilingualUrls.md +2 -64
- package/docs/zh/packages/intlayer/getPathWithoutLocale.md +1 -19
- package/docs/zh/packages/intlayer/getPrefix.md +1 -12
- package/docs/zh/packages/intlayer/getTranslation.md +3 -87
- package/docs/zh/packages/intlayer/getTranslationContent.md +3 -87
- package/docs/zh/packages/next-intlayer/t.md +5 -139
- package/docs/zh/packages/next-intlayer/useDictionary.md +3 -120
- package/docs/zh/packages/next-intlayer/useIntlayer.md +3 -119
- package/docs/zh/packages/next-intlayer/useLocale.md +1 -51
- package/docs/zh/packages/react-intlayer/t.md +4 -107
- package/docs/zh/packages/react-intlayer/useDictionary.md +3 -116
- package/docs/zh/packages/react-intlayer/useI18n.md +4 -107
- package/docs/zh/packages/react-intlayer/useIntlayer.md +3 -109
- package/docs/zh/packages/react-intlayer/useLocale.md +3 -103
- package/docs/zh/per_locale_file.md +3 -35
- package/package.json +6 -6
- package/src/common.ts +2 -1
- package/src/generated/docs.entry.ts +140 -0
|
@@ -15,6 +15,7 @@ slugs:
|
|
|
15
15
|
- environment
|
|
16
16
|
- nextjs
|
|
17
17
|
applicationTemplate: https://github.com/aymericzip/intlayer-next-16-template
|
|
18
|
+
applicationShowcase: https://intlayer-next-16-template.vercel.app
|
|
18
19
|
youtubeVideo: https://www.youtube.com/watch?v=e_PPG7PTqGU
|
|
19
20
|
history:
|
|
20
21
|
- version: 7.5.9
|
|
@@ -39,13 +40,24 @@ history:
|
|
|
39
40
|
<Tab label="Code" value="code">
|
|
40
41
|
|
|
41
42
|
<iframe
|
|
42
|
-
src="https://
|
|
43
|
+
src="https://ide.intlayer.org/aymericzip/intlayer-next-16-template?file=intlayer.config.ts"
|
|
43
44
|
className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
|
|
44
45
|
title="Démo CodeSandbox - Comment internationaliser votre application avec Intlayer"
|
|
45
46
|
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
|
|
46
47
|
loading="lazy"
|
|
47
48
|
/>
|
|
48
49
|
|
|
50
|
+
</Tab>
|
|
51
|
+
<Tab label="Démo" value="demo">
|
|
52
|
+
|
|
53
|
+
<iframe
|
|
54
|
+
src="https://intlayer-next-16-template.vercel.app"
|
|
55
|
+
className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
|
|
56
|
+
title="Démo — intlayer-next-16-template"
|
|
57
|
+
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
|
|
58
|
+
loading="lazy"
|
|
59
|
+
/>
|
|
60
|
+
|
|
49
61
|
</Tab>
|
|
50
62
|
</Tabs>
|
|
51
63
|
|
|
@@ -139,7 +151,7 @@ Voici la structure finale que nous allons obtenir :
|
|
|
139
151
|
|
|
140
152
|
Créez un fichier de configuration pour configurer les langues de votre application :
|
|
141
153
|
|
|
142
|
-
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
154
|
+
```typescript fileName="intlayer.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
143
155
|
import { Locales, type IntlayerConfig } from "intlayer";
|
|
144
156
|
|
|
145
157
|
const config: IntlayerConfig = {
|
|
@@ -157,53 +169,13 @@ const config: IntlayerConfig = {
|
|
|
157
169
|
export default config;
|
|
158
170
|
```
|
|
159
171
|
|
|
160
|
-
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
161
|
-
import { Locales } from "intlayer";
|
|
162
|
-
|
|
163
|
-
/** @type {import('intlayer').IntlayerConfig} */
|
|
164
|
-
// Configuration pour l'internationalisation
|
|
165
|
-
const config = {
|
|
166
|
-
internationalization: {
|
|
167
|
-
locales: [
|
|
168
|
-
Locales.ENGLISH,
|
|
169
|
-
Locales.FRENCH,
|
|
170
|
-
Locales.SPANISH,
|
|
171
|
-
// Vos autres locales
|
|
172
|
-
],
|
|
173
|
-
defaultLocale: Locales.ENGLISH,
|
|
174
|
-
},
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
export default config;
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
181
|
-
const { Locales } = require("intlayer");
|
|
182
|
-
|
|
183
|
-
/** @type {import('intlayer').IntlayerConfig} */
|
|
184
|
-
// Configuration pour l'internationalisation
|
|
185
|
-
const config = {
|
|
186
|
-
internationalization: {
|
|
187
|
-
locales: [
|
|
188
|
-
Locales.ENGLISH,
|
|
189
|
-
Locales.FRENCH,
|
|
190
|
-
Locales.SPANISH,
|
|
191
|
-
// Vos autres locales
|
|
192
|
-
],
|
|
193
|
-
defaultLocale: Locales.ENGLISH,
|
|
194
|
-
},
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
module.exports = config;
|
|
198
|
-
```
|
|
199
|
-
|
|
200
172
|
> Grâce à ce fichier de configuration, vous pouvez configurer des URLs localisées, la redirection proxy, les noms de cookies, l'emplacement et l'extension de vos déclarations de contenu, désactiver les logs Intlayer dans la console, et bien plus encore. Pour une liste complète des paramètres disponibles, consultez la [documentation de configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/configuration.md).
|
|
201
173
|
|
|
202
174
|
### Étape 3 : Intégrer Intlayer dans votre configuration Next.js
|
|
203
175
|
|
|
204
176
|
Configurez votre environnement Next.js pour utiliser Intlayer :
|
|
205
177
|
|
|
206
|
-
```typescript fileName="next.config.ts" codeFormat="typescript"
|
|
178
|
+
```typescript fileName="next.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
207
179
|
import type { NextConfig } from "next";
|
|
208
180
|
import { withIntlayer } from "next-intlayer/server";
|
|
209
181
|
|
|
@@ -214,28 +186,6 @@ const nextConfig: NextConfig = {
|
|
|
214
186
|
export default withIntlayer(nextConfig);
|
|
215
187
|
```
|
|
216
188
|
|
|
217
|
-
```typescript fileName="next.config.mjs" codeFormat="esm"
|
|
218
|
-
import { withIntlayer } from "next-intlayer/server";
|
|
219
|
-
|
|
220
|
-
/** @type {import('next').NextConfig} */
|
|
221
|
-
const nextConfig = {
|
|
222
|
-
/* options de configuration ici */
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
export default withIntlayer(nextConfig);
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
```typescript fileName="next.config.cjs" codeFormat="commonjs"
|
|
229
|
-
const { withIntlayer } = require("next-intlayer/server");
|
|
230
|
-
|
|
231
|
-
/** @type {import('next').NextConfig} */
|
|
232
|
-
const nextConfig = {
|
|
233
|
-
/* options de configuration ici */
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
module.exports = withIntlayer(nextConfig);
|
|
237
|
-
```
|
|
238
|
-
|
|
239
189
|
> Le plugin Next.js `withIntlayer()` est utilisé pour intégrer Intlayer avec Next.js. Il assure la construction des fichiers de déclaration de contenu et les surveille en mode développement. Il définit les variables d'environnement Intlayer dans les environnements [Webpack](https://webpack.js.org/) ou [Turbopack](https://nextjs.org/docs/app/api-reference/turbopack). De plus, il fournit des alias pour optimiser les performances et garantit la compatibilité avec les composants serveur.
|
|
240
190
|
|
|
241
191
|
> La fonction `withIntlayer()` est une fonction asynchrone (promise). Elle permet de préparer les dictionnaires Intlayer avant le début de la compilation. Si vous souhaitez l'utiliser avec d'autres plugins, vous pouvez l'attendre avec `await`. Exemple :
|
|
@@ -268,7 +218,7 @@ module.exports = withIntlayer(nextConfig);
|
|
|
268
218
|
|
|
269
219
|
Supprimez tout le contenu de `RootLayout` et remplacez-le par le code suivant :
|
|
270
220
|
|
|
271
|
-
```tsx {3} fileName="src/app/layout.tsx" codeFormat="typescript"
|
|
221
|
+
```tsx {3} fileName="src/app/layout.tsx" codeFormat={["typescript", "esm"]}
|
|
272
222
|
import type { PropsWithChildren, FC } from "react";
|
|
273
223
|
import "./globals.css";
|
|
274
224
|
|
|
@@ -280,37 +230,12 @@ const RootLayout: FC<PropsWithChildren> = ({ children }) => (
|
|
|
280
230
|
export default RootLayout;
|
|
281
231
|
```
|
|
282
232
|
|
|
283
|
-
```jsx {3} fileName="src/app/layout.mjx" codeFormat="esm"
|
|
284
|
-
import "./globals.css";
|
|
285
|
-
|
|
286
|
-
const RootLayout = ({ children }) => (
|
|
287
|
-
// Vous pouvez toujours envelopper les enfants avec d'autres fournisseurs, comme `next-themes`, `react-query`, `framer-motion`, etc.
|
|
288
|
-
<>{children}</>
|
|
289
|
-
);
|
|
290
|
-
|
|
291
|
-
export default RootLayout;
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
```jsx {1,8} fileName="src/app/layout.csx" codeFormat="commonjs"
|
|
295
|
-
require("./globals.css");
|
|
296
|
-
|
|
297
|
-
const RootLayout = ({ children }) => (
|
|
298
|
-
// Vous pouvez toujours envelopper les enfants avec d'autres fournisseurs, comme `next-themes`, `react-query`, `framer-motion`, etc.
|
|
299
|
-
<>{children}</>
|
|
300
|
-
);
|
|
301
|
-
|
|
302
|
-
module.exports = {
|
|
303
|
-
default: RootLayout,
|
|
304
|
-
generateStaticParams,
|
|
305
|
-
};
|
|
306
|
-
```
|
|
307
|
-
|
|
308
233
|
> Garder le composant `RootLayout` vide permet de définir les attributs [`lang`](https://developer.mozilla.org/fr/docs/Web/HTML/Global_attributes/lang) et [`dir`](https://developer.mozilla.org/fr/docs/Web/HTML/Global_attributes/dir) sur la balise `<html>`.
|
|
309
234
|
|
|
310
235
|
Pour implémenter le routage dynamique, fournissez le chemin pour la locale en ajoutant un nouveau layout dans votre répertoire `[locale]` :
|
|
311
236
|
|
|
312
|
-
```tsx fileName="src/app/[locale]/layout.tsx" codeFormat="typescript"
|
|
313
|
-
import type
|
|
237
|
+
```tsx fileName="src/app/[locale]/layout.tsx" codeFormat={["typescript", "esm"]}
|
|
238
|
+
import { type NextLayoutIntlayer, IntlayerClientProvider } from "next-intlayer";
|
|
314
239
|
import { Inter } from "next/font/google";
|
|
315
240
|
import { getHTMLTextDir } from "intlayer";
|
|
316
241
|
|
|
@@ -320,24 +245,11 @@ const LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {
|
|
|
320
245
|
const { locale } = await params;
|
|
321
246
|
return (
|
|
322
247
|
<html lang={locale} dir={getHTMLTextDir(locale)}>
|
|
323
|
-
<body className={inter.className}>
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
export default LocaleLayout;
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
```jsx fileName="src/app/[locale]/layout.mjx" codeFormat="esm"
|
|
332
|
-
import { getHTMLTextDir } from "intlayer";
|
|
333
|
-
|
|
334
|
-
const inter = Inter({ subsets: ["latin"] });
|
|
335
|
-
|
|
336
|
-
const LocaleLayout = async ({ children, params: { locale } }) => {
|
|
337
|
-
const { locale } = await params;
|
|
338
|
-
return (
|
|
339
|
-
<html lang={locale} dir={getHTMLTextDir(locale)}>
|
|
340
|
-
<body className={inter.className}>{children}</body>
|
|
248
|
+
<body className={inter.className}>
|
|
249
|
+
<IntlayerClientProvider locale={locale}>
|
|
250
|
+
{children}
|
|
251
|
+
</IntlayerClientProvider>
|
|
252
|
+
</body>
|
|
341
253
|
</html>
|
|
342
254
|
);
|
|
343
255
|
};
|
|
@@ -345,31 +257,13 @@ const LocaleLayout = async ({ children, params: { locale } }) => {
|
|
|
345
257
|
export default LocaleLayout;
|
|
346
258
|
```
|
|
347
259
|
|
|
348
|
-
```jsx fileName="src/app/[locale]/layout.csx" codeFormat="commonjs"
|
|
349
|
-
const { Inter } = require("next/font/google");
|
|
350
|
-
const { getHTMLTextDir } = require("intlayer");
|
|
351
|
-
|
|
352
|
-
const inter = Inter({ subsets: ["latin"] });
|
|
353
|
-
|
|
354
|
-
const LocaleLayout = async ({ children, params: { locale } }) => {
|
|
355
|
-
const { locale } = await params;
|
|
356
|
-
return (
|
|
357
|
-
<html lang={locale} dir={getHTMLTextDir(locale)}>
|
|
358
|
-
<body className={inter.className}>{children}</body>
|
|
359
|
-
</html>
|
|
360
|
-
);
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
module.exports = LocaleLayout;
|
|
364
|
-
```
|
|
365
|
-
|
|
366
260
|
> Le segment de chemin `[locale]` est utilisé pour définir la locale. Exemple : `/en-US/about` fera référence à `en-US` et `/fr/about` à `fr`.
|
|
367
261
|
|
|
368
262
|
> À ce stade, vous rencontrerez l'erreur : `Error: Missing <html> and <body> tags in the root layout.`. Cela est attendu car le fichier `/app/page.tsx` n'est plus utilisé et peut être supprimé. À la place, le segment de chemin `[locale]` activera la page `/app/[locale]/page.tsx`. Par conséquent, les pages seront accessibles via des chemins comme `/en`, `/fr`, `/es` dans votre navigateur. Pour définir la locale par défaut comme page racine, référez-vous à la configuration du `proxy` à l'étape 7.
|
|
369
263
|
|
|
370
264
|
Ensuite, implémentez la fonction `generateStaticParams` dans le Layout de votre application.
|
|
371
265
|
|
|
372
|
-
```tsx {1} fileName="src/app/[locale]/layout.tsx" codeFormat="typescript"
|
|
266
|
+
```tsx {1} fileName="src/app/[locale]/layout.tsx" codeFormat={["typescript", "esm"]}
|
|
373
267
|
export { generateStaticParams } from "next-intlayer"; // Ligne à insérer
|
|
374
268
|
|
|
375
269
|
const LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {
|
|
@@ -379,26 +273,6 @@ const LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {
|
|
|
379
273
|
export default LocaleLayout;
|
|
380
274
|
```
|
|
381
275
|
|
|
382
|
-
```jsx {1} fileName="src/app/[locale]/layout.mjx" codeFormat="esm"
|
|
383
|
-
export { generateStaticParams } from "next-intlayer"; // Ligne à insérer
|
|
384
|
-
|
|
385
|
-
const LocaleLayout = async ({ children, params: { locale } }) => {
|
|
386
|
-
/*... Reste du code */
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
// ... Reste du code
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
```jsx {1,7} fileName="src/app/[locale]/layout.csx" codeFormat="commonjs"
|
|
393
|
-
const { generateStaticParams } = require("next-intlayer"); // Ligne à insérer
|
|
394
|
-
|
|
395
|
-
const LocaleLayout = async ({ children, params: { locale } }) => {
|
|
396
|
-
/*... Reste du code */
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
module.exports = { default: LocaleLayout, generateStaticParams };
|
|
400
|
-
```
|
|
401
|
-
|
|
402
276
|
> `generateStaticParams` garantit que votre application pré-construit les pages nécessaires pour toutes les locales, réduisant ainsi le calcul à l'exécution et améliorant l'expérience utilisateur. Pour plus de détails, consultez la [documentation Next.js sur generateStaticParams](https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic-rendering#generate-static-params).
|
|
403
277
|
>
|
|
404
278
|
> Intlayer fonctionne avec `export const dynamic = 'force-static';` pour s'assurer que les pages sont pré-construites pour toutes les locales.
|
|
@@ -407,7 +281,7 @@ module.exports = { default: LocaleLayout, generateStaticParams };
|
|
|
407
281
|
|
|
408
282
|
Créez et gérez vos déclarations de contenu pour stocker les traductions :
|
|
409
283
|
|
|
410
|
-
```tsx fileName="src/app/[locale]/page.content.ts" contentDeclarationFormat="typescript"
|
|
284
|
+
```tsx fileName="src/app/[locale]/page.content.ts" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
|
|
411
285
|
import { t, type Dictionary } from "intlayer";
|
|
412
286
|
|
|
413
287
|
const pageContent = {
|
|
@@ -427,48 +301,6 @@ const pageContent = {
|
|
|
427
301
|
export default pageContent;
|
|
428
302
|
```
|
|
429
303
|
|
|
430
|
-
```javascript fileName="src/app/[locale]/page.content.mjs" contentDeclarationFormat="esm"
|
|
431
|
-
import { t } from "intlayer";
|
|
432
|
-
|
|
433
|
-
/** @type {import('intlayer').Dictionary} */
|
|
434
|
-
const pageContent = {
|
|
435
|
-
key: "page",
|
|
436
|
-
content: {
|
|
437
|
-
getStarted: {
|
|
438
|
-
main: t({
|
|
439
|
-
en: "Get started by editing",
|
|
440
|
-
fr: "Commencez par éditer",
|
|
441
|
-
es: "Comience por editar",
|
|
442
|
-
}),
|
|
443
|
-
pageLink: "src/app/page.tsx",
|
|
444
|
-
},
|
|
445
|
-
},
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
export default pageContent;
|
|
449
|
-
```
|
|
450
|
-
|
|
451
|
-
```javascript fileName="src/app/[locale]/page.content.cjs" contentDeclarationFormat="commonjs"
|
|
452
|
-
const { t } = require("intlayer");
|
|
453
|
-
|
|
454
|
-
/** @type {import('intlayer').Dictionary} */
|
|
455
|
-
const pageContent = {
|
|
456
|
-
key: "page",
|
|
457
|
-
content: {
|
|
458
|
-
getStarted: {
|
|
459
|
-
main: t({
|
|
460
|
-
en: "Get started by editing",
|
|
461
|
-
fr: "Commencez par éditer",
|
|
462
|
-
es: "Comience por editar",
|
|
463
|
-
}),
|
|
464
|
-
pageLink: "src/app/page.tsx",
|
|
465
|
-
},
|
|
466
|
-
},
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
module.exports = pageContent;
|
|
470
|
-
```
|
|
471
|
-
|
|
472
304
|
```json fileName="src/app/[locale]/page.content.json" contentDeclarationFormat="json"
|
|
473
305
|
{
|
|
474
306
|
"$schema": "https://intlayer.org/schema.json",
|
|
@@ -495,11 +327,11 @@ module.exports = pageContent;
|
|
|
495
327
|
|
|
496
328
|
Accédez à vos dictionnaires de contenu dans toute votre application :
|
|
497
329
|
|
|
498
|
-
```tsx fileName="src/app/[locale]/page.tsx" codeFormat="typescript"
|
|
330
|
+
```tsx fileName="src/app/[locale]/page.tsx" codeFormat={["typescript", "esm"]}
|
|
499
331
|
import type { FC } from "react";
|
|
500
332
|
import { ClientComponentExample } from "@components/ClientComponentExample";
|
|
501
333
|
import { ServerComponentExample } from "@components/ServerComponentExample";
|
|
502
|
-
import { type NextPageIntlayer
|
|
334
|
+
import { type NextPageIntlayer } from "next-intlayer";
|
|
503
335
|
import { IntlayerServerProvider, useIntlayer } from "next-intlayer/server";
|
|
504
336
|
|
|
505
337
|
const PageContent: FC = () => {
|
|
@@ -523,44 +355,7 @@ const Page: NextPageIntlayer = async ({ params }) => {
|
|
|
523
355
|
<PageContent />
|
|
524
356
|
<ServerComponentExample />
|
|
525
357
|
|
|
526
|
-
<
|
|
527
|
-
<ClientComponentExample />
|
|
528
|
-
</IntlayerClientProvider>
|
|
529
|
-
</IntlayerServerProvider>
|
|
530
|
-
);
|
|
531
|
-
};
|
|
532
|
-
|
|
533
|
-
export default Page;
|
|
534
|
-
```
|
|
535
|
-
|
|
536
|
-
```jsx fileName="src/app/[locale]/page.mjx" codeFormat="esm"
|
|
537
|
-
import { ClientComponentExample } from "@components/ClientComponentExample";
|
|
538
|
-
import { ServerComponentExample } from "@components/ServerComponentExample";
|
|
539
|
-
import { IntlayerClientProvider } from "next-intlayer";
|
|
540
|
-
import { IntlayerServerProvider, useIntlayer } from "next-intlayer/server";
|
|
541
|
-
|
|
542
|
-
const PageContent = () => {
|
|
543
|
-
const content = useIntlayer("page");
|
|
544
|
-
|
|
545
|
-
return (
|
|
546
|
-
<>
|
|
547
|
-
<p>{content.getStarted.main}</p>
|
|
548
|
-
<code>{content.getStarted.pageLink}</code>
|
|
549
|
-
</>
|
|
550
|
-
);
|
|
551
|
-
};
|
|
552
|
-
|
|
553
|
-
const Page = async ({ params }) => {
|
|
554
|
-
const { locale } = await params;
|
|
555
|
-
|
|
556
|
-
return (
|
|
557
|
-
<IntlayerServerProvider locale={locale}>
|
|
558
|
-
<PageContent />
|
|
559
|
-
<ServerComponentExample />
|
|
560
|
-
|
|
561
|
-
<IntlayerClientProvider locale={locale}>
|
|
562
|
-
<ClientComponentExample />
|
|
563
|
-
</IntlayerClientProvider>
|
|
358
|
+
<ClientComponentExample />
|
|
564
359
|
</IntlayerServerProvider>
|
|
565
360
|
);
|
|
566
361
|
};
|
|
@@ -568,45 +363,12 @@ const Page = async ({ params }) => {
|
|
|
568
363
|
export default Page;
|
|
569
364
|
```
|
|
570
365
|
|
|
571
|
-
```jsx fileName="src/app/[locale]/page.csx" codeFormat="commonjs"
|
|
572
|
-
import { ClientComponentExample } from "@components/ClientComponentExample";
|
|
573
|
-
import { ServerComponentExample } from "@components/ServerComponentExample";
|
|
574
|
-
import { IntlayerClientProvider } from "next-intlayer";
|
|
575
|
-
import { IntlayerServerProvider, useIntlayer } from "next-intlayer/server";
|
|
576
|
-
|
|
577
|
-
const PageContent = () => {
|
|
578
|
-
const content = useIntlayer("page");
|
|
579
|
-
|
|
580
|
-
return (
|
|
581
|
-
<>
|
|
582
|
-
<p>{content.getStarted.main}</p>
|
|
583
|
-
<code>{content.getStarted.pageLink}</code>
|
|
584
|
-
</>
|
|
585
|
-
);
|
|
586
|
-
};
|
|
587
|
-
|
|
588
|
-
const Page = async ({ params }) => {
|
|
589
|
-
const { locale } = await params;
|
|
590
|
-
|
|
591
|
-
return (
|
|
592
|
-
<IntlayerServerProvider locale={locale}>
|
|
593
|
-
<PageContent />
|
|
594
|
-
<ServerComponentExample />
|
|
595
|
-
|
|
596
|
-
<IntlayerClientProvider locale={locale}>
|
|
597
|
-
<ClientComponentExample />
|
|
598
|
-
</IntlayerClientProvider>
|
|
599
|
-
</IntlayerServerProvider>
|
|
600
|
-
);
|
|
601
|
-
};
|
|
602
|
-
```
|
|
603
|
-
|
|
604
366
|
- **`IntlayerClientProvider`** est utilisé pour fournir la locale aux composants côté client. Il peut être placé dans n'importe quel composant parent, y compris le layout. Cependant, il est recommandé de le placer dans un layout car Next.js partage le code du layout entre les pages, ce qui le rend plus efficace. En utilisant `IntlayerClientProvider` dans le layout, vous évitez de le réinitialiser pour chaque page, améliorant ainsi les performances et maintenant un contexte de localisation cohérent dans toute votre application.
|
|
605
367
|
- **`IntlayerServerProvider`** est utilisé pour fournir la locale aux enfants côté serveur. Il ne peut pas être défini dans le layout.
|
|
606
368
|
|
|
607
369
|
> La mise en page (layout) et la page ne peuvent pas partager un contexte serveur commun car le système de contexte serveur est basé sur un magasin de données par requête (via le mécanisme de [cache de React](https://react.dev/reference/react/cache)), ce qui entraîne la recréation de chaque "contexte" pour différents segments de l'application. Placer le provider dans une mise en page partagée briserait cette isolation, empêchant la bonne propagation des valeurs du contexte serveur à vos composants serveur.
|
|
608
370
|
|
|
609
|
-
```tsx {4,7} fileName="src/components/ClientComponentExample.tsx" codeFormat="typescript"
|
|
371
|
+
```tsx {4,7} fileName="src/components/ClientComponentExample.tsx" codeFormat={["typescript", "esm"]}
|
|
610
372
|
"use client";
|
|
611
373
|
|
|
612
374
|
import type { FC } from "react";
|
|
@@ -624,41 +386,7 @@ export const ClientComponentExample: FC = () => {
|
|
|
624
386
|
};
|
|
625
387
|
```
|
|
626
388
|
|
|
627
|
-
```
|
|
628
|
-
"use client";
|
|
629
|
-
|
|
630
|
-
import { useIntlayer } from "next-intlayer";
|
|
631
|
-
|
|
632
|
-
const ClientComponentExample = () => {
|
|
633
|
-
const content = useIntlayer("client-component-example"); // Créer la déclaration de contenu associée
|
|
634
|
-
|
|
635
|
-
return (
|
|
636
|
-
<div>
|
|
637
|
-
<h2>{content.title}</h2>
|
|
638
|
-
<p>{content.content}</p>
|
|
639
|
-
</div>
|
|
640
|
-
);
|
|
641
|
-
};
|
|
642
|
-
```
|
|
643
|
-
|
|
644
|
-
```jsx {3,6} fileName="src/components/ClientComponentExample.csx" codeFormat="commonjs"
|
|
645
|
-
"use client";
|
|
646
|
-
|
|
647
|
-
const { useIntlayer } = require("next-intlayer");
|
|
648
|
-
|
|
649
|
-
const ClientComponentExample = () => {
|
|
650
|
-
const content = useIntlayer("client-component-example"); // Créer la déclaration de contenu associée
|
|
651
|
-
|
|
652
|
-
return (
|
|
653
|
-
<div>
|
|
654
|
-
<h2>{content.title}</h2>
|
|
655
|
-
<p>{content.content}</p>
|
|
656
|
-
</div>
|
|
657
|
-
);
|
|
658
|
-
};
|
|
659
|
-
```
|
|
660
|
-
|
|
661
|
-
```tsx {2} fileName="src/components/ServerComponentExample.tsx" codeFormat="typescript"
|
|
389
|
+
```tsx {2} fileName="src/components/ServerComponentExample.tsx" codeFormat={["typescript", "esm"]}
|
|
662
390
|
import type { FC } from "react";
|
|
663
391
|
import { useIntlayer } from "next-intlayer/server";
|
|
664
392
|
|
|
@@ -674,36 +402,6 @@ export const ServerComponentExample: FC = () => {
|
|
|
674
402
|
};
|
|
675
403
|
```
|
|
676
404
|
|
|
677
|
-
```jsx {1} fileName="src/components/ServerComponentExample.mjx" codeFormat="esm"
|
|
678
|
-
import { useIntlayer } from "next-intlayer/server";
|
|
679
|
-
|
|
680
|
-
const ServerComponentExample = () => {
|
|
681
|
-
const content = useIntlayer("server-component-example"); // Créer la déclaration de contenu associée
|
|
682
|
-
|
|
683
|
-
return (
|
|
684
|
-
<div>
|
|
685
|
-
<h2>{content.title}</h2>
|
|
686
|
-
<p>{content.content}</p>
|
|
687
|
-
</div>
|
|
688
|
-
);
|
|
689
|
-
};
|
|
690
|
-
```
|
|
691
|
-
|
|
692
|
-
```jsx {1} fileName="src/components/ServerComponentExample.csx" codeFormat="commonjs"
|
|
693
|
-
const { useIntlayer } = require("next-intlayer/server");
|
|
694
|
-
|
|
695
|
-
const ServerComponentExample = () => {
|
|
696
|
-
const content = useIntlayer("server-component-example"); // Créez la déclaration de contenu associée
|
|
697
|
-
|
|
698
|
-
return (
|
|
699
|
-
<div>
|
|
700
|
-
<h2>{content.title}</h2>
|
|
701
|
-
<p>{content.content}</p>
|
|
702
|
-
</div>
|
|
703
|
-
);
|
|
704
|
-
};
|
|
705
|
-
```
|
|
706
|
-
|
|
707
405
|
> Si vous souhaitez utiliser votre contenu dans un attribut de type `string`, tel que `alt`, `title`, `href`, `aria-label`, etc., vous devez appeler la valeur de la fonction, comme ceci :
|
|
708
406
|
|
|
709
407
|
> ```jsx
|
|
@@ -718,7 +416,7 @@ const ServerComponentExample = () => {
|
|
|
718
416
|
|
|
719
417
|
Configurez un proxy pour détecter la langue préférée de l'utilisateur :
|
|
720
418
|
|
|
721
|
-
```typescript fileName="src/proxy.ts" codeFormat="typescript"
|
|
419
|
+
```typescript fileName="src/proxy.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
722
420
|
export { intlayerProxy as proxy } from "next-intlayer/proxy";
|
|
723
421
|
|
|
724
422
|
export const config = {
|
|
@@ -727,36 +425,13 @@ export const config = {
|
|
|
727
425
|
};
|
|
728
426
|
```
|
|
729
427
|
|
|
730
|
-
|
|
731
|
-
export { intlayerProxy as proxy } from "next-intlayer/proxy";
|
|
428
|
+
> Le `intlayerProxy` est utilisé pour détecter la locale préférée de l'utilisateur et le rediriger vers l'URL appropriée comme spécifié dans la [configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/configuration.md). De plus, il permet de sauvegarder la locale préférée de l'utilisateur dans un cookie.
|
|
732
429
|
|
|
733
|
-
|
|
734
|
-
matcher:
|
|
735
|
-
"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\..*|_next).*)",
|
|
736
|
-
};
|
|
737
|
-
```
|
|
430
|
+
> Si vous avez besoin de chaîner plusieurs proxies ensemble (par exemple, `intlayerProxy` avec une authentification ou des proxies personnalisés), Intlayer fournit désormais un helper appelé `multipleProxies`.
|
|
738
431
|
|
|
739
|
-
```
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
// Configuration du proxy avec un matcher pour exclure certaines routes
|
|
744
|
-
const config = {
|
|
745
|
-
matcher:
|
|
746
|
-
"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\..*|_next).*)",
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
// Export du proxy et de la configuration
|
|
750
|
-
module.exports = { proxy: intlayerProxy, config };
|
|
751
|
-
```
|
|
752
|
-
|
|
753
|
-
> Le `intlayerProxy` est utilisé pour détecter la locale préférée de l'utilisateur et le rediriger vers l'URL appropriée comme spécifié dans la [configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/configuration.md). De plus, il permet de sauvegarder la locale préférée de l'utilisateur dans un cookie.
|
|
754
|
-
|
|
755
|
-
> Si vous avez besoin de chaîner plusieurs proxies ensemble (par exemple, `intlayerProxy` avec une authentification ou des proxies personnalisés), Intlayer fournit désormais un helper appelé `multipleProxies`.
|
|
756
|
-
|
|
757
|
-
```ts
|
|
758
|
-
import { multipleProxies, intlayerProxy } from "next-intlayer/proxy";
|
|
759
|
-
import { customProxy } from "@utils/customProxy";
|
|
432
|
+
```ts
|
|
433
|
+
import { multipleProxies, intlayerProxy } from "next-intlayer/proxy";
|
|
434
|
+
import { customProxy } from "@utils/customProxy";
|
|
760
435
|
|
|
761
436
|
export const proxy = multipleProxies([intlayerProxy, customProxy]);
|
|
762
437
|
```
|
|
@@ -765,7 +440,7 @@ export const proxy = multipleProxies([intlayerProxy, customProxy]);
|
|
|
765
440
|
|
|
766
441
|
Dans le cas où vous souhaitez internationaliser vos métadonnées, telles que le titre de votre page, vous pouvez utiliser la fonction `generateMetadata` fournie par Next.js. À l'intérieur, vous pouvez récupérer le contenu depuis la fonction `getIntlayer` pour traduire vos métadonnées.
|
|
767
442
|
|
|
768
|
-
```typescript fileName="src/app/[locale]/metadata.content.ts" contentDeclarationFormat="typescript"
|
|
443
|
+
```typescript fileName="src/app/[locale]/metadata.content.ts" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
|
|
769
444
|
import { type Dictionary, t } from "intlayer";
|
|
770
445
|
import { Metadata } from "next";
|
|
771
446
|
|
|
@@ -788,52 +463,6 @@ const metadataContent = {
|
|
|
788
463
|
export default metadataContent;
|
|
789
464
|
```
|
|
790
465
|
|
|
791
|
-
```javascript fileName="src/app/[locale]/metadata.content.mjs" contentDeclarationFormat="esm"
|
|
792
|
-
import { t } from "intlayer";
|
|
793
|
-
|
|
794
|
-
/** @type {import('intlayer').Dictionary<import('next').Metadata>} */
|
|
795
|
-
const metadataContent = {
|
|
796
|
-
key: "page-metadata",
|
|
797
|
-
content: {
|
|
798
|
-
title: t({
|
|
799
|
-
en: "Créer une application Next.js",
|
|
800
|
-
fr: "Créer une application Next.js",
|
|
801
|
-
es: "Crear una aplicación Next.js",
|
|
802
|
-
}),
|
|
803
|
-
description: t({
|
|
804
|
-
en: "Généré par create next app",
|
|
805
|
-
fr: "Généré par create next app",
|
|
806
|
-
es: "Generado por create next app",
|
|
807
|
-
}),
|
|
808
|
-
},
|
|
809
|
-
};
|
|
810
|
-
|
|
811
|
-
export default metadataContent;
|
|
812
|
-
```
|
|
813
|
-
|
|
814
|
-
```javascript fileName="src/app/[locale]/metadata.content.cjs" contentDeclarationFormat="commonjs"
|
|
815
|
-
const { t } = require("intlayer");
|
|
816
|
-
|
|
817
|
-
/** @type {import('intlayer').Dictionary<import('next').Metadata>} */
|
|
818
|
-
const metadataContent = {
|
|
819
|
-
key: "page-metadata",
|
|
820
|
-
content: {
|
|
821
|
-
title: t({
|
|
822
|
-
en: "Create Next App",
|
|
823
|
-
fr: "Créer une application Next.js",
|
|
824
|
-
es: "Crear una aplicación Next.js",
|
|
825
|
-
}),
|
|
826
|
-
description: t({
|
|
827
|
-
en: "Generated by create next app",
|
|
828
|
-
fr: "Généré par create next app",
|
|
829
|
-
es: "Generado por create next app",
|
|
830
|
-
}),
|
|
831
|
-
},
|
|
832
|
-
};
|
|
833
|
-
|
|
834
|
-
module.exports = metadataContent;
|
|
835
|
-
```
|
|
836
|
-
|
|
837
466
|
```json fileName="src/app/[locale]/metadata.content.json" contentDeclarationFormat="json"
|
|
838
467
|
{
|
|
839
468
|
"key": "page-metadata",
|
|
@@ -858,7 +487,7 @@ module.exports = metadataContent;
|
|
|
858
487
|
}
|
|
859
488
|
```
|
|
860
489
|
|
|
861
|
-
````typescript fileName="src/app/[locale]/layout.tsx or src/app/[locale]/page.tsx" codeFormat="typescript"
|
|
490
|
+
````typescript fileName="src/app/[locale]/layout.tsx or src/app/[locale]/page.tsx" codeFormat={["typescript", "esm"]}
|
|
862
491
|
import { getIntlayer, getMultilingualUrls } from "intlayer";
|
|
863
492
|
import type { Metadata } from "next";
|
|
864
493
|
import type { LocalPromiseParams } from "next-intlayer";
|
|
@@ -904,95 +533,11 @@ export const generateMetadata = async ({
|
|
|
904
533
|
// ... Reste du code
|
|
905
534
|
````
|
|
906
535
|
|
|
907
|
-
````javascript fileName="src/app/[locale]/layout.mjs or src/app/[locale]/page.mjs" codeFormat="esm"
|
|
908
|
-
import { getIntlayer, getMultilingualUrls } from "intlayer";
|
|
909
|
-
|
|
910
|
-
export const generateMetadata = async ({ params }) => {
|
|
911
|
-
const { locale } = await params;
|
|
912
|
-
|
|
913
|
-
const metadata = getIntlayer("page-metadata", locale);
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* Génère un objet contenant toutes les URL pour chaque locale.
|
|
917
|
-
*
|
|
918
|
-
* Exemple :
|
|
919
|
-
* ```ts
|
|
920
|
-
* getMultilingualUrls('/about');
|
|
921
|
-
*
|
|
922
|
-
* // Retourne
|
|
923
|
-
* // {
|
|
924
|
-
* // en: '/about',
|
|
925
|
-
* // fr: '/fr/about',
|
|
926
|
-
* // es: '/es/about'
|
|
927
|
-
* // }
|
|
928
|
-
* ```
|
|
929
|
-
*/
|
|
930
|
-
const multilingualUrls = getMultilingualUrls("/");
|
|
931
|
-
const localizedUrl = multilingualUrls[locale];
|
|
932
|
-
|
|
933
|
-
return {
|
|
934
|
-
...metadata,
|
|
935
|
-
alternates: {
|
|
936
|
-
canonical: localizedUrl,
|
|
937
|
-
languages: { ...multilingualUrls, "x-default": "/" },
|
|
938
|
-
},
|
|
939
|
-
openGraph: {
|
|
940
|
-
url: localizedUrl,
|
|
941
|
-
},
|
|
942
|
-
};
|
|
943
|
-
};
|
|
944
|
-
|
|
945
|
-
// ... Reste du code
|
|
946
|
-
````
|
|
947
|
-
|
|
948
|
-
````javascript fileName="src/app/[locale]/layout.cjs or src/app/[locale]/page.cjs" codeFormat="commonjs"
|
|
949
|
-
const { getIntlayer, getMultilingualUrls } = require("intlayer");
|
|
950
|
-
|
|
951
|
-
const generateMetadata = async ({ params }) => {
|
|
952
|
-
const { locale } = await params;
|
|
953
|
-
|
|
954
|
-
const metadata = getIntlayer("page-metadata", locale);
|
|
955
|
-
|
|
956
|
-
/**
|
|
957
|
-
* Génère un objet contenant toutes les URL pour chaque locale.
|
|
958
|
-
*
|
|
959
|
-
* Exemple :
|
|
960
|
-
* ```ts
|
|
961
|
-
* getMultilingualUrls('/about');
|
|
962
|
-
*
|
|
963
|
-
* // Retourne
|
|
964
|
-
* // {
|
|
965
|
-
* // en: '/about',
|
|
966
|
-
* // fr: '/fr/about',
|
|
967
|
-
* // es: '/es/about'
|
|
968
|
-
* // }
|
|
969
|
-
* ```
|
|
970
|
-
*/
|
|
971
|
-
const multilingualUrls = getMultilingualUrls("/");
|
|
972
|
-
const localizedUrl = multilingualUrls[locale];
|
|
973
|
-
|
|
974
|
-
return {
|
|
975
|
-
...metadata,
|
|
976
|
-
alternates: {
|
|
977
|
-
canonical: localizedUrl,
|
|
978
|
-
languages: { ...multilingualUrls, "x-default": "/" },
|
|
979
|
-
},
|
|
980
|
-
openGraph: {
|
|
981
|
-
url: localizedUrl,
|
|
982
|
-
},
|
|
983
|
-
};
|
|
984
|
-
};
|
|
985
|
-
|
|
986
|
-
module.exports = { generateMetadata };
|
|
987
|
-
|
|
988
|
-
// ... Reste du code
|
|
989
|
-
````
|
|
990
|
-
|
|
991
536
|
> Notez que la fonction `getIntlayer` importée depuis `next-intlayer` retourne votre contenu enveloppé dans un `IntlayerNode`, permettant l'intégration avec l'éditeur visuel. En revanche, la fonction `getIntlayer` importée depuis `intlayer` retourne votre contenu directement sans propriétés supplémentaires.
|
|
992
537
|
|
|
993
538
|
Alternativement, vous pouvez utiliser la fonction `getTranslation` pour déclarer vos métadonnées. Cependant, il est recommandé d'utiliser des fichiers de déclaration de contenu afin d'automatiser la traduction de vos métadonnées et d'externaliser le contenu à un moment donné.
|
|
994
539
|
|
|
995
|
-
```typescript fileName="src/app/[locale]/layout.tsx or src/app/[locale]/page.tsx" codeFormat="typescript"
|
|
540
|
+
```typescript fileName="src/app/[locale]/layout.tsx or src/app/[locale]/page.tsx" codeFormat={["typescript", "esm"]}
|
|
996
541
|
import {
|
|
997
542
|
type IConfigLocales,
|
|
998
543
|
getTranslation,
|
|
@@ -1024,30 +569,6 @@ export const generateMetadata = async ({
|
|
|
1024
569
|
// ... Reste du code
|
|
1025
570
|
```
|
|
1026
571
|
|
|
1027
|
-
```javascript fileName="src/app/[locale]/layout.mjs or src/app/[locale]/page.mjs" codeFormat="esm"
|
|
1028
|
-
import { getTranslation, getMultilingualUrls } from "intlayer";
|
|
1029
|
-
|
|
1030
|
-
export const generateMetadata = async ({ params }) => {
|
|
1031
|
-
const { locale } = await params;
|
|
1032
|
-
const t = (content) => getTranslation(content, locale);
|
|
1033
|
-
|
|
1034
|
-
return {
|
|
1035
|
-
title: t({
|
|
1036
|
-
en: "My title",
|
|
1037
|
-
fr: "Mon titre",
|
|
1038
|
-
es: "Mi título",
|
|
1039
|
-
}),
|
|
1040
|
-
description: t({
|
|
1041
|
-
en: "My description",
|
|
1042
|
-
fr: "Ma description",
|
|
1043
|
-
es: "Mi descripción",
|
|
1044
|
-
}),
|
|
1045
|
-
};
|
|
1046
|
-
};
|
|
1047
|
-
|
|
1048
|
-
// ... Reste du code
|
|
1049
|
-
```
|
|
1050
|
-
|
|
1051
572
|
> En savoir plus sur l'optimisation des métadonnées [dans la documentation officielle de Next.js](https://nextjs.org/docs/app/building-your-application/optimizing/metadata).
|
|
1052
573
|
|
|
1053
574
|
```javascript fileName="src/app/[locale]/layout.cjs or src/app/[locale]/page.cjs" codeFormat="commonjs"
|
|
@@ -1083,7 +604,7 @@ module.exports = { generateMetadata };
|
|
|
1083
604
|
|
|
1084
605
|
Pour internationaliser votre `sitemap.xml` et `robots.txt`, vous pouvez utiliser la fonction `getMultilingualUrls` fournie par Intlayer. Cette fonction vous permet de générer des URLs multilingues pour votre sitemap.
|
|
1085
606
|
|
|
1086
|
-
```tsx fileName="src/app/sitemap.ts" codeFormat="typescript"
|
|
607
|
+
```tsx fileName="src/app/sitemap.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
1087
608
|
import { getMultilingualUrls } from "intlayer";
|
|
1088
609
|
import type { MetadataRoute } from "next";
|
|
1089
610
|
|
|
@@ -1120,79 +641,7 @@ const sitemap = (): MetadataRoute.Sitemap => [
|
|
|
1120
641
|
export default sitemap;
|
|
1121
642
|
```
|
|
1122
643
|
|
|
1123
|
-
```
|
|
1124
|
-
import { getMultilingualUrls } from "intlayer";
|
|
1125
|
-
|
|
1126
|
-
const sitemap = () => [
|
|
1127
|
-
{
|
|
1128
|
-
url: "https://example.com",
|
|
1129
|
-
alternates: {
|
|
1130
|
-
languages: {
|
|
1131
|
-
...getMultilingualUrls("https://example.com"),
|
|
1132
|
-
"x-default": "https://example.com",
|
|
1133
|
-
},
|
|
1134
|
-
},
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
url: "https://example.com/login",
|
|
1138
|
-
alternates: {
|
|
1139
|
-
languages: {
|
|
1140
|
-
...getMultilingualUrls("https://example.com/login"),
|
|
1141
|
-
"x-default": "https://example.com/login",
|
|
1142
|
-
},
|
|
1143
|
-
},
|
|
1144
|
-
},
|
|
1145
|
-
{
|
|
1146
|
-
url: "https://example.com/register",
|
|
1147
|
-
alternates: {
|
|
1148
|
-
languages: {
|
|
1149
|
-
...getMultilingualUrls("https://example.com/register"),
|
|
1150
|
-
"x-default": "https://example.com/register",
|
|
1151
|
-
},
|
|
1152
|
-
},
|
|
1153
|
-
},
|
|
1154
|
-
];
|
|
1155
|
-
|
|
1156
|
-
export default sitemap;
|
|
1157
|
-
```
|
|
1158
|
-
|
|
1159
|
-
```jsx fileName="src/app/sitemap.csx" codeFormat="commonjs"
|
|
1160
|
-
const { getMultilingualUrls } = require("intlayer");
|
|
1161
|
-
|
|
1162
|
-
const sitemap = () => [
|
|
1163
|
-
{
|
|
1164
|
-
url: "https://example.com",
|
|
1165
|
-
alternates: {
|
|
1166
|
-
languages: {
|
|
1167
|
-
...getMultilingualUrls("https://example.com"),
|
|
1168
|
-
"x-default": "https://example.com",
|
|
1169
|
-
},
|
|
1170
|
-
},
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
url: "https://example.com/login",
|
|
1174
|
-
alternates: {
|
|
1175
|
-
languages: {
|
|
1176
|
-
...getMultilingualUrls("https://example.com/login"),
|
|
1177
|
-
"x-default": "https://example.com/login",
|
|
1178
|
-
},
|
|
1179
|
-
},
|
|
1180
|
-
},
|
|
1181
|
-
{
|
|
1182
|
-
url: "https://example.com/register",
|
|
1183
|
-
alternates: {
|
|
1184
|
-
languages: {
|
|
1185
|
-
...getMultilingualUrls("https://example.com/register"),
|
|
1186
|
-
"x-default": "https://example.com/register",
|
|
1187
|
-
},
|
|
1188
|
-
},
|
|
1189
|
-
},
|
|
1190
|
-
];
|
|
1191
|
-
|
|
1192
|
-
module.exports = sitemap;
|
|
1193
|
-
```
|
|
1194
|
-
|
|
1195
|
-
```tsx fileName="src/app/robots.ts" codeFormat="typescript"
|
|
644
|
+
```tsx fileName="src/app/robots.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
1196
645
|
import type { MetadataRoute } from "next";
|
|
1197
646
|
import { getMultilingualUrls } from "intlayer";
|
|
1198
647
|
|
|
@@ -1229,51 +678,13 @@ const robots = (): MetadataRoute.Robots => ({
|
|
|
1229
678
|
export default robots;
|
|
1230
679
|
```
|
|
1231
680
|
|
|
1232
|
-
```jsx fileName="src/app/robots.mjx" codeFormat="esm"
|
|
1233
|
-
import { getMultilingualUrls } from "intlayer";
|
|
1234
|
-
|
|
1235
|
-
const getAllMultilingualUrls = (urls) =>
|
|
1236
|
-
urls.flatMap((url) => Object.values(getMultilingualUrls(url)));
|
|
1237
|
-
|
|
1238
|
-
const robots = () => ({
|
|
1239
|
-
rules: {
|
|
1240
|
-
userAgent: "*",
|
|
1241
|
-
allow: ["/"],
|
|
1242
|
-
disallow: getAllMultilingualUrls(["/login", "/register"]),
|
|
1243
|
-
},
|
|
1244
|
-
host: "https://example.com",
|
|
1245
|
-
sitemap: `https://example.com/sitemap.xml`,
|
|
1246
|
-
});
|
|
1247
|
-
|
|
1248
|
-
export default robots;
|
|
1249
|
-
```
|
|
1250
|
-
|
|
1251
|
-
```jsx fileName="src/app/robots.csx" codeFormat="commonjs"
|
|
1252
|
-
const { getMultilingualUrls } = require("intlayer");
|
|
1253
|
-
|
|
1254
|
-
const getAllMultilingualUrls = (urls) =>
|
|
1255
|
-
urls.flatMap((url) => Object.values(getMultilingualUrls(url)));
|
|
1256
|
-
|
|
1257
|
-
const robots = () => ({
|
|
1258
|
-
rules: {
|
|
1259
|
-
userAgent: "*",
|
|
1260
|
-
allow: ["/"],
|
|
1261
|
-
disallow: getAllMultilingualUrls(["/login", "/register"]),
|
|
1262
|
-
},
|
|
1263
|
-
host: "https://example.com",
|
|
1264
|
-
sitemap: `https://example.com/sitemap.xml`,
|
|
1265
|
-
});
|
|
1266
|
-
|
|
1267
|
-
module.exports = robots;
|
|
1268
|
-
```
|
|
1269
|
-
|
|
1270
681
|
> En savoir plus sur l'optimisation du sitemap [dans la documentation officielle de Next.js](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap). En savoir plus sur l'optimisation du fichier robots.txt [dans la documentation officielle de Next.js](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/robots).
|
|
1271
682
|
|
|
1272
683
|
### (Optionnel) Étape 10 : Changer la langue de votre contenu
|
|
1273
684
|
|
|
1274
685
|
Pour changer la langue de votre contenu dans Next.js, la méthode recommandée est d'utiliser le composant `Link` pour rediriger les utilisateurs vers la page localisée appropriée. Le composant `Link` permet le préchargement de la page, ce qui aide à éviter un rechargement complet de la page.
|
|
1275
686
|
|
|
1276
|
-
```tsx fileName="src/components/LocaleSwitcher.tsx" codeFormat="typescript"
|
|
687
|
+
```tsx fileName="src/components/LocaleSwitcher.tsx" codeFormat={["typescript", "esm"]}
|
|
1277
688
|
"use client";
|
|
1278
689
|
|
|
1279
690
|
import type { FC } from "react";
|
|
@@ -1326,110 +737,6 @@ export const LocaleSwitcher: FC = () => {
|
|
|
1326
737
|
};
|
|
1327
738
|
```
|
|
1328
739
|
|
|
1329
|
-
```jsx fileName="src/components/LocaleSwitcher.msx" codeFormat="esm"
|
|
1330
|
-
"use client";
|
|
1331
|
-
|
|
1332
|
-
import {
|
|
1333
|
-
Locales,
|
|
1334
|
-
getHTMLTextDir,
|
|
1335
|
-
getLocaleName,
|
|
1336
|
-
getLocalizedUrl,
|
|
1337
|
-
} from "intlayer";
|
|
1338
|
-
import { useLocale } from "next-intlayer";
|
|
1339
|
-
import Link from "next/link";
|
|
1340
|
-
|
|
1341
|
-
export const LocaleSwitcher = () => {
|
|
1342
|
-
const { locale, pathWithoutLocale, availableLocales, setLocale } =
|
|
1343
|
-
useLocale();
|
|
1344
|
-
|
|
1345
|
-
return (
|
|
1346
|
-
<div>
|
|
1347
|
-
<button popoverTarget="localePopover">{getLocaleName(locale)}</button>
|
|
1348
|
-
<div id="localePopover" popover="auto">
|
|
1349
|
-
{availableLocales.map((localeItem) => (
|
|
1350
|
-
<Link
|
|
1351
|
-
href={getLocalizedUrl(pathWithoutLocale, localeItem)}
|
|
1352
|
-
key={localeItem}
|
|
1353
|
-
aria-current={locale === localeItem ? "page" : undefined}
|
|
1354
|
-
onClick={() => setLocale(localeItem)}
|
|
1355
|
-
replace // Garantira que le bouton "retour" du navigateur redirige vers la page précédente
|
|
1356
|
-
>
|
|
1357
|
-
<span>
|
|
1358
|
-
{/* Locale - par exemple FR */}
|
|
1359
|
-
{localeItem}
|
|
1360
|
-
</span>
|
|
1361
|
-
<span>
|
|
1362
|
-
{/* Langue dans sa propre locale - par exemple Français */}
|
|
1363
|
-
{getLocaleName(localeItem, locale)}
|
|
1364
|
-
</span>
|
|
1365
|
-
<span dir={getHTMLTextDir(localeItem)} lang={localeItem}>
|
|
1366
|
-
{/* Langue dans la locale actuelle - par exemple Francés avec la locale actuelle définie sur Locales.SPANISH */}
|
|
1367
|
-
{getLocaleName(localeItem)}
|
|
1368
|
-
</span>
|
|
1369
|
-
<span dir="ltr" lang={Locales.ENGLISH}>
|
|
1370
|
-
{/* Langue en anglais - par exemple French */}
|
|
1371
|
-
{getLocaleName(localeItem, Locales.ENGLISH)}
|
|
1372
|
-
</span>
|
|
1373
|
-
</Link>
|
|
1374
|
-
))}
|
|
1375
|
-
</div>
|
|
1376
|
-
</div>
|
|
1377
|
-
);
|
|
1378
|
-
};
|
|
1379
|
-
```
|
|
1380
|
-
|
|
1381
|
-
```jsx fileName="src/components/LocaleSwitcher.csx" codeFormat="commonjs"
|
|
1382
|
-
"use client";
|
|
1383
|
-
|
|
1384
|
-
const {
|
|
1385
|
-
Locales,
|
|
1386
|
-
getHTMLTextDir,
|
|
1387
|
-
getLocaleName,
|
|
1388
|
-
getLocalizedUrl,
|
|
1389
|
-
} = require("intlayer");
|
|
1390
|
-
const { useLocale } = require("next-intlayer");
|
|
1391
|
-
const Link = require("next/link");
|
|
1392
|
-
|
|
1393
|
-
export const LocaleSwitcher = () => {
|
|
1394
|
-
const { locale, pathWithoutLocale, availableLocales, setLocale } =
|
|
1395
|
-
useLocale();
|
|
1396
|
-
|
|
1397
|
-
return (
|
|
1398
|
-
<div>
|
|
1399
|
-
<button popoverTarget="localePopover">{getLocaleName(locale)}</button>
|
|
1400
|
-
<div id="localePopover" popover="auto">
|
|
1401
|
-
{availableLocales.map((localeItem) => (
|
|
1402
|
-
<Link
|
|
1403
|
-
href={getLocalizedUrl(pathWithoutLocale, localeItem)}
|
|
1404
|
-
key={localeItem}
|
|
1405
|
-
aria-current={locale === localeItem ? "page" : undefined}
|
|
1406
|
-
onClick={() => setLocale(localeItem)}
|
|
1407
|
-
replace // Garantira que le bouton "retour" du navigateur redirige vers la page précédente
|
|
1408
|
-
>
|
|
1409
|
-
<span>
|
|
1410
|
-
{/* Locale - ex. FR */}
|
|
1411
|
-
{localeItem}
|
|
1412
|
-
</span>
|
|
1413
|
-
<span>
|
|
1414
|
-
{/* Langue dans sa propre locale - ex. Français */}
|
|
1415
|
-
{getLocaleName(localeItem, locale)}
|
|
1416
|
-
</span>
|
|
1417
|
-
<span dir={getHTMLTextDir(localeItem)} lang={localeItem}>
|
|
1418
|
-
{/* Langue dans la locale courante - ex. Francés avec la locale courante définie sur Locales.SPANISH */}
|
|
1419
|
-
{getLocaleName(localeItem)}
|
|
1420
|
-
</span>
|
|
1421
|
-
<span dir="ltr" lang={Locales.ENGLISH}>
|
|
1422
|
-
{/* Langue en anglais - par exemple French */}
|
|
1423
|
-
{getLocaleName(localeItem, Locales.ENGLISH)}
|
|
1424
|
-
</span>
|
|
1425
|
-
</Link>
|
|
1426
|
-
))}
|
|
1427
|
-
</div>
|
|
1428
|
-
</div>
|
|
1429
|
-
);
|
|
1430
|
-
};
|
|
1431
|
-
```
|
|
1432
|
-
|
|
1433
740
|
> Une autre manière est d'utiliser la fonction `setLocale` fournie par le hook `useLocale`. Cette fonction ne permettra pas le préchargement de la page. Voir la [documentation du hook `useLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/next-intlayer/useLocale.md) pour plus de détails.
|
|
1434
741
|
|
|
1435
742
|
> Vous pouvez également définir une fonction dans l'option `onLocaleChange` pour déclencher une fonction personnalisée lorsque la locale change.
|
|
@@ -1478,7 +785,7 @@ Ce comportement est utile pour plusieurs raisons :
|
|
|
1478
785
|
|
|
1479
786
|
Voici l'implémentation d'un composant `Link` localisé en TypeScript :
|
|
1480
787
|
|
|
1481
|
-
```tsx fileName="src/components/Link.tsx" codeFormat="typescript"
|
|
788
|
+
```tsx fileName="src/components/Link.tsx" codeFormat={["typescript", "esm"]}
|
|
1482
789
|
"use client";
|
|
1483
790
|
|
|
1484
791
|
import { getLocalizedUrl } from "intlayer";
|
|
@@ -1518,74 +825,6 @@ export const Link: FC<PropsWithChildren<NextLinkProps>> = ({
|
|
|
1518
825
|
};
|
|
1519
826
|
```
|
|
1520
827
|
|
|
1521
|
-
```jsx fileName="src/components/Link.mjx" codeFormat="esm"
|
|
1522
|
-
"use client";
|
|
1523
|
-
|
|
1524
|
-
import { getLocalizedUrl } from "intlayer";
|
|
1525
|
-
import NextLink from "next/link";
|
|
1526
|
-
import { useLocale } from "next-intlayer";
|
|
1527
|
-
|
|
1528
|
-
/**
|
|
1529
|
-
* Fonction utilitaire pour vérifier si une URL donnée est externe.
|
|
1530
|
-
* Si l'URL commence par http:// ou https://, elle est considérée comme externe.
|
|
1531
|
-
*/
|
|
1532
|
-
export const checkIsExternalLink = (href) => /^https?:\/\//.test(href ?? "");
|
|
1533
|
-
|
|
1534
|
-
/**
|
|
1535
|
-
* Composant Link personnalisé qui adapte l'attribut href en fonction de la locale actuelle.
|
|
1536
|
-
* Pour les liens internes, il utilise `getLocalizedUrl` pour préfixer l'URL avec la locale (ex. : /fr/about).
|
|
1537
|
-
* Cela garantit que la navigation reste dans le même contexte de locale.
|
|
1538
|
-
*/
|
|
1539
|
-
export const Link = ({ href, children, ...props }) => {
|
|
1540
|
-
const { locale } = useLocale();
|
|
1541
|
-
const isExternalLink = checkIsExternalLink(href.toString());
|
|
1542
|
-
|
|
1543
|
-
// Si le lien est interne et qu'un href valide est fourni, obtenir l'URL localisée.
|
|
1544
|
-
const hrefI18n =
|
|
1545
|
-
href && !isExternalLink ? getLocalizedUrl(href.toString(), locale) : href;
|
|
1546
|
-
|
|
1547
|
-
return (
|
|
1548
|
-
<NextLink href={hrefI18n} {...props}>
|
|
1549
|
-
{children}
|
|
1550
|
-
</NextLink>
|
|
1551
|
-
);
|
|
1552
|
-
};
|
|
1553
|
-
```
|
|
1554
|
-
|
|
1555
|
-
```jsx fileName="src/components/Link.csx" codeFormat="commonjs"
|
|
1556
|
-
"use client";
|
|
1557
|
-
|
|
1558
|
-
const { getLocalizedUrl } = require("intlayer");
|
|
1559
|
-
const NextLink = require("next/link");
|
|
1560
|
-
const { useLocale } = require("next-intlayer");
|
|
1561
|
-
|
|
1562
|
-
/**
|
|
1563
|
-
* Fonction utilitaire pour vérifier si une URL donnée est externe.
|
|
1564
|
-
* Si l'URL commence par http:// ou https://, elle est considérée comme externe.
|
|
1565
|
-
*/
|
|
1566
|
-
const checkIsExternalLink = (href) => /^https?:\/\//.test(href ?? "");
|
|
1567
|
-
|
|
1568
|
-
/**
|
|
1569
|
-
* Un composant Link personnalisé qui adapte l'attribut href en fonction de la locale actuelle.
|
|
1570
|
-
* Pour les liens internes, il utilise `getLocalizedUrl` pour préfixer l'URL avec la locale (par exemple, /fr/about).
|
|
1571
|
-
* Cela garantit que la navigation reste dans le même contexte de locale.
|
|
1572
|
-
*/
|
|
1573
|
-
const Link = ({ href, children, ...props }) => {
|
|
1574
|
-
const { locale } = useLocale();
|
|
1575
|
-
const isExternalLink = checkIsExternalLink(href.toString());
|
|
1576
|
-
|
|
1577
|
-
// Si le lien est interne et qu'un href valide est fourni, obtenir l'URL localisée.
|
|
1578
|
-
const hrefI18n =
|
|
1579
|
-
href && !isExternalLink ? getLocalizedUrl(href.toString(), locale) : href;
|
|
1580
|
-
|
|
1581
|
-
return (
|
|
1582
|
-
<NextLink href={hrefI18n} {...props}>
|
|
1583
|
-
{children}
|
|
1584
|
-
</NextLink>
|
|
1585
|
-
);
|
|
1586
|
-
};
|
|
1587
|
-
```
|
|
1588
|
-
|
|
1589
828
|
#### Comment ça fonctionne
|
|
1590
829
|
|
|
1591
830
|
- **Détection des liens externes** :
|
|
@@ -1663,7 +902,7 @@ Pour faciliter ce processus, Intlayer propose un [compilateur](https://github.co
|
|
|
1663
902
|
|
|
1664
903
|
Pour le configurer, vous pouvez ajouter une section `compiler` dans votre fichier `intlayer.config.ts` :
|
|
1665
904
|
|
|
1666
|
-
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
905
|
+
```typescript fileName="intlayer.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
|
|
1667
906
|
import { type IntlayerConfig } from "intlayer";
|
|
1668
907
|
|
|
1669
908
|
const config: IntlayerConfig = {
|
|
@@ -1695,68 +934,6 @@ const config: IntlayerConfig = {
|
|
|
1695
934
|
export default config;
|
|
1696
935
|
```
|
|
1697
936
|
|
|
1698
|
-
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
1699
|
-
/** @type {import('intlayer').IntlayerConfig} */
|
|
1700
|
-
const config = {
|
|
1701
|
-
// ... Reste de votre configuration
|
|
1702
|
-
compiler: {
|
|
1703
|
-
/**
|
|
1704
|
-
* Indique si le compilateur doit être activé.
|
|
1705
|
-
*/
|
|
1706
|
-
enabled: true,
|
|
1707
|
-
|
|
1708
|
-
/**
|
|
1709
|
-
* Définit le chemin des fichiers de sortie
|
|
1710
|
-
*/
|
|
1711
|
-
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1712
|
-
|
|
1713
|
-
/**
|
|
1714
|
-
* Indique si les composants doivent être sauvegardés après avoir été transformés.
|
|
1715
|
-
* De cette façon, le compilateur peut être exécuté une seule fois pour transformer l'application, puis il peut être supprimé.
|
|
1716
|
-
*/
|
|
1717
|
-
saveComponents: false,
|
|
1718
|
-
|
|
1719
|
-
/**
|
|
1720
|
-
* Préfixe de clé de dictionnaire
|
|
1721
|
-
*/
|
|
1722
|
-
dictionaryKeyPrefix: "",
|
|
1723
|
-
},
|
|
1724
|
-
};
|
|
1725
|
-
|
|
1726
|
-
export default config;
|
|
1727
|
-
```
|
|
1728
|
-
|
|
1729
|
-
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
1730
|
-
/** @type {import('intlayer').IntlayerConfig} */
|
|
1731
|
-
const config = {
|
|
1732
|
-
// ... Reste de votre configuration
|
|
1733
|
-
compiler: {
|
|
1734
|
-
/**
|
|
1735
|
-
* Indique si le compilateur doit être activé.
|
|
1736
|
-
*/
|
|
1737
|
-
enabled: true,
|
|
1738
|
-
|
|
1739
|
-
/**
|
|
1740
|
-
* Définit le chemin des fichiers de sortie
|
|
1741
|
-
*/
|
|
1742
|
-
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1743
|
-
|
|
1744
|
-
/**
|
|
1745
|
-
* Indique si les composants doivent être sauvegardés après avoir été transformés.
|
|
1746
|
-
* De cette façon, le compilateur peut être exécuté une seule fois pour transformer l'application, puis il peut être supprimé.
|
|
1747
|
-
*/
|
|
1748
|
-
saveComponents: false,
|
|
1749
|
-
|
|
1750
|
-
/**
|
|
1751
|
-
* Préfixe de clé de dictionnaire
|
|
1752
|
-
*/
|
|
1753
|
-
dictionaryKeyPrefix: "",
|
|
1754
|
-
},
|
|
1755
|
-
};
|
|
1756
|
-
|
|
1757
|
-
module.exports = config;
|
|
1758
|
-
```
|
|
1759
|
-
|
|
1760
937
|
<Tabs>
|
|
1761
938
|
<Tab value='Commande d'extraction'>
|
|
1762
939
|
|