@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-02-07
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-03-24
|
|
4
4
|
title: Markdown
|
|
5
5
|
description: Learn how to declare and use Markdown content in your multilingual website with Intlayer. Follow the steps in this online documentation to integrate Markdown seamlessly into your project.
|
|
6
6
|
keywords:
|
|
@@ -17,6 +17,12 @@ slugs:
|
|
|
17
17
|
- content
|
|
18
18
|
- markdown
|
|
19
19
|
history:
|
|
20
|
+
- version: 8.5.0
|
|
21
|
+
date: 2026-03-24
|
|
22
|
+
changes: "Add `intlayerMarkdown` plugin object; use `app.use(intlayerMarkdown)` instead of `app.use(installIntlayerMarkdown)`"
|
|
23
|
+
- version: 8.5.0
|
|
24
|
+
date: 2026-03-24
|
|
25
|
+
changes: "move import from `{{framework}}-intlayer` to `{{framework}}-intlayer/markdown`"
|
|
20
26
|
- version: 8.0.0
|
|
21
27
|
date: 2026-01-22
|
|
22
28
|
changes: "Add MarkdownRenderer / useMarkdownRenderer / renderMarkdown utility and forceInline option"
|
|
@@ -90,7 +96,7 @@ You can declare Markdown content using the `md` function or simply as a string (
|
|
|
90
96
|
|
|
91
97
|
---
|
|
92
98
|
|
|
93
|
-
##
|
|
99
|
+
## Rendering Markdown
|
|
94
100
|
|
|
95
101
|
Rendering can be handled automatically by Intlayer's content system or manually using specialized tools.
|
|
96
102
|
|
|
@@ -213,7 +219,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
213
219
|
Render a Markdown string with specific options.
|
|
214
220
|
|
|
215
221
|
```tsx
|
|
216
|
-
import { MarkdownRenderer } from "react-intlayer";
|
|
222
|
+
import { MarkdownRenderer } from "react-intlayer/markdown";
|
|
217
223
|
|
|
218
224
|
<MarkdownRenderer forceBlock={true} tagfilter={true}>
|
|
219
225
|
{"# My Title"}
|
|
@@ -225,7 +231,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
225
231
|
Get a pre-configured renderer function.
|
|
226
232
|
|
|
227
233
|
```tsx
|
|
228
|
-
import { useMarkdownRenderer } from "react-intlayer";
|
|
234
|
+
import { useMarkdownRenderer } from "react-intlayer/markdown";
|
|
229
235
|
|
|
230
236
|
const renderMarkdown = useMarkdownRenderer({
|
|
231
237
|
forceBlock: true,
|
|
@@ -239,7 +245,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
239
245
|
Standalone utility for rendering outside of components.
|
|
240
246
|
|
|
241
247
|
```tsx
|
|
242
|
-
import { renderMarkdown } from "react-intlayer";
|
|
248
|
+
import { renderMarkdown } from "react-intlayer/markdown";
|
|
243
249
|
|
|
244
250
|
const jsx = renderMarkdown("# My Title", { forceBlock: true });
|
|
245
251
|
```
|
|
@@ -251,7 +257,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
251
257
|
|
|
252
258
|
```vue
|
|
253
259
|
<script setup>
|
|
254
|
-
import { MarkdownRenderer } from "vue-intlayer";
|
|
260
|
+
import { MarkdownRenderer } from "vue-intlayer/markdown";
|
|
255
261
|
</script>
|
|
256
262
|
|
|
257
263
|
<template>
|
|
@@ -266,7 +272,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
266
272
|
|
|
267
273
|
```svelte
|
|
268
274
|
<script lang="ts">
|
|
269
|
-
import { MarkdownRenderer } from "svelte-intlayer";
|
|
275
|
+
import { MarkdownRenderer } from "svelte-intlayer/markdown";
|
|
270
276
|
</script>
|
|
271
277
|
|
|
272
278
|
<MarkdownRenderer forceBlock={true} value="# My Title" />
|
|
@@ -276,7 +282,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
276
282
|
|
|
277
283
|
```svelte
|
|
278
284
|
<script lang="ts">
|
|
279
|
-
import { useMarkdownRenderer } from "svelte-intlayer";
|
|
285
|
+
import { useMarkdownRenderer } from "svelte-intlayer/markdown";
|
|
280
286
|
const render = useMarkdownRenderer();
|
|
281
287
|
</script>
|
|
282
288
|
|
|
@@ -287,7 +293,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
287
293
|
|
|
288
294
|
```svelte
|
|
289
295
|
<script lang="ts">
|
|
290
|
-
import { renderMarkdown } from "svelte-intlayer";
|
|
296
|
+
import { renderMarkdown } from "svelte-intlayer/markdown";
|
|
291
297
|
</script>
|
|
292
298
|
|
|
293
299
|
{@html renderMarkdown("# My Title")}
|
|
@@ -298,7 +304,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
298
304
|
#### `<MarkdownRenderer />` Component
|
|
299
305
|
|
|
300
306
|
```tsx
|
|
301
|
-
import { MarkdownRenderer } from "preact-intlayer";
|
|
307
|
+
import { MarkdownRenderer } from "preact-intlayer/markdown";
|
|
302
308
|
|
|
303
309
|
<MarkdownRenderer forceBlock={true}>
|
|
304
310
|
{"# My Title"}
|
|
@@ -308,7 +314,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
308
314
|
#### `useMarkdownRenderer()` Hook
|
|
309
315
|
|
|
310
316
|
```tsx
|
|
311
|
-
import { useMarkdownRenderer } from "preact-intlayer";
|
|
317
|
+
import { useMarkdownRenderer } from "preact-intlayer/markdown";
|
|
312
318
|
|
|
313
319
|
const render = useMarkdownRenderer();
|
|
314
320
|
|
|
@@ -318,7 +324,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
318
324
|
#### `renderMarkdown()` Utility
|
|
319
325
|
|
|
320
326
|
```tsx
|
|
321
|
-
import { renderMarkdown } from "preact-intlayer";
|
|
327
|
+
import { renderMarkdown } from "preact-intlayer/markdown";
|
|
322
328
|
|
|
323
329
|
return <div>{renderMarkdown("# My Title")}</div>;
|
|
324
330
|
```
|
|
@@ -328,7 +334,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
328
334
|
#### `<MarkdownRenderer />` Component
|
|
329
335
|
|
|
330
336
|
```tsx
|
|
331
|
-
import { MarkdownRenderer } from "solid-intlayer";
|
|
337
|
+
import { MarkdownRenderer } from "solid-intlayer/markdown";
|
|
332
338
|
|
|
333
339
|
<MarkdownRenderer forceBlock={true}>
|
|
334
340
|
{"# My Title"}
|
|
@@ -338,7 +344,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
338
344
|
#### `useMarkdownRenderer()` Hook
|
|
339
345
|
|
|
340
346
|
```tsx
|
|
341
|
-
import { useMarkdownRenderer } from "solid-intlayer";
|
|
347
|
+
import { useMarkdownRenderer } from "solid-intlayer/markdown";
|
|
342
348
|
|
|
343
349
|
const render = useMarkdownRenderer();
|
|
344
350
|
|
|
@@ -348,7 +354,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
348
354
|
#### `renderMarkdown()` Utility
|
|
349
355
|
|
|
350
356
|
```tsx
|
|
351
|
-
import { renderMarkdown } from "solid-intlayer";
|
|
357
|
+
import { renderMarkdown } from "solid-intlayer/markdown";
|
|
352
358
|
|
|
353
359
|
return <div>{renderMarkdown("# My Title")}</div>;
|
|
354
360
|
```
|
|
@@ -359,7 +365,7 @@ If you need to render raw Markdown strings or have more control over the renderi
|
|
|
359
365
|
Render a Markdown string using the service.
|
|
360
366
|
|
|
361
367
|
```typescript
|
|
362
|
-
import { IntlayerMarkdownService } from "angular-intlayer";
|
|
368
|
+
import { IntlayerMarkdownService } from "angular-intlayer/markdown";
|
|
363
369
|
|
|
364
370
|
export class MyComponent {
|
|
365
371
|
constructor(private markdownService: IntlayerMarkdownService) {}
|
|
@@ -383,12 +389,10 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
383
389
|
<Tab label="React / Next.js" value="react">
|
|
384
390
|
|
|
385
391
|
```tsx fileName="AppProvider.tsx"
|
|
386
|
-
import { MarkdownProvider } from "react-intlayer";
|
|
392
|
+
import { MarkdownProvider } from "react-intlayer/markdown";
|
|
387
393
|
|
|
388
394
|
export const AppProvider = ({ children }) => (
|
|
389
395
|
<MarkdownProvider
|
|
390
|
-
forceBlock={true}
|
|
391
|
-
tagfilter={true}
|
|
392
396
|
components={{
|
|
393
397
|
h1: ({ children }) => <h1 className="text-2xl font-bold">{children}</h1>,
|
|
394
398
|
a: ({ href, children }) => <Link to={href}>{children}</Link>,
|
|
@@ -399,43 +403,83 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
399
403
|
);
|
|
400
404
|
```
|
|
401
405
|
|
|
406
|
+
You can also use your own markdown renderer:
|
|
407
|
+
|
|
408
|
+
```tsx fileName="AppProvider.tsx"
|
|
409
|
+
import { MarkdownProvider } from "react-intlayer/markdown";
|
|
410
|
+
|
|
411
|
+
export const AppProvider = ({ children }) => (
|
|
412
|
+
<MarkdownProvider
|
|
413
|
+
renderMarkdown={async (md) => {
|
|
414
|
+
const { compileMarkdown } = await import('react-intlayer/markdown');
|
|
415
|
+
return compileMarkdown(md);
|
|
416
|
+
}}
|
|
417
|
+
>
|
|
418
|
+
{children}
|
|
419
|
+
</MarkdownProvider>
|
|
420
|
+
);
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
424
|
+
|
|
402
425
|
</Tab>
|
|
403
426
|
<Tab label="Vue" value="vue">
|
|
404
427
|
|
|
405
428
|
```typescript fileName="main.ts"
|
|
406
429
|
import { createApp } from "vue";
|
|
407
|
-
import {
|
|
430
|
+
import { intlayer } from "vue-intlayer";
|
|
431
|
+
import { intlayerMarkdown } from "vue-intlayer/markdown";
|
|
408
432
|
import App from "./App.vue";
|
|
409
433
|
|
|
410
434
|
const app = createApp(App);
|
|
411
435
|
|
|
412
|
-
app.use(
|
|
413
|
-
app.use(
|
|
414
|
-
forceBlock: true,
|
|
415
|
-
tagfilter: true,
|
|
436
|
+
app.use(intlayer);
|
|
437
|
+
app.use(intlayerMarkdown, {
|
|
416
438
|
components: {
|
|
417
|
-
h1:
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
439
|
+
h1: (props) =>
|
|
440
|
+
h('h1', { style: { color: 'orange' }, ...props }, props.children),
|
|
441
|
+
ComponentDemo: () => h('div', { style: { background: 'grey' } }, 'DEMO'),
|
|
442
|
+
bold: (props) => h('strong', props),
|
|
443
|
+
code: (props) => h('code', props),
|
|
444
|
+
},
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
app.mount("#app");
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
You can also use your own markdown renderer:
|
|
451
|
+
|
|
452
|
+
```typescript fileName="main.ts"
|
|
453
|
+
import { createApp } from "vue";
|
|
454
|
+
import { intlayer } from "vue-intlayer";
|
|
455
|
+
import { intlayerMarkdown } from "vue-intlayer/markdown";
|
|
456
|
+
import App from "./App.vue";
|
|
457
|
+
|
|
458
|
+
const app = createApp(App);
|
|
459
|
+
|
|
460
|
+
app.use(intlayer);
|
|
461
|
+
app.use(intlayerMarkdown, {
|
|
462
|
+
renderMarkdown: async (md) => {
|
|
463
|
+
const { compileMarkdown } = await import('vue-intlayer/markdown');
|
|
464
|
+
return compileMarkdown(md);
|
|
421
465
|
},
|
|
422
466
|
});
|
|
423
467
|
|
|
424
468
|
app.mount("#app");
|
|
425
469
|
```
|
|
426
470
|
|
|
471
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
472
|
+
|
|
427
473
|
</Tab>
|
|
428
474
|
<Tab label="Svelte" value="svelte">
|
|
429
475
|
|
|
430
476
|
```svelte fileName="App.svelte"
|
|
431
477
|
<script lang="ts">
|
|
432
|
-
import { MarkdownProvider } from "svelte-intlayer";
|
|
478
|
+
import { MarkdownProvider } from "svelte-intlayer/markdown";
|
|
433
479
|
import MyHeading from "./MyHeading.svelte";
|
|
434
480
|
</script>
|
|
435
481
|
|
|
436
482
|
<MarkdownProvider
|
|
437
|
-
forceBlock={true}
|
|
438
|
-
tagfilter={true}
|
|
439
483
|
components={{
|
|
440
484
|
h1: MyHeading,
|
|
441
485
|
}}
|
|
@@ -444,16 +488,33 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
444
488
|
</MarkdownProvider>
|
|
445
489
|
```
|
|
446
490
|
|
|
491
|
+
You can also use your own markdown renderer:
|
|
492
|
+
|
|
493
|
+
```svelte fileName="App.svelte"
|
|
494
|
+
<script lang="ts">
|
|
495
|
+
import { MarkdownProvider } from "svelte-intlayer/markdown";
|
|
496
|
+
</script>
|
|
497
|
+
|
|
498
|
+
<MarkdownProvider
|
|
499
|
+
renderMarkdown={async (md) => {
|
|
500
|
+
const { compileMarkdown } = await import('svelte-intlayer/markdown');
|
|
501
|
+
return compileMarkdown(md);
|
|
502
|
+
}}
|
|
503
|
+
>
|
|
504
|
+
<slot />
|
|
505
|
+
</MarkdownProvider>
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
509
|
+
|
|
447
510
|
</Tab>
|
|
448
511
|
<Tab label="Preact" value="preact">
|
|
449
512
|
|
|
450
513
|
```tsx fileName="AppProvider.tsx"
|
|
451
|
-
import { MarkdownProvider } from "preact-intlayer";
|
|
514
|
+
import { MarkdownProvider } from "preact-intlayer/markdown";
|
|
452
515
|
|
|
453
516
|
export const AppProvider = ({ children }) => (
|
|
454
517
|
<MarkdownProvider
|
|
455
|
-
forceBlock={true}
|
|
456
|
-
tagfilter={true}
|
|
457
518
|
components={{
|
|
458
519
|
h1: ({ children }) => <h1 className="text-2xl font-bold">{children}</h1>,
|
|
459
520
|
}}
|
|
@@ -463,16 +524,33 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
463
524
|
);
|
|
464
525
|
```
|
|
465
526
|
|
|
527
|
+
You can also use your own markdown renderer:
|
|
528
|
+
|
|
529
|
+
```tsx fileName="AppProvider.tsx"
|
|
530
|
+
import { MarkdownProvider } from "preact-intlayer/markdown";
|
|
531
|
+
|
|
532
|
+
export const AppProvider = ({ children }) => (
|
|
533
|
+
<MarkdownProvider
|
|
534
|
+
renderMarkdown={async (md) => {
|
|
535
|
+
const { compileMarkdown } = await import('preact-intlayer/markdown');
|
|
536
|
+
return compileMarkdown(md);
|
|
537
|
+
}}
|
|
538
|
+
>
|
|
539
|
+
{children}
|
|
540
|
+
</MarkdownProvider>
|
|
541
|
+
);
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
545
|
+
|
|
466
546
|
</Tab>
|
|
467
547
|
<Tab label="Solid" value="solid">
|
|
468
548
|
|
|
469
549
|
```tsx fileName="AppProvider.tsx"
|
|
470
|
-
import { MarkdownProvider } from "solid-intlayer";
|
|
550
|
+
import { MarkdownProvider } from "solid-intlayer/markdown";
|
|
471
551
|
|
|
472
552
|
export const AppProvider = (props) => (
|
|
473
553
|
<MarkdownProvider
|
|
474
|
-
forceBlock={true}
|
|
475
|
-
tagfilter={true}
|
|
476
554
|
components={{
|
|
477
555
|
h1: (props) => <h1 className="text-2xl font-bold">{props.children}</h1>,
|
|
478
556
|
}}
|
|
@@ -482,11 +560,30 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
482
560
|
);
|
|
483
561
|
```
|
|
484
562
|
|
|
563
|
+
You can also use your own markdown renderer:
|
|
564
|
+
|
|
565
|
+
```tsx fileName="AppProvider.tsx"
|
|
566
|
+
import { MarkdownProvider } from "solid-intlayer/markdown";
|
|
567
|
+
|
|
568
|
+
export const AppProvider = (props) => (
|
|
569
|
+
<MarkdownProvider
|
|
570
|
+
renderMarkdown={async (md) => {
|
|
571
|
+
const { compileMarkdown } = await import('solid-intlayer/markdown');
|
|
572
|
+
return compileMarkdown(md);
|
|
573
|
+
}}
|
|
574
|
+
>
|
|
575
|
+
{props.children}
|
|
576
|
+
</MarkdownProvider>
|
|
577
|
+
);
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
581
|
+
|
|
485
582
|
</Tab>
|
|
486
583
|
<Tab label="Angular" value="angular">
|
|
487
584
|
|
|
488
585
|
```typescript fileName="app.config.ts"
|
|
489
|
-
import { createIntlayerMarkdownProvider } from "angular-intlayer";
|
|
586
|
+
import { createIntlayerMarkdownProvider } from "angular-intlayer/markdown";
|
|
490
587
|
|
|
491
588
|
export const appConfig: ApplicationConfig = {
|
|
492
589
|
providers: [
|
|
@@ -499,6 +596,25 @@ You can configure Markdown rendering globally for your entire application. This
|
|
|
499
596
|
};
|
|
500
597
|
```
|
|
501
598
|
|
|
599
|
+
You can also use your own markdown renderer:
|
|
600
|
+
|
|
601
|
+
```typescript fileName="app.config.ts"
|
|
602
|
+
import { createIntlayerMarkdownProvider } from "angular-intlayer/markdown";
|
|
603
|
+
|
|
604
|
+
export const appConfig: ApplicationConfig = {
|
|
605
|
+
providers: [
|
|
606
|
+
createIntlayerMarkdownProvider({
|
|
607
|
+
renderMarkdown: async (md) => {
|
|
608
|
+
const { compileMarkdown } = await import('angular-intlayer/markdown');
|
|
609
|
+
return compileMarkdown(md);
|
|
610
|
+
},
|
|
611
|
+
}),
|
|
612
|
+
],
|
|
613
|
+
};
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
> Importing your Markdown renderer dynamically is a good way to reduce the bundle size of your application.
|
|
617
|
+
|
|
502
618
|
</Tab>
|
|
503
619
|
</Tabs>
|
|
504
620
|
|
|
@@ -14,7 +14,7 @@ slugs:
|
|
|
14
14
|
- doc
|
|
15
15
|
- environment
|
|
16
16
|
- analog
|
|
17
|
-
applicationTemplate: https://github.com/aymericzip/intlayer
|
|
17
|
+
applicationTemplate: https://github.com/aymericzip/intlayer-analog-template
|
|
18
18
|
history:
|
|
19
19
|
- version: 8.0.4
|
|
20
20
|
date: 2026-01-26
|
|
@@ -23,6 +23,14 @@ history:
|
|
|
23
23
|
|
|
24
24
|
# Translate your Analog (Angular) app using Intlayer | Internationalization (i18n)
|
|
25
25
|
|
|
26
|
+
<iframe
|
|
27
|
+
src="https://stackblitz.com/github/aymericzip/intlayer-analog-template?embed=1&ctl=1&file=intlayer.config.ts"
|
|
28
|
+
className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
|
|
29
|
+
title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
|
|
30
|
+
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
|
|
31
|
+
loading="lazy"
|
|
32
|
+
/>
|
|
33
|
+
|
|
26
34
|
## Table of Contents
|
|
27
35
|
|
|
28
36
|
<TOC/>
|
|
@@ -42,21 +50,7 @@ With Intlayer, you can:
|
|
|
42
50
|
|
|
43
51
|
## Step-by-Step Guide to Set Up Intlayer in an Analog Application
|
|
44
52
|
|
|
45
|
-
|
|
46
|
-
<Tab label="Code" value="code">
|
|
47
|
-
|
|
48
|
-
<iframe
|
|
49
|
-
src="https://stackblitz.com/github/aymericzip/intlayer/tree/main/examples/vite-analog-app?embed=1&ctl=1&file=intlayer.config.ts"
|
|
50
|
-
className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
|
|
51
|
-
title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
|
|
52
|
-
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
|
|
53
|
-
loading="lazy"
|
|
54
|
-
/>
|
|
55
|
-
|
|
56
|
-
</Tab>
|
|
57
|
-
</Tabs>
|
|
58
|
-
|
|
59
|
-
See [Application Template](https://github.com/aymericzip/intlayer/tree/main/examples/analog-app-template) on GitHub.
|
|
53
|
+
See [Application Template](https://github.com/aymericzip/intlayer-analog-template) on GitHub.
|
|
60
54
|
|
|
61
55
|
### Step 1: Install Dependencies
|
|
62
56
|
|
|
@@ -271,17 +265,6 @@ import { useLocale } from "angular-intlayer";
|
|
|
271
265
|
</select>
|
|
272
266
|
</div>
|
|
273
267
|
`,
|
|
274
|
-
styles: [
|
|
275
|
-
`
|
|
276
|
-
.locale-switcher {
|
|
277
|
-
margin: 1rem;
|
|
278
|
-
padding: 0.5rem;
|
|
279
|
-
border: 1px solid #ccc;
|
|
280
|
-
border-radius: 4px;
|
|
281
|
-
width: fit-content;
|
|
282
|
-
}
|
|
283
|
-
`,
|
|
284
|
-
],
|
|
285
268
|
})
|
|
286
269
|
export class LocaleSwitcherComponent {
|
|
287
270
|
localeCtx = useLocale();
|
|
@@ -204,7 +204,7 @@ import { mergeConfig } from "angular-intlayer/webpack";
|
|
|
204
204
|
export default mergeConfig({});
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
> The `mergeConfig` function configures Webpack with Intlayer. It injects the `
|
|
207
|
+
> The `mergeConfig` function configures Webpack with Intlayer. It injects the `IntlayerPlugin` (to handle content declaration files) and sets up aliases for optimal performance.
|
|
208
208
|
|
|
209
209
|
### Step 4: Declare Your Content
|
|
210
210
|
|
|
@@ -331,17 +331,6 @@ import { useLocale } from "angular-intlayer";
|
|
|
331
331
|
</select>
|
|
332
332
|
</div>
|
|
333
333
|
`,
|
|
334
|
-
styles: [
|
|
335
|
-
`
|
|
336
|
-
.locale-switcher {
|
|
337
|
-
margin: 1rem;
|
|
338
|
-
padding: 0.5rem;
|
|
339
|
-
border: 1px solid #ccc;
|
|
340
|
-
border-radius: 4px;
|
|
341
|
-
width: fit-content;
|
|
342
|
-
}
|
|
343
|
-
`,
|
|
344
|
-
],
|
|
345
334
|
})
|
|
346
335
|
export class LocaleSwitcherComponent {
|
|
347
336
|
localeCtx = useLocale();
|
|
@@ -1432,7 +1432,7 @@ Link.displayName = "Link";
|
|
|
1432
1432
|
|
|
1433
1433
|
import { getLocalizedUrl } from 'intlayer';
|
|
1434
1434
|
import NextLink, { type LinkProps as NextLinkProps } from 'next/link';
|
|
1435
|
-
import { useLocale } from
|
|
1435
|
+
import { useLocale } from "next-intlayer";
|
|
1436
1436
|
import { forwardRef, PropsWithChildren, type ForwardedRef } from 'react';
|
|
1437
1437
|
|
|
1438
1438
|
/**
|
|
@@ -1655,7 +1655,10 @@ const config: IntlayerConfig = {
|
|
|
1655
1655
|
|
|
1656
1656
|
/**
|
|
1657
1657
|
* Indicates if the components should be saved after being transformed.
|
|
1658
|
-
*
|
|
1658
|
+
*
|
|
1659
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
1660
|
+
*
|
|
1661
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
1659
1662
|
*/
|
|
1660
1663
|
saveComponents: false,
|
|
1661
1664
|
|
|
@@ -1686,7 +1689,10 @@ const config = {
|
|
|
1686
1689
|
|
|
1687
1690
|
/**
|
|
1688
1691
|
* Indicates if the components should be saved after being transformed.
|
|
1689
|
-
*
|
|
1692
|
+
*
|
|
1693
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
1694
|
+
*
|
|
1695
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
1690
1696
|
*/
|
|
1691
1697
|
saveComponents: false,
|
|
1692
1698
|
|
|
@@ -1717,7 +1723,10 @@ const config = {
|
|
|
1717
1723
|
|
|
1718
1724
|
/**
|
|
1719
1725
|
* Indicates if the components should be saved after being transformed.
|
|
1720
|
-
*
|
|
1726
|
+
*
|
|
1727
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
1728
|
+
*
|
|
1729
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
1721
1730
|
*/
|
|
1722
1731
|
saveComponents: false,
|
|
1723
1732
|
|
|
@@ -152,7 +152,10 @@ const config: IntlayerConfig = {
|
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Indicates if the components should be saved after being transformed.
|
|
155
|
-
*
|
|
155
|
+
*
|
|
156
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
157
|
+
*
|
|
158
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
156
159
|
*/
|
|
157
160
|
saveComponents: false,
|
|
158
161
|
},
|
|
@@ -483,7 +486,10 @@ const config: IntlayerConfig = {
|
|
|
483
486
|
|
|
484
487
|
/**
|
|
485
488
|
* Indicates if the components should be saved after being transformed.
|
|
486
|
-
*
|
|
489
|
+
*
|
|
490
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
491
|
+
*
|
|
492
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
487
493
|
*/
|
|
488
494
|
saveComponents: false,
|
|
489
495
|
|
|
@@ -514,7 +520,10 @@ const config = {
|
|
|
514
520
|
|
|
515
521
|
/**
|
|
516
522
|
* Indicates if the components should be saved after being transformed.
|
|
517
|
-
*
|
|
523
|
+
*
|
|
524
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
525
|
+
*
|
|
526
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
518
527
|
*/
|
|
519
528
|
saveComponents: false,
|
|
520
529
|
|
|
@@ -545,7 +554,10 @@ const config = {
|
|
|
545
554
|
|
|
546
555
|
/**
|
|
547
556
|
* Indicates if the components should be saved after being transformed.
|
|
548
|
-
*
|
|
557
|
+
*
|
|
558
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
559
|
+
*
|
|
560
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
549
561
|
*/
|
|
550
562
|
saveComponents: false,
|
|
551
563
|
|
|
@@ -1345,7 +1345,7 @@ Link.displayName = "Link";
|
|
|
1345
1345
|
|
|
1346
1346
|
import { getLocalizedUrl } from 'intlayer';
|
|
1347
1347
|
import NextLink, { type LinkProps as NextLinkProps } from 'next/link';
|
|
1348
|
-
import { useLocale } from
|
|
1348
|
+
import { useLocale } from "next-intlayer";
|
|
1349
1349
|
import { forwardRef, PropsWithChildren, type ForwardedRef } from 'react';
|
|
1350
1350
|
|
|
1351
1351
|
/**
|
|
@@ -526,7 +526,11 @@ import { intlayer, intlayerProxy } from "vite-intlayer";
|
|
|
526
526
|
|
|
527
527
|
// https://vitejs.dev/config/
|
|
528
528
|
export default defineConfig({
|
|
529
|
-
plugins: [
|
|
529
|
+
plugins: [
|
|
530
|
+
intlayerProxy(), // should be placed first
|
|
531
|
+
react(),
|
|
532
|
+
intlayer(),
|
|
533
|
+
],
|
|
530
534
|
});
|
|
531
535
|
```
|
|
532
536
|
|
|
@@ -556,7 +560,10 @@ const config: IntlayerConfig = {
|
|
|
556
560
|
|
|
557
561
|
/**
|
|
558
562
|
* Indicates if the components should be saved after being transformed.
|
|
559
|
-
*
|
|
563
|
+
*
|
|
564
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
565
|
+
*
|
|
566
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
560
567
|
*/
|
|
561
568
|
saveComponents: false,
|
|
562
569
|
|
|
@@ -587,7 +594,10 @@ const config = {
|
|
|
587
594
|
|
|
588
595
|
/**
|
|
589
596
|
* Indicates if the components should be saved after being transformed.
|
|
590
|
-
*
|
|
597
|
+
*
|
|
598
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
599
|
+
*
|
|
600
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
591
601
|
*/
|
|
592
602
|
saveComponents: false,
|
|
593
603
|
|
|
@@ -618,7 +628,10 @@ const config = {
|
|
|
618
628
|
|
|
619
629
|
/**
|
|
620
630
|
* Indicates if the components should be saved after being transformed.
|
|
621
|
-
*
|
|
631
|
+
*
|
|
632
|
+
* - If `true`, the compiler will rewrite the component file in the disk. So the transformation will be permanent, and the compiler will skip the transformation for the next process. That way, the compiler can transform the app, and then it can be removed.
|
|
633
|
+
*
|
|
634
|
+
* - If `false`, the compiler will inject the `useIntlayer()` function call into the code in the build output only, and keep the base codebase intact. The transformation will be done only in memory.
|
|
622
635
|
*/
|
|
623
636
|
saveComponents: false,
|
|
624
637
|
|