@intlayer/docs 6.1.6-canary.0 → 6.1.6

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.
Files changed (242) hide show
  1. package/blog/en/next-i18next_vs_next-intl_vs_intlayer.md +71 -80
  2. package/dist/cjs/generated/docs.entry.cjs +16 -0
  3. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  4. package/dist/esm/generated/docs.entry.mjs +16 -0
  5. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  6. package/dist/types/generated/docs.entry.d.ts +1 -0
  7. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  8. package/docs/ar/intlayer_with_angular.md +2 -2
  9. package/docs/ar/intlayer_with_astro.md +246 -0
  10. package/docs/ar/intlayer_with_create_react_app.md +3 -2
  11. package/docs/ar/intlayer_with_express.md +2 -2
  12. package/docs/ar/intlayer_with_nestjs.md +2 -2
  13. package/docs/ar/intlayer_with_nextjs_14.md +2 -2
  14. package/docs/ar/intlayer_with_nextjs_15.md +2 -2
  15. package/docs/ar/intlayer_with_nextjs_page_router.md +2 -2
  16. package/docs/ar/intlayer_with_nuxt.md +2 -2
  17. package/docs/ar/intlayer_with_react_native+expo.md +11 -20
  18. package/docs/ar/intlayer_with_react_router_v7.md +195 -241
  19. package/docs/ar/intlayer_with_tanstack.md +198 -272
  20. package/docs/ar/intlayer_with_vite+preact.md +9 -9
  21. package/docs/ar/intlayer_with_vite+react.md +7 -7
  22. package/docs/ar/intlayer_with_vite+vue.md +9 -9
  23. package/docs/de/intlayer_with_angular.md +2 -2
  24. package/docs/de/intlayer_with_astro.md +246 -0
  25. package/docs/de/intlayer_with_create_react_app.md +2 -2
  26. package/docs/de/intlayer_with_express.md +2 -2
  27. package/docs/de/intlayer_with_nestjs.md +2 -2
  28. package/docs/de/intlayer_with_nextjs_14.md +2 -2
  29. package/docs/de/intlayer_with_nextjs_15.md +2 -2
  30. package/docs/de/intlayer_with_nextjs_page_router.md +2 -2
  31. package/docs/de/intlayer_with_nuxt.md +2 -2
  32. package/docs/de/intlayer_with_react_native+expo.md +11 -20
  33. package/docs/de/intlayer_with_react_router_v7.md +193 -242
  34. package/docs/de/intlayer_with_tanstack.md +194 -266
  35. package/docs/de/intlayer_with_vite+preact.md +9 -9
  36. package/docs/de/intlayer_with_vite+react.md +9 -9
  37. package/docs/de/intlayer_with_vite+vue.md +11 -11
  38. package/docs/de/packages/vite-intlayer/index.md +3 -3
  39. package/docs/en/how_works_intlayer.md +1 -1
  40. package/docs/en/index.md +1 -1
  41. package/docs/en/intlayer_cli.md +1 -1
  42. package/docs/en/intlayer_with_angular.md +4 -4
  43. package/docs/en/intlayer_with_astro.md +246 -0
  44. package/docs/en/intlayer_with_create_react_app.md +4 -4
  45. package/docs/en/intlayer_with_express.md +3 -3
  46. package/docs/en/intlayer_with_lynx+react.md +1 -1
  47. package/docs/en/intlayer_with_nestjs.md +2 -2
  48. package/docs/en/intlayer_with_nextjs_14.md +13 -4
  49. package/docs/en/intlayer_with_nextjs_15.md +13 -4
  50. package/docs/en/intlayer_with_nextjs_page_router.md +5 -5
  51. package/docs/en/intlayer_with_nuxt.md +4 -4
  52. package/docs/en/intlayer_with_react_native+expo.md +46 -24
  53. package/docs/en/intlayer_with_react_router_v7.md +164 -211
  54. package/docs/en/intlayer_with_tanstack.md +166 -241
  55. package/docs/en/intlayer_with_vite+preact.md +12 -12
  56. package/docs/en/intlayer_with_vite+react.md +12 -12
  57. package/docs/en/intlayer_with_vite+solid.md +2 -2
  58. package/docs/en/intlayer_with_vite+svelte.md +2 -2
  59. package/docs/en/intlayer_with_vite+vue.md +12 -12
  60. package/docs/en/introduction.md +1 -1
  61. package/docs/en/packages/next-intlayer/useDictionary.md +1 -1
  62. package/docs/en/packages/next-intlayer/useIntlayer.md +1 -1
  63. package/docs/en/packages/react-intlayer/useDictionary.md +1 -1
  64. package/docs/en/packages/react-intlayer/useI18n.md +1 -1
  65. package/docs/en/packages/react-intlayer/useIntlayer.md +1 -1
  66. package/docs/en/releases/v6.md +1 -0
  67. package/docs/en/roadmap.md +1 -1
  68. package/docs/en-GB/intlayer_with_angular.md +3 -3
  69. package/docs/en-GB/intlayer_with_astro.md +246 -0
  70. package/docs/en-GB/intlayer_with_create_react_app.md +5 -4
  71. package/docs/en-GB/intlayer_with_express.md +2 -2
  72. package/docs/en-GB/intlayer_with_nestjs.md +2 -2
  73. package/docs/en-GB/intlayer_with_nextjs_14.md +4 -4
  74. package/docs/en-GB/intlayer_with_nextjs_15.md +2 -2
  75. package/docs/en-GB/intlayer_with_nextjs_page_router.md +2 -2
  76. package/docs/en-GB/intlayer_with_nuxt.md +2 -2
  77. package/docs/en-GB/intlayer_with_react_native+expo.md +11 -20
  78. package/docs/en-GB/intlayer_with_react_router_v7.md +171 -220
  79. package/docs/en-GB/intlayer_with_tanstack.md +174 -248
  80. package/docs/en-GB/intlayer_with_vite+preact.md +9 -9
  81. package/docs/en-GB/intlayer_with_vite+react.md +9 -9
  82. package/docs/en-GB/intlayer_with_vite+vue.md +11 -11
  83. package/docs/en-GB/packages/next-intlayer/useIntlayer.md +1 -1
  84. package/docs/en-GB/packages/react-intlayer/useIntlayer.md +1 -1
  85. package/docs/es/intlayer_with_angular.md +2 -2
  86. package/docs/es/intlayer_with_astro.md +246 -0
  87. package/docs/es/intlayer_with_create_react_app.md +3 -2
  88. package/docs/es/intlayer_with_express.md +2 -2
  89. package/docs/es/intlayer_with_nextjs_14.md +2 -2
  90. package/docs/es/intlayer_with_nextjs_15.md +2 -2
  91. package/docs/es/intlayer_with_react_native+expo.md +11 -20
  92. package/docs/es/intlayer_with_react_router_v7.md +188 -232
  93. package/docs/es/intlayer_with_tanstack.md +203 -273
  94. package/docs/es/intlayer_with_vite+preact.md +7 -7
  95. package/docs/es/intlayer_with_vite+react.md +7 -7
  96. package/docs/es/intlayer_with_vite+vue.md +9 -9
  97. package/docs/fr/intlayer_with_angular.md +2 -2
  98. package/docs/fr/intlayer_with_astro.md +246 -0
  99. package/docs/fr/intlayer_with_create_react_app.md +3 -2
  100. package/docs/fr/intlayer_with_express.md +2 -2
  101. package/docs/fr/intlayer_with_nestjs.md +2 -2
  102. package/docs/fr/intlayer_with_nextjs_14.md +2 -2
  103. package/docs/fr/intlayer_with_react_native+expo.md +11 -20
  104. package/docs/fr/intlayer_with_react_router_v7.md +188 -248
  105. package/docs/fr/intlayer_with_tanstack.md +192 -265
  106. package/docs/fr/intlayer_with_vite+preact.md +7 -7
  107. package/docs/fr/intlayer_with_vite+react.md +7 -7
  108. package/docs/fr/intlayer_with_vite+vue.md +9 -9
  109. package/docs/hi/intlayer_cli.md +1 -4
  110. package/docs/hi/intlayer_with_angular.md +2 -2
  111. package/docs/hi/intlayer_with_astro.md +246 -0
  112. package/docs/hi/intlayer_with_create_react_app.md +2 -2
  113. package/docs/hi/intlayer_with_express.md +2 -2
  114. package/docs/hi/intlayer_with_nestjs.md +2 -2
  115. package/docs/hi/intlayer_with_nextjs_14.md +2 -2
  116. package/docs/hi/intlayer_with_nextjs_15.md +2 -2
  117. package/docs/hi/intlayer_with_nextjs_page_router.md +2 -2
  118. package/docs/hi/intlayer_with_nuxt.md +2 -2
  119. package/docs/hi/intlayer_with_react_native+expo.md +11 -20
  120. package/docs/hi/intlayer_with_react_router_v7.md +199 -243
  121. package/docs/hi/intlayer_with_tanstack.md +210 -285
  122. package/docs/hi/intlayer_with_vite+preact.md +9 -9
  123. package/docs/hi/intlayer_with_vite+react.md +9 -9
  124. package/docs/hi/intlayer_with_vite+solid.md +1 -1
  125. package/docs/hi/intlayer_with_vite+vue.md +11 -11
  126. package/docs/it/intlayer_with_angular.md +2 -2
  127. package/docs/it/intlayer_with_astro.md +246 -0
  128. package/docs/it/intlayer_with_create_react_app.md +3 -2
  129. package/docs/it/intlayer_with_express.md +2 -2
  130. package/docs/it/intlayer_with_nestjs.md +2 -2
  131. package/docs/it/intlayer_with_nextjs_14.md +2 -2
  132. package/docs/it/intlayer_with_nextjs_15.md +2 -2
  133. package/docs/it/intlayer_with_nextjs_page_router.md +2 -2
  134. package/docs/it/intlayer_with_nuxt.md +2 -2
  135. package/docs/it/intlayer_with_react_native+expo.md +11 -21
  136. package/docs/it/intlayer_with_react_router_v7.md +195 -242
  137. package/docs/it/intlayer_with_tanstack.md +203 -267
  138. package/docs/it/intlayer_with_vite+preact.md +9 -9
  139. package/docs/it/intlayer_with_vite+react.md +13 -11
  140. package/docs/it/intlayer_with_vite+vue.md +11 -11
  141. package/docs/ja/intlayer_with_angular.md +2 -2
  142. package/docs/ja/intlayer_with_astro.md +246 -0
  143. package/docs/ja/intlayer_with_create_react_app.md +3 -2
  144. package/docs/ja/intlayer_with_express.md +2 -2
  145. package/docs/ja/intlayer_with_nestjs.md +2 -2
  146. package/docs/ja/intlayer_with_nextjs_14.md +2 -2
  147. package/docs/ja/intlayer_with_nextjs_15.md +2 -2
  148. package/docs/ja/intlayer_with_nextjs_page_router.md +2 -2
  149. package/docs/ja/intlayer_with_nuxt.md +2 -2
  150. package/docs/ja/intlayer_with_react_native+expo.md +18 -29
  151. package/docs/ja/intlayer_with_react_router_v7.md +204 -250
  152. package/docs/ja/intlayer_with_tanstack.md +218 -286
  153. package/docs/ja/intlayer_with_vite+preact.md +9 -9
  154. package/docs/ja/intlayer_with_vite+react.md +11 -11
  155. package/docs/ja/intlayer_with_vite+vue.md +11 -11
  156. package/docs/ko/intlayer_with_angular.md +2 -2
  157. package/docs/ko/intlayer_with_astro.md +246 -0
  158. package/docs/ko/intlayer_with_create_react_app.md +3 -2
  159. package/docs/ko/intlayer_with_express.md +2 -2
  160. package/docs/ko/intlayer_with_nestjs.md +2 -2
  161. package/docs/ko/intlayer_with_nextjs_14.md +2 -2
  162. package/docs/ko/intlayer_with_nextjs_15.md +2 -2
  163. package/docs/ko/intlayer_with_nextjs_page_router.md +2 -2
  164. package/docs/ko/intlayer_with_nuxt.md +2 -2
  165. package/docs/ko/intlayer_with_react_native+expo.md +19 -28
  166. package/docs/ko/intlayer_with_react_router_v7.md +190 -244
  167. package/docs/ko/intlayer_with_tanstack.md +200 -270
  168. package/docs/ko/intlayer_with_vite+preact.md +9 -9
  169. package/docs/ko/intlayer_with_vite+react.md +9 -9
  170. package/docs/ko/intlayer_with_vite+vue.md +11 -11
  171. package/docs/pt/intlayer_with_angular.md +2 -2
  172. package/docs/pt/intlayer_with_astro.md +246 -0
  173. package/docs/pt/intlayer_with_create_react_app.md +3 -2
  174. package/docs/pt/intlayer_with_express.md +2 -2
  175. package/docs/pt/intlayer_with_nestjs.md +2 -2
  176. package/docs/pt/intlayer_with_nextjs_14.md +2 -2
  177. package/docs/pt/intlayer_with_nextjs_15.md +2 -2
  178. package/docs/pt/intlayer_with_nextjs_page_router.md +2 -2
  179. package/docs/pt/intlayer_with_nuxt.md +2 -2
  180. package/docs/pt/intlayer_with_react_native+expo.md +11 -20
  181. package/docs/pt/intlayer_with_react_router_v7.md +7 -13
  182. package/docs/pt/intlayer_with_tanstack.md +183 -258
  183. package/docs/pt/intlayer_with_vite+preact.md +9 -9
  184. package/docs/pt/intlayer_with_vite+react.md +9 -9
  185. package/docs/pt/intlayer_with_vite+vue.md +9 -9
  186. package/docs/ru/intlayer_with_angular.md +2 -2
  187. package/docs/ru/intlayer_with_astro.md +246 -0
  188. package/docs/ru/intlayer_with_create_react_app.md +3 -2
  189. package/docs/ru/intlayer_with_express.md +2 -2
  190. package/docs/ru/intlayer_with_nestjs.md +2 -2
  191. package/docs/ru/intlayer_with_nextjs_14.md +2 -2
  192. package/docs/ru/intlayer_with_nextjs_15.md +2 -2
  193. package/docs/ru/intlayer_with_nextjs_page_router.md +2 -2
  194. package/docs/ru/intlayer_with_nuxt.md +2 -2
  195. package/docs/ru/intlayer_with_react_native+expo.md +11 -20
  196. package/docs/ru/intlayer_with_react_router_v7.md +192 -238
  197. package/docs/ru/intlayer_with_tanstack.md +197 -269
  198. package/docs/ru/intlayer_with_vite+preact.md +9 -9
  199. package/docs/ru/intlayer_with_vite+react.md +9 -9
  200. package/docs/ru/intlayer_with_vite+vue.md +11 -11
  201. package/docs/tr/how_works_intlayer.md +1 -1
  202. package/docs/tr/index.md +1 -1
  203. package/docs/tr/intlayer_cli.md +1 -1
  204. package/docs/tr/intlayer_with_angular.md +4 -4
  205. package/docs/tr/intlayer_with_astro.md +246 -0
  206. package/docs/tr/intlayer_with_create_react_app.md +4 -4
  207. package/docs/tr/intlayer_with_express.md +3 -3
  208. package/docs/tr/intlayer_with_lynx+react.md +1 -1
  209. package/docs/tr/intlayer_with_nestjs.md +2 -2
  210. package/docs/tr/intlayer_with_nextjs_14.md +2 -2
  211. package/docs/tr/intlayer_with_nextjs_15.md +4 -4
  212. package/docs/tr/intlayer_with_nextjs_page_router.md +5 -5
  213. package/docs/tr/intlayer_with_nuxt.md +4 -4
  214. package/docs/tr/intlayer_with_react_native+expo.md +12 -21
  215. package/docs/tr/intlayer_with_react_router_v7.md +222 -267
  216. package/docs/tr/intlayer_with_tanstack.md +400 -303
  217. package/docs/tr/intlayer_with_vite+preact.md +12 -12
  218. package/docs/tr/intlayer_with_vite+react.md +12 -12
  219. package/docs/tr/intlayer_with_vite+solid.md +2 -2
  220. package/docs/tr/intlayer_with_vite+svelte.md +2 -2
  221. package/docs/tr/intlayer_with_vite+vue.md +12 -12
  222. package/docs/tr/introduction.md +1 -1
  223. package/docs/tr/packages/react-intlayer/useDictionary.md +1 -1
  224. package/docs/tr/packages/react-intlayer/useI18n.md +1 -1
  225. package/docs/tr/roadmap.md +1 -1
  226. package/docs/zh/intlayer_with_angular.md +2 -2
  227. package/docs/zh/intlayer_with_astro.md +246 -0
  228. package/docs/zh/intlayer_with_create_react_app.md +3 -2
  229. package/docs/zh/intlayer_with_express.md +2 -2
  230. package/docs/zh/intlayer_with_nestjs.md +2 -2
  231. package/docs/zh/intlayer_with_nextjs_14.md +2 -2
  232. package/docs/zh/intlayer_with_nextjs_15.md +2 -2
  233. package/docs/zh/intlayer_with_nextjs_page_router.md +2 -2
  234. package/docs/zh/intlayer_with_nuxt.md +2 -2
  235. package/docs/zh/intlayer_with_react_native+expo.md +19 -28
  236. package/docs/zh/intlayer_with_react_router_v7.md +200 -248
  237. package/docs/zh/intlayer_with_tanstack.md +208 -283
  238. package/docs/zh/intlayer_with_vite+preact.md +9 -9
  239. package/docs/zh/intlayer_with_vite+react.md +9 -9
  240. package/docs/zh/intlayer_with_vite+vue.md +9 -9
  241. package/package.json +11 -11
  242. package/src/generated/docs.entry.ts +16 -0
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  createdAt: 2025-09-04
3
- updatedAt: 2025-09-04
4
- title: React Router v7でのIntlayerによる国際化(i18n)入門
5
- description: Intlayerを使ってReact Router v7アプリケーションに国際化(i18n)を追加する方法を学びます。ロケール対応ルーティングで多言語対応アプリを作成するための包括的なガイドです。
3
+ updatedAt: 2025-10-03
4
+ title: React Router v7でのIntlayerを使った国際化の始め方
5
+ description: Intlayerを使用してReact Router v7アプリケーションに国際化(i18n)を追加する方法を学びます。ロケール対応ルーティングでアプリを多言語化するための包括的なガイドに従ってください。
6
6
  keywords:
7
7
  - 国際化
8
8
  - ドキュメント
@@ -17,24 +17,23 @@ slugs:
17
17
  - environment
18
18
  - vite-and-react
19
19
  - react-router-v7
20
- applicationTemplate: https://github.com/AydinTheFirst/react-router-intlayer
21
- author: AydinTheFirst
20
+ applicationTemplate: https://github.com/aymericzip/intlayer-react-router-v7-template
22
21
  ---
23
22
 
24
- # IntlayerとReact Router v7で始める国際化(i18n
23
+ # IntlayerとReact Router v7を使った国際化(i18n)の始め方
25
24
 
26
- このガイドでは、React Router v7プロジェクトにおいて、ロケール対応ルーティング、TypeScriptサポート、最新の開発手法を用いて、**Intlayer**をシームレスに統合する方法を示します。
25
+ このガイドでは、React Router v7プロジェクトにおいて、ロケール対応ルーティング、TypeScriptサポート、最新の開発手法を活用しながら、**Intlayer**を使ったシームレスな国際化の統合方法を説明します。
27
26
 
28
27
  ## Intlayerとは?
29
28
 
30
- **Intlayer**は、モダンなウェブアプリケーションにおける多言語対応を簡素化するために設計された革新的なオープンソースの国際化(i18n)ライブラリです。
29
+ **Intlayer**は、現代のウェブアプリケーションにおける多言語対応を簡素化するために設計された革新的なオープンソースの国際化(i18n)ライブラリです。
31
30
 
32
31
  Intlayerを使うことで、以下が可能になります:
33
32
 
34
- - **コンポーネントレベルで宣言的な辞書を使い、翻訳を簡単に管理**できます。
33
+ - **コンポーネントレベルで宣言的辞書を使い、翻訳を簡単に管理**できます。
35
34
  - **メタデータ、ルート、コンテンツを動的にローカライズ**できます。
36
35
  - **自動生成される型情報によりTypeScriptサポートを確保し、オートコンプリートやエラー検出を向上**させます。
37
- - **動的なロケール検出や切り替えなどの高度な機能を活用**できます。
36
+ - **動的なロケール検出や切り替えなどの高度な機能**を活用できます。
38
37
  - **React Router v7の設定ベースのルーティングシステムを使って、ロケール対応ルーティングを有効化**します。
39
38
 
40
39
  ---
@@ -43,7 +42,7 @@ Intlayerを使うことで、以下が可能になります:
43
42
 
44
43
  ### ステップ1: 依存パッケージのインストール
45
44
 
46
- お好みのパッケージマネージャーを使って、必要なパッケージをインストールします:
45
+ お好みのパッケージマネージャーを使って必要なパッケージをインストールします:
47
46
 
48
47
  ```bash packageManager="npm"
49
48
  npm install intlayer react-intlayer
@@ -61,7 +60,7 @@ pnpm add vite-intlayer --save-dev
61
60
  設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/get_started.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のための国際化ツールを提供するコアパッケージ。
62
61
 
63
62
  - **react-intlayer**
64
- IntlayerをReactアプリケーションに統合するパッケージです。Reactの国際化のためのコンテキストプロバイダーとフックを提供します。
63
+ IntlayerをReactアプリケーションと統合するパッケージです。Reactの国際化のためのコンテキストプロバイダーとフックを提供します。
65
64
 
66
65
  - **vite-intlayer**
67
66
  Intlayerを[Viteバンドラー](https://vite.dev/guide/why.html#why-bundle-for-production)と統合するためのViteプラグイン、およびユーザーの優先ロケール検出、クッキー管理、URLリダイレクト処理のためのミドルウェアを含みます。
@@ -75,11 +74,8 @@ import { type IntlayerConfig, Locales } from "intlayer";
75
74
 
76
75
  const config: IntlayerConfig = {
77
76
  internationalization: {
78
- defaultLocale: Locales.ENGLISH,
79
- locales: [Locales.ENGLISH, Locales.TURKISH],
80
- },
81
- middleware: {
82
- prefixDefault: true, // URLに常にデフォルトのロケールをプレフィックスとして付ける
77
+ defaultLocale: Locales.ENGLISH, // デフォルトのロケールを英語に設定
78
+ locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH], // 利用可能なロケールのリスト
83
79
  },
84
80
  };
85
81
 
@@ -92,11 +88,8 @@ import { Locales } from "intlayer";
92
88
  /** @type {import('intlayer').IntlayerConfig} */
93
89
  const config = {
94
90
  internationalization: {
95
- defaultLocale: Locales.ENGLISH,
96
- locales: [Locales.ENGLISH, Locales.TURKISH],
97
- },
98
- middleware: {
99
- prefixDefault: true,
91
+ defaultLocale: Locales.ENGLISH, // デフォルトのロケールを英語に設定
92
+ locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH], // 利用可能なロケールのリスト
100
93
  },
101
94
  };
102
95
 
@@ -107,86 +100,78 @@ export default config;
107
100
  const { Locales } = require("intlayer");
108
101
 
109
102
  /** @type {import('intlayer').IntlayerConfig} */
110
- // IntlayerConfigの型注釈
111
103
  const config = {
112
104
  internationalization: {
113
- defaultLocale: Locales.ENGLISH, // デフォルトのロケールを英語に設定
114
- locales: [Locales.ENGLISH, Locales.TURKISH], // 利用可能なロケール一覧
115
- },
116
- middleware: {
117
- prefixDefault: true, // デフォルトロケールのURLに常にプレフィックスを付ける
105
+ defaultLocale: Locales.ENGLISH,
106
+ locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
118
107
  },
119
108
  };
120
109
 
121
110
  module.exports = config;
122
111
  ```
123
112
 
124
- > この設定ファイルを通じて、ローカライズされたURL、ミドルウェアのリダイレクション、クッキー名、コンテンツ宣言の場所や拡張子、Intlayerのコンソールログの無効化などを設定できます。利用可能なパラメータの完全なリストについては、[設定ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/configuration.md)を参照してください。
125
-
126
- ### ステップ 3: React Router v7 のルートを設定する
127
-
128
- ロケール対応のルートでルーティング設定を行います:
129
-
130
- ```typescript fileName="app/routes.ts" codeFormat="typescript"
131
- import { layout, route, type RouteConfig } from "@react-router/dev/routes";
132
-
133
- export default [
134
- layout("routes/layout.tsx", [
135
- route("/", "routes/page.tsx"), // ルートページ - ロケールへリダイレクト
136
- route("/:lang", "routes/[lang]/page.tsx"), // ローカライズされたホームページ
137
- route("/:lang/about", "routes/[lang]/about/page.tsx"), // ローカライズされたアバウトページ
138
- ]),
139
- ] satisfies RouteConfig;
140
- ```
113
+ > この設定ファイルを通じて、ローカライズされたURL、ミドルウェアのリダイレクション、クッキー名、コンテンツ宣言の場所と拡張子、コンソールでのIntlayerログの無効化などを設定できます。利用可能なパラメータの完全なリストについては、[設定ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/configuration.md)を参照してください。
141
114
 
142
- ### ステップ 4: Vite設定にIntlayerを統合する
115
+ ### ステップ3: Vite設定にIntlayerを統合する
143
116
 
144
- 設定にintlayerプラグインを追加します:
117
+ 設定にintlayerプラグインを追加します:
145
118
 
146
- ```typescript fileName="vite.config.ts" codeFormat="typescript"
119
+ ```typescript fileName="vite.config.ts"
147
120
  import { reactRouter } from "@react-router/dev/vite";
148
121
  import { defineConfig } from "vite";
149
- import { intlayerMiddlewarePlugin, intlayer } from "vite-intlayer";
122
+ import { intlayer } from "vite-intlayer";
150
123
  import tsconfigPaths from "vite-tsconfig-paths";
151
124
 
152
125
  export default defineConfig({
153
- plugins: [
154
- reactRouter(),
155
- tsconfigPaths(),
156
- intlayer(),
157
- intlayerMiddlewarePlugin(),
158
- ],
126
+ plugins: [reactRouter(), tsconfigPaths(), intlayer()],
159
127
  });
160
128
  ```
161
129
 
162
130
  > `intlayer()` Viteプラグインは、IntlayerをViteと統合するために使用されます。これにより、コンテンツ宣言ファイルのビルドが保証され、開発モードで監視されます。また、Viteアプリケーション内でIntlayerの環境変数を定義します。さらに、パフォーマンスを最適化するためのエイリアスも提供します。
163
131
 
132
+ ### ステップ4: React Router v7のルートを設定する
133
+
134
+ ロケール対応のルートでルーティング設定を行います:
135
+
136
+ ```typescript fileName="app/routes.ts"
137
+ import { layout, route, type RouteConfig } from "@react-router/dev/routes";
138
+
139
+ export default [
140
+ layout("routes/layout.tsx", [
141
+ route("/:lang?", "routes/page.tsx"), // ローカライズされたホームページ
142
+ route("/:lang?/about", "routes/about/page.tsx"), // ローカライズされたアバウトページ
143
+ ]),
144
+ ] satisfies RouteConfig;
145
+ ```
146
+
164
147
  ### ステップ5: レイアウトコンポーネントの作成
165
148
 
166
- ルートレイアウトとロケール固有のレイアウトを設定します。
149
+ ルートレイアウトとロケール固有のレイアウトを設定します:
167
150
 
168
151
  #### ルートレイアウト
169
152
 
170
- ```tsx fileName="app/routes/layout.tsx" codeFormat="typescript"
171
- tsx;
172
- // app/routes/layout.tsx
173
- import { Outlet } from "react-router";
153
+ ```tsx fileName="app/routes/layout.tsx"
174
154
  import { IntlayerProvider } from "react-intlayer";
155
+ import { Outlet } from "react-router";
156
+
157
+ import type { Route } from "./+types/layout";
158
+
159
+ export default function RootLayout({ params }: Route.ComponentProps) {
160
+ const { locale } = params;
175
161
 
176
- export default function RootLayout() {
177
162
  return (
178
- <IntlayerProvider>
163
+ <IntlayerProvider locale={locale}>
179
164
  <Outlet />
180
165
  </IntlayerProvider>
181
166
  );
182
167
  }
183
168
  ```
184
169
 
185
- ### ステップ6: コンテンツを宣言する
170
+ ### ステップ 6: コンテンツを宣言する
186
171
 
187
- 翻訳を格納するためのコンテンツ宣言を作成および管理します:
172
+ 翻訳を格納するためのコンテンツ宣言を作成および管理します:
188
173
 
189
- ```tsx fileName="app/routes/[lang]/page.content.ts" contentDeclarationFormat="typescript"
174
+ ```tsx fileName="app/routes/[lang]/page.content.ts"
190
175
  import { t, type Dictionary } from "intlayer";
191
176
 
192
177
  const pageContent = {
@@ -194,19 +179,23 @@ const pageContent = {
194
179
  content: {
195
180
  title: t({
196
181
  en: "Welcome to React Router v7 + Intlayer",
197
- tr: "React Router v7 + Intlayer'a Hoş Geldiniz",
182
+ es: "Bienvenido a React Router v7 + Intlayer",
183
+ fr: "Bienvenue sur React Router v7 + Intlayer",
198
184
  }),
199
185
  description: t({
200
186
  en: "Build multilingual applications with ease using React Router v7 and Intlayer.",
201
- tr: "React Router v7 ve Intlayer kullanarak kolayca çok dilli uygulamalar geliştirin。",
187
+ es: "Cree aplicaciones multilingües fácilmente usando React Router v7 y Intlayer.",
188
+ fr: "Créez des applications multilingues facilement avec React Router v7 et Intlayer.",
202
189
  }),
203
190
  aboutLink: t({
204
- en: "Learn About Us",
205
- tr: "Hakkımızda Öğrenin",
191
+ en: "私たちについて学ぶ",
192
+ es: "Aprender Sobre Nosotros",
193
+ fr: "En savoir plus sur nous",
206
194
  }),
207
195
  homeLink: t({
208
- en: "Home",
209
- tr: "Ana Sayfa",
196
+ en: "ホーム",
197
+ es: "Inicio",
198
+ fr: "Accueil",
210
199
  }),
211
200
  },
212
201
  } satisfies Dictionary;
@@ -214,104 +203,93 @@ const pageContent = {
214
203
  export default pageContent;
215
204
  ```
216
205
 
217
- > コンテンツ宣言は、アプリケーション内のどこにでも定義できます。`contentDir` ディレクトリ(デフォルトは `./app`)に含まれていれば有効です。また、コンテンツ宣言ファイルの拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,mjx,cjs,cjx}`)に一致する必要があります。
206
+ > コンテンツ宣言は、`contentDir` ディレクトリ(デフォルトは `./app`)に含まれている限り、アプリケーションのどこにでも定義できます。また、コンテンツ宣言ファイルの拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,mjx,cjs,cjx}`)に一致する必要があります。
218
207
 
219
- > 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/get_started.md)を参照してください。
208
+ > 詳細については、[コンテンツ宣言ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/get_started.md)を参照してください。
220
209
 
221
210
  ### ステップ7: ロケール対応コンポーネントの作成
222
211
 
223
- ロケール対応のナビゲーションのために `LocalizedLink` コンポーネントを作成します:
212
+ ロケール対応のナビゲーション用に `LocalizedLink` コンポーネントを作成します:
224
213
 
225
- ```tsx fileName="app/components/localized-link.tsx" codeFormat="typescript"
226
- // app/components/localized-link.tsx
227
- import { getLocalizedUrl } from "intlayer";
228
- import { useLocale } from "react-intlayer";
229
- import React from "react";
230
- import { Link, useLocation } from "react-router";
231
-
232
- type RouterLinkProps = React.ComponentProps<typeof Link>;
214
+ ```tsx fileName="app/components/localized-link.tsx"
215
+ import type { FC } from "react";
233
216
 
234
- export default function LocalizedLink({ to, ...props }: RouterLinkProps) {
235
- const { locale } = useLocale(); // 現在のロケールを取得
236
- const location = useLocation(); // 現在の場所を取得
217
+ import { getLocalizedUrl, type LocalesValues } from "intlayer";
218
+ import { useLocale } from "react-intlayer";
219
+ import { Link, type LinkProps, type To } from "react-router";
237
220
 
238
- const isExternal = (path: string) =>
239
- /^([a-z][a-z0-9+.-]*:)?\/\//i.test(path) || path.startsWith("mailto:"); // 外部リンクかどうかを判定
221
+ // 外部リンクかどうかを判定する関数
222
+ const isExternalLink = (to: string) => /^(https?:)?\/\//.test(to);
240
223
 
224
+ // 指定されたURLをロケールに応じてローカライズする関数
225
+ export const locacalizeTo = (to: To, locale: LocalesValues): To => {
241
226
  if (typeof to === "string") {
242
- if (to.startsWith("/") && !isExternal(to)) {
243
- return <Link to={getLocalizedUrl(to, locale)} {...props} />;
227
+ if (isExternalLink(to)) {
228
+ return to;
244
229
  }
245
- return <Link to={to} {...props} />;
230
+
231
+ return getLocalizedUrl(to, locale);
246
232
  }
247
233
 
248
- if (to && typeof to === "object") {
249
- const pathname = (to as { pathname?: string }).pathname;
250
- if (pathname && pathname.startsWith("/") && !isExternal(pathname)) {
251
- return (
252
- <Link
253
- to={{ ...to, pathname: getLocalizedUrl(pathname, locale) }}
254
- {...props}
255
- />
256
- );
257
- }
258
- return <Link to={to} {...props} />;
234
+ if (isExternalLink(to.pathname ?? "")) {
235
+ return to;
259
236
  }
260
237
 
261
- return (
262
- <Link
263
- to={getLocalizedUrl(location.pathname + location.search, locale)}
264
- {...props}
265
- />
266
- );
267
- }
268
- ```
238
+ return {
239
+ ...to,
240
+ pathname: getLocalizedUrl(to.pathname ?? "", locale),
241
+ };
242
+ };
269
243
 
270
- ### ステップ8: ページでIntlayerを活用する
244
+ // ロケール対応のリンクコンポーネント
245
+ export const LocalizedLink: FC<LinkProps> = (props) => {
246
+ const { locale } = useLocale();
271
247
 
272
- アプリケーション全体でコンテンツ辞書にアクセスします:
248
+ return <Link {...props} to={locacalizeTo(props.to, locale)} />;
249
+ };
250
+ ```
273
251
 
274
- #### ルートリダイレクトページ
252
+ ローカライズされたルートにナビゲートしたい場合は、`useLocalizedNavigate` フックを使用できます。
275
253
 
276
- ```tsx fileName="app/routes/page.tsx" codeFormat="typescript"
277
- // app/routes/page.tsx
278
- import { useLocale } from "react-intlayer";
279
- import { Navigate } from "react-router";
254
+ ```tsx fileName="app/hooks/useLocalizedNavigate.ts"
255
+ import { useLocale } from "intlayer";
256
+ import { type NavigateOptions, type To, useNavigate } from "react-router";
280
257
 
281
- export default function Page() {
258
+ import { locacalizeTo } from "~/components/localized-link";
259
+
260
+ export const useLocalizedNavigate = () => {
261
+ const navigate = useNavigate();
282
262
  const { locale } = useLocale();
283
263
 
284
- return <Navigate replace to={locale} />;
285
- }
264
+ const localizedNavigate = (to: To, options?: NavigateOptions) => {
265
+ const localedTo = locacalizeTo(to, locale);
266
+
267
+ navigate(localedTo, options);
268
+ };
269
+
270
+ return localizedNavigate;
271
+ };
286
272
  ```
287
273
 
274
+ ### ステップ8: ページで Intlayer を活用する
275
+
276
+ アプリケーション全体でコンテンツ辞書にアクセスします:
277
+
288
278
  #### ローカライズされたホームページ
289
279
 
290
- ```tsx fileName="app/routes/[lang]/page.tsx" codeFormat="typescript"
280
+ ```tsx fileName="app/routes/[lang]/page.tsx"
291
281
  import { useIntlayer } from "react-intlayer";
292
- import LocalizedLink from "~/components/localized-link";
282
+ import { LocalizedLink } from "~/components/localized-link";
293
283
 
294
284
  export default function Page() {
295
- const content = useIntlayer("page");
285
+ const { title, description, aboutLink } = useIntlayer("page");
296
286
 
297
287
  return (
298
- <div style={{ padding: "2rem", textAlign: "center" }}>
299
- <h1>{content.title}</h1>
300
- <p>{content.description}</p>
301
- <nav style={{ marginTop: "2rem" }}>
302
- <LocalizedLink
303
- to="/about"
304
- style={{
305
- display: "inline-block",
306
- padding: "0.5rem 1rem",
307
- backgroundColor: "#007bff",
308
- color: "white",
309
- textDecoration: "none",
310
- borderRadius: "4px",
311
- }}
312
- >
313
- {content.aboutLink}
314
- </LocalizedLink>
288
+ <div>
289
+ <h1>{title}</h1>
290
+ <p>{description}</p>
291
+ <nav>
292
+ <LocalizedLink to="/about">{aboutLink}</LocalizedLink>
315
293
  </nav>
316
294
  </div>
317
295
  );
@@ -320,57 +298,71 @@ export default function Page() {
320
298
 
321
299
  > `useIntlayer` フックの詳細については、[ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/packages/react-intlayer/useIntlayer.md)を参照してください。
322
300
 
323
- ### ステップ9: ロケール切り替えコンポーネントの作成
301
+ ### ステップ9:ロケールスイッチャーコンポーネントを作成する
324
302
 
325
303
  ユーザーが言語を変更できるコンポーネントを作成します:
326
304
 
327
- ```tsx fileName="app/components/locale-switcher.tsx" codeFormat="typescript"
328
- import { getLocalizedUrl, getLocaleName } from "intlayer";
329
- import { useLocale } from "react-intlayer";
330
- import { useLocation, useNavigate } from "react-router";
305
+ ```tsx fileName="app/components/locale-switcher.tsx"
306
+ import type { FC } from "react";
331
307
 
332
- export default function LocaleSwitcher() {
333
- const { locale, availableLocales, setLocale } = useLocale();
334
- const location = useLocation();
335
- const navigate = useNavigate();
308
+ import {
309
+ getHTMLTextDir,
310
+ getLocaleName,
311
+ getLocalizedUrl,
312
+ getPathWithoutLocale,
313
+ } from "intlayer";
314
+ import { setLocaleCookie, useIntlayer, useLocale } from "react-intlayer";
315
+ import { Link, useLocation } from "react-router";
336
316
 
337
- const handleLocaleChange = (newLocale: string) => {
338
- const localizedUrl = getLocalizedUrl(
339
- location.pathname + location.search,
340
- newLocale
341
- );
342
- setLocale(newLocale);
343
- navigate(localizedUrl);
344
- };
317
+ export const LocaleSwitcher: FC = () => {
318
+ const { localeSwitcherLabel } = useIntlayer("locale-switcher"); // ロケールスイッチャーのラベルを取得
319
+ const { pathname } = useLocation(); // 現在のパス名を取得
320
+
321
+ const { availableLocales, locale } = useLocale(); // 利用可能なロケールと現在のロケールを取得
322
+
323
+ const pathWithoutLocale = getPathWithoutLocale(pathname); // パスからロケール部分を除去
345
324
 
346
325
  return (
347
- <div style={{ margin: "1rem 0" }}>
348
- <label htmlFor="locale-select">言語を選択してください: </label>
349
- <select
350
- id="locale-select"
351
- value={locale}
352
- onChange={(e) => handleLocaleChange(e.target.value)}
353
- style={{ padding: "0.25rem", marginLeft: "0.5rem" }}
354
- >
355
- {availableLocales.map((availableLocale) => (
356
- <option key={availableLocale} value={availableLocale}>
357
- {getLocaleName(availableLocale)}
358
- </option>
359
- ))}
360
- </select>
361
- </div>
326
+ <ol>
327
+ {availableLocales.map((localeItem) => (
328
+ <li key={localeItem}>
329
+ <Link
330
+ aria-current={localeItem === locale ? "page" : undefined}
331
+ aria-label={`${localeSwitcherLabel.value} ${getLocaleName(localeItem)}`}
332
+ onClick={() => setLocaleCookie(localeItem)}
333
+ to={getLocalizedUrl(pathWithoutLocale, localeItem)}
334
+ >
335
+ <span>
336
+ {/* ロケール - 例: FR */}
337
+ {localeItem}
338
+ </span>
339
+ <span>
340
+ {/* 自身のロケールでの言語名 - 例: Français */}
341
+ {getLocaleName(localeItem, locale)}
342
+ </span>
343
+ <span dir={getHTMLTextDir(localeItem)} lang={localeItem}>
344
+ {/* 現在のロケールでの言語名 - 例: 現在のロケールがLocales.SPANISHの場合のFrancés */}
345
+ {getLocaleName(localeItem)}
346
+ </span>
347
+ <span dir="ltr" lang={Locales.ENGLISH}>
348
+ {/* 英語での言語名 - 例: French */}
349
+ {getLocaleName(localeItem, Locales.ENGLISH)}
350
+ </span>
351
+ </Link>
352
+ </li>
353
+ ))}
354
+ </ol>
362
355
  );
363
- }
356
+ };
364
357
  ```
365
358
 
366
359
  > `useLocale` フックの詳細については、[ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/packages/react-intlayer/useLocale.md)を参照してください。
367
360
 
368
361
  ### ステップ10: HTML属性の管理を追加(オプション)
369
362
 
370
- HTMLの langdir 属性を管理するフックを作成します:
363
+ HTMLのlang属性とdir属性を管理するフックを作成します:
371
364
 
372
- ```tsx fileName="app/hooks/useI18nHTMLAttributes.tsx" codeFormat="typescript"
373
- // app/hooks/useI18nHTMLAttributes.tsx
365
+ ```tsx fileName="app/hooks/useI18nHTMLAttributes.tsx"
374
366
  import { getHTMLTextDir } from "intlayer";
375
367
  import { useEffect } from "react";
376
368
  import { useLocale } from "react-intlayer";
@@ -387,8 +379,7 @@ export const useI18nHTMLAttributes = () => {
387
379
 
388
380
  次に、ルートコンポーネントでこれを使用します:
389
381
 
390
- ```tsx fileName="app/root.tsx" codeFormat="typescript"
391
- // app/routes/layout.tsx
382
+ ```tsx fileName="app/routes/layout.tsx"
392
383
  import { Outlet } from "react-router";
393
384
  import { IntlayerProvider } from "react-intlayer";
394
385
 
@@ -405,57 +396,48 @@ export default function RootLayout() {
405
396
  }
406
397
  ```
407
398
 
408
- ### ステップ11: アプリケーションのビルドと実行
409
-
410
- コンテンツ辞書をビルドしてアプリケーションを実行します:
399
+ ### ステップ11: ミドルウェアを追加する(オプション)
411
400
 
412
- ```bash packageManager="npm"
413
- # Intlayerの辞書をビルド
414
- npm run intlayer:build
401
+ `intlayerMiddleware` を使用して、アプリケーションにサーバーサイドルーティングを追加することもできます。このプラグインは、URL に基づいて現在のロケールを自動的に検出し、適切なロケールクッキーを設定します。ロケールが指定されていない場合、プラグインはユーザーのブラウザの言語設定に基づいて最も適切なロケールを判断します。ロケールが検出されない場合は、デフォルトのロケールにリダイレクトします。
415
402
 
416
- # 開発サーバーを起動
417
- npm run dev
418
- ```
403
+ > `intlayerMiddleware` を本番環境で使用するには、`vite-intlayer` パッケージを `devDependencies` から `dependencies` に切り替える必要があることに注意してください。
419
404
 
420
- ```bash packageManager="pnpm"
421
- # Intlayerの辞書をビルド
422
- pnpm intlayer:build
405
+ ```typescript {3,7} fileName="vite.config.ts"
406
+ import { defineConfig } from "vite";
407
+ import react from "@vitejs/plugin-react-swc";
408
+ import { intlayer, intlayerMiddleware } from "vite-intlayer";
423
409
 
424
- # 開発サーバーを起動
425
- pnpm dev
410
+ // https://vitejs.dev/config/
411
+ export default defineConfig({
412
+ plugins: [react(), intlayer(), intlayerMiddleware()],
413
+ });
426
414
  ```
427
415
 
428
- ```bash packageManager="yarn"
429
- # Intlayerの辞書をビルド
430
- yarn intlayer:build
431
-
432
- # 開発サーバーを起動
433
- yarn dev
434
- ```
416
+ ---
435
417
 
436
- ### ステップ12:TypeScriptの設定(オプション)
418
+ ## TypeScriptの設定
437
419
 
438
- Intlayerはモジュール拡張を使用してTypeScriptの利点を活かし、コードベースを強化します。
420
+ Intlayerはモジュール拡張を使用して、TypeScriptの利点を活かし、コードベースをより強固にします。
439
421
 
440
- TypeScriptの設定に自動生成された型が含まれていることを確認してください:
422
+ TypeScriptの設定に自動生成された型が含まれていることを確認してください。
441
423
 
442
424
  ```json5 fileName="tsconfig.json"
443
425
  {
444
- compilerOptions: {
445
- // ... 既存のTypeScript設定
446
- },
426
+ // ... 既存の設定
447
427
  include: [
448
- // ... your existing includes
428
+ // ... 既存のinclude
449
429
  ".intlayer/**/*.ts", // 自動生成された型を含める
450
430
  ],
451
431
  }
452
432
  ```
453
433
 
454
- ### Gitの設定
434
+ ---
435
+
436
+ ## Gitの設定
455
437
 
456
438
  Intlayerによって生成されたファイルは無視することを推奨します。これにより、Gitリポジトリへのコミットを避けることができます。
457
439
 
458
- これを行うには、`.gitignore`ファイルに以下の指示を追加してください:
440
+ これを行うには、`.gitignore`ファイルに以下の指示を追加してください。
459
441
 
460
442
  ```plaintext fileName=".gitignore"
461
443
  # Intlayerによって生成されたファイルを無視する
@@ -464,55 +446,26 @@ Intlayerによって生成されたファイルは無視することを推奨し
464
446
 
465
447
  ---
466
448
 
467
- ## 本番環境へのデプロイ
468
-
469
- アプリケーションをデプロイする際は:
470
-
471
- 1. **アプリケーションをビルドする:**
472
-
473
- ```bash
474
- npm run build
475
- ```
476
-
477
- 2. **Intlayerの辞書をビルドする:**
478
-
479
- ```bash
480
- npm run intlayer:build
481
- ```
482
-
483
- 3. **本番環境でミドルウェアを使用する場合は、`vite-intlayer`を依存関係に移動する:**
484
- ```bash
485
- npm install vite-intlayer --save
486
- ```
487
-
488
- あなたのアプリケーションは以下をサポートします:
489
-
490
- - **URL構造**: `/en`、`/en/about`、`/tr`、`/tr/about`
491
- - ブラウザの設定に基づく**自動ロケール検出**
492
- - React Router v7による**ロケール対応ルーティング**
493
- - 自動生成された型定義による**TypeScriptサポート**
494
- - 適切なロケール処理を伴う**サーバーサイドレンダリング**
495
-
496
- ## VS Code拡張機能
449
+ ## VS Code 拡張機能
497
450
 
498
- Intlayerでの開発体験を向上させるために、公式の**Intlayer VS Code拡張機能**をインストールできます。
451
+ Intlayerでの開発体験を向上させるために、公式の **Intlayer VS Code 拡張機能** をインストールできます。
499
452
 
500
- [VS Codeマーケットプレイスからインストール](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
453
+ [VS Code Marketplaceからインストール](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
501
454
 
502
455
  この拡張機能は以下を提供します:
503
456
 
504
- - 翻訳キーの**オートコンプリート**
505
- - 翻訳が不足している場合の**リアルタイムエラー検出**
506
- - 翻訳済みコンテンツの**インラインプレビュー**
507
- - **クイックアクション** により、翻訳の作成や更新を簡単に行えます。
457
+ - 翻訳キーの **自動補完**。
458
+ - 翻訳が不足している場合の **リアルタイムエラー検出**。
459
+ - 翻訳内容の **インラインプレビュー**。
460
+ - 翻訳を簡単に作成・更新できる **クイックアクション**。
508
461
 
509
- 拡張機能の使い方の詳細については、[Intlayer VS Code 拡張機能のドキュメント](https://intlayer.org/doc/vs-code-extension)を参照してください。
462
+ 拡張機能の使い方の詳細は、[Intlayer VS Code 拡張機能のドキュメント](https://intlayer.org/doc/vs-code-extension)を参照してください。
510
463
 
511
464
  ---
512
465
 
513
- ## さらに進むには
466
+ ## さらに進む
514
467
 
515
- さらに進むために、[ビジュアルエディター](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_visual_editor.md)を実装したり、[CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_CMS.md)を使ってコンテンツを外部化したりすることができます。
468
+ さらに進めるために、[ビジュアルエディター](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_visual_editor.md)を実装するか、[CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_CMS.md)を使用してコンテンツを外部化することができます。
516
469
 
517
470
  ---
518
471
 
@@ -525,10 +478,11 @@ Intlayerでの開発体験を向上させるために、公式の**Intlayer VS C
525
478
  - [コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/get_started.md)
526
479
  - [設定](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/configuration.md)
527
480
 
528
- この包括的なガイドは、Intlayer React Router v7 と統合し、ロケール対応のルーティングと TypeScript サポートを備えた完全な国際化アプリケーションを構築するために必要なすべてを提供します。
481
+ この包括的なガイドは、IntlayerをReact Router v7と統合し、ロケール対応のルーティングとTypeScriptサポートを備えた完全に国際化されたアプリケーションを構築するために必要なすべてを提供します。
529
482
 
530
483
  ## ドキュメント履歴
531
484
 
532
- | バージョン | 日付 | 変更内容 |
533
- | ---------- | --------- | ------------------------ |
534
- | 5.8.2 | 2025-09-4 | React Router v7 用に追加 |
485
+ | バージョン | 日付 | 変更内容 |
486
+ | ---------- | ---------- | ----------------------- |
487
+ | 6.1.5 | 2025-10-03 | ドキュメント更新 |
488
+ | 5.8.2 | 2025-09-04 | React Router v7対応追加 |