@intlayer/docs 9.0.0-canary.2 → 9.0.0-canary.4

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 (1181) hide show
  1. package/blog/ar/intlayer_with_i18next.md +20 -4
  2. package/blog/ar/intlayer_with_next-i18next.md +20 -4
  3. package/blog/ar/intlayer_with_next-intl.md +20 -4
  4. package/blog/ar/intlayer_with_react-i18next.md +20 -4
  5. package/blog/ar/intlayer_with_react-intl.md +20 -4
  6. package/blog/ar/intlayer_with_vue-i18n.md +20 -4
  7. package/blog/de/intlayer_with_i18next.md +30 -6
  8. package/blog/de/intlayer_with_next-i18next.md +30 -6
  9. package/blog/de/intlayer_with_next-intl.md +33 -7
  10. package/blog/de/intlayer_with_react-i18next.md +33 -7
  11. package/blog/de/intlayer_with_react-intl.md +33 -7
  12. package/blog/de/intlayer_with_vue-i18n.md +33 -7
  13. package/blog/en/intlayer_with_i18next.md +20 -4
  14. package/blog/en/intlayer_with_next-i18next.md +20 -4
  15. package/blog/en/intlayer_with_next-intl.md +20 -4
  16. package/blog/en/intlayer_with_react-i18next.md +20 -4
  17. package/blog/en/intlayer_with_react-intl.md +20 -4
  18. package/blog/en/intlayer_with_vue-i18n.md +20 -4
  19. package/blog/en-GB/intlayer_with_i18next.md +20 -4
  20. package/blog/en-GB/intlayer_with_next-i18next.md +20 -4
  21. package/blog/en-GB/intlayer_with_next-intl.md +20 -4
  22. package/blog/en-GB/intlayer_with_react-i18next.md +20 -4
  23. package/blog/en-GB/intlayer_with_react-intl.md +20 -4
  24. package/blog/en-GB/intlayer_with_vue-i18n.md +20 -4
  25. package/blog/es/intlayer_with_i18next.md +20 -4
  26. package/blog/es/intlayer_with_next-i18next.md +20 -4
  27. package/blog/es/intlayer_with_next-intl.md +20 -4
  28. package/blog/es/intlayer_with_react-i18next.md +20 -4
  29. package/blog/es/intlayer_with_react-intl.md +20 -4
  30. package/blog/es/intlayer_with_vue-i18n.md +20 -4
  31. package/blog/fr/intlayer_with_i18next.md +20 -4
  32. package/blog/fr/intlayer_with_next-i18next.md +20 -4
  33. package/blog/fr/intlayer_with_next-intl.md +20 -4
  34. package/blog/fr/intlayer_with_react-i18next.md +20 -4
  35. package/blog/fr/intlayer_with_react-intl.md +20 -4
  36. package/blog/fr/intlayer_with_vue-i18n.md +20 -4
  37. package/blog/hi/intlayer_with_i18next.md +20 -4
  38. package/blog/hi/intlayer_with_next-i18next.md +20 -4
  39. package/blog/hi/intlayer_with_next-intl.md +20 -4
  40. package/blog/hi/intlayer_with_react-i18next.md +20 -4
  41. package/blog/hi/intlayer_with_react-intl.md +20 -4
  42. package/blog/hi/intlayer_with_vue-i18n.md +20 -4
  43. package/blog/id/intlayer_with_i18next.md +20 -4
  44. package/blog/id/intlayer_with_next-i18next.md +20 -4
  45. package/blog/id/intlayer_with_next-intl.md +20 -4
  46. package/blog/id/intlayer_with_react-i18next.md +20 -4
  47. package/blog/id/intlayer_with_react-intl.md +20 -4
  48. package/blog/id/intlayer_with_vue-i18n.md +20 -4
  49. package/blog/it/intlayer_with_i18next.md +33 -7
  50. package/blog/it/intlayer_with_next-i18next.md +33 -7
  51. package/blog/it/intlayer_with_next-intl.md +33 -7
  52. package/blog/it/intlayer_with_react-i18next.md +33 -7
  53. package/blog/it/intlayer_with_react-intl.md +33 -7
  54. package/blog/it/intlayer_with_vue-i18n.md +33 -7
  55. package/blog/ja/intlayer_with_i18next.md +20 -4
  56. package/blog/ja/intlayer_with_next-i18next.md +20 -4
  57. package/blog/ja/intlayer_with_next-intl.md +20 -4
  58. package/blog/ja/intlayer_with_react-i18next.md +20 -4
  59. package/blog/ja/intlayer_with_react-intl.md +20 -4
  60. package/blog/ja/intlayer_with_vue-i18n.md +20 -4
  61. package/blog/ko/intlayer_with_i18next.md +33 -7
  62. package/blog/ko/intlayer_with_next-i18next.md +33 -7
  63. package/blog/ko/intlayer_with_next-intl.md +33 -7
  64. package/blog/ko/intlayer_with_react-i18next.md +33 -7
  65. package/blog/ko/intlayer_with_react-intl.md +33 -7
  66. package/blog/ko/intlayer_with_vue-i18n.md +33 -7
  67. package/blog/pl/intlayer_with_i18next.md +20 -4
  68. package/blog/pl/intlayer_with_next-i18next.md +20 -4
  69. package/blog/pl/intlayer_with_next-intl.md +20 -4
  70. package/blog/pl/intlayer_with_react-i18next.md +20 -4
  71. package/blog/pl/intlayer_with_react-intl.md +20 -4
  72. package/blog/pl/intlayer_with_vue-i18n.md +20 -4
  73. package/blog/pt/intlayer_with_i18next.md +33 -7
  74. package/blog/pt/intlayer_with_next-i18next.md +33 -7
  75. package/blog/pt/intlayer_with_next-intl.md +33 -7
  76. package/blog/pt/intlayer_with_react-i18next.md +33 -7
  77. package/blog/pt/intlayer_with_react-intl.md +33 -7
  78. package/blog/pt/intlayer_with_vue-i18n.md +33 -7
  79. package/blog/ru/intlayer_with_i18next.md +20 -4
  80. package/blog/ru/intlayer_with_next-i18next.md +20 -4
  81. package/blog/ru/intlayer_with_next-intl.md +20 -4
  82. package/blog/ru/intlayer_with_react-i18next.md +20 -4
  83. package/blog/ru/intlayer_with_react-intl.md +20 -4
  84. package/blog/ru/intlayer_with_vue-i18n.md +20 -4
  85. package/blog/tr/intlayer_with_i18next.md +20 -4
  86. package/blog/tr/intlayer_with_next-i18next.md +20 -4
  87. package/blog/tr/intlayer_with_next-intl.md +20 -4
  88. package/blog/tr/intlayer_with_react-i18next.md +20 -4
  89. package/blog/tr/intlayer_with_react-intl.md +20 -4
  90. package/blog/tr/intlayer_with_vue-i18n.md +20 -4
  91. package/blog/uk/intlayer_with_i18next.md +20 -4
  92. package/blog/uk/intlayer_with_next-i18next.md +20 -4
  93. package/blog/uk/intlayer_with_next-intl.md +20 -4
  94. package/blog/uk/intlayer_with_react-i18next.md +20 -4
  95. package/blog/uk/intlayer_with_react-intl.md +20 -4
  96. package/blog/uk/intlayer_with_vue-i18n.md +20 -4
  97. package/blog/vi/intlayer_with_i18next.md +20 -4
  98. package/blog/vi/intlayer_with_next-i18next.md +20 -4
  99. package/blog/vi/intlayer_with_next-intl.md +20 -4
  100. package/blog/vi/intlayer_with_react-i18next.md +20 -4
  101. package/blog/vi/intlayer_with_react-intl.md +20 -4
  102. package/blog/vi/intlayer_with_vue-i18n.md +20 -4
  103. package/blog/zh/intlayer_with_i18next.md +20 -4
  104. package/blog/zh/intlayer_with_next-i18next.md +20 -4
  105. package/blog/zh/intlayer_with_next-intl.md +20 -4
  106. package/blog/zh/intlayer_with_react-i18next.md +20 -4
  107. package/blog/zh/intlayer_with_react-intl.md +20 -4
  108. package/blog/zh/intlayer_with_vue-i18n.md +20 -4
  109. package/dist/cjs/generated/docs.entry.cjs +160 -0
  110. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  111. package/dist/esm/generated/docs.entry.mjs +160 -0
  112. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  113. package/dist/types/generated/docs.entry.d.ts +8 -0
  114. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  115. package/docs/ar/intlayer_with_adonisjs.md +20 -4
  116. package/docs/ar/intlayer_with_analog.md +20 -4
  117. package/docs/ar/intlayer_with_angular_19.md +20 -4
  118. package/docs/ar/intlayer_with_angular_21.md +20 -4
  119. package/docs/ar/intlayer_with_astro_lit.md +20 -8
  120. package/docs/ar/intlayer_with_astro_preact.md +20 -8
  121. package/docs/ar/intlayer_with_astro_react.md +20 -8
  122. package/docs/ar/intlayer_with_astro_solid.md +20 -8
  123. package/docs/ar/intlayer_with_astro_svelte.md +20 -8
  124. package/docs/ar/intlayer_with_astro_vanilla.md +20 -8
  125. package/docs/ar/intlayer_with_astro_vue.md +20 -8
  126. package/docs/ar/intlayer_with_create_react_app.md +20 -4
  127. package/docs/ar/intlayer_with_express.md +20 -4
  128. package/docs/ar/intlayer_with_fastify.md +20 -8
  129. package/docs/ar/intlayer_with_hono.md +20 -4
  130. package/docs/ar/intlayer_with_lynx+react.md +20 -4
  131. package/docs/ar/intlayer_with_nestjs.md +20 -4
  132. package/docs/ar/intlayer_with_next-i18next.md +20 -4
  133. package/docs/ar/intlayer_with_nextjs_14.md +20 -4
  134. package/docs/ar/intlayer_with_nextjs_15.md +20 -4
  135. package/docs/ar/intlayer_with_nextjs_16.md +20 -4
  136. package/docs/ar/intlayer_with_nextjs_compiler.md +20 -4
  137. package/docs/ar/intlayer_with_nextjs_no_locale_path.md +20 -4
  138. package/docs/ar/intlayer_with_nextjs_page_router.md +20 -4
  139. package/docs/ar/intlayer_with_nuxt.md +25 -7
  140. package/docs/ar/intlayer_with_react_native+expo.md +20 -4
  141. package/docs/ar/intlayer_with_react_router_v7.md +20 -4
  142. package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +20 -4
  143. package/docs/ar/intlayer_with_svelte_kit.md +40 -8
  144. package/docs/ar/intlayer_with_tanstack+solid.md +20 -4
  145. package/docs/ar/intlayer_with_tanstack.md +20 -4
  146. package/docs/ar/intlayer_with_vite+lit.md +20 -4
  147. package/docs/ar/intlayer_with_vite+preact.md +20 -4
  148. package/docs/ar/intlayer_with_vite+react.md +20 -4
  149. package/docs/ar/intlayer_with_vite+react_compiler.md +20 -4
  150. package/docs/ar/intlayer_with_vite+solid.md +20 -4
  151. package/docs/ar/intlayer_with_vite+svelte.md +20 -4
  152. package/docs/ar/intlayer_with_vite+vanilla.md +20 -4
  153. package/docs/ar/intlayer_with_vite+vue.md +20 -4
  154. package/docs/ar/packages/angular-intlayer/exports.md +14 -10
  155. package/docs/ar/packages/angular-intlayer/usePathname.md +119 -0
  156. package/docs/ar/packages/intlayer/comparePaths.md +173 -0
  157. package/docs/ar/packages/intlayer/exports.md +5 -0
  158. package/docs/ar/packages/next-intlayer/exports.md +4 -0
  159. package/docs/ar/packages/next-intlayer/usePathname.md +136 -0
  160. package/docs/ar/packages/preact-intlayer/exports.md +10 -6
  161. package/docs/ar/packages/preact-intlayer/usePathname.md +117 -0
  162. package/docs/ar/packages/react-intlayer/exports.md +4 -0
  163. package/docs/ar/packages/react-intlayer/usePathname.md +87 -0
  164. package/docs/ar/packages/solid-intlayer/exports.md +4 -0
  165. package/docs/ar/packages/solid-intlayer/usePathname.md +119 -0
  166. package/docs/ar/packages/svelte-intlayer/exports.md +4 -0
  167. package/docs/ar/packages/svelte-intlayer/usePathname.md +103 -0
  168. package/docs/ar/packages/vue-intlayer/exports.md +4 -0
  169. package/docs/ar/packages/vue-intlayer/usePathname.md +109 -0
  170. package/docs/ar/plugins/sync-json.md +222 -49
  171. package/docs/bn/intlayer_with_angular_21.md +20 -4
  172. package/docs/bn/intlayer_with_fastify.md +20 -8
  173. package/docs/bn/intlayer_with_hono.md +20 -4
  174. package/docs/bn/intlayer_with_vite+lit.md +20 -4
  175. package/docs/bn/intlayer_with_vite+vanilla.md +20 -4
  176. package/docs/bn/packages/intlayer/comparePaths.md +173 -0
  177. package/docs/cs/intlayer_with_angular_21.md +20 -4
  178. package/docs/cs/intlayer_with_fastify.md +20 -8
  179. package/docs/cs/intlayer_with_hono.md +20 -4
  180. package/docs/cs/intlayer_with_vite+lit.md +20 -4
  181. package/docs/cs/intlayer_with_vite+vanilla.md +20 -4
  182. package/docs/cs/packages/intlayer/comparePaths.md +173 -0
  183. package/docs/de/intlayer_with_adonisjs.md +20 -4
  184. package/docs/de/intlayer_with_analog.md +20 -4
  185. package/docs/de/intlayer_with_angular_19.md +20 -4
  186. package/docs/de/intlayer_with_angular_21.md +20 -4
  187. package/docs/de/intlayer_with_astro_lit.md +20 -8
  188. package/docs/de/intlayer_with_astro_preact.md +20 -8
  189. package/docs/de/intlayer_with_astro_react.md +20 -8
  190. package/docs/de/intlayer_with_astro_solid.md +20 -8
  191. package/docs/de/intlayer_with_astro_svelte.md +20 -8
  192. package/docs/de/intlayer_with_astro_vanilla.md +20 -8
  193. package/docs/de/intlayer_with_astro_vue.md +20 -8
  194. package/docs/de/intlayer_with_create_react_app.md +20 -4
  195. package/docs/de/intlayer_with_express.md +20 -4
  196. package/docs/de/intlayer_with_fastify.md +20 -8
  197. package/docs/de/intlayer_with_hono.md +20 -4
  198. package/docs/de/intlayer_with_lynx+react.md +20 -4
  199. package/docs/de/intlayer_with_nestjs.md +20 -4
  200. package/docs/de/intlayer_with_next-i18next.md +20 -4
  201. package/docs/de/intlayer_with_nextjs_14.md +20 -4
  202. package/docs/de/intlayer_with_nextjs_15.md +20 -4
  203. package/docs/de/intlayer_with_nextjs_16.md +20 -4
  204. package/docs/de/intlayer_with_nextjs_no_locale_path.md +20 -4
  205. package/docs/de/intlayer_with_nextjs_page_router.md +20 -4
  206. package/docs/de/intlayer_with_nuxt.md +25 -7
  207. package/docs/de/intlayer_with_react_router_v7.md +20 -4
  208. package/docs/de/intlayer_with_svelte_kit.md +40 -8
  209. package/docs/de/intlayer_with_tanstack+solid.md +20 -4
  210. package/docs/de/intlayer_with_tanstack.md +20 -4
  211. package/docs/de/intlayer_with_vite+lit.md +20 -4
  212. package/docs/de/intlayer_with_vite+preact.md +20 -4
  213. package/docs/de/intlayer_with_vite+react.md +20 -4
  214. package/docs/de/intlayer_with_vite+react_compiler.md +20 -4
  215. package/docs/de/intlayer_with_vite+solid.md +20 -4
  216. package/docs/de/intlayer_with_vite+vanilla.md +20 -4
  217. package/docs/de/intlayer_with_vite+vue.md +20 -4
  218. package/docs/de/migration_from_i18next_to_intlayer.md +20 -4
  219. package/docs/de/migration_from_next-i18next_to_intlayer.md +20 -4
  220. package/docs/de/migration_from_next-intl_to_intlayer.md +20 -4
  221. package/docs/de/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  222. package/docs/de/migration_from_react-i18next_to_intlayer.md +20 -4
  223. package/docs/de/migration_from_vue-i18n_to_intlayer.md +20 -4
  224. package/docs/de/packages/angular-intlayer/exports.md +13 -9
  225. package/docs/de/packages/angular-intlayer/usePathname.md +119 -0
  226. package/docs/de/packages/intlayer/comparePaths.md +173 -0
  227. package/docs/de/packages/intlayer/exports.md +5 -0
  228. package/docs/de/packages/next-intlayer/exports.md +4 -0
  229. package/docs/de/packages/next-intlayer/usePathname.md +136 -0
  230. package/docs/de/packages/preact-intlayer/exports.md +10 -6
  231. package/docs/de/packages/preact-intlayer/usePathname.md +117 -0
  232. package/docs/de/packages/react-intlayer/exports.md +4 -0
  233. package/docs/de/packages/react-intlayer/usePathname.md +87 -0
  234. package/docs/de/packages/solid-intlayer/exports.md +4 -0
  235. package/docs/de/packages/solid-intlayer/usePathname.md +119 -0
  236. package/docs/de/packages/svelte-intlayer/exports.md +13 -9
  237. package/docs/de/packages/svelte-intlayer/usePathname.md +103 -0
  238. package/docs/de/packages/vue-intlayer/exports.md +4 -0
  239. package/docs/de/packages/vue-intlayer/usePathname.md +109 -0
  240. package/docs/de/plugins/sync-json.md +222 -49
  241. package/docs/en/intlayer_with_adonisjs.md +20 -4
  242. package/docs/en/intlayer_with_analog.md +20 -4
  243. package/docs/en/intlayer_with_angular_19.md +20 -4
  244. package/docs/en/intlayer_with_angular_21.md +20 -4
  245. package/docs/en/intlayer_with_astro.md +20 -8
  246. package/docs/en/intlayer_with_astro_lit.md +20 -8
  247. package/docs/en/intlayer_with_astro_preact.md +20 -8
  248. package/docs/en/intlayer_with_astro_react.md +20 -8
  249. package/docs/en/intlayer_with_astro_solid.md +20 -8
  250. package/docs/en/intlayer_with_astro_svelte.md +20 -8
  251. package/docs/en/intlayer_with_astro_vanilla.md +20 -8
  252. package/docs/en/intlayer_with_astro_vue.md +20 -8
  253. package/docs/en/intlayer_with_create_react_app.md +20 -4
  254. package/docs/en/intlayer_with_express.md +20 -4
  255. package/docs/en/intlayer_with_fastify.md +20 -8
  256. package/docs/en/intlayer_with_hono.md +20 -4
  257. package/docs/en/intlayer_with_lynx+react.md +20 -4
  258. package/docs/en/intlayer_with_nestjs.md +20 -4
  259. package/docs/en/intlayer_with_next-i18next.md +20 -4
  260. package/docs/en/intlayer_with_nextjs_14.md +20 -4
  261. package/docs/en/intlayer_with_nextjs_15.md +20 -4
  262. package/docs/en/intlayer_with_nextjs_16.md +20 -4
  263. package/docs/en/intlayer_with_nextjs_compiler.md +20 -4
  264. package/docs/en/intlayer_with_nextjs_no_locale_path.md +20 -4
  265. package/docs/en/intlayer_with_nextjs_page_router.md +20 -4
  266. package/docs/en/intlayer_with_nuxt.md +25 -7
  267. package/docs/en/intlayer_with_react_native+expo.md +20 -4
  268. package/docs/en/intlayer_with_react_router_v7.md +20 -4
  269. package/docs/en/intlayer_with_svelte_kit.md +20 -4
  270. package/docs/en/intlayer_with_tanstack+solid.md +20 -4
  271. package/docs/en/intlayer_with_tanstack.md +20 -4
  272. package/docs/en/intlayer_with_vite+lit.md +20 -4
  273. package/docs/en/intlayer_with_vite+preact.md +20 -4
  274. package/docs/en/intlayer_with_vite+react.md +20 -4
  275. package/docs/en/intlayer_with_vite+react_compiler.md +20 -4
  276. package/docs/en/intlayer_with_vite+solid.md +20 -4
  277. package/docs/en/intlayer_with_vite+svelte.md +20 -4
  278. package/docs/en/intlayer_with_vite+vanilla.md +20 -4
  279. package/docs/en/intlayer_with_vite+vue.md +20 -4
  280. package/docs/en/migration_from_i18next_to_intlayer.md +20 -4
  281. package/docs/en/migration_from_next-i18next_to_intlayer.md +20 -4
  282. package/docs/en/migration_from_next-intl_to_intlayer.md +20 -4
  283. package/docs/en/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  284. package/docs/en/migration_from_react-i18next_to_intlayer.md +20 -4
  285. package/docs/en/migration_from_vue-i18n_to_intlayer.md +20 -4
  286. package/docs/en/packages/angular-intlayer/exports.md +13 -9
  287. package/docs/en/packages/angular-intlayer/usePathname.md +119 -0
  288. package/docs/en/packages/intlayer/comparePaths.md +173 -0
  289. package/docs/en/packages/intlayer/exports.md +18 -13
  290. package/docs/en/packages/next-intlayer/exports.md +4 -0
  291. package/docs/en/packages/next-intlayer/usePathname.md +136 -0
  292. package/docs/en/packages/preact-intlayer/exports.md +10 -6
  293. package/docs/en/packages/preact-intlayer/usePathname.md +117 -0
  294. package/docs/en/packages/react-intlayer/exports.md +4 -0
  295. package/docs/en/packages/react-intlayer/usePathname.md +87 -0
  296. package/docs/en/packages/solid-intlayer/exports.md +4 -0
  297. package/docs/en/packages/solid-intlayer/usePathname.md +119 -0
  298. package/docs/en/packages/svelte-intlayer/exports.md +13 -9
  299. package/docs/en/packages/svelte-intlayer/usePathname.md +103 -0
  300. package/docs/en/packages/vue-intlayer/exports.md +4 -0
  301. package/docs/en/packages/vue-intlayer/usePathname.md +109 -0
  302. package/docs/en/plugins/sync-json.md +56 -2
  303. package/docs/en-GB/intlayer_with_adonisjs.md +20 -4
  304. package/docs/en-GB/intlayer_with_analog.md +20 -4
  305. package/docs/en-GB/intlayer_with_angular_19.md +20 -4
  306. package/docs/en-GB/intlayer_with_angular_21.md +20 -4
  307. package/docs/en-GB/intlayer_with_astro_lit.md +20 -8
  308. package/docs/en-GB/intlayer_with_astro_preact.md +20 -8
  309. package/docs/en-GB/intlayer_with_astro_react.md +20 -8
  310. package/docs/en-GB/intlayer_with_astro_solid.md +20 -8
  311. package/docs/en-GB/intlayer_with_astro_svelte.md +20 -8
  312. package/docs/en-GB/intlayer_with_astro_vanilla.md +20 -8
  313. package/docs/en-GB/intlayer_with_astro_vue.md +20 -8
  314. package/docs/en-GB/intlayer_with_create_react_app.md +40 -8
  315. package/docs/en-GB/intlayer_with_express.md +20 -4
  316. package/docs/en-GB/intlayer_with_fastify.md +20 -8
  317. package/docs/en-GB/intlayer_with_hono.md +20 -4
  318. package/docs/en-GB/intlayer_with_lynx+react.md +40 -8
  319. package/docs/en-GB/intlayer_with_nestjs.md +20 -4
  320. package/docs/en-GB/intlayer_with_next-i18next.md +20 -4
  321. package/docs/en-GB/intlayer_with_nextjs_14.md +20 -4
  322. package/docs/en-GB/intlayer_with_nextjs_15.md +20 -4
  323. package/docs/en-GB/intlayer_with_nextjs_16.md +20 -4
  324. package/docs/en-GB/intlayer_with_nextjs_compiler.md +20 -4
  325. package/docs/en-GB/intlayer_with_nextjs_no_locale_path.md +20 -4
  326. package/docs/en-GB/intlayer_with_nextjs_page_router.md +20 -4
  327. package/docs/en-GB/intlayer_with_nuxt.md +25 -7
  328. package/docs/en-GB/intlayer_with_react_native+expo.md +40 -8
  329. package/docs/en-GB/intlayer_with_react_router_v7.md +20 -4
  330. package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +20 -4
  331. package/docs/en-GB/intlayer_with_svelte_kit.md +40 -8
  332. package/docs/en-GB/intlayer_with_tanstack+solid.md +20 -4
  333. package/docs/en-GB/intlayer_with_tanstack.md +20 -4
  334. package/docs/en-GB/intlayer_with_vite+lit.md +20 -4
  335. package/docs/en-GB/intlayer_with_vite+preact.md +20 -4
  336. package/docs/en-GB/intlayer_with_vite+react.md +20 -4
  337. package/docs/en-GB/intlayer_with_vite+react_compiler.md +20 -4
  338. package/docs/en-GB/intlayer_with_vite+solid.md +20 -4
  339. package/docs/en-GB/intlayer_with_vite+svelte.md +20 -4
  340. package/docs/en-GB/intlayer_with_vite+vanilla.md +20 -4
  341. package/docs/en-GB/intlayer_with_vite+vue.md +20 -4
  342. package/docs/en-GB/packages/angular-intlayer/exports.md +13 -9
  343. package/docs/en-GB/packages/angular-intlayer/usePathname.md +119 -0
  344. package/docs/en-GB/packages/intlayer/comparePaths.md +173 -0
  345. package/docs/en-GB/packages/intlayer/exports.md +5 -0
  346. package/docs/en-GB/packages/next-intlayer/exports.md +4 -0
  347. package/docs/en-GB/packages/next-intlayer/usePathname.md +136 -0
  348. package/docs/en-GB/packages/preact-intlayer/exports.md +10 -6
  349. package/docs/en-GB/packages/preact-intlayer/usePathname.md +117 -0
  350. package/docs/en-GB/packages/react-intlayer/exports.md +4 -0
  351. package/docs/en-GB/packages/react-intlayer/usePathname.md +87 -0
  352. package/docs/en-GB/packages/solid-intlayer/exports.md +15 -11
  353. package/docs/en-GB/packages/solid-intlayer/usePathname.md +119 -0
  354. package/docs/en-GB/packages/svelte-intlayer/exports.md +13 -9
  355. package/docs/en-GB/packages/svelte-intlayer/usePathname.md +103 -0
  356. package/docs/en-GB/packages/vue-intlayer/exports.md +4 -0
  357. package/docs/en-GB/packages/vue-intlayer/usePathname.md +109 -0
  358. package/docs/en-GB/plugins/sync-json.md +245 -13
  359. package/docs/es/intlayer_with_adonisjs.md +20 -4
  360. package/docs/es/intlayer_with_analog.md +20 -4
  361. package/docs/es/intlayer_with_angular_19.md +20 -4
  362. package/docs/es/intlayer_with_angular_21.md +20 -4
  363. package/docs/es/intlayer_with_astro_lit.md +20 -8
  364. package/docs/es/intlayer_with_astro_preact.md +20 -8
  365. package/docs/es/intlayer_with_astro_react.md +20 -8
  366. package/docs/es/intlayer_with_astro_solid.md +20 -8
  367. package/docs/es/intlayer_with_astro_svelte.md +20 -8
  368. package/docs/es/intlayer_with_astro_vanilla.md +20 -8
  369. package/docs/es/intlayer_with_astro_vue.md +20 -8
  370. package/docs/es/intlayer_with_create_react_app.md +20 -4
  371. package/docs/es/intlayer_with_express.md +20 -4
  372. package/docs/es/intlayer_with_fastify.md +20 -8
  373. package/docs/es/intlayer_with_hono.md +20 -4
  374. package/docs/es/intlayer_with_lynx+react.md +20 -4
  375. package/docs/es/intlayer_with_nestjs.md +20 -4
  376. package/docs/es/intlayer_with_next-i18next.md +20 -4
  377. package/docs/es/intlayer_with_nextjs_14.md +20 -4
  378. package/docs/es/intlayer_with_nextjs_15.md +20 -4
  379. package/docs/es/intlayer_with_nextjs_16.md +20 -4
  380. package/docs/es/intlayer_with_nextjs_compiler.md +20 -4
  381. package/docs/es/intlayer_with_nextjs_no_locale_path.md +20 -4
  382. package/docs/es/intlayer_with_nextjs_page_router.md +20 -4
  383. package/docs/es/intlayer_with_nuxt.md +25 -7
  384. package/docs/es/intlayer_with_react_native+expo.md +20 -4
  385. package/docs/es/intlayer_with_react_router_v7.md +20 -4
  386. package/docs/es/intlayer_with_svelte_kit.md +40 -8
  387. package/docs/es/intlayer_with_tanstack+solid.md +20 -4
  388. package/docs/es/intlayer_with_tanstack.md +20 -4
  389. package/docs/es/intlayer_with_vite+lit.md +20 -4
  390. package/docs/es/intlayer_with_vite+preact.md +20 -4
  391. package/docs/es/intlayer_with_vite+react.md +20 -4
  392. package/docs/es/intlayer_with_vite+react_compiler.md +20 -4
  393. package/docs/es/intlayer_with_vite+solid.md +20 -4
  394. package/docs/es/intlayer_with_vite+svelte.md +20 -4
  395. package/docs/es/intlayer_with_vite+vanilla.md +20 -4
  396. package/docs/es/intlayer_with_vite+vue.md +20 -4
  397. package/docs/es/migration_from_i18next_to_intlayer.md +20 -4
  398. package/docs/es/migration_from_next-i18next_to_intlayer.md +20 -4
  399. package/docs/es/migration_from_next-intl_to_intlayer.md +20 -4
  400. package/docs/es/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  401. package/docs/es/migration_from_react-i18next_to_intlayer.md +20 -4
  402. package/docs/es/migration_from_vue-i18n_to_intlayer.md +20 -4
  403. package/docs/es/packages/angular-intlayer/exports.md +13 -9
  404. package/docs/es/packages/angular-intlayer/usePathname.md +119 -0
  405. package/docs/es/packages/intlayer/comparePaths.md +173 -0
  406. package/docs/es/packages/intlayer/exports.md +18 -13
  407. package/docs/es/packages/next-intlayer/exports.md +4 -0
  408. package/docs/es/packages/next-intlayer/usePathname.md +136 -0
  409. package/docs/es/packages/preact-intlayer/exports.md +10 -6
  410. package/docs/es/packages/preact-intlayer/usePathname.md +117 -0
  411. package/docs/es/packages/react-intlayer/exports.md +4 -0
  412. package/docs/es/packages/react-intlayer/usePathname.md +87 -0
  413. package/docs/es/packages/solid-intlayer/exports.md +4 -0
  414. package/docs/es/packages/solid-intlayer/usePathname.md +119 -0
  415. package/docs/es/packages/svelte-intlayer/exports.md +4 -0
  416. package/docs/es/packages/svelte-intlayer/usePathname.md +103 -0
  417. package/docs/es/packages/vue-intlayer/exports.md +4 -0
  418. package/docs/es/packages/vue-intlayer/usePathname.md +109 -0
  419. package/docs/es/plugins/sync-json.md +222 -49
  420. package/docs/fr/intlayer_with_adonisjs.md +20 -4
  421. package/docs/fr/intlayer_with_analog.md +20 -4
  422. package/docs/fr/intlayer_with_angular_19.md +20 -4
  423. package/docs/fr/intlayer_with_angular_21.md +20 -4
  424. package/docs/fr/intlayer_with_astro_lit.md +20 -8
  425. package/docs/fr/intlayer_with_astro_preact.md +20 -8
  426. package/docs/fr/intlayer_with_astro_react.md +20 -8
  427. package/docs/fr/intlayer_with_astro_solid.md +20 -8
  428. package/docs/fr/intlayer_with_astro_svelte.md +20 -8
  429. package/docs/fr/intlayer_with_astro_vanilla.md +20 -8
  430. package/docs/fr/intlayer_with_astro_vue.md +20 -8
  431. package/docs/fr/intlayer_with_create_react_app.md +20 -4
  432. package/docs/fr/intlayer_with_express.md +20 -4
  433. package/docs/fr/intlayer_with_fastify.md +20 -8
  434. package/docs/fr/intlayer_with_hono.md +20 -4
  435. package/docs/fr/intlayer_with_lynx+react.md +20 -4
  436. package/docs/fr/intlayer_with_nestjs.md +20 -4
  437. package/docs/fr/intlayer_with_next-i18next.md +20 -4
  438. package/docs/fr/intlayer_with_nextjs_14.md +20 -4
  439. package/docs/fr/intlayer_with_nextjs_15.md +20 -4
  440. package/docs/fr/intlayer_with_nextjs_16.md +20 -4
  441. package/docs/fr/intlayer_with_nextjs_compiler.md +20 -4
  442. package/docs/fr/intlayer_with_nextjs_no_locale_path.md +20 -4
  443. package/docs/fr/intlayer_with_nextjs_page_router.md +20 -4
  444. package/docs/fr/intlayer_with_nuxt.md +20 -4
  445. package/docs/fr/intlayer_with_react_router_v7.md +20 -4
  446. package/docs/fr/intlayer_with_svelte_kit.md +40 -8
  447. package/docs/fr/intlayer_with_tanstack+solid.md +20 -4
  448. package/docs/fr/intlayer_with_tanstack.md +20 -4
  449. package/docs/fr/intlayer_with_vite+lit.md +20 -4
  450. package/docs/fr/intlayer_with_vite+preact.md +20 -4
  451. package/docs/fr/intlayer_with_vite+react.md +20 -4
  452. package/docs/fr/intlayer_with_vite+react_compiler.md +20 -4
  453. package/docs/fr/intlayer_with_vite+solid.md +20 -4
  454. package/docs/fr/intlayer_with_vite+svelte.md +20 -4
  455. package/docs/fr/intlayer_with_vite+vanilla.md +20 -4
  456. package/docs/fr/intlayer_with_vite+vue.md +20 -4
  457. package/docs/fr/migration_from_i18next_to_intlayer.md +20 -4
  458. package/docs/fr/migration_from_next-i18next_to_intlayer.md +20 -4
  459. package/docs/fr/migration_from_next-intl_to_intlayer.md +20 -4
  460. package/docs/fr/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  461. package/docs/fr/migration_from_react-i18next_to_intlayer.md +20 -4
  462. package/docs/fr/migration_from_vue-i18n_to_intlayer.md +20 -4
  463. package/docs/fr/packages/angular-intlayer/exports.md +13 -9
  464. package/docs/fr/packages/angular-intlayer/usePathname.md +119 -0
  465. package/docs/fr/packages/intlayer/comparePaths.md +173 -0
  466. package/docs/fr/packages/intlayer/exports.md +18 -13
  467. package/docs/fr/packages/next-intlayer/exports.md +4 -0
  468. package/docs/fr/packages/next-intlayer/usePathname.md +136 -0
  469. package/docs/fr/packages/preact-intlayer/exports.md +10 -6
  470. package/docs/fr/packages/preact-intlayer/usePathname.md +117 -0
  471. package/docs/fr/packages/react-intlayer/exports.md +4 -0
  472. package/docs/fr/packages/react-intlayer/usePathname.md +87 -0
  473. package/docs/fr/packages/solid-intlayer/exports.md +4 -0
  474. package/docs/fr/packages/solid-intlayer/usePathname.md +119 -0
  475. package/docs/fr/packages/svelte-intlayer/exports.md +4 -0
  476. package/docs/fr/packages/svelte-intlayer/usePathname.md +103 -0
  477. package/docs/fr/packages/vue-intlayer/exports.md +14 -10
  478. package/docs/fr/packages/vue-intlayer/usePathname.md +109 -0
  479. package/docs/fr/plugins/sync-json.md +244 -12
  480. package/docs/hi/intlayer_with_adonisjs.md +20 -4
  481. package/docs/hi/intlayer_with_analog.md +20 -4
  482. package/docs/hi/intlayer_with_angular_19.md +20 -4
  483. package/docs/hi/intlayer_with_angular_21.md +20 -4
  484. package/docs/hi/intlayer_with_astro_vue.md +20 -8
  485. package/docs/hi/intlayer_with_create_react_app.md +20 -4
  486. package/docs/hi/intlayer_with_express.md +20 -4
  487. package/docs/hi/intlayer_with_fastify.md +20 -8
  488. package/docs/hi/intlayer_with_hono.md +20 -4
  489. package/docs/hi/intlayer_with_lynx+react.md +20 -4
  490. package/docs/hi/intlayer_with_nestjs.md +20 -4
  491. package/docs/hi/intlayer_with_next-i18next.md +20 -4
  492. package/docs/hi/intlayer_with_nextjs_14.md +20 -4
  493. package/docs/hi/intlayer_with_nextjs_15.md +20 -4
  494. package/docs/hi/intlayer_with_nextjs_16.md +20 -4
  495. package/docs/hi/intlayer_with_nextjs_compiler.md +20 -4
  496. package/docs/hi/intlayer_with_nextjs_no_locale_path.md +20 -4
  497. package/docs/hi/intlayer_with_nextjs_page_router.md +20 -4
  498. package/docs/hi/intlayer_with_nuxt.md +20 -4
  499. package/docs/hi/intlayer_with_react_router_v7.md +20 -4
  500. package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +20 -4
  501. package/docs/hi/intlayer_with_svelte_kit.md +40 -8
  502. package/docs/hi/intlayer_with_tanstack+solid.md +20 -4
  503. package/docs/hi/intlayer_with_tanstack.md +20 -4
  504. package/docs/hi/intlayer_with_vite+lit.md +20 -4
  505. package/docs/hi/intlayer_with_vite+preact.md +20 -4
  506. package/docs/hi/intlayer_with_vite+react.md +20 -4
  507. package/docs/hi/intlayer_with_vite+react_compiler.md +20 -4
  508. package/docs/hi/intlayer_with_vite+solid.md +20 -4
  509. package/docs/hi/intlayer_with_vite+svelte.md +20 -4
  510. package/docs/hi/intlayer_with_vite+vanilla.md +20 -4
  511. package/docs/hi/intlayer_with_vite+vue.md +20 -4
  512. package/docs/hi/packages/angular-intlayer/exports.md +13 -9
  513. package/docs/hi/packages/angular-intlayer/usePathname.md +119 -0
  514. package/docs/hi/packages/intlayer/comparePaths.md +173 -0
  515. package/docs/hi/packages/intlayer/exports.md +18 -13
  516. package/docs/hi/packages/intlayer/index.md +20 -4
  517. package/docs/hi/packages/next-intlayer/exports.md +4 -0
  518. package/docs/hi/packages/next-intlayer/usePathname.md +136 -0
  519. package/docs/hi/packages/preact-intlayer/exports.md +10 -6
  520. package/docs/hi/packages/preact-intlayer/usePathname.md +117 -0
  521. package/docs/hi/packages/react-intlayer/exports.md +3 -0
  522. package/docs/hi/packages/react-intlayer/usePathname.md +87 -0
  523. package/docs/hi/packages/solid-intlayer/exports.md +15 -11
  524. package/docs/hi/packages/solid-intlayer/usePathname.md +119 -0
  525. package/docs/hi/packages/svelte-intlayer/exports.md +13 -9
  526. package/docs/hi/packages/svelte-intlayer/usePathname.md +103 -0
  527. package/docs/hi/packages/vue-intlayer/exports.md +14 -10
  528. package/docs/hi/packages/vue-intlayer/usePathname.md +109 -0
  529. package/docs/hi/plugins/sync-json.md +221 -48
  530. package/docs/id/intlayer_with_adonisjs.md +20 -4
  531. package/docs/id/intlayer_with_analog.md +20 -4
  532. package/docs/id/intlayer_with_angular_19.md +20 -4
  533. package/docs/id/intlayer_with_angular_21.md +20 -4
  534. package/docs/id/intlayer_with_astro_lit.md +20 -8
  535. package/docs/id/intlayer_with_astro_preact.md +20 -8
  536. package/docs/id/intlayer_with_astro_react.md +20 -8
  537. package/docs/id/intlayer_with_astro_solid.md +20 -8
  538. package/docs/id/intlayer_with_astro_svelte.md +20 -8
  539. package/docs/id/intlayer_with_astro_vanilla.md +20 -8
  540. package/docs/id/intlayer_with_astro_vue.md +20 -8
  541. package/docs/id/intlayer_with_create_react_app.md +20 -4
  542. package/docs/id/intlayer_with_express.md +20 -4
  543. package/docs/id/intlayer_with_fastify.md +20 -8
  544. package/docs/id/intlayer_with_hono.md +20 -4
  545. package/docs/id/intlayer_with_lynx+react.md +20 -4
  546. package/docs/id/intlayer_with_nestjs.md +20 -4
  547. package/docs/id/intlayer_with_next-i18next.md +20 -4
  548. package/docs/id/intlayer_with_nextjs_14.md +20 -4
  549. package/docs/id/intlayer_with_nextjs_15.md +20 -4
  550. package/docs/id/intlayer_with_nextjs_16.md +20 -4
  551. package/docs/id/intlayer_with_nextjs_compiler.md +20 -4
  552. package/docs/id/intlayer_with_nextjs_no_locale_path.md +20 -4
  553. package/docs/id/intlayer_with_nextjs_page_router.md +20 -4
  554. package/docs/id/intlayer_with_nuxt.md +25 -7
  555. package/docs/id/intlayer_with_react_native+expo.md +20 -4
  556. package/docs/id/intlayer_with_react_router_v7.md +20 -4
  557. package/docs/id/intlayer_with_react_router_v7_fs_routes.md +20 -4
  558. package/docs/id/intlayer_with_svelte_kit.md +40 -8
  559. package/docs/id/intlayer_with_tanstack+solid.md +20 -4
  560. package/docs/id/intlayer_with_tanstack.md +20 -4
  561. package/docs/id/intlayer_with_vite+lit.md +20 -4
  562. package/docs/id/intlayer_with_vite+preact.md +20 -4
  563. package/docs/id/intlayer_with_vite+react.md +20 -4
  564. package/docs/id/intlayer_with_vite+react_compiler.md +20 -4
  565. package/docs/id/intlayer_with_vite+solid.md +20 -4
  566. package/docs/id/intlayer_with_vite+svelte.md +20 -4
  567. package/docs/id/intlayer_with_vite+vanilla.md +20 -4
  568. package/docs/id/intlayer_with_vite+vue.md +20 -4
  569. package/docs/id/packages/angular-intlayer/exports.md +14 -10
  570. package/docs/id/packages/angular-intlayer/usePathname.md +119 -0
  571. package/docs/id/packages/intlayer/comparePaths.md +173 -0
  572. package/docs/id/packages/intlayer/exports.md +5 -0
  573. package/docs/id/packages/next-intlayer/exports.md +4 -0
  574. package/docs/id/packages/next-intlayer/usePathname.md +136 -0
  575. package/docs/id/packages/preact-intlayer/exports.md +10 -6
  576. package/docs/id/packages/preact-intlayer/usePathname.md +117 -0
  577. package/docs/id/packages/react-intlayer/exports.md +4 -0
  578. package/docs/id/packages/react-intlayer/usePathname.md +87 -0
  579. package/docs/id/packages/solid-intlayer/exports.md +4 -0
  580. package/docs/id/packages/solid-intlayer/usePathname.md +119 -0
  581. package/docs/id/packages/svelte-intlayer/exports.md +13 -9
  582. package/docs/id/packages/svelte-intlayer/usePathname.md +103 -0
  583. package/docs/id/packages/vue-intlayer/exports.md +4 -0
  584. package/docs/id/packages/vue-intlayer/usePathname.md +109 -0
  585. package/docs/id/plugins/sync-json.md +222 -49
  586. package/docs/it/intlayer_with_adonisjs.md +20 -4
  587. package/docs/it/intlayer_with_analog.md +20 -4
  588. package/docs/it/intlayer_with_angular_19.md +20 -4
  589. package/docs/it/intlayer_with_angular_21.md +20 -4
  590. package/docs/it/intlayer_with_astro_lit.md +20 -8
  591. package/docs/it/intlayer_with_astro_preact.md +20 -8
  592. package/docs/it/intlayer_with_astro_react.md +20 -8
  593. package/docs/it/intlayer_with_astro_solid.md +20 -8
  594. package/docs/it/intlayer_with_astro_svelte.md +20 -8
  595. package/docs/it/intlayer_with_astro_vanilla.md +20 -8
  596. package/docs/it/intlayer_with_astro_vue.md +20 -8
  597. package/docs/it/intlayer_with_create_react_app.md +20 -4
  598. package/docs/it/intlayer_with_express.md +20 -4
  599. package/docs/it/intlayer_with_fastify.md +20 -8
  600. package/docs/it/intlayer_with_hono.md +20 -4
  601. package/docs/it/intlayer_with_lynx+react.md +20 -4
  602. package/docs/it/intlayer_with_nestjs.md +20 -4
  603. package/docs/it/intlayer_with_next-i18next.md +20 -4
  604. package/docs/it/intlayer_with_nextjs_14.md +20 -4
  605. package/docs/it/intlayer_with_nextjs_15.md +20 -4
  606. package/docs/it/intlayer_with_nextjs_16.md +20 -4
  607. package/docs/it/intlayer_with_nextjs_compiler.md +20 -4
  608. package/docs/it/intlayer_with_nextjs_no_locale_path.md +20 -4
  609. package/docs/it/intlayer_with_nextjs_page_router.md +20 -4
  610. package/docs/it/intlayer_with_nuxt.md +25 -7
  611. package/docs/it/intlayer_with_react_native+expo.md +20 -4
  612. package/docs/it/intlayer_with_react_router_v7.md +20 -4
  613. package/docs/it/intlayer_with_svelte_kit.md +40 -8
  614. package/docs/it/intlayer_with_tanstack+solid.md +20 -4
  615. package/docs/it/intlayer_with_tanstack.md +20 -4
  616. package/docs/it/intlayer_with_vite+lit.md +20 -4
  617. package/docs/it/intlayer_with_vite+preact.md +20 -4
  618. package/docs/it/intlayer_with_vite+react.md +20 -4
  619. package/docs/it/intlayer_with_vite+react_compiler.md +20 -4
  620. package/docs/it/intlayer_with_vite+solid.md +20 -4
  621. package/docs/it/intlayer_with_vite+svelte.md +20 -4
  622. package/docs/it/intlayer_with_vite+vanilla.md +20 -4
  623. package/docs/it/intlayer_with_vite+vue.md +20 -4
  624. package/docs/it/migration_from_i18next_to_intlayer.md +20 -4
  625. package/docs/it/migration_from_next-i18next_to_intlayer.md +20 -4
  626. package/docs/it/migration_from_next-intl_to_intlayer.md +20 -4
  627. package/docs/it/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  628. package/docs/it/migration_from_react-i18next_to_intlayer.md +20 -4
  629. package/docs/it/migration_from_vue-i18n_to_intlayer.md +20 -4
  630. package/docs/it/packages/angular-intlayer/exports.md +13 -9
  631. package/docs/it/packages/angular-intlayer/usePathname.md +119 -0
  632. package/docs/it/packages/intlayer/comparePaths.md +173 -0
  633. package/docs/it/packages/intlayer/exports.md +18 -13
  634. package/docs/it/packages/next-intlayer/exports.md +4 -0
  635. package/docs/it/packages/next-intlayer/usePathname.md +136 -0
  636. package/docs/it/packages/preact-intlayer/exports.md +10 -6
  637. package/docs/it/packages/preact-intlayer/usePathname.md +117 -0
  638. package/docs/it/packages/react-intlayer/exports.md +20 -16
  639. package/docs/it/packages/react-intlayer/usePathname.md +87 -0
  640. package/docs/it/packages/solid-intlayer/exports.md +4 -0
  641. package/docs/it/packages/solid-intlayer/usePathname.md +119 -0
  642. package/docs/it/packages/svelte-intlayer/exports.md +4 -0
  643. package/docs/it/packages/svelte-intlayer/usePathname.md +103 -0
  644. package/docs/it/packages/vue-intlayer/exports.md +4 -0
  645. package/docs/it/packages/vue-intlayer/usePathname.md +109 -0
  646. package/docs/it/plugins/sync-json.md +224 -51
  647. package/docs/ja/intlayer_with_adonisjs.md +20 -4
  648. package/docs/ja/intlayer_with_analog.md +20 -4
  649. package/docs/ja/intlayer_with_angular_19.md +20 -4
  650. package/docs/ja/intlayer_with_angular_21.md +20 -4
  651. package/docs/ja/intlayer_with_astro_lit.md +20 -8
  652. package/docs/ja/intlayer_with_astro_preact.md +20 -8
  653. package/docs/ja/intlayer_with_astro_react.md +20 -8
  654. package/docs/ja/intlayer_with_astro_solid.md +20 -8
  655. package/docs/ja/intlayer_with_astro_svelte.md +20 -8
  656. package/docs/ja/intlayer_with_astro_vanilla.md +20 -8
  657. package/docs/ja/intlayer_with_astro_vue.md +20 -8
  658. package/docs/ja/intlayer_with_create_react_app.md +20 -4
  659. package/docs/ja/intlayer_with_express.md +20 -4
  660. package/docs/ja/intlayer_with_fastify.md +20 -8
  661. package/docs/ja/intlayer_with_hono.md +20 -4
  662. package/docs/ja/intlayer_with_lynx+react.md +20 -4
  663. package/docs/ja/intlayer_with_nestjs.md +20 -4
  664. package/docs/ja/intlayer_with_next-i18next.md +20 -4
  665. package/docs/ja/intlayer_with_nextjs_14.md +20 -4
  666. package/docs/ja/intlayer_with_nextjs_15.md +20 -4
  667. package/docs/ja/intlayer_with_nextjs_16.md +20 -4
  668. package/docs/ja/intlayer_with_nextjs_compiler.md +20 -4
  669. package/docs/ja/intlayer_with_nextjs_no_locale_path.md +20 -4
  670. package/docs/ja/intlayer_with_nextjs_page_router.md +20 -4
  671. package/docs/ja/intlayer_with_nuxt.md +25 -7
  672. package/docs/ja/intlayer_with_tanstack+solid.md +20 -4
  673. package/docs/ja/intlayer_with_tanstack.md +20 -4
  674. package/docs/ja/intlayer_with_vite+lit.md +20 -4
  675. package/docs/ja/intlayer_with_vite+react_compiler.md +20 -4
  676. package/docs/ja/intlayer_with_vite+solid.md +20 -4
  677. package/docs/ja/intlayer_with_vite+svelte.md +20 -4
  678. package/docs/ja/intlayer_with_vite+vanilla.md +20 -4
  679. package/docs/ja/intlayer_with_vite+vue.md +20 -4
  680. package/docs/ja/migration_from_i18next_to_intlayer.md +20 -4
  681. package/docs/ja/migration_from_next-i18next_to_intlayer.md +20 -4
  682. package/docs/ja/migration_from_next-intl_to_intlayer.md +20 -4
  683. package/docs/ja/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  684. package/docs/ja/migration_from_react-i18next_to_intlayer.md +20 -4
  685. package/docs/ja/migration_from_vue-i18n_to_intlayer.md +20 -4
  686. package/docs/ja/packages/angular-intlayer/exports.md +13 -9
  687. package/docs/ja/packages/angular-intlayer/usePathname.md +119 -0
  688. package/docs/ja/packages/intlayer/comparePaths.md +173 -0
  689. package/docs/ja/packages/intlayer/exports.md +5 -0
  690. package/docs/ja/packages/next-intlayer/exports.md +4 -0
  691. package/docs/ja/packages/next-intlayer/usePathname.md +136 -0
  692. package/docs/ja/packages/preact-intlayer/exports.md +10 -6
  693. package/docs/ja/packages/preact-intlayer/usePathname.md +117 -0
  694. package/docs/ja/packages/react-intlayer/exports.md +21 -16
  695. package/docs/ja/packages/react-intlayer/usePathname.md +87 -0
  696. package/docs/ja/packages/solid-intlayer/exports.md +4 -0
  697. package/docs/ja/packages/solid-intlayer/usePathname.md +120 -0
  698. package/docs/ja/packages/svelte-intlayer/exports.md +13 -9
  699. package/docs/ja/packages/svelte-intlayer/usePathname.md +103 -0
  700. package/docs/ja/packages/vue-intlayer/exports.md +4 -0
  701. package/docs/ja/packages/vue-intlayer/usePathname.md +109 -0
  702. package/docs/ja/plugins/sync-json.md +222 -49
  703. package/docs/ko/intlayer_with_adonisjs.md +20 -4
  704. package/docs/ko/intlayer_with_analog.md +42 -10
  705. package/docs/ko/intlayer_with_angular_19.md +42 -10
  706. package/docs/ko/intlayer_with_angular_21.md +42 -10
  707. package/docs/ko/intlayer_with_astro.md +28 -8
  708. package/docs/ko/intlayer_with_astro_lit.md +31 -9
  709. package/docs/ko/intlayer_with_astro_preact.md +31 -9
  710. package/docs/ko/intlayer_with_astro_react.md +31 -9
  711. package/docs/ko/intlayer_with_astro_solid.md +31 -9
  712. package/docs/ko/intlayer_with_astro_svelte.md +31 -9
  713. package/docs/ko/intlayer_with_astro_vanilla.md +28 -8
  714. package/docs/ko/intlayer_with_astro_vue.md +51 -17
  715. package/docs/ko/intlayer_with_create_react_app.md +39 -9
  716. package/docs/ko/intlayer_with_express.md +20 -4
  717. package/docs/ko/intlayer_with_fastify.md +20 -8
  718. package/docs/ko/intlayer_with_hono.md +20 -4
  719. package/docs/ko/intlayer_with_lynx+react.md +20 -4
  720. package/docs/ko/intlayer_with_nestjs.md +20 -4
  721. package/docs/ko/intlayer_with_next-i18next.md +20 -4
  722. package/docs/ko/intlayer_with_nextjs_14.md +40 -12
  723. package/docs/ko/intlayer_with_nextjs_15.md +63 -17
  724. package/docs/ko/intlayer_with_nextjs_16.md +59 -17
  725. package/docs/ko/intlayer_with_nextjs_compiler.md +55 -13
  726. package/docs/ko/intlayer_with_nextjs_no_locale_path.md +50 -14
  727. package/docs/ko/intlayer_with_nextjs_page_router.md +57 -15
  728. package/docs/ko/intlayer_with_nuxt.md +54 -14
  729. package/docs/ko/intlayer_with_react_native+expo.md +20 -4
  730. package/docs/ko/intlayer_with_react_router_v7.md +64 -16
  731. package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +64 -16
  732. package/docs/ko/intlayer_with_storybook.md +28 -8
  733. package/docs/ko/intlayer_with_svelte_kit.md +96 -24
  734. package/docs/ko/intlayer_with_tanstack+solid.md +78 -22
  735. package/docs/ko/intlayer_with_tanstack.md +78 -22
  736. package/docs/ko/intlayer_with_vanilla.md +31 -9
  737. package/docs/ko/intlayer_with_vite+lit.md +60 -16
  738. package/docs/ko/intlayer_with_vite+preact.md +57 -15
  739. package/docs/ko/intlayer_with_vite+react.md +10 -2
  740. package/docs/ko/intlayer_with_vite+react_compiler.md +42 -10
  741. package/docs/ko/intlayer_with_vite+solid.md +57 -15
  742. package/docs/ko/intlayer_with_vite+svelte.md +53 -15
  743. package/docs/ko/intlayer_with_vite+vanilla.md +63 -17
  744. package/docs/ko/intlayer_with_vite+vue.md +57 -15
  745. package/docs/ko/migration_from_i18next_to_intlayer.md +20 -4
  746. package/docs/ko/migration_from_next-i18next_to_intlayer.md +20 -4
  747. package/docs/ko/migration_from_next-intl_to_intlayer.md +20 -4
  748. package/docs/ko/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  749. package/docs/ko/migration_from_react-i18next_to_intlayer.md +20 -4
  750. package/docs/ko/migration_from_vue-i18n_to_intlayer.md +20 -4
  751. package/docs/ko/packages/angular-intlayer/exports.md +14 -10
  752. package/docs/ko/packages/angular-intlayer/usePathname.md +119 -0
  753. package/docs/ko/packages/intlayer/comparePaths.md +173 -0
  754. package/docs/ko/packages/intlayer/exports.md +5 -0
  755. package/docs/ko/packages/next-intlayer/exports.md +4 -0
  756. package/docs/ko/packages/next-intlayer/usePathname.md +140 -0
  757. package/docs/ko/packages/preact-intlayer/exports.md +10 -6
  758. package/docs/ko/packages/preact-intlayer/usePathname.md +117 -0
  759. package/docs/ko/packages/react-intlayer/exports.md +4 -0
  760. package/docs/ko/packages/react-intlayer/usePathname.md +87 -0
  761. package/docs/ko/packages/solid-intlayer/exports.md +4 -0
  762. package/docs/ko/packages/solid-intlayer/usePathname.md +119 -0
  763. package/docs/ko/packages/svelte-intlayer/exports.md +4 -0
  764. package/docs/ko/packages/svelte-intlayer/usePathname.md +103 -0
  765. package/docs/ko/packages/vue-intlayer/exports.md +4 -0
  766. package/docs/ko/packages/vue-intlayer/usePathname.md +109 -0
  767. package/docs/ko/plugins/sync-json.md +223 -50
  768. package/docs/nl/intlayer_with_angular_21.md +20 -4
  769. package/docs/nl/intlayer_with_fastify.md +20 -8
  770. package/docs/nl/intlayer_with_hono.md +20 -4
  771. package/docs/nl/intlayer_with_vite+lit.md +20 -4
  772. package/docs/nl/intlayer_with_vite+vanilla.md +20 -4
  773. package/docs/nl/packages/intlayer/comparePaths.md +173 -0
  774. package/docs/pl/intlayer_with_adonisjs.md +20 -4
  775. package/docs/pl/intlayer_with_analog.md +20 -4
  776. package/docs/pl/intlayer_with_angular_19.md +20 -4
  777. package/docs/pl/intlayer_with_angular_21.md +20 -4
  778. package/docs/pl/intlayer_with_astro_lit.md +20 -8
  779. package/docs/pl/intlayer_with_astro_preact.md +20 -8
  780. package/docs/pl/intlayer_with_astro_react.md +20 -8
  781. package/docs/pl/intlayer_with_astro_solid.md +20 -8
  782. package/docs/pl/intlayer_with_astro_svelte.md +20 -8
  783. package/docs/pl/intlayer_with_astro_vanilla.md +20 -8
  784. package/docs/pl/intlayer_with_astro_vue.md +20 -8
  785. package/docs/pl/intlayer_with_create_react_app.md +20 -4
  786. package/docs/pl/intlayer_with_express.md +20 -4
  787. package/docs/pl/intlayer_with_fastify.md +20 -8
  788. package/docs/pl/intlayer_with_hono.md +20 -4
  789. package/docs/pl/intlayer_with_lynx+react.md +20 -4
  790. package/docs/pl/intlayer_with_nestjs.md +20 -4
  791. package/docs/pl/intlayer_with_next-i18next.md +20 -4
  792. package/docs/pl/intlayer_with_nextjs_14.md +20 -4
  793. package/docs/pl/intlayer_with_nextjs_15.md +20 -4
  794. package/docs/pl/intlayer_with_nextjs_16.md +20 -4
  795. package/docs/pl/intlayer_with_nextjs_compiler.md +20 -4
  796. package/docs/pl/intlayer_with_nextjs_no_locale_path.md +20 -4
  797. package/docs/pl/intlayer_with_nextjs_page_router.md +20 -4
  798. package/docs/pl/intlayer_with_nuxt.md +25 -7
  799. package/docs/pl/intlayer_with_react_native+expo.md +20 -4
  800. package/docs/pl/intlayer_with_react_router_v7.md +20 -4
  801. package/docs/pl/intlayer_with_svelte_kit.md +40 -8
  802. package/docs/pl/intlayer_with_tanstack+solid.md +20 -4
  803. package/docs/pl/intlayer_with_tanstack.md +20 -4
  804. package/docs/pl/intlayer_with_vite+lit.md +20 -4
  805. package/docs/pl/intlayer_with_vite+preact.md +20 -4
  806. package/docs/pl/intlayer_with_vite+react.md +20 -4
  807. package/docs/pl/intlayer_with_vite+react_compiler.md +20 -4
  808. package/docs/pl/intlayer_with_vite+solid.md +20 -4
  809. package/docs/pl/intlayer_with_vite+svelte.md +20 -4
  810. package/docs/pl/intlayer_with_vite+vanilla.md +20 -4
  811. package/docs/pl/intlayer_with_vite+vue.md +20 -4
  812. package/docs/pl/packages/angular-intlayer/exports.md +13 -9
  813. package/docs/pl/packages/angular-intlayer/usePathname.md +119 -0
  814. package/docs/pl/packages/intlayer/comparePaths.md +173 -0
  815. package/docs/pl/packages/intlayer/exports.md +5 -0
  816. package/docs/pl/packages/next-intlayer/exports.md +4 -0
  817. package/docs/pl/packages/next-intlayer/usePathname.md +136 -0
  818. package/docs/pl/packages/preact-intlayer/exports.md +10 -6
  819. package/docs/pl/packages/preact-intlayer/usePathname.md +117 -0
  820. package/docs/pl/packages/react-intlayer/exports.md +4 -0
  821. package/docs/pl/packages/react-intlayer/usePathname.md +87 -0
  822. package/docs/pl/packages/solid-intlayer/exports.md +4 -0
  823. package/docs/pl/packages/solid-intlayer/usePathname.md +119 -0
  824. package/docs/pl/packages/svelte-intlayer/exports.md +4 -0
  825. package/docs/pl/packages/svelte-intlayer/usePathname.md +103 -0
  826. package/docs/pl/packages/vue-intlayer/exports.md +4 -0
  827. package/docs/pl/packages/vue-intlayer/usePathname.md +109 -0
  828. package/docs/pl/plugins/sync-json.md +246 -14
  829. package/docs/pt/intlayer_with_adonisjs.md +20 -4
  830. package/docs/pt/intlayer_with_analog.md +20 -4
  831. package/docs/pt/intlayer_with_angular_19.md +20 -4
  832. package/docs/pt/intlayer_with_angular_21.md +20 -4
  833. package/docs/pt/intlayer_with_astro_lit.md +20 -8
  834. package/docs/pt/intlayer_with_astro_preact.md +20 -8
  835. package/docs/pt/intlayer_with_astro_react.md +20 -8
  836. package/docs/pt/intlayer_with_astro_solid.md +20 -8
  837. package/docs/pt/intlayer_with_astro_svelte.md +20 -8
  838. package/docs/pt/intlayer_with_astro_vanilla.md +20 -8
  839. package/docs/pt/intlayer_with_astro_vue.md +20 -8
  840. package/docs/pt/intlayer_with_create_react_app.md +20 -4
  841. package/docs/pt/intlayer_with_express.md +20 -4
  842. package/docs/pt/intlayer_with_fastify.md +20 -8
  843. package/docs/pt/intlayer_with_hono.md +20 -4
  844. package/docs/pt/intlayer_with_lynx+react.md +20 -4
  845. package/docs/pt/intlayer_with_nestjs.md +20 -4
  846. package/docs/pt/intlayer_with_next-i18next.md +20 -4
  847. package/docs/pt/intlayer_with_nextjs_14.md +20 -4
  848. package/docs/pt/intlayer_with_nextjs_15.md +20 -4
  849. package/docs/pt/intlayer_with_nextjs_16.md +20 -4
  850. package/docs/pt/intlayer_with_nextjs_compiler.md +20 -4
  851. package/docs/pt/intlayer_with_nextjs_no_locale_path.md +20 -4
  852. package/docs/pt/intlayer_with_nextjs_page_router.md +20 -4
  853. package/docs/pt/intlayer_with_nuxt.md +25 -7
  854. package/docs/pt/intlayer_with_react_native+expo.md +20 -4
  855. package/docs/pt/intlayer_with_react_router_v7.md +20 -4
  856. package/docs/pt/intlayer_with_svelte_kit.md +40 -8
  857. package/docs/pt/intlayer_with_tanstack+solid.md +20 -4
  858. package/docs/pt/intlayer_with_tanstack.md +20 -4
  859. package/docs/pt/intlayer_with_vite+lit.md +20 -4
  860. package/docs/pt/intlayer_with_vite+preact.md +20 -4
  861. package/docs/pt/intlayer_with_vite+react.md +20 -4
  862. package/docs/pt/intlayer_with_vite+react_compiler.md +20 -4
  863. package/docs/pt/intlayer_with_vite+solid.md +20 -4
  864. package/docs/pt/intlayer_with_vite+svelte.md +20 -4
  865. package/docs/pt/intlayer_with_vite+vanilla.md +20 -4
  866. package/docs/pt/intlayer_with_vite+vue.md +20 -4
  867. package/docs/pt/migration_from_i18next_to_intlayer.md +20 -4
  868. package/docs/pt/migration_from_next-i18next_to_intlayer.md +20 -4
  869. package/docs/pt/migration_from_next-intl_to_intlayer.md +20 -4
  870. package/docs/pt/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  871. package/docs/pt/migration_from_react-i18next_to_intlayer.md +20 -4
  872. package/docs/pt/migration_from_vue-i18n_to_intlayer.md +20 -4
  873. package/docs/pt/packages/angular-intlayer/exports.md +14 -10
  874. package/docs/pt/packages/angular-intlayer/usePathname.md +119 -0
  875. package/docs/pt/packages/intlayer/comparePaths.md +173 -0
  876. package/docs/pt/packages/intlayer/exports.md +5 -0
  877. package/docs/pt/packages/next-intlayer/exports.md +4 -0
  878. package/docs/pt/packages/next-intlayer/usePathname.md +136 -0
  879. package/docs/pt/packages/preact-intlayer/exports.md +10 -6
  880. package/docs/pt/packages/preact-intlayer/usePathname.md +117 -0
  881. package/docs/pt/packages/react-intlayer/exports.md +21 -17
  882. package/docs/pt/packages/react-intlayer/usePathname.md +87 -0
  883. package/docs/pt/packages/solid-intlayer/exports.md +4 -0
  884. package/docs/pt/packages/solid-intlayer/usePathname.md +119 -0
  885. package/docs/pt/packages/svelte-intlayer/exports.md +4 -0
  886. package/docs/pt/packages/svelte-intlayer/usePathname.md +103 -0
  887. package/docs/pt/packages/vue-intlayer/exports.md +5 -1
  888. package/docs/pt/packages/vue-intlayer/usePathname.md +109 -0
  889. package/docs/pt/plugins/sync-json.md +222 -49
  890. package/docs/ru/intlayer_with_adonisjs.md +20 -4
  891. package/docs/ru/intlayer_with_analog.md +20 -4
  892. package/docs/ru/intlayer_with_angular_19.md +20 -4
  893. package/docs/ru/intlayer_with_angular_21.md +20 -4
  894. package/docs/ru/intlayer_with_astro_vue.md +20 -8
  895. package/docs/ru/intlayer_with_create_react_app.md +20 -4
  896. package/docs/ru/intlayer_with_express.md +20 -4
  897. package/docs/ru/intlayer_with_fastify.md +20 -8
  898. package/docs/ru/intlayer_with_hono.md +20 -4
  899. package/docs/ru/intlayer_with_lynx+react.md +20 -4
  900. package/docs/ru/intlayer_with_nestjs.md +20 -4
  901. package/docs/ru/intlayer_with_next-i18next.md +20 -4
  902. package/docs/ru/intlayer_with_nextjs_14.md +20 -4
  903. package/docs/ru/intlayer_with_nextjs_15.md +20 -4
  904. package/docs/ru/intlayer_with_nextjs_16.md +20 -4
  905. package/docs/ru/intlayer_with_nextjs_compiler.md +20 -4
  906. package/docs/ru/intlayer_with_nextjs_no_locale_path.md +20 -4
  907. package/docs/ru/intlayer_with_nextjs_page_router.md +20 -4
  908. package/docs/ru/intlayer_with_nuxt.md +25 -7
  909. package/docs/ru/intlayer_with_react_native+expo.md +20 -4
  910. package/docs/ru/intlayer_with_react_router_v7.md +20 -4
  911. package/docs/ru/intlayer_with_svelte_kit.md +40 -8
  912. package/docs/ru/intlayer_with_tanstack+solid.md +20 -4
  913. package/docs/ru/intlayer_with_tanstack.md +20 -4
  914. package/docs/ru/intlayer_with_vite+lit.md +20 -4
  915. package/docs/ru/intlayer_with_vite+preact.md +20 -4
  916. package/docs/ru/intlayer_with_vite+react.md +20 -4
  917. package/docs/ru/intlayer_with_vite+react_compiler.md +20 -4
  918. package/docs/ru/intlayer_with_vite+solid.md +20 -4
  919. package/docs/ru/intlayer_with_vite+svelte.md +20 -4
  920. package/docs/ru/intlayer_with_vite+vanilla.md +20 -4
  921. package/docs/ru/intlayer_with_vite+vue.md +20 -4
  922. package/docs/ru/migration_from_i18next_to_intlayer.md +20 -4
  923. package/docs/ru/migration_from_next-i18next_to_intlayer.md +20 -4
  924. package/docs/ru/migration_from_next-intl_to_intlayer.md +20 -4
  925. package/docs/ru/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  926. package/docs/ru/migration_from_react-i18next_to_intlayer.md +20 -4
  927. package/docs/ru/migration_from_vue-i18n_to_intlayer.md +20 -4
  928. package/docs/ru/packages/angular-intlayer/exports.md +13 -9
  929. package/docs/ru/packages/angular-intlayer/usePathname.md +119 -0
  930. package/docs/ru/packages/intlayer/comparePaths.md +173 -0
  931. package/docs/ru/packages/intlayer/exports.md +5 -0
  932. package/docs/ru/packages/next-intlayer/exports.md +4 -0
  933. package/docs/ru/packages/next-intlayer/usePathname.md +136 -0
  934. package/docs/ru/packages/preact-intlayer/exports.md +10 -6
  935. package/docs/ru/packages/preact-intlayer/usePathname.md +117 -0
  936. package/docs/ru/packages/react-intlayer/exports.md +4 -0
  937. package/docs/ru/packages/react-intlayer/usePathname.md +87 -0
  938. package/docs/ru/packages/solid-intlayer/exports.md +4 -0
  939. package/docs/ru/packages/solid-intlayer/usePathname.md +119 -0
  940. package/docs/ru/packages/svelte-intlayer/exports.md +4 -0
  941. package/docs/ru/packages/svelte-intlayer/usePathname.md +103 -0
  942. package/docs/ru/packages/vue-intlayer/exports.md +4 -0
  943. package/docs/ru/packages/vue-intlayer/usePathname.md +109 -0
  944. package/docs/ru/plugins/sync-json.md +269 -95
  945. package/docs/tr/intlayer_with_adonisjs.md +20 -4
  946. package/docs/tr/intlayer_with_analog.md +20 -4
  947. package/docs/tr/intlayer_with_angular_19.md +20 -4
  948. package/docs/tr/intlayer_with_angular_21.md +20 -4
  949. package/docs/tr/intlayer_with_astro_lit.md +20 -8
  950. package/docs/tr/intlayer_with_astro_preact.md +20 -8
  951. package/docs/tr/intlayer_with_astro_react.md +20 -8
  952. package/docs/tr/intlayer_with_astro_solid.md +20 -8
  953. package/docs/tr/intlayer_with_astro_svelte.md +20 -8
  954. package/docs/tr/intlayer_with_astro_vanilla.md +20 -8
  955. package/docs/tr/intlayer_with_astro_vue.md +20 -8
  956. package/docs/tr/intlayer_with_create_react_app.md +20 -4
  957. package/docs/tr/intlayer_with_express.md +20 -4
  958. package/docs/tr/intlayer_with_fastify.md +20 -8
  959. package/docs/tr/intlayer_with_hono.md +20 -4
  960. package/docs/tr/intlayer_with_lynx+react.md +20 -4
  961. package/docs/tr/intlayer_with_nestjs.md +20 -4
  962. package/docs/tr/intlayer_with_next-i18next.md +20 -4
  963. package/docs/tr/intlayer_with_nextjs_14.md +20 -4
  964. package/docs/tr/intlayer_with_nextjs_15.md +20 -4
  965. package/docs/tr/intlayer_with_nextjs_16.md +20 -4
  966. package/docs/tr/intlayer_with_nextjs_compiler.md +20 -4
  967. package/docs/tr/intlayer_with_nextjs_no_locale_path.md +20 -4
  968. package/docs/tr/intlayer_with_nextjs_page_router.md +20 -4
  969. package/docs/tr/intlayer_with_nuxt.md +25 -7
  970. package/docs/tr/intlayer_with_react_native+expo.md +40 -8
  971. package/docs/tr/intlayer_with_react_router_v7.md +20 -4
  972. package/docs/tr/intlayer_with_svelte_kit.md +40 -8
  973. package/docs/tr/intlayer_with_tanstack+solid.md +20 -4
  974. package/docs/tr/intlayer_with_tanstack.md +20 -4
  975. package/docs/tr/intlayer_with_vite+lit.md +20 -4
  976. package/docs/tr/intlayer_with_vite+preact.md +20 -4
  977. package/docs/tr/intlayer_with_vite+react.md +20 -4
  978. package/docs/tr/intlayer_with_vite+react_compiler.md +20 -4
  979. package/docs/tr/intlayer_with_vite+solid.md +20 -4
  980. package/docs/tr/intlayer_with_vite+svelte.md +20 -4
  981. package/docs/tr/intlayer_with_vite+vanilla.md +20 -4
  982. package/docs/tr/intlayer_with_vite+vue.md +20 -4
  983. package/docs/tr/migration_from_i18next_to_intlayer.md +20 -4
  984. package/docs/tr/migration_from_next-i18next_to_intlayer.md +20 -4
  985. package/docs/tr/migration_from_next-intl_to_intlayer.md +20 -4
  986. package/docs/tr/migration_from_nuxtjs_i18n_to_intlayer.md +20 -4
  987. package/docs/tr/migration_from_react-i18next_to_intlayer.md +20 -4
  988. package/docs/tr/migration_from_vue-i18n_to_intlayer.md +20 -4
  989. package/docs/tr/packages/angular-intlayer/exports.md +13 -9
  990. package/docs/tr/packages/angular-intlayer/usePathname.md +119 -0
  991. package/docs/tr/packages/intlayer/comparePaths.md +173 -0
  992. package/docs/tr/packages/intlayer/exports.md +18 -13
  993. package/docs/tr/packages/next-intlayer/exports.md +4 -0
  994. package/docs/tr/packages/next-intlayer/usePathname.md +136 -0
  995. package/docs/tr/packages/preact-intlayer/exports.md +10 -6
  996. package/docs/tr/packages/preact-intlayer/usePathname.md +117 -0
  997. package/docs/tr/packages/react-intlayer/exports.md +4 -0
  998. package/docs/tr/packages/react-intlayer/usePathname.md +87 -0
  999. package/docs/tr/packages/solid-intlayer/exports.md +4 -0
  1000. package/docs/tr/packages/solid-intlayer/usePathname.md +119 -0
  1001. package/docs/tr/packages/svelte-intlayer/exports.md +13 -9
  1002. package/docs/tr/packages/svelte-intlayer/usePathname.md +103 -0
  1003. package/docs/tr/packages/vue-intlayer/exports.md +4 -0
  1004. package/docs/tr/packages/vue-intlayer/usePathname.md +109 -0
  1005. package/docs/tr/plugins/sync-json.md +222 -50
  1006. package/docs/uk/intlayer_with_adonisjs.md +20 -4
  1007. package/docs/uk/intlayer_with_analog.md +20 -4
  1008. package/docs/uk/intlayer_with_angular_19.md +20 -4
  1009. package/docs/uk/intlayer_with_angular_21.md +20 -4
  1010. package/docs/uk/intlayer_with_astro_lit.md +20 -8
  1011. package/docs/uk/intlayer_with_astro_preact.md +20 -8
  1012. package/docs/uk/intlayer_with_astro_react.md +20 -8
  1013. package/docs/uk/intlayer_with_astro_solid.md +20 -8
  1014. package/docs/uk/intlayer_with_astro_svelte.md +20 -8
  1015. package/docs/uk/intlayer_with_astro_vanilla.md +20 -8
  1016. package/docs/uk/intlayer_with_astro_vue.md +20 -8
  1017. package/docs/uk/intlayer_with_create_react_app.md +20 -4
  1018. package/docs/uk/intlayer_with_express.md +20 -4
  1019. package/docs/uk/intlayer_with_fastify.md +20 -8
  1020. package/docs/uk/intlayer_with_hono.md +20 -4
  1021. package/docs/uk/intlayer_with_lynx+react.md +20 -4
  1022. package/docs/uk/intlayer_with_nestjs.md +20 -4
  1023. package/docs/uk/intlayer_with_next-i18next.md +20 -4
  1024. package/docs/uk/intlayer_with_nextjs_14.md +20 -4
  1025. package/docs/uk/intlayer_with_nextjs_15.md +20 -4
  1026. package/docs/uk/intlayer_with_nextjs_16.md +20 -4
  1027. package/docs/uk/intlayer_with_nextjs_compiler.md +20 -4
  1028. package/docs/uk/intlayer_with_nextjs_no_locale_path.md +20 -4
  1029. package/docs/uk/intlayer_with_nextjs_page_router.md +20 -4
  1030. package/docs/uk/intlayer_with_nuxt.md +20 -4
  1031. package/docs/uk/intlayer_with_react_native+expo.md +20 -4
  1032. package/docs/uk/intlayer_with_react_router_v7.md +20 -4
  1033. package/docs/uk/intlayer_with_svelte_kit.md +20 -4
  1034. package/docs/uk/intlayer_with_tanstack+solid.md +20 -4
  1035. package/docs/uk/intlayer_with_tanstack.md +20 -4
  1036. package/docs/uk/intlayer_with_vite+lit.md +20 -4
  1037. package/docs/uk/intlayer_with_vite+preact.md +20 -4
  1038. package/docs/uk/intlayer_with_vite+react.md +20 -4
  1039. package/docs/uk/intlayer_with_vite+react_compiler.md +20 -4
  1040. package/docs/uk/intlayer_with_vite+solid.md +20 -4
  1041. package/docs/uk/intlayer_with_vite+svelte.md +20 -4
  1042. package/docs/uk/intlayer_with_vite+vanilla.md +20 -4
  1043. package/docs/uk/intlayer_with_vite+vue.md +20 -4
  1044. package/docs/uk/packages/angular-intlayer/exports.md +14 -10
  1045. package/docs/uk/packages/angular-intlayer/usePathname.md +119 -0
  1046. package/docs/uk/packages/intlayer/comparePaths.md +173 -0
  1047. package/docs/uk/packages/intlayer/exports.md +5 -0
  1048. package/docs/uk/packages/next-intlayer/exports.md +4 -0
  1049. package/docs/uk/packages/next-intlayer/usePathname.md +136 -0
  1050. package/docs/uk/packages/preact-intlayer/exports.md +10 -6
  1051. package/docs/uk/packages/preact-intlayer/usePathname.md +117 -0
  1052. package/docs/uk/packages/react-intlayer/exports.md +4 -0
  1053. package/docs/uk/packages/react-intlayer/usePathname.md +87 -0
  1054. package/docs/uk/packages/solid-intlayer/exports.md +5 -1
  1055. package/docs/uk/packages/solid-intlayer/usePathname.md +119 -0
  1056. package/docs/uk/packages/svelte-intlayer/exports.md +4 -0
  1057. package/docs/uk/packages/svelte-intlayer/usePathname.md +103 -0
  1058. package/docs/uk/packages/vue-intlayer/exports.md +4 -0
  1059. package/docs/uk/packages/vue-intlayer/usePathname.md +109 -0
  1060. package/docs/uk/plugins/sync-json.md +56 -2
  1061. package/docs/ur/intlayer_with_angular_21.md +20 -4
  1062. package/docs/ur/intlayer_with_fastify.md +20 -8
  1063. package/docs/ur/intlayer_with_hono.md +20 -4
  1064. package/docs/ur/intlayer_with_vite+lit.md +20 -4
  1065. package/docs/ur/intlayer_with_vite+vanilla.md +20 -4
  1066. package/docs/ur/packages/intlayer/comparePaths.md +173 -0
  1067. package/docs/vi/intlayer_with_adonisjs.md +20 -4
  1068. package/docs/vi/intlayer_with_analog.md +20 -4
  1069. package/docs/vi/intlayer_with_angular_19.md +20 -4
  1070. package/docs/vi/intlayer_with_angular_21.md +20 -4
  1071. package/docs/vi/intlayer_with_astro_lit.md +20 -8
  1072. package/docs/vi/intlayer_with_astro_preact.md +20 -8
  1073. package/docs/vi/intlayer_with_astro_react.md +20 -8
  1074. package/docs/vi/intlayer_with_astro_solid.md +20 -8
  1075. package/docs/vi/intlayer_with_astro_svelte.md +20 -8
  1076. package/docs/vi/intlayer_with_astro_vanilla.md +20 -8
  1077. package/docs/vi/intlayer_with_astro_vue.md +20 -8
  1078. package/docs/vi/intlayer_with_create_react_app.md +20 -4
  1079. package/docs/vi/intlayer_with_express.md +20 -4
  1080. package/docs/vi/intlayer_with_fastify.md +20 -8
  1081. package/docs/vi/intlayer_with_hono.md +20 -4
  1082. package/docs/vi/intlayer_with_lynx+react.md +20 -4
  1083. package/docs/vi/intlayer_with_nestjs.md +20 -4
  1084. package/docs/vi/intlayer_with_next-i18next.md +20 -4
  1085. package/docs/vi/intlayer_with_nextjs_14.md +20 -4
  1086. package/docs/vi/intlayer_with_nextjs_15.md +20 -4
  1087. package/docs/vi/intlayer_with_nextjs_16.md +20 -4
  1088. package/docs/vi/intlayer_with_nextjs_compiler.md +20 -4
  1089. package/docs/vi/intlayer_with_nextjs_no_locale_path.md +20 -4
  1090. package/docs/vi/intlayer_with_nextjs_page_router.md +20 -4
  1091. package/docs/vi/intlayer_with_nuxt.md +20 -4
  1092. package/docs/vi/intlayer_with_react_native+expo.md +20 -4
  1093. package/docs/vi/intlayer_with_react_router_v7.md +20 -4
  1094. package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +20 -4
  1095. package/docs/vi/intlayer_with_svelte_kit.md +40 -8
  1096. package/docs/vi/intlayer_with_tanstack+solid.md +20 -4
  1097. package/docs/vi/intlayer_with_tanstack.md +20 -4
  1098. package/docs/vi/intlayer_with_vite+lit.md +20 -4
  1099. package/docs/vi/intlayer_with_vite+preact.md +20 -4
  1100. package/docs/vi/intlayer_with_vite+react.md +20 -4
  1101. package/docs/vi/intlayer_with_vite+react_compiler.md +20 -4
  1102. package/docs/vi/intlayer_with_vite+solid.md +20 -4
  1103. package/docs/vi/intlayer_with_vite+svelte.md +20 -4
  1104. package/docs/vi/intlayer_with_vite+vanilla.md +20 -4
  1105. package/docs/vi/intlayer_with_vite+vue.md +20 -4
  1106. package/docs/vi/packages/angular-intlayer/exports.md +14 -10
  1107. package/docs/vi/packages/angular-intlayer/usePathname.md +119 -0
  1108. package/docs/vi/packages/intlayer/comparePaths.md +173 -0
  1109. package/docs/vi/packages/intlayer/exports.md +5 -0
  1110. package/docs/vi/packages/next-intlayer/exports.md +4 -0
  1111. package/docs/vi/packages/next-intlayer/usePathname.md +136 -0
  1112. package/docs/vi/packages/preact-intlayer/exports.md +10 -6
  1113. package/docs/vi/packages/preact-intlayer/usePathname.md +117 -0
  1114. package/docs/vi/packages/react-intlayer/exports.md +20 -16
  1115. package/docs/vi/packages/react-intlayer/usePathname.md +87 -0
  1116. package/docs/vi/packages/solid-intlayer/exports.md +15 -11
  1117. package/docs/vi/packages/solid-intlayer/usePathname.md +119 -0
  1118. package/docs/vi/packages/svelte-intlayer/exports.md +13 -9
  1119. package/docs/vi/packages/svelte-intlayer/usePathname.md +103 -0
  1120. package/docs/vi/packages/vue-intlayer/exports.md +14 -10
  1121. package/docs/vi/packages/vue-intlayer/usePathname.md +109 -0
  1122. package/docs/vi/plugins/sync-json.md +230 -57
  1123. package/docs/zh/intlayer_with_adonisjs.md +20 -4
  1124. package/docs/zh/intlayer_with_analog.md +20 -4
  1125. package/docs/zh/intlayer_with_angular_19.md +20 -4
  1126. package/docs/zh/intlayer_with_angular_21.md +20 -4
  1127. package/docs/zh/intlayer_with_astro_lit.md +20 -8
  1128. package/docs/zh/intlayer_with_astro_preact.md +20 -8
  1129. package/docs/zh/intlayer_with_astro_react.md +20 -8
  1130. package/docs/zh/intlayer_with_astro_solid.md +20 -8
  1131. package/docs/zh/intlayer_with_astro_svelte.md +20 -8
  1132. package/docs/zh/intlayer_with_astro_vanilla.md +20 -8
  1133. package/docs/zh/intlayer_with_astro_vue.md +20 -8
  1134. package/docs/zh/intlayer_with_create_react_app.md +20 -4
  1135. package/docs/zh/intlayer_with_express.md +20 -4
  1136. package/docs/zh/intlayer_with_fastify.md +20 -8
  1137. package/docs/zh/intlayer_with_hono.md +20 -4
  1138. package/docs/zh/intlayer_with_lynx+react.md +20 -4
  1139. package/docs/zh/intlayer_with_nestjs.md +20 -4
  1140. package/docs/zh/intlayer_with_next-i18next.md +20 -4
  1141. package/docs/zh/intlayer_with_nextjs_14.md +20 -4
  1142. package/docs/zh/intlayer_with_nextjs_15.md +20 -4
  1143. package/docs/zh/intlayer_with_nextjs_16.md +20 -4
  1144. package/docs/zh/intlayer_with_nextjs_compiler.md +20 -4
  1145. package/docs/zh/intlayer_with_nextjs_no_locale_path.md +20 -4
  1146. package/docs/zh/intlayer_with_nextjs_page_router.md +20 -4
  1147. package/docs/zh/intlayer_with_nuxt.md +25 -7
  1148. package/docs/zh/intlayer_with_react_native+expo.md +20 -4
  1149. package/docs/zh/intlayer_with_react_router_v7.md +20 -4
  1150. package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +20 -4
  1151. package/docs/zh/intlayer_with_svelte_kit.md +40 -8
  1152. package/docs/zh/intlayer_with_tanstack+solid.md +20 -4
  1153. package/docs/zh/intlayer_with_tanstack.md +20 -4
  1154. package/docs/zh/intlayer_with_vite+lit.md +20 -4
  1155. package/docs/zh/intlayer_with_vite+preact.md +20 -4
  1156. package/docs/zh/intlayer_with_vite+react_compiler.md +20 -4
  1157. package/docs/zh/intlayer_with_vite+solid.md +20 -4
  1158. package/docs/zh/intlayer_with_vite+svelte.md +20 -4
  1159. package/docs/zh/intlayer_with_vite+vanilla.md +20 -4
  1160. package/docs/zh/intlayer_with_vite+vue.md +20 -4
  1161. package/docs/zh/packages/angular-intlayer/exports.md +13 -9
  1162. package/docs/zh/packages/angular-intlayer/usePathname.md +119 -0
  1163. package/docs/zh/packages/intlayer/comparePaths.md +173 -0
  1164. package/docs/zh/packages/intlayer/exports.md +18 -13
  1165. package/docs/zh/packages/next-intlayer/exports.md +4 -0
  1166. package/docs/zh/packages/next-intlayer/usePathname.md +136 -0
  1167. package/docs/zh/packages/preact-intlayer/exports.md +10 -6
  1168. package/docs/zh/packages/preact-intlayer/usePathname.md +117 -0
  1169. package/docs/zh/packages/react-intlayer/exports.md +5 -1
  1170. package/docs/zh/packages/react-intlayer/usePathname.md +88 -0
  1171. package/docs/zh/packages/solid-intlayer/exports.md +15 -11
  1172. package/docs/zh/packages/solid-intlayer/usePathname.md +119 -0
  1173. package/docs/zh/packages/svelte-intlayer/exports.md +13 -9
  1174. package/docs/zh/packages/svelte-intlayer/usePathname.md +103 -0
  1175. package/docs/zh/packages/vue-intlayer/exports.md +14 -10
  1176. package/docs/zh/packages/vue-intlayer/usePathname.md +109 -0
  1177. package/docs/zh/plugins/sync-json.md +223 -50
  1178. package/docs/zh-TW/intlayer_with_angular_21.md +20 -4
  1179. package/docs/zh-TW/packages/intlayer/comparePaths.md +173 -0
  1180. package/package.json +7 -7
  1181. package/src/generated/docs.entry.ts +160 -0
@@ -0,0 +1,173 @@
1
+ ---
2
+ createdAt: 2026-06-22
3
+ updatedAt: 2026-06-22
4
+ title: Documentação da função comparePaths | intlayer
5
+ description: Veja como usar a função comparePaths para o pacote intlayer
6
+ keywords:
7
+ - comparePaths
8
+ - normalizePath
9
+ - link ativo
10
+ - navegação
11
+ - Intlayer
12
+ - intlayer
13
+ - Internacionalização
14
+ - Documentação
15
+ - Next.js
16
+ - JavaScript
17
+ - React
18
+ slugs:
19
+ - doc
20
+ - packages
21
+ - intlayer
22
+ - comparePaths
23
+ history:
24
+ - version: 9.0.0
25
+ date: 2026-06-22
26
+ changes: "Documentação inicial"
27
+ author: aymericzip
28
+ ---
29
+
30
+ # Documentação: Função `comparePaths` em `intlayer`
31
+
32
+ ## Descrição
33
+
34
+ A função `comparePaths` compara duas URLs ou caminhos para verificar sua igualdade, ignorando o segmento de locale, o protocolo/host, a query string, o hash e as barras finais (trailing slashes). É a maneira recomendada de determinar se um link de navegação aponta para a página atual — por exemplo, para destacar o link ativo — sem ter que criar sua própria lógica de normalização (sujeita a erros).
35
+
36
+ Internamente, ela reutiliza [`getPathWithoutLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getPathWithoutLocale.md) para remover o segmento de locale, de modo que respeita o modo de roteamento e os locales configurados.
37
+
38
+ O pacote também exporta o utilitário subjacente [`normalizePath`](#normalizepath), que retorna o caminho canônico e independente de locale usado para a comparação.
39
+
40
+ **Principais Características:**
41
+
42
+ - Comparação independente de locale (`/pt/about` corresponde a `/about`)
43
+ - Funciona com URLs absolutas e caminhos relativos
44
+ - Ignora query string, hash e barras finais
45
+ - Tolera a ausência de barras iniciais e valores vazios (normalizado para `/`)
46
+ - Leve — construído sobre `getPathWithoutLocale`
47
+
48
+ ---
49
+
50
+ ## Assinatura da Função
51
+
52
+ ```typescript
53
+ comparePaths(
54
+ pathname: string, // Obrigatório
55
+ href: string, // Obrigatório
56
+ locales?: Locales[] // Opcional
57
+ ): boolean
58
+
59
+ normalizePath(
60
+ inputUrl: string, // Obrigatório
61
+ locales?: Locales[] // Opcional
62
+ ): string
63
+ ```
64
+
65
+ ---
66
+
67
+ ## Parâmetros
68
+
69
+ - `pathname: string`
70
+ - **Descrição**: A primeira string de URL ou caminho a ser comparada (geralmente o caminho atual).
71
+ - **Tipo**: `string`
72
+ - **Obrigatório**: Sim
73
+
74
+ - `href: string`
75
+ - **Descrição**: A segunda string de URL ou caminho a ser comparada (geralmente o `href` de um link de navegação).
76
+ - **Tipo**: `string`
77
+ - **Obrigatório**: Sim
78
+
79
+ - `locales: Locales[]`
80
+ - **Descrição**: Array opcional de locales suportados. Por padrão, os locales configurados no projeto.
81
+ - **Tipo**: `Locales[]`
82
+ - **Obrigatório**: Não (Opcional)
83
+
84
+ ### Retorno
85
+
86
+ - **Tipo**: `boolean`
87
+ - **Descrição**: `true` quando ambas as entradas resolvem para o mesmo caminho independente de locale, caso contrário `false`.
88
+
89
+ ---
90
+
91
+ ## Exemplo de Uso
92
+
93
+ ### Uso Básico
94
+
95
+ ```typescript codeFormat={["typescript", "esm", "commonjs"]}
96
+ import { comparePaths } from "intlayer";
97
+
98
+ comparePaths("/ru/path", "/path"); // true
99
+ comparePaths("/ru/path/", "/path"); // true
100
+ comparePaths("/ru/path", "/path/"); // true
101
+ comparePaths("/ru/", "/"); // true
102
+ comparePaths("/ru", "/"); // true
103
+ comparePaths("ru/path", "/path"); // true
104
+ comparePaths("", "/"); // true
105
+ comparePaths("/ru", ""); // true
106
+ comparePaths("/ru/path", "/other"); // false
107
+ ```
108
+
109
+ ### URLs absolutas e relativas
110
+
111
+ ```typescript
112
+ import { comparePaths } from "intlayer";
113
+
114
+ comparePaths("https://example.com/ru/path", "/path"); // true
115
+ ```
116
+
117
+ ### Destacando o link de navegação ativo
118
+
119
+ ```tsx
120
+ import { comparePaths } from "intlayer";
121
+ import { useLocation } from "react-router";
122
+
123
+ const NavLink = ({ href, children }) => {
124
+ const { pathname } = useLocation();
125
+ const isActive = comparePaths(pathname, href);
126
+
127
+ return (
128
+ <a href={href} aria-current={isActive ? "page" : undefined}>
129
+ {children}
130
+ </a>
131
+ );
132
+ };
133
+ ```
134
+
135
+ ---
136
+
137
+ ## normalizePath
138
+
139
+ `normalizePath` retorna o caminho canônico e independente de locale usado por `comparePaths`. Ele remove o segmento de locale, o protocolo/host, a query string e o hash, garante uma única barra inicial, remove qualquer barra final (exceto para a raiz) e usa `/` como fallback para valores vazios.
140
+
141
+ ```typescript codeFormat={["typescript", "esm", "commonjs"]}
142
+ import { normalizePath } from "intlayer";
143
+
144
+ normalizePath("/ru/path"); // "/path"
145
+ normalizePath("/ru/path/"); // "/path"
146
+ normalizePath("ru/path"); // "/path"
147
+ normalizePath("/ru/"); // "/"
148
+ normalizePath("/ru"); // "/"
149
+ normalizePath(""); // "/"
150
+ normalizePath("https://example.com/ru/path"); // "/path"
151
+ ```
152
+
153
+ ---
154
+
155
+ ## Funções Relacionadas
156
+
157
+ - [`getPathWithoutLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getPathWithoutLocale.md): Remove o segmento de locale de uma URL ou caminho.
158
+ - [`getPrefix`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getPrefix.md): Determina o prefixo da URL para um dado locale.
159
+ - [`getLocalizedUrl`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getLocalizedUrl.md): Gera uma URL localizada para um locale específico.
160
+
161
+ ---
162
+
163
+ ## TypeScript
164
+
165
+ ```typescript
166
+ function normalizePath(inputUrl: string, locales?: Locales[]): string;
167
+
168
+ function comparePaths(
169
+ pathname: string,
170
+ href: string,
171
+ locales?: Locales[]
172
+ ): boolean;
173
+ ```
@@ -14,6 +14,9 @@ slugs:
14
14
  - intlayer
15
15
  - exports
16
16
  history:
17
+ - version: 9.0.0
18
+ date: 2026-06-23
19
+ changes: "Adicionado o utilitário comparePaths"
17
20
  - version: 8.0.0
18
21
  date: 2026-01-21
19
22
  changes: "Unified documentation for all exports"
@@ -119,6 +122,8 @@ import "intlayer";
119
122
  | `getMultilingualUrls` | `Function` | Gera URLs para todos os locales suportados. | [getMultilingualUrls](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getMultilingualUrls.md) |
120
123
  | `getPathWithoutLocale` | `Function` | Remove o prefixo de locale de um caminho. | [getPathWithoutLocale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getPathWithoutLocale.md) |
121
124
  | `getPrefix` | `Function` | Obtém o prefixo de locale de um caminho. | [getPrefix](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getPrefix.md) |
125
+ | `comparePaths` | `Function` | Compara dois caminhos ignorando o locale. | [comparePaths](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/comparePaths.md) |
126
+ | `normalizePath` | `Function` | Normaliza um caminho para um independente de locale. | [comparePaths](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/comparePaths.md) |
122
127
  | `getHTMLTextDir` | `Function` | Obtém a direção do texto (LTR/RTL). | [getHTMLTextDir](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getHTMLTextDir.md) |
123
128
  | `validatePrefix` | `Function` | Valida um prefixo de locale. | [validatePrefix](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/validatePrefix.md) |
124
129
 
@@ -15,6 +15,9 @@ slugs:
15
15
  - next-intlayer
16
16
  - exports
17
17
  history:
18
+ - version: 10.0.0
19
+ date: 2026-06-23
20
+ changes: "Utilitário usePathname adicionado"
18
21
  - version: 8.0.0
19
22
  date: 2026-01-21
20
23
  changes: "Documentação unificada para todas as exportações"
@@ -99,6 +102,7 @@ Re-exporta a maioria dos hooks de `react-intlayer`.
99
102
  | `useDictionaryAsync` | Hook que lida com dicionários assíncronos. Aceita um mapa de dicionários baseado em Promise e resolve-o para o locale atual. | - |
100
103
  | `useDictionaryDynamic` | Hook que lida com dicionários dinâmicos carregados por chave. Usa React Suspense internamente para estados de carregamento. | - |
101
104
  | `useLocale` | Hook do lado do cliente para obter a locale atual e uma função para defini-la. Aprimorado para o App Router do Next.js com suporte à navegação. | [useLocale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useLocale.md) |
105
+ | `usePathname` | Retorna o caminho atual sem o prefixo da localidade e sem os parâmetros de consulta da localidade. | [usePathname](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/next-intlayer/usePathname.md) |
102
106
  | `useRewriteURL` | Hook do lado do cliente para gerenciar reescritas de URL. Atualiza automaticamente a URL se existir uma regra de reescrita localizada mais legível. | [useRewriteURL](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/next-intlayer/useRewriteURL.md) |
103
107
  | `useLocalePageRouter` | Hook específico do Page Router do Next.js para gerenciamento de locale. Trata redirecionamentos e recarregamentos de página ao alterar o locale. | - |
104
108
  | `useI18n` | Hook que fornece uma função de tradução `t()` para acessar conteúdo aninhado por chave. Imita o padrão i18next/next-intl. | [useI18n](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useI18n.md) |
@@ -0,0 +1,136 @@
1
+ ---
2
+ createdAt: 2026-06-22
3
+ updatedAt: 2026-06-22
4
+ title: Documentação do Hook usePathname | next-intlayer
5
+ description: Saiba como usar o hook usePathname para o pacote next-intlayer
6
+ keywords:
7
+ - usePathname
8
+ - pathname
9
+ - locale
10
+ - Intlayer
11
+ - Internationalization
12
+ - Documentation
13
+ - Next.js
14
+ - JavaScript
15
+ - React
16
+ slugs:
17
+ - doc
18
+ - packages
19
+ - next-intlayer
20
+ - usePathname
21
+ history:
22
+ - version: 10.0.0
23
+ date: 2026-06-23
24
+ changes: "Utilitário usePathname adicionado"
25
+ - version: 8.2.0
26
+ date: 2026-06-22
27
+ changes: "Inicialização do histórico"
28
+ author: aymericzip
29
+ ---
30
+
31
+ # Integração Next.js: Documentação do Hook `usePathname`
32
+
33
+ O hook `usePathname` retorna o pathname atual do Next.js sem o segmento da localidade. Isso é útil para construir uma navegação ciente da localidade — por exemplo, determinar qual item de navegação está ativo — sem ter que remover manualmente o prefixo da localidade.
34
+
35
+ ## Importando `usePathname` no Next.js
36
+
37
+ ```typescript
38
+ import { usePathname } from "next-intlayer";
39
+ ```
40
+
41
+ ## Visão Geral
42
+
43
+ O `usePathname` envolve o `usePathname()` embutido do Next.js de `next/navigation`, anexa quaisquer parâmetros de busca (search params) e remove o prefixo da localidade através do `getPathWithoutLocale`. Ele aciona uma re-renderização em cada navegação do lado do cliente. O hook está disponível apenas em Client Components (requer `"use client"`).
44
+
45
+ ## Uso
46
+
47
+ ```tsx fileName="src/components/NavItem.tsx" codeFormat={["typescript", "esm"]}
48
+ "use client";
49
+
50
+ import type { FC } from "react";
51
+ import { usePathname } from "next-intlayer";
52
+
53
+ type NavItemProps = {
54
+ href: string;
55
+ label: string;
56
+ };
57
+
58
+ const NavItem: FC<NavItemProps> = ({ href, label }) => {
59
+ const pathname = usePathname();
60
+ const isActive = pathname === href;
61
+
62
+ return (
63
+ <a href={href} aria-current={isActive ? "page" : undefined}>
64
+ {label}
65
+ </a>
66
+ );
67
+ };
68
+
69
+ export default NavItem;
70
+ ```
71
+
72
+ ## Valor de Retorno
73
+
74
+ | Tipo | Descrição |
75
+ | -------- | ------------------------------------------------------------------------------------------------------ |
76
+ | `string` | O caminho atual sem o prefixo da localidade e sem os parâmetros de consulta relacionados à localidade. |
77
+
78
+ ## Comportamento
79
+
80
+ - **Remoção da localidade**: Remove o segmento líder da localidade (ex: `/pt/dashboard` → `/dashboard`).
81
+ - **Remoção de parâmetros de busca**: Também remove um parâmetro de consulta `?locale=...` quando o modo de roteamento baseado em parâmetros de pesquisa é utilizado.
82
+ - **Reativo**: Atualiza automaticamente a cada navegação do lado do cliente via Next.js App Router.
83
+ - **Seguro para SSR**: Retorna o caminho do lado do servidor durante a primeira renderização e, em seguida, sincroniza os parâmetros de busca no cliente.
84
+
85
+ ## Comparação com `useLocale`
86
+
87
+ O `useLocale` do `next-intlayer` já expõe `pathWithoutLocale` como parte de seu valor de retorno. Use `usePathname` quando você só precisa do caminho e não da funcionalidade de alternar o idioma.
88
+
89
+ ```tsx codeFormat={["typescript", "esm"]}
90
+ // Quando você precisa tanto do estado da localidade quanto do caminho:
91
+ import { useLocale } from "next-intlayer";
92
+ const { locale, pathWithoutLocale } = useLocale();
93
+
94
+ // Quando você só precisa do caminho:
95
+ import { usePathname } from "next-intlayer";
96
+ const pathname = usePathname();
97
+ ```
98
+
99
+ ## Exemplo
100
+
101
+ ```tsx fileName="src/components/Sidebar.tsx" codeFormat={["typescript", "esm"]}
102
+ "use client";
103
+
104
+ import type { FC } from "react";
105
+ import { usePathname } from "next-intlayer";
106
+
107
+ const links = [
108
+ { href: "/dashboard", label: "Painel" },
109
+ { href: "/settings", label: "Configurações" },
110
+ ];
111
+
112
+ const Sidebar: FC = () => {
113
+ const pathname = usePathname();
114
+
115
+ return (
116
+ <nav>
117
+ {links.map(({ href, label }) => (
118
+ <a
119
+ key={href}
120
+ href={href}
121
+ style={{ fontWeight: pathname === href ? "bold" : "normal" }}
122
+ >
123
+ {label}
124
+ </a>
125
+ ))}
126
+ </nav>
127
+ );
128
+ };
129
+
130
+ export default Sidebar;
131
+ ```
132
+
133
+ ## Relacionados
134
+
135
+ - [`useLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/next-intlayer/useLocale.md) — localidade atual + alternador de localidade (também expõe `pathWithoutLocale`)
136
+ - [`getPathWithoutLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getPathWithoutLocale.md) — o utilitário subjacente usado por este hook
@@ -14,6 +14,9 @@ slugs:
14
14
  - preact-intlayer
15
15
  - exports
16
16
  history:
17
+ - version: 10.0.0
18
+ date: 2026-06-23
19
+ changes: "Adicionar utilitário usePathname"
17
20
  - version: 8.0.0
18
21
  date: 2026-01-21
19
22
  changes: "Documentação unificada para todas as exportações"
@@ -40,12 +43,13 @@ npm install preact-intlayer
40
43
 
41
44
  ### Hooks
42
45
 
43
- | Hook | Descrição | Documento Relacionado |
44
- | --------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
45
- | `useIntlayer` | Baseado em `useDictionary`, mas injeta uma versão otimizada do dicionário a partir da declaração gerada. | - |
46
- | `useDictionary` | Processa objetos que se assemelham a dicionários (chave, conteúdo). Processa traduções `t()`, enumerações, etc. | - |
47
- | `useLocale` | Retorna a locale atual e uma função para defini-la. | - |
48
- | `t` | Seleciona conteúdo com base na locale atual. | [translation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/translation.md) |
46
+ | Hook | Descrição | Documento Relacionado |
47
+ | --------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
48
+ | `useIntlayer` | Baseado em `useDictionary`, mas injeta uma versão otimizada do dicionário a partir da declaração gerada. | - |
49
+ | `useDictionary` | Processa objetos que se assemelham a dicionários (chave, conteúdo). Processa traduções `t()`, enumerações, etc. | - |
50
+ | `useLocale` | Retorna a locale atual e uma função para defini-la. | - |
51
+ | `usePathname` | Hook que retorna o pathname atual com o segmento de locale removido. Reativo à navegação do navegador via `popstate`. | [usePathname](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/preact-intlayer/usePathname.md) |
52
+ | `t` | Seleciona conteúdo com base na locale atual. | [translation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/translation.md) |
49
53
 
50
54
  ### Componentes
51
55
 
@@ -0,0 +1,117 @@
1
+ ---
2
+ createdAt: 2026-06-22
3
+ updatedAt: 2026-06-22
4
+ title: Documentação do Hook usePathname | preact-intlayer
5
+ description: Veja como usar o hook usePathname do pacote preact-intlayer
6
+ keywords:
7
+ - usePathname
8
+ - pathname
9
+ - locale
10
+ - Intlayer
11
+ - Internacionalização
12
+ - Documentação
13
+ - Preact
14
+ - JavaScript
15
+ slugs:
16
+ - doc
17
+ - packages
18
+ - preact-intlayer
19
+ - usePathname
20
+ history:
21
+ - version: 10.0.0
22
+ date: 2026-06-23
23
+ changes: "Adicionar utilitário usePathname"
24
+ - version: 8.2.0
25
+ date: 2026-06-22
26
+ changes: "Inicialização do histórico"
27
+ author: aymericzip
28
+ ---
29
+
30
+ # Integração Preact: Documentação do Hook `usePathname`
31
+
32
+ O hook `usePathname` retorna o pathname (caminho) atual do navegador com o segmento da locale removido. Isso é útil para construir uma navegação ciente da locale — por exemplo, determinar qual item de navegação está ativo — sem precisar remover manualmente o prefixo da locale.
33
+
34
+ ## Importando `usePathname` no Preact
35
+
36
+ ```typescript
37
+ import { usePathname } from "preact-intlayer";
38
+ ```
39
+
40
+ ## Visão Geral
41
+
42
+ `usePathname` lê `window.location.pathname`, remove o prefixo da locale por meio da função `getPathWithoutLocale` e re-renderiza o componente sempre que o navegador acionar o evento `popstate` (navegação de voltar/avançar). Ele retorna uma string vazia durante a renderização no lado do servidor (SSR).
43
+
44
+ ## Uso
45
+
46
+ ```tsx fileName="src/components/NavItem.tsx"
47
+ import type { FunctionComponent } from "preact";
48
+ import { usePathname } from "preact-intlayer";
49
+
50
+ type NavItemProps = {
51
+ href: string;
52
+ label: string;
53
+ };
54
+
55
+ const NavItem: FunctionComponent<NavItemProps> = ({ href, label }) => {
56
+ const pathname = usePathname();
57
+ const isActive = pathname === href;
58
+
59
+ return (
60
+ <a href={href} aria-current={isActive ? "page" : undefined}>
61
+ {label}
62
+ </a>
63
+ );
64
+ };
65
+
66
+ export default NavItem;
67
+ ```
68
+
69
+ ## Valor de Retorno
70
+
71
+ | Tipo | Descrição |
72
+ | -------- | -------------------------------------------------------------------------------------------------------- |
73
+ | `string` | O pathname atual sem o prefixo da locale. String vazia durante a renderização no lado do servidor (SSR). |
74
+
75
+ ## Comportamento
76
+
77
+ - **Remoção da Locale (Locale stripping)**: Remove o segmento inicial correspondente à locale (ex: `/pt/dashboard` → `/dashboard`).
78
+ - **Reativo**: Atualiza automaticamente em eventos `popstate` (navegação de voltar / avançar do navegador).
79
+ - **Seguro para SSR**: Retorna `""` quando `window` não está disponível.
80
+ - **Limpeza (Cleanup)**: O listener do `popstate` é removido automaticamente quando o componente é desmontado.
81
+
82
+ ## Exemplo
83
+
84
+ ```tsx fileName="src/components/Sidebar.tsx"
85
+ import type { FunctionComponent } from "preact";
86
+ import { usePathname } from "preact-intlayer";
87
+
88
+ const links = [
89
+ { href: "/dashboard", label: "Dashboard" },
90
+ { href: "/settings", label: "Configurações" },
91
+ ];
92
+
93
+ const Sidebar: FunctionComponent = () => {
94
+ const pathname = usePathname();
95
+
96
+ return (
97
+ <nav>
98
+ {links.map(({ href, label }) => (
99
+ <a
100
+ key={href}
101
+ href={href}
102
+ style={{ fontWeight: pathname === href ? "bold" : "normal" }}
103
+ >
104
+ {label}
105
+ </a>
106
+ ))}
107
+ </nav>
108
+ );
109
+ };
110
+
111
+ export default Sidebar;
112
+ ```
113
+
114
+ ## Relacionados
115
+
116
+ - [`useLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/preact-intlayer/exports.md) — locale atual + seletor de locale
117
+ - [`getPathWithoutLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getPathWithoutLocale.md) — o utilitário principal usado por esse hook
@@ -14,9 +14,12 @@ slugs:
14
14
  - react-intlayer
15
15
  - exports
16
16
  history:
17
+ - version: 10.0.0
18
+ date: 2026-06-23
19
+ changes: "Adicionado o utilitário usePathname"
17
20
  - version: 7.5.14
18
21
  date: 2026-01-21
19
- changes: "Unified documentation for all exports"
22
+ changes: "Documentação unificada para todas as exportações"
20
23
  author: aymericzip
21
24
  ---
22
25
 
@@ -54,22 +57,23 @@ Importação:
54
57
  import "react-intlayer";
55
58
  ```
56
59
 
57
- | Hook | Descrição | Doc Relacionado |
58
- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
59
- | `useIntlayer` | Hook do lado do cliente que seleciona um dicionário pela sua chave e retorna o seu conteúdo. Usa a locale do contexto se não for fornecida. | [useIntlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useIntlayer.md) |
60
- | `useDictionary` | Hook que transforma um objeto de dicionário e retorna o conteúdo para o locale atual. Processa traduções `t()`, enumerações, etc. | [useDictionary](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useDictionary.md) |
61
- | `useDictionaryAsync` | Hook que lida com dicionários assíncronos. Aceita um mapa de dicionários baseado em Promise e o resolve para o locale atual. | - |
62
- | `useDictionaryDynamic` | Hook que lida com dicionários dinâmicos carregados por chave. Usa React Suspense internamente para estados de carregamento. | - |
63
- | `useLocale` | Hook do lado do cliente para obter a locale atual, a locale padrão, as locales disponíveis e uma função para atualizar a locale. | [useLocale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useLocale.md) |
64
- | `useLocaleBase` | Hook para obter a locale atual e todos os campos relacionados (locale, defaultLocale, availableLocales, setLocale) a partir do contexto. | - |
65
- | `useRewriteURL` | Hook do lado do cliente para gerir reescritas de URL. Se existir uma regra de reescrita para o pathname e a locale atuais, irá atualizar a URL. | [useRewriteURL](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useRewriteURL.md) |
66
- | `useI18n` | Hook que fornece uma função de tradução `t()` para acessar conteúdo aninhado por chave. Imita o padrão do i18next/next-intl. | [useI18n](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useI18n.md) |
67
- | `useIntl` | Hook que fornece um objeto `Intl` vinculado ao locale. Injeta automaticamente o locale atual e usa cache otimizado. | - |
68
- | `useLocaleStorage` | Hook que fornece persistência do locale em localStorage ou em cookies. Retorna funções getter e setter. | - |
69
- | `useLocaleCookie` | Obsoleto. Use `useLocaleStorage` em vez disso. Hook que gerencia a persistência do locale em cookies. | - |
70
- | `useLoadDynamic` | Hook para carregar dicionários dinâmicos usando React Suspense. Aceita uma chave e uma Promise, faz cache dos resultados. | - |
71
- | `useIntlayerContext` | Hook que fornece os valores do contexto do cliente Intlayer atual (locale, setLocale, etc.). | - |
72
- | `useHTMLContext` | Hook para acessar substituições de componentes HTML a partir do contexto HTMLProvider. | - |
60
+ | Hook | Descrição | Doc Relacionado |
61
+ | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
62
+ | `useIntlayer` | Hook do lado do cliente que seleciona um dicionário pela sua chave e retorna o seu conteúdo. Usa a locale do contexto se não for fornecida. | [useIntlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useIntlayer.md) |
63
+ | `useDictionary` | Hook que transforma um objeto de dicionário e retorna o conteúdo para o locale atual. Processa traduções `t()`, enumerações, etc. | [useDictionary](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useDictionary.md) |
64
+ | `useDictionaryAsync` | Hook que lida com dicionários assíncronos. Aceita um mapa de dicionários baseado em Promise e o resolve para o locale atual. | - |
65
+ | `useDictionaryDynamic` | Hook que lida com dicionários dinâmicos carregados por chave. Usa React Suspense internamente para estados de carregamento. | - |
66
+ | `useLocale` | Hook do lado do cliente para obter o local atual, local padrão, locais disponíveis e uma função para atualizar o local. | [useLocale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useLocale.md) |
67
+ | `useLocaleBase` | Hook para obter o locale atual e todos os campos relacionados (locale, defaultLocale, availableLocales, setLocale) do contexto. | - |
68
+ | `usePathname` | Hook que retorna o pathname atual com o segmento de local removido. Reativo à navegação do navegador via `popstate`. | [usePathname](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/usePathname.md) |
69
+ | `useRewriteURL` | Hook do lado do cliente para gerenciar reescritas de URL. Se existir uma regra de reescrita para o pathname e local atuais, atualizará o URL. | [useRewriteURL](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useRewriteURL.md) |
70
+ | `useI18n` | Hook que fornece uma função de tradução `t()` para acessar conteúdo aninhado por chave. Imita o padrão do i18next/next-intl. | [useI18n](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useI18n.md) |
71
+ | `useIntl` | Hook que fornece um objeto `Intl` vinculado ao locale. Injeta automaticamente o locale atual e usa cache otimizado. | - |
72
+ | `useLocaleStorage` | Hook que fornece persistência do locale em localStorage ou em cookies. Retorna funções getter e setter. | - |
73
+ | `useLocaleCookie` | Obsoleto. Use `useLocaleStorage` em vez disso. Hook que gerencia a persistência do locale em cookies. | - |
74
+ | `useLoadDynamic` | Hook para carregar dicionários dinâmicos usando React Suspense. Aceita uma chave e uma Promise, faz cache dos resultados. | - |
75
+ | `useIntlayerContext` | Hook que fornece os valores do contexto do cliente Intlayer atual (locale, setLocale, etc.). | - |
76
+ | `useHTMLContext` | Hook para acessar substituições de componentes HTML a partir do contexto HTMLProvider. | - |
73
77
 
74
78
  ### Funções
75
79
 
@@ -0,0 +1,87 @@
1
+ ---
2
+ createdAt: 2026-06-22
3
+ updatedAt: 2026-06-22
4
+ title: Documentação do Hook usePathname | react-intlayer
5
+ description: Aprenda como usar o hook usePathname do pacote react-intlayer para obter o pathname da URL atual sem o segmento de localidade.
6
+ keywords:
7
+ - usePathname
8
+ - pathname
9
+ - react
10
+ - intlayer
11
+ - routing
12
+ - internacionalização
13
+ slugs:
14
+ - doc
15
+ - packages
16
+ - react-intlayer
17
+ - usePathname
18
+ history:
19
+ - version: 10.0.0
20
+ date: 2026-06-23
21
+ changes: "Adicionado o utilitário usePathname"
22
+ - version: 8.2.0
23
+ date: 2026-06-22
24
+ changes: "Inicializar histórico"
25
+ author: aymericzip
26
+ ---
27
+
28
+ # Integração React: Documentação do Hook `usePathname`
29
+
30
+ O hook `usePathname` do `react-intlayer` retorna o pathname atual do navegador com o segmento de localidade removido. Ele conta com a propriedade nativa `window.location.pathname` e reage aos eventos de navegação do navegador por meio de `popstate`.
31
+
32
+ ## Importando `usePathname`
33
+
34
+ ```typescript
35
+ import { usePathname } from "react-intlayer";
36
+ ```
37
+
38
+ ## Visão Geral
39
+
40
+ Diferentemente dos hooks de roteamento específicos de um framework (como aqueles no `next-intlayer` ou `react-router`), este hook é uma solução leve e independente de framework para aplicativos React puros. Ele extrai a URL atual e remove qualquer prefixo de localidade correspondente (por exemplo, `/pt/about` torna-se `/about`).
41
+
42
+ ## Uso
43
+
44
+ ```tsx fileName="src/components/Navigation.tsx" codeFormat={["typescript", "esm"]}
45
+ import type { FC } from "react";
46
+ import { usePathname } from "react-intlayer";
47
+
48
+ const Navigation: FC = () => {
49
+ const pathname = usePathname();
50
+
51
+ return (
52
+ <nav>
53
+ <a
54
+ href="/home"
55
+ style={{ fontWeight: pathname === "/home" ? "bold" : "normal" }}
56
+ >
57
+ Início
58
+ </a>
59
+ <a
60
+ href="/about"
61
+ style={{ fontWeight: pathname === "/about" ? "bold" : "normal" }}
62
+ >
63
+ Sobre
64
+ </a>
65
+ </nav>
66
+ );
67
+ };
68
+
69
+ export default Navigation;
70
+ ```
71
+
72
+ ## Valor de Retorno
73
+
74
+ | Tipo | Descrição |
75
+ | -------- | -------------------------------------------------------------------------------------------------------- |
76
+ | `string` | O pathname atual do navegador com o prefixo de localidade removido (ex: `/pt/dashboard` → `/dashboard`). |
77
+
78
+ ## Comportamento
79
+
80
+ - **Remoção de Locale**: Usa a utilidade `getPathWithoutLocale` internamente para detectar e remover automaticamente a localidade do pathname com base na configuração Intlayer do aplicativo.
81
+ - **Reatividade**: Ouve o evento `popstate`. Quando o usuário navega usando os botões de voltar/avançar do navegador ou quando `pushState`/`replaceState` é chamado, o hook atualiza o pathname retornado.
82
+ - **Fallback SSR**: No servidor (onde `window` é indefinido), o padrão é retornar `/` pois ele não tem acesso à URL da solicitação por padrão em um contexto React puro.
83
+
84
+ ## Documentação Relacionada
85
+
86
+ - [`useLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/react-intlayer/useLocale.md)
87
+ - [`getPathWithoutLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/packages/intlayer/getPathWithoutLocale.md)