@intlayer/docs 8.3.0 → 8.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blog/ar/i18n_using_next-i18next.md +1 -0
- package/blog/en-GB/next-i18next_vs_next-intl_vs_intlayer.md +0 -29
- package/blog/uk/internationalization_and_SEO.md +1 -1
- package/docs/ar/compiler.md +84 -49
- package/docs/ar/configuration.md +82 -58
- package/docs/ar/intlayer_with_analog.md +2 -2
- package/docs/ar/intlayer_with_angular.md +2 -2
- package/docs/ar/intlayer_with_astro.md +2 -2
- package/docs/ar/intlayer_with_lynx+react.md +2 -2
- package/docs/ar/intlayer_with_nextjs_16.md +174 -1
- package/docs/ar/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ar/intlayer_with_nextjs_no_locale_path.md +4 -7
- package/docs/ar/intlayer_with_react_native+expo.md +2 -2
- package/docs/ar/intlayer_with_react_router_v7.md +224 -1
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/ar/intlayer_with_svelte_kit.md +175 -2
- package/docs/ar/intlayer_with_tanstack.md +176 -1
- package/docs/ar/intlayer_with_vite+preact.md +176 -3
- package/docs/ar/intlayer_with_vite+react.md +174 -1
- package/docs/ar/intlayer_with_vite+solid.md +176 -3
- package/docs/ar/intlayer_with_vite+svelte.md +176 -3
- package/docs/ar/intlayer_with_vite+vue.md +178 -5
- package/docs/ar/vs_code_extension.md +1 -1
- package/docs/de/compiler.md +83 -48
- package/docs/de/configuration.md +417 -214
- package/docs/de/intlayer_with_analog.md +2 -2
- package/docs/de/intlayer_with_angular.md +2 -2
- package/docs/de/intlayer_with_astro.md +2 -2
- package/docs/de/intlayer_with_lynx+react.md +2 -2
- package/docs/de/intlayer_with_nextjs_16.md +176 -1
- package/docs/de/intlayer_with_nextjs_compiler.md +106 -349
- package/docs/de/intlayer_with_react_native+expo.md +2 -2
- package/docs/de/intlayer_with_react_router_v7.md +225 -2
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +221 -79
- package/docs/de/intlayer_with_svelte_kit.md +158 -2
- package/docs/de/intlayer_with_tanstack.md +159 -1
- package/docs/de/intlayer_with_vite+preact.md +159 -3
- package/docs/de/intlayer_with_vite+react.md +157 -1
- package/docs/de/intlayer_with_vite+solid.md +161 -5
- package/docs/de/intlayer_with_vite+svelte.md +159 -3
- package/docs/de/intlayer_with_vite+vue.md +159 -3
- package/docs/de/vs_code_extension.md +1 -1
- package/docs/en/compiler.md +60 -33
- package/docs/en/configuration.md +82 -77
- package/docs/en/intlayer_with_analog.md +1 -1
- package/docs/en/intlayer_with_angular.md +1 -1
- package/docs/en/intlayer_with_astro.md +1 -1
- package/docs/en/intlayer_with_lynx+react.md +1 -1
- package/docs/en/intlayer_with_nextjs_16.md +176 -0
- package/docs/en/intlayer_with_nextjs_compiler.md +179 -1
- package/docs/en/intlayer_with_react_native+expo.md +1 -1
- package/docs/en/intlayer_with_react_router_v7.md +159 -0
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +159 -0
- package/docs/en/intlayer_with_svelte_kit.md +159 -0
- package/docs/en/intlayer_with_tanstack.md +160 -1
- package/docs/en/intlayer_with_vite+preact.md +160 -1
- package/docs/en/intlayer_with_vite+react.md +159 -0
- package/docs/en/intlayer_with_vite+solid.md +149 -28
- package/docs/en/intlayer_with_vite+svelte.md +160 -1
- package/docs/en/intlayer_with_vite+vue.md +143 -42
- package/docs/en/vs_code_extension.md +1 -1
- package/docs/en-GB/compiler.md +66 -34
- package/docs/en-GB/configuration.md +80 -57
- package/docs/en-GB/intlayer_with_analog.md +1 -1
- package/docs/en-GB/intlayer_with_angular.md +1 -1
- package/docs/en-GB/intlayer_with_astro.md +1 -1
- package/docs/en-GB/intlayer_with_lynx+react.md +1 -1
- package/docs/en-GB/intlayer_with_react_native+expo.md +1 -1
- package/docs/en-GB/intlayer_with_vite+preact.md +1 -1
- package/docs/en-GB/intlayer_with_vite+react.md +1 -1
- package/docs/en-GB/intlayer_with_vite+solid.md +1 -1
- package/docs/en-GB/intlayer_with_vite+svelte.md +1 -1
- package/docs/en-GB/intlayer_with_vite+vue.md +2 -2
- package/docs/en-GB/vs_code_extension.md +1 -1
- package/docs/es/compiler.md +83 -48
- package/docs/es/configuration.md +412 -208
- package/docs/es/intlayer_with_adonisjs.md +1 -1
- package/docs/es/intlayer_with_analog.md +2 -2
- package/docs/es/intlayer_with_angular.md +2 -2
- package/docs/es/intlayer_with_astro.md +2 -2
- package/docs/es/intlayer_with_express.md +1 -1
- package/docs/es/intlayer_with_fastify.md +1 -1
- package/docs/es/intlayer_with_hono.md +1 -1
- package/docs/es/intlayer_with_lynx+react.md +2 -2
- package/docs/es/intlayer_with_nestjs.md +1 -1
- package/docs/es/intlayer_with_nextjs_16.md +176 -3
- package/docs/es/intlayer_with_nextjs_compiler.md +175 -2
- package/docs/es/intlayer_with_nuxt.md +1 -1
- package/docs/es/intlayer_with_react_native+expo.md +2 -2
- package/docs/es/intlayer_with_react_router_v7.md +227 -4
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +162 -4
- package/docs/es/intlayer_with_svelte_kit.md +158 -2
- package/docs/es/intlayer_with_tanstack.md +160 -2
- package/docs/es/intlayer_with_vite+preact.md +164 -8
- package/docs/es/intlayer_with_vite+react.md +160 -4
- package/docs/es/intlayer_with_vite+solid.md +165 -9
- package/docs/es/intlayer_with_vite+svelte.md +159 -3
- package/docs/es/intlayer_with_vite+vue.md +169 -13
- package/docs/es/vs_code_extension.md +1 -1
- package/docs/fr/compiler.md +81 -46
- package/docs/fr/configuration.md +351 -149
- package/docs/fr/intlayer_with_adonisjs.md +1 -1
- package/docs/fr/intlayer_with_analog.md +2 -2
- package/docs/fr/intlayer_with_angular.md +2 -2
- package/docs/fr/intlayer_with_astro.md +2 -2
- package/docs/fr/intlayer_with_express.md +1 -1
- package/docs/fr/intlayer_with_fastify.md +1 -1
- package/docs/fr/intlayer_with_hono.md +1 -1
- package/docs/fr/intlayer_with_lynx+react.md +2 -2
- package/docs/fr/intlayer_with_nestjs.md +1 -1
- package/docs/fr/intlayer_with_nextjs_16.md +183 -7
- package/docs/fr/intlayer_with_nextjs_compiler.md +179 -3
- package/docs/fr/intlayer_with_react_native+expo.md +2 -2
- package/docs/fr/intlayer_with_react_router_v7.md +229 -3
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +237 -6
- package/docs/fr/intlayer_with_svelte_kit.md +158 -2
- package/docs/fr/intlayer_with_tanstack.md +159 -1
- package/docs/fr/intlayer_with_vite+preact.md +166 -10
- package/docs/fr/intlayer_with_vite+react.md +163 -7
- package/docs/fr/intlayer_with_vite+solid.md +165 -9
- package/docs/fr/intlayer_with_vite+svelte.md +159 -3
- package/docs/fr/intlayer_with_vite+vue.md +168 -12
- package/docs/fr/vs_code_extension.md +1 -1
- package/docs/hi/compiler.md +81 -46
- package/docs/hi/configuration.md +89 -65
- package/docs/hi/intlayer_with_analog.md +1 -1
- package/docs/hi/intlayer_with_angular.md +2 -2
- package/docs/hi/intlayer_with_astro.md +2 -2
- package/docs/hi/intlayer_with_lynx+react.md +2 -2
- package/docs/hi/intlayer_with_nextjs_16.md +174 -1
- package/docs/hi/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/hi/intlayer_with_react_native+expo.md +2 -2
- package/docs/hi/intlayer_with_react_router_v7.md +224 -1
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/hi/intlayer_with_svelte_kit.md +158 -2
- package/docs/hi/intlayer_with_tanstack.md +159 -1
- package/docs/hi/intlayer_with_vite+preact.md +159 -3
- package/docs/hi/intlayer_with_vite+react.md +157 -1
- package/docs/hi/intlayer_with_vite+solid.md +159 -3
- package/docs/hi/intlayer_with_vite+svelte.md +159 -3
- package/docs/hi/intlayer_with_vite+vue.md +159 -3
- package/docs/hi/vs_code_extension.md +1 -1
- package/docs/id/compiler.md +84 -51
- package/docs/id/configuration.md +85 -65
- package/docs/id/intlayer_with_analog.md +2 -2
- package/docs/id/intlayer_with_angular.md +2 -2
- package/docs/id/intlayer_with_astro.md +2 -2
- package/docs/id/intlayer_with_lynx+react.md +2 -2
- package/docs/id/intlayer_with_nextjs_16.md +174 -1
- package/docs/id/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/id/intlayer_with_react_native+expo.md +2 -2
- package/docs/id/intlayer_with_react_router_v7.md +224 -1
- package/docs/id/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/id/intlayer_with_svelte_kit.md +158 -2
- package/docs/id/intlayer_with_tanstack.md +159 -1
- package/docs/id/intlayer_with_vite+preact.md +159 -3
- package/docs/id/intlayer_with_vite+react.md +159 -3
- package/docs/id/intlayer_with_vite+solid.md +159 -3
- package/docs/id/intlayer_with_vite+svelte.md +159 -3
- package/docs/id/intlayer_with_vite+vue.md +159 -3
- package/docs/id/vs_code_extension.md +1 -1
- package/docs/it/compiler.md +81 -46
- package/docs/it/configuration.md +410 -208
- package/docs/it/intlayer_with_analog.md +2 -2
- package/docs/it/intlayer_with_angular.md +2 -2
- package/docs/it/intlayer_with_astro.md +2 -2
- package/docs/it/intlayer_with_lynx+react.md +2 -2
- package/docs/it/intlayer_with_nextjs_16.md +174 -1
- package/docs/it/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/it/intlayer_with_react_native+expo.md +2 -2
- package/docs/it/intlayer_with_react_router_v7.md +225 -2
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +226 -2
- package/docs/it/intlayer_with_svelte_kit.md +158 -2
- package/docs/it/intlayer_with_tanstack.md +159 -1
- package/docs/it/intlayer_with_vite+preact.md +159 -3
- package/docs/it/intlayer_with_vite+react.md +159 -3
- package/docs/it/intlayer_with_vite+solid.md +161 -5
- package/docs/it/intlayer_with_vite+svelte.md +159 -3
- package/docs/it/intlayer_with_vite+vue.md +161 -5
- package/docs/it/vs_code_extension.md +1 -1
- package/docs/ja/compiler.md +94 -58
- package/docs/ja/configuration.md +90 -66
- package/docs/ja/intlayer_with_analog.md +2 -2
- package/docs/ja/intlayer_with_angular.md +2 -2
- package/docs/ja/intlayer_with_astro.md +2 -2
- package/docs/ja/intlayer_with_lynx+react.md +2 -2
- package/docs/ja/intlayer_with_nextjs_16.md +174 -1
- package/docs/ja/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ja/intlayer_with_react_native+expo.md +2 -2
- package/docs/ja/intlayer_with_react_router_v7.md +184 -394
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +226 -2
- package/docs/ja/intlayer_with_svelte_kit.md +119 -595
- package/docs/ja/intlayer_with_tanstack.md +131 -642
- package/docs/ja/intlayer_with_vite+preact.md +111 -1231
- package/docs/ja/intlayer_with_vite+react.md +129 -1304
- package/docs/ja/intlayer_with_vite+solid.md +161 -5
- package/docs/ja/intlayer_with_vite+svelte.md +159 -3
- package/docs/ja/intlayer_with_vite+vue.md +159 -3
- package/docs/ja/vs_code_extension.md +1 -1
- package/docs/ko/compiler.md +88 -52
- package/docs/ko/configuration.md +89 -65
- package/docs/ko/intlayer_with_analog.md +2 -2
- package/docs/ko/intlayer_with_angular.md +2 -2
- package/docs/ko/intlayer_with_astro.md +2 -2
- package/docs/ko/intlayer_with_lynx+react.md +2 -2
- package/docs/ko/intlayer_with_nextjs_16.md +174 -1
- package/docs/ko/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ko/intlayer_with_react_native+expo.md +2 -2
- package/docs/ko/intlayer_with_react_router_v7.md +225 -2
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +226 -2
- package/docs/ko/intlayer_with_svelte_kit.md +158 -2
- package/docs/ko/intlayer_with_tanstack.md +159 -1
- package/docs/ko/intlayer_with_vite+preact.md +159 -3
- package/docs/ko/intlayer_with_vite+react.md +157 -1
- package/docs/ko/intlayer_with_vite+solid.md +161 -5
- package/docs/ko/intlayer_with_vite+svelte.md +159 -3
- package/docs/ko/intlayer_with_vite+vue.md +159 -3
- package/docs/ko/vs_code_extension.md +1 -1
- package/docs/pl/compiler.md +84 -51
- package/docs/pl/configuration.md +85 -57
- package/docs/pl/intlayer_with_analog.md +2 -2
- package/docs/pl/intlayer_with_angular.md +2 -2
- package/docs/pl/intlayer_with_astro.md +2 -2
- package/docs/pl/intlayer_with_lynx+react.md +2 -2
- package/docs/pl/intlayer_with_nextjs_16.md +174 -1
- package/docs/pl/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/pl/intlayer_with_react_native+expo.md +2 -2
- package/docs/pl/intlayer_with_react_router_v7.md +224 -1
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/pl/intlayer_with_svelte_kit.md +158 -2
- package/docs/pl/intlayer_with_tanstack.md +159 -1
- package/docs/pl/intlayer_with_vite+preact.md +158 -2
- package/docs/pl/intlayer_with_vite+react.md +159 -3
- package/docs/pl/intlayer_with_vite+solid.md +159 -3
- package/docs/pl/intlayer_with_vite+svelte.md +159 -3
- package/docs/pl/intlayer_with_vite+vue.md +161 -5
- package/docs/pl/vs_code_extension.md +1 -1
- package/docs/pt/compiler.md +81 -46
- package/docs/pt/configuration.md +399 -199
- package/docs/pt/intlayer_with_analog.md +2 -2
- package/docs/pt/intlayer_with_angular.md +2 -2
- package/docs/pt/intlayer_with_astro.md +2 -2
- package/docs/pt/intlayer_with_lynx+react.md +2 -2
- package/docs/pt/intlayer_with_nextjs_16.md +174 -1
- package/docs/pt/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/pt/intlayer_with_react_native+expo.md +2 -2
- package/docs/pt/intlayer_with_react_router_v7.md +224 -1
- package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/pt/intlayer_with_svelte_kit.md +158 -2
- package/docs/pt/intlayer_with_tanstack.md +159 -1
- package/docs/pt/intlayer_with_vite+preact.md +158 -2
- package/docs/pt/intlayer_with_vite+react.md +157 -1
- package/docs/pt/intlayer_with_vite+solid.md +159 -3
- package/docs/pt/intlayer_with_vite+svelte.md +159 -3
- package/docs/pt/intlayer_with_vite+vue.md +159 -3
- package/docs/pt/vs_code_extension.md +1 -1
- package/docs/ru/compiler.md +90 -57
- package/docs/ru/configuration.md +78 -67
- package/docs/ru/intlayer_with_analog.md +2 -2
- package/docs/ru/intlayer_with_angular.md +2 -2
- package/docs/ru/intlayer_with_astro.md +2 -2
- package/docs/ru/intlayer_with_lynx+react.md +2 -2
- package/docs/ru/intlayer_with_nextjs_16.md +174 -1
- package/docs/ru/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ru/intlayer_with_react_native+expo.md +2 -2
- package/docs/ru/intlayer_with_react_router_v7.md +224 -1
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/ru/intlayer_with_svelte_kit.md +158 -2
- package/docs/ru/intlayer_with_tanstack.md +159 -1
- package/docs/ru/intlayer_with_vite+preact.md +159 -3
- package/docs/ru/intlayer_with_vite+react.md +157 -1
- package/docs/ru/intlayer_with_vite+solid.md +159 -3
- package/docs/ru/intlayer_with_vite+svelte.md +159 -3
- package/docs/ru/intlayer_with_vite+vue.md +159 -3
- package/docs/ru/vs_code_extension.md +1 -1
- package/docs/tr/compiler.md +85 -52
- package/docs/tr/configuration.md +85 -61
- package/docs/tr/intlayer_with_analog.md +2 -2
- package/docs/tr/intlayer_with_angular.md +2 -2
- package/docs/tr/intlayer_with_astro.md +2 -2
- package/docs/tr/intlayer_with_lynx+react.md +2 -2
- package/docs/tr/intlayer_with_nextjs_16.md +174 -1
- package/docs/tr/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/tr/intlayer_with_nextjs_no_locale_path.md +6 -14
- package/docs/tr/intlayer_with_react_native+expo.md +2 -2
- package/docs/tr/intlayer_with_react_router_v7.md +224 -1
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/tr/intlayer_with_svelte_kit.md +158 -2
- package/docs/tr/intlayer_with_tanstack.md +159 -1
- package/docs/tr/intlayer_with_vite+preact.md +159 -3
- package/docs/tr/intlayer_with_vite+react.md +159 -3
- package/docs/tr/intlayer_with_vite+solid.md +159 -3
- package/docs/tr/intlayer_with_vite+svelte.md +159 -3
- package/docs/tr/intlayer_with_vite+vue.md +159 -3
- package/docs/tr/vs_code_extension.md +1 -1
- package/docs/uk/compiler.md +96 -61
- package/docs/uk/configuration.md +85 -57
- package/docs/uk/intlayer_with_analog.md +2 -2
- package/docs/uk/intlayer_with_angular.md +2 -2
- package/docs/uk/intlayer_with_astro.md +2 -2
- package/docs/uk/intlayer_with_lynx+react.md +2 -2
- package/docs/uk/intlayer_with_nextjs_16.md +174 -1
- package/docs/uk/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/uk/intlayer_with_nextjs_no_locale_path.md +4 -22
- package/docs/uk/intlayer_with_react_native+expo.md +2 -2
- package/docs/uk/intlayer_with_react_router_v7.md +224 -1
- package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/uk/intlayer_with_svelte_kit.md +157 -1
- package/docs/uk/intlayer_with_tanstack.md +159 -1
- package/docs/uk/intlayer_with_vite+preact.md +159 -3
- package/docs/uk/intlayer_with_vite+react.md +157 -1
- package/docs/uk/intlayer_with_vite+solid.md +159 -3
- package/docs/uk/intlayer_with_vite+svelte.md +159 -3
- package/docs/uk/intlayer_with_vite+vue.md +159 -3
- package/docs/uk/vs_code_extension.md +1 -1
- package/docs/vi/compiler.md +85 -50
- package/docs/vi/configuration.md +87 -59
- package/docs/vi/intlayer_with_analog.md +2 -2
- package/docs/vi/intlayer_with_angular.md +2 -2
- package/docs/vi/intlayer_with_astro.md +2 -2
- package/docs/vi/intlayer_with_lynx+react.md +2 -2
- package/docs/vi/intlayer_with_nextjs_16.md +174 -1
- package/docs/vi/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/vi/intlayer_with_react_native+expo.md +2 -2
- package/docs/vi/intlayer_with_react_router_v7.md +224 -1
- package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/vi/intlayer_with_svelte_kit.md +158 -2
- package/docs/vi/intlayer_with_tanstack.md +159 -1
- package/docs/vi/intlayer_with_vite+preact.md +159 -3
- package/docs/vi/intlayer_with_vite+react.md +159 -3
- package/docs/vi/intlayer_with_vite+solid.md +159 -3
- package/docs/vi/intlayer_with_vite+svelte.md +159 -3
- package/docs/vi/intlayer_with_vite+vue.md +159 -3
- package/docs/vi/vs_code_extension.md +1 -1
- package/docs/zh/compiler.md +84 -49
- package/docs/zh/configuration.md +82 -58
- package/docs/zh/intlayer_with_adonisjs.md +1 -1
- package/docs/zh/intlayer_with_analog.md +2 -2
- package/docs/zh/intlayer_with_angular.md +2 -2
- package/docs/zh/intlayer_with_astro.md +2 -2
- package/docs/zh/intlayer_with_express.md +1 -1
- package/docs/zh/intlayer_with_fastify.md +1 -1
- package/docs/zh/intlayer_with_hono.md +1 -1
- package/docs/zh/intlayer_with_lynx+react.md +2 -2
- package/docs/zh/intlayer_with_nestjs.md +1 -1
- package/docs/zh/intlayer_with_nextjs_16.md +174 -1
- package/docs/zh/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/zh/intlayer_with_react_native+expo.md +2 -2
- package/docs/zh/intlayer_with_react_router_v7.md +227 -4
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +228 -4
- package/docs/zh/intlayer_with_svelte_kit.md +158 -2
- package/docs/zh/intlayer_with_tanstack.md +159 -1
- package/docs/zh/intlayer_with_vite+preact.md +161 -5
- package/docs/zh/intlayer_with_vite+react.md +157 -1
- package/docs/zh/intlayer_with_vite+solid.md +163 -7
- package/docs/zh/intlayer_with_vite+svelte.md +159 -3
- package/docs/zh/intlayer_with_vite+vue.md +162 -6
- package/docs/zh/vs_code_extension.md +2 -2
- package/package.json +8 -8
- package/docs/update_docs.py +0 -65
package/docs/ja/configuration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-08-13
|
|
3
|
-
updatedAt: 2026-03-
|
|
3
|
+
updatedAt: 2026-03-12
|
|
4
4
|
title: 設定
|
|
5
5
|
description: Intlayerをアプリケーション向けに設定する方法を学びます。Intlayerをニーズに合わせてカスタマイズするためのさまざまな設定やオプションについて理解しましょう。
|
|
6
6
|
keywords:
|
|
@@ -15,8 +15,8 @@ slugs:
|
|
|
15
15
|
- configuration
|
|
16
16
|
history:
|
|
17
17
|
- version: 8.3.0
|
|
18
|
-
|
|
19
|
-
changes: 'baseDir' を 'content' 設定から 'system' 設定に移動
|
|
18
|
+
date: 2026-03-11
|
|
19
|
+
changes: "'baseDir' を 'content' 設定から 'system' 設定に移動"
|
|
20
20
|
- version: 8.2.0
|
|
21
21
|
date: 2026-03-10
|
|
22
22
|
changes: コンパイラーオプションの更新、'output' および 'noMetadata' のサポートを追加
|
|
@@ -43,25 +43,25 @@ history:
|
|
|
43
43
|
changes: JSON5 および JSONC ファイル形式のサポートを追加
|
|
44
44
|
- version: 7.5.0
|
|
45
45
|
date: 2025-12-17
|
|
46
|
-
changes: `buildMode` オプションを追加
|
|
46
|
+
changes: "`buildMode` オプションを追加"
|
|
47
47
|
- version: 6.0.0
|
|
48
48
|
date: 2025-09-16
|
|
49
|
-
changes: `live` インポートモードを追加
|
|
49
|
+
changes: "`live` インポートモードを追加"
|
|
50
50
|
- version: 6.0.0
|
|
51
51
|
date: 2025-09-16
|
|
52
|
-
changes: `live` インポートモードを追加
|
|
52
|
+
changes: "`live` インポートモードを追加"
|
|
53
53
|
- version: 6.0.0
|
|
54
54
|
date: 2025-09-04
|
|
55
|
-
changes: `hotReload` フィールドを `liveSync` に置き換え、`liveSyncPort` と `liveSyncURL` フィールドを追加
|
|
55
|
+
changes: "`hotReload` フィールドを `liveSync` に置き換え、`liveSyncPort` と `liveSyncURL` フィールドを追加"
|
|
56
56
|
- version: 5.6.1
|
|
57
57
|
date: 2025-07-25
|
|
58
|
-
changes: `activateDynamicImport` を `importMode` オプションに置き換え
|
|
58
|
+
changes: "`activateDynamicImport` を `importMode` オプションに置き換え"
|
|
59
59
|
- version: 5.6.0
|
|
60
60
|
date: 2025-07-13
|
|
61
61
|
changes: デフォルトの contentDir を `['src']` から `['.']` に変更
|
|
62
62
|
- version: 5.5.11
|
|
63
63
|
date: 2025-06-29
|
|
64
|
-
changes: `docs` コマンドを追加
|
|
64
|
+
changes: "`docs` コマンドを追加"
|
|
65
65
|
---
|
|
66
66
|
|
|
67
67
|
# Intlayer 設定ドキュメント
|
|
@@ -95,7 +95,7 @@ IntlayerはJSON、JS、MJS、TSの設定ファイル形式をサポートして
|
|
|
95
95
|
|
|
96
96
|
## 設定ファイルの例
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
````typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
99
99
|
import { Locales, type IntlayerConfig } from "intlayer";
|
|
100
100
|
import { nextjsRewrite } from "intlayer/routing";
|
|
101
101
|
import { z } from "zod";
|
|
@@ -193,7 +193,7 @@ const config: IntlayerConfig = {
|
|
|
193
193
|
* Options: 'cookie', 'localStorage', 'sessionStorage', 'header', or an array of these.
|
|
194
194
|
* Default: ['cookie', 'header']
|
|
195
195
|
*/
|
|
196
|
-
storage: "cookie",
|
|
196
|
+
storage: ["cookie", "header"],
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* Base path for the application URLs.
|
|
@@ -259,13 +259,13 @@ const config: IntlayerConfig = {
|
|
|
259
259
|
editor: {
|
|
260
260
|
/**
|
|
261
261
|
* Whether the visual editor is enabled.
|
|
262
|
-
* Default:
|
|
262
|
+
* Default: false
|
|
263
263
|
*/
|
|
264
264
|
enabled: true,
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* URL of your application for origin validation.
|
|
268
|
-
* Default: "
|
|
268
|
+
* Default: ""
|
|
269
269
|
*/
|
|
270
270
|
applicationURL: "http://localhost:3000",
|
|
271
271
|
|
|
@@ -330,6 +330,17 @@ const config: IntlayerConfig = {
|
|
|
330
330
|
* Base URL for the AI API.
|
|
331
331
|
*/
|
|
332
332
|
baseURL: "http://localhost:3000",
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* データシリアライゼーション
|
|
336
|
+
*
|
|
337
|
+
* オプション:
|
|
338
|
+
* - "json": 標準、信頼性あり。より多くのトークンを使用します。
|
|
339
|
+
* - "toon": より少ないトークンを使用しますが、JSON ほど一貫性がありません。
|
|
340
|
+
*
|
|
341
|
+
* デフォルト: "json"
|
|
342
|
+
*/
|
|
343
|
+
dataSerialization: "json",
|
|
333
344
|
},
|
|
334
345
|
|
|
335
346
|
/**
|
|
@@ -429,42 +440,70 @@ const config: IntlayerConfig = {
|
|
|
429
440
|
compiler: {
|
|
430
441
|
/**
|
|
431
442
|
* コンパイラを有効にするかどうかを示します。
|
|
443
|
+
*
|
|
444
|
+
* - false : コンパイラを無効にします。
|
|
445
|
+
* - true : コンパイラを有効にします。
|
|
446
|
+
* - "build-only" : 開発中のコンパイラをスキップして起動時間を短縮します。
|
|
447
|
+
*
|
|
448
|
+
* デフォルト : false
|
|
432
449
|
*/
|
|
433
450
|
enabled: true,
|
|
434
451
|
|
|
435
452
|
/**
|
|
436
|
-
*
|
|
453
|
+
* 出力ファイルのパスを定義します。 `outputDir` を置き換えます。
|
|
454
|
+
*
|
|
455
|
+
* - `./` で始まるパスは、コンポーネントディレクトリを基準に解決されます。
|
|
456
|
+
* - `/` で始まるパスは、プロジェクトのルート (`baseDir`) を基準に解決されます。
|
|
457
|
+
*
|
|
458
|
+
* - パスに `{{locale}}` 変数を含めると、言語ごとに分離された辞書の生成が有効になります。
|
|
459
|
+
*
|
|
460
|
+
* 例:
|
|
461
|
+
* ```ts
|
|
462
|
+
* {
|
|
463
|
+
* // コンポーネントの隣に多言語対応の .content.ts ファイルを作成
|
|
464
|
+
* output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
465
|
+
*
|
|
466
|
+
* // output: './{{fileName}}{{extension}}', // 文字列テンプレートを使用した同等の記述
|
|
467
|
+
* }
|
|
468
|
+
* ```
|
|
469
|
+
*
|
|
470
|
+
* ```ts
|
|
471
|
+
* {
|
|
472
|
+
* // プロジェクトのルートに言語ごとに集約された JSON ファイルを作成
|
|
473
|
+
* output: ({ key, locale }) => `/locales/${locale}/${key}.content.json`,
|
|
474
|
+
*
|
|
475
|
+
* // output: '/locales/{{locale}}/{{key}}.content.json', // 文字列テンプレートを使用した同等の記述
|
|
476
|
+
* }
|
|
477
|
+
* ```
|
|
478
|
+
*
|
|
479
|
+
* 変数リスト:
|
|
480
|
+
* - `fileName`: ファイル名。
|
|
481
|
+
* - `key`: コンテンツのキー。
|
|
482
|
+
* - `locale`: コンテンツのロケール。
|
|
483
|
+
* - `extension`: ファイル拡張子。
|
|
484
|
+
* - `componentFileName`: コンポーネントファイル名。
|
|
485
|
+
* - `componentExtension`: コンポーネント拡張子。
|
|
486
|
+
* - `format`: 辞書の形式。
|
|
487
|
+
* - `componentFormat`: コンポーネント辞書の形式。
|
|
488
|
+
* - `componentDirPath`: コンポーネントのディレクトリパス。
|
|
437
489
|
*/
|
|
438
|
-
|
|
439
|
-
"**/*.{js,ts,mjs,cjs,jsx,tsx,vue,svelte}",
|
|
440
|
-
"!**/node_modules/**",
|
|
441
|
-
],
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Pattern to exclude from the optimization.
|
|
445
|
-
*/
|
|
446
|
-
excludePattern: ["**/node_modules/**"],
|
|
490
|
+
output: ({ locale, key }) => `compiler/${locale}/${key}.json`,
|
|
447
491
|
|
|
448
492
|
/**
|
|
449
|
-
*
|
|
493
|
+
* 変換後にコンポーネントを保存するかどうかを示します。
|
|
494
|
+
* これにより、コンパイラを1回だけ実行してアプリを変換し、その後削除することができます。
|
|
450
495
|
*/
|
|
451
|
-
|
|
496
|
+
saveComponents: false,
|
|
452
497
|
|
|
453
498
|
/**
|
|
454
|
-
*
|
|
499
|
+
* 生成されたファイルにコンテンツのみを挿入します。
|
|
455
500
|
*/
|
|
456
501
|
noMetadata: false,
|
|
457
502
|
|
|
458
503
|
/**
|
|
459
504
|
* 辞書キーのプレフィックス
|
|
460
505
|
*/
|
|
461
|
-
dictionaryKeyPrefix: "", //
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* 変換後にコンポーネントを保存するかどうかを示します。
|
|
465
|
-
* これにより、コンパイラを1回だけ実行してアプリを変換し、その後削除することができます。
|
|
466
|
-
*/
|
|
467
|
-
saveComponents: false,
|
|
506
|
+
dictionaryKeyPrefix: "", // すべての辞書キーにプレフィックスを設定
|
|
468
507
|
},
|
|
469
508
|
|
|
470
509
|
/**
|
|
@@ -483,7 +522,7 @@ const config: IntlayerConfig = {
|
|
|
483
522
|
};
|
|
484
523
|
|
|
485
524
|
export default config;
|
|
486
|
-
|
|
525
|
+
````
|
|
487
526
|
|
|
488
527
|
## 設定リファレンス
|
|
489
528
|
|
|
@@ -987,25 +1026,6 @@ Intlayerがアプリケーションの国際化をどのように最適化しビ
|
|
|
987
1026
|
- _注意_: このオプションは`@intlayer/babel`および`@intlayer/swc`プラグインに依存しています。
|
|
988
1027
|
- _注意_: `useIntlayer`の呼び出し内で、すべてのキーが静的に宣言されていることを確認してください。例: `useIntlayer('navbar')`。
|
|
989
1028
|
|
|
990
|
-
- **importMode**:
|
|
991
|
-
- _注_: **Deprecated**: Use `dictionary.importMode` instead.
|
|
992
|
-
- _タイプ_: `'static' | 'dynamic' | 'fetch'`
|
|
993
|
-
- _デフォルト_: `'static'`
|
|
994
|
-
- _説明_: 辞書のインポート方法を制御します。
|
|
995
|
-
- _例_: `'dynamic'`
|
|
996
|
-
- _注意_: 利用可能なモード:
|
|
997
|
-
- "static": 辞書は静的にインポートされます。`useIntlayer`を`useDictionary`に置き換えます。
|
|
998
|
-
- "dynamic": 辞書はSuspenseを使用して動的にインポートされます。`useIntlayer`を`useDictionaryDynamic`に置き換えます。
|
|
999
|
-
- "fetch": 辞書はライブ同期APIを使用して動的に取得されます。`useIntlayer`は`useDictionaryFetch`に置き換えられます。
|
|
1000
|
-
- _注意_: 動的インポートはSuspenseに依存しており、レンダリングパフォーマンスにわずかな影響を与える可能性があります。
|
|
1001
|
-
- _注意_: 無効にすると、使用されていなくてもすべてのロケールが一度に読み込まれます。
|
|
1002
|
-
- _注意_: このオプションは`@intlayer/babel`および`@intlayer/swc`プラグインに依存しています。
|
|
1003
|
-
- _注意_: `useIntlayer`呼び出し内のすべてのキーが静的に宣言されていることを確認してください。例:`useIntlayer('navbar')`。
|
|
1004
|
-
- _注意_: `optimize`が無効の場合、このオプションは無視されます。
|
|
1005
|
-
- _注意_: "live" に設定されている場合、リモートコンテンツを含み、かつ "live" フラグが設定された辞書のみがライブモードとして変換されます。他の辞書はフェッチクエリの数と読み込みパフォーマンスを最適化するために、動的モードとして動的にインポートされます。
|
|
1006
|
-
- _注意_: ライブモードはライブ同期APIを使用して辞書を取得します。APIコールが失敗した場合、辞書は動的モードとして動的にインポートされます。
|
|
1007
|
-
- _注意_: このオプションは `getIntlayer`、`getDictionary`、`useDictionary`、`useDictionaryAsync`、および `useDictionaryDynamic` 関数には影響しません。
|
|
1008
|
-
|
|
1009
1029
|
- **outputFormat**:
|
|
1010
1030
|
- _型_: `'esm' | 'cjs'`
|
|
1011
1031
|
- _デフォルト_: `'esm'`
|
|
@@ -1039,7 +1059,7 @@ Intlayerがアプリケーションの国際化をどのように最適化しビ
|
|
|
1039
1059
|
|
|
1040
1060
|
- **dictionaryKeyPrefix**:
|
|
1041
1061
|
- _型_: `string`
|
|
1042
|
-
- _デフォルト_: `'
|
|
1062
|
+
- _デフォルト_: `''`
|
|
1043
1063
|
- _説明_: 抽出された辞書キーのプレフィックス。
|
|
1044
1064
|
- _例_: `'my-key-'`
|
|
1045
1065
|
- _注意_: 辞書が抽出される際、キーはファイル名に基づいて生成されます。このプレフィックスは、競合を防ぐために生成されたキーに追加されます。
|
|
@@ -1063,24 +1083,28 @@ Intlayerがアプリケーションの国際化をどのように最適化しビ
|
|
|
1063
1083
|
- _説明_: 最適化中に除外されるファイルを定義するパターン。
|
|
1064
1084
|
- _例_: `['**/node_modules/**', '!**/node_modules/react/**']`
|
|
1065
1085
|
|
|
1066
|
-
- **outputDir**:
|
|
1067
|
-
- _型_: `string`
|
|
1068
|
-
- _デフォルト_: `'compiler'`
|
|
1069
|
-
- _説明_: 抽出された辞書が保存されるディレクトリ(プロジェクトのベースパスからの相対パス)。
|
|
1070
|
-
|
|
1071
1086
|
- **output**:
|
|
1072
1087
|
- _型_: `FilePathPattern`
|
|
1073
|
-
- _デフォルト_: `
|
|
1074
|
-
- _説明_: 出力ファイルのパスを定義します。 `outputDir` を置き換えます。 `{{
|
|
1075
|
-
- _注_:
|
|
1076
|
-
- _
|
|
1088
|
+
- _デフォルト_: `undefined`
|
|
1089
|
+
- _説明_: 出力ファイルのパスを定義します。 `outputDir` を置き換えます。 文字列テンプレートまたは関数を通じて動的変数をサポートします。 サポートされている変数: `{{fileName}}`, `{{key}}`, `{{locale}}`, `{{extension}}`, `{{componentFileName}}`, `{{componentExtension}}`, `{{format}}`, `{{componentFormat}}`, および `{{componentDirPath}}`。
|
|
1090
|
+
- _注_: `./` で始まるパスは、コンポーネントディレクトリを基準に解決されます。 `/` で始まるパスは、プロジェクトのルート (`baseDir`) を基準に解決されます。
|
|
1091
|
+
- _注_: パスに `{{locale}}` 変数を含めると、ロケールごとに分離された辞書の生成が有効になります。
|
|
1092
|
+
- _例_:
|
|
1093
|
+
- **コンポーネントの隣に多言語ファイルを作成**:
|
|
1094
|
+
- 文字列: `'./{{fileName}}{{extension}}'`
|
|
1095
|
+
- 関数: `({ fileName, extension }) => \`./${fileName}${extension}\``
|
|
1096
|
+
|
|
1097
|
+
- **ロケールごとに集約された JSON を出力**:
|
|
1098
|
+
- 文字列: `'/locales/{{locale}}/{{key}}.content.json'`
|
|
1099
|
+
- 関数: `({ key, locale }) => \`/locales/${locale}/${key}.content.json\``
|
|
1077
1100
|
|
|
1078
1101
|
- **noMetadata**:
|
|
1079
1102
|
- _タイプ_: `boolean`
|
|
1080
1103
|
- _デフォルト_: `false`
|
|
1081
|
-
- _説明_: メタデータをファイルに保存するかどうかを示します。true
|
|
1082
|
-
- _注_: `loadJSON
|
|
1083
|
-
- _例_:
|
|
1104
|
+
- _説明_: メタデータをファイルに保存するかどうかを示します。trueの場合、コンパイラーは辞書のメタデータ(キー、コンテンツラッパー)を保存しません。
|
|
1105
|
+
- _注_: `loadJSON`プラグインを使用する場合に便利です。ロケールごとの i18next または ICU MessageFormat JSON 出力に有用です。
|
|
1106
|
+
- _例_:
|
|
1107
|
+
`true`の場合:
|
|
1084
1108
|
```json
|
|
1085
1109
|
{
|
|
1086
1110
|
"key": "value"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-12-06
|
|
3
|
-
updatedAt:
|
|
3
|
+
updatedAt: 2026-03-12
|
|
4
4
|
title: Next.js i18n - Next.js 16アプリの翻訳方法 2026
|
|
5
5
|
description: Next.js 16のウェブサイトを多言語対応にする方法を紹介します。国際化(i18n)と翻訳のためのドキュメントに従ってください。
|
|
6
6
|
keywords:
|
|
@@ -1440,6 +1440,179 @@ return (
|
|
|
1440
1440
|
> - [`dir` 属性](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/dir)
|
|
1441
1441
|
> - [`aria-current` 属性](https://developer.mozilla.org/ja/docs/Web/Accessibility/ARIA/Attributes/aria-current)
|
|
1442
1442
|
|
|
1443
|
+
### (オプション) ステップ 1 : コンポーネントのコンテンツを抽出する
|
|
1444
|
+
|
|
1445
|
+
既存のコードベースがある場合、数千のファイルを変換するのは時間がかかることがあります。
|
|
1446
|
+
|
|
1447
|
+
このプロセスを容易にするために、Intlayerは、コンポーネントを変換しコンテンツを抽出するための [コンパイラ](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/compiler.md) / [エクストラクタ](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/cli/extract.md) を提案しています。
|
|
1448
|
+
|
|
1449
|
+
セットアップするには、`intlayer.config.ts` ファイルに `compiler` セクションを追加します。
|
|
1450
|
+
|
|
1451
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
1452
|
+
import { type IntlayerConfig } from "intlayer";
|
|
1453
|
+
|
|
1454
|
+
const config: IntlayerConfig = {
|
|
1455
|
+
// ... 他の構成
|
|
1456
|
+
compiler: {
|
|
1457
|
+
/**
|
|
1458
|
+
* コンパイラを有効にするかどうかを指定します。
|
|
1459
|
+
*/
|
|
1460
|
+
enabled: true,
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* 出力ファイルのパスを定義します。
|
|
1464
|
+
*/
|
|
1465
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* 変換後にコンポーネントを保存するかどうかを指定します。これにより、コンパイラを一度だけ実行してアプリを変換し、その後削除することができます。
|
|
1469
|
+
*/
|
|
1470
|
+
saveComponents: false,
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* 辞書キーの接頭辞
|
|
1474
|
+
*/
|
|
1475
|
+
dictionaryKeyPrefix: "",
|
|
1476
|
+
},
|
|
1477
|
+
};
|
|
1478
|
+
|
|
1479
|
+
export default config;
|
|
1480
|
+
```
|
|
1481
|
+
|
|
1482
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
1483
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
1484
|
+
const config = {
|
|
1485
|
+
// ... 他の構成
|
|
1486
|
+
compiler: {
|
|
1487
|
+
/**
|
|
1488
|
+
* コンパイラを有効にするかどうかを指定します。
|
|
1489
|
+
*/
|
|
1490
|
+
enabled: true,
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* 出力ファイルのパスを定義します。
|
|
1494
|
+
*/
|
|
1495
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* 変換後にコンポーネントを保存するかどうかを指定します。これにより、コンパイラを一度だけ実行してアプリを変換し、その後削除することができます。
|
|
1499
|
+
*/
|
|
1500
|
+
saveComponents: false,
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* 辞書キーの接頭辞
|
|
1504
|
+
*/
|
|
1505
|
+
dictionaryKeyPrefix: "",
|
|
1506
|
+
},
|
|
1507
|
+
};
|
|
1508
|
+
|
|
1509
|
+
export default config;
|
|
1510
|
+
```
|
|
1511
|
+
|
|
1512
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
1513
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
1514
|
+
const config = {
|
|
1515
|
+
// ... 他の構成
|
|
1516
|
+
compiler: {
|
|
1517
|
+
/**
|
|
1518
|
+
* コンパイラを有効にするかどうかを指定します。
|
|
1519
|
+
*/
|
|
1520
|
+
enabled: true,
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* 出力ファイルのパスを定義します。
|
|
1524
|
+
*/
|
|
1525
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* 変換後にコンポーネントを保存するかどうかを指定します。これにより、コンパイラを一度だけ実行してアプリを変換し、その後削除することができます。
|
|
1529
|
+
*/
|
|
1530
|
+
saveComponents: false,
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* 辞書キーの接頭辞
|
|
1534
|
+
*/
|
|
1535
|
+
dictionaryKeyPrefix: "",
|
|
1536
|
+
},
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1539
|
+
module.exports = config;
|
|
1540
|
+
```
|
|
1541
|
+
|
|
1542
|
+
<Tabs>
|
|
1543
|
+
<Tab value='抽出コマンド'>
|
|
1544
|
+
|
|
1545
|
+
コンポーネントを変換してコンテンツを抽出するためにエクストラクタを実行します
|
|
1546
|
+
|
|
1547
|
+
```bash packageManager="npm"
|
|
1548
|
+
npx intlayer extract
|
|
1549
|
+
```
|
|
1550
|
+
|
|
1551
|
+
```bash packageManager="pnpm"
|
|
1552
|
+
pnpm intlayer extract
|
|
1553
|
+
```
|
|
1554
|
+
|
|
1555
|
+
```bash packageManager="yarn"
|
|
1556
|
+
yarn intlayer extract
|
|
1557
|
+
```
|
|
1558
|
+
|
|
1559
|
+
```bash packageManager="bun"
|
|
1560
|
+
bunx intlayer extract
|
|
1561
|
+
```
|
|
1562
|
+
|
|
1563
|
+
</Tab>
|
|
1564
|
+
<Tab value='Babelコンパイラ'>
|
|
1565
|
+
|
|
1566
|
+
```bash packageManager="npm"
|
|
1567
|
+
npm install @intlayer/babel --save-dev
|
|
1568
|
+
```
|
|
1569
|
+
|
|
1570
|
+
```bash packageManager="pnpm"
|
|
1571
|
+
pnpm add @intlayer/babel --save-dev
|
|
1572
|
+
```
|
|
1573
|
+
|
|
1574
|
+
```bash packageManager="yarn"
|
|
1575
|
+
yarn add @intlayer/babel --save-dev
|
|
1576
|
+
```
|
|
1577
|
+
|
|
1578
|
+
```bash packageManager="bun"
|
|
1579
|
+
bun add @intlayer/babel --dev
|
|
1580
|
+
```
|
|
1581
|
+
|
|
1582
|
+
```js fileName="babel.config.js"
|
|
1583
|
+
const {
|
|
1584
|
+
intlayerExtractBabelPlugin,
|
|
1585
|
+
getExtractPluginOptions,
|
|
1586
|
+
} = require("@intlayer/babel");
|
|
1587
|
+
|
|
1588
|
+
module.exports = {
|
|
1589
|
+
presets: ["next/babel"],
|
|
1590
|
+
plugins: [
|
|
1591
|
+
// コンポーネントから辞書へコンテンツを抽出する
|
|
1592
|
+
[intlayerExtractBabelPlugin, getExtractPluginOptions()],
|
|
1593
|
+
],
|
|
1594
|
+
};
|
|
1595
|
+
```
|
|
1596
|
+
|
|
1597
|
+
```bash packageManager="npm"
|
|
1598
|
+
npm run build # または npm run dev
|
|
1599
|
+
```
|
|
1600
|
+
|
|
1601
|
+
```bash packageManager="pnpm"
|
|
1602
|
+
pnpm run build # または pnpm run dev
|
|
1603
|
+
```
|
|
1604
|
+
|
|
1605
|
+
```bash packageManager="yarn"
|
|
1606
|
+
yarn build # または yarn dev
|
|
1607
|
+
```
|
|
1608
|
+
|
|
1609
|
+
```bash packageManager="bun"
|
|
1610
|
+
bun run build # Or bun run dev
|
|
1611
|
+
```
|
|
1612
|
+
|
|
1613
|
+
</Tab>
|
|
1614
|
+
</Tabs>
|
|
1615
|
+
|
|
1443
1616
|
### (オプション)ステップ11:ローカライズされたリンクコンポーネントの作成
|
|
1444
1617
|
|
|
1445
1618
|
アプリケーションのナビゲーションが現在のロケールを尊重するようにするために、カスタムの `Link` コンポーネントを作成できます。このコンポーネントは内部のURLに自動的に現在の言語をプレフィックスとして付加します。例えば、フランス語ユーザーが「About」ページへのリンクをクリックすると、 `/about` ではなく `/fr/about` にリダイレクトされます。
|