@intlayer/docs 8.4.10 → 8.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +32 -25
- package/docs/ar/dictionary/markdown.md +33 -35
- package/docs/ar/intlayer_with_analog.md +10 -27
- 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 +689 -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 +24 -8
- 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 +689 -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 +689 -0
- package/docs/cs/intlayer_with_vite+vanilla.md +722 -0
- package/docs/de/compiler.md +6 -1
- package/docs/de/configuration.md +12 -9
- package/docs/de/dictionary/html.md +151 -26
- package/docs/de/dictionary/markdown.md +154 -42
- package/docs/de/intlayer_with_analog.md +10 -27
- 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 +698 -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 +24 -8
- 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 +6 -1
- package/docs/en/configuration.md +12 -9
- package/docs/en/dictionary/html.md +152 -27
- package/docs/en/dictionary/markdown.md +154 -38
- package/docs/en/intlayer_with_analog.md +10 -27
- 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 +703 -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 +41 -10
- 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 +32 -25
- package/docs/en-GB/dictionary/markdown.md +34 -36
- package/docs/en-GB/intlayer_with_analog.md +10 -27
- 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 +703 -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 +19 -7
- 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/compiler.md +6 -1
- package/docs/es/configuration.md +12 -9
- package/docs/es/dictionary/html.md +152 -27
- package/docs/es/dictionary/markdown.md +155 -43
- package/docs/es/intlayer_with_analog.md +10 -27
- 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 +698 -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 +24 -8
- 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/compiler.md +8 -3
- package/docs/fr/configuration.md +12 -9
- package/docs/fr/dictionary/html.md +151 -26
- package/docs/fr/dictionary/markdown.md +155 -43
- package/docs/fr/intlayer_with_analog.md +10 -27
- 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 +698 -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 +24 -8
- 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 +32 -25
- package/docs/hi/dictionary/markdown.md +35 -37
- package/docs/hi/intlayer_with_analog.md +10 -27
- 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 +689 -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 +24 -8
- 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 +32 -25
- package/docs/id/dictionary/markdown.md +35 -37
- package/docs/id/intlayer_with_analog.md +10 -27
- 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 +689 -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 +19 -7
- 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/compiler.md +8 -3
- package/docs/it/configuration.md +12 -9
- package/docs/it/dictionary/html.md +151 -26
- package/docs/it/dictionary/markdown.md +155 -39
- package/docs/it/intlayer_with_analog.md +10 -27
- 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 +698 -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 +24 -8
- 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 +153 -29
- package/docs/ja/dictionary/markdown.md +154 -42
- package/docs/ja/intlayer_with_analog.md +10 -27
- 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 +698 -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 +24 -8
- 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 +154 -30
- package/docs/ko/dictionary/markdown.md +155 -43
- package/docs/ko/intlayer_with_analog.md +10 -27
- 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 +698 -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 +24 -8
- 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 +689 -0
- package/docs/nl/intlayer_with_vite+vanilla.md +722 -0
- package/docs/pl/dictionary/html.md +151 -26
- package/docs/pl/dictionary/markdown.md +155 -43
- package/docs/pl/intlayer_with_analog.md +10 -27
- 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 +689 -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 +19 -7
- 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/compiler.md +7 -2
- package/docs/pt/configuration.md +11 -9
- package/docs/pt/dictionary/html.md +132 -26
- package/docs/pt/dictionary/markdown.md +155 -43
- package/docs/pt/intlayer_with_analog.md +10 -27
- 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 +698 -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 +24 -8
- 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 +153 -29
- package/docs/ru/dictionary/markdown.md +155 -41
- package/docs/ru/intlayer_with_analog.md +10 -27
- 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 +698 -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 +24 -8
- 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 +134 -29
- package/docs/tr/dictionary/markdown.md +155 -41
- package/docs/tr/intlayer_with_analog.md +10 -27
- 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 +689 -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 +19 -7
- 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 +32 -25
- package/docs/uk/dictionary/markdown.md +35 -37
- package/docs/uk/intlayer_with_analog.md +10 -27
- 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 +689 -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 +19 -7
- 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 +689 -0
- package/docs/ur/intlayer_with_vite+vanilla.md +722 -0
- package/docs/vi/dictionary/html.md +32 -25
- package/docs/vi/dictionary/markdown.md +35 -37
- package/docs/vi/intlayer_with_analog.md +10 -27
- 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 +689 -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 +19 -7
- 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/compiler.md +8 -3
- package/docs/zh/configuration.md +4 -1
- package/docs/zh/dictionary/html.md +153 -29
- package/docs/zh/dictionary/markdown.md +155 -39
- package/docs/zh/intlayer_with_analog.md +10 -27
- 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 +698 -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 +19 -7
- 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 +6 -6
- package/src/generated/docs.entry.ts +40 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-04-18
|
|
3
|
-
updatedAt:
|
|
3
|
+
updatedAt: 2026-03-24
|
|
4
4
|
title: Vite + Vue i18n - How to translate an Vue app in 2026
|
|
5
5
|
description: Discover how to make your Vite and Vue website multilingual. Follow the documentation to internationalize (i18n) and translate it.
|
|
6
6
|
keywords:
|
|
@@ -17,6 +17,9 @@ slugs:
|
|
|
17
17
|
applicationTemplate: https://github.com/aymericzip/intlayer-vite-vue-template
|
|
18
18
|
youtubeVideo: https://www.youtube.com/watch?v=IE3XWkZ6a5U
|
|
19
19
|
history:
|
|
20
|
+
- version: 8.5.0
|
|
21
|
+
date: 2026-03-24
|
|
22
|
+
changes: Change installIntlayer by use(intlayer)
|
|
20
23
|
- version: 7.5.9
|
|
21
24
|
date: 2025-12-30
|
|
22
25
|
changes: "Add init command"
|
|
@@ -404,19 +407,26 @@ To utilize Intlayer's internationalization features throughout your Vue applicat
|
|
|
404
407
|
|
|
405
408
|
```javascript fileName=main.js
|
|
406
409
|
import { createApp } from "vue";
|
|
407
|
-
import {
|
|
410
|
+
import { intlayer } from "vue-intlayer";
|
|
408
411
|
import App from "./App.vue";
|
|
409
412
|
import "./style.css";
|
|
410
413
|
|
|
411
414
|
const app = createApp(App);
|
|
412
415
|
|
|
413
416
|
// Inject the provider at the top level
|
|
414
|
-
|
|
417
|
+
app.use(intlayer);
|
|
415
418
|
|
|
416
419
|
// Mount the app
|
|
417
420
|
app.mount("#app");
|
|
418
421
|
```
|
|
419
422
|
|
|
423
|
+
> You can also call `installIntlayer(app)` directly as a function if you prefer:
|
|
424
|
+
>
|
|
425
|
+
> ```javascript
|
|
426
|
+
> import { intlayer } from "vue-intlayer";
|
|
427
|
+
> app.use(intlayer);
|
|
428
|
+
> ```
|
|
429
|
+
|
|
420
430
|
Access your content dictionaries throughout your application by creating a main Vue component and using the `useIntlayer` composables:
|
|
421
431
|
|
|
422
432
|
```vue fileName="src/HelloWord.vue"
|
|
@@ -592,7 +602,7 @@ import {
|
|
|
592
602
|
localeFlatMap,
|
|
593
603
|
type Locale,
|
|
594
604
|
} from 'intlayer';
|
|
595
|
-
import { createIntlayerClient } from
|
|
605
|
+
import { createIntlayerClient } from "vue-intlayer";
|
|
596
606
|
import { createRouter, createWebHistory } from 'vue-router';
|
|
597
607
|
import HomeView from './views/home/HomeView.vue';
|
|
598
608
|
import RootView from './views/root/Root.vue';
|
|
@@ -682,7 +692,11 @@ import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
|
682
692
|
|
|
683
693
|
// https://vitejs.dev/config/
|
|
684
694
|
export default defineConfig({
|
|
685
|
-
plugins: [
|
|
695
|
+
plugins: [
|
|
696
|
+
intlayerProxy(), // should be placed first
|
|
697
|
+
vue(),
|
|
698
|
+
intlayer(),
|
|
699
|
+
],
|
|
686
700
|
});
|
|
687
701
|
```
|
|
688
702
|
|
|
@@ -693,7 +707,11 @@ import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
|
693
707
|
|
|
694
708
|
// https://vitejs.dev/config/
|
|
695
709
|
export default defineConfig({
|
|
696
|
-
plugins: [
|
|
710
|
+
plugins: [
|
|
711
|
+
intlayerProxy(), // should be placed first
|
|
712
|
+
vue(),
|
|
713
|
+
intlayer(),
|
|
714
|
+
],
|
|
697
715
|
});
|
|
698
716
|
```
|
|
699
717
|
|
|
@@ -704,7 +722,11 @@ const { intlayer, intlayerProxy } = require("vite-intlayer");
|
|
|
704
722
|
|
|
705
723
|
// https://vitejs.dev/config/
|
|
706
724
|
module.exports = defineConfig({
|
|
707
|
-
plugins: [
|
|
725
|
+
plugins: [
|
|
726
|
+
intlayerProxy(), // should be placed first
|
|
727
|
+
vue(),
|
|
728
|
+
intlayer(),
|
|
729
|
+
],
|
|
708
730
|
});
|
|
709
731
|
```
|
|
710
732
|
|
|
@@ -983,7 +1005,10 @@ const config: IntlayerConfig = {
|
|
|
983
1005
|
|
|
984
1006
|
/**
|
|
985
1007
|
* Indicates if the components should be saved after being transformed.
|
|
986
|
-
*
|
|
1008
|
+
*
|
|
1009
|
+
* - 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.
|
|
1010
|
+
*
|
|
1011
|
+
* - 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
1012
|
*/
|
|
988
1013
|
saveComponents: false,
|
|
989
1014
|
|
|
@@ -1014,7 +1039,10 @@ const config = {
|
|
|
1014
1039
|
|
|
1015
1040
|
/**
|
|
1016
1041
|
* Indicates if the components should be saved after being transformed.
|
|
1017
|
-
*
|
|
1042
|
+
*
|
|
1043
|
+
* - 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.
|
|
1044
|
+
*
|
|
1045
|
+
* - 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
1046
|
*/
|
|
1019
1047
|
saveComponents: false,
|
|
1020
1048
|
|
|
@@ -1045,7 +1073,10 @@ const config = {
|
|
|
1045
1073
|
|
|
1046
1074
|
/**
|
|
1047
1075
|
* Indicates if the components should be saved after being transformed.
|
|
1048
|
-
*
|
|
1076
|
+
*
|
|
1077
|
+
* - 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.
|
|
1078
|
+
*
|
|
1079
|
+
* - 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
1080
|
*/
|
|
1050
1081
|
saveComponents: false,
|
|
1051
1082
|
|
|
@@ -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
|
|
|
@@ -19,6 +19,12 @@ slugs:
|
|
|
19
19
|
- content
|
|
20
20
|
- html
|
|
21
21
|
history:
|
|
22
|
+
- version: 8.5.0
|
|
23
|
+
date: 2026-03-24
|
|
24
|
+
changes: "Add `intlayerHTML` plugin object; use `app.use(intlayerHTML)` instead of `app.use(installIntlayerHTML)`"
|
|
25
|
+
- version: 8.5.0
|
|
26
|
+
date: 2026-03-24
|
|
27
|
+
changes: "move import from `{{framework}}-intlayer` to `{{framework}}-intlayer/html`"
|
|
22
28
|
- version: 8.0.0
|
|
23
29
|
date: 2026-01-22
|
|
24
30
|
changes: "Add HTMLRenderer / useHTMLRenderer / renderHTML utility"
|
|
@@ -241,7 +247,7 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
241
247
|
<Tab label="React / Next.js" value="react">
|
|
242
248
|
|
|
243
249
|
```tsx fileName="AppProvider.tsx"
|
|
244
|
-
import { HTMLProvider } from "react-intlayer";
|
|
250
|
+
import { HTMLProvider } from "react-intlayer/html";
|
|
245
251
|
|
|
246
252
|
export const AppProvider = ({ children }) => (
|
|
247
253
|
<HTMLProvider
|
|
@@ -260,13 +266,14 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
260
266
|
|
|
261
267
|
```typescript fileName="main.ts"
|
|
262
268
|
import { createApp, h } from "vue";
|
|
263
|
-
import {
|
|
269
|
+
import { intlayer } from "vue-intlayer";
|
|
270
|
+
import { intlayerHTML } from "vue-intlayer/html";
|
|
264
271
|
import App from "./App.vue";
|
|
265
272
|
|
|
266
273
|
const app = createApp(App);
|
|
267
274
|
|
|
268
|
-
app.use(
|
|
269
|
-
app.use(
|
|
275
|
+
app.use(intlayer);
|
|
276
|
+
app.use(intlayerHTML, {
|
|
270
277
|
components: {
|
|
271
278
|
p: (props, { slots }) => h("p", { class: "prose", ...props }, slots.default?.()),
|
|
272
279
|
CustomLink: (props, { slots }) => h("a", { href: "/details", ...props }, slots.default?.()),
|
|
@@ -281,7 +288,7 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
281
288
|
|
|
282
289
|
```svelte fileName="App.svelte"
|
|
283
290
|
<script lang="ts">
|
|
284
|
-
import { HTMLProvider } from "svelte-intlayer";
|
|
291
|
+
import { HTMLProvider } from "svelte-intlayer/html";
|
|
285
292
|
import MyCustomP from "./MyCustomP.svelte";
|
|
286
293
|
</script>
|
|
287
294
|
|
|
@@ -298,7 +305,7 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
298
305
|
<Tab label="Preact" value="preact">
|
|
299
306
|
|
|
300
307
|
```tsx fileName="AppProvider.tsx"
|
|
301
|
-
import { HTMLProvider } from "preact-intlayer";
|
|
308
|
+
import { HTMLProvider } from "preact-intlayer/html";
|
|
302
309
|
|
|
303
310
|
export const AppProvider = ({ children }) => (
|
|
304
311
|
<HTMLProvider
|
|
@@ -315,7 +322,7 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
315
322
|
<Tab label="Solid" value="solid">
|
|
316
323
|
|
|
317
324
|
```tsx fileName="AppProvider.tsx"
|
|
318
|
-
import { HTMLProvider } from "solid-intlayer";
|
|
325
|
+
import { HTMLProvider } from "solid-intlayer/html";
|
|
319
326
|
|
|
320
327
|
export const AppProvider = (props) => (
|
|
321
328
|
<HTMLProvider
|
|
@@ -332,11 +339,11 @@ You can configure HTML rendering globally for your entire application. This is i
|
|
|
332
339
|
<Tab label="Angular" value="angular">
|
|
333
340
|
|
|
334
341
|
```typescript fileName="app.config.ts"
|
|
335
|
-
import {
|
|
342
|
+
import { createIntlayerHTMLProvider } from "angular-intlayer/html";
|
|
336
343
|
|
|
337
344
|
export const appConfig: ApplicationConfig = {
|
|
338
345
|
providers: [
|
|
339
|
-
|
|
346
|
+
createIntlayerHTMLProvider({
|
|
340
347
|
components: {
|
|
341
348
|
p: { class: "prose" },
|
|
342
349
|
CustomLink: { href: "/details" },
|
|
@@ -361,7 +368,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
361
368
|
Render an HTML string with specific components.
|
|
362
369
|
|
|
363
370
|
```tsx
|
|
364
|
-
import { HTMLRenderer } from "react-intlayer";
|
|
371
|
+
import { HTMLRenderer } from "react-intlayer/html";
|
|
365
372
|
|
|
366
373
|
<HTMLRenderer components={{ p: MyCustomP }}>
|
|
367
374
|
{"<p>Hello World</p>"}
|
|
@@ -373,7 +380,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
373
380
|
Get a pre-configured renderer function.
|
|
374
381
|
|
|
375
382
|
```tsx
|
|
376
|
-
import { useHTMLRenderer } from "react-intlayer";
|
|
383
|
+
import { useHTMLRenderer } from "react-intlayer/html";
|
|
377
384
|
|
|
378
385
|
const renderHTML = useHTMLRenderer({
|
|
379
386
|
components: { strong: (props) => <strong {...props} className="text-red-500" /> }
|
|
@@ -387,7 +394,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
387
394
|
Standalone utility for rendering outside of components.
|
|
388
395
|
|
|
389
396
|
```tsx
|
|
390
|
-
import { renderHTML } from "react-intlayer";
|
|
397
|
+
import { renderHTML } from "react-intlayer/html";
|
|
391
398
|
|
|
392
399
|
const jsx = renderHTML("<p>Hello</p>", { components: { p: 'div' } });
|
|
393
400
|
```
|
|
@@ -399,7 +406,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
399
406
|
|
|
400
407
|
```vue
|
|
401
408
|
<script setup>
|
|
402
|
-
import { HTMLRenderer } from "vue-intlayer";
|
|
409
|
+
import { HTMLRenderer } from "vue-intlayer/html";
|
|
403
410
|
</script>
|
|
404
411
|
|
|
405
412
|
<template>
|
|
@@ -414,7 +421,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
414
421
|
|
|
415
422
|
```svelte
|
|
416
423
|
<script lang="ts">
|
|
417
|
-
import { HTMLRenderer } from "svelte-intlayer";
|
|
424
|
+
import { HTMLRenderer } from "svelte-intlayer/html";
|
|
418
425
|
</script>
|
|
419
426
|
|
|
420
427
|
<HTMLRenderer value="<p>Hello World</p>" />
|
|
@@ -424,7 +431,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
424
431
|
|
|
425
432
|
```svelte
|
|
426
433
|
<script lang="ts">
|
|
427
|
-
import { useHTMLRenderer } from "svelte-intlayer";
|
|
434
|
+
import { useHTMLRenderer } from "svelte-intlayer/html";
|
|
428
435
|
const render = useHTMLRenderer();
|
|
429
436
|
</script>
|
|
430
437
|
|
|
@@ -435,7 +442,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
435
442
|
|
|
436
443
|
```svelte
|
|
437
444
|
<script lang="ts">
|
|
438
|
-
import { renderHTML } from "svelte-intlayer";
|
|
445
|
+
import { renderHTML } from "svelte-intlayer/html";
|
|
439
446
|
</script>
|
|
440
447
|
|
|
441
448
|
{@html renderHTML("<p>Hello World</p>")}
|
|
@@ -447,7 +454,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
447
454
|
#### `<HTMLRenderer />` Component
|
|
448
455
|
|
|
449
456
|
```tsx
|
|
450
|
-
import { HTMLRenderer } from "preact-intlayer";
|
|
457
|
+
import { HTMLRenderer } from "preact-intlayer/html";
|
|
451
458
|
|
|
452
459
|
<HTMLRenderer>
|
|
453
460
|
{"<p>Hello World</p>"}
|
|
@@ -457,7 +464,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
457
464
|
#### `useHTMLRenderer()` Hook
|
|
458
465
|
|
|
459
466
|
```tsx
|
|
460
|
-
import { useHTMLRenderer } from "preact-intlayer";
|
|
467
|
+
import { useHTMLRenderer } from "preact-intlayer/html";
|
|
461
468
|
|
|
462
469
|
const render = useHTMLRenderer();
|
|
463
470
|
|
|
@@ -467,7 +474,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
467
474
|
#### `renderHTML()` Utility
|
|
468
475
|
|
|
469
476
|
```tsx
|
|
470
|
-
import { renderHTML } from "preact-intlayer";
|
|
477
|
+
import { renderHTML } from "preact-intlayer/html";
|
|
471
478
|
|
|
472
479
|
return <div>{renderHTML("<p>Hello World</p>")}</div>;
|
|
473
480
|
```
|
|
@@ -478,7 +485,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
478
485
|
#### `<HTMLRenderer />` Component
|
|
479
486
|
|
|
480
487
|
```tsx
|
|
481
|
-
import { HTMLRenderer } from "solid-intlayer";
|
|
488
|
+
import { HTMLRenderer } from "solid-intlayer/html";
|
|
482
489
|
|
|
483
490
|
<HTMLRenderer>
|
|
484
491
|
{"<p>Hello World</p>"}
|
|
@@ -488,7 +495,7 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
488
495
|
#### `useHTMLRenderer()` Hook
|
|
489
496
|
|
|
490
497
|
```tsx
|
|
491
|
-
import { useHTMLRenderer } from "solid-intlayer";
|
|
498
|
+
import { useHTMLRenderer } from "solid-intlayer/html";
|
|
492
499
|
|
|
493
500
|
const render = useHTMLRenderer();
|
|
494
501
|
|
|
@@ -498,21 +505,21 @@ If you need to render raw HTML strings or have more control over the component m
|
|
|
498
505
|
#### `renderHTML()` Utility
|
|
499
506
|
|
|
500
507
|
```tsx
|
|
501
|
-
import { renderHTML } from "solid-intlayer";
|
|
508
|
+
import { renderHTML } from "solid-intlayer/html";
|
|
502
509
|
|
|
503
510
|
return <div>{renderHTML("<p>Hello World</p>")}</div>;
|
|
504
511
|
```
|
|
505
512
|
|
|
506
513
|
</Tab>
|
|
507
514
|
<Tab label="Angular" value="angular">
|
|
508
|
-
#### `
|
|
515
|
+
#### `IntlayerHTMLService` Service
|
|
509
516
|
Render an HTML string using the service.
|
|
510
517
|
|
|
511
518
|
```typescript
|
|
512
|
-
import {
|
|
519
|
+
import { IntlayerHTMLService } from "angular-intlayer";
|
|
513
520
|
|
|
514
521
|
export class MyComponent {
|
|
515
|
-
constructor(private markdownService:
|
|
522
|
+
constructor(private markdownService: IntlayerHTMLService) {}
|
|
516
523
|
|
|
517
524
|
renderHTML(html: string) {
|
|
518
525
|
return this.markdownService.renderMarkdown(html);
|