@intlayer/docs 8.4.9 → 8.5.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/dist/cjs/generated/docs.entry.cjs +40 -0
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +40 -0
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +2 -0
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/docs/ar/dictionary/html.md +22 -22
- package/docs/ar/dictionary/markdown.md +18 -18
- package/docs/ar/intlayer_with_analog.md +2 -13
- package/docs/ar/intlayer_with_angular.md +1 -12
- package/docs/ar/intlayer_with_nextjs_14.md +1 -1
- package/docs/ar/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ar/intlayer_with_react_router_v7.md +6 -1
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/ar/intlayer_with_storybook.md +2 -5
- package/docs/ar/intlayer_with_svelte_kit.md +9 -5
- package/docs/ar/intlayer_with_vite+lit.md +738 -0
- package/docs/ar/intlayer_with_vite+react.md +16 -4
- package/docs/ar/intlayer_with_vite+solid.md +1 -1
- package/docs/ar/intlayer_with_vite+svelte.md +13 -6
- package/docs/ar/intlayer_with_vite+vanilla.md +722 -0
- package/docs/ar/intlayer_with_vite+vue.md +21 -5
- package/docs/ar/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/ar/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/ar/releases/v8.md +27 -27
- package/docs/bn/intlayer_with_storybook.md +2 -5
- package/docs/bn/intlayer_with_vite+lit.md +738 -0
- package/docs/bn/intlayer_with_vite+vanilla.md +722 -0
- package/docs/cs/intlayer_with_storybook.md +2 -5
- package/docs/cs/intlayer_with_vite+lit.md +738 -0
- package/docs/cs/intlayer_with_vite+vanilla.md +722 -0
- package/docs/de/dictionary/html.md +146 -24
- package/docs/de/dictionary/markdown.md +143 -25
- package/docs/de/intlayer_with_analog.md +2 -13
- package/docs/de/intlayer_with_angular.md +1 -12
- package/docs/de/intlayer_with_nextjs_14.md +1 -1
- package/docs/de/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/de/intlayer_with_react_router_v7.md +6 -1
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/de/intlayer_with_storybook.md +2 -5
- package/docs/de/intlayer_with_svelte_kit.md +9 -5
- package/docs/de/intlayer_with_vite+lit.md +747 -0
- package/docs/de/intlayer_with_vite+react.md +16 -4
- package/docs/de/intlayer_with_vite+solid.md +1 -1
- package/docs/de/intlayer_with_vite+svelte.md +19 -6
- package/docs/de/intlayer_with_vite+vanilla.md +722 -0
- package/docs/de/intlayer_with_vite+vue.md +21 -5
- package/docs/de/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/de/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/de/releases/v8.md +27 -27
- package/docs/en/compiler.md +4 -1
- package/docs/en/configuration.md +4 -1
- package/docs/en/dictionary/html.md +146 -24
- package/docs/en/dictionary/markdown.md +143 -21
- package/docs/en/intlayer_with_analog.md +3 -14
- package/docs/en/intlayer_with_angular.md +1 -12
- package/docs/en/intlayer_with_nextjs_14.md +1 -1
- package/docs/en/intlayer_with_nextjs_16.md +12 -3
- package/docs/en/intlayer_with_nextjs_compiler.md +16 -4
- package/docs/en/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/en/intlayer_with_react_router_v7.md +17 -4
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +18 -4
- package/docs/en/intlayer_with_storybook.md +2 -5
- package/docs/en/intlayer_with_svelte_kit.md +21 -8
- package/docs/en/intlayer_with_tanstack.md +12 -3
- package/docs/en/intlayer_with_vite+lit.md +750 -0
- package/docs/en/intlayer_with_vite+preact.md +31 -3
- package/docs/en/intlayer_with_vite+react.md +28 -7
- package/docs/en/intlayer_with_vite+react_compiler.md +4 -1
- package/docs/en/intlayer_with_vite+solid.md +31 -3
- package/docs/en/intlayer_with_vite+svelte.md +30 -9
- package/docs/en/intlayer_with_vite+vanilla.md +725 -0
- package/docs/en/intlayer_with_vite+vue.md +28 -7
- package/docs/en/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/en/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/en/readme.md +1 -0
- package/docs/en/releases/v8.md +27 -27
- package/docs/en-GB/compiler.md +4 -1
- package/docs/en-GB/configuration.md +4 -1
- package/docs/en-GB/dictionary/html.md +22 -22
- package/docs/en-GB/dictionary/markdown.md +18 -18
- package/docs/en-GB/intlayer_with_analog.md +2 -13
- package/docs/en-GB/intlayer_with_angular.md +1 -12
- package/docs/en-GB/intlayer_with_nextjs_14.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/en-GB/intlayer_with_react_router_v7.md +6 -1
- package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/en-GB/intlayer_with_storybook.md +2 -5
- package/docs/en-GB/intlayer_with_svelte_kit.md +9 -5
- package/docs/en-GB/intlayer_with_vite+lit.md +750 -0
- package/docs/en-GB/intlayer_with_vite+react.md +15 -3
- package/docs/en-GB/intlayer_with_vite+solid.md +1 -1
- package/docs/en-GB/intlayer_with_vite+svelte.md +17 -5
- package/docs/en-GB/intlayer_with_vite+vanilla.md +725 -0
- package/docs/en-GB/intlayer_with_vite+vue.md +16 -4
- package/docs/en-GB/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/en-GB/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/en-GB/releases/v8.md +27 -27
- package/docs/es/dictionary/html.md +147 -25
- package/docs/es/dictionary/markdown.md +143 -25
- package/docs/es/intlayer_with_analog.md +2 -13
- package/docs/es/intlayer_with_angular.md +1 -12
- package/docs/es/intlayer_with_nextjs_14.md +1 -1
- package/docs/es/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/es/intlayer_with_react_router_v7.md +6 -1
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/es/intlayer_with_storybook.md +2 -5
- package/docs/es/intlayer_with_svelte_kit.md +9 -5
- package/docs/es/intlayer_with_vite+lit.md +747 -0
- package/docs/es/intlayer_with_vite+react.md +16 -4
- package/docs/es/intlayer_with_vite+solid.md +1 -1
- package/docs/es/intlayer_with_vite+svelte.md +16 -6
- package/docs/es/intlayer_with_vite+vanilla.md +722 -0
- package/docs/es/intlayer_with_vite+vue.md +21 -5
- package/docs/es/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/es/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/es/releases/v8.md +27 -27
- package/docs/fr/dictionary/html.md +146 -24
- package/docs/fr/dictionary/markdown.md +143 -25
- package/docs/fr/intlayer_with_analog.md +2 -13
- package/docs/fr/intlayer_with_angular.md +1 -12
- package/docs/fr/intlayer_with_nextjs_14.md +1 -1
- package/docs/fr/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/fr/intlayer_with_react_router_v7.md +6 -1
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/fr/intlayer_with_storybook.md +2 -5
- package/docs/fr/intlayer_with_svelte_kit.md +9 -5
- package/docs/fr/intlayer_with_vite+lit.md +747 -0
- package/docs/fr/intlayer_with_vite+react.md +16 -4
- package/docs/fr/intlayer_with_vite+solid.md +1 -1
- package/docs/fr/intlayer_with_vite+svelte.md +19 -6
- package/docs/fr/intlayer_with_vite+vanilla.md +722 -0
- package/docs/fr/intlayer_with_vite+vue.md +21 -5
- package/docs/fr/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/fr/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/fr/releases/v8.md +27 -27
- package/docs/hi/dictionary/html.md +22 -22
- package/docs/hi/dictionary/markdown.md +18 -18
- package/docs/hi/intlayer_with_analog.md +2 -13
- package/docs/hi/intlayer_with_angular.md +1 -12
- package/docs/hi/intlayer_with_nextjs_14.md +1 -1
- package/docs/hi/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/hi/intlayer_with_react_router_v7.md +6 -1
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/hi/intlayer_with_storybook.md +2 -5
- package/docs/hi/intlayer_with_svelte_kit.md +9 -5
- package/docs/hi/intlayer_with_vite+lit.md +738 -0
- package/docs/hi/intlayer_with_vite+react.md +16 -4
- package/docs/hi/intlayer_with_vite+solid.md +1 -1
- package/docs/hi/intlayer_with_vite+svelte.md +13 -6
- package/docs/hi/intlayer_with_vite+vanilla.md +722 -0
- package/docs/hi/intlayer_with_vite+vue.md +21 -5
- package/docs/hi/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/hi/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/hi/releases/v8.md +27 -27
- package/docs/id/dictionary/html.md +22 -22
- package/docs/id/dictionary/markdown.md +18 -18
- package/docs/id/intlayer_with_analog.md +2 -13
- package/docs/id/intlayer_with_angular.md +1 -12
- package/docs/id/intlayer_with_nextjs_14.md +1 -1
- package/docs/id/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/id/intlayer_with_react_router_v7.md +6 -1
- package/docs/id/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/id/intlayer_with_storybook.md +2 -5
- package/docs/id/intlayer_with_svelte_kit.md +9 -5
- package/docs/id/intlayer_with_vite+lit.md +738 -0
- package/docs/id/intlayer_with_vite+react.md +16 -4
- package/docs/id/intlayer_with_vite+solid.md +1 -1
- package/docs/id/intlayer_with_vite+svelte.md +13 -6
- package/docs/id/intlayer_with_vite+vanilla.md +722 -0
- package/docs/id/intlayer_with_vite+vue.md +16 -4
- package/docs/id/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/id/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/id/releases/v8.md +27 -27
- package/docs/it/dictionary/html.md +146 -24
- package/docs/it/dictionary/markdown.md +143 -21
- package/docs/it/intlayer_with_analog.md +2 -13
- package/docs/it/intlayer_with_angular.md +1 -12
- package/docs/it/intlayer_with_nextjs_14.md +1 -1
- package/docs/it/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/it/intlayer_with_react_router_v7.md +6 -1
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/it/intlayer_with_storybook.md +2 -5
- package/docs/it/intlayer_with_svelte_kit.md +9 -5
- package/docs/it/intlayer_with_vite+lit.md +747 -0
- package/docs/it/intlayer_with_vite+react.md +16 -4
- package/docs/it/intlayer_with_vite+solid.md +1 -1
- package/docs/it/intlayer_with_vite+svelte.md +13 -6
- package/docs/it/intlayer_with_vite+vanilla.md +722 -0
- package/docs/it/intlayer_with_vite+vue.md +21 -5
- package/docs/it/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/it/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/it/releases/v8.md +27 -27
- package/docs/ja/dictionary/html.md +148 -27
- package/docs/ja/dictionary/markdown.md +139 -24
- package/docs/ja/intlayer_with_analog.md +2 -13
- package/docs/ja/intlayer_with_angular.md +1 -12
- package/docs/ja/intlayer_with_nextjs_14.md +1 -1
- package/docs/ja/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ja/intlayer_with_react_router_v7.md +6 -1
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/ja/intlayer_with_storybook.md +2 -5
- package/docs/ja/intlayer_with_vite+lit.md +747 -0
- package/docs/ja/intlayer_with_vite+solid.md +1 -1
- package/docs/ja/intlayer_with_vite+svelte.md +13 -6
- package/docs/ja/intlayer_with_vite+vanilla.md +722 -0
- package/docs/ja/intlayer_with_vite+vue.md +21 -5
- package/docs/ja/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/ja/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/ja/releases/v8.md +27 -27
- package/docs/ko/dictionary/html.md +149 -28
- package/docs/ko/dictionary/markdown.md +143 -25
- package/docs/ko/intlayer_with_analog.md +2 -13
- package/docs/ko/intlayer_with_angular.md +1 -12
- package/docs/ko/intlayer_with_nextjs_14.md +1 -1
- package/docs/ko/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ko/intlayer_with_react_router_v7.md +6 -1
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/ko/intlayer_with_storybook.md +2 -5
- package/docs/ko/intlayer_with_svelte_kit.md +9 -5
- package/docs/ko/intlayer_with_vite+lit.md +747 -0
- package/docs/ko/intlayer_with_vite+react.md +16 -4
- package/docs/ko/intlayer_with_vite+solid.md +1 -1
- package/docs/ko/intlayer_with_vite+svelte.md +13 -6
- package/docs/ko/intlayer_with_vite+vanilla.md +722 -0
- package/docs/ko/intlayer_with_vite+vue.md +21 -5
- package/docs/ko/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/ko/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/ko/releases/v8.md +27 -27
- package/docs/nl/intlayer_with_storybook.md +2 -5
- package/docs/nl/intlayer_with_vite+lit.md +738 -0
- package/docs/nl/intlayer_with_vite+vanilla.md +722 -0
- package/docs/pl/dictionary/html.md +146 -24
- package/docs/pl/dictionary/markdown.md +143 -25
- package/docs/pl/intlayer_with_analog.md +2 -13
- package/docs/pl/intlayer_with_angular.md +1 -12
- package/docs/pl/intlayer_with_nextjs_14.md +1 -1
- package/docs/pl/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/pl/intlayer_with_react_router_v7.md +6 -1
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/pl/intlayer_with_storybook.md +2 -5
- package/docs/pl/intlayer_with_svelte_kit.md +9 -5
- package/docs/pl/intlayer_with_vite+lit.md +738 -0
- package/docs/pl/intlayer_with_vite+react.md +16 -4
- package/docs/pl/intlayer_with_vite+solid.md +1 -1
- package/docs/pl/intlayer_with_vite+svelte.md +13 -6
- package/docs/pl/intlayer_with_vite+vanilla.md +722 -0
- package/docs/pl/intlayer_with_vite+vue.md +16 -4
- package/docs/pl/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/pl/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/pl/releases/v8.md +27 -27
- package/docs/pt/dictionary/html.md +127 -24
- package/docs/pt/dictionary/markdown.md +143 -25
- package/docs/pt/intlayer_with_analog.md +2 -13
- package/docs/pt/intlayer_with_angular.md +1 -12
- package/docs/pt/intlayer_with_nextjs_14.md +1 -1
- package/docs/pt/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/pt/intlayer_with_react_router_v7.md +6 -1
- package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/pt/intlayer_with_storybook.md +2 -5
- package/docs/pt/intlayer_with_svelte_kit.md +9 -5
- package/docs/pt/intlayer_with_vite+lit.md +747 -0
- package/docs/pt/intlayer_with_vite+react.md +16 -4
- package/docs/pt/intlayer_with_vite+solid.md +1 -1
- package/docs/pt/intlayer_with_vite+svelte.md +16 -6
- package/docs/pt/intlayer_with_vite+vanilla.md +722 -0
- package/docs/pt/intlayer_with_vite+vue.md +21 -5
- package/docs/pt/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/pt/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/pt/releases/v8.md +27 -27
- package/docs/ru/dictionary/html.md +148 -27
- package/docs/ru/dictionary/markdown.md +143 -23
- package/docs/ru/intlayer_with_analog.md +2 -13
- package/docs/ru/intlayer_with_angular.md +1 -12
- package/docs/ru/intlayer_with_nextjs_14.md +1 -1
- package/docs/ru/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ru/intlayer_with_react_router_v7.md +6 -1
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/ru/intlayer_with_storybook.md +2 -5
- package/docs/ru/intlayer_with_svelte_kit.md +9 -5
- package/docs/ru/intlayer_with_vite+lit.md +747 -0
- package/docs/ru/intlayer_with_vite+react.md +16 -4
- package/docs/ru/intlayer_with_vite+solid.md +1 -1
- package/docs/ru/intlayer_with_vite+svelte.md +13 -6
- package/docs/ru/intlayer_with_vite+vanilla.md +722 -0
- package/docs/ru/intlayer_with_vite+vue.md +21 -5
- package/docs/ru/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/ru/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/ru/releases/v8.md +27 -27
- package/docs/tr/dictionary/html.md +129 -27
- package/docs/tr/dictionary/markdown.md +143 -23
- package/docs/tr/intlayer_with_analog.md +2 -13
- package/docs/tr/intlayer_with_angular.md +1 -12
- package/docs/tr/intlayer_with_nextjs_14.md +1 -1
- package/docs/tr/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/tr/intlayer_with_react_router_v7.md +6 -1
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/tr/intlayer_with_storybook.md +2 -5
- package/docs/tr/intlayer_with_svelte_kit.md +9 -5
- package/docs/tr/intlayer_with_vite+lit.md +738 -0
- package/docs/tr/intlayer_with_vite+react.md +16 -4
- package/docs/tr/intlayer_with_vite+solid.md +1 -1
- package/docs/tr/intlayer_with_vite+svelte.md +13 -6
- package/docs/tr/intlayer_with_vite+vanilla.md +722 -0
- package/docs/tr/intlayer_with_vite+vue.md +16 -4
- package/docs/tr/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/tr/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/tr/releases/v8.md +27 -27
- package/docs/uk/dictionary/html.md +22 -22
- package/docs/uk/dictionary/markdown.md +18 -18
- package/docs/uk/intlayer_with_analog.md +2 -13
- package/docs/uk/intlayer_with_angular.md +1 -12
- package/docs/uk/intlayer_with_nextjs_14.md +1 -1
- package/docs/uk/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/uk/intlayer_with_react_router_v7.md +5 -1
- package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/uk/intlayer_with_storybook.md +2 -5
- package/docs/uk/intlayer_with_svelte_kit.md +9 -5
- package/docs/uk/intlayer_with_vite+lit.md +738 -0
- package/docs/uk/intlayer_with_vite+react.md +16 -4
- package/docs/uk/intlayer_with_vite+solid.md +1 -1
- package/docs/uk/intlayer_with_vite+svelte.md +18 -6
- package/docs/uk/intlayer_with_vite+vanilla.md +722 -0
- package/docs/uk/intlayer_with_vite+vue.md +16 -4
- package/docs/uk/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/uk/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/uk/releases/v8.md +27 -27
- package/docs/ur/intlayer_with_storybook.md +2 -5
- package/docs/ur/intlayer_with_vite+lit.md +738 -0
- package/docs/ur/intlayer_with_vite+vanilla.md +722 -0
- package/docs/vi/dictionary/html.md +22 -22
- package/docs/vi/dictionary/markdown.md +18 -18
- package/docs/vi/intlayer_with_analog.md +2 -13
- package/docs/vi/intlayer_with_angular.md +1 -12
- package/docs/vi/intlayer_with_nextjs_14.md +1 -1
- package/docs/vi/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/vi/intlayer_with_react_router_v7.md +6 -1
- package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/vi/intlayer_with_storybook.md +2 -5
- package/docs/vi/intlayer_with_svelte_kit.md +9 -5
- package/docs/vi/intlayer_with_vite+lit.md +738 -0
- package/docs/vi/intlayer_with_vite+react.md +16 -4
- package/docs/vi/intlayer_with_vite+solid.md +1 -1
- package/docs/vi/intlayer_with_vite+svelte.md +17 -5
- package/docs/vi/intlayer_with_vite+vanilla.md +722 -0
- package/docs/vi/intlayer_with_vite+vue.md +16 -4
- package/docs/vi/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/vi/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/vi/releases/v8.md +27 -27
- package/docs/zh/dictionary/html.md +148 -27
- package/docs/zh/dictionary/markdown.md +143 -21
- package/docs/zh/intlayer_with_analog.md +2 -13
- package/docs/zh/intlayer_with_angular.md +1 -12
- package/docs/zh/intlayer_with_nextjs_14.md +1 -1
- package/docs/zh/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/zh/intlayer_with_react_router_v7.md +6 -1
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +6 -1
- package/docs/zh/intlayer_with_storybook.md +2 -5
- package/docs/zh/intlayer_with_svelte_kit.md +9 -5
- package/docs/zh/intlayer_with_vite+lit.md +747 -0
- package/docs/zh/intlayer_with_vite+react.md +16 -4
- package/docs/zh/intlayer_with_vite+solid.md +1 -1
- package/docs/zh/intlayer_with_vite+svelte.md +16 -6
- package/docs/zh/intlayer_with_vite+vanilla.md +722 -0
- package/docs/zh/intlayer_with_vite+vue.md +16 -4
- package/docs/zh/packages/react-intlayer/MarkdownRenderer.md +1 -1
- package/docs/zh/packages/svelte-intlayer/useRewriteURL.md +1 -1
- package/docs/zh/releases/v8.md +27 -27
- package/package.json +8 -8
- package/src/generated/docs.entry.ts +40 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-02-07
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-03-24
|
|
4
4
|
title: Markdown
|
|
5
5
|
description: Learn how to declare and use Markdown content in your multilingual website with Intlayer. Follow the steps in this online documentation to integrate Markdown seamlessly into your project.
|
|
6
6
|
keywords:
|
|
@@ -17,6 +17,9 @@ slugs:
|
|
|
17
17
|
- content
|
|
18
18
|
- markdown
|
|
19
19
|
history:
|
|
20
|
+
- version: 8.5.0
|
|
21
|
+
date: 2026-03-24
|
|
22
|
+
changes: "move import from `{{framework}}-intlayer` to `{{framework}}-intlayer/markdown`"
|
|
20
23
|
- version: 8.0.0
|
|
21
24
|
date: 2026-01-22
|
|
22
25
|
changes: "Add MarkdownRenderer / useMarkdownRenderer / renderMarkdown utility and forceInline option"
|
|
@@ -213,7 +216,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
213
216
|
Render a Markdown string with specific options.
|
|
214
217
|
|
|
215
218
|
```tsx
|
|
216
|
-
import { MarkdownRenderer } from "react-intlayer";
|
|
219
|
+
import { MarkdownRenderer } from "react-intlayer/markdown";
|
|
217
220
|
|
|
218
221
|
<MarkdownRenderer forceBlock={true} tagfilter={true}>
|
|
219
222
|
{"# My Title"}
|
|
@@ -225,7 +228,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
225
228
|
Get a pre-configured renderer function.
|
|
226
229
|
|
|
227
230
|
```tsx
|
|
228
|
-
import { useMarkdownRenderer } from "react-intlayer";
|
|
231
|
+
import { useMarkdownRenderer } from "react-intlayer/markdown";
|
|
229
232
|
|
|
230
233
|
const renderMarkdown = useMarkdownRenderer({
|
|
231
234
|
forceBlock: true,
|
|
@@ -239,7 +242,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
239
242
|
Standalone utility for rendering outside of components.
|
|
240
243
|
|
|
241
244
|
```tsx
|
|
242
|
-
import { renderMarkdown } from "react-intlayer";
|
|
245
|
+
import { renderMarkdown } from "react-intlayer/markdown";
|
|
243
246
|
|
|
244
247
|
const jsx = renderMarkdown("# My Title", { forceBlock: true });
|
|
245
248
|
```
|
|
@@ -251,7 +254,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
251
254
|
|
|
252
255
|
```vue
|
|
253
256
|
<script setup>
|
|
254
|
-
import { MarkdownRenderer } from "vue-intlayer";
|
|
257
|
+
import { MarkdownRenderer } from "vue-intlayer/markdown";
|
|
255
258
|
</script>
|
|
256
259
|
|
|
257
260
|
<template>
|
|
@@ -266,7 +269,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
266
269
|
|
|
267
270
|
```svelte
|
|
268
271
|
<script lang="ts">
|
|
269
|
-
import { MarkdownRenderer } from "svelte-intlayer";
|
|
272
|
+
import { MarkdownRenderer } from "svelte-intlayer/markdown";
|
|
270
273
|
</script>
|
|
271
274
|
|
|
272
275
|
<MarkdownRenderer forceBlock={true} value="# My Title" />
|
|
@@ -276,7 +279,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
276
279
|
|
|
277
280
|
```svelte
|
|
278
281
|
<script lang="ts">
|
|
279
|
-
import { useMarkdownRenderer } from "svelte-intlayer";
|
|
282
|
+
import { useMarkdownRenderer } from "svelte-intlayer/markdown";
|
|
280
283
|
const render = useMarkdownRenderer();
|
|
281
284
|
</script>
|
|
282
285
|
|
|
@@ -287,7 +290,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
287
290
|
|
|
288
291
|
```svelte
|
|
289
292
|
<script lang="ts">
|
|
290
|
-
import { renderMarkdown } from "svelte-intlayer";
|
|
293
|
+
import { renderMarkdown } from "svelte-intlayer/markdown";
|
|
291
294
|
</script>
|
|
292
295
|
|
|
293
296
|
{@html renderMarkdown("# My Title")}
|
|
@@ -298,7 +301,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
298
301
|
#### `<MarkdownRenderer />` Component
|
|
299
302
|
|
|
300
303
|
```tsx
|
|
301
|
-
import { MarkdownRenderer } from "preact-intlayer";
|
|
304
|
+
import { MarkdownRenderer } from "preact-intlayer/markdown";
|
|
302
305
|
|
|
303
306
|
<MarkdownRenderer forceBlock={true}>
|
|
304
307
|
{"# My Title"}
|
|
@@ -308,7 +311,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
308
311
|
#### `useMarkdownRenderer()` Hook
|
|
309
312
|
|
|
310
313
|
```tsx
|
|
311
|
-
import { useMarkdownRenderer } from "preact-intlayer";
|
|
314
|
+
import { useMarkdownRenderer } from "preact-intlayer/markdown";
|
|
312
315
|
|
|
313
316
|
const render = useMarkdownRenderer();
|
|
314
317
|
|
|
@@ -318,7 +321,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
318
321
|
#### `renderMarkdown()` Utility
|
|
319
322
|
|
|
320
323
|
```tsx
|
|
321
|
-
import { renderMarkdown } from "preact-intlayer";
|
|
324
|
+
import { renderMarkdown } from "preact-intlayer/markdown";
|
|
322
325
|
|
|
323
326
|
return <div>{renderMarkdown("# My Title")}</div>;
|
|
324
327
|
```
|
|
@@ -328,7 +331,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
328
331
|
#### `<MarkdownRenderer />` Component
|
|
329
332
|
|
|
330
333
|
```tsx
|
|
331
|
-
import { MarkdownRenderer } from "solid-intlayer";
|
|
334
|
+
import { MarkdownRenderer } from "solid-intlayer/markdown";
|
|
332
335
|
|
|
333
336
|
<MarkdownRenderer forceBlock={true}>
|
|
334
337
|
{"# My Title"}
|
|
@@ -338,7 +341,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
338
341
|
#### `useMarkdownRenderer()` Hook
|
|
339
342
|
|
|
340
343
|
```tsx
|
|
341
|
-
import { useMarkdownRenderer } from "solid-intlayer";
|
|
344
|
+
import { useMarkdownRenderer } from "solid-intlayer/markdown";
|
|
342
345
|
|
|
343
346
|
const render = useMarkdownRenderer();
|
|
344
347
|
|
|
@@ -348,7 +351,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
348
351
|
#### `renderMarkdown()` Utility
|
|
349
352
|
|
|
350
353
|
```tsx
|
|
351
|
-
import { renderMarkdown } from "solid-intlayer";
|
|
354
|
+
import { renderMarkdown } from "solid-intlayer/markdown";
|
|
352
355
|
|
|
353
356
|
return <div>{renderMarkdown("# My Title")}</div>;
|
|
354
357
|
```
|
|
@@ -359,7 +362,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
359
362
|
Render a Markdown string using the service.
|
|
360
363
|
|
|
361
364
|
```typescript
|
|
362
|
-
import { IntlayerMarkdownService } from "angular-intlayer";
|
|
365
|
+
import { IntlayerMarkdownService } from "angular-intlayer/markdown";
|
|
363
366
|
|
|
364
367
|
export class MyComponent {
|
|
365
368
|
constructor(private markdownService: IntlayerMarkdownService) {}
|
|
@@ -383,7 +386,7 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
383
386
|
<Tab label="React / Next.js" value="react">
|
|
384
387
|
|
|
385
388
|
```tsx fileName="AppProvider.tsx"
|
|
386
|
-
import { MarkdownProvider } from "react-intlayer";
|
|
389
|
+
import { MarkdownProvider } from "react-intlayer/markdown";
|
|
387
390
|
|
|
388
391
|
export const AppProvider = ({ children }) => (
|
|
389
392
|
<MarkdownProvider
|
|
@@ -399,12 +402,32 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
399
402
|
);
|
|
400
403
|
```
|
|
401
404
|
|
|
405
|
+
You can also use your own markdown renderer:
|
|
406
|
+
|
|
407
|
+
```tsx fileName="AppProvider.tsx"
|
|
408
|
+
import { MarkdownProvider } from "react-intlayer/markdown";
|
|
409
|
+
|
|
410
|
+
export const AppProvider = ({ children }) => (
|
|
411
|
+
<MarkdownProvider
|
|
412
|
+
renderMarkdown={async (md) => {
|
|
413
|
+
const { compileMarkdown } = await import('react-intlayer/markdown');
|
|
414
|
+
return compileMarkdown(md);
|
|
415
|
+
}}
|
|
416
|
+
>
|
|
417
|
+
{children}
|
|
418
|
+
</MarkdownProvider>
|
|
419
|
+
);
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
423
|
+
|
|
402
424
|
</Tab>
|
|
403
425
|
<Tab label="Vue" value="vue">
|
|
404
426
|
|
|
405
427
|
```typescript fileName="main.ts"
|
|
406
428
|
import { createApp } from "vue";
|
|
407
|
-
import { installIntlayer
|
|
429
|
+
import { installIntlayer } from "vue-intlayer";
|
|
430
|
+
import { installIntlayerMarkdown } from "vue-intlayer/markdown";
|
|
408
431
|
import App from "./App.vue";
|
|
409
432
|
|
|
410
433
|
const app = createApp(App);
|
|
@@ -424,12 +447,35 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
424
447
|
app.mount("#app");
|
|
425
448
|
```
|
|
426
449
|
|
|
450
|
+
You can also use your own markdown renderer:
|
|
451
|
+
|
|
452
|
+
```typescript fileName="main.ts"
|
|
453
|
+
import { createApp } from "vue";
|
|
454
|
+
import { installIntlayer } from "vue-intlayer";
|
|
455
|
+
import { installIntlayerMarkdown } from "vue-intlayer/markdown";
|
|
456
|
+
import App from "./App.vue";
|
|
457
|
+
|
|
458
|
+
const app = createApp(App);
|
|
459
|
+
|
|
460
|
+
app.use(installIntlayer);
|
|
461
|
+
app.use(installIntlayerMarkdown, {
|
|
462
|
+
renderMarkdown: async (md) => {
|
|
463
|
+
const { compileMarkdown } = await import('vue-intlayer/markdown');
|
|
464
|
+
return compileMarkdown(md);
|
|
465
|
+
},
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
app.mount("#app");
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
472
|
+
|
|
427
473
|
</Tab>
|
|
428
474
|
<Tab label="Svelte" value="svelte">
|
|
429
475
|
|
|
430
476
|
```svelte fileName="App.svelte"
|
|
431
477
|
<script lang="ts">
|
|
432
|
-
import { MarkdownProvider } from "svelte-intlayer";
|
|
478
|
+
import { MarkdownProvider } from "svelte-intlayer/markdown";
|
|
433
479
|
import MyHeading from "./MyHeading.svelte";
|
|
434
480
|
</script>
|
|
435
481
|
|
|
@@ -444,11 +490,30 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
444
490
|
</MarkdownProvider>
|
|
445
491
|
```
|
|
446
492
|
|
|
493
|
+
You can also use your own markdown renderer:
|
|
494
|
+
|
|
495
|
+
```svelte fileName="App.svelte"
|
|
496
|
+
<script lang="ts">
|
|
497
|
+
import { MarkdownProvider } from "svelte-intlayer/markdown";
|
|
498
|
+
</script>
|
|
499
|
+
|
|
500
|
+
<MarkdownProvider
|
|
501
|
+
renderMarkdown={async (md) => {
|
|
502
|
+
const { compileMarkdown } = await import('svelte-intlayer/markdown');
|
|
503
|
+
return compileMarkdown(md);
|
|
504
|
+
}}
|
|
505
|
+
>
|
|
506
|
+
<slot />
|
|
507
|
+
</MarkdownProvider>
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
511
|
+
|
|
447
512
|
</Tab>
|
|
448
513
|
<Tab label="Preact" value="preact">
|
|
449
514
|
|
|
450
515
|
```tsx fileName="AppProvider.tsx"
|
|
451
|
-
import { MarkdownProvider } from "preact-intlayer";
|
|
516
|
+
import { MarkdownProvider } from "preact-intlayer/markdown";
|
|
452
517
|
|
|
453
518
|
export const AppProvider = ({ children }) => (
|
|
454
519
|
<MarkdownProvider
|
|
@@ -463,11 +528,30 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
463
528
|
);
|
|
464
529
|
```
|
|
465
530
|
|
|
531
|
+
You can also use your own markdown renderer:
|
|
532
|
+
|
|
533
|
+
```tsx fileName="AppProvider.tsx"
|
|
534
|
+
import { MarkdownProvider } from "preact-intlayer/markdown";
|
|
535
|
+
|
|
536
|
+
export const AppProvider = ({ children }) => (
|
|
537
|
+
<MarkdownProvider
|
|
538
|
+
renderMarkdown={async (md) => {
|
|
539
|
+
const { compileMarkdown } = await import('preact-intlayer/markdown');
|
|
540
|
+
return compileMarkdown(md);
|
|
541
|
+
}}
|
|
542
|
+
>
|
|
543
|
+
{children}
|
|
544
|
+
</MarkdownProvider>
|
|
545
|
+
);
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
549
|
+
|
|
466
550
|
</Tab>
|
|
467
551
|
<Tab label="Solid" value="solid">
|
|
468
552
|
|
|
469
553
|
```tsx fileName="AppProvider.tsx"
|
|
470
|
-
import { MarkdownProvider } from "solid-intlayer";
|
|
554
|
+
import { MarkdownProvider } from "solid-intlayer/markdown";
|
|
471
555
|
|
|
472
556
|
export const AppProvider = (props) => (
|
|
473
557
|
<MarkdownProvider
|
|
@@ -482,11 +566,30 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
482
566
|
);
|
|
483
567
|
```
|
|
484
568
|
|
|
569
|
+
You can also use your own markdown renderer:
|
|
570
|
+
|
|
571
|
+
```tsx fileName="AppProvider.tsx"
|
|
572
|
+
import { MarkdownProvider } from "solid-intlayer/markdown";
|
|
573
|
+
|
|
574
|
+
export const AppProvider = (props) => (
|
|
575
|
+
<MarkdownProvider
|
|
576
|
+
renderMarkdown={async (md) => {
|
|
577
|
+
const { compileMarkdown } = await import('solid-intlayer/markdown');
|
|
578
|
+
return compileMarkdown(md);
|
|
579
|
+
}}
|
|
580
|
+
>
|
|
581
|
+
{props.children}
|
|
582
|
+
</MarkdownProvider>
|
|
583
|
+
);
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
587
|
+
|
|
485
588
|
</Tab>
|
|
486
589
|
<Tab label="Angular" value="angular">
|
|
487
590
|
|
|
488
591
|
```typescript fileName="app.config.ts"
|
|
489
|
-
import { createIntlayerMarkdownProvider } from "angular-intlayer";
|
|
592
|
+
import { createIntlayerMarkdownProvider } from "angular-intlayer/markdown";
|
|
490
593
|
|
|
491
594
|
export const appConfig: ApplicationConfig = {
|
|
492
595
|
providers: [
|
|
@@ -499,6 +602,25 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
499
602
|
};
|
|
500
603
|
```
|
|
501
604
|
|
|
605
|
+
You can also use your own markdown renderer:
|
|
606
|
+
|
|
607
|
+
```typescript fileName="app.config.ts"
|
|
608
|
+
import { createIntlayerMarkdownProvider } from "angular-intlayer/markdown";
|
|
609
|
+
|
|
610
|
+
export const appConfig: ApplicationConfig = {
|
|
611
|
+
providers: [
|
|
612
|
+
createIntlayerMarkdownProvider({
|
|
613
|
+
renderMarkdown: async (md) => {
|
|
614
|
+
const { compileMarkdown } = await import('angular-intlayer/markdown');
|
|
615
|
+
return compileMarkdown(md);
|
|
616
|
+
},
|
|
617
|
+
}),
|
|
618
|
+
],
|
|
619
|
+
};
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
623
|
+
|
|
502
624
|
</Tab>
|
|
503
625
|
</Tabs>
|
|
504
626
|
|
|
@@ -14,7 +14,7 @@ slugs:
|
|
|
14
14
|
- doc
|
|
15
15
|
- environment
|
|
16
16
|
- analog
|
|
17
|
-
applicationTemplate: https://github.com/aymericzip/intlayer
|
|
17
|
+
applicationTemplate: https://github.com/aymericzip/intlayer-analog-template
|
|
18
18
|
history:
|
|
19
19
|
- version: 8.0.4
|
|
20
20
|
date: 2026-01-26
|
|
@@ -46,7 +46,7 @@ With Intlayer, you can:
|
|
|
46
46
|
<Tab label="Code" value="code">
|
|
47
47
|
|
|
48
48
|
<iframe
|
|
49
|
-
src="https://stackblitz.com/github/aymericzip/intlayer
|
|
49
|
+
src="https://stackblitz.com/github/aymericzip/intlayer-analog-template?embed=1&ctl=1&file=intlayer.config.ts"
|
|
50
50
|
className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
|
|
51
51
|
title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
|
|
52
52
|
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
|
|
@@ -56,7 +56,7 @@ With Intlayer, you can:
|
|
|
56
56
|
</Tab>
|
|
57
57
|
</Tabs>
|
|
58
58
|
|
|
59
|
-
See [Application Template](https://github.com/aymericzip/intlayer
|
|
59
|
+
See [Application Template](https://github.com/aymericzip/intlayer-analog-template) on GitHub.
|
|
60
60
|
|
|
61
61
|
### Step 1: Install Dependencies
|
|
62
62
|
|
|
@@ -271,17 +271,6 @@ import { useLocale } from "angular-intlayer";
|
|
|
271
271
|
</select>
|
|
272
272
|
</div>
|
|
273
273
|
`,
|
|
274
|
-
styles: [
|
|
275
|
-
`
|
|
276
|
-
.locale-switcher {
|
|
277
|
-
margin: 1rem;
|
|
278
|
-
padding: 0.5rem;
|
|
279
|
-
border: 1px solid #ccc;
|
|
280
|
-
border-radius: 4px;
|
|
281
|
-
width: fit-content;
|
|
282
|
-
}
|
|
283
|
-
`,
|
|
284
|
-
],
|
|
285
274
|
})
|
|
286
275
|
export class LocaleSwitcherComponent {
|
|
287
276
|
localeCtx = useLocale();
|
|
@@ -204,7 +204,7 @@ import { mergeConfig } from "angular-intlayer/webpack";
|
|
|
204
204
|
export default mergeConfig({});
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
> The `mergeConfig` function configures Webpack with Intlayer. It injects the `
|
|
207
|
+
> The `mergeConfig` function configures Webpack with Intlayer. It injects the `IntlayerPlugin` (to handle content declaration files) and sets up aliases for optimal performance.
|
|
208
208
|
|
|
209
209
|
### Step 4: Declare Your Content
|
|
210
210
|
|
|
@@ -331,17 +331,6 @@ import { useLocale } from "angular-intlayer";
|
|
|
331
331
|
</select>
|
|
332
332
|
</div>
|
|
333
333
|
`,
|
|
334
|
-
styles: [
|
|
335
|
-
`
|
|
336
|
-
.locale-switcher {
|
|
337
|
-
margin: 1rem;
|
|
338
|
-
padding: 0.5rem;
|
|
339
|
-
border: 1px solid #ccc;
|
|
340
|
-
border-radius: 4px;
|
|
341
|
-
width: fit-content;
|
|
342
|
-
}
|
|
343
|
-
`,
|
|
344
|
-
],
|
|
345
334
|
})
|
|
346
335
|
export class LocaleSwitcherComponent {
|
|
347
336
|
localeCtx = useLocale();
|
|
@@ -1432,7 +1432,7 @@ Link.displayName = "Link";
|
|
|
1432
1432
|
|
|
1433
1433
|
import { getLocalizedUrl } from 'intlayer';
|
|
1434
1434
|
import NextLink, { type LinkProps as NextLinkProps } from 'next/link';
|
|
1435
|
-
import { useLocale } from
|
|
1435
|
+
import { useLocale } from "next-intlayer";
|
|
1436
1436
|
import { forwardRef, PropsWithChildren, type ForwardedRef } from 'react';
|
|
1437
1437
|
|
|
1438
1438
|
/**
|
|
@@ -1655,7 +1655,10 @@ const config: IntlayerConfig = {
|
|
|
1655
1655
|
|
|
1656
1656
|
/**
|
|
1657
1657
|
* Indicates if the components should be saved after being transformed.
|
|
1658
|
-
*
|
|
1658
|
+
*
|
|
1659
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
1660
|
+
*
|
|
1661
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
1659
1662
|
*/
|
|
1660
1663
|
saveComponents: false,
|
|
1661
1664
|
|
|
@@ -1686,7 +1689,10 @@ const config = {
|
|
|
1686
1689
|
|
|
1687
1690
|
/**
|
|
1688
1691
|
* Indicates if the components should be saved after being transformed.
|
|
1689
|
-
*
|
|
1692
|
+
*
|
|
1693
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
1694
|
+
*
|
|
1695
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
1690
1696
|
*/
|
|
1691
1697
|
saveComponents: false,
|
|
1692
1698
|
|
|
@@ -1717,7 +1723,10 @@ const config = {
|
|
|
1717
1723
|
|
|
1718
1724
|
/**
|
|
1719
1725
|
* Indicates if the components should be saved after being transformed.
|
|
1720
|
-
*
|
|
1726
|
+
*
|
|
1727
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
1728
|
+
*
|
|
1729
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
1721
1730
|
*/
|
|
1722
1731
|
saveComponents: false,
|
|
1723
1732
|
|
|
@@ -152,7 +152,10 @@ const config: IntlayerConfig = {
|
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Indicates if the components should be saved after being transformed.
|
|
155
|
-
*
|
|
155
|
+
*
|
|
156
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
157
|
+
*
|
|
158
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
156
159
|
*/
|
|
157
160
|
saveComponents: false,
|
|
158
161
|
},
|
|
@@ -483,7 +486,10 @@ const config: IntlayerConfig = {
|
|
|
483
486
|
|
|
484
487
|
/**
|
|
485
488
|
* Indicates if the components should be saved after being transformed.
|
|
486
|
-
*
|
|
489
|
+
*
|
|
490
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
491
|
+
*
|
|
492
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
487
493
|
*/
|
|
488
494
|
saveComponents: false,
|
|
489
495
|
|
|
@@ -514,7 +520,10 @@ const config = {
|
|
|
514
520
|
|
|
515
521
|
/**
|
|
516
522
|
* Indicates if the components should be saved after being transformed.
|
|
517
|
-
*
|
|
523
|
+
*
|
|
524
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
525
|
+
*
|
|
526
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
518
527
|
*/
|
|
519
528
|
saveComponents: false,
|
|
520
529
|
|
|
@@ -545,7 +554,10 @@ const config = {
|
|
|
545
554
|
|
|
546
555
|
/**
|
|
547
556
|
* Indicates if the components should be saved after being transformed.
|
|
548
|
-
*
|
|
557
|
+
*
|
|
558
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
559
|
+
*
|
|
560
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
549
561
|
*/
|
|
550
562
|
saveComponents: false,
|
|
551
563
|
|
|
@@ -1345,7 +1345,7 @@ Link.displayName = "Link";
|
|
|
1345
1345
|
|
|
1346
1346
|
import { getLocalizedUrl } from 'intlayer';
|
|
1347
1347
|
import NextLink, { type LinkProps as NextLinkProps } from 'next/link';
|
|
1348
|
-
import { useLocale } from
|
|
1348
|
+
import { useLocale } from "next-intlayer";
|
|
1349
1349
|
import { forwardRef, PropsWithChildren, type ForwardedRef } from 'react';
|
|
1350
1350
|
|
|
1351
1351
|
/**
|
|
@@ -526,7 +526,11 @@ import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
|
526
526
|
|
|
527
527
|
// https://vitejs.dev/config/
|
|
528
528
|
export default defineConfig({
|
|
529
|
-
plugins: [
|
|
529
|
+
plugins: [
|
|
530
|
+
intlayerProxy(), // should be placed first
|
|
531
|
+
react(),
|
|
532
|
+
intlayer(),
|
|
533
|
+
],
|
|
530
534
|
});
|
|
531
535
|
```
|
|
532
536
|
|
|
@@ -556,7 +560,10 @@ const config: IntlayerConfig = {
|
|
|
556
560
|
|
|
557
561
|
/**
|
|
558
562
|
* Indicates if the components should be saved after being transformed.
|
|
559
|
-
*
|
|
563
|
+
*
|
|
564
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
565
|
+
*
|
|
566
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
560
567
|
*/
|
|
561
568
|
saveComponents: false,
|
|
562
569
|
|
|
@@ -587,7 +594,10 @@ const config = {
|
|
|
587
594
|
|
|
588
595
|
/**
|
|
589
596
|
* Indicates if the components should be saved after being transformed.
|
|
590
|
-
*
|
|
597
|
+
*
|
|
598
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
599
|
+
*
|
|
600
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
591
601
|
*/
|
|
592
602
|
saveComponents: false,
|
|
593
603
|
|
|
@@ -618,7 +628,10 @@ const config = {
|
|
|
618
628
|
|
|
619
629
|
/**
|
|
620
630
|
* Indicates if the components should be saved after being transformed.
|
|
621
|
-
*
|
|
631
|
+
*
|
|
632
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
633
|
+
*
|
|
634
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
622
635
|
*/
|
|
623
636
|
saveComponents: false,
|
|
624
637
|
|
|
@@ -589,7 +589,12 @@ import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
|
589
589
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
590
590
|
|
|
591
591
|
export default defineConfig({
|
|
592
|
-
plugins: [
|
|
592
|
+
plugins: [
|
|
593
|
+
intlayerProxy(), // should be placed first
|
|
594
|
+
reactRouter(),
|
|
595
|
+
tsconfigPaths(),
|
|
596
|
+
intlayer(),
|
|
597
|
+
],
|
|
593
598
|
});
|
|
594
599
|
```
|
|
595
600
|
|
|
@@ -619,7 +624,10 @@ const config: IntlayerConfig = {
|
|
|
619
624
|
|
|
620
625
|
/**
|
|
621
626
|
* Indicates if the components should be saved after being transformed.
|
|
622
|
-
*
|
|
627
|
+
*
|
|
628
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
629
|
+
*
|
|
630
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
623
631
|
*/
|
|
624
632
|
saveComponents: false,
|
|
625
633
|
|
|
@@ -650,7 +658,10 @@ const config = {
|
|
|
650
658
|
|
|
651
659
|
/**
|
|
652
660
|
* Indicates if the components should be saved after being transformed.
|
|
653
|
-
*
|
|
661
|
+
*
|
|
662
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
663
|
+
*
|
|
664
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
654
665
|
*/
|
|
655
666
|
saveComponents: false,
|
|
656
667
|
|
|
@@ -681,7 +692,10 @@ const config = {
|
|
|
681
692
|
|
|
682
693
|
/**
|
|
683
694
|
* Indicates if the components should be saved after being transformed.
|
|
684
|
-
*
|
|
695
|
+
*
|
|
696
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
697
|
+
*
|
|
698
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
685
699
|
*/
|
|
686
700
|
saveComponents: false,
|
|
687
701
|
|
|
@@ -265,7 +265,7 @@ For Webpack-based Storybook setups (e.g. `@storybook/react-webpack5`), extend th
|
|
|
265
265
|
|
|
266
266
|
```typescript fileName=".storybook/main.ts" codeFormat="typescript"
|
|
267
267
|
import type { StorybookConfig } from "@storybook/react-webpack5";
|
|
268
|
-
import {
|
|
268
|
+
import { IntlayerPlugin } from "@intlayer/webpack";
|
|
269
269
|
|
|
270
270
|
const config: StorybookConfig = {
|
|
271
271
|
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
|
@@ -276,10 +276,7 @@ const config: StorybookConfig = {
|
|
|
276
276
|
},
|
|
277
277
|
|
|
278
278
|
webpackFinal: async (baseConfig) => {
|
|
279
|
-
baseConfig.plugins = [
|
|
280
|
-
...(baseConfig.plugins ?? []),
|
|
281
|
-
new IntlayerWebpackPlugin(),
|
|
282
|
-
];
|
|
279
|
+
baseConfig.plugins = [...(baseConfig.plugins ?? []), new IntlayerPlugin()];
|
|
283
280
|
return baseConfig;
|
|
284
281
|
},
|
|
285
282
|
};
|