@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
3
+ updatedAt: 2025-10-03
4
4
  title: React Router v7 में Intlayer के साथ शुरुआत करना
5
- description: जानें कि कैसे Intlayer का उपयोग करके अपने React Router v7 एप्लिकेशन में अंतरराष्ट्रीयकरण (i18n) जोड़ें। इस व्यापक गाइड का पालन करें ताकि आपका ऐप बहुभाषी और locale-सचेत रूटिंग के साथ हो।
5
+ description: जानें कि कैसे Intlayer का उपयोग करके अपने React Router v7 एप्लिकेशन में अंतरराष्ट्रीयकरण (i18n) जोड़ें। इस व्यापक गाइड का पालन करें ताकि आपका ऐप बहुभाषी और locale-aware रूटिंग के साथ हो।
6
6
  keywords:
7
7
  - अंतरराष्ट्रीयकरण
8
8
  - दस्तावेज़ीकरण
@@ -17,13 +17,12 @@ 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
23
  # Intlayer और React Router v7 के साथ अंतरराष्ट्रीयकरण (i18n) शुरू करना
25
24
 
26
- यह गाइड दिखाता है कि कैसे **Intlayer** को React Router v7 प्रोजेक्ट्स में seamless अंतरराष्ट्रीयकरण के लिए locale-सचेत रूटिंग, TypeScript समर्थन, और आधुनिक विकास प्रथाओं के साथ एकीकृत किया जाए।
25
+ यह गाइड दिखाता है कि कैसे **Intlayer** को React Router v7 प्रोजेक्ट्स में seamless अंतरराष्ट्रीयकरण के लिए एकीकृत किया जाए, जिसमें locale-aware रूटिंग, TypeScript समर्थन, और आधुनिक विकास प्रथाएँ शामिल हैं।
27
26
 
28
27
  ## Intlayer क्या है?
29
28
 
@@ -31,11 +30,11 @@ author: AydinTheFirst
31
30
 
32
31
  Intlayer के साथ, आप कर सकते हैं:
33
32
 
34
- - **घोषणात्मक शब्दकोशों का उपयोग करके अनुवादों का आसानी से प्रबंधन करें** जो कि कंपोनेंट स्तर पर होते हैं।
33
+ - **घोषणात्मक शब्दकोशों का उपयोग करके अनुवादों का आसानी से प्रबंधन करें** जो कंपोनेंट स्तर पर होते हैं।
35
34
  - **मेटाडेटा, रूट्स, और सामग्री को गतिशील रूप से स्थानीयकृत करें**।
36
- - **स्वचालित रूप से उत्पन्न प्रकारों के साथ TypeScript समर्थन सुनिश्चित करें**, जिससे ऑटो-कम्प्लीशन और त्रुटि पहचान में सुधार होता है।
35
+ - **TypeScript समर्थन सुनिश्चित करें** autogenerated टाइप्स के साथ, जो ऑटोकम्प्लीशन और त्रुटि पहचान में सुधार करता है।
37
36
  - **उन्नत सुविधाओं का लाभ उठाएं**, जैसे गतिशील locale पहचान और स्विचिंग।
38
- - **React Router v7 के कॉन्फ़िगरेशन-आधारित रूटिंग सिस्टम के साथ locale-सचेत रूटिंग सक्षम करें**।
37
+ - **React Router v7 के कॉन्फ़िगरेशन-आधारित रूटिंग सिस्टम के साथ locale-aware रूटिंग सक्षम करें**।
39
38
 
40
39
  ---
41
40
 
@@ -57,14 +56,13 @@ pnpm add vite-intlayer --save-dev
57
56
 
58
57
  - **intlayer**
59
58
 
60
- - **intlayer**
61
-
59
+ - **intlayer**
62
60
  मुख्य पैकेज जो कॉन्फ़िगरेशन प्रबंधन, अनुवाद, [सामग्री घोषणा](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/dictionary/get_started.md), ट्रांसपाइलेशन, और [CLI कमांड्स](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/intlayer_cli.md) के लिए अंतरराष्ट्रीयकरण उपकरण प्रदान करता है।
63
61
 
64
- - **react-intlayer**
62
+ - **react-intlayer**
65
63
  वह पैकेज जो Intlayer को React एप्लिकेशन के साथ एकीकृत करता है। यह React अंतरराष्ट्रीयकरण के लिए संदर्भ प्रदाता और हुक्स प्रदान करता है।
66
64
 
67
- - **vite-intlayer**
65
+ - **vite-intlayer**
68
66
  इसमें Vite प्लगइन शामिल है जो Intlayer को [Vite बंडलर](https://vite.dev/guide/why.html#why-bundle-for-production) के साथ एकीकृत करता है, साथ ही उपयोगकर्ता की पसंदीदा भाषा का पता लगाने, कुकीज़ प्रबंधित करने, और URL पुनर्निर्देशन को संभालने के लिए मिडलवेयर भी शामिल है।
69
67
 
70
68
  ### चरण 2: अपने प्रोजेक्ट का कॉन्फ़िगरेशन
@@ -77,10 +75,7 @@ import { type IntlayerConfig, Locales } from "intlayer";
77
75
  const config: IntlayerConfig = {
78
76
  internationalization: {
79
77
  defaultLocale: Locales.ENGLISH,
80
- locales: [Locales.ENGLISH, Locales.TURKISH],
81
- },
82
- middleware: {
83
- prefixDefault: true, // URLs में हमेशा डिफ़ॉल्ट भाषा को प्रीफिक्स करें
78
+ locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
84
79
  },
85
80
  };
86
81
 
@@ -94,10 +89,7 @@ import { Locales } from "intlayer";
94
89
  const config = {
95
90
  internationalization: {
96
91
  defaultLocale: Locales.ENGLISH,
97
- locales: [Locales.ENGLISH, Locales.TURKISH],
98
- },
99
- middleware: {
100
- prefixDefault: true,
92
+ locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
101
93
  },
102
94
  };
103
95
 
@@ -111,70 +103,65 @@ const { Locales } = require("intlayer");
111
103
  const config = {
112
104
  internationalization: {
113
105
  defaultLocale: Locales.ENGLISH,
114
- locales: [Locales.ENGLISH, Locales.TURKISH],
115
- },
116
- middleware: {
117
- prefixDefault: true, // URLs में हमेशा डिफ़ॉल्ट भाषा को प्रीफिक्स करें
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/hi/configuration.md) देखें।
125
-
126
- ### चरण 3: React Router v7 रूट्स कॉन्फ़िगर करें
113
+ > इस कॉन्फ़िगरेशन फ़ाइल के माध्यम से, आप स्थानीयकृत URL, मिडलवेयर पुनर्निर्देशन, कुकी नाम, आपकी सामग्री घोषणाओं का स्थान और एक्सटेंशन, कंसोल में Intlayer लॉग को अक्षम करना, और भी बहुत कुछ सेट कर सकते हैं। उपलब्ध सभी पैरामीटर की पूरी सूची के लिए, [कॉन्फ़िगरेशन दस्तावेज़](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/configuration.md) देखें।
127
114
 
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
- ```
141
-
142
- ### चरण 4: अपने Vite कॉन्फ़िगरेशन में Intlayer को एकीकृत करें
115
+ ### चरण 3: अपने Vite कॉन्फ़िगरेशन में Intlayer को एकीकृत करें
143
116
 
144
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
- > `intlayer()` Vite प्लगइन का उपयोग Intlayer को Vite के साथ एकीकृत करने के लिए किया जाता है। यह कंटेंट घोषणा फ़ाइलों के निर्माण को सुनिश्चित करता है और विकास मोड में उनकी निगरानी करता है। यह Vite एप्लिकेशन के भीतर Intlayer पर्यावरण चर को परिभाषित करता है। इसके अतिरिक्त, यह प्रदर्शन को अनुकूलित करने के लिए उपनाम प्रदान करता है।
130
+ > `intlayer()` Vite प्लगइन का उपयोग Intlayer को Vite के साथ एकीकृत करने के लिए किया जाता है। यह सामग्री घोषणा फ़ाइलों के निर्माण को सुनिश्चित करता है और विकास मोड में उनकी निगरानी करता है। यह Vite एप्लिकेशन के भीतर Intlayer पर्यावरण चर को परिभाषित करता है। इसके अतिरिक्त, यह प्रदर्शन को अनुकूलित करने के लिए उपनाम प्रदान करता है।
131
+
132
+ ### चरण 4: React Router v7 रूट्स कॉन्फ़िगर करें
133
+
134
+ अपने रूटिंग कॉन्फ़िगरेशन को स्थानीय-जानकारी वाले रूट्स के साथ सेट करें:
135
+
136
+ ```typescript fileName="app/routes.ts"
137
+ typescript;
138
+ import { layout, route, type RouteConfig } from "@react-router/dev/routes";
139
+
140
+ export default [
141
+ layout("routes/layout.tsx", [
142
+ route("/:lang?", "routes/page.tsx"), // स्थानीयकृत होम पेज
143
+ route("/:lang?/about", "routes/about/page.tsx"), // स्थानीयकृत अबाउट पेज
144
+ ]),
145
+ ] satisfies RouteConfig;
146
+ ```
163
147
 
164
- ### चरण 5: लेआउट कॉम्पोनेंट बनाएं
148
+ ### चरण 5: लेआउट कंपोनेंट बनाएं
165
149
 
166
150
  अपने रूट लेआउट और स्थानीय-विशिष्ट लेआउट सेट करें:
167
151
 
168
152
  #### रूट लेआउट
169
153
 
170
- ```tsx fileName="app/routes/layout.tsx" codeFormat="typescript"
171
- // app/routes/layout.tsx
172
- import { Outlet } from "react-router";
154
+ ```tsx fileName="app/routes/layout.tsx"
173
155
  import { IntlayerProvider } from "react-intlayer";
156
+ import { Outlet } from "react-router";
157
+
158
+ import type { Route } from "./+types/layout";
159
+
160
+ export default function RootLayout({ params }: Route.ComponentProps) {
161
+ const { locale } = params;
174
162
 
175
- export default function RootLayout() {
176
163
  return (
177
- <IntlayerProvider>
164
+ <IntlayerProvider locale={locale}>
178
165
  <Outlet />
179
166
  </IntlayerProvider>
180
167
  );
@@ -183,9 +170,9 @@ export default function RootLayout() {
183
170
 
184
171
  ### चरण 6: अपनी सामग्री घोषित करें
185
172
 
186
- अपने अनुवादों को संग्रहीत करने के लिए अपनी सामग्री घोषणाएँ बनाएं और प्रबंधित करें:
173
+ अपनी अनुवादों को संग्रहीत करने के लिए अपनी सामग्री घोषणाएँ बनाएं और प्रबंधित करें:
187
174
 
188
- ```tsx fileName="app/routes/[lang]/page.content.ts" contentDeclarationFormat="typescript"
175
+ ```tsx fileName="app/routes/[lang]/page.content.ts"
189
176
  import { t, type Dictionary } from "intlayer";
190
177
 
191
178
  const pageContent = {
@@ -193,19 +180,23 @@ const pageContent = {
193
180
  content: {
194
181
  title: t({
195
182
  en: "Welcome to React Router v7 + Intlayer",
196
- tr: "React Router v7 + Intlayer'a Hoş Geldiniz",
183
+ es: "Bienvenido a React Router v7 + Intlayer",
184
+ fr: "Bienvenue sur React Router v7 + Intlayer",
197
185
  }),
198
186
  description: t({
199
187
  en: "Build multilingual applications with ease using React Router v7 and Intlayer.",
200
- tr: "React Router v7 ve Intlayer kullanarak kolayca çok dilli uygulamalar geliştirin.",
188
+ es: "Cree aplicaciones multilingües fácilmente usando React Router v7 y Intlayer.",
189
+ fr: "Créez des applications multilingues facilement avec React Router v7 et Intlayer.",
201
190
  }),
202
191
  aboutLink: t({
203
192
  en: "हमारे बारे में जानें",
204
- tr: "Hakkımızda Öğrenin",
193
+ es: "Aprender Sobre Nosotros",
194
+ fr: "En savoir plus sur nous",
205
195
  }),
206
196
  homeLink: t({
207
197
  en: "होम",
208
- tr: "Ana Sayfa",
198
+ es: "Inicio",
199
+ fr: "Accueil",
209
200
  }),
210
201
  },
211
202
  } satisfies Dictionary;
@@ -217,159 +208,162 @@ export default pageContent;
217
208
 
218
209
  > अधिक विवरण के लिए, [सामग्री घोषणा प्रलेखन](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/dictionary/get_started.md) देखें।
219
210
 
220
- ### चरण 7: लोकल-एवेयर कंपोनेंट बनाएं
211
+ ### चरण 7: स्थानीय-जानकारी वाले घटक बनाएँ
221
212
 
222
- `LocalizedLink` कंपोनेंट बनाएं जो स्थानीय-ज्ञान नेविगेशन के लिए हो:
223
-
224
- ```tsx fileName="app/components/localized-link.tsx" codeFormat="typescript"
225
- // app/components/localized-link.tsx
226
- import { getLocalizedUrl } from "intlayer";
227
- import { useLocale } from "react-intlayer";
228
- import React from "react";
229
- import { Link, useLocation } from "react-router";
213
+ स्थानीय-जानकारी वाले नेविगेशन के लिए `LocalizedLink` घटक बनाएँ:
230
214
 
231
- type RouterLinkProps = React.ComponentProps<typeof Link>;
215
+ ```tsx fileName="app/components/localized-link.tsx"
216
+ import type { FC } from "react";
232
217
 
233
- export default function LocalizedLink({ to, ...props }: RouterLinkProps) {
234
- const { locale } = useLocale(); // वर्तमान स्थानीय भाषा प्राप्त करें
235
- const location = useLocation(); // वर्तमान स्थान प्राप्त करें
218
+ import { getLocalizedUrl, type LocalesValues } from "intlayer";
219
+ import { useLocale } from "react-intlayer";
220
+ import { Link, type LinkProps, type To } from "react-router";
236
221
 
237
- const isExternal = (path: string) =>
238
- /^([a-z][a-z0-9+.-]*:)?\/\//i.test(path) || path.startsWith("mailto:"); // जांचें कि पथ बाहरी है या नहीं
222
+ // यह फ़ंक्शन जांचता है कि लिंक बाहरी है या नहीं
223
+ const isExternalLink = (to: string) => /^(https?:)?\/\//.test(to);
239
224
 
225
+ // यह फ़ंक्शन दिए गए पते को स्थानीयकृत URL में परिवर्तित करता है
226
+ export const locacalizeTo = (to: To, locale: LocalesValues): To => {
240
227
  if (typeof to === "string") {
241
- if (to.startsWith("/") && !isExternal(to)) {
242
- return <Link to={getLocalizedUrl(to, locale)} {...props} />;
228
+ if (isExternalLink(to)) {
229
+ return to;
243
230
  }
244
- return <Link to={to} {...props} />;
231
+
232
+ return getLocalizedUrl(to, locale);
245
233
  }
246
234
 
247
- if (to && typeof to === "object") {
248
- const pathname = (to as { pathname?: string }).pathname;
249
- if (pathname && pathname.startsWith("/") && !isExternal(pathname)) {
250
- return (
251
- <Link
252
- to={{ ...to, pathname: getLocalizedUrl(pathname, locale) }}
253
- {...props}
254
- />
255
- );
256
- }
257
- return <Link to={to} {...props} />;
235
+ if (isExternalLink(to.pathname ?? "")) {
236
+ return to;
258
237
  }
259
238
 
260
- return (
261
- <Link
262
- to={getLocalizedUrl(location.pathname + location.search, locale)}
263
- {...props}
264
- />
265
- );
266
- }
267
- ```
239
+ return {
240
+ ...to,
241
+ pathname: getLocalizedUrl(to.pathname ?? "", locale),
242
+ };
243
+ };
268
244
 
269
- ### चरण 8: अपने पृष्ठों में Intlayer का उपयोग करें
245
+ // यह स्थानीयकृत लिंक के लिए एक React functional component है
246
+ export const LocalizedLink: FC<LinkProps> = (props) => {
247
+ const { locale } = useLocale();
270
248
 
271
- अपने एप्लिकेशन में अपने कंटेंट डिक्शनरीज़ तक पहुँचें:
249
+ return <Link {...props} to={locacalizeTo(props.to, locale)} />;
250
+ };
251
+ ```
272
252
 
273
- #### रूट रीडायरेक्ट पेज
253
+ यदि आप स्थानीयकृत मार्गों पर नेविगेट करना चाहते हैं, तो आप `useLocalizedNavigate` हुक का उपयोग कर सकते हैं:
274
254
 
275
- ```tsx fileName="app/routes/page.tsx" codeFormat="typescript"
276
- // app/routes/page.tsx
277
- import { useLocale } from "react.intlayer";
278
- import { Navigate } from "react-router";
255
+ ```tsx fileName="app/hooks/useLocalizedNavigate.ts"
256
+ import { useLocale } from "intlayer";
257
+ import { type NavigateOptions, type To, useNavigate } from "react-router";
279
258
 
280
- export default function Page() {
259
+ import { locacalizeTo } from "~/components/localized-link";
260
+
261
+ export const useLocalizedNavigate = () => {
262
+ const navigate = useNavigate();
281
263
  const { locale } = useLocale();
282
264
 
283
- return <Navigate replace to={locale} />;
284
- }
265
+ const localizedNavigate = (to: To, options?: NavigateOptions) => {
266
+ const localedTo = locacalizeTo(to, locale);
267
+
268
+ navigate(localedTo, options);
269
+ };
270
+
271
+ return localizedNavigate;
272
+ };
285
273
  ```
286
274
 
275
+ ### चरण 8: अपने पृष्ठों में Intlayer का उपयोग करें
276
+
277
+ अपने एप्लिकेशन में अपने कंटेंट डिक्शनरीज़ तक पहुँचें:
278
+
287
279
  #### स्थानीयकृत होम पेज
288
280
 
289
- ```tsx fileName="app/routes/[lang]/page.tsx" codeFormat="typescript"
290
- import { useIntlayer } from "react.intlayer";
291
- import LocalizedLink from "~/components/localized-link";
281
+ ```tsx fileName="app/routes/[lang]/page.tsx"
282
+ import { useIntlayer } from "react-intlayer";
283
+ import { LocalizedLink } from "~/components/localized-link";
292
284
 
293
285
  export default function Page() {
294
- const content = useIntlayer("page");
286
+ const { title, description, aboutLink } = useIntlayer("page");
295
287
 
296
288
  return (
297
- <div style={{ padding: "2rem", textAlign: "center" }}>
298
- <h1>{content.title}</h1>
299
- <p>{content.description}</p>
300
- <nav style={{ marginTop: "2rem" }}>
301
- <LocalizedLink
302
- to="/about"
303
- style={{
304
- display: "inline-block",
305
- padding: "0.5rem 1rem",
306
- backgroundColor: "#007bff",
307
- color: "white",
308
- textDecoration: "none",
309
- borderRadius: "4px",
310
- }}
311
- >
312
- {content.aboutLink}
313
- </LocalizedLink>
289
+ <div>
290
+ <h1>{title}</h1>
291
+ <p>{description}</p>
292
+ <nav>
293
+ <LocalizedLink to="/about">{aboutLink}</LocalizedLink>
314
294
  </nav>
315
295
  </div>
316
296
  );
317
297
  }
318
298
  ```
319
299
 
320
- > `useIntlayer` हुक के बारे में अधिक जानने के लिए, [दस्तावेज़](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/packages/react-intlayer/useIntlayer.md) देखें।
300
+ > `useIntlayer` हुक के बारे में अधिक जानने के लिए, [डॉक्यूमेंटेशन](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/packages/react-intlayer/useIntlayer.md) देखें।
321
301
 
322
- ### चरण 9: एक लोकल स्विचर कॉम्पोनेंट बनाएं
302
+ ### चरण 9: एक लोकल स्विचर कंपोनेंट बनाएं
323
303
 
324
304
  उपयोगकर्ताओं को भाषाएँ बदलने की अनुमति देने के लिए एक कॉम्पोनेंट बनाएं:
325
305
 
326
- ```tsx fileName="app/components/locale-switcher.tsx" codeFormat="typescript"
327
- import { getLocalizedUrl, getLocaleName } from "intlayer";
328
- import { useLocale } from "react-intlayer";
329
- import { useLocation, useNavigate } from "react-router";
306
+ ```tsx fileName="app/components/locale-switcher.tsx"
307
+ import type { FC } from "react";
330
308
 
331
- export default function LocaleSwitcher() {
332
- const { locale, availableLocales, setLocale } = useLocale();
333
- const location = useLocation();
334
- const navigate = useNavigate();
309
+ import {
310
+ getHTMLTextDir,
311
+ getLocaleName,
312
+ getLocalizedUrl,
313
+ getPathWithoutLocale,
314
+ } from "intlayer";
315
+ import { setLocaleCookie, useIntlayer, useLocale } from "react-intlayer";
316
+ import { Link, useLocation } from "react-router";
335
317
 
336
- const handleLocaleChange = (newLocale: string) => {
337
- const localizedUrl = getLocalizedUrl(
338
- location.pathname + location.search,
339
- newLocale
340
- );
341
- setLocale(newLocale);
342
- navigate(localizedUrl);
343
- };
318
+ export const LocaleSwitcher: FC = () => {
319
+ const { localeSwitcherLabel } = useIntlayer("locale-switcher");
320
+ const { pathname } = useLocation();
321
+
322
+ const { availableLocales, locale } = useLocale();
323
+
324
+ const pathWithoutLocale = getPathWithoutLocale(pathname);
344
325
 
345
326
  return (
346
- <div style={{ margin: "1rem 0" }}>
347
- <label htmlFor="locale-select">भाषा चुनें: </label>
348
- <select
349
- id="locale-select"
350
- value={locale}
351
- onChange={(e) => handleLocaleChange(e.target.value)}
352
- style={{ padding: "0.25rem", marginLeft: "0.5rem" }}
353
- >
354
- {availableLocales.map((availableLocale) => (
355
- <option key={availableLocale} value={availableLocale}>
356
- {getLocaleName(availableLocale)}
357
- </option>
358
- ))}
359
- </select>
360
- </div>
327
+ <ol>
328
+ {availableLocales.map((localeItem) => (
329
+ <li key={localeItem}>
330
+ <Link
331
+ aria-current={localeItem === locale ? "page" : undefined}
332
+ aria-label={`${localeSwitcherLabel.value} ${getLocaleName(localeItem)}`}
333
+ onClick={() => setLocaleCookie(localeItem)}
334
+ to={getLocalizedUrl(pathWithoutLocale, localeItem)}
335
+ >
336
+ <span>
337
+ {/* लोकल - उदाहरण के लिए FR */}
338
+ {localeItem}
339
+ </span>
340
+ <span>
341
+ {/* अपनी लोकल में भाषा - उदाहरण के लिए Français */}
342
+ {getLocaleName(localeItem, locale)}
343
+ </span>
344
+ <span dir={getHTMLTextDir(localeItem)} lang={localeItem}>
345
+ {/* वर्तमान लोकल में भाषा - उदाहरण के लिए Francés जब वर्तमान लोकल Locales.SPANISH सेट हो */}
346
+ {getLocaleName(localeItem)}
347
+ </span>
348
+ <span dir="ltr" lang={Locales.ENGLISH}>
349
+ {/* अंग्रेज़ी में भाषा - उदाहरण के लिए French */}
350
+ {getLocaleName(localeItem, Locales.ENGLISH)}
351
+ </span>
352
+ </Link>
353
+ </li>
354
+ ))}
355
+ </ol>
361
356
  );
362
- }
357
+ };
363
358
  ```
364
359
 
365
- > `useLocale` हुक के बारे में अधिक जानने के लिए, [दस्तावेज़](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/packages/react-intlayer/useLocale.md) देखें।
360
+ > `useLocale` हुक के बारे में अधिक जानने के लिए, कृपया [दस्तावेज़](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/packages/react-intlayer/useLocale.md) देखें।
366
361
 
367
362
  ### चरण 10: HTML एट्रिब्यूट्स प्रबंधन जोड़ें (वैकल्पिक)
368
363
 
369
364
  HTML lang और dir एट्रिब्यूट्स को प्रबंधित करने के लिए एक हुक बनाएं:
370
365
 
371
- ```tsx fileName="app/hooks/useI18nHTMLAttributes.tsx" codeFormat="typescript"
372
- // app/hooks/useI18nHTMLAttributes.tsx
366
+ ```tsx fileName="app/hooks/useI18nHTMLAttributes.tsx"
373
367
  import { getHTMLTextDir } from "intlayer";
374
368
  import { useEffect } from "react";
375
369
  import { useLocale } from "react-intlayer";
@@ -386,8 +380,7 @@ export const useI18nHTMLAttributes = () => {
386
380
 
387
381
  फिर इसे अपने रूट कॉम्पोनेंट में उपयोग करें:
388
382
 
389
- ```tsx fileName="app/root.tsx" codeFormat="typescript"
390
- // app/routes/layout.tsx
383
+ ```tsx fileName="app/routes/layout.tsx"
391
384
  import { Outlet } from "react-router";
392
385
  import { IntlayerProvider } from "react-intlayer";
393
386
 
@@ -404,94 +397,56 @@ export default function RootLayout() {
404
397
  }
405
398
  ```
406
399
 
407
- ### चरण 11: अपना एप्लिकेशन बनाएं और चलाएं
408
-
409
- सामग्री शब्दकोश बनाएं और अपने एप्लिकेशन को चलाएं:
400
+ ### चरण 11: मिडलवेयर जोड़ें (वैकल्पिक)
410
401
 
411
- ```bash packageManager="npm"
412
- # Intlayer शब्दकोश बनाएं
413
- npm run intlayer:build
402
+ आप अपने एप्लिकेशन में सर्वर-साइड रूटिंग जोड़ने के लिए `intlayerMiddleware` का भी उपयोग कर सकते हैं। यह प्लगइन URL के आधार पर वर्तमान लोकल का स्वचालित रूप से पता लगाएगा और उपयुक्त लोकल कुकी सेट करेगा। यदि कोई लोकल निर्दिष्ट नहीं है, तो प्लगइन उपयोगकर्ता के ब्राउज़र भाषा प्राथमिकताओं के आधार पर सबसे उपयुक्त लोकल निर्धारित करेगा। यदि कोई लोकल पता नहीं चलता है, तो यह डिफ़ॉल्ट लोकल पर पुनः निर्देशित करेगा।
414
403
 
415
- # विकास सर्वर शुरू करें
416
- npm run dev
417
- ```
404
+ > ध्यान दें कि उत्पादन में `intlayerMiddleware` का उपयोग करने के लिए, आपको `vite-intlayer` पैकेज को `devDependencies` से `dependencies` में स्विच करना होगा।
418
405
 
419
- ```bash packageManager="pnpm"
420
- # Intlayer शब्दकोश बनाएं
421
- pnpm intlayer:build
406
+ ```typescript {3,7} fileName="vite.config.ts"
407
+ import { defineConfig } from "vite";
408
+ import react from "@vitejs/plugin-react-swc";
409
+ import { intlayer, intlayerMiddleware } from "vite-intlayer";
422
410
 
423
- # विकास सर्वर शुरू करें
424
- pnpm dev
411
+ // https://vitejs.dev/config/
412
+ export default defineConfig({
413
+ plugins: [react(), intlayer(), intlayerMiddleware()],
414
+ });
425
415
  ```
426
416
 
427
- ```bash packageManager="yarn"
428
- # Intlayer शब्दकोश बनाएं
429
- yarn intlayer:build
430
-
431
- # विकास सर्वर शुरू करें
432
- yarn dev
433
- ```
417
+ ---
434
418
 
435
- ### चरण 12: TypeScript कॉन्फ़िगर करें (वैकल्पिक)
419
+ ## टाइपस्क्रिप्ट कॉन्फ़िगर करें
436
420
 
437
- Intlayer TypeScript के लाभ प्राप्त करने और आपके कोडबेस को मजबूत बनाने के लिए मॉड्यूल ऑगमेंटेशन का उपयोग करता है।
421
+ Intlayer टाइपस्क्रिप्ट के लाभ प्राप्त करने और आपके कोडबेस को मजबूत बनाने के लिए मॉड्यूल ऑगमेंटेशन का उपयोग करता है।
438
422
 
439
- सुनिश्चित करें कि आपकी TypeScript कॉन्फ़िगरेशन में स्वचालित रूप से जनरेट किए गए प्रकार शामिल हैं:
423
+ सुनिश्चित करें कि आपकी टाइपस्क्रिप्ट कॉन्फ़िगरेशन में स्वचालित रूप से उत्पन्न प्रकार शामिल हैं:
440
424
 
441
425
  ```json5 fileName="tsconfig.json"
442
426
  {
443
- compilerOptions: {
444
- // ... आपकी मौजूदा TypeScript कॉन्फ़िगरेशन
445
- },
427
+ // ... आपके मौजूदा कॉन्फ़िगरेशन
446
428
  include: [
447
- // ... your existing includes
448
- ".intlayer/**/*.ts", // ऑटो-जनरेटेड टाइप्स शामिल करें
429
+ // ... आपके मौजूदा शामिल
430
+ ".intlayer/**/*.ts", // स्वचालित रूप से उत्पन्न प्रकार शामिल करें
449
431
  ],
450
432
  }
451
433
  ```
452
434
 
453
- ### गिट कॉन्फ़िगरेशन
435
+ ---
436
+
437
+ ## गिट कॉन्फ़िगरेशन
454
438
 
455
- यह अनुशंसित है कि Intlayer द्वारा जनरेट की गई फाइलों को अनदेखा किया जाए। इससे आप उन्हें अपनी Git रिपॉजिटरी में कमिट करने से बच सकते हैं।
439
+ यह अनुशंसित है कि Intlayer द्वारा उत्पन्न फ़ाइलों को अनदेखा किया जाए। इससे आप उन्हें अपने गिट रिपॉजिटरी में कमिट करने से बच सकते हैं।
456
440
 
457
- इसके लिए, आप अपनी `.gitignore` फाइल में निम्नलिखित निर्देश जोड़ सकते हैं:
441
+ ऐसा करने के लिए, आप अपनी `.gitignore` फ़ाइल में निम्नलिखित निर्देश जोड़ सकते हैं:
458
442
 
459
443
  ```plaintext fileName=".gitignore"
460
- # Intlayer द्वारा जनरेट की गई फाइलों को अनदेखा करें
444
+ # Intlayer द्वारा उत्पन्न फ़ाइलों को अनदेखा करें
461
445
  .intlayer
462
446
  ```
463
447
 
464
448
  ---
465
449
 
466
- ## प्रोडक्शन डिप्लॉयमेंट
467
-
468
- जब आप अपना एप्लिकेशन डिप्लॉय करें:
469
-
470
- 1. **अपना एप्लिकेशन बनाएं:**
471
-
472
- ```bash
473
- npm run build
474
- ```
475
-
476
- 2. **Intlayer शब्दकोश बनाएं:**
477
-
478
- ```bash
479
- npm run intlayer:build
480
- ```
481
-
482
- 3. **यदि प्रोडक्शन में मिडलवेयर का उपयोग कर रहे हैं तो `vite-intlayer` को dependencies में जोड़ें:**
483
- ```bash
484
- npm install vite-intlayer --save
485
- ```
486
-
487
- आपका एप्लिकेशन अब निम्नलिखित का समर्थन करेगा:
488
-
489
- - **URL संरचना**: `/en`, `/en/about`, `/tr`, `/tr/about`
490
- - ब्राउज़र प्राथमिकताओं के आधार पर **स्वचालित लोकल डिटेक्शन**
491
- - React Router v7 के साथ **लोकल-अवेयर राउटिंग**
492
- - ऑटो-जनरेटेड टाइप्स के साथ **TypeScript समर्थन**
493
- - उचित लोकल हैंडलिंग के साथ **सर्वर-साइड रेंडरिंग**
494
-
495
450
  ## VS कोड एक्सटेंशन
496
451
 
497
452
  Intlayer के साथ अपने विकास अनुभव को बेहतर बनाने के लिए, आप आधिकारिक **Intlayer VS कोड एक्सटेंशन** इंस्टॉल कर सकते हैं।
@@ -500,18 +455,18 @@ Intlayer के साथ अपने विकास अनुभव को
500
455
 
501
456
  यह एक्सटेंशन प्रदान करता है:
502
457
 
503
- - अनुवाद कुंजियों के लिए **ऑटोकंप्लीशन**
504
- - गायब अनुवादों के लिए **रियल-टाइम त्रुटि पहचान**
505
- - अनुवादित सामग्री के **इनलाइन पूर्वावलोकन**
506
- - **त्वरित क्रियाएं** जो अनुवादों को आसानी से बनाने और अपडेट करने में मदद करती हैं।
458
+ - अनुवाद कुंजियों के लिए **ऑटोकंप्लीशन**।
459
+ - गायब अनुवादों के लिए **रीयल-टाइम त्रुटि पहचान**।
460
+ - अनुवादित सामग्री के **इनलाइन पूर्वावलोकन**।
461
+ - अनुवादों को आसानी से बनाने और अपडेट करने के लिए **त्वरित क्रियाएँ**।
507
462
 
508
- एक्सटेंशन का उपयोग कैसे करें, इसके लिए अधिक जानकारी के लिए देखें [Intlayer VS कोड एक्सटेंशन दस्तावेज़](https://intlayer.org/doc/vs-code-extension)।
463
+ एक्सटेंशन का उपयोग कैसे करें, इसके लिए अधिक विवरण के लिए देखें [Intlayer VS कोड एक्सटेंशन दस्तावेज़](https://intlayer.org/doc/vs-code-extension)।
509
464
 
510
465
  ---
511
466
 
512
467
  ## आगे बढ़ें
513
468
 
514
- आगे बढ़ने के लिए, आप [विज़ुअल एडिटर](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/intlayer_visual_editor.md) को लागू कर सकते हैं या अपनी सामग्री को [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/intlayer_CMS.md) का उपयोग करके बाहरी कर सकते हैं।
469
+ आगे बढ़ने के लिए, आप [विज़ुअल एडिटर](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/intlayer_visual_editor.md) को लागू कर सकते हैं या अपनी सामग्री को [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/intlayer_CMS.md) का उपयोग करके बाहरी रूप से प्रबंधित कर सकते हैं।
515
470
 
516
471
  ---
517
472
 
@@ -520,14 +475,15 @@ Intlayer के साथ अपने विकास अनुभव को
520
475
  - [Intlayer दस्तावेज़](https://intlayer.org)
521
476
  - [React Router v7 दस्तावेज़](https://reactrouter.com/)
522
477
  - [useIntlayer हुक](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/packages/react-intlayer/useIntlayer.md)
523
- - [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/packages/react-intlayer/useLocale.md)
478
+ - [useLocale हुक](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/packages/react-intlayer/useLocale.md)
524
479
  - [सामग्री घोषणा](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/dictionary/get_started.md)
525
480
  - [कॉन्फ़िगरेशन](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/configuration.md)
526
481
 
527
- यह व्यापक मार्गदर्शिका आपको Intlayer को React Router v7 के साथ पूरी तरह से अंतरराष्ट्रीयकृत एप्लिकेशन के लिए एकीकृत करने में आवश्यक सभी जानकारी प्रदान करती है, जिसमें स्थानीय-जानकारी वाले रूटिंग और TypeScript समर्थन शामिल हैं।
482
+ यह व्यापक मार्गदर्शिका आपको Intlayer को React Router v7 के साथ पूरी तरह से अंतरराष्ट्रीयकृत एप्लिकेशन के लिए एकीकृत करने के लिए आवश्यक सभी जानकारी प्रदान करती है, जिसमें स्थानीय-जानकारी वाले रूटिंग और TypeScript समर्थन शामिल हैं।
528
483
 
529
484
  ## दस्तावेज़ इतिहास
530
485
 
531
- | संस्करण | तिथि | परिवर्तन |
532
- | ------- | --------- | -------------------------------- |
533
- | 5.8.2 | 2025-09-4 | React Router v7 के लिए जोड़ा गया |
486
+ | संस्करण | तिथि | परिवर्तन |
487
+ | ------- | ---------- | ---------------------------- |
488
+ | 6.1.5 | 2025-10-03 | दस्तावेज़ अपडेट किया गया |
489
+ | 5.8.2 | 2025-09-04 | React Router v7 के लिए जोड़ा |