@intlayer/docs 5.5.8

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 (1135) hide show
  1. package/LICENSE +202 -0
  2. package/ar/CI_CD.md +149 -0
  3. package/ar/autoFill.md +157 -0
  4. package/ar/concept/content/file.md +1 -0
  5. package/ar/configuration.md +492 -0
  6. package/ar/dictionary/condition.md +213 -0
  7. package/ar/dictionary/content_extention_customization.md +81 -0
  8. package/ar/dictionary/enumeration.md +221 -0
  9. package/ar/dictionary/file.md +209 -0
  10. package/ar/dictionary/function_fetching.md +190 -0
  11. package/ar/dictionary/get_started.md +490 -0
  12. package/ar/dictionary/insertion.md +161 -0
  13. package/ar/dictionary/markdown.md +343 -0
  14. package/ar/dictionary/nesting.md +249 -0
  15. package/ar/dictionary/translation.md +307 -0
  16. package/ar/header.md +7 -0
  17. package/ar/how_works_intlayer.md +219 -0
  18. package/ar/index.md +125 -0
  19. package/ar/interest_of_intlayer.md +132 -0
  20. package/ar/intlayer_CMS.md +328 -0
  21. package/ar/intlayer_cli.md +258 -0
  22. package/ar/intlayer_visual_editor.md +210 -0
  23. package/ar/intlayer_with_angular.md +3 -0
  24. package/ar/intlayer_with_create_react_app.md +1196 -0
  25. package/ar/intlayer_with_express.md +270 -0
  26. package/ar/intlayer_with_lynx+react.md +482 -0
  27. package/ar/intlayer_with_nextjs_14.md +1260 -0
  28. package/ar/intlayer_with_nextjs_15.md +1311 -0
  29. package/ar/intlayer_with_nextjs_page_router.md +1099 -0
  30. package/ar/intlayer_with_react_native+expo.md +539 -0
  31. package/ar/intlayer_with_vite+preact.md +1679 -0
  32. package/ar/intlayer_with_vite+react.md +1582 -0
  33. package/ar/intlayer_with_vite+solid.md +3 -0
  34. package/ar/intlayer_with_vite+svelte.md +3 -0
  35. package/ar/intlayer_with_vite+vue.md +989 -0
  36. package/ar/introduction.md +190 -0
  37. package/ar/mcp_server.md +150 -0
  38. package/ar/packages/@intlayer/api/index.md +31 -0
  39. package/ar/packages/@intlayer/chokidar/index.md +31 -0
  40. package/ar/packages/@intlayer/cli/index.md +1 -0
  41. package/ar/packages/@intlayer/config/index.md +116 -0
  42. package/ar/packages/@intlayer/core/index.md +25 -0
  43. package/ar/packages/@intlayer/design-system/index.md +21 -0
  44. package/ar/packages/@intlayer/dictionary-entry/index.md +21 -0
  45. package/ar/packages/@intlayer/editor/index.md +21 -0
  46. package/ar/packages/@intlayer/editor-react/index.md +21 -0
  47. package/ar/packages/@intlayer/webpack/index.md +35 -0
  48. package/ar/packages/angular-intlayer/index.md +3 -0
  49. package/ar/packages/express-intlayer/index.md +232 -0
  50. package/ar/packages/express-intlayer/t.md +448 -0
  51. package/ar/packages/intlayer/getConfiguration.md +120 -0
  52. package/ar/packages/intlayer/getEnumeration.md +138 -0
  53. package/ar/packages/intlayer/getHTMLTextDir.md +97 -0
  54. package/ar/packages/intlayer/getLocaleLang.md +61 -0
  55. package/ar/packages/intlayer/getLocaleName.md +93 -0
  56. package/ar/packages/intlayer/getLocalizedUrl.md +221 -0
  57. package/ar/packages/intlayer/getMultilingualUrls.md +198 -0
  58. package/ar/packages/intlayer/getPathWithoutLocale.md +50 -0
  59. package/ar/packages/intlayer/getTranslation.md +175 -0
  60. package/ar/packages/intlayer/getTranslationContent.md +175 -0
  61. package/ar/packages/intlayer/index.md +254 -0
  62. package/ar/packages/intlayer-cli/index.md +41 -0
  63. package/ar/packages/intlayer-editor/index.md +113 -0
  64. package/ar/packages/lynx-intlayer/index.md +58 -0
  65. package/ar/packages/next-intlayer/index.md +267 -0
  66. package/ar/packages/next-intlayer/t.md +341 -0
  67. package/ar/packages/next-intlayer/useDictionary.md +248 -0
  68. package/ar/packages/next-intlayer/useIntlayer.md +237 -0
  69. package/ar/packages/next-intlayer/useIntlayerAsync.md +211 -0
  70. package/ar/packages/next-intlayer/useLocale.md +105 -0
  71. package/ar/packages/preact-intlayer/index.md +3 -0
  72. package/ar/packages/react-intlayer/index.md +261 -0
  73. package/ar/packages/react-intlayer/t.md +283 -0
  74. package/ar/packages/react-intlayer/useDictionary.md +268 -0
  75. package/ar/packages/react-intlayer/useIntlayer.md +225 -0
  76. package/ar/packages/react-intlayer/useIntlayerAsync.md +226 -0
  77. package/ar/packages/react-intlayer/useLocale.md +184 -0
  78. package/ar/packages/react-native-intlayer/index.md +57 -0
  79. package/ar/packages/react-scripts-intlayer/index.md +57 -0
  80. package/ar/packages/solid-intlayer/index.md +3 -0
  81. package/ar/packages/svelte-intlayer/index.md +3 -0
  82. package/ar/packages/vite-intlayer/index.md +53 -0
  83. package/ar/packages/vue-intlayer/index.md +3 -0
  84. package/ar/per_locale_file.md +298 -0
  85. package/ar/privacy_notice.md +61 -0
  86. package/ar/roadmap.md +208 -0
  87. package/ar/terms_of_service.md +33 -0
  88. package/ar/vs_code_extension.md +139 -0
  89. package/de/CI_CD.md +149 -0
  90. package/de/angular-intlayer/index.md +3 -0
  91. package/de/autoFill.md +157 -0
  92. package/de/configuration.md +501 -0
  93. package/de/dictionary/condition.md +213 -0
  94. package/de/dictionary/content_extention_customization.md +81 -0
  95. package/de/dictionary/enumeration.md +221 -0
  96. package/de/dictionary/file.md +207 -0
  97. package/de/dictionary/function_fetching.md +190 -0
  98. package/de/dictionary/get_started.md +466 -0
  99. package/de/dictionary/insertion.md +167 -0
  100. package/de/dictionary/markdown.md +345 -0
  101. package/de/dictionary/nesting.md +252 -0
  102. package/de/dictionary/translation.md +287 -0
  103. package/de/header.md +5 -0
  104. package/de/how_works_intlayer.md +216 -0
  105. package/de/index.md +125 -0
  106. package/de/insertion.md +0 -0
  107. package/de/interest_of_intlayer.md +132 -0
  108. package/de/intlayer_CMS.md +334 -0
  109. package/de/intlayer_cli.md +274 -0
  110. package/de/intlayer_visual_editor.md +210 -0
  111. package/de/intlayer_with_angular.md +3 -0
  112. package/de/intlayer_with_create_react_app.md +1200 -0
  113. package/de/intlayer_with_express.md +268 -0
  114. package/de/intlayer_with_lynx+react.md +482 -0
  115. package/de/intlayer_with_nextjs_14.md +1258 -0
  116. package/de/intlayer_with_nextjs_15.md +1306 -0
  117. package/de/intlayer_with_nextjs_page_router.md +1087 -0
  118. package/de/intlayer_with_react_native+expo.md +539 -0
  119. package/de/intlayer_with_vite+preact.md +1701 -0
  120. package/de/intlayer_with_vite+react.md +1584 -0
  121. package/de/intlayer_with_vite+solid.md +3 -0
  122. package/de/intlayer_with_vite+svelte.md +3 -0
  123. package/de/intlayer_with_vite+vue.md +989 -0
  124. package/de/introduction.md +186 -0
  125. package/de/mcp_server.md +150 -0
  126. package/de/packages/@intlayer/api/index.md +31 -0
  127. package/de/packages/@intlayer/chokidar/index.md +31 -0
  128. package/de/packages/@intlayer/cli/index.md +21 -0
  129. package/de/packages/@intlayer/config/index.md +116 -0
  130. package/de/packages/@intlayer/core/index.md +25 -0
  131. package/de/packages/@intlayer/design-system/index.md +21 -0
  132. package/de/packages/@intlayer/dictionary-entry/index.md +21 -0
  133. package/de/packages/@intlayer/editor/index.md +21 -0
  134. package/de/packages/@intlayer/editor-react/index.md +21 -0
  135. package/de/packages/@intlayer/webpack/index.md +35 -0
  136. package/de/packages/angular-intlayer/index.md +31 -0
  137. package/de/packages/express-intlayer/index.md +229 -0
  138. package/de/packages/express-intlayer/t.md +432 -0
  139. package/de/packages/intlayer/getConfiguration.md +120 -0
  140. package/de/packages/intlayer/getEnumeration.md +140 -0
  141. package/de/packages/intlayer/getHTMLTextDir.md +97 -0
  142. package/de/packages/intlayer/getLocaleLang.md +57 -0
  143. package/de/packages/intlayer/getLocaleName.md +93 -0
  144. package/de/packages/intlayer/getLocalizedUrl.md +221 -0
  145. package/de/packages/intlayer/getMultilingualUrls.md +198 -0
  146. package/de/packages/intlayer/getPathWithoutLocale.md +50 -0
  147. package/de/packages/intlayer/getTranslation.md +166 -0
  148. package/de/packages/intlayer/getTranslationContent.md +166 -0
  149. package/de/packages/intlayer/index.md +478 -0
  150. package/de/packages/intlayer-cli/index.md +41 -0
  151. package/de/packages/intlayer-editor/index.md +113 -0
  152. package/de/packages/lynx-intlayer/index.md +58 -0
  153. package/de/packages/next-intlayer/index.md +263 -0
  154. package/de/packages/next-intlayer/t.md +325 -0
  155. package/de/packages/next-intlayer/useDictionary.md +242 -0
  156. package/de/packages/next-intlayer/useIntlayer.md +237 -0
  157. package/de/packages/next-intlayer/useIntlayerAsync.md +211 -0
  158. package/de/packages/next-intlayer/useLocale.md +105 -0
  159. package/de/packages/preact-intlayer/index.md +3 -0
  160. package/de/packages/react-intlayer/index.md +260 -0
  161. package/de/packages/react-intlayer/t.md +277 -0
  162. package/de/packages/react-intlayer/useDictionary.md +260 -0
  163. package/de/packages/react-intlayer/useIntlayer.md +225 -0
  164. package/de/packages/react-intlayer/useIntlayerAsync.md +226 -0
  165. package/de/packages/react-intlayer/useLocale.md +184 -0
  166. package/de/packages/react-native-intlayer/index.md +57 -0
  167. package/de/packages/react-scripts-intlayer/index.md +57 -0
  168. package/de/packages/solid-intlayer/index.md +3 -0
  169. package/de/packages/svelte-intlayer/index.md +3 -0
  170. package/de/packages/vite-intlayer/index.md +53 -0
  171. package/de/packages/vue-intlayer/index.md +3 -0
  172. package/de/per_locale_file.md +298 -0
  173. package/de/privacy_notice.md +61 -0
  174. package/de/roadmap.md +206 -0
  175. package/de/terms_of_service.md +33 -0
  176. package/de/vs_code_extension.md +139 -0
  177. package/en/CI_CD.md +149 -0
  178. package/en/autoFill.md +157 -0
  179. package/en/configuration.md +506 -0
  180. package/en/dictionary/condition.md +213 -0
  181. package/en/dictionary/content_extention_customization.md +81 -0
  182. package/en/dictionary/enumeration.md +221 -0
  183. package/en/dictionary/file.md +198 -0
  184. package/en/dictionary/function_fetching.md +190 -0
  185. package/en/dictionary/get_started.md +504 -0
  186. package/en/dictionary/insertion.md +167 -0
  187. package/en/dictionary/markdown.md +355 -0
  188. package/en/dictionary/nesting.md +249 -0
  189. package/en/dictionary/translation.md +285 -0
  190. package/en/frequent_questions/build_dictionaries.md +37 -0
  191. package/en/frequent_questions/domain_routing.md +92 -0
  192. package/en/frequent_questions/esbuild_error.md +9 -0
  193. package/en/frequent_questions/get_locale_cookie.md +121 -0
  194. package/en/frequent_questions/intlayer_command_undefined.md +135 -0
  195. package/en/frequent_questions/locale_incorect_in_url.md +52 -0
  196. package/en/frequent_questions/static_rendering.md +24 -0
  197. package/en/frequent_questions/unknown_command.md +76 -0
  198. package/en/header.md +5 -0
  199. package/en/how_works_intlayer.md +219 -0
  200. package/en/index.md +139 -0
  201. package/en/interest_of_intlayer.md +133 -0
  202. package/en/intlayer_CMS.md +334 -0
  203. package/en/intlayer_cli.md +309 -0
  204. package/en/intlayer_visual_editor.md +244 -0
  205. package/en/intlayer_with_angular.md +139 -0
  206. package/en/intlayer_with_create_react_app.md +1209 -0
  207. package/en/intlayer_with_express.md +391 -0
  208. package/en/intlayer_with_lynx+react.md +483 -0
  209. package/en/intlayer_with_nextjs_14.md +1298 -0
  210. package/en/intlayer_with_nextjs_15.md +1347 -0
  211. package/en/intlayer_with_nextjs_page_router.md +1126 -0
  212. package/en/intlayer_with_react_native+expo.md +630 -0
  213. package/en/intlayer_with_vite+preact.md +1659 -0
  214. package/en/intlayer_with_vite+react.md +1605 -0
  215. package/en/intlayer_with_vite+solid.md +254 -0
  216. package/en/intlayer_with_vite+svelte.md +254 -0
  217. package/en/intlayer_with_vite+vue.md +1000 -0
  218. package/en/introduction.md +185 -0
  219. package/en/mcp_server.md +150 -0
  220. package/en/packages/@intlayer/api/index.md +31 -0
  221. package/en/packages/@intlayer/chokidar/index.md +31 -0
  222. package/en/packages/@intlayer/cli/index.md +21 -0
  223. package/en/packages/@intlayer/config/index.md +116 -0
  224. package/en/packages/@intlayer/core/index.md +25 -0
  225. package/en/packages/@intlayer/design-system/index.md +21 -0
  226. package/en/packages/@intlayer/dictionary-entry/index.md +21 -0
  227. package/en/packages/@intlayer/editor/index.md +21 -0
  228. package/en/packages/@intlayer/editor-react/index.md +21 -0
  229. package/en/packages/@intlayer/webpack/index.md +35 -0
  230. package/en/packages/angular-intlayer/index.md +31 -0
  231. package/en/packages/express-intlayer/index.md +229 -0
  232. package/en/packages/express-intlayer/t.md +432 -0
  233. package/en/packages/intlayer/getConfiguration.md +120 -0
  234. package/en/packages/intlayer/getEnumeration.md +138 -0
  235. package/en/packages/intlayer/getHTMLTextDir.md +97 -0
  236. package/en/packages/intlayer/getLocaleLang.md +57 -0
  237. package/en/packages/intlayer/getLocaleName.md +93 -0
  238. package/en/packages/intlayer/getLocalizedUrl.md +221 -0
  239. package/en/packages/intlayer/getMultilingualUrls.md +198 -0
  240. package/en/packages/intlayer/getPathWithoutLocale.md +50 -0
  241. package/en/packages/intlayer/getTranslation.md +166 -0
  242. package/en/packages/intlayer/getTranslationContent.md +166 -0
  243. package/en/packages/intlayer/index.md +476 -0
  244. package/en/packages/intlayer-cli/index.md +41 -0
  245. package/en/packages/intlayer-editor/index.md +113 -0
  246. package/en/packages/lynx-intlayer/index.md +60 -0
  247. package/en/packages/next-intlayer/index.md +263 -0
  248. package/en/packages/next-intlayer/t.md +326 -0
  249. package/en/packages/next-intlayer/useDictionary.md +242 -0
  250. package/en/packages/next-intlayer/useIntlayer.md +237 -0
  251. package/en/packages/next-intlayer/useIntlayerAsync.md +211 -0
  252. package/en/packages/next-intlayer/useLocale.md +105 -0
  253. package/en/packages/preact-intlayer/index.md +31 -0
  254. package/en/packages/react-intlayer/index.md +257 -0
  255. package/en/packages/react-intlayer/t.md +277 -0
  256. package/en/packages/react-intlayer/useDictionary.md +260 -0
  257. package/en/packages/react-intlayer/useIntlayer.md +225 -0
  258. package/en/packages/react-intlayer/useIntlayerAsync.md +226 -0
  259. package/en/packages/react-intlayer/useLocale.md +184 -0
  260. package/en/packages/react-native-intlayer/index.md +59 -0
  261. package/en/packages/react-scripts-intlayer/index.md +57 -0
  262. package/en/packages/solid-intlayer/index.md +31 -0
  263. package/en/packages/svelte-intlayer/index.md +31 -0
  264. package/en/packages/vite-intlayer/index.md +53 -0
  265. package/en/packages/vue-intlayer/index.md +31 -0
  266. package/en/per_locale_file.md +297 -0
  267. package/en/privacy_notice.md +61 -0
  268. package/en/roadmap.md +270 -0
  269. package/en/t.md +163 -0
  270. package/en/terms_of_service.md +33 -0
  271. package/en/vs_code_extension.md +129 -0
  272. package/en-GB/CI_CD.md +149 -0
  273. package/en-GB/autoFill.md +0 -0
  274. package/en-GB/configuration.md +490 -0
  275. package/en-GB/dictionary/condition.md +213 -0
  276. package/en-GB/dictionary/content_extention_customization.md +83 -0
  277. package/en-GB/dictionary/enumeration.md +221 -0
  278. package/en-GB/dictionary/file.md +201 -0
  279. package/en-GB/dictionary/function_fetching.md +190 -0
  280. package/en-GB/dictionary/get_started.md +466 -0
  281. package/en-GB/dictionary/insertion.md +167 -0
  282. package/en-GB/dictionary/markdown.md +343 -0
  283. package/en-GB/dictionary/nesting.md +249 -0
  284. package/en-GB/dictionary/translation.md +285 -0
  285. package/en-GB/header.md +1 -0
  286. package/en-GB/how_works_intlayer.md +217 -0
  287. package/en-GB/index.md +142 -0
  288. package/en-GB/interest_of_intlayer.md +123 -0
  289. package/en-GB/intlayer_CMS.md +334 -0
  290. package/en-GB/intlayer_cli.md +239 -0
  291. package/en-GB/intlayer_visual_editor.md +210 -0
  292. package/en-GB/intlayer_with_angular.md +3 -0
  293. package/en-GB/intlayer_with_create_react_app.md +1192 -0
  294. package/en-GB/intlayer_with_express.md +267 -0
  295. package/en-GB/intlayer_with_lynx+react.md +484 -0
  296. package/en-GB/intlayer_with_nextjs_14.md +1267 -0
  297. package/en-GB/intlayer_with_nextjs_15.md +1308 -0
  298. package/en-GB/intlayer_with_nextjs_page_router.md +1087 -0
  299. package/en-GB/intlayer_with_react_native+expo.md +539 -0
  300. package/en-GB/intlayer_with_vite+preact.md +1648 -0
  301. package/en-GB/intlayer_with_vite+react.md +1430 -0
  302. package/en-GB/intlayer_with_vite+solid.md +3 -0
  303. package/en-GB/intlayer_with_vite+svelte.md +3 -0
  304. package/en-GB/intlayer_with_vite+vue.md +993 -0
  305. package/en-GB/introduction.md +201 -0
  306. package/en-GB/mcp_server.md +150 -0
  307. package/en-GB/packages/@intlayer/api/index.md +31 -0
  308. package/en-GB/packages/@intlayer/chokidar/index.md +31 -0
  309. package/en-GB/packages/@intlayer/cli/index.md +21 -0
  310. package/en-GB/packages/@intlayer/config/index.md +116 -0
  311. package/en-GB/packages/@intlayer/core/index.md +25 -0
  312. package/en-GB/packages/@intlayer/design-system/index.md +21 -0
  313. package/en-GB/packages/@intlayer/dictionary-entry/index.md +21 -0
  314. package/en-GB/packages/@intlayer/editor/index.md +21 -0
  315. package/en-GB/packages/@intlayer/editor-react/index.md +21 -0
  316. package/en-GB/packages/@intlayer/webpack/index.md +35 -0
  317. package/en-GB/packages/angular-intlayer/index.md +3 -0
  318. package/en-GB/packages/express-intlayer/index.md +229 -0
  319. package/en-GB/packages/express-intlayer/t.md +432 -0
  320. package/en-GB/packages/intlayer/getConfiguration.md +120 -0
  321. package/en-GB/packages/intlayer/getEnumeration.md +140 -0
  322. package/en-GB/packages/intlayer/getHTMLTextDir.md +97 -0
  323. package/en-GB/packages/intlayer/getLocaleLang.md +57 -0
  324. package/en-GB/packages/intlayer/getLocaleName.md +93 -0
  325. package/en-GB/packages/intlayer/getLocalizedUrl.md +221 -0
  326. package/en-GB/packages/intlayer/getMultilingualUrls.md +198 -0
  327. package/en-GB/packages/intlayer/getPathWithoutLocale.md +50 -0
  328. package/en-GB/packages/intlayer/getTranslation.md +166 -0
  329. package/en-GB/packages/intlayer/getTranslationContent.md +166 -0
  330. package/en-GB/packages/intlayer/index.md +476 -0
  331. package/en-GB/packages/intlayer-cli/index.md +41 -0
  332. package/en-GB/packages/intlayer-editor/index.md +113 -0
  333. package/en-GB/packages/lynx-intlayer/index.md +58 -0
  334. package/en-GB/packages/next-intlayer/index.md +263 -0
  335. package/en-GB/packages/next-intlayer/t.md +326 -0
  336. package/en-GB/packages/next-intlayer/useDictionary.md +242 -0
  337. package/en-GB/packages/next-intlayer/useIntlayer.md +237 -0
  338. package/en-GB/packages/next-intlayer/useIntlayerAsync.md +211 -0
  339. package/en-GB/packages/next-intlayer/useLocale.md +105 -0
  340. package/en-GB/packages/preact-intlayer/index.md +3 -0
  341. package/en-GB/packages/react-intlayer/index.md +257 -0
  342. package/en-GB/packages/react-intlayer/t.md +277 -0
  343. package/en-GB/packages/react-intlayer/useDictionary.md +260 -0
  344. package/en-GB/packages/react-intlayer/useIntlayer.md +225 -0
  345. package/en-GB/packages/react-intlayer/useIntlayerAsync.md +226 -0
  346. package/en-GB/packages/react-intlayer/useLocale.md +184 -0
  347. package/en-GB/packages/react-native-intlayer/index.md +57 -0
  348. package/en-GB/packages/react-scripts-intlayer/index.md +57 -0
  349. package/en-GB/packages/solid-intlayer/index.md +3 -0
  350. package/en-GB/packages/svelte-intlayer/index.md +3 -0
  351. package/en-GB/packages/vite-intlayer/index.md +53 -0
  352. package/en-GB/packages/vue-intlayer/index.md +3 -0
  353. package/en-GB/per_locale_file.md +298 -0
  354. package/en-GB/privacy_notice.md +57 -0
  355. package/en-GB/roadmap.md +206 -0
  356. package/en-GB/terms_of_service.md +33 -0
  357. package/en-GB/vs_code_extension.md +139 -0
  358. package/es/CI_CD.md +149 -0
  359. package/es/autoFill.md +157 -0
  360. package/es/configuration.md +503 -0
  361. package/es/dictionary/condition.md +213 -0
  362. package/es/dictionary/content_extention_customization.md +81 -0
  363. package/es/dictionary/enumeration.md +221 -0
  364. package/es/dictionary/file.md +206 -0
  365. package/es/dictionary/function_fetching.md +190 -0
  366. package/es/dictionary/get_started.md +466 -0
  367. package/es/dictionary/insertion.md +161 -0
  368. package/es/dictionary/markdown.md +338 -0
  369. package/es/dictionary/nesting.md +249 -0
  370. package/es/dictionary/translation.md +287 -0
  371. package/es/header.md +5 -0
  372. package/es/how_works_intlayer.md +217 -0
  373. package/es/index.md +122 -0
  374. package/es/interest_of_intlayer.md +132 -0
  375. package/es/intlayer_CMS.md +334 -0
  376. package/es/intlayer_cli.md +274 -0
  377. package/es/intlayer_visual_editor.md +210 -0
  378. package/es/intlayer_with_angular.md +3 -0
  379. package/es/intlayer_with_create_react_app.md +1192 -0
  380. package/es/intlayer_with_express.md +276 -0
  381. package/es/intlayer_with_lynx+react.md +475 -0
  382. package/es/intlayer_with_nextjs_14.md +1258 -0
  383. package/es/intlayer_with_nextjs_15.md +1308 -0
  384. package/es/intlayer_with_nextjs_page_router.md +1088 -0
  385. package/es/intlayer_with_react_native+expo.md +180 -0
  386. package/es/intlayer_with_vite+preact.md +1637 -0
  387. package/es/intlayer_with_vite+react.md +1592 -0
  388. package/es/intlayer_with_vite+solid.md +3 -0
  389. package/es/intlayer_with_vite+svelte.md +3 -0
  390. package/es/intlayer_with_vite+vue.md +947 -0
  391. package/es/introduction.md +184 -0
  392. package/es/mcp_server.md +150 -0
  393. package/es/packages/@intlayer/api/index.md +31 -0
  394. package/es/packages/@intlayer/chokidar/index.md +31 -0
  395. package/es/packages/@intlayer/cli/index.md +21 -0
  396. package/es/packages/@intlayer/config/index.md +116 -0
  397. package/es/packages/@intlayer/core/index.md +25 -0
  398. package/es/packages/@intlayer/design-system/index.md +21 -0
  399. package/es/packages/@intlayer/dictionary-entry/index.md +21 -0
  400. package/es/packages/@intlayer/editor/index.md +21 -0
  401. package/es/packages/@intlayer/editor-react/index.md +21 -0
  402. package/es/packages/@intlayer/webpack/index.md +35 -0
  403. package/es/packages/angular-intlayer/index.md +3 -0
  404. package/es/packages/express-intlayer/index.md +229 -0
  405. package/es/packages/express-intlayer/t.md +432 -0
  406. package/es/packages/intlayer/getConfiguration.md +120 -0
  407. package/es/packages/intlayer/getEnumeration.md +138 -0
  408. package/es/packages/intlayer/getHTMLTextDir.md +97 -0
  409. package/es/packages/intlayer/getLocaleLang.md +57 -0
  410. package/es/packages/intlayer/getLocaleName.md +93 -0
  411. package/es/packages/intlayer/getLocalizedUrl.md +221 -0
  412. package/es/packages/intlayer/getMultilingualUrls.md +198 -0
  413. package/es/packages/intlayer/getPathWithoutLocale.md +50 -0
  414. package/es/packages/intlayer/getTranslation.md +166 -0
  415. package/es/packages/intlayer/getTranslationContent.md +166 -0
  416. package/es/packages/intlayer/index.md +478 -0
  417. package/es/packages/intlayer-cli/index.md +41 -0
  418. package/es/packages/intlayer-editor/index.md +115 -0
  419. package/es/packages/lynx-intlayer/index.md +58 -0
  420. package/es/packages/next-intlayer/index.md +263 -0
  421. package/es/packages/next-intlayer/t.md +325 -0
  422. package/es/packages/next-intlayer/useDictionary.md +242 -0
  423. package/es/packages/next-intlayer/useIntlayer.md +237 -0
  424. package/es/packages/next-intlayer/useIntlayerAsync.md +211 -0
  425. package/es/packages/next-intlayer/useLocale.md +105 -0
  426. package/es/packages/preact-intlayer/index.md +3 -0
  427. package/es/packages/react-intlayer/index.md +263 -0
  428. package/es/packages/react-intlayer/t.md +277 -0
  429. package/es/packages/react-intlayer/useDictionary.md +270 -0
  430. package/es/packages/react-intlayer/useIntlayer.md +225 -0
  431. package/es/packages/react-intlayer/useIntlayerAsync.md +226 -0
  432. package/es/packages/react-intlayer/useLocale.md +184 -0
  433. package/es/packages/react-native-intlayer/index.md +57 -0
  434. package/es/packages/react-scripts-intlayer/index.md +57 -0
  435. package/es/packages/solid-intlayer/index.md +3 -0
  436. package/es/packages/svelte-intlayer/index.md +5 -0
  437. package/es/packages/vite-intlayer/index.md +53 -0
  438. package/es/packages/vue-intlayer/index.md +3 -0
  439. package/es/per_locale_file.md +293 -0
  440. package/es/privacy_notice.md +61 -0
  441. package/es/roadmap.md +157 -0
  442. package/es/terms_of_service.md +33 -0
  443. package/es/vs_code_extension.md +139 -0
  444. package/fr/CI_CD.md +149 -0
  445. package/fr/autoFill.md +157 -0
  446. package/fr/configuration.md +481 -0
  447. package/fr/dictionary/condition.md +213 -0
  448. package/fr/dictionary/content_extention_customization.md +81 -0
  449. package/fr/dictionary/enumeration.md +221 -0
  450. package/fr/dictionary/file.md +206 -0
  451. package/fr/dictionary/function_fetching.md +190 -0
  452. package/fr/dictionary/get_started.md +466 -0
  453. package/fr/dictionary/insertion.md +161 -0
  454. package/fr/dictionary/markdown.md +335 -0
  455. package/fr/dictionary/nesting.md +249 -0
  456. package/fr/dictionary/translation.md +287 -0
  457. package/fr/header.md +5 -0
  458. package/fr/how_works_intlayer.md +217 -0
  459. package/fr/index.md +122 -0
  460. package/fr/interest_of_intlayer.md +132 -0
  461. package/fr/intlayer_CMS.md +334 -0
  462. package/fr/intlayer_cli.md +274 -0
  463. package/fr/intlayer_visual_editor.md +210 -0
  464. package/fr/intlayer_with_angular.md +3 -0
  465. package/fr/intlayer_with_create_react_app.md +1192 -0
  466. package/fr/intlayer_with_express.md +270 -0
  467. package/fr/intlayer_with_lynx+react.md +466 -0
  468. package/fr/intlayer_with_nextjs_14.md +1258 -0
  469. package/fr/intlayer_with_nextjs_15.md +1308 -0
  470. package/fr/intlayer_with_nextjs_page_router.md +1085 -0
  471. package/fr/intlayer_with_react_native+expo.md +535 -0
  472. package/fr/intlayer_with_vite+preact.md +1621 -0
  473. package/fr/intlayer_with_vite+react.md +1589 -0
  474. package/fr/intlayer_with_vite+solid.md +3 -0
  475. package/fr/intlayer_with_vite+svelte.md +3 -0
  476. package/fr/intlayer_with_vite+vue.md +947 -0
  477. package/fr/introduction.md +190 -0
  478. package/fr/mcp_server.md +152 -0
  479. package/fr/packages/@intlayer/api/index.md +31 -0
  480. package/fr/packages/@intlayer/chokidar/index.md +31 -0
  481. package/fr/packages/@intlayer/cli/index.md +21 -0
  482. package/fr/packages/@intlayer/config/index.md +116 -0
  483. package/fr/packages/@intlayer/core/index.md +25 -0
  484. package/fr/packages/@intlayer/design-system/index.md +21 -0
  485. package/fr/packages/@intlayer/dictionary-entry/index.md +21 -0
  486. package/fr/packages/@intlayer/editor/index.md +21 -0
  487. package/fr/packages/@intlayer/editor-react/index.md +21 -0
  488. package/fr/packages/@intlayer/webpack/index.md +35 -0
  489. package/fr/packages/angular-intlayer/index.md +3 -0
  490. package/fr/packages/express-intlayer/index.md +238 -0
  491. package/fr/packages/express-intlayer/t.md +432 -0
  492. package/fr/packages/intlayer/getConfiguration.md +120 -0
  493. package/fr/packages/intlayer/getEnumeration.md +138 -0
  494. package/fr/packages/intlayer/getHTMLTextDir.md +97 -0
  495. package/fr/packages/intlayer/getLocaleLang.md +57 -0
  496. package/fr/packages/intlayer/getLocaleName.md +93 -0
  497. package/fr/packages/intlayer/getLocalizedUrl.md +221 -0
  498. package/fr/packages/intlayer/getMultilingualUrls.md +198 -0
  499. package/fr/packages/intlayer/getPathWithoutLocale.md +50 -0
  500. package/fr/packages/intlayer/getTranslation.md +166 -0
  501. package/fr/packages/intlayer/getTranslationContent.md +166 -0
  502. package/fr/packages/intlayer/index.md +476 -0
  503. package/fr/packages/intlayer-cli/index.md +41 -0
  504. package/fr/packages/intlayer-editor/index.md +115 -0
  505. package/fr/packages/lynx-intlayer/index.md +58 -0
  506. package/fr/packages/next-intlayer/index.md +266 -0
  507. package/fr/packages/next-intlayer/t.md +325 -0
  508. package/fr/packages/next-intlayer/useDictionary.md +242 -0
  509. package/fr/packages/next-intlayer/useIntlayer.md +237 -0
  510. package/fr/packages/next-intlayer/useIntlayerAsync.md +211 -0
  511. package/fr/packages/next-intlayer/useLocale.md +105 -0
  512. package/fr/packages/preact-intlayer/index.md +3 -0
  513. package/fr/packages/react-intlayer/index.md +257 -0
  514. package/fr/packages/react-intlayer/t.md +277 -0
  515. package/fr/packages/react-intlayer/useDictionary.md +269 -0
  516. package/fr/packages/react-intlayer/useIntlayer.md +234 -0
  517. package/fr/packages/react-intlayer/useIntlayerAsync.md +226 -0
  518. package/fr/packages/react-intlayer/useLocale.md +184 -0
  519. package/fr/packages/react-native-intlayer/index.md +57 -0
  520. package/fr/packages/react-scripts-intlayer/index.md +57 -0
  521. package/fr/packages/solid-intlayer/index.md +3 -0
  522. package/fr/packages/svelte-intlayer/index.md +3 -0
  523. package/fr/packages/vite-intlayer/index.md +53 -0
  524. package/fr/packages/vue-intlayer/index.md +3 -0
  525. package/fr/per_locale_file.md +297 -0
  526. package/fr/privacy_notice.md +57 -0
  527. package/fr/roadmap.md +206 -0
  528. package/fr/terms_of_service.md +33 -0
  529. package/fr/vs_code_extension.md +139 -0
  530. package/hi/CI_CD.md +149 -0
  531. package/hi/autoFill.md +157 -0
  532. package/hi/configuration.md +509 -0
  533. package/hi/dictionary/condition.md +213 -0
  534. package/hi/dictionary/content_extention_customization.md +81 -0
  535. package/hi/dictionary/enumeration.md +221 -0
  536. package/hi/dictionary/file.md +209 -0
  537. package/hi/dictionary/function_fetching.md +188 -0
  538. package/hi/dictionary/get_started.md +490 -0
  539. package/hi/dictionary/insertion.md +167 -0
  540. package/hi/dictionary/markdown.md +344 -0
  541. package/hi/dictionary/nesting.md +249 -0
  542. package/hi/dictionary/translation.md +307 -0
  543. package/hi/header.md +7 -0
  544. package/hi/how_works_intlayer.md +217 -0
  545. package/hi/index.md +125 -0
  546. package/hi/interest_of_intlayer.md +132 -0
  547. package/hi/intlayer_CMS.md +334 -0
  548. package/hi/intlayer_cli.md +274 -0
  549. package/hi/intlayer_visual_editor.md +210 -0
  550. package/hi/intlayer_with_angular.md +3 -0
  551. package/hi/intlayer_with_create_react_app.md +1395 -0
  552. package/hi/intlayer_with_express.md +273 -0
  553. package/hi/intlayer_with_lynx+react.md +456 -0
  554. package/hi/intlayer_with_nextjs_14.md +1283 -0
  555. package/hi/intlayer_with_nextjs_15.md +1319 -0
  556. package/hi/intlayer_with_nextjs_page_router.md +1097 -0
  557. package/hi/intlayer_with_react_native+expo.md +554 -0
  558. package/hi/intlayer_with_vite+preact.md +1538 -0
  559. package/hi/intlayer_with_vite+react.md +1540 -0
  560. package/hi/intlayer_with_vite+solid.md +3 -0
  561. package/hi/intlayer_with_vite+svelte.md +3 -0
  562. package/hi/intlayer_with_vite+vue.md +840 -0
  563. package/hi/introduction.md +190 -0
  564. package/hi/mcp_server.md +150 -0
  565. package/hi/packages/@intlayer/api/index.md +31 -0
  566. package/hi/packages/@intlayer/chokidar/index.md +31 -0
  567. package/hi/packages/@intlayer/cli/index.md +21 -0
  568. package/hi/packages/@intlayer/config/index.md +116 -0
  569. package/hi/packages/@intlayer/core/index.md +25 -0
  570. package/hi/packages/@intlayer/design-system/index.md +21 -0
  571. package/hi/packages/@intlayer/dictionary-entry/index.md +21 -0
  572. package/hi/packages/@intlayer/editor/index.md +21 -0
  573. package/hi/packages/@intlayer/editor-react/index.md +21 -0
  574. package/hi/packages/@intlayer/webpack/index.md +35 -0
  575. package/hi/packages/angular-intlayer/index.md +3 -0
  576. package/hi/packages/express-intlayer/index.md +232 -0
  577. package/hi/packages/express-intlayer/t.md +445 -0
  578. package/hi/packages/intlayer/getConfiguration.md +120 -0
  579. package/hi/packages/intlayer/getEnumeration.md +138 -0
  580. package/hi/packages/intlayer/getHTMLTextDir.md +97 -0
  581. package/hi/packages/intlayer/getLocaleLang.md +57 -0
  582. package/hi/packages/intlayer/getLocaleName.md +93 -0
  583. package/hi/packages/intlayer/getLocalizedUrl.md +221 -0
  584. package/hi/packages/intlayer/getMultilingualUrls.md +198 -0
  585. package/hi/packages/intlayer/getPathWithoutLocale.md +50 -0
  586. package/hi/packages/intlayer/getTranslation.md +175 -0
  587. package/hi/packages/intlayer/getTranslationContent.md +175 -0
  588. package/hi/packages/intlayer/index.md +314 -0
  589. package/hi/packages/intlayer-cli/index.md +41 -0
  590. package/hi/packages/intlayer-editor/index.md +113 -0
  591. package/hi/packages/lynx-intlayer/index.md +58 -0
  592. package/hi/packages/next-intlayer/index.md +270 -0
  593. package/hi/packages/next-intlayer/t.md +337 -0
  594. package/hi/packages/next-intlayer/useDictionary.md +248 -0
  595. package/hi/packages/next-intlayer/useIntlayer.md +237 -0
  596. package/hi/packages/next-intlayer/useIntlayerAsync.md +211 -0
  597. package/hi/packages/next-intlayer/useLocale.md +105 -0
  598. package/hi/packages/preact-intlayer/index.md +3 -0
  599. package/hi/packages/react-intlayer/index.md +261 -0
  600. package/hi/packages/react-intlayer/t.md +283 -0
  601. package/hi/packages/react-intlayer/useDictionary.md +268 -0
  602. package/hi/packages/react-intlayer/useIntlayer.md +225 -0
  603. package/hi/packages/react-intlayer/useIntlayerAsync.md +226 -0
  604. package/hi/packages/react-intlayer/useLocale.md +184 -0
  605. package/hi/packages/react-native-intlayer/index.md +57 -0
  606. package/hi/packages/react-scripts-intlayer/index.md +57 -0
  607. package/hi/packages/solid-intlayer/index.md +3 -0
  608. package/hi/packages/svelte-intlayer/index.md +3 -0
  609. package/hi/packages/vite-intlayer/index.md +53 -0
  610. package/hi/packages/vue-intlayer/index.md +3 -0
  611. package/hi/per_locale_file.md +298 -0
  612. package/hi/privacy_notice.md +61 -0
  613. package/hi/roadmap.md +206 -0
  614. package/hi/terms_of_service.md +33 -0
  615. package/hi/vs_code_extension.md +139 -0
  616. package/index.cjs +1265 -0
  617. package/index.d.ts +100 -0
  618. package/it/CI_CD.md +149 -0
  619. package/it/autoFill.md +157 -0
  620. package/it/configuration.md +503 -0
  621. package/it/dictionary/condition.md +213 -0
  622. package/it/dictionary/content_extention_customization.md +81 -0
  623. package/it/dictionary/enumeration.md +221 -0
  624. package/it/dictionary/file.md +207 -0
  625. package/it/dictionary/function_fetching.md +190 -0
  626. package/it/dictionary/get_started.md +466 -0
  627. package/it/dictionary/insertion.md +161 -0
  628. package/it/dictionary/markdown.md +343 -0
  629. package/it/dictionary/nesting.md +249 -0
  630. package/it/dictionary/translation.md +287 -0
  631. package/it/header.md +7 -0
  632. package/it/how_works_intlayer.md +217 -0
  633. package/it/index.md +125 -0
  634. package/it/interest_of_intlayer.md +132 -0
  635. package/it/intlayer_CMS.md +334 -0
  636. package/it/intlayer_cli.md +274 -0
  637. package/it/intlayer_visual_editor.md +210 -0
  638. package/it/intlayer_with_angular.md +3 -0
  639. package/it/intlayer_with_create_react_app.md +413 -0
  640. package/it/intlayer_with_express.md +267 -0
  641. package/it/intlayer_with_lynx+react.md +482 -0
  642. package/it/intlayer_with_nextjs_14.md +1269 -0
  643. package/it/intlayer_with_nextjs_15.md +1319 -0
  644. package/it/intlayer_with_nextjs_page_router.md +1095 -0
  645. package/it/intlayer_with_react_native+expo.md +261 -0
  646. package/it/intlayer_with_vite+preact.md +1681 -0
  647. package/it/intlayer_with_vite+react.md +1580 -0
  648. package/it/intlayer_with_vite+solid.md +3 -0
  649. package/it/intlayer_with_vite+svelte.md +3 -0
  650. package/it/intlayer_with_vite+vue.md +989 -0
  651. package/it/introduction.md +192 -0
  652. package/it/mcp_server.md +152 -0
  653. package/it/packages/@intlayer/api/index.md +31 -0
  654. package/it/packages/@intlayer/chokidar/index.md +31 -0
  655. package/it/packages/@intlayer/cli/index.md +21 -0
  656. package/it/packages/@intlayer/config/index.md +116 -0
  657. package/it/packages/@intlayer/core/index.md +25 -0
  658. package/it/packages/@intlayer/design-system/index.md +21 -0
  659. package/it/packages/@intlayer/dictionary-entry/index.md +21 -0
  660. package/it/packages/@intlayer/editor/index.md +21 -0
  661. package/it/packages/@intlayer/editor-react/index.md +21 -0
  662. package/it/packages/@intlayer/webpack/index.md +35 -0
  663. package/it/packages/angular-intlayer/index.md +3 -0
  664. package/it/packages/express-intlayer/index.md +229 -0
  665. package/it/packages/express-intlayer/t.md +432 -0
  666. package/it/packages/intlayer/getConfiguration.md +120 -0
  667. package/it/packages/intlayer/getEnumeration.md +138 -0
  668. package/it/packages/intlayer/getHTMLTextDir.md +97 -0
  669. package/it/packages/intlayer/getLocaleLang.md +57 -0
  670. package/it/packages/intlayer/getLocaleName.md +93 -0
  671. package/it/packages/intlayer/getLocalizedUrl.md +221 -0
  672. package/it/packages/intlayer/getMultilingualUrls.md +200 -0
  673. package/it/packages/intlayer/getPathWithoutLocale.md +50 -0
  674. package/it/packages/intlayer/getTranslation.md +166 -0
  675. package/it/packages/intlayer/getTranslationContent.md +166 -0
  676. package/it/packages/intlayer/index.md +479 -0
  677. package/it/packages/intlayer-cli/index.md +41 -0
  678. package/it/packages/intlayer-editor/index.md +113 -0
  679. package/it/packages/lynx-intlayer/index.md +58 -0
  680. package/it/packages/next-intlayer/index.md +267 -0
  681. package/it/packages/next-intlayer/t.md +326 -0
  682. package/it/packages/next-intlayer/useDictionary.md +242 -0
  683. package/it/packages/next-intlayer/useIntlayer.md +237 -0
  684. package/it/packages/next-intlayer/useIntlayerAsync.md +211 -0
  685. package/it/packages/next-intlayer/useLocale.md +105 -0
  686. package/it/packages/preact-intlayer/index.md +3 -0
  687. package/it/packages/react-intlayer/index.md +260 -0
  688. package/it/packages/react-intlayer/t.md +277 -0
  689. package/it/packages/react-intlayer/useDictionary.md +260 -0
  690. package/it/packages/react-intlayer/useIntlayer.md +225 -0
  691. package/it/packages/react-intlayer/useIntlayerAsync.md +226 -0
  692. package/it/packages/react-intlayer/useLocale.md +184 -0
  693. package/it/packages/react-native-intlayer/index.md +57 -0
  694. package/it/packages/react-scripts-intlayer/index.md +57 -0
  695. package/it/packages/solid-intlayer/index.md +5 -0
  696. package/it/packages/svelte-intlayer/index.md +3 -0
  697. package/it/packages/vite-intlayer/index.md +53 -0
  698. package/it/packages/vue-intlayer/index.md +5 -0
  699. package/it/per_locale_file.md +298 -0
  700. package/it/privacy_notice.md +61 -0
  701. package/it/roadmap.md +206 -0
  702. package/it/terms_of_service.md +33 -0
  703. package/it/vs_code_extension.md +139 -0
  704. package/ja/CI_CD.md +149 -0
  705. package/ja/autoFill.md +157 -0
  706. package/ja/configuration.md +507 -0
  707. package/ja/dictionary/condition.md +213 -0
  708. package/ja/dictionary/content_extention_customization.md +81 -0
  709. package/ja/dictionary/enumeration.md +221 -0
  710. package/ja/dictionary/file.md +209 -0
  711. package/ja/dictionary/function_fetching.md +190 -0
  712. package/ja/dictionary/get_started.md +466 -0
  713. package/ja/dictionary/insertion.md +161 -0
  714. package/ja/dictionary/markdown.md +343 -0
  715. package/ja/dictionary/nesting.md +249 -0
  716. package/ja/dictionary/translation.md +287 -0
  717. package/ja/header.md +7 -0
  718. package/ja/how_works_intlayer.md +217 -0
  719. package/ja/index.md +125 -0
  720. package/ja/interest_of_intlayer.md +132 -0
  721. package/ja/intlayer_CMS.md +334 -0
  722. package/ja/intlayer_cli.md +274 -0
  723. package/ja/intlayer_visual_editor.md +213 -0
  724. package/ja/intlayer_with_angular.md +3 -0
  725. package/ja/intlayer_with_create_react_app.md +1186 -0
  726. package/ja/intlayer_with_express.md +267 -0
  727. package/ja/intlayer_with_lynx+react.md +482 -0
  728. package/ja/intlayer_with_nextjs_14.md +1256 -0
  729. package/ja/intlayer_with_nextjs_15.md +1308 -0
  730. package/ja/intlayer_with_nextjs_page_router.md +1085 -0
  731. package/ja/intlayer_with_react_native+expo.md +537 -0
  732. package/ja/intlayer_with_vite+preact.md +1601 -0
  733. package/ja/intlayer_with_vite+react.md +1555 -0
  734. package/ja/intlayer_with_vite+solid.md +3 -0
  735. package/ja/intlayer_with_vite+svelte.md +3 -0
  736. package/ja/intlayer_with_vite+vue.md +990 -0
  737. package/ja/introduction.md +186 -0
  738. package/ja/mcp_server.md +150 -0
  739. package/ja/packages/@intlayer/api/index.md +31 -0
  740. package/ja/packages/@intlayer/chokidar/index.md +31 -0
  741. package/ja/packages/@intlayer/cli/index.md +21 -0
  742. package/ja/packages/@intlayer/config/index.md +116 -0
  743. package/ja/packages/@intlayer/core/index.md +25 -0
  744. package/ja/packages/@intlayer/design-system/index.md +21 -0
  745. package/ja/packages/@intlayer/dictionary-entry/index.md +21 -0
  746. package/ja/packages/@intlayer/editor/index.md +21 -0
  747. package/ja/packages/@intlayer/editor-react/index.md +21 -0
  748. package/ja/packages/@intlayer/webpack/index.md +35 -0
  749. package/ja/packages/angular-intlayer/index.md +3 -0
  750. package/ja/packages/express-intlayer/index.md +229 -0
  751. package/ja/packages/express-intlayer/t.md +432 -0
  752. package/ja/packages/intlayer/getConfiguration.md +120 -0
  753. package/ja/packages/intlayer/getEnumeration.md +140 -0
  754. package/ja/packages/intlayer/getHTMLTextDir.md +97 -0
  755. package/ja/packages/intlayer/getLocaleLang.md +59 -0
  756. package/ja/packages/intlayer/getLocaleName.md +93 -0
  757. package/ja/packages/intlayer/getLocalizedUrl.md +221 -0
  758. package/ja/packages/intlayer/getMultilingualUrls.md +198 -0
  759. package/ja/packages/intlayer/getPathWithoutLocale.md +50 -0
  760. package/ja/packages/intlayer/getTranslation.md +166 -0
  761. package/ja/packages/intlayer/getTranslationContent.md +166 -0
  762. package/ja/packages/intlayer/index.md +479 -0
  763. package/ja/packages/intlayer-cli/index.md +41 -0
  764. package/ja/packages/intlayer-editor/index.md +115 -0
  765. package/ja/packages/lynx-intlayer/index.md +58 -0
  766. package/ja/packages/next-intlayer/index.md +263 -0
  767. package/ja/packages/next-intlayer/t.md +326 -0
  768. package/ja/packages/next-intlayer/useDictionary.md +242 -0
  769. package/ja/packages/next-intlayer/useIntlayer.md +237 -0
  770. package/ja/packages/next-intlayer/useIntlayerAsync.md +211 -0
  771. package/ja/packages/next-intlayer/useLocale.md +105 -0
  772. package/ja/packages/preact-intlayer/index.md +3 -0
  773. package/ja/packages/react-intlayer/index.md +257 -0
  774. package/ja/packages/react-intlayer/t.md +277 -0
  775. package/ja/packages/react-intlayer/useDictionary.md +260 -0
  776. package/ja/packages/react-intlayer/useIntlayer.md +225 -0
  777. package/ja/packages/react-intlayer/useIntlayerAsync.md +226 -0
  778. package/ja/packages/react-intlayer/useLocale.md +184 -0
  779. package/ja/packages/react-native-intlayer/index.md +57 -0
  780. package/ja/packages/react-scripts-intlayer/index.md +57 -0
  781. package/ja/packages/solid-intlayer/index.md +3 -0
  782. package/ja/packages/svelte-intlayer/index.md +3 -0
  783. package/ja/packages/vite-intlayer/index.md +53 -0
  784. package/ja/packages/vue-intlayer/index.md +3 -0
  785. package/ja/per_locale_file.md +298 -0
  786. package/ja/privacy_notice.md +57 -0
  787. package/ja/roadmap.md +206 -0
  788. package/ja/terms_of_service.md +33 -0
  789. package/ja/vs_code_extension.md +139 -0
  790. package/ko/CI_CD.md +149 -0
  791. package/ko/autoFill.md +157 -0
  792. package/ko/configuration.md +507 -0
  793. package/ko/dictionary/condition.md +213 -0
  794. package/ko/dictionary/content_extention_customization.md +81 -0
  795. package/ko/dictionary/enumeration.md +221 -0
  796. package/ko/dictionary/file.md +207 -0
  797. package/ko/dictionary/function_fetching.md +190 -0
  798. package/ko/dictionary/get_started.md +466 -0
  799. package/ko/dictionary/insertion.md +167 -0
  800. package/ko/dictionary/markdown.md +343 -0
  801. package/ko/dictionary/nesting.md +249 -0
  802. package/ko/dictionary/translation.md +287 -0
  803. package/ko/header.md +7 -0
  804. package/ko/how_works_intlayer.md +216 -0
  805. package/ko/index.md +125 -0
  806. package/ko/interest_of_intlayer.md +132 -0
  807. package/ko/intlayer_CMS.md +334 -0
  808. package/ko/intlayer_cli.md +274 -0
  809. package/ko/intlayer_visual_editor.md +210 -0
  810. package/ko/intlayer_with_angular.md +3 -0
  811. package/ko/intlayer_with_create_react_app.md +1186 -0
  812. package/ko/intlayer_with_express.md +267 -0
  813. package/ko/intlayer_with_lynx+react.md +482 -0
  814. package/ko/intlayer_with_nextjs_14.md +1267 -0
  815. package/ko/intlayer_with_nextjs_15.md +1319 -0
  816. package/ko/intlayer_with_nextjs_page_router.md +1097 -0
  817. package/ko/intlayer_with_react_native+expo.md +537 -0
  818. package/ko/intlayer_with_vite+preact.md +1682 -0
  819. package/ko/intlayer_with_vite+react.md +1582 -0
  820. package/ko/intlayer_with_vite+solid.md +3 -0
  821. package/ko/intlayer_with_vite+svelte.md +3 -0
  822. package/ko/intlayer_with_vite+vue.md +988 -0
  823. package/ko/introduction.md +186 -0
  824. package/ko/mcp_server.md +150 -0
  825. package/ko/packages/@intlayer/api/index.md +31 -0
  826. package/ko/packages/@intlayer/chokidar/index.md +31 -0
  827. package/ko/packages/@intlayer/cli/index.md +21 -0
  828. package/ko/packages/@intlayer/config/index.md +116 -0
  829. package/ko/packages/@intlayer/core/index.md +25 -0
  830. package/ko/packages/@intlayer/design-system/index.md +21 -0
  831. package/ko/packages/@intlayer/dictionary-entry/index.md +21 -0
  832. package/ko/packages/@intlayer/editor/index.md +21 -0
  833. package/ko/packages/@intlayer/editor-react/index.md +21 -0
  834. package/ko/packages/@intlayer/webpack/index.md +35 -0
  835. package/ko/packages/angular-intlayer/index.md +5 -0
  836. package/ko/packages/express-intlayer/index.md +229 -0
  837. package/ko/packages/express-intlayer/t.md +432 -0
  838. package/ko/packages/intlayer/getConfiguration.md +120 -0
  839. package/ko/packages/intlayer/getEnumeration.md +138 -0
  840. package/ko/packages/intlayer/getHTMLTextDir.md +97 -0
  841. package/ko/packages/intlayer/getLocaleLang.md +57 -0
  842. package/ko/packages/intlayer/getLocaleName.md +93 -0
  843. package/ko/packages/intlayer/getLocalizedUrl.md +221 -0
  844. package/ko/packages/intlayer/getMultilingualUrls.md +198 -0
  845. package/ko/packages/intlayer/getPathWithoutLocale.md +50 -0
  846. package/ko/packages/intlayer/getTranslation.md +166 -0
  847. package/ko/packages/intlayer/getTranslationContent.md +166 -0
  848. package/ko/packages/intlayer/index.md +480 -0
  849. package/ko/packages/intlayer-cli/index.md +41 -0
  850. package/ko/packages/intlayer-editor/index.md +113 -0
  851. package/ko/packages/lynx-intlayer/index.md +58 -0
  852. package/ko/packages/next-intlayer/index.md +267 -0
  853. package/ko/packages/next-intlayer/t.md +337 -0
  854. package/ko/packages/next-intlayer/useDictionary.md +242 -0
  855. package/ko/packages/next-intlayer/useIntlayer.md +237 -0
  856. package/ko/packages/next-intlayer/useIntlayerAsync.md +211 -0
  857. package/ko/packages/next-intlayer/useLocale.md +105 -0
  858. package/ko/packages/preact-intlayer/index.md +3 -0
  859. package/ko/packages/react-intlayer/index.md +260 -0
  860. package/ko/packages/react-intlayer/t.md +277 -0
  861. package/ko/packages/react-intlayer/useDictionary.md +268 -0
  862. package/ko/packages/react-intlayer/useIntlayer.md +225 -0
  863. package/ko/packages/react-intlayer/useIntlayerAsync.md +226 -0
  864. package/ko/packages/react-intlayer/useLocale.md +184 -0
  865. package/ko/packages/react-native-intlayer/index.md +57 -0
  866. package/ko/packages/react-scripts-intlayer/index.md +57 -0
  867. package/ko/packages/solid-intlayer/index.md +3 -0
  868. package/ko/packages/svelte-intlayer/index.md +3 -0
  869. package/ko/packages/vite-intlayer/index.md +53 -0
  870. package/ko/packages/vue-intlayer/index.md +3 -0
  871. package/ko/per_locale_file.md +300 -0
  872. package/ko/privacy_notice.md +61 -0
  873. package/ko/roadmap.md +206 -0
  874. package/ko/terms_of_service.md +33 -0
  875. package/ko/vs_code_extension.md +139 -0
  876. package/package.json +96 -0
  877. package/pt/CI_CD.md +149 -0
  878. package/pt/autoFill.md +157 -0
  879. package/pt/configuration.md +503 -0
  880. package/pt/dictionary/condition.md +213 -0
  881. package/pt/dictionary/content_extention_customization.md +81 -0
  882. package/pt/dictionary/enumeration.md +221 -0
  883. package/pt/dictionary/file.md +210 -0
  884. package/pt/dictionary/function_fetching.md +190 -0
  885. package/pt/dictionary/get_started.md +490 -0
  886. package/pt/dictionary/insertion.md +161 -0
  887. package/pt/dictionary/markdown.md +339 -0
  888. package/pt/dictionary/nesting.md +249 -0
  889. package/pt/dictionary/translation.md +322 -0
  890. package/pt/header.md +7 -0
  891. package/pt/how_works_intlayer.md +216 -0
  892. package/pt/index.md +125 -0
  893. package/pt/interest_of_intlayer.md +132 -0
  894. package/pt/intlayer_CMS.md +334 -0
  895. package/pt/intlayer_cli.md +274 -0
  896. package/pt/intlayer_visual_editor.md +210 -0
  897. package/pt/intlayer_with_angular.md +3 -0
  898. package/pt/intlayer_with_create_react_app.md +1204 -0
  899. package/pt/intlayer_with_express.md +270 -0
  900. package/pt/intlayer_with_lynx+react.md +467 -0
  901. package/pt/intlayer_with_nextjs_14.md +1269 -0
  902. package/pt/intlayer_with_nextjs_15.md +1319 -0
  903. package/pt/intlayer_with_nextjs_page_router.md +1109 -0
  904. package/pt/intlayer_with_react_native+expo.md +259 -0
  905. package/pt/intlayer_with_vite+preact.md +1663 -0
  906. package/pt/intlayer_with_vite+react.md +1621 -0
  907. package/pt/intlayer_with_vite+solid.md +3 -0
  908. package/pt/intlayer_with_vite+svelte.md +3 -0
  909. package/pt/intlayer_with_vite+vue.md +989 -0
  910. package/pt/introduction.md +193 -0
  911. package/pt/mcp_server.md +150 -0
  912. package/pt/packages/@intlayer/api/index.md +31 -0
  913. package/pt/packages/@intlayer/chokidar/index.md +31 -0
  914. package/pt/packages/@intlayer/cli/index.md +21 -0
  915. package/pt/packages/@intlayer/config/index.md +116 -0
  916. package/pt/packages/@intlayer/core/index.md +25 -0
  917. package/pt/packages/@intlayer/design-system/index.md +21 -0
  918. package/pt/packages/@intlayer/dictionary-entry/index.md +21 -0
  919. package/pt/packages/@intlayer/editor/index.md +21 -0
  920. package/pt/packages/@intlayer/editor-react/index.md +21 -0
  921. package/pt/packages/@intlayer/webpack/index.md +35 -0
  922. package/pt/packages/angular-intlayer/index.md +3 -0
  923. package/pt/packages/express-intlayer/index.md +232 -0
  924. package/pt/packages/express-intlayer/t.md +267 -0
  925. package/pt/packages/intlayer/getConfiguration.md +120 -0
  926. package/pt/packages/intlayer/getEnumeration.md +138 -0
  927. package/pt/packages/intlayer/getHTMLTextDir.md +97 -0
  928. package/pt/packages/intlayer/getLocaleLang.md +57 -0
  929. package/pt/packages/intlayer/getLocaleName.md +93 -0
  930. package/pt/packages/intlayer/getLocalizedUrl.md +221 -0
  931. package/pt/packages/intlayer/getMultilingualUrls.md +198 -0
  932. package/pt/packages/intlayer/getPathWithoutLocale.md +50 -0
  933. package/pt/packages/intlayer/getTranslation.md +175 -0
  934. package/pt/packages/intlayer/getTranslationContent.md +177 -0
  935. package/pt/packages/intlayer/index.md +484 -0
  936. package/pt/packages/intlayer-cli/index.md +41 -0
  937. package/pt/packages/intlayer-editor/index.md +113 -0
  938. package/pt/packages/lynx-intlayer/index.md +58 -0
  939. package/pt/packages/next-intlayer/index.md +270 -0
  940. package/pt/packages/next-intlayer/t.md +341 -0
  941. package/pt/packages/next-intlayer/useDictionary.md +248 -0
  942. package/pt/packages/next-intlayer/useIntlayer.md +237 -0
  943. package/pt/packages/next-intlayer/useIntlayerAsync.md +211 -0
  944. package/pt/packages/next-intlayer/useLocale.md +105 -0
  945. package/pt/packages/preact-intlayer/index.md +3 -0
  946. package/pt/packages/react-intlayer/index.md +261 -0
  947. package/pt/packages/react-intlayer/t.md +289 -0
  948. package/pt/packages/react-intlayer/useDictionary.md +268 -0
  949. package/pt/packages/react-intlayer/useIntlayer.md +225 -0
  950. package/pt/packages/react-intlayer/useIntlayerAsync.md +226 -0
  951. package/pt/packages/react-intlayer/useLocale.md +184 -0
  952. package/pt/packages/react-native-intlayer/index.md +57 -0
  953. package/pt/packages/react-scripts-intlayer/index.md +57 -0
  954. package/pt/packages/solid-intlayer/index.md +3 -0
  955. package/pt/packages/svelte-intlayer/index.md +3 -0
  956. package/pt/packages/vite-intlayer/index.md +53 -0
  957. package/pt/packages/vue-intlayer/index.md +3 -0
  958. package/pt/per_locale_file.md +298 -0
  959. package/pt/privacy_notice.md +61 -0
  960. package/pt/roadmap.md +206 -0
  961. package/pt/terms_of_service.md +33 -0
  962. package/pt/vs_code_extension.md +139 -0
  963. package/ru/CI_CD.md +149 -0
  964. package/ru/autoFill.md +157 -0
  965. package/ru/configuration.md +507 -0
  966. package/ru/dictionary/condition.md +213 -0
  967. package/ru/dictionary/content_extention_customization.md +81 -0
  968. package/ru/dictionary/enumeration.md +221 -0
  969. package/ru/dictionary/file.md +209 -0
  970. package/ru/dictionary/function_fetching.md +188 -0
  971. package/ru/dictionary/get_started.md +311 -0
  972. package/ru/dictionary/insertion.md +161 -0
  973. package/ru/dictionary/markdown.md +339 -0
  974. package/ru/dictionary/nesting.md +249 -0
  975. package/ru/dictionary/translation.md +322 -0
  976. package/ru/environment/angular.md +3 -0
  977. package/ru/header.md +7 -0
  978. package/ru/how_works_intlayer.md +217 -0
  979. package/ru/index.md +125 -0
  980. package/ru/interest_of_intlayer.md +132 -0
  981. package/ru/intlayer_CMS.md +334 -0
  982. package/ru/intlayer_cli.md +274 -0
  983. package/ru/intlayer_visual_editor.md +210 -0
  984. package/ru/intlayer_with_angular.md +3 -0
  985. package/ru/intlayer_with_create_react_app.md +1196 -0
  986. package/ru/intlayer_with_express.md +273 -0
  987. package/ru/intlayer_with_lynx+react.md +482 -0
  988. package/ru/intlayer_with_nextjs_14.md +1274 -0
  989. package/ru/intlayer_with_nextjs_15.md +1318 -0
  990. package/ru/intlayer_with_nextjs_page_router.md +1100 -0
  991. package/ru/intlayer_with_react_native+expo.md +537 -0
  992. package/ru/intlayer_with_vite+preact.md +1663 -0
  993. package/ru/intlayer_with_vite+react.md +1546 -0
  994. package/ru/intlayer_with_vite+solid.md +3 -0
  995. package/ru/intlayer_with_vite+svelte.md +3 -0
  996. package/ru/intlayer_with_vite+vue.md +987 -0
  997. package/ru/introduction.md +190 -0
  998. package/ru/mcp_server.md +152 -0
  999. package/ru/packages/@intlayer/api/index.md +31 -0
  1000. package/ru/packages/@intlayer/chokidar/index.md +31 -0
  1001. package/ru/packages/@intlayer/cli/index.md +23 -0
  1002. package/ru/packages/@intlayer/config/index.md +116 -0
  1003. package/ru/packages/@intlayer/core/index.md +25 -0
  1004. package/ru/packages/@intlayer/design-system/index.md +21 -0
  1005. package/ru/packages/@intlayer/dictionary-entry/index.md +21 -0
  1006. package/ru/packages/@intlayer/editor/index.md +21 -0
  1007. package/ru/packages/@intlayer/editor-react/index.md +21 -0
  1008. package/ru/packages/@intlayer/webpack/index.md +35 -0
  1009. package/ru/packages/angular-intlayer/index.md +3 -0
  1010. package/ru/packages/express-intlayer/index.md +235 -0
  1011. package/ru/packages/express-intlayer/t.md +445 -0
  1012. package/ru/packages/intlayer/getConfiguration.md +120 -0
  1013. package/ru/packages/intlayer/getEnumeration.md +140 -0
  1014. package/ru/packages/intlayer/getHTMLTextDir.md +97 -0
  1015. package/ru/packages/intlayer/getLocaleLang.md +59 -0
  1016. package/ru/packages/intlayer/getLocaleName.md +93 -0
  1017. package/ru/packages/intlayer/getLocalizedUrl.md +221 -0
  1018. package/ru/packages/intlayer/getMultilingualUrls.md +198 -0
  1019. package/ru/packages/intlayer/getPathWithoutLocale.md +50 -0
  1020. package/ru/packages/intlayer/getTranslation.md +177 -0
  1021. package/ru/packages/intlayer/getTranslationContent.md +175 -0
  1022. package/ru/packages/intlayer/index.md +275 -0
  1023. package/ru/packages/intlayer-cli/index.md +41 -0
  1024. package/ru/packages/intlayer-editor/index.md +115 -0
  1025. package/ru/packages/lynx-intlayer/index.md +58 -0
  1026. package/ru/packages/next-intlayer/index.md +267 -0
  1027. package/ru/packages/next-intlayer/t.md +340 -0
  1028. package/ru/packages/next-intlayer/useDictionary.md +248 -0
  1029. package/ru/packages/next-intlayer/useIntlayer.md +237 -0
  1030. package/ru/packages/next-intlayer/useIntlayerAsync.md +211 -0
  1031. package/ru/packages/next-intlayer/useLocale.md +105 -0
  1032. package/ru/packages/preact-intlayer/index.md +3 -0
  1033. package/ru/packages/react-intlayer/index.md +261 -0
  1034. package/ru/packages/react-intlayer/t.md +289 -0
  1035. package/ru/packages/react-intlayer/useDictionary.md +268 -0
  1036. package/ru/packages/react-intlayer/useIntlayer.md +225 -0
  1037. package/ru/packages/react-intlayer/useIntlayerAsync.md +226 -0
  1038. package/ru/packages/react-intlayer/useLocale.md +184 -0
  1039. package/ru/packages/react-native-intlayer/index.md +57 -0
  1040. package/ru/packages/react-scripts-intlayer/index.md +57 -0
  1041. package/ru/packages/solid-intlayer/index.md +3 -0
  1042. package/ru/packages/svelte-intlayer/index.md +3 -0
  1043. package/ru/packages/vite-intlayer/index.md +53 -0
  1044. package/ru/packages/vue-intlayer/index.md +3 -0
  1045. package/ru/per_locale_file.md +298 -0
  1046. package/ru/privacy_notice.md +61 -0
  1047. package/ru/roadmap.md +206 -0
  1048. package/ru/terms_of_service.md +33 -0
  1049. package/ru/vs_code_extension.md +139 -0
  1050. package/zh/CI_CD.md +149 -0
  1051. package/zh/autoFill.md +157 -0
  1052. package/zh/configuration.md +484 -0
  1053. package/zh/dictionary/condition.md +213 -0
  1054. package/zh/dictionary/content_extention_customization.md +81 -0
  1055. package/zh/dictionary/enumeration.md +221 -0
  1056. package/zh/dictionary/file.md +209 -0
  1057. package/zh/dictionary/function_fetching.md +188 -0
  1058. package/zh/dictionary/get_started.md +490 -0
  1059. package/zh/dictionary/insertion.md +161 -0
  1060. package/zh/dictionary/markdown.md +342 -0
  1061. package/zh/dictionary/nesting.md +249 -0
  1062. package/zh/dictionary/translation.md +287 -0
  1063. package/zh/header.md +7 -0
  1064. package/zh/how_works_intlayer.md +217 -0
  1065. package/zh/index.md +125 -0
  1066. package/zh/interest_of_intlayer.md +132 -0
  1067. package/zh/intlayer_CMS.md +334 -0
  1068. package/zh/intlayer_cli.md +274 -0
  1069. package/zh/intlayer_visual_editor.md +210 -0
  1070. package/zh/intlayer_with_angular.md +3 -0
  1071. package/zh/intlayer_with_create_react_app.md +1196 -0
  1072. package/zh/intlayer_with_express.md +267 -0
  1073. package/zh/intlayer_with_lynx+react.md +484 -0
  1074. package/zh/intlayer_with_nextjs_14.md +1286 -0
  1075. package/zh/intlayer_with_nextjs_15.md +1322 -0
  1076. package/zh/intlayer_with_nextjs_page_router.md +1097 -0
  1077. package/zh/intlayer_with_react_native+expo.md +539 -0
  1078. package/zh/intlayer_with_vite+preact.md +1681 -0
  1079. package/zh/intlayer_with_vite+react.md +1577 -0
  1080. package/zh/intlayer_with_vite+solid.md +3 -0
  1081. package/zh/intlayer_with_vite+svelte.md +3 -0
  1082. package/zh/intlayer_with_vite+vue.md +988 -0
  1083. package/zh/introduction.md +186 -0
  1084. package/zh/mcp_server.md +152 -0
  1085. package/zh/packages/@intlayer/api/index.md +31 -0
  1086. package/zh/packages/@intlayer/chokidar/index.md +31 -0
  1087. package/zh/packages/@intlayer/cli/index.md +21 -0
  1088. package/zh/packages/@intlayer/config/index.md +116 -0
  1089. package/zh/packages/@intlayer/core/index.md +25 -0
  1090. package/zh/packages/@intlayer/design-system/index.md +21 -0
  1091. package/zh/packages/@intlayer/dictionary-entry/index.md +21 -0
  1092. package/zh/packages/@intlayer/editor/index.md +21 -0
  1093. package/zh/packages/@intlayer/editor-react/index.md +21 -0
  1094. package/zh/packages/@intlayer/webpack/index.md +35 -0
  1095. package/zh/packages/angular-intlayer/index.md +3 -0
  1096. package/zh/packages/express-intlayer/index.md +229 -0
  1097. package/zh/packages/express-intlayer/t.md +432 -0
  1098. package/zh/packages/intlayer/getConfiguration.md +120 -0
  1099. package/zh/packages/intlayer/getEnumeration.md +140 -0
  1100. package/zh/packages/intlayer/getHTMLTextDir.md +97 -0
  1101. package/zh/packages/intlayer/getLocaleLang.md +57 -0
  1102. package/zh/packages/intlayer/getLocaleName.md +93 -0
  1103. package/zh/packages/intlayer/getLocalizedUrl.md +221 -0
  1104. package/zh/packages/intlayer/getMultilingualUrls.md +198 -0
  1105. package/zh/packages/intlayer/getPathWithoutLocale.md +50 -0
  1106. package/zh/packages/intlayer/getTranslation.md +166 -0
  1107. package/zh/packages/intlayer/getTranslationContent.md +166 -0
  1108. package/zh/packages/intlayer/index.md +360 -0
  1109. package/zh/packages/intlayer-cli/index.md +41 -0
  1110. package/zh/packages/intlayer-editor/index.md +113 -0
  1111. package/zh/packages/lynx-intlayer/index.md +60 -0
  1112. package/zh/packages/next-intlayer/index.md +267 -0
  1113. package/zh/packages/next-intlayer/t.md +338 -0
  1114. package/zh/packages/next-intlayer/useDictionary.md +242 -0
  1115. package/zh/packages/next-intlayer/useIntlayer.md +237 -0
  1116. package/zh/packages/next-intlayer/useIntlayerAsync.md +211 -0
  1117. package/zh/packages/next-intlayer/useLocale.md +105 -0
  1118. package/zh/packages/preact-intlayer/index.md +3 -0
  1119. package/zh/packages/react-intlayer/index.md +257 -0
  1120. package/zh/packages/react-intlayer/t.md +271 -0
  1121. package/zh/packages/react-intlayer/useDictionary.md +260 -0
  1122. package/zh/packages/react-intlayer/useIntlayer.md +225 -0
  1123. package/zh/packages/react-intlayer/useIntlayerAsync.md +226 -0
  1124. package/zh/packages/react-intlayer/useLocale.md +184 -0
  1125. package/zh/packages/react-native-intlayer/index.md +57 -0
  1126. package/zh/packages/react-scripts-intlayer/index.md +57 -0
  1127. package/zh/packages/solid-intlayer/index.md +3 -0
  1128. package/zh/packages/svelte-intlayer/index.md +3 -0
  1129. package/zh/packages/vite-intlayer/index.md +53 -0
  1130. package/zh/packages/vue-intlayer/index.md +3 -0
  1131. package/zh/per_locale_file.md +298 -0
  1132. package/zh/privacy_notice.md +61 -0
  1133. package/zh/roadmap.md +206 -0
  1134. package/zh/terms_of_service.md +33 -0
  1135. package/zh/vs_code_extension.md +139 -0
@@ -0,0 +1,1540 @@
1
+ # इंटलेयर और Vite और React के साथ अंतर्राष्ट्रीयकरण (i18n) शुरू करना
2
+
3
+ <iframe title="Vite + React: Build a Multilingual App from Scratch using Intlayer" class="m-auto aspect-[16/9] w-full overflow-hidden rounded-lg border-0" allow="autoplay; gyroscope;" loading="lazy" width="1080" height="auto" src="https://www.youtube.com/embed/dS9L7uJeak4?autoplay=0&amp;origin=http://intlayer.org&amp;controls=0&amp;rel=1"/>
4
+
5
+ [एप्लीकेशन टेम्पलेट](https://github.com/aymericzip/intlayer-vite-react-template) पर देखें.
6
+
7
+ ## इंटलेयर क्या है?
8
+
9
+ **इंटलेयर** एक अभिनव, ओपन-सोर्स अंतर्राष्ट्रीयकरण (i18n) लाइब्रेरी है जिसे आधुनिक वेब अनुप्रयोगों में बहुभाषी समर्थन को सरल बनाने के लिए डिज़ाइन किया गया है।
10
+
11
+ इंटलेयर के साथ, आप कर सकते हैं:
12
+
13
+ - **आसानी से अनुवाद प्रबंधित करें** घटक स्तर पर घोषणात्मक शब्दकोशों का उपयोग करके।
14
+ - **मेटाडेटा, रूट्स और सामग्री को गतिशील रूप से स्थानीयकृत करें**।
15
+ - **टाइपस्क्रिप्ट समर्थन सुनिश्चित करें** स्वचालित रूप से उत्पन्न प्रकारों के साथ, ऑटोकम्प्लीशन और त्रुटि पहचान में सुधार।
16
+ - **उन्नत सुविधाओं का लाभ उठाएं**, जैसे गतिशील लोकेल पहचान और स्विचिंग।
17
+
18
+ ---
19
+
20
+ ## Vite और React एप्लिकेशन में इंटलेयर सेट अप करने के लिए चरण-दर-चरण गाइड
21
+
22
+ ### चरण 1: निर्भरताएँ स्थापित करें
23
+
24
+ npm का उपयोग करके आवश्यक पैकेज स्थापित करें:
25
+
26
+ ```bash packageManager="npm"
27
+ npm install intlayer react-intlayer vite-intlayer
28
+ ```
29
+
30
+ ```bash packageManager="pnpm"
31
+ pnpm add intlayer react-intlayer vite-intlayer
32
+ ```
33
+
34
+ ```bash packageManager="yarn"
35
+ yarn add intlayer react-intlayer vite-intlayer
36
+ ```
37
+
38
+ - **intlayer**
39
+
40
+ मुख्य पैकेज जो कॉन्फ़िगरेशन प्रबंधन, अनुवाद, [सामग्री घोषणा](https://github.com/aymericzip/intlayer/blob/main/docs/hi/dictionary/get_started.md), ट्रांसपिलेशन, और [CLI कमांड्स](https://github.com/aymericzip/intlayer/blob/main/docs/hi/intlayer_cli.md) के लिए अंतर्राष्ट्रीयकरण उपकरण प्रदान करता है।
41
+
42
+ - **react-intlayer**
43
+ पैकेज जो React एप्लिकेशन के साथ इंटलेयर को एकीकृत करता है। यह React अंतर्राष्ट्रीयकरण के लिए संदर्भ प्रदाता और हुक प्रदान करता है।
44
+
45
+ - **vite-intlayer**
46
+ [Vite बंडलर](https://vite.dev/guide/why.html#why-bundle-for-production) के साथ इंटलेयर को एकीकृत करने के लिए Vite प्लगइन शामिल करता है, साथ ही उपयोगकर्ता की पसंदीदा लोकेल का पता लगाने, कुकीज़ प्रबंधित करने और URL रीडायरेक्शन को संभालने के लिए मिडलवेयर भी।
47
+
48
+ ### चरण 2: अपने प्रोजेक्ट का कॉन्फ़िगरेशन
49
+
50
+ अपने एप्लिकेशन की भाषाओं को कॉन्फ़िगर करने के लिए एक कॉन्फ़िग फ़ाइल बनाएँ:
51
+
52
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
53
+ import { Locales, type IntlayerConfig } from "intlayer";
54
+
55
+ const config: IntlayerConfig = {
56
+ internationalization: {
57
+ locales: [
58
+ Locales.ENGLISH,
59
+ Locales.FRENCH,
60
+ Locales.SPANISH,
61
+ // आपकी अन्य भाषाएँ
62
+ ],
63
+ defaultLocale: Locales.ENGLISH,
64
+ },
65
+ };
66
+
67
+ export default config;
68
+ ```
69
+
70
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
71
+ import { Locales } from "intlayer";
72
+
73
+ /** @type {import('intlayer').IntlayerConfig} */
74
+ const config = {
75
+ internationalization: {
76
+ locales: [
77
+ Locales.ENGLISH,
78
+ Locales.FRENCH,
79
+ Locales.SPANISH,
80
+ // आपकी अन्य भाषाएँ
81
+ ],
82
+ defaultLocale: Locales.ENGLISH,
83
+ },
84
+ };
85
+
86
+ export default config;
87
+ ```
88
+
89
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
90
+ const { Locales } = require("intlayer");
91
+
92
+ /** @type {import('intlayer').IntlayerConfig} */
93
+ const config = {
94
+ internationalization: {
95
+ locales: [
96
+ Locales.ENGLISH,
97
+ Locales.FRENCH,
98
+ Locales.SPANISH,
99
+ // आपकी अन्य भाषाएँ
100
+ ],
101
+ defaultLocale: Locales.ENGLISH,
102
+ },
103
+ };
104
+
105
+ module.exports = config;
106
+ ```
107
+
108
+ > इस कॉन्फ़िगरेशन फ़ाइल के माध्यम से, आप स्थानीयकृत URL, मिडलवेयर रीडायरेक्शन, कुकी नाम, आपकी सामग्री घोषणाओं का स्थान और एक्सटेंशन, कंसोल में इंटलेयर लॉग्स को अक्षम करना, और बहुत कुछ सेट कर सकते हैं। उपलब्ध पैरामीटरों की पूरी सूची के लिए, [कॉन्फ़िगरेशन दस्तावेज़](https://github.com/aymericzip/intlayer/blob/main/docs/hi/configuration.md) देखें।
109
+
110
+ ### चरण 3: अपने Vite कॉन्फ़िगरेशन में इंटलेयर को एकीकृत करें
111
+
112
+ अपने कॉन्फ़िगरेशन में इंटलेयर प्लगइन जोड़ें।
113
+
114
+ ```typescript fileName="vite.config.ts" codeFormat="typescript"
115
+ import { defineConfig } from "vite";
116
+ import react from "@vitejs/plugin-react-swc";
117
+ import { intlayerPlugin } from "vite-intlayer";
118
+
119
+ // https://vitejs.dev/config/
120
+ export default defineConfig({
121
+ plugins: [react(), intlayerPlugin()],
122
+ });
123
+ ```
124
+
125
+ ```javascript fileName="vite.config.mjs" codeFormat="esm"
126
+ import { defineConfig } from "vite";
127
+ import react from "@vitejs/plugin-react-swc";
128
+ import { intlayerPlugin } from "vite-intlayer";
129
+
130
+ // https://vitejs.dev/config/
131
+ export default defineConfig({
132
+ plugins: [react(), intlayerPlugin()],
133
+ });
134
+ ```
135
+
136
+ ```javascript fileName="vite.config.cjs" codeFormat="commonjs"
137
+ const { defineConfig } = require("vite");
138
+ const react = require("@vitejs/plugin-react-swc");
139
+ const { intlayerPlugin } = require("vite-intlayer");
140
+
141
+ // https://vitejs.dev/config/
142
+ module.exports = defineConfig({
143
+ plugins: [react(), intlayerPlugin()],
144
+ });
145
+ ```
146
+
147
+ > `intlayerPlugin()` Vite प्लगइन का उपयोग Vite के साथ इंटलेयर को एकीकृत करने के लिए किया जाता है। यह सामग्री घोषणा फ़ाइलों के निर्माण को सुनिश्चित करता है और विकास मोड में उनकी निगरानी करता है। यह Vite एप्लिकेशन के भीतर इंटलेयर पर्यावरण वेरिएबल्स को परिभाषित करता है। इसके अतिरिक्त, यह प्रदर्शन को अनुकूलित करने के लिए उपनाम प्रदान करता है।
148
+
149
+ ### चरण 4: अपनी सामग्री घोषित करें
150
+
151
+ अनुवादों को संग्रहीत करने के लिए अपनी सामग्री घोषणाएँ बनाएँ और प्रबंधित करें:
152
+
153
+ ```tsx fileName="src/app.content.tsx" contentDeclarationFormat="typescript"
154
+ import { t, type Dictionary } from "intlayer";
155
+ import type { ReactNode } from "react";
156
+
157
+ const appContent = {
158
+ key: "app",
159
+ content: {
160
+ viteLogo: t({
161
+ hi: "Vite लोगो",
162
+ en: "Vite logo",
163
+ fr: "Logo Vite",
164
+ es: "Logo Vite",
165
+ }),
166
+ reactLogo: t({
167
+ hi: "React लोगो",
168
+ en: "React logo",
169
+ fr: "Logo React",
170
+ es: "Logo React",
171
+ }),
172
+
173
+ title: "Vite + React",
174
+
175
+ count: t({
176
+ hi: "गिनती है ",
177
+ en: "count is ",
178
+ fr: "le compte est ",
179
+ es: "el recuento es ",
180
+ }),
181
+
182
+ edit: t<ReactNode>({
183
+ hi: (
184
+ <>
185
+ <code>src/App.tsx</code> संपादित करें और HMR का परीक्षण करने के लिए
186
+ सहेजें
187
+ </>
188
+ ),
189
+ en: (
190
+ <>
191
+ Edit <code>src/App.tsx</code> and save to test HMR
192
+ </>
193
+ ),
194
+ fr: (
195
+ <>
196
+ Éditez <code>src/App.tsx</code> et enregistrez pour tester HMR
197
+ </>
198
+ ),
199
+ es: (
200
+ <>
201
+ Edita <code>src/App.tsx</code> y guarda para probar HMR
202
+ </>
203
+ ),
204
+ }),
205
+
206
+ readTheDocs: t({
207
+ hi: "अधिक जानने के लिए Vite और React लोगो पर क्लिक करें",
208
+ en: "Click on the Vite and React logos to learn more",
209
+ fr: "Cliquez sur les logos Vite et React pour en savoir plus",
210
+ es: "Haga clic en los logotipos de Vite y React para obtener más información",
211
+ }),
212
+ },
213
+ } satisfies Dictionary;
214
+
215
+ export default appContent;
216
+ ```
217
+
218
+ ```javascript fileName="src/app.content.mjs" contentDeclarationFormat="esm"
219
+ import { t } from "intlayer";
220
+
221
+ /** @type {import('intlayer').Dictionary} */
222
+ const appContent = {
223
+ key: "app",
224
+ content: {
225
+ viteLogo: t({
226
+ hi: "Vite लोगो",
227
+ en: "Vite logo",
228
+ fr: "Logo Vite",
229
+ es: "Logo Vite",
230
+ }),
231
+ reactLogo: t({
232
+ hi: "React लोगो",
233
+ en: "React logo",
234
+ fr: "Logo React",
235
+ es: "Logo React",
236
+ }),
237
+
238
+ title: "Vite + React",
239
+
240
+ count: t({
241
+ hi: "गिनती है ",
242
+ en: "count is ",
243
+ fr: "le compte est ",
244
+ es: "el recuento es ",
245
+ }),
246
+
247
+ edit:
248
+ t <
249
+ ReactNode >
250
+ {
251
+ // यदि आप अपनी सामग्री में React नोड का उपयोग करते हैं, तो React आयात करना न भूलें
252
+ hi: (
253
+ <>
254
+ <code>src/App.tsx</code> संपादित करें और HMR का परीक्षण करने के लिए
255
+ सहेजें
256
+ </>
257
+ ),
258
+ en: (
259
+ <>
260
+ Edit <code>src/App.tsx</code> and save to test HMR
261
+ </>
262
+ ),
263
+ fr: (
264
+ <>
265
+ Éditez <code>src/App.tsx</code> et enregistrez pour tester HMR
266
+ </>
267
+ ),
268
+ es: (
269
+ <>
270
+ Edita <code>src/App.tsx</code> y guarda para probar HMR
271
+ </>
272
+ ),
273
+ },
274
+
275
+ readTheDocs: t({
276
+ hi: "अधिक जानने के लिए Vite और React लोगो पर क्लिक करें",
277
+ en: "Click on the Vite and React logos to learn more",
278
+ fr: "Cliquez sur les logos Vite et React pour en savoir plus",
279
+ es: "Haga clic en los logotipos de Vite y React para obtener más información",
280
+ }),
281
+ },
282
+ };
283
+
284
+ export default appContent;
285
+ ```
286
+
287
+ {
288
+ "$schema": "https://intlayer.org/schema.json",
289
+ "key": "app",
290
+ "content": {
291
+ "viteLogo": {
292
+ "nodeType": "translation",
293
+ "translation": {
294
+ "hi": "Vite लोगो",
295
+ "en": "Vite logo",
296
+ "fr": "Logo Vite",
297
+ "es": "Logo Vite"
298
+ }
299
+ },
300
+ "reactLogo": {
301
+ "nodeType": "translation",
302
+ "translation": {
303
+ "hi": "React लोगो",
304
+ "en": "React logo",
305
+ "fr": "Logo React",
306
+ "es": "Logo React"
307
+ }
308
+ },
309
+ "title": {
310
+ "nodeType": "translation",
311
+ "translation": {
312
+ "hi": "Vite + React",
313
+ "en": "Vite + React",
314
+ "fr": "Vite + React",
315
+ "es": "Vite + React"
316
+ }
317
+ },
318
+ "count": {
319
+ "nodeType": "translation",
320
+ "translation": {
321
+ "hi": "गणना है ",
322
+ "en": "count is ",
323
+ "fr": "le compte est ",
324
+ "es": "el recuento es "
325
+ }
326
+ },
327
+ "edit": {
328
+ "nodeType": "translation",
329
+ "translation": {
330
+ "hi": "src/App.tsx संपादित करें और HMR का परीक्षण करने के लिए सहेजें",
331
+ "en": "Edit src/App.tsx and save to test HMR",
332
+ "fr": "Éditez src/App.tsx et enregistrez pour tester HMR",
333
+ "es": "Edita src/App.tsx y guarda para probar HMR"
334
+ }
335
+ },
336
+ "readTheDocs": {
337
+ "nodeType": "translation",
338
+ "translation": {
339
+ "hi": "अधिक जानने के लिए Vite और React लोगो पर क्लिक करें",
340
+ "en": "Click on the Vite and React logos to learn more",
341
+ "fr": "Cliquez sur les logos Vite et React pour en savoir plus",
342
+ "es": "Haga clic en los logotipos de Vite y React para obtener más información"
343
+ }
344
+ }
345
+ }
346
+ }
347
+
348
+ ````
349
+
350
+
351
+ > आपकी सामग्री घोषणाएँ आपके एप्लिकेशन में कहीं भी परिभाषित की जा सकती हैं, जब तक कि वे `contentDir` निर्देशिका (डिफ़ॉल्ट रूप से, `./src`) में शामिल हैं। और सामग्री घोषणा फ़ाइल एक्सटेंशन से मेल खाती हैं (डिफ़ॉल्ट रूप से, `.content.{json,ts,tsx,js,jsx,mjs,mjx,cjs,cjx}`)।
352
+
353
+ > अधिक विवरण के लिए, [सामग्री घोषणा प्रलेखन](https://github.com/aymericzip/intlayer/blob/main/docs/hi/dictionary/get_started.md) देखें।
354
+
355
+ > यदि आपकी सामग्री फ़ाइल में TSX कोड शामिल है, तो आपको अपनी सामग्री फ़ाइल में `import React from "react";` आयात करने पर विचार करना चाहिए।
356
+
357
+ ### चरण 5: अपने कोड में Intlayer का उपयोग करें
358
+
359
+ अपने एप्लिकेशन में अपनी सामग्री शब्दकोशों तक पहुंचें:
360
+
361
+ ```tsx {5,9} fileName="src/App.tsx" codeFormat="typescript"
362
+ import { useState, type FC } from "react";
363
+ import reactLogo from "./assets/react.svg";
364
+ import viteLogo from "/vite.svg";
365
+ import "./App.css";
366
+ import { IntlayerProvider, useIntlayer } from "react-intlayer";
367
+
368
+ const AppContent: FC = () => {
369
+ const [count, setCount] = useState(0);
370
+ const content = useIntlayer("app");
371
+
372
+ return (
373
+ <>
374
+ <div>
375
+ <a href="https://vitejs.dev" target="_blank">
376
+ <img src={viteLogo} className="logo" alt={content.viteLogo.value} />
377
+ </a>
378
+ <a href="https://react.dev" target="_blank">
379
+ <img
380
+ src={reactLogo}
381
+ className="logo react"
382
+ alt={content.reactLogo.value}
383
+ />
384
+ </a>
385
+ </div>
386
+ <h1>{content.title}</h1>
387
+ <div className="card">
388
+ <button onClick={() => setCount((count) => count + 1)}>
389
+ {content.count}
390
+ {count}
391
+ </button>
392
+ <p>{content.edit}</p>
393
+ </div>
394
+ <p className="read-the-docs">{content.readTheDocs}</p>
395
+ </>
396
+ );
397
+ };
398
+
399
+ const App: FC = () => (
400
+ <IntlayerProvider>
401
+ <AppContent />
402
+ </IntlayerProvider>
403
+ );
404
+
405
+ export default App;
406
+ ````
407
+
408
+ ```tsx {5,9} fileName="src/App.msx" codeFormat="esm"
409
+ import { useState } from "react";
410
+ import reactLogo from "./assets/react.svg";
411
+ import viteLogo from "/vite.svg";
412
+ import "./App.css";
413
+ import { IntlayerProvider, useIntlayer } from "react-intlayer";
414
+
415
+ const AppContent = () => {
416
+ const [count, setCount] = useState(0);
417
+ const content = useIntlayer("app");
418
+
419
+ return (
420
+ <>
421
+ <div>
422
+ <a href="https://vitejs.dev" target="_blank">
423
+ <img src={viteLogo} className="logo" alt={content.viteLogo.value} />
424
+ </a>
425
+ <a href="https://react.dev" target="_blank">
426
+ <img
427
+ src={reactLogo}
428
+ className="logo react"
429
+ alt={content.reactLogo.value}
430
+ />
431
+ </a>
432
+ </div>
433
+ <h1>{content.title}</h1>
434
+ <div className="card">
435
+ <button onClick={() => setCount((count) => count + 1)}>
436
+ {content.count}
437
+ {count}
438
+ </button>
439
+ <p>{content.edit}</p>
440
+ </div>
441
+ <p className="read-the-docs">{content.readTheDocs}</p>
442
+ </>
443
+ );
444
+ };
445
+
446
+ const App = () => (
447
+ <IntlayerProvider>
448
+ <AppContent />
449
+ </IntlayerProvider>
450
+ );
451
+
452
+ export default App;
453
+ ```
454
+
455
+ ```tsx {5,9} fileName="src/App.csx" codeFormat="commonjs"
456
+ const { useState } = require("react");
457
+ const reactLogo = require("./assets/react.svg");
458
+ const viteLogo = require("/vite.svg");
459
+ require("./App.css");
460
+ const { IntlayerProvider, useIntlayer } = require("react-intlayer");
461
+
462
+ const AppContent = () => {
463
+ const [count, setCount] = useState(0);
464
+ const content = useIntlayer("app");
465
+
466
+ return (
467
+ <>
468
+ <div>
469
+ <a href="https://vitejs.dev" target="_blank">
470
+ <img src={viteLogo} className="logo" alt={content.viteLogo.value} />
471
+ </a>
472
+ <a href="https://react.dev" target="_blank">
473
+ <img
474
+ src={reactLogo}
475
+ className="logo react"
476
+ alt={content.reactLogo.value}
477
+ />
478
+ </a>
479
+ </div>
480
+ <h1>{content.title}</h1>
481
+ <div className="card">
482
+ <button onClick={() => setCount((count) => count + 1)}>
483
+ {content.count}
484
+ {count}
485
+ </button>
486
+ <p>{content.edit}</p>
487
+ </div>
488
+ <p className="read-the-docs">{content.readTheDocs}</p>
489
+ </>
490
+ );
491
+ };
492
+
493
+ const App = () => (
494
+ <IntlayerProvider>
495
+ <AppContent />
496
+ </IntlayerProvider>
497
+ );
498
+
499
+ module.exports = App;
500
+ ```
501
+
502
+ > यदि आप अपनी सामग्री को `string` विशेषता में उपयोग करना चाहते हैं, जैसे `alt`, `title`, `href`, `aria-label`, आदि, तो आपको फ़ंक्शन के मान को कॉल करना होगा, जैसे:
503
+
504
+ > ```jsx
505
+ >
506
+ > ```
507
+
508
+ > <img src={content.image.src.value} alt={content.image.value} />
509
+
510
+ > ```
511
+ >
512
+ > ```
513
+
514
+ > `useIntlayer` हुक के बारे में अधिक जानने के लिए, [प्रलेखन](https://github.com/aymericzip/intlayer/blob/main/docs/hi/packages/react-intlayer/useIntlayer.md) देखें।
515
+
516
+ ### (वैकल्पिक) चरण 6: अपनी सामग्री की भाषा बदलें
517
+
518
+ अपनी सामग्री की भाषा बदलने के लिए, आप `useLocale` हुक द्वारा प्रदान किए गए `setLocale` फ़ंक्शन का उपयोग कर सकते हैं। यह फ़ंक्शन आपको एप्लिकेशन की भाषा सेट करने और सामग्री को तदनुसार अपडेट करने की अनुमति देता है।
519
+
520
+ ```tsx fileName="src/components/LocaleSwitcher.tsx" codeFormat="typescript"
521
+ import type { FC } from "react";
522
+ import { Locales } from "intlayer";
523
+ import { useLocale } from "react-intlayer";
524
+
525
+ const LocaleSwitcher: FC = () => {
526
+ const { setLocale } = useLocale();
527
+
528
+ return (
529
+ <button onClick={() => setLocale(Locales.Hindi)}>
530
+ भाषा हिंदी में बदलें
531
+ </button>
532
+ );
533
+ };
534
+ ```
535
+
536
+ ```jsx fileName="src/components/LocaleSwitcher.msx" codeFormat="esm"
537
+ import { Locales } from "intlayer";
538
+ import { useLocale } from "react-intlayer";
539
+
540
+ const LocaleSwitcher = () => {
541
+ const { setLocale } = useLocale();
542
+
543
+ return (
544
+ <button onClick={() => setLocale(Locales.Hindi)}>
545
+ भाषा हिंदी में बदलें
546
+ </button>
547
+ );
548
+ };
549
+ ```
550
+
551
+ ```jsx fileName="src/components/LocaleSwitcher.csx" codeFormat="commonjs"
552
+ const { Locales } = require("intlayer");
553
+
554
+ const { useLocale } = require("react-intlayer");
555
+
556
+ const LocaleSwitcher = () => {
557
+ const { setLocale } = useLocale();
558
+
559
+ return (
560
+ <button onClick={() => setLocale(Locales.English)}>
561
+ भाषा को अंग्रेज़ी में बदलें
562
+ </button>
563
+ );
564
+ };
565
+ ```
566
+
567
+ > `useLocale` हुक के बारे में अधिक जानने के लिए, [डॉक्यूमेंटेशन](https://github.com/aymericzip/intlayer/blob/main/docs/hi/packages/react-intlayer/useLocale.md) देखें।
568
+
569
+ ### (वैकल्पिक) चरण 7: अपने एप्लिकेशन में स्थानीयकृत रूटिंग जोड़ें
570
+
571
+ इस चरण का उद्देश्य प्रत्येक भाषा के लिए अद्वितीय रूट्स बनाना है। यह SEO और SEO-अनुकूल URLs के लिए उपयोगी है।
572
+ उदाहरण:
573
+
574
+ ```plaintext
575
+ - https://example.com/about
576
+ - https://example.com/es/about
577
+ - https://example.com/fr/about
578
+ ```
579
+
580
+ > डिफ़ॉल्ट रूप से, रूट्स डिफ़ॉल्ट लोकेल के लिए प्रीफिक्स नहीं होते हैं। यदि आप डिफ़ॉल्ट लोकेल को प्रीफिक्स करना चाहते हैं, तो आप अपनी कॉन्फ़िगरेशन में `middleware.prefixDefault` विकल्प को `true` पर सेट कर सकते हैं। अधिक जानकारी के लिए [कॉन्फ़िगरेशन डॉक्स](https://github.com/aymericzip/intlayer/blob/main/docs/hi/configuration.md) देखें।
581
+
582
+ अपने एप्लिकेशन में स्थानीयकृत रूटिंग जोड़ने के लिए, आप एक `LocaleRouter` घटक बना सकते हैं जो आपके एप्लिकेशन के रूट्स को लपेटता है और लोकेल-आधारित रूटिंग को संभालता है। यहाँ [React Router](https://reactrouter.com/home) का उपयोग करते हुए एक उदाहरण है:
583
+
584
+ ```tsx fileName="src/components/LocaleRouter.tsx" codeFormat="typescript"
585
+ // आवश्यक डिपेंडेंसी और फ़ंक्शन्स को इम्पोर्ट करना
586
+ import { configuration, getPathWithoutLocale } from "intlayer"; // 'intlayer' से यूटिलिटी फ़ंक्शन्स और प्रकार
587
+ import type { FC, PropsWithChildren } from "react"; // फ़ंक्शनल कंपोनेंट्स और प्रॉप्स के लिए React प्रकार
588
+ import { IntlayerProvider } from "react-intlayer"; // अंतर्राष्ट्रीयकरण संदर्भ के लिए प्रोवाइडर
589
+ import {
590
+ BrowserRouter,
591
+ Routes,
592
+ Route,
593
+ Navigate,
594
+ useLocation,
595
+ } from "react-router-dom"; // नेविगेशन प्रबंधन के लिए राउटर घटक
596
+
597
+ // Intlayer से कॉन्फ़िगरेशन को डेस्ट्रक्चर करना
598
+ const { internationalization, middleware } = configuration;
599
+ const { locales, defaultLocale } = internationalization;
600
+
601
+ /**
602
+ * एक घटक जो स्थानीयकरण को संभालता है और बच्चों को उपयुक्त लोकेल संदर्भ के साथ लपेटता है।
603
+ * यह URL-आधारित लोकेल डिटेक्शन और वैलिडेशन का प्रबंधन करता है।
604
+ */
605
+ const AppLocalized: FC<PropsWithChildren<{ locale: Locales }>> = ({
606
+ children,
607
+ locale,
608
+ }) => {
609
+ const { pathname, search } = useLocation(); // वर्तमान URL पथ प्राप्त करें
610
+
611
+ // वर्तमान लोकेल निर्धारित करें, यदि प्रदान नहीं किया गया है तो डिफ़ॉल्ट पर वापस जाएं
612
+ const currentLocale = locale ?? defaultLocale;
613
+
614
+ // पथ से लोकेल प्रीफिक्स को हटाकर एक बेस पथ बनाएं
615
+ const pathWithoutLocale = getPathWithoutLocale(
616
+ pathname // वर्तमान URL पथ
617
+ );
618
+
619
+ /**
620
+ * यदि middleware.prefixDefault सत्य है, तो डिफ़ॉल्ट लोकेल को हमेशा प्रीफिक्स किया जाना चाहिए।
621
+ */
622
+ if (middleware.prefixDefault) {
623
+ // लोकेल को वैलिडेट करें
624
+ if (!locale || !locales.includes(locale)) {
625
+ // अपडेटेड पथ के साथ डिफ़ॉल्ट लोकेल पर रीडायरेक्ट करें
626
+ return (
627
+ <Navigate
628
+ to={`/${defaultLocale}/${pathWithoutLocale}${search}`}
629
+ replace // वर्तमान इतिहास प्रविष्टि को नए के साथ बदलें
630
+ />
631
+ );
632
+ }
633
+
634
+ // बच्चों को IntlayerProvider के साथ लपेटें और वर्तमान लोकेल सेट करें
635
+ return (
636
+ <IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
637
+ );
638
+ } else {
639
+ /**
640
+ * जब middleware.prefixDefault झूठा है, तो डिफ़ॉल्ट लोकेल को प्रीफिक्स नहीं किया जाता है।
641
+ * सुनिश्चित करें कि वर्तमान लोकेल वैध है और डिफ़ॉल्ट लोकेल नहीं है।
642
+ */
643
+ if (
644
+ currentLocale.toString() !== defaultLocale.toString() &&
645
+ !locales
646
+ .filter(
647
+ (locale) => locale.toString() !== defaultLocale.toString() // डिफ़ॉल्ट लोकेल को बाहर करें
648
+ )
649
+ .includes(currentLocale) // जांचें कि वर्तमान लोकेल वैध लोकेल की सूची में है
650
+ ) {
651
+ // लोकेल प्रीफिक्स के बिना पथ पर रीडायरेक्ट करें
652
+ return <Navigate to={`${pathWithoutLocale}${search}`} replace />;
653
+ }
654
+
655
+ // बच्चों को IntlayerProvider के साथ लपेटें और वर्तमान लोकेल सेट करें
656
+ return (
657
+ <IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
658
+ );
659
+ }
660
+ };
661
+
662
+ /**
663
+ * एक राउटर घटक जो लोकेल-विशिष्ट रूट्स सेट करता है।
664
+ * यह नेविगेशन प्रबंधन और स्थानीयकृत घटकों को रेंडर करने के लिए React Router का उपयोग करता है।
665
+ */
666
+ export const LocaleRouter: FC<PropsWithChildren> = ({ children }) => (
667
+ <BrowserRouter>
668
+ <Routes>
669
+ {locales
670
+ .filter(
671
+ (locale) => middleware.prefixDefault || locale !== defaultLocale
672
+ )
673
+ .map((locale) => (
674
+ <Route
675
+ // लोकेल को कैप्चर करने के लिए रूट पैटर्न (जैसे, /en/, /fr/) और सभी सब्सीक्वेंट पथों से मेल खाता है
676
+ path={`/${locale}/*`}
677
+ key={locale}
678
+ element={<AppLocalized locale={locale}>{children}</AppLocalized>} // बच्चों को लोकेल प्रबंधन के साथ लपेटता है
679
+ />
680
+ ))}
681
+
682
+ {
683
+ // यदि डिफ़ॉल्ट लोकेल को प्रीफिक्स करना अक्षम है, तो बच्चों को सीधे रूट पथ पर रेंडर करें
684
+ !middleware.prefixDefault && (
685
+ <Route
686
+ path="*"
687
+ element={
688
+ <AppLocalized locale={defaultLocale}>{children}</AppLocalized>
689
+ } // बच्चों को लोकेल प्रबंधन के साथ लपेटता है
690
+ />
691
+ )
692
+ }
693
+ </Routes>
694
+ </BrowserRouter>
695
+ );
696
+ ```
697
+
698
+ ```jsx fileName="src/components/LocaleRouter.mjx" codeFormat="esm"
699
+ // आवश्यक डिपेंडेंसी और फ़ंक्शन्स को इम्पोर्ट करना
700
+ import { configuration, getPathWithoutLocale } from "intlayer"; // 'intlayer' से यूटिलिटी फ़ंक्शन्स और प्रकार
701
+ import { IntlayerProvider } from "react-intlayer"; // अंतर्राष्ट्रीयकरण संदर्भ के लिए प्रोवाइडर
702
+ import {
703
+ BrowserRouter,
704
+ Routes,
705
+ Route,
706
+ Navigate,
707
+ useLocation,
708
+ } from "react-router-dom"; // नेविगेशन प्रबंधन के लिए राउटर घटक
709
+
710
+ // Intlayer से कॉन्फ़िगरेशन को डेस्ट्रक्चर करना
711
+ const { internationalization, middleware } = configuration;
712
+ const { locales, defaultLocale } = internationalization;
713
+
714
+ /**
715
+ * एक घटक जो स्थानीयकरण को संभालता है और बच्चों को उपयुक्त लोकेल संदर्भ के साथ लपेटता है।
716
+ * यह URL-आधारित लोकेल डिटेक्शन और वैलिडेशन का प्रबंधन करता है।
717
+ */
718
+ const AppLocalized = ({ children, locale }) => {
719
+ const { pathname, search } = useLocation(); // वर्तमान URL पथ प्राप्त करें
720
+
721
+ // वर्तमान लोकेल निर्धारित करें, यदि प्रदान नहीं किया गया है तो डिफ़ॉल्ट पर वापस जाएं
722
+ const currentLocale = locale ?? defaultLocale;
723
+
724
+ // पथ से लोकेल प्रीफिक्स को हटाकर एक बेस पथ बनाएं
725
+ const pathWithoutLocale = getPathWithoutLocale(
726
+ pathname // वर्तमान URL पथ
727
+ );
728
+
729
+ /**
730
+ * यदि middleware.prefixDefault सत्य है, तो डिफ़ॉल्ट लोकेल को हमेशा प्रीफिक्स किया जाना चाहिए।
731
+ */
732
+ if (middleware.prefixDefault) {
733
+ // लोकेल को वैलिडेट करें
734
+ if (!locale || !locales.includes(locale)) {
735
+ // अपडेटेड पथ के साथ डिफ़ॉल्ट लोकेल पर रीडायरेक्ट करें
736
+ return (
737
+ <Navigate
738
+ to={`/${defaultLocale}/${pathWithoutLocale}${search}`}
739
+ replace // वर्तमान इतिहास प्रविष्टि को नए के साथ बदलें
740
+ />
741
+ );
742
+ }
743
+
744
+ // बच्चों को IntlayerProvider के साथ लपेटें और वर्तमान लोकेल सेट करें
745
+ return (
746
+ <IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
747
+ );
748
+ } else {
749
+ /**
750
+ * जब middleware.prefixDefault झूठा है, तो डिफ़ॉल्ट लोकेल को प्रीफिक्स नहीं किया जाता है।
751
+ * सुनिश्चित करें कि वर्तमान लोकेल वैध है और डिफ़ॉल्ट लोकेल नहीं है।
752
+ */
753
+ if (
754
+ currentLocale.toString() !== defaultLocale.toString() &&
755
+ !locales
756
+ .filter(
757
+ (locale) => locale.toString() !== defaultLocale.toString() // डिफ़ॉल्ट लोकेल को बाहर करें
758
+ )
759
+ .includes(currentLocale) // जांचें कि वर्तमान लोकेल वैध लोकेल की सूची में है
760
+ ) {
761
+ // लोकेल प्रीफिक्स के बिना पथ पर रीडायरेक्ट करें
762
+ return <Navigate to={`${pathWithoutLocale}${search}`} replace />;
763
+ }
764
+
765
+ // बच्चों को IntlayerProvider के साथ लपेटें और वर्तमान लोकेल सेट करें
766
+ return (
767
+ <IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
768
+ );
769
+ }
770
+ };
771
+
772
+ /**
773
+ * एक राउटर घटक जो लोकेल-विशिष्ट रूट्स सेट करता है।
774
+ * यह नेविगेशन प्रबंधन और स्थानीयकृत घटकों को रेंडर करने के लिए React Router का उपयोग करता है।
775
+ */
776
+ export const LocaleRouter = ({ children }) => (
777
+ <BrowserRouter>
778
+ <Routes>
779
+ {locales
780
+ .filter(
781
+ (locale) => middleware.prefixDefault || locale !== defaultLocale
782
+ )
783
+ .map((locale) => (
784
+ <Route
785
+ // लोकेल को कैप्चर करने के लिए रूट पैटर्न (जैसे, /en/, /fr/) और सभी उपरांत पथों से मेल खाता है
786
+ path={`/${locale}/*`}
787
+ key={locale}
788
+ element={<AppLocalized locale={locale}>{children}</AppLocalized>} // बच्चों को लोकेल प्रबंधन के साथ रैप करता है
789
+ />
790
+ ))}
791
+
792
+ {
793
+ // यदि डिफ़ॉल्ट लोकेल को प्रीफिक्स करना अक्षम है, तो बच्चों को सीधे रूट पथ पर रेंडर करें
794
+ !middleware.prefixDefault && (
795
+ <Route
796
+ path="*"
797
+ element={
798
+ <AppLocalized locale={defaultLocale}>{children}</AppLocalized>
799
+ } // बच्चों को लोकेल प्रबंधन के साथ रैप करता है
800
+ />
801
+ )
802
+ }
803
+ </Routes>
804
+ </BrowserRouter>
805
+ );
806
+ ```
807
+
808
+ ```jsx fileName="src/components/LocaleRouter.cjx" codeFormat="commonjs"
809
+ // आवश्यक डिपेंडेंसी और फ़ंक्शन्स को इम्पोर्ट करना
810
+ const { configuration, getPathWithoutLocale } = require("intlayer"); // 'intlayer' से यूटिलिटी फ़ंक्शन्स और प्रकार
811
+ const { IntlayerProvider, useLocale } = require("react-intlayer"); // अंतर्राष्ट्रीयकरण संदर्भ के लिए प्रोवाइडर
812
+ const {
813
+ BrowserRouter,
814
+ Routes,
815
+ Route,
816
+ Navigate,
817
+ useLocation,
818
+ } = require("react-router-dom"); // नेविगेशन प्रबंधन के लिए राउटर घटक
819
+
820
+ // Intlayer से कॉन्फ़िगरेशन को डीस्ट्रक्चर करना
821
+ const { internationalization, middleware } = configuration;
822
+ const { locales, defaultLocale } = internationalization;
823
+
824
+ /**
825
+ * एक घटक जो स्थानीयकरण को संभालता है और बच्चों को उपयुक्त लोकेल संदर्भ के साथ रैप करता है।
826
+ * यह URL-आधारित लोकेल डिटेक्शन और वैलिडेशन को प्रबंधित करता है।
827
+ */
828
+ const AppLocalized = ({ children, locale }) => {
829
+ const { pathname, search } = useLocation(); // वर्तमान URL पथ प्राप्त करें
830
+
831
+ // वर्तमान लोकेल निर्धारित करें, यदि प्रदान नहीं किया गया है तो डिफ़ॉल्ट पर वापस जाएं
832
+ const currentLocale = locale ?? defaultLocale;
833
+
834
+ // पथ से लोकेल प्रीफिक्स को हटाकर एक बेस पथ बनाएं
835
+ const pathWithoutLocale = getPathWithoutLocale(
836
+ pathname // वर्तमान URL पथ
837
+ );
838
+
839
+ /**
840
+ * यदि middleware.prefixDefault सत्य है, तो डिफ़ॉल्ट लोकेल को हमेशा प्रीफिक्स किया जाना चाहिए।
841
+ */
842
+ if (middleware.prefixDefault) {
843
+ // लोकेल को वैलिडेट करें
844
+ if (!locale || !locales.includes(locale)) {
845
+ // डिफ़ॉल्ट लोकेल के साथ अपडेटेड पथ पर रीडायरेक्ट करें
846
+ return (
847
+ <Navigate
848
+ to={`/${defaultLocale}/${pathWithoutLocale}${search}`}
849
+ replace // वर्तमान इतिहास प्रविष्टि को नए के साथ बदलें
850
+ />
851
+ );
852
+ }
853
+
854
+ // बच्चों को IntlayerProvider के साथ रैप करें और वर्तमान लोकेल सेट करें
855
+ return (
856
+ <IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
857
+ );
858
+ } else {
859
+ /**
860
+ * जब middleware.prefixDefault झूठा है, तो डिफ़ॉल्ट लोकेल को प्रीफिक्स नहीं किया जाता है।
861
+ * सुनिश्चित करें कि वर्तमान लोकेल वैध है और डिफ़ॉल्ट लोकेल नहीं है।
862
+ */
863
+ if (
864
+ currentLocale.toString() !== defaultLocale.toString() &&
865
+ !locales
866
+ .filter(
867
+ (locale) => locale.toString() !== defaultLocale.toString() // डिफ़ॉल्ट लोकेल को बाहर करें
868
+ )
869
+ .includes(currentLocale) // जांचें कि वर्तमान लोकेल वैध लोकेल की सूची में है
870
+ ) {
871
+ // लोकेल प्रीफिक्स के बिना पथ पर रीडायरेक्ट करें
872
+ return <Navigate to={`${pathWithoutLocale}${search}`} replace />;
873
+ }
874
+
875
+ // बच्चों को IntlayerProvider के साथ रैप करें और वर्तमान लोकेल सेट करें
876
+ return (
877
+ <IntlayerProvider locale={currentLocale}>{children}</IntlayerProvider>
878
+ );
879
+ }
880
+ };
881
+
882
+ /**
883
+ * एक राउटर घटक जो लोकेल-विशिष्ट रूट्स सेट करता है।
884
+ * यह नेविगेशन प्रबंधन और स्थानीयकृत घटकों को रेंडर करने के लिए React Router का उपयोग करता है।
885
+ */
886
+ const LocaleRouter = ({ children }) => (
887
+ <BrowserRouter>
888
+ <Routes>
889
+ {locales
890
+ .filter(
891
+ (locale) => middleware.prefixDefault || locale !== defaultLocale
892
+ )
893
+ .map((locale) => (
894
+ <Route
895
+ // लोकेल को कैप्चर करने के लिए रूट पैटर्न (जैसे, /en/, /fr/) और सभी उपरांत पथों से मेल खाता है
896
+ path={`/${locale}/*`}
897
+ key={locale}
898
+ element={<AppLocalized locale={locale}>{children}</AppLocalized>} // बच्चों को लोकेल प्रबंधन के साथ रैप करता है
899
+ />
900
+ ))}
901
+
902
+ {
903
+ // यदि डिफ़ॉल्ट लोकेल को प्रीफिक्स करना अक्षम है, तो बच्चों को सीधे रूट पथ पर रेंडर करें
904
+ !middleware.prefixDefault && (
905
+ <Route
906
+ path="*"
907
+ element={
908
+ <AppLocalized locale={defaultLocale}>{children}</AppLocalized>
909
+ } // बच्चों को लोकेल प्रबंधन के साथ रैप करता है
910
+ />
911
+ )
912
+ }
913
+ </Routes>
914
+ </BrowserRouter>
915
+ );
916
+ ```
917
+
918
+ फिर, आप अपने एप्लिकेशन में `LocaleRouter` घटक का उपयोग कर सकते हैं:
919
+
920
+ ```tsx fileName="src/App.tsx" codeFormat="typescript"
921
+ import { LocaleRouter } from "./components/LocaleRouter";
922
+ import type { FC } from "react";
923
+
924
+ // ... आपका AppContent घटक
925
+
926
+ const App: FC = () => (
927
+ <LocaleRouter>
928
+ <AppContent />
929
+ </LocaleRouter>
930
+ );
931
+ ```
932
+
933
+ ```jsx fileName="src/App.mjx" codeFormat="esm"
934
+ import { LocaleRouter } from "./components/LocaleRouter";
935
+
936
+ // ... आपका AppContent घटक
937
+
938
+ const App = () => (
939
+ <LocaleRouter>
940
+ <AppContent />
941
+ </LocaleRouter>
942
+ );
943
+ ```
944
+
945
+ ```jsx fileName="src/App.cjx" codeFormat="commonjs"
946
+ const { LocaleRouter } = require("./components/LocaleRouter");
947
+
948
+ // ... आपका AppContent घटक
949
+
950
+ const App = () => (
951
+ <LocaleRouter>
952
+ <AppContent />
953
+ </LocaleRouter>
954
+ );
955
+ ```
956
+
957
+ साथ ही, आप अपने एप्लिकेशन में सर्वर-साइड रूटिंग जोड़ने के लिए `intLayerMiddlewarePlugin` का उपयोग कर सकते हैं। यह प्लगइन URL के आधार पर वर्तमान लोकेल का स्वतः पता लगाएगा और उपयुक्त लोकेल कुकी सेट करेगा। यदि कोई लोकेल निर्दिष्ट नहीं है, तो यह उपयोगकर्ता के ब्राउज़र भाषा प्राथमिकताओं के आधार पर सबसे उपयुक्त लोकेल निर्धारित करेगा। यदि कोई लोकेल नहीं मिली, तो यह डिफ़ॉल्ट लोकेल पर रीडायरेक्ट करेगा।
958
+
959
+ ```typescript {3,7} fileName="vite.config.ts" codeFormat="typescript"
960
+ import { defineConfig } from "vite";
961
+ import react from "@vitejs/plugin-react-swc";
962
+ import { intlayerPlugin, intLayerMiddlewarePlugin } from "vite-intlayer";
963
+
964
+ // https://vitejs.dev/config/
965
+ export default defineConfig({
966
+ plugins: [react(), intlayerPlugin(), intLayerMiddlewarePlugin()],
967
+ });
968
+ ```
969
+
970
+ ```javascript {3,7} fileName="vite.config.mjs" codeFormat="esm"
971
+ import { defineConfig } from "vite";
972
+ import react from "@vitejs/plugin-react-swc";
973
+ import { intlayerPlugin, intLayerMiddlewarePlugin } from "vite-intlayer";
974
+
975
+ // https://vitejs.dev/config/
976
+ export default defineConfig({
977
+ plugins: [react(), intlayerPlugin(), intLayerMiddlewarePlugin()],
978
+ });
979
+ ```
980
+
981
+ ```javascript {5,10} fileName="vite.config.cjs" codeFormat="commonjs"
982
+ const { defineConfig } = require("vite");
983
+ const react = require("@vitejs/plugin-react-swc");
984
+ const { intlayerPlugin, intLayerMiddlewarePlugin } = require("vite-intlayer");
985
+
986
+ // https://vitejs.dev/config/
987
+ module.exports = defineConfig({
988
+ plugins: [react(), intlayerPlugin(), intLayerMiddlewarePlugin()],
989
+ });
990
+ ```
991
+
992
+ ### (वैकल्पिक) चरण 8: जब लोकेल बदलती है तो URL बदलें
993
+
994
+ जब लोकेल बदलती है तो URL बदलने के लिए, आप `useLocale` हुक द्वारा प्रदान किए गए `onLocaleChange` प्रॉप का उपयोग कर सकते हैं। साथ ही, आप URL पथ को अपडेट करने के लिए `react-router-dom` से `useLocation` और `useNavigate` हुक का उपयोग कर सकते हैं।
995
+
996
+ ```tsx fileName="src/components/LocaleSwitcher.tsx" codeFormat="typescript"
997
+ import { useLocation, useNavigate } from "react-router-dom";
998
+ import {
999
+ Locales,
1000
+ getHTMLTextDir,
1001
+ getLocaleName,
1002
+ getLocalizedUrl,
1003
+ } from "intlayer";
1004
+ import { useLocale } from "react-intlayer";
1005
+ import { type FC } from "react";
1006
+
1007
+ const LocaleSwitcher: FC = () => {
1008
+ const { pathname, search } = useLocation(); // वर्तमान URL पथ प्राप्त करें। उदाहरण: /fr/about?foo=bar
1009
+ const navigate = useNavigate();
1010
+
1011
+ const { locale, availableLocales, setLocale } = useLocale({
1012
+ onLocaleChange: (locale) => {
1013
+ // अद्यतनित लोकेल के साथ URL का निर्माण करें
1014
+ // उदाहरण: /es/about?foo=bar
1015
+ const pathWithLocale = getLocalizedUrl(`${pathname}${search}`, locale);
1016
+
1017
+ // URL पथ को अपडेट करें
1018
+ navigate(pathWithLocale);
1019
+ },
1020
+ });
1021
+
1022
+ return (
1023
+ <div>
1024
+ <button popoverTarget="localePopover">{getLocaleName(locale)}</button>
1025
+ <div id="localePopover" popover="auto">
1026
+ {availableLocales.map((localeItem) => (
1027
+ <a
1028
+ href={getLocalizedUrl(location.pathname, localeItem)}
1029
+ hrefLang={localeItem}
1030
+ aria-current={locale === localeItem ? "page" : undefined}
1031
+ onClick={(e) => {
1032
+ e.preventDefault();
1033
+ setLocale(localeItem);
1034
+ }}
1035
+ key={localeItem}
1036
+ >
1037
+ <span>
1038
+ {/* लोकेल - जैसे FR */}
1039
+ {localeItem}
1040
+ </span>
1041
+ <span>
1042
+ {/* अपनी लोकेल में भाषा - जैसे Français */}
1043
+ {getLocaleName(localeItem, locale)}
1044
+ </span>
1045
+ <span dir={getHTMLTextDir(localeItem)} lang={localeItem}>
1046
+ {/* वर्तमान लोकेल में भाषा - जैसे Francés जब वर्तमान लोकेल Locales.SPANISH पर सेट हो */}
1047
+ {getLocaleName(localeItem)}
1048
+ </span>
1049
+ <span dir="ltr" lang={Locales.ENGLISH}>
1050
+ {/* अंग्रेजी में भाषा - जैसे French */}
1051
+ {getLocaleName(localeItem, Locales.ENGLISH)}
1052
+ </span>
1053
+ </a>
1054
+ ))}
1055
+ </div>
1056
+ </div>
1057
+ );
1058
+ };
1059
+ ```
1060
+
1061
+ ```jsx fileName="src/components/LocaleSwitcher.msx" codeFormat="esm"
1062
+ import { useLocation, useNavigate } from "react-router-dom";
1063
+ import {
1064
+ Locales,
1065
+ getHTMLTextDir,
1066
+ getLocaleName,
1067
+ getLocalizedUrl,
1068
+ } from "intlayer";
1069
+ import { useLocale } from "react-intlayer";
1070
+
1071
+ const LocaleSwitcher = () => {
1072
+ const { pathname, search } = useLocation(); // वर्तमान URL पथ प्राप्त करें। उदाहरण: /fr/about?foo=bar
1073
+ const navigate = useNavigate();
1074
+
1075
+ const { locale, availableLocales, setLocale } = useLocale({
1076
+ onLocaleChange: (locale) => {
1077
+ // अद्यतनित लोकेल के साथ URL का निर्माण करें
1078
+ // उदाहरण: /es/about?foo=bar
1079
+ const pathWithLocale = getLocalizedUrl(`${pathname}${search}`, locale);
1080
+
1081
+ // URL पथ को अपडेट करें
1082
+ navigate(pathWithLocale);
1083
+ },
1084
+ });
1085
+
1086
+ return (
1087
+ <div>
1088
+ <button popoverTarget="localePopover">{getLocaleName(locale)}</button>
1089
+ <div id="localePopover" popover="auto">
1090
+ {availableLocales.map((localeItem) => (
1091
+ <a
1092
+ href={getLocalizedUrl(location.pathname, localeItem)}
1093
+ hrefLang={localeItem}
1094
+ aria-current={locale === localeItem ? "page" : undefined}
1095
+ onClick={(e) => {
1096
+ e.preventDefault();
1097
+ setLocale(localeItem);
1098
+ }}
1099
+ key={localeItem}
1100
+ >
1101
+ <span>
1102
+ {/* लोकेल - जैसे FR */}
1103
+ {localeItem}
1104
+ </span>
1105
+ <span>
1106
+ {/* अपनी लोकेल में भाषा - जैसे Français */}
1107
+ {getLocaleName(localeItem, locale)}
1108
+ </span>
1109
+ <span dir={getHTMLTextDir(localeItem)} lang={localeItem}>
1110
+ {/* वर्तमान लोकेल में भाषा - जैसे Francés जब वर्तमान लोकेल Locales.SPANISH पर सेट हो */}
1111
+ {getLocaleName(localeItem)}
1112
+ </span>
1113
+ <span dir="ltr" lang={Locales.ENGLISH}>
1114
+ {/* अंग्रेजी में भाषा - जैसे French */}
1115
+ {getLocaleName(localeItem, Locales.ENGLISH)}
1116
+ </span>
1117
+ </a>
1118
+ ))}
1119
+ </div>
1120
+ </div>
1121
+ );
1122
+ };
1123
+ ```
1124
+
1125
+ ```jsx fileName="src/components/LocaleSwitcher.csx" codeFormat="commonjs"
1126
+ const { useLocation, useNavigate } = require("react-router-dom");
1127
+ const {
1128
+ Locales,
1129
+ getHTMLTextDir,
1130
+ getLocaleName,
1131
+ getLocalizedUrl,
1132
+ } = require("intlayer");
1133
+ const { useLocale } = require("react-intlayer");
1134
+
1135
+ const LocaleSwitcher = () => {
1136
+ const { pathname, search } = useLocation(); // वर्तमान URL पथ प्राप्त करें। उदाहरण: /fr/about?foo=bar
1137
+ const navigate = useNavigate();
1138
+
1139
+ const { locale, availableLocales, setLocale } = useLocale({
1140
+ onLocaleChange: (locale) => {
1141
+ // अद्यतनित लोकेल के साथ URL का निर्माण करें
1142
+ // उदाहरण: /es/about?foo=bar
1143
+ const pathWithLocale = getLocalizedUrl(`${pathname}${search}`, locale);
1144
+
1145
+ // URL पथ को अपडेट करें
1146
+ navigate(pathWithLocale);
1147
+ },
1148
+ });
1149
+
1150
+ return (
1151
+ <div>
1152
+ <button popoverTarget="localePopover">{getLocaleName(locale)}</button>
1153
+ <div id="localePopover" popover="auto">
1154
+ {availableLocales.map((localeItem) => (
1155
+ <a
1156
+ href={getLocalizedUrl(location.pathname, localeItem)}
1157
+ hrefLang={localeItem}
1158
+ aria-current={locale === localeItem ? "page" : undefined}
1159
+ onClick={(e) => {
1160
+ e.preventDefault();
1161
+ setLocale(localeItem);
1162
+ }}
1163
+ key={localeItem}
1164
+ >
1165
+ <span>
1166
+ {/* लोकेल - जैसे FR */}
1167
+ {localeItem}
1168
+ </span>
1169
+ <span>
1170
+ {/* अपनी लोकेल में भाषा - जैसे Français */}
1171
+ {getLocaleName(localeItem, locale)}
1172
+ </span>
1173
+ <span dir={getHTMLTextDir(localeItem)} lang={localeItem}>
1174
+ {/* वर्तमान लोकेल में भाषा - जैसे Francés जब वर्तमान लोकेल Locales.SPANISH पर सेट हो */}
1175
+ {getLocaleName(localeItem)}
1176
+ </span>
1177
+ <span dir="ltr" lang={Locales.ENGLISH}>
1178
+ {/* अंग्रेजी में भाषा - जैसे French */}
1179
+ {getLocaleName(localeItem, Locales.ENGLISH)}
1180
+ </span>
1181
+ </a>
1182
+ ))}
1183
+ </div>
1184
+ </div>
1185
+ );
1186
+ };
1187
+ ```
1188
+
1189
+ > दस्तावेज़ संदर्भ:
1190
+
1191
+ > - [`useLocale` हुक](https://github.com/aymericzip/intlayer/blob/main/docs/hi/packages/react-intlayer/useLocale.md)
1192
+
1193
+ > - [`getLocaleName` हुक](https://github.com/aymericzip/intlayer/blob/main/docs/hi/packages/intlayer/getLocaleName.md)
1194
+
1195
+ > - [`getLocalizedUrl` हुक](https://github.com/aymericzip/intlayer/blob/main/docs/hi/packages/intlayer/getLocalizedUrl.md)
1196
+
1197
+ > - [`getHTMLTextDir` हुक](https://github.com/aymericzip/intlayer/blob/main/docs/hi/packages/intlayer/getHTMLTextDir.md)
1198
+
1199
+ > - [`hrefLang` एट्रिब्यूट](https://developers.google.com/search/docs/specialty/international/localized-versions?hl=fr)
1200
+
1201
+ > - [`lang` एट्रिब्यूट](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang)
1202
+
1203
+ > - [`dir` एट्रिब्यूट](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir)
1204
+
1205
+ > - [`aria-current` एट्रिब्यूट](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)
1206
+
1207
+ ---
1208
+
1209
+ ### (वैकल्पिक) चरण 9: HTML भाषा और दिशा एट्रिब्यूट्स को स्विच करें
1210
+
1211
+ जब आपका एप्लिकेशन कई भाषाओं का समर्थन करता है, तो `<html>` टैग के `lang` और `dir` एट्रिब्यूट्स को वर्तमान लोकेल के अनुसार अपडेट करना महत्वपूर्ण है। ऐसा करने से यह सुनिश्चित होता है:
1212
+
1213
+ - **एक्सेसिबिलिटी**: स्क्रीन रीडर्स और सहायक तकनीकें सही `lang` एट्रिब्यूट पर निर्भर करती हैं ताकि सामग्री को सही ढंग से उच्चारित और व्याख्या किया जा सके।
1214
+ - **पाठ रेंडरिंग**: `dir` (दिशा) एट्रिब्यूट यह सुनिश्चित करता है कि पाठ सही क्रम में प्रस्तुत किया गया है (जैसे, अंग्रेजी के लिए बाएं से दाएं, अरबी या हिब्रू के लिए दाएं से बाएं), जो पठनीयता के लिए आवश्यक है।
1215
+ - **एसईओ**: सर्च इंजन आपके पृष्ठ की भाषा निर्धारित करने के लिए `lang` एट्रिब्यूट का उपयोग करते हैं, जिससे खोज परिणामों में सही स्थानीयकृत सामग्री प्रदर्शित करने में मदद मिलती है।
1216
+
1217
+ इन एट्रिब्यूट्स को गतिशील रूप से अपडेट करके जब लोकेल बदलता है, तो आप सभी समर्थित भाषाओं में उपयोगकर्ताओं के लिए एक सुसंगत और सुलभ अनुभव सुनिश्चित करते हैं।
1218
+
1219
+ #### हुक को लागू करना
1220
+
1221
+ HTML एट्रिब्यूट्स को प्रबंधित करने के लिए एक कस्टम हुक बनाएं। हुक लोकेल परिवर्तनों को सुनता है और एट्रिब्यूट्स को तदनुसार अपडेट करता है:
1222
+
1223
+ ```tsx fileName="src/hooks/useI18nHTMLAttributes.tsx" codeFormat="typescript"
1224
+ import { useEffect } from "react";
1225
+ import { useLocale } from "react-intlayer";
1226
+ import { getHTMLTextDir } from "intlayer";
1227
+
1228
+ /**
1229
+
1230
+ * HTML <html> तत्व के `lang` और `dir` गुणों को वर्तमान लोकेल के आधार पर अपडेट करता है।
1231
+ * - `lang`: ब्राउज़र और सर्च इंजन को पेज की भाषा की जानकारी देता है।
1232
+ * - `dir`: सही पढ़ने की दिशा सुनिश्चित करता है (जैसे, अंग्रेजी के लिए 'ltr', अरबी के लिए 'rtl')।
1233
+ *
1234
+ * यह डायनामिक अपडेट सही टेक्स्ट रेंडरिंग, एक्सेसिबिलिटी और SEO के लिए आवश्यक है।
1235
+ */
1236
+ export const useI18nHTMLAttributes = () => {
1237
+ const { locale } = useLocale();
1238
+
1239
+ useEffect(() => {
1240
+ // भाषा गुण को वर्तमान लोकेल में अपडेट करें।
1241
+ document.documentElement.lang = locale;
1242
+
1243
+ // वर्तमान लोकेल के आधार पर टेक्स्ट दिशा सेट करें।
1244
+ document.documentElement.dir = getHTMLTextDir(locale);
1245
+ }, [locale]);
1246
+ };
1247
+ ```
1248
+
1249
+ ```jsx fileName="src/hooks/useI18nHTMLAttributes.msx" codeFormat="esm"
1250
+ import { useEffect } from "react";
1251
+ import { useLocale } from "react-intlayer";
1252
+ import { getHTMLTextDir } from "intlayer";
1253
+
1254
+ /**
1255
+ * HTML <html> तत्व के `lang` और `dir` गुणों को वर्तमान लोकेल के आधार पर अपडेट करता है।
1256
+ * - `lang`: ब्राउज़र और सर्च इंजन को पेज की भाषा की जानकारी देता है।
1257
+ * - `dir`: सही पढ़ने की दिशा सुनिश्चित करता है (जैसे, अंग्रेजी के लिए 'ltr', अरबी के लिए 'rtl')।
1258
+ *
1259
+ * यह डायनामिक अपडेट सही टेक्स्ट रेंडरिंग, एक्सेसिबिलिटी और SEO के लिए आवश्यक है।
1260
+ */
1261
+ export const useI18nHTMLAttributes = () => {
1262
+ const { locale } = useLocale();
1263
+
1264
+ useEffect(() => {
1265
+ // भाषा गुण को वर्तमान लोकेल में अपडेट करें।
1266
+ document.documentElement.lang = locale;
1267
+
1268
+ // वर्तमान लोकेल के आधार पर टेक्स्ट दिशा सेट करें।
1269
+ document.documentElement.dir = getHTMLTextDir(locale);
1270
+ }, [locale]);
1271
+ };
1272
+ ```
1273
+
1274
+ ```jsx fileName="src/hooks/useI18nHTMLAttributes.csx" codeFormat="commonjs"
1275
+ const { useEffect } = require("react");
1276
+ const { useLocale } = require("react-intlayer");
1277
+ const { getHTMLTextDir } = require("intlayer");
1278
+
1279
+ /**
1280
+ * HTML <html> तत्व के `lang` और `dir` गुणों को वर्तमान लोकेल के आधार पर अपडेट करता है।
1281
+ * - `lang`: ब्राउज़र और सर्च इंजन को पेज की भाषा की जानकारी देता है।
1282
+ * - `dir`: सही पढ़ने की दिशा सुनिश्चित करता है (जैसे, अंग्रेजी के लिए 'ltr', अरबी के लिए 'rtl')।
1283
+ *
1284
+ * यह डायनामिक अपडेट सही टेक्स्ट रेंडरिंग, एक्सेसिबिलिटी और SEO के लिए आवश्यक है।
1285
+ */
1286
+ const useI18nHTMLAttributes = () => {
1287
+ const { locale } = useLocale();
1288
+
1289
+ useEffect(() => {
1290
+ // भाषा गुण को वर्तमान लोकेल में अपडेट करें।
1291
+ document.documentElement.lang = locale;
1292
+
1293
+ // वर्तमान लोकेल के आधार पर टेक्स्ट दिशा सेट करें।
1294
+ document.documentElement.dir = getHTMLTextDir(locale);
1295
+ }, [locale]);
1296
+ };
1297
+
1298
+ module.exports = { useI18nHTMLAttributes };
1299
+ ```
1300
+
1301
+ #### अपने एप्लिकेशन में हुक का उपयोग करना
1302
+
1303
+ अपने मुख्य घटक में हुक को एकीकृत करें ताकि HTML गुण हर बार लोकेल बदलने पर अपडेट हो जाएं:
1304
+
1305
+ ```tsx fileName="src/App.tsx" codeFormat="typescript"
1306
+ import type { FC } from "react";
1307
+ import { IntlayerProvider, useIntlayer } from "react-intlayer";
1308
+ import { useI18nHTMLAttributes } from "./hooks/useI18nHTMLAttributes";
1309
+ import "./App.css";
1310
+
1311
+ const AppContent: FC = () => {
1312
+ // हुक को लागू करें ताकि <html> टैग के lang और dir गुण लोकेल के आधार पर अपडेट हो जाएं।
1313
+ useI18nHTMLAttributes();
1314
+
1315
+ // ... आपके घटक का बाकी हिस्सा
1316
+ };
1317
+
1318
+ const App: FC = () => (
1319
+ <IntlayerProvider>
1320
+ <AppContent />
1321
+ </IntlayerProvider>
1322
+ );
1323
+
1324
+ export default App;
1325
+ ```
1326
+
1327
+ ```jsx fileName="src/App.msx" codeFormat="esm"
1328
+ import { IntlayerProvider, useIntlayer } from "react-intlayer";
1329
+ import { useI18nHTMLAttributes } from "./hooks/useI18nHTMLAttributes";
1330
+ import "./App.css";
1331
+
1332
+ const AppContent = () => {
1333
+ // हुक को लागू करें ताकि <html> टैग के lang और dir गुण लोकेल के आधार पर अपडेट हो जाएं।
1334
+ useI18nHTMLAttributes();
1335
+
1336
+ // ... आपके घटक का बाकी हिस्सा
1337
+ };
1338
+
1339
+ const App = () => (
1340
+ <IntlayerProvider>
1341
+ <AppContent />
1342
+ </IntlayerProvider>
1343
+ );
1344
+
1345
+ export default App;
1346
+ ```
1347
+
1348
+ ```jsx fileName="src/App.csx" codeFormat="commonjs"
1349
+ const { FC } = require("react");
1350
+ const { IntlayerProvider, useIntlayer } = require("react-intlayer");
1351
+ const { useI18nHTMLAttributes } = require("./hooks/useI18nHTMLAttributes");
1352
+ require("./App.css");
1353
+
1354
+ const AppContent = () => {
1355
+ // हुक को लागू करें ताकि <html> टैग के lang और dir गुण लोकेल के आधार पर अपडेट हो जाएं।
1356
+ useI18nHTMLAttributes();
1357
+
1358
+ // ... आपके घटक का बाकी हिस्सा
1359
+ };
1360
+
1361
+ const App = () => (
1362
+ <IntlayerProvider>
1363
+ <AppContent />
1364
+ </IntlayerProvider>
1365
+ );
1366
+
1367
+ module.exports = App;
1368
+ ```
1369
+
1370
+ इन परिवर्तनों को लागू करके, आपका एप्लिकेशन:
1371
+
1372
+ - सुनिश्चित करेगा कि **भाषा** (`lang`) गुण वर्तमान लोकेल को सही तरीके से दर्शाता है, जो SEO और ब्राउज़र व्यवहार के लिए महत्वपूर्ण है।
1373
+ - लोकेल के अनुसार **टेक्स्ट दिशा** (`dir`) को समायोजित करेगा, जिससे विभिन्न पढ़ने के आदेश वाली भाषाओं के लिए पठनीयता और उपयोगिता बढ़ेगी।
1374
+ - एक अधिक **सुलभ** अनुभव प्रदान करेगा, क्योंकि सहायक तकनीकें इन गुणों पर निर्भर करती हैं ताकि वे इष्टतम रूप से कार्य कर सकें।
1375
+
1376
+ ### (वैकल्पिक) चरण 10: एक स्थानीयकृत लिंक घटक बनाना
1377
+
1378
+ यह सुनिश्चित करने के लिए कि आपके एप्लिकेशन का नेविगेशन वर्तमान लोकेल का सम्मान करता है, आप एक कस्टम `Link` घटक बना सकते हैं। यह घटक स्वचालित रूप से आंतरिक URL को वर्तमान भाषा के साथ प्रीफिक्स करता है, ताकि। उदाहरण के लिए, जब एक फ्रेंच-भाषी उपयोगकर्ता "About" पेज के लिंक पर क्लिक करता है, तो उन्हें `/fr/about` पर रीडायरेक्ट किया जाता है, न कि `/about` पर।
1379
+
1380
+ यह व्यवहार कई कारणों से उपयोगी है:
1381
+
1382
+ - **SEO और उपयोगकर्ता अनुभव**: स्थानीयकृत URL सर्च इंजन को भाषा-विशिष्ट पृष्ठों को सही तरीके से इंडेक्स करने में मदद करते हैं और उपयोगकर्ताओं को उनकी पसंदीदा भाषा में सामग्री प्रदान करते हैं।
1383
+ - **संगति**: अपने एप्लिकेशन में स्थानीयकृत लिंक का उपयोग करके, आप यह गारंटी देते हैं कि नेविगेशन वर्तमान लोकेल के भीतर रहता है, अप्रत्याशित भाषा स्विच को रोकता है।
1384
+ - **रखरखाव**: URL प्रबंधन को एक ही घटक में केंद्रीकृत करके, आप अपने कोडबेस को सरल बनाते हैं, जिससे आपके एप्लिकेशन के बढ़ने के साथ इसे बनाए रखना और विस्तारित करना आसान हो जाता है।
1385
+
1386
+ नीचे टाइपस्क्रिप्ट में एक स्थानीयकृत `Link` घटक का कार्यान्वयन दिया गया है:
1387
+
1388
+ ```tsx fileName="src/components/Link.tsx" codeFormat="typescript"
1389
+ import { getLocalizedUrl } from "intlayer";
1390
+ import {
1391
+ forwardRef,
1392
+ type DetailedHTMLProps,
1393
+ type AnchorHTMLAttributes,
1394
+ } from "react";
1395
+ import { useLocale } from "react-intlayer";
1396
+
1397
+ export interface LinkProps
1398
+ extends DetailedHTMLProps<
1399
+ AnchorHTMLAttributes<HTMLAnchorElement>,
1400
+ HTMLAnchorElement
1401
+ > {}
1402
+
1403
+ /**
1404
+ * यह जांचने के लिए उपयोगिता फ़ंक्शन कि क्या दिया गया URL बाहरी है।
1405
+ * यदि URL http:// या https:// से शुरू होता है, तो इसे बाहरी माना जाता है।
1406
+ */
1407
+ export const checkIsExternalLink = (href?: string): boolean =>
1408
+ /^https?:\/\//.test(href ?? "");
1409
+
1410
+ /**
1411
+ * एक कस्टम Link घटक जो वर्तमान लोकेल के आधार पर href गुण को अनुकूलित करता है।
1412
+ * आंतरिक लिंक के लिए, यह URL को लोकेल के साथ प्रीफिक्स करने के लिए `getLocalizedUrl` का उपयोग करता है (जैसे, /fr/about)।
1413
+ * यह सुनिश्चित करता है कि नेविगेशन एक ही लोकेल संदर्भ के भीतर रहता है।
1414
+ */
1415
+ export const Link = forwardRef<HTMLAnchorElement, LinkProps>(
1416
+ ({ href, children, ...props }, ref) => {
1417
+ const { locale } = useLocale();
1418
+ const isExternalLink = checkIsExternalLink(href);
1419
+
1420
+ // यदि लिंक आंतरिक है और एक मान्य href प्रदान किया गया है, तो स्थानीयकृत URL प्राप्त करें।
1421
+ const hrefI18n =
1422
+ href && !isExternalLink ? getLocalizedUrl(href, locale) : href;
1423
+
1424
+ return (
1425
+ <a href={hrefI18n} ref={ref} {...props}>
1426
+ {children}
1427
+ </a>
1428
+ );
1429
+ }
1430
+ );
1431
+
1432
+ Link.displayName = "Link";
1433
+ ```
1434
+
1435
+ ```jsx fileName="src/components/Link.mjx" codeFormat="esm"
1436
+ import { getLocalizedUrl } from "intlayer";
1437
+ import { useLocale } from "react-intlayer";
1438
+ import { forwardRef } from "react";
1439
+
1440
+ /**
1441
+ * यह जांचने के लिए उपयोगिता फ़ंक्शन कि क्या दिया गया URL बाहरी है।
1442
+ * यदि URL http:// या https:// से शुरू होता है, तो इसे बाहरी माना जाता है।
1443
+ */
1444
+ export const checkIsExternalLink = (href?: string): boolean =>
1445
+ /^https?:\/\//.test(href ?? "");
1446
+
1447
+ /**
1448
+ * एक कस्टम Link घटक जो वर्तमान लोकेल के आधार पर href गुण को अनुकूलित करता है।
1449
+ * आंतरिक लिंक के लिए, यह URL को लोकेल के साथ प्रीफिक्स करने के लिए `getLocalizedUrl` का उपयोग करता है (जैसे, /fr/about)।
1450
+ * यह सुनिश्चित करता है कि नेविगेशन एक ही लोकेल संदर्भ के भीतर रहता है।
1451
+ */
1452
+ export const Link = forwardRef(({ href, children, ...props }, ref) => {
1453
+
1454
+ const { getLocalizedUrl } = require("intlayer");
1455
+ const { useLocale } = require("react-intlayer");
1456
+ const { forwardRef } = require("react");
1457
+
1458
+ /**
1459
+ * यह उपयोगिता फ़ंक्शन यह जांचने के लिए है कि दी गई URL बाहरी है या नहीं।
1460
+ * यदि URL http:// या https:// से शुरू होता है, तो इसे बाहरी माना जाता है।
1461
+ */
1462
+ const checkIsExternalLink = (href) => /^https?:\/\//.test(href ?? "");
1463
+
1464
+ /**
1465
+ * एक कस्टम लिंक घटक जो वर्तमान लोकेल के आधार पर href विशेषता को अनुकूलित करता है।
1466
+ * आंतरिक लिंक के लिए, यह URL को लोकेल के साथ प्रीफ़िक्स करने के लिए `getLocalizedUrl` का उपयोग करता है (जैसे, /hi/about)।
1467
+ * यह सुनिश्चित करता है कि नेविगेशन समान लोकेल संदर्भ में बना रहे।
1468
+ */
1469
+ const Link = forwardRef(({ href, children, ...props }, ref) => {
1470
+ const { locale } = useLocale();
1471
+ const isExternalLink = checkIsExternalLink(href);
1472
+
1473
+ // यदि लिंक आंतरिक है और एक मान्य href प्रदान किया गया है, तो स्थानीयकृत URL प्राप्त करें।
1474
+ const localizedHref = isExternalLink ? href : getLocalizedUrl(href, locale);
1475
+
1476
+ return (
1477
+ <a
1478
+ href={localizedHref}
1479
+ ref={ref}
1480
+ {...props}
1481
+ aria-current={isExternalLink ? "external" : undefined}
1482
+ >
1483
+ {children}
1484
+ </a>
1485
+ );
1486
+ });
1487
+
1488
+ Link.displayName = "Link";
1489
+ ```
1490
+
1491
+ #### यह कैसे काम करता है
1492
+
1493
+ - **बाहरी लिंक का पता लगाना**:
1494
+ सहायक फ़ंक्शन `checkIsExternalLink` यह निर्धारित करता है कि कोई URL बाहरी है या नहीं। बाहरी लिंक अपरिवर्तित रहते हैं क्योंकि उन्हें स्थानीयकरण की आवश्यकता नहीं होती।
1495
+
1496
+ - **वर्तमान लोकेल प्राप्त करना**:
1497
+ `useLocale` हुक वर्तमान लोकेल प्रदान करता है (जैसे, `hi` हिंदी के लिए)।
1498
+
1499
+ - **URL का स्थानीयकरण करना**:
1500
+ आंतरिक लिंक (यानी, गैर-बाहरी) के लिए, `getLocalizedUrl` का उपयोग स्वचालित रूप से URL को वर्तमान लोकेल के साथ प्रीफ़िक्स करने के लिए किया जाता है। इसका मतलब है कि यदि आपका उपयोगकर्ता हिंदी में है, तो `/about` को `href` के रूप में पास करने से यह `/hi/about` में बदल जाएगा।
1501
+
1502
+ - **लिंक लौटाना**:
1503
+ घटक एक `<a>` तत्व को स्थानीयकृत URL के साथ लौटाता है, यह सुनिश्चित करते हुए कि नेविगेशन लोकेल के साथ सुसंगत है।
1504
+
1505
+ इस `Link` घटक को अपने एप्लिकेशन में एकीकृत करके, आप एक सुसंगत और भाषा-जागरूक उपयोगकर्ता अनुभव बनाए रखते हैं, साथ ही बेहतर SEO और उपयोगिता का लाभ उठाते हैं।
1506
+
1507
+ ### TypeScript कॉन्फ़िगर करें
1508
+
1509
+ Intlayer TypeScript के लाभ प्राप्त करने और आपके कोडबेस को मजबूत बनाने के लिए मॉड्यूल वृद्धि का उपयोग करता है।
1510
+
1511
+ ![alt text](https://github.com/aymericzip/intlayer/blob/main/docs/assets/autocompletion.png)
1512
+
1513
+ ![alt text](https://github.com/aymericzip/intlayer/blob/main/docs/assets/translation_error.png)
1514
+
1515
+ सुनिश्चित करें कि आपकी TypeScript कॉन्फ़िगरेशन में स्वचालित रूप से उत्पन्न प्रकार शामिल हैं।
1516
+
1517
+ ```json5 fileName="tsconfig.json"
1518
+ {
1519
+ // ... आपकी मौजूदा TypeScript कॉन्फ़िगरेशन
1520
+ "include": [
1521
+ // ... आपकी मौजूदा TypeScript कॉन्फ़िगरेशन
1522
+ ".intlayer/**/*.ts", // स्वचालित रूप से उत्पन्न प्रकार शामिल करें
1523
+ ],
1524
+ }
1525
+ ```
1526
+
1527
+ ### Git कॉन्फ़िगरेशन
1528
+
1529
+ यह अनुशंसा की जाती है कि Intlayer द्वारा उत्पन्न फ़ाइलों को अनदेखा करें। यह आपको उन्हें अपने Git रिपॉजिटरी में कमिट करने से बचने की अनुमति देता है।
1530
+
1531
+ इसके लिए, आप अपनी `.gitignore` फ़ाइल में निम्नलिखित निर्देश जोड़ सकते हैं:
1532
+
1533
+ ```plaintext
1534
+ # Intlayer द्वारा उत्पन्न फ़ाइलों को अनदेखा करें
1535
+ .intlayer
1536
+ ```
1537
+
1538
+ ### आगे बढ़ें
1539
+
1540
+ आगे बढ़ने के लिए, आप [विज़ुअल एडिटर](https://github.com/aymericzip/intlayer/blob/main/docs/hi/intlayer_visual_editor.md) को लागू कर सकते हैं या [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/hi/intlayer_CMS.md) का उपयोग करके अपनी सामग्री को बाहरी बना सकते हैं।