@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
|
@@ -592,7 +592,7 @@ import {
|
|
|
592
592
|
localeFlatMap,
|
|
593
593
|
type Locale,
|
|
594
594
|
} from 'intlayer';
|
|
595
|
-
import { createIntlayerClient } from
|
|
595
|
+
import { createIntlayerClient } from "vue-intlayer";
|
|
596
596
|
import { createRouter, createWebHistory } from 'vue-router';
|
|
597
597
|
import HomeView from './views/home/HomeView.vue';
|
|
598
598
|
import RootView from './views/root/Root.vue';
|
|
@@ -682,7 +682,11 @@ import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
|
682
682
|
|
|
683
683
|
// https://vitejs.dev/config/
|
|
684
684
|
export default defineConfig({
|
|
685
|
-
plugins: [
|
|
685
|
+
plugins: [
|
|
686
|
+
intlayerProxy(), // should be placed first
|
|
687
|
+
vue(),
|
|
688
|
+
intlayer(),
|
|
689
|
+
],
|
|
686
690
|
});
|
|
687
691
|
```
|
|
688
692
|
|
|
@@ -693,7 +697,11 @@ import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
|
693
697
|
|
|
694
698
|
// https://vitejs.dev/config/
|
|
695
699
|
export default defineConfig({
|
|
696
|
-
plugins: [
|
|
700
|
+
plugins: [
|
|
701
|
+
intlayerProxy(), // should be placed first
|
|
702
|
+
vue(),
|
|
703
|
+
intlayer(),
|
|
704
|
+
],
|
|
697
705
|
});
|
|
698
706
|
```
|
|
699
707
|
|
|
@@ -704,7 +712,11 @@ const { intlayer, intlayerProxy } = require("vite-intlayer");
|
|
|
704
712
|
|
|
705
713
|
// https://vitejs.dev/config/
|
|
706
714
|
module.exports = defineConfig({
|
|
707
|
-
plugins: [
|
|
715
|
+
plugins: [
|
|
716
|
+
intlayerProxy(), // should be placed first
|
|
717
|
+
vue(),
|
|
718
|
+
intlayer(),
|
|
719
|
+
],
|
|
708
720
|
});
|
|
709
721
|
```
|
|
710
722
|
|
|
@@ -983,7 +995,10 @@ const config: IntlayerConfig = {
|
|
|
983
995
|
|
|
984
996
|
/**
|
|
985
997
|
* Indicates if the components should be saved after being transformed.
|
|
986
|
-
*
|
|
998
|
+
*
|
|
999
|
+
* - 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.
|
|
1000
|
+
*
|
|
1001
|
+
* - 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.
|
|
987
1002
|
*/
|
|
988
1003
|
saveComponents: false,
|
|
989
1004
|
|
|
@@ -1014,7 +1029,10 @@ const config = {
|
|
|
1014
1029
|
|
|
1015
1030
|
/**
|
|
1016
1031
|
* Indicates if the components should be saved after being transformed.
|
|
1017
|
-
*
|
|
1032
|
+
*
|
|
1033
|
+
* - 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.
|
|
1034
|
+
*
|
|
1035
|
+
* - 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.
|
|
1018
1036
|
*/
|
|
1019
1037
|
saveComponents: false,
|
|
1020
1038
|
|
|
@@ -1045,7 +1063,10 @@ const config = {
|
|
|
1045
1063
|
|
|
1046
1064
|
/**
|
|
1047
1065
|
* Indicates if the components should be saved after being transformed.
|
|
1048
|
-
*
|
|
1066
|
+
*
|
|
1067
|
+
* - 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.
|
|
1068
|
+
*
|
|
1069
|
+
* - 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.
|
|
1049
1070
|
*/
|
|
1050
1071
|
saveComponents: false,
|
|
1051
1072
|
|
|
@@ -28,7 +28,7 @@ The `MarkdownRenderer` component renders markdown content with custom components
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
30
30
|
```tsx
|
|
31
|
-
import { MarkdownRenderer } from "react-intlayer";
|
|
31
|
+
import { MarkdownRenderer } from "react-intlayer/markdown";
|
|
32
32
|
|
|
33
33
|
const MyComponent = () => (
|
|
34
34
|
<MarkdownRenderer># My Title My content</MarkdownRenderer>
|
|
@@ -29,7 +29,7 @@ Call the hook within a Svelte component.
|
|
|
29
29
|
|
|
30
30
|
```svelte
|
|
31
31
|
<script>
|
|
32
|
-
import { useRewriteURL } from
|
|
32
|
+
import { useRewriteURL } from "svelte-intlayer";
|
|
33
33
|
|
|
34
34
|
// Automatically correct /fr/tests to /fr/essais in the address bar if a rewrite rule exists
|
|
35
35
|
useRewriteURL();
|
package/docs/en/readme.md
CHANGED
|
@@ -197,6 +197,7 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
|
|
|
197
197
|
<li><a href="https://intlayer.org/doc/environment/vite-and-vue" rel=''>Vite + Vue</a></li>
|
|
198
198
|
<li><a href="https://intlayer.org/doc/environment/vite-and-nuxt" rel=''>Vite + Nuxt</a></li>
|
|
199
199
|
<li><a href="https://intlayer.org/doc/environment/vite-and-solid" rel=''>Vite + Solid</a></li>
|
|
200
|
+
<li><a href="https://intlayer.org/doc/environment/vite-and-lit" rel=''>Vite + Lit</a></li>
|
|
200
201
|
<li><a href="https://intlayer.org/doc/environment/angular" rel=''>Angular</a></li>
|
|
201
202
|
<li>
|
|
202
203
|
<a href="https://intlayer.org/doc/environment/express" rel=''>Backend</a>
|
package/docs/en/releases/v8.md
CHANGED
|
@@ -69,7 +69,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
69
69
|
**1. Using the Component:**
|
|
70
70
|
|
|
71
71
|
```tsx
|
|
72
|
-
import { MarkdownRenderer } from "react-intlayer";
|
|
72
|
+
import { MarkdownRenderer } from "react-intlayer/markdown";
|
|
73
73
|
|
|
74
74
|
<MarkdownRenderer
|
|
75
75
|
forceBlock={true}
|
|
@@ -84,7 +84,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
84
84
|
**2. Using the Hook:**
|
|
85
85
|
|
|
86
86
|
```tsx
|
|
87
|
-
import { useMarkdownRenderer } from "react-intlayer";
|
|
87
|
+
import { useMarkdownRenderer } from "react-intlayer/markdown";
|
|
88
88
|
|
|
89
89
|
const renderMarkdown = useMarkdownRenderer({
|
|
90
90
|
components: {
|
|
@@ -98,7 +98,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
98
98
|
**3. Using the Utility Function:**
|
|
99
99
|
|
|
100
100
|
```tsx
|
|
101
|
-
import { renderMarkdown } from "react-intlayer";
|
|
101
|
+
import { renderMarkdown } from "react-intlayer/markdown";
|
|
102
102
|
|
|
103
103
|
const html = renderMarkdown("# My Title", {
|
|
104
104
|
forceBlock: true
|
|
@@ -112,7 +112,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
112
112
|
|
|
113
113
|
```vue
|
|
114
114
|
<script setup>
|
|
115
|
-
import { MarkdownRenderer } from "vue-intlayer";
|
|
115
|
+
import { MarkdownRenderer } from "vue-intlayer/markdown";
|
|
116
116
|
</script>
|
|
117
117
|
|
|
118
118
|
<template>
|
|
@@ -127,7 +127,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
127
127
|
|
|
128
128
|
```svelte
|
|
129
129
|
<script>
|
|
130
|
-
import { MarkdownRenderer } from "svelte-intlayer";
|
|
130
|
+
import { MarkdownRenderer } from "svelte-intlayer/markdown";
|
|
131
131
|
</script>
|
|
132
132
|
|
|
133
133
|
<MarkdownRenderer forceBlock={true} value="# My Title" />
|
|
@@ -137,7 +137,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
137
137
|
|
|
138
138
|
```svelte
|
|
139
139
|
<script>
|
|
140
|
-
import { useMarkdownRenderer } from "svelte-intlayer";
|
|
140
|
+
import { useMarkdownRenderer } from "svelte-intlayer/markdown";
|
|
141
141
|
const render = useMarkdownRenderer();
|
|
142
142
|
</script>
|
|
143
143
|
|
|
@@ -148,7 +148,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
148
148
|
|
|
149
149
|
```svelte
|
|
150
150
|
<script>
|
|
151
|
-
import { renderMarkdown } from "svelte-intlayer";
|
|
151
|
+
import { renderMarkdown } from "svelte-intlayer/markdown";
|
|
152
152
|
</script>
|
|
153
153
|
|
|
154
154
|
{@html renderMarkdown("# My Title")}
|
|
@@ -179,7 +179,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
179
179
|
**1. Using the Component:**
|
|
180
180
|
|
|
181
181
|
```tsx
|
|
182
|
-
import { MarkdownRenderer } from "solid-intlayer";
|
|
182
|
+
import { MarkdownRenderer } from "solid-intlayer/markdown";
|
|
183
183
|
|
|
184
184
|
<MarkdownRenderer forceBlock={true}>
|
|
185
185
|
{"# My Title"}
|
|
@@ -189,7 +189,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
189
189
|
**2. Using the Hook:**
|
|
190
190
|
|
|
191
191
|
```tsx
|
|
192
|
-
import { useMarkdownRenderer } from "solid-intlayer";
|
|
192
|
+
import { useMarkdownRenderer } from "solid-intlayer/markdown";
|
|
193
193
|
|
|
194
194
|
const render = useMarkdownRenderer();
|
|
195
195
|
|
|
@@ -199,7 +199,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
199
199
|
**3. Using the Utility Function:**
|
|
200
200
|
|
|
201
201
|
```tsx
|
|
202
|
-
import { renderMarkdown } from "solid-intlayer";
|
|
202
|
+
import { renderMarkdown } from "solid-intlayer/markdown";
|
|
203
203
|
|
|
204
204
|
return <div>{renderMarkdown("# My Title")}</div>;
|
|
205
205
|
```
|
|
@@ -210,7 +210,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
210
210
|
**1. Using the Component:**
|
|
211
211
|
|
|
212
212
|
```tsx
|
|
213
|
-
import { MarkdownRenderer } from "preact-intlayer";
|
|
213
|
+
import { MarkdownRenderer } from "preact-intlayer/markdown";
|
|
214
214
|
|
|
215
215
|
<MarkdownRenderer forceBlock={true}>
|
|
216
216
|
{"# My Title"}
|
|
@@ -220,7 +220,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
220
220
|
**2. Using the Hook:**
|
|
221
221
|
|
|
222
222
|
```tsx
|
|
223
|
-
import { useMarkdownRenderer } from "preact-intlayer";
|
|
223
|
+
import { useMarkdownRenderer } from "preact-intlayer/markdown";
|
|
224
224
|
|
|
225
225
|
const render = useMarkdownRenderer();
|
|
226
226
|
|
|
@@ -230,7 +230,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
230
230
|
**3. Using the Utility Function:**
|
|
231
231
|
|
|
232
232
|
```tsx
|
|
233
|
-
import { renderMarkdown } from "preact-intlayer";
|
|
233
|
+
import { renderMarkdown } from "preact-intlayer/markdown";
|
|
234
234
|
|
|
235
235
|
return <div>{renderMarkdown("# My Title")}</div>;
|
|
236
236
|
```
|
|
@@ -246,7 +246,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
246
246
|
**1. Using the Component:**
|
|
247
247
|
|
|
248
248
|
```tsx
|
|
249
|
-
import { HTMLRenderer } from "react-intlayer";
|
|
249
|
+
import { HTMLRenderer } from "react-intlayer/html";
|
|
250
250
|
|
|
251
251
|
<HTMLRenderer
|
|
252
252
|
components={{
|
|
@@ -260,7 +260,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
260
260
|
**2. Using the Hook:**
|
|
261
261
|
|
|
262
262
|
```tsx
|
|
263
|
-
import { useHTMLRenderer } from "react-intlayer";
|
|
263
|
+
import { useHTMLRenderer } from "react-intlayer/html";
|
|
264
264
|
|
|
265
265
|
const renderHTML = useHTMLRenderer({
|
|
266
266
|
components: {
|
|
@@ -274,7 +274,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
274
274
|
**3. Using the Utility Function:**
|
|
275
275
|
|
|
276
276
|
```tsx
|
|
277
|
-
import { renderHTML } from "react-intlayer";
|
|
277
|
+
import { renderHTML } from "react-intlayer/html";
|
|
278
278
|
|
|
279
279
|
const html = renderHTML("<p>Hello World</p>");
|
|
280
280
|
```
|
|
@@ -286,7 +286,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
286
286
|
|
|
287
287
|
```vue
|
|
288
288
|
<script setup>
|
|
289
|
-
import { HTMLRenderer } from "vue-intlayer";
|
|
289
|
+
import { HTMLRenderer } from "vue-intlayer/html";
|
|
290
290
|
</script>
|
|
291
291
|
|
|
292
292
|
<template>
|
|
@@ -301,7 +301,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
301
301
|
|
|
302
302
|
```svelte
|
|
303
303
|
<script>
|
|
304
|
-
import { HTMLRenderer } from "svelte-intlayer";
|
|
304
|
+
import { HTMLRenderer } from "svelte-intlayer/html";
|
|
305
305
|
</script>
|
|
306
306
|
|
|
307
307
|
<HTMLRenderer value="<p>Hello World</p>" />
|
|
@@ -311,7 +311,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
311
311
|
|
|
312
312
|
```svelte
|
|
313
313
|
<script>
|
|
314
|
-
import { useHTMLRenderer } from "svelte-intlayer";
|
|
314
|
+
import { useHTMLRenderer } from "svelte-intlayer/html";
|
|
315
315
|
const render = useHTMLRenderer();
|
|
316
316
|
</script>
|
|
317
317
|
|
|
@@ -322,7 +322,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
322
322
|
|
|
323
323
|
```svelte
|
|
324
324
|
<script>
|
|
325
|
-
import { renderHTML } from "svelte-intlayer";
|
|
325
|
+
import { renderHTML } from "svelte-intlayer/html";
|
|
326
326
|
</script>
|
|
327
327
|
|
|
328
328
|
{@html renderHTML("<p>Hello World</p>")}
|
|
@@ -345,7 +345,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
345
345
|
**1. Using the Component:**
|
|
346
346
|
|
|
347
347
|
```tsx
|
|
348
|
-
import { HTMLRenderer } from "solid-intlayer";
|
|
348
|
+
import { HTMLRenderer } from "solid-intlayer/html";
|
|
349
349
|
|
|
350
350
|
<HTMLRenderer>
|
|
351
351
|
{"<p>Hello World</p>"}
|
|
@@ -355,7 +355,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
355
355
|
**2. Using the Hook:**
|
|
356
356
|
|
|
357
357
|
```tsx
|
|
358
|
-
import { useHTMLRenderer } from "solid-intlayer";
|
|
358
|
+
import { useHTMLRenderer } from "solid-intlayer/html";
|
|
359
359
|
|
|
360
360
|
const render = useHTMLRenderer();
|
|
361
361
|
|
|
@@ -365,7 +365,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
365
365
|
**3. Using the Utility Function:**
|
|
366
366
|
|
|
367
367
|
```tsx
|
|
368
|
-
import { renderHTML } from "solid-intlayer";
|
|
368
|
+
import { renderHTML } from "solid-intlayer/html";
|
|
369
369
|
|
|
370
370
|
return <div>{renderHTML("<p>Hello World</p>")}</div>;
|
|
371
371
|
```
|
|
@@ -376,7 +376,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
376
376
|
**1. Using the Component:**
|
|
377
377
|
|
|
378
378
|
```tsx
|
|
379
|
-
import { HTMLRenderer } from "preact-intlayer";
|
|
379
|
+
import { HTMLRenderer } from "preact-intlayer/html";
|
|
380
380
|
|
|
381
381
|
<HTMLRenderer>
|
|
382
382
|
{"<p>Hello World</p>"}
|
|
@@ -386,7 +386,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
386
386
|
**2. Using the Hook:**
|
|
387
387
|
|
|
388
388
|
```tsx
|
|
389
|
-
import { useHTMLRenderer } from "preact-intlayer";
|
|
389
|
+
import { useHTMLRenderer } from "preact-intlayer/html";
|
|
390
390
|
|
|
391
391
|
const render = useHTMLRenderer();
|
|
392
392
|
|
|
@@ -396,7 +396,7 @@ We have introduced new standalone renderer functions and components to give you
|
|
|
396
396
|
**3. Using the Utility Function:**
|
|
397
397
|
|
|
398
398
|
```tsx
|
|
399
|
-
import { renderHTML } from "preact-intlayer";
|
|
399
|
+
import { renderHTML } from "preact-intlayer/html";
|
|
400
400
|
|
|
401
401
|
return <div>{renderHTML("<p>Hello World</p>")}</div>;
|
|
402
402
|
```
|
|
@@ -1032,7 +1032,7 @@ Intlayer v8 includes a new caching layer for the Markdown and HTML compiler. Thi
|
|
|
1032
1032
|
|
|
1033
1033
|
```typescript fileName="vite.config.js"
|
|
1034
1034
|
import { defineConfig } from 'vite';
|
|
1035
|
-
import {intlayer, intlayerCompiler} from
|
|
1035
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
1036
1036
|
|
|
1037
1037
|
export default defineConfig({
|
|
1038
1038
|
plugins: [intlayer(), intlayerCompiler()],
|
package/docs/en-GB/compiler.md
CHANGED
|
@@ -208,7 +208,10 @@ const config: IntlayerConfig = {
|
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
210
|
* Indicates if the components should be saved after being transformed.
|
|
211
|
-
*
|
|
211
|
+
*
|
|
212
|
+
* - 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.
|
|
213
|
+
*
|
|
214
|
+
* - 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.
|
|
212
215
|
*/
|
|
213
216
|
saveComponents: false,
|
|
214
217
|
|
|
@@ -518,7 +518,10 @@ const config: IntlayerConfig = {
|
|
|
518
518
|
|
|
519
519
|
/**
|
|
520
520
|
* Indicates if the components should be saved after being transformed.
|
|
521
|
-
*
|
|
521
|
+
*
|
|
522
|
+
* - 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.
|
|
523
|
+
*
|
|
524
|
+
* - 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.
|
|
522
525
|
*/
|
|
523
526
|
saveComponents: false,
|
|
524
527
|
|
|
@@ -241,7 +241,7 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
241
241
|
<Tab label="React / Next.js" value="react">
|
|
242
242
|
|
|
243
243
|
```tsx fileName="AppProvider.tsx"
|
|
244
|
-
import { HTMLProvider } from "react-intlayer";
|
|
244
|
+
import { HTMLProvider } from "react-intlayer/html";
|
|
245
245
|
|
|
246
246
|
export const AppProvider = ({ children }) => (
|
|
247
247
|
<HTMLProvider
|
|
@@ -281,7 +281,7 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
281
281
|
|
|
282
282
|
```svelte fileName="App.svelte"
|
|
283
283
|
<script lang="ts">
|
|
284
|
-
import { HTMLProvider } from "svelte-intlayer";
|
|
284
|
+
import { HTMLProvider } from "svelte-intlayer/html";
|
|
285
285
|
import MyCustomP from "./MyCustomP.svelte";
|
|
286
286
|
</script>
|
|
287
287
|
|
|
@@ -298,7 +298,7 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
298
298
|
<Tab label="Preact" value="preact">
|
|
299
299
|
|
|
300
300
|
```tsx fileName="AppProvider.tsx"
|
|
301
|
-
import { HTMLProvider } from "preact-intlayer";
|
|
301
|
+
import { HTMLProvider } from "preact-intlayer/html";
|
|
302
302
|
|
|
303
303
|
export const AppProvider = ({ children }) => (
|
|
304
304
|
<HTMLProvider
|
|
@@ -315,7 +315,7 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
315
315
|
<Tab label="Solid" value="solid">
|
|
316
316
|
|
|
317
317
|
```tsx fileName="AppProvider.tsx"
|
|
318
|
-
import { HTMLProvider } from "solid-intlayer";
|
|
318
|
+
import { HTMLProvider } from "solid-intlayer/html";
|
|
319
319
|
|
|
320
320
|
export const AppProvider = (props) => (
|
|
321
321
|
<HTMLProvider
|
|
@@ -332,11 +332,11 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
332
332
|
<Tab label="Angular" value="angular">
|
|
333
333
|
|
|
334
334
|
```typescript fileName="app.config.ts"
|
|
335
|
-
import {
|
|
335
|
+
import { createIntlayerHTMLProvider } from "angular-intlayer/html";
|
|
336
336
|
|
|
337
337
|
export const appConfig: ApplicationConfig = {
|
|
338
338
|
providers: [
|
|
339
|
-
|
|
339
|
+
createIntlayerHTMLProvider({
|
|
340
340
|
components: {
|
|
341
341
|
p: { class: "prose" },
|
|
342
342
|
CustomLink: { href: "/details" },
|
|
@@ -361,7 +361,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
361
361
|
Render an HTML string with specific components.
|
|
362
362
|
|
|
363
363
|
```tsx
|
|
364
|
-
import { HTMLRenderer } from "react-intlayer";
|
|
364
|
+
import { HTMLRenderer } from "react-intlayer/html";
|
|
365
365
|
|
|
366
366
|
<HTMLRenderer components={{ p: MyCustomP }}>
|
|
367
367
|
{"<p>Hello World</p>"}
|
|
@@ -373,7 +373,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
373
373
|
Get a pre-configured renderer function.
|
|
374
374
|
|
|
375
375
|
```tsx
|
|
376
|
-
import { useHTMLRenderer } from "react-intlayer";
|
|
376
|
+
import { useHTMLRenderer } from "react-intlayer/html";
|
|
377
377
|
|
|
378
378
|
const renderHTML = useHTMLRenderer({
|
|
379
379
|
components: { strong: (props) => <strong {...props} className="text-red-500" /> }
|
|
@@ -387,7 +387,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
387
387
|
Standalone utility for rendering outside of components.
|
|
388
388
|
|
|
389
389
|
```tsx
|
|
390
|
-
import { renderHTML } from "react-intlayer";
|
|
390
|
+
import { renderHTML } from "react-intlayer/html";
|
|
391
391
|
|
|
392
392
|
const jsx = renderHTML("<p>Hello</p>", { components: { p: 'div' } });
|
|
393
393
|
```
|
|
@@ -399,7 +399,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
399
399
|
|
|
400
400
|
```vue
|
|
401
401
|
<script setup>
|
|
402
|
-
import { HTMLRenderer } from "vue-intlayer";
|
|
402
|
+
import { HTMLRenderer } from "vue-intlayer/html";
|
|
403
403
|
</script>
|
|
404
404
|
|
|
405
405
|
<template>
|
|
@@ -414,7 +414,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
414
414
|
|
|
415
415
|
```svelte
|
|
416
416
|
<script lang="ts">
|
|
417
|
-
import { HTMLRenderer } from "svelte-intlayer";
|
|
417
|
+
import { HTMLRenderer } from "svelte-intlayer/html";
|
|
418
418
|
</script>
|
|
419
419
|
|
|
420
420
|
<HTMLRenderer value="<p>Hello World</p>" />
|
|
@@ -424,7 +424,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
424
424
|
|
|
425
425
|
```svelte
|
|
426
426
|
<script lang="ts">
|
|
427
|
-
import { useHTMLRenderer } from "svelte-intlayer";
|
|
427
|
+
import { useHTMLRenderer } from "svelte-intlayer/html";
|
|
428
428
|
const render = useHTMLRenderer();
|
|
429
429
|
</script>
|
|
430
430
|
|
|
@@ -435,7 +435,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
435
435
|
|
|
436
436
|
```svelte
|
|
437
437
|
<script lang="ts">
|
|
438
|
-
import { renderHTML } from "svelte-intlayer";
|
|
438
|
+
import { renderHTML } from "svelte-intlayer/html";
|
|
439
439
|
</script>
|
|
440
440
|
|
|
441
441
|
{@html renderHTML("<p>Hello World</p>")}
|
|
@@ -447,7 +447,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
447
447
|
#### `<HTMLRenderer />` Component
|
|
448
448
|
|
|
449
449
|
```tsx
|
|
450
|
-
import { HTMLRenderer } from "preact-intlayer";
|
|
450
|
+
import { HTMLRenderer } from "preact-intlayer/html";
|
|
451
451
|
|
|
452
452
|
<HTMLRenderer>
|
|
453
453
|
{"<p>Hello World</p>"}
|
|
@@ -457,7 +457,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
457
457
|
#### `useHTMLRenderer()` Hook
|
|
458
458
|
|
|
459
459
|
```tsx
|
|
460
|
-
import { useHTMLRenderer } from "preact-intlayer";
|
|
460
|
+
import { useHTMLRenderer } from "preact-intlayer/html";
|
|
461
461
|
|
|
462
462
|
const render = useHTMLRenderer();
|
|
463
463
|
|
|
@@ -467,7 +467,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
467
467
|
#### `renderHTML()` Utility
|
|
468
468
|
|
|
469
469
|
```tsx
|
|
470
|
-
import { renderHTML } from "preact-intlayer";
|
|
470
|
+
import { renderHTML } from "preact-intlayer/html";
|
|
471
471
|
|
|
472
472
|
return <div>{renderHTML("<p>Hello World</p>")}</div>;
|
|
473
473
|
```
|
|
@@ -478,7 +478,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
478
478
|
#### `<HTMLRenderer />` Component
|
|
479
479
|
|
|
480
480
|
```tsx
|
|
481
|
-
import { HTMLRenderer } from "solid-intlayer";
|
|
481
|
+
import { HTMLRenderer } from "solid-intlayer/html";
|
|
482
482
|
|
|
483
483
|
<HTMLRenderer>
|
|
484
484
|
{"<p>Hello World</p>"}
|
|
@@ -488,7 +488,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
488
488
|
#### `useHTMLRenderer()` Hook
|
|
489
489
|
|
|
490
490
|
```tsx
|
|
491
|
-
import { useHTMLRenderer } from "solid-intlayer";
|
|
491
|
+
import { useHTMLRenderer } from "solid-intlayer/html";
|
|
492
492
|
|
|
493
493
|
const render = useHTMLRenderer();
|
|
494
494
|
|
|
@@ -498,21 +498,21 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
498
498
|
#### `renderHTML()` Utility
|
|
499
499
|
|
|
500
500
|
```tsx
|
|
501
|
-
import { renderHTML } from "solid-intlayer";
|
|
501
|
+
import { renderHTML } from "solid-intlayer/html";
|
|
502
502
|
|
|
503
503
|
return <div>{renderHTML("<p>Hello World</p>")}</div>;
|
|
504
504
|
```
|
|
505
505
|
|
|
506
506
|
</Tab>
|
|
507
507
|
<Tab label="Angular" value="angular">
|
|
508
|
-
#### `
|
|
508
|
+
#### `IntlayerHTMLService` Service
|
|
509
509
|
Render an HTML string using the service.
|
|
510
510
|
|
|
511
511
|
```typescript
|
|
512
|
-
import {
|
|
512
|
+
import { IntlayerHTMLService } from "angular-intlayer";
|
|
513
513
|
|
|
514
514
|
export class MyComponent {
|
|
515
|
-
constructor(private markdownService:
|
|
515
|
+
constructor(private markdownService: IntlayerHTMLService) {}
|
|
516
516
|
|
|
517
517
|
renderHTML(html: string) {
|
|
518
518
|
return this.markdownService.renderMarkdown(html);
|