@intlayer/docs 8.7.6 → 8.7.8-canary.0

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 (1458) hide show
  1. package/blog/ar/i18n_using_next-i18next.md +1 -1
  2. package/blog/ar/i18n_using_next-intl.md +1 -1
  3. package/blog/ar/list_i18n_technologies/frameworks/react-native.md +0 -4
  4. package/blog/de/i18n_using_next-i18next.md +1 -1
  5. package/blog/de/i18n_using_next-intl.md +1 -1
  6. package/blog/de/list_i18n_technologies/frameworks/react-native.md +0 -4
  7. package/blog/en/i18n_using_next-i18next.md +1 -1
  8. package/blog/en/i18n_using_next-intl.md +1 -1
  9. package/blog/en/list_i18n_technologies/frameworks/react-native.md +0 -4
  10. package/blog/en-GB/i18n_using_next-i18next.md +1 -1
  11. package/blog/en-GB/i18n_using_next-intl.md +1 -1
  12. package/blog/en-GB/list_i18n_technologies/frameworks/react-native.md +0 -4
  13. package/blog/es/i18n_using_next-i18next.md +1 -1
  14. package/blog/es/i18n_using_next-intl.md +1 -1
  15. package/blog/es/list_i18n_technologies/frameworks/react-native.md +0 -4
  16. package/blog/fr/i18n_using_next-i18next.md +1 -1
  17. package/blog/fr/i18n_using_next-intl.md +1 -1
  18. package/blog/fr/list_i18n_technologies/frameworks/react-native.md +0 -4
  19. package/blog/hi/i18n_using_next-i18next.md +1 -1
  20. package/blog/hi/i18n_using_next-intl.md +1 -1
  21. package/blog/hi/list_i18n_technologies/frameworks/react-native.md +0 -4
  22. package/blog/id/i18n_using_next-i18next.md +1 -1
  23. package/blog/id/i18n_using_next-intl.md +1 -1
  24. package/blog/it/i18n_using_next-i18next.md +1 -1
  25. package/blog/it/i18n_using_next-intl.md +1 -1
  26. package/blog/it/list_i18n_technologies/frameworks/react-native.md +0 -4
  27. package/blog/ja/i18n_using_next-i18next.md +1 -1
  28. package/blog/ja/i18n_using_next-intl.md +1 -1
  29. package/blog/ko/i18n_using_next-i18next.md +1 -1
  30. package/blog/ko/i18n_using_next-intl.md +1 -1
  31. package/blog/pl/i18n_using_next-i18next.md +1 -1
  32. package/blog/pl/i18n_using_next-intl.md +1 -1
  33. package/blog/pt/i18n_using_next-i18next.md +1 -1
  34. package/blog/pt/i18n_using_next-intl.md +1 -1
  35. package/blog/pt/list_i18n_technologies/frameworks/react-native.md +0 -4
  36. package/blog/ru/i18n_using_next-i18next.md +1 -1
  37. package/blog/ru/i18n_using_next-intl.md +1 -1
  38. package/blog/ru/list_i18n_technologies/frameworks/react-native.md +0 -4
  39. package/blog/tr/i18n_using_next-i18next.md +1 -1
  40. package/blog/tr/i18n_using_next-intl.md +1 -1
  41. package/blog/uk/i18n_using_next-i18next.md +1 -1
  42. package/blog/uk/i18n_using_next-intl.md +1 -1
  43. package/blog/vi/i18n_using_next-i18next.md +1 -1
  44. package/blog/vi/i18n_using_next-intl.md +1 -1
  45. package/blog/zh/i18n_using_next-i18next.md +1 -1
  46. package/blog/zh/i18n_using_next-intl.md +1 -1
  47. package/dist/cjs/common.cjs.map +1 -1
  48. package/dist/cjs/generated/docs.entry.cjs +140 -0
  49. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  50. package/dist/esm/common.mjs.map +1 -1
  51. package/dist/esm/generated/docs.entry.mjs +140 -0
  52. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  53. package/dist/types/common.d.ts +1 -0
  54. package/dist/types/common.d.ts.map +1 -1
  55. package/dist/types/generated/docs.entry.d.ts +7 -0
  56. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  57. package/docs/ar/dictionary/condition.md +2 -116
  58. package/docs/ar/dictionary/content_file.md +2 -202
  59. package/docs/ar/dictionary/enumeration.md +2 -116
  60. package/docs/ar/dictionary/file.md +3 -103
  61. package/docs/ar/dictionary/function_fetching.md +3 -105
  62. package/docs/ar/dictionary/gender.md +2 -140
  63. package/docs/ar/dictionary/insertion.md +3 -57
  64. package/docs/ar/dictionary/nesting.md +3 -121
  65. package/docs/ar/dictionary/translation.md +4 -146
  66. package/docs/ar/interest_of_intlayer.md +2 -59
  67. package/docs/ar/intlayer_CMS.md +3 -228
  68. package/docs/ar/intlayer_visual_editor.md +1 -72
  69. package/docs/ar/intlayer_with_adonisjs.md +3 -109
  70. package/docs/ar/intlayer_with_analog.md +21 -41
  71. package/docs/ar/intlayer_with_angular.md +15 -41
  72. package/docs/ar/intlayer_with_astro.md +187 -58
  73. package/docs/ar/intlayer_with_astro_lit.md +619 -0
  74. package/docs/ar/intlayer_with_astro_preact.md +568 -0
  75. package/docs/ar/intlayer_with_astro_react.md +566 -0
  76. package/docs/ar/intlayer_with_astro_solid.md +566 -0
  77. package/docs/ar/intlayer_with_astro_svelte.md +570 -0
  78. package/docs/ar/intlayer_with_astro_vanilla.md +547 -0
  79. package/docs/ar/intlayer_with_astro_vue.md +588 -0
  80. package/docs/ar/intlayer_with_create_react_app.md +8 -388
  81. package/docs/ar/intlayer_with_express.md +5 -177
  82. package/docs/ar/intlayer_with_fastify.md +5 -193
  83. package/docs/ar/intlayer_with_hono.md +2 -2
  84. package/docs/ar/intlayer_with_lynx+react.md +2 -116
  85. package/docs/ar/intlayer_with_nestjs.md +3 -33
  86. package/docs/ar/intlayer_with_nextjs_14.md +58 -491
  87. package/docs/ar/intlayer_with_nextjs_15.md +56 -815
  88. package/docs/ar/intlayer_with_nextjs_16.md +40 -883
  89. package/docs/ar/intlayer_with_nextjs_compiler.md +2 -62
  90. package/docs/ar/intlayer_with_nextjs_no_locale_path.md +12 -506
  91. package/docs/ar/intlayer_with_nextjs_page_router.md +37 -652
  92. package/docs/ar/intlayer_with_nuxt.md +16 -98
  93. package/docs/ar/intlayer_with_react_native+expo.md +31 -283
  94. package/docs/ar/intlayer_with_react_router_v7.md +15 -91
  95. package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +15 -91
  96. package/docs/ar/intlayer_with_storybook.md +1 -37
  97. package/docs/ar/intlayer_with_svelte_kit.md +29 -71
  98. package/docs/ar/intlayer_with_tanstack+solid.md +14 -70
  99. package/docs/ar/intlayer_with_tanstack.md +14 -62
  100. package/docs/ar/intlayer_with_vanilla.md +28 -108
  101. package/docs/ar/intlayer_with_vite+lit.md +98 -156
  102. package/docs/ar/intlayer_with_vite+preact.md +101 -710
  103. package/docs/ar/intlayer_with_vite+react.md +113 -797
  104. package/docs/ar/intlayer_with_vite+react_compiler.md +87 -1
  105. package/docs/ar/intlayer_with_vite+solid.md +79 -152
  106. package/docs/ar/intlayer_with_vite+svelte.md +104 -132
  107. package/docs/ar/intlayer_with_vite+vanilla.md +105 -155
  108. package/docs/ar/intlayer_with_vite+vue.md +92 -253
  109. package/docs/ar/introduction.md +2 -58
  110. package/docs/ar/packages/express-intlayer/t.md +6 -181
  111. package/docs/ar/packages/hono-intlayer/t.md +1 -45
  112. package/docs/ar/packages/intlayer/getConfiguration.md +2 -54
  113. package/docs/ar/packages/intlayer/getEnumeration.md +2 -60
  114. package/docs/ar/packages/intlayer/getHTMLTextDir.md +2 -38
  115. package/docs/ar/packages/intlayer/getLocaleLang.md +1 -19
  116. package/docs/ar/packages/intlayer/getLocaleName.md +1 -43
  117. package/docs/ar/packages/intlayer/getLocalizedUrl.md +2 -45
  118. package/docs/ar/packages/intlayer/getMultilingualUrls.md +2 -60
  119. package/docs/ar/packages/intlayer/getPathWithoutLocale.md +1 -20
  120. package/docs/ar/packages/intlayer/getPrefix.md +1 -12
  121. package/docs/ar/packages/intlayer/getTranslation.md +3 -87
  122. package/docs/ar/packages/intlayer/getTranslationContent.md +3 -87
  123. package/docs/ar/packages/next-intlayer/t.md +5 -137
  124. package/docs/ar/packages/next-intlayer/useDictionary.md +3 -118
  125. package/docs/ar/packages/next-intlayer/useIntlayer.md +3 -117
  126. package/docs/ar/packages/next-intlayer/useLocale.md +1 -51
  127. package/docs/ar/packages/react-intlayer/t.md +4 -106
  128. package/docs/ar/packages/react-intlayer/useDictionary.md +3 -115
  129. package/docs/ar/packages/react-intlayer/useI18n.md +4 -107
  130. package/docs/ar/packages/react-intlayer/useIntlayer.md +3 -109
  131. package/docs/ar/packages/react-intlayer/useLocale.md +3 -103
  132. package/docs/ar/per_locale_file.md +3 -35
  133. package/docs/bn/intlayer_with_fastify.md +5 -193
  134. package/docs/bn/intlayer_with_hono.md +5 -158
  135. package/docs/bn/intlayer_with_storybook.md +1 -37
  136. package/docs/bn/intlayer_with_vanilla.md +28 -108
  137. package/docs/bn/intlayer_with_vite+lit.md +98 -119
  138. package/docs/bn/intlayer_with_vite+vanilla.md +105 -155
  139. package/docs/bn/introduction.md +2 -58
  140. package/docs/cs/intlayer_with_fastify.md +5 -193
  141. package/docs/cs/intlayer_with_hono.md +5 -158
  142. package/docs/cs/intlayer_with_storybook.md +1 -37
  143. package/docs/cs/intlayer_with_vanilla.md +28 -108
  144. package/docs/cs/intlayer_with_vite+lit.md +98 -156
  145. package/docs/cs/intlayer_with_vite+vanilla.md +105 -155
  146. package/docs/cs/introduction.md +2 -58
  147. package/docs/de/dictionary/condition.md +2 -116
  148. package/docs/de/dictionary/content_file.md +2 -201
  149. package/docs/de/dictionary/enumeration.md +2 -116
  150. package/docs/de/dictionary/file.md +3 -100
  151. package/docs/de/dictionary/function_fetching.md +3 -103
  152. package/docs/de/dictionary/gender.md +2 -181
  153. package/docs/de/dictionary/insertion.md +3 -57
  154. package/docs/de/dictionary/nesting.md +3 -123
  155. package/docs/de/dictionary/translation.md +4 -146
  156. package/docs/de/interest_of_intlayer.md +2 -59
  157. package/docs/de/intlayer_CMS.md +3 -226
  158. package/docs/de/intlayer_visual_editor.md +1 -72
  159. package/docs/de/intlayer_with_adonisjs.md +3 -108
  160. package/docs/de/intlayer_with_analog.md +21 -41
  161. package/docs/de/intlayer_with_angular.md +15 -41
  162. package/docs/de/intlayer_with_astro.md +181 -56
  163. package/docs/de/intlayer_with_astro_lit.md +615 -0
  164. package/docs/de/intlayer_with_astro_preact.md +564 -0
  165. package/docs/de/intlayer_with_astro_react.md +562 -0
  166. package/docs/de/intlayer_with_astro_solid.md +562 -0
  167. package/docs/de/intlayer_with_astro_svelte.md +566 -0
  168. package/docs/de/intlayer_with_astro_vanilla.md +543 -0
  169. package/docs/de/intlayer_with_astro_vue.md +584 -0
  170. package/docs/de/intlayer_with_create_react_app.md +33 -686
  171. package/docs/de/intlayer_with_express.md +5 -182
  172. package/docs/de/intlayer_with_fastify.md +5 -193
  173. package/docs/de/intlayer_with_hono.md +5 -158
  174. package/docs/de/intlayer_with_lynx+react.md +2 -75
  175. package/docs/de/intlayer_with_nestjs.md +3 -33
  176. package/docs/de/intlayer_with_nextjs_14.md +51 -573
  177. package/docs/de/intlayer_with_nextjs_15.md +61 -823
  178. package/docs/de/intlayer_with_nextjs_16.md +45 -870
  179. package/docs/de/intlayer_with_nextjs_compiler.md +2 -62
  180. package/docs/de/intlayer_with_nextjs_no_locale_path.md +11 -499
  181. package/docs/de/intlayer_with_nextjs_page_router.md +36 -632
  182. package/docs/de/intlayer_with_nuxt.md +16 -98
  183. package/docs/de/intlayer_with_react_native+expo.md +31 -286
  184. package/docs/de/intlayer_with_react_router_v7.md +15 -91
  185. package/docs/de/intlayer_with_react_router_v7_fs_routes.md +14 -62
  186. package/docs/de/intlayer_with_storybook.md +1 -37
  187. package/docs/de/intlayer_with_svelte_kit.md +29 -71
  188. package/docs/de/intlayer_with_tanstack+solid.md +14 -70
  189. package/docs/de/intlayer_with_tanstack.md +14 -62
  190. package/docs/de/intlayer_with_vanilla.md +28 -108
  191. package/docs/de/intlayer_with_vite+lit.md +98 -162
  192. package/docs/de/intlayer_with_vite+preact.md +104 -713
  193. package/docs/de/intlayer_with_vite+react.md +105 -789
  194. package/docs/de/intlayer_with_vite+react_compiler.md +87 -1
  195. package/docs/de/intlayer_with_vite+solid.md +79 -153
  196. package/docs/de/intlayer_with_vite+svelte.md +104 -132
  197. package/docs/de/intlayer_with_vite+vanilla.md +105 -155
  198. package/docs/de/intlayer_with_vite+vue.md +92 -285
  199. package/docs/de/introduction.md +2 -61
  200. package/docs/de/packages/express-intlayer/t.md +6 -182
  201. package/docs/de/packages/hono-intlayer/t.md +3 -95
  202. package/docs/de/packages/intlayer/getConfiguration.md +2 -54
  203. package/docs/de/packages/intlayer/getEnumeration.md +2 -60
  204. package/docs/de/packages/intlayer/getHTMLTextDir.md +2 -38
  205. package/docs/de/packages/intlayer/getLocaleLang.md +1 -19
  206. package/docs/de/packages/intlayer/getLocaleName.md +1 -43
  207. package/docs/de/packages/intlayer/getLocalizedUrl.md +2 -45
  208. package/docs/de/packages/intlayer/getMultilingualUrls.md +2 -60
  209. package/docs/de/packages/intlayer/getPathWithoutLocale.md +1 -19
  210. package/docs/de/packages/intlayer/getPrefix.md +1 -15
  211. package/docs/de/packages/intlayer/getTranslation.md +3 -86
  212. package/docs/de/packages/intlayer/getTranslationContent.md +3 -87
  213. package/docs/de/packages/next-intlayer/t.md +5 -137
  214. package/docs/de/packages/next-intlayer/useDictionary.md +3 -118
  215. package/docs/de/packages/next-intlayer/useIntlayer.md +3 -120
  216. package/docs/de/packages/next-intlayer/useLocale.md +1 -51
  217. package/docs/de/packages/react-intlayer/t.md +4 -109
  218. package/docs/de/packages/react-intlayer/useDictionary.md +3 -127
  219. package/docs/de/packages/react-intlayer/useI18n.md +4 -107
  220. package/docs/de/packages/react-intlayer/useIntlayer.md +3 -114
  221. package/docs/de/packages/react-intlayer/useLocale.md +3 -103
  222. package/docs/de/per_locale_file.md +3 -35
  223. package/docs/en/benchmark/___NOTE.md +16 -0
  224. package/docs/en/dictionary/condition.md +2 -116
  225. package/docs/en/dictionary/content_file.md +2 -200
  226. package/docs/en/dictionary/enumeration.md +4 -202
  227. package/docs/en/dictionary/file.md +3 -100
  228. package/docs/en/dictionary/function_fetching.md +3 -103
  229. package/docs/en/dictionary/gender.md +2 -140
  230. package/docs/en/dictionary/insertion.md +3 -57
  231. package/docs/en/dictionary/nesting.md +3 -121
  232. package/docs/en/dictionary/translation.md +4 -146
  233. package/docs/en/interest_of_intlayer.md +2 -58
  234. package/docs/en/intlayer_CMS.md +3 -227
  235. package/docs/en/intlayer_visual_editor.md +1 -72
  236. package/docs/en/intlayer_with_adonisjs.md +3 -107
  237. package/docs/en/intlayer_with_analog.md +21 -41
  238. package/docs/en/intlayer_with_angular.md +15 -41
  239. package/docs/en/intlayer_with_astro.md +397 -38
  240. package/docs/en/intlayer_with_astro_lit.md +616 -0
  241. package/docs/en/intlayer_with_astro_preact.md +571 -0
  242. package/docs/en/intlayer_with_astro_react.md +564 -0
  243. package/docs/en/intlayer_with_astro_solid.md +564 -0
  244. package/docs/en/intlayer_with_astro_svelte.md +568 -0
  245. package/docs/en/intlayer_with_astro_vanilla.md +543 -0
  246. package/docs/en/intlayer_with_astro_vue.md +586 -0
  247. package/docs/en/intlayer_with_create_react_app.md +34 -686
  248. package/docs/en/intlayer_with_express.md +5 -179
  249. package/docs/en/intlayer_with_fastify.md +5 -193
  250. package/docs/en/intlayer_with_hono.md +5 -158
  251. package/docs/en/intlayer_with_lynx+react.md +3 -109
  252. package/docs/en/intlayer_with_nestjs.md +3 -31
  253. package/docs/en/intlayer_with_nextjs_14.md +47 -777
  254. package/docs/en/intlayer_with_nextjs_15.md +39 -822
  255. package/docs/en/intlayer_with_nextjs_16.md +40 -891
  256. package/docs/en/intlayer_with_nextjs_compiler.md +2 -70
  257. package/docs/en/intlayer_with_nextjs_no_locale_path.md +11 -488
  258. package/docs/en/intlayer_with_nextjs_page_router.md +102 -713
  259. package/docs/en/intlayer_with_nuxt.md +16 -98
  260. package/docs/en/intlayer_with_react_native+expo.md +31 -291
  261. package/docs/en/intlayer_with_react_router_v7.md +15 -107
  262. package/docs/en/intlayer_with_react_router_v7_fs_routes.md +15 -99
  263. package/docs/en/intlayer_with_storybook.md +1 -37
  264. package/docs/en/intlayer_with_svelte_kit.md +28 -78
  265. package/docs/en/intlayer_with_tanstack+solid.md +14 -70
  266. package/docs/en/intlayer_with_tanstack.md +14 -70
  267. package/docs/en/intlayer_with_vanilla.md +28 -108
  268. package/docs/en/intlayer_with_vite+lit.md +98 -162
  269. package/docs/en/intlayer_with_vite+preact.md +100 -717
  270. package/docs/en/intlayer_with_vite+react.md +104 -796
  271. package/docs/en/intlayer_with_vite+react_compiler.md +87 -1
  272. package/docs/en/intlayer_with_vite+solid.md +79 -211
  273. package/docs/en/intlayer_with_vite+svelte.md +104 -138
  274. package/docs/en/intlayer_with_vite+vanilla.md +105 -155
  275. package/docs/en/intlayer_with_vite+vue.md +92 -244
  276. package/docs/en/introduction.md +2 -58
  277. package/docs/en/packages/express-intlayer/t.md +6 -181
  278. package/docs/en/packages/hono-intlayer/t.md +3 -95
  279. package/docs/en/packages/intlayer/getConfiguration.md +2 -54
  280. package/docs/en/packages/intlayer/getEnumeration.md +2 -60
  281. package/docs/en/packages/intlayer/getHTMLTextDir.md +2 -38
  282. package/docs/en/packages/intlayer/getLocaleLang.md +1 -19
  283. package/docs/en/packages/intlayer/getLocaleName.md +1 -43
  284. package/docs/en/packages/intlayer/getLocalizedUrl.md +3 -71
  285. package/docs/en/packages/intlayer/getMultilingualUrls.md +3 -79
  286. package/docs/en/packages/intlayer/getPathWithoutLocale.md +1 -19
  287. package/docs/en/packages/intlayer/getPrefix.md +1 -15
  288. package/docs/en/packages/intlayer/getTranslation.md +3 -87
  289. package/docs/en/packages/next-intlayer/t.md +5 -137
  290. package/docs/en/packages/next-intlayer/useDictionary.md +3 -118
  291. package/docs/en/packages/next-intlayer/useIntlayer.md +3 -117
  292. package/docs/en/packages/next-intlayer/useLocale.md +1 -51
  293. package/docs/en/packages/react-intlayer/t.md +4 -109
  294. package/docs/en/packages/react-intlayer/useI18n.md +4 -107
  295. package/docs/en/packages/react-intlayer/useLocale.md +3 -103
  296. package/docs/en/per_locale_file.md +3 -33
  297. package/docs/en-GB/dictionary/condition.md +2 -116
  298. package/docs/en-GB/dictionary/content_file.md +2 -213
  299. package/docs/en-GB/dictionary/enumeration.md +2 -116
  300. package/docs/en-GB/dictionary/file.md +3 -100
  301. package/docs/en-GB/dictionary/function_fetching.md +3 -103
  302. package/docs/en-GB/dictionary/gender.md +2 -140
  303. package/docs/en-GB/dictionary/insertion.md +3 -81
  304. package/docs/en-GB/dictionary/nesting.md +3 -121
  305. package/docs/en-GB/dictionary/translation.md +4 -146
  306. package/docs/en-GB/interest_of_intlayer.md +2 -58
  307. package/docs/en-GB/intlayer_CMS.md +3 -223
  308. package/docs/en-GB/intlayer_visual_editor.md +1 -72
  309. package/docs/en-GB/intlayer_with_adonisjs.md +3 -109
  310. package/docs/en-GB/intlayer_with_analog.md +21 -41
  311. package/docs/en-GB/intlayer_with_angular.md +15 -41
  312. package/docs/en-GB/intlayer_with_astro.md +183 -53
  313. package/docs/en-GB/intlayer_with_astro_lit.md +619 -0
  314. package/docs/en-GB/intlayer_with_astro_preact.md +568 -0
  315. package/docs/en-GB/intlayer_with_astro_react.md +566 -0
  316. package/docs/en-GB/intlayer_with_astro_solid.md +566 -0
  317. package/docs/en-GB/intlayer_with_astro_svelte.md +570 -0
  318. package/docs/en-GB/intlayer_with_astro_vanilla.md +547 -0
  319. package/docs/en-GB/intlayer_with_astro_vue.md +588 -0
  320. package/docs/en-GB/intlayer_with_create_react_app.md +33 -707
  321. package/docs/en-GB/intlayer_with_express.md +5 -182
  322. package/docs/en-GB/intlayer_with_fastify.md +5 -193
  323. package/docs/en-GB/intlayer_with_hono.md +5 -158
  324. package/docs/en-GB/intlayer_with_lynx+react.md +2 -116
  325. package/docs/en-GB/intlayer_with_nestjs.md +3 -31
  326. package/docs/en-GB/intlayer_with_nextjs_14.md +77 -773
  327. package/docs/en-GB/intlayer_with_nextjs_15.md +59 -839
  328. package/docs/en-GB/intlayer_with_nextjs_16.md +39 -822
  329. package/docs/en-GB/intlayer_with_nextjs_compiler.md +1 -1
  330. package/docs/en-GB/intlayer_with_nextjs_no_locale_path.md +11 -500
  331. package/docs/en-GB/intlayer_with_nextjs_page_router.md +38 -634
  332. package/docs/en-GB/intlayer_with_nuxt.md +16 -103
  333. package/docs/en-GB/intlayer_with_react_native+expo.md +31 -284
  334. package/docs/en-GB/intlayer_with_react_router_v7.md +14 -30
  335. package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +14 -30
  336. package/docs/en-GB/intlayer_with_storybook.md +1 -37
  337. package/docs/en-GB/intlayer_with_svelte_kit.md +28 -10
  338. package/docs/en-GB/intlayer_with_tanstack+solid.md +14 -70
  339. package/docs/en-GB/intlayer_with_tanstack.md +13 -1
  340. package/docs/en-GB/intlayer_with_vanilla.md +28 -108
  341. package/docs/en-GB/intlayer_with_vite+lit.md +98 -162
  342. package/docs/en-GB/intlayer_with_vite+preact.md +98 -647
  343. package/docs/en-GB/intlayer_with_vite+react.md +99 -906
  344. package/docs/en-GB/intlayer_with_vite+react_compiler.md +87 -1
  345. package/docs/en-GB/intlayer_with_vite+solid.md +78 -88
  346. package/docs/en-GB/intlayer_with_vite+svelte.md +103 -71
  347. package/docs/en-GB/intlayer_with_vite+vanilla.md +105 -155
  348. package/docs/en-GB/intlayer_with_vite+vue.md +91 -195
  349. package/docs/en-GB/introduction.md +2 -58
  350. package/docs/en-GB/packages/express-intlayer/t.md +6 -181
  351. package/docs/en-GB/packages/hono-intlayer/t.md +3 -95
  352. package/docs/en-GB/packages/intlayer/getConfiguration.md +2 -54
  353. package/docs/en-GB/packages/intlayer/getEnumeration.md +2 -60
  354. package/docs/en-GB/packages/intlayer/getHTMLTextDir.md +2 -38
  355. package/docs/en-GB/packages/intlayer/getLocaleLang.md +1 -19
  356. package/docs/en-GB/packages/intlayer/getLocaleName.md +1 -43
  357. package/docs/en-GB/packages/intlayer/getLocalizedUrl.md +2 -45
  358. package/docs/en-GB/packages/intlayer/getMultilingualUrls.md +2 -62
  359. package/docs/en-GB/packages/intlayer/getPathWithoutLocale.md +1 -19
  360. package/docs/en-GB/packages/intlayer/getPrefix.md +1 -15
  361. package/docs/en-GB/packages/intlayer/getTranslation.md +4 -107
  362. package/docs/en-GB/packages/intlayer/getTranslationContent.md +3 -98
  363. package/docs/en-GB/packages/next-intlayer/t.md +5 -141
  364. package/docs/en-GB/packages/next-intlayer/useDictionary.md +3 -124
  365. package/docs/en-GB/packages/next-intlayer/useIntlayer.md +3 -119
  366. package/docs/en-GB/packages/next-intlayer/useLocale.md +1 -51
  367. package/docs/en-GB/packages/react-intlayer/t.md +4 -110
  368. package/docs/en-GB/packages/react-intlayer/useDictionary.md +3 -117
  369. package/docs/en-GB/packages/react-intlayer/useI18n.md +3 -106
  370. package/docs/en-GB/packages/react-intlayer/useIntlayer.md +3 -114
  371. package/docs/en-GB/packages/react-intlayer/useLocale.md +3 -102
  372. package/docs/en-GB/per_locale_file.md +3 -33
  373. package/docs/es/dictionary/condition.md +2 -116
  374. package/docs/es/dictionary/content_file.md +2 -233
  375. package/docs/es/dictionary/enumeration.md +2 -116
  376. package/docs/es/dictionary/file.md +3 -100
  377. package/docs/es/dictionary/function_fetching.md +3 -103
  378. package/docs/es/dictionary/gender.md +2 -140
  379. package/docs/es/dictionary/insertion.md +3 -57
  380. package/docs/es/dictionary/nesting.md +3 -121
  381. package/docs/es/dictionary/translation.md +4 -146
  382. package/docs/es/interest_of_intlayer.md +2 -58
  383. package/docs/es/intlayer_CMS.md +3 -227
  384. package/docs/es/intlayer_visual_editor.md +1 -72
  385. package/docs/es/intlayer_with_adonisjs.md +3 -107
  386. package/docs/es/intlayer_with_analog.md +21 -41
  387. package/docs/es/intlayer_with_angular.md +15 -41
  388. package/docs/es/intlayer_with_astro.md +178 -52
  389. package/docs/es/intlayer_with_astro_lit.md +612 -0
  390. package/docs/es/intlayer_with_astro_preact.md +562 -0
  391. package/docs/es/intlayer_with_astro_react.md +560 -0
  392. package/docs/es/intlayer_with_astro_solid.md +560 -0
  393. package/docs/es/intlayer_with_astro_svelte.md +564 -0
  394. package/docs/es/intlayer_with_astro_vanilla.md +539 -0
  395. package/docs/es/intlayer_with_astro_vue.md +582 -0
  396. package/docs/es/intlayer_with_create_react_app.md +33 -649
  397. package/docs/es/intlayer_with_express.md +5 -179
  398. package/docs/es/intlayer_with_fastify.md +5 -193
  399. package/docs/es/intlayer_with_hono.md +5 -158
  400. package/docs/es/intlayer_with_lynx+react.md +2 -108
  401. package/docs/es/intlayer_with_nestjs.md +3 -31
  402. package/docs/es/intlayer_with_nextjs_14.md +53 -678
  403. package/docs/es/intlayer_with_nextjs_15.md +56 -812
  404. package/docs/es/intlayer_with_nextjs_16.md +40 -890
  405. package/docs/es/intlayer_with_nextjs_compiler.md +2 -62
  406. package/docs/es/intlayer_with_nextjs_no_locale_path.md +11 -486
  407. package/docs/es/intlayer_with_nextjs_page_router.md +37 -648
  408. package/docs/es/intlayer_with_nuxt.md +16 -98
  409. package/docs/es/intlayer_with_react_native+expo.md +31 -284
  410. package/docs/es/intlayer_with_react_router_v7.md +15 -92
  411. package/docs/es/intlayer_with_react_router_v7_fs_routes.md +15 -92
  412. package/docs/es/intlayer_with_storybook.md +1 -37
  413. package/docs/es/intlayer_with_svelte_kit.md +29 -71
  414. package/docs/es/intlayer_with_tanstack+solid.md +14 -70
  415. package/docs/es/intlayer_with_tanstack.md +14 -62
  416. package/docs/es/intlayer_with_vanilla.md +28 -108
  417. package/docs/es/intlayer_with_vite+lit.md +98 -162
  418. package/docs/es/intlayer_with_vite+preact.md +100 -709
  419. package/docs/es/intlayer_with_vite+react.md +105 -789
  420. package/docs/es/intlayer_with_vite+react_compiler.md +87 -1
  421. package/docs/es/intlayer_with_vite+solid.md +79 -152
  422. package/docs/es/intlayer_with_vite+svelte.md +104 -132
  423. package/docs/es/intlayer_with_vite+vanilla.md +105 -155
  424. package/docs/es/intlayer_with_vite+vue.md +92 -255
  425. package/docs/es/introduction.md +2 -60
  426. package/docs/es/packages/express-intlayer/t.md +6 -183
  427. package/docs/es/packages/hono-intlayer/t.md +3 -95
  428. package/docs/es/packages/intlayer/getConfiguration.md +2 -54
  429. package/docs/es/packages/intlayer/getEnumeration.md +2 -60
  430. package/docs/es/packages/intlayer/getHTMLTextDir.md +2 -38
  431. package/docs/es/packages/intlayer/getLocaleLang.md +1 -19
  432. package/docs/es/packages/intlayer/getLocaleName.md +1 -43
  433. package/docs/es/packages/intlayer/getLocalizedUrl.md +2 -45
  434. package/docs/es/packages/intlayer/getMultilingualUrls.md +2 -62
  435. package/docs/es/packages/intlayer/getPathWithoutLocale.md +1 -19
  436. package/docs/es/packages/intlayer/getPrefix.md +1 -15
  437. package/docs/es/packages/intlayer/getTranslation.md +3 -87
  438. package/docs/es/packages/intlayer/getTranslationContent.md +3 -87
  439. package/docs/es/packages/next-intlayer/index.md +2 -60
  440. package/docs/es/packages/next-intlayer/t.md +5 -137
  441. package/docs/es/packages/next-intlayer/useDictionary.md +3 -118
  442. package/docs/es/packages/next-intlayer/useIntlayer.md +3 -119
  443. package/docs/es/packages/next-intlayer/useLocale.md +1 -51
  444. package/docs/es/packages/react-intlayer/index.md +2 -60
  445. package/docs/es/packages/react-intlayer/t.md +4 -110
  446. package/docs/es/packages/react-intlayer/useDictionary.md +3 -113
  447. package/docs/es/packages/react-intlayer/useI18n.md +4 -107
  448. package/docs/es/packages/react-intlayer/useIntlayer.md +3 -110
  449. package/docs/es/packages/react-intlayer/useLocale.md +3 -103
  450. package/docs/es/per_locale_file.md +3 -34
  451. package/docs/fr/dictionary/condition.md +2 -116
  452. package/docs/fr/dictionary/content_file.md +2 -200
  453. package/docs/fr/dictionary/enumeration.md +2 -116
  454. package/docs/fr/dictionary/file.md +3 -100
  455. package/docs/fr/dictionary/function_fetching.md +3 -103
  456. package/docs/fr/dictionary/gender.md +2 -141
  457. package/docs/fr/dictionary/insertion.md +3 -57
  458. package/docs/fr/dictionary/nesting.md +3 -121
  459. package/docs/fr/dictionary/translation.md +4 -146
  460. package/docs/fr/interest_of_intlayer.md +2 -59
  461. package/docs/fr/intlayer_CMS.md +3 -227
  462. package/docs/fr/intlayer_visual_editor.md +1 -72
  463. package/docs/fr/intlayer_with_adonisjs.md +3 -107
  464. package/docs/fr/intlayer_with_analog.md +21 -41
  465. package/docs/fr/intlayer_with_angular.md +15 -41
  466. package/docs/fr/intlayer_with_astro.md +175 -49
  467. package/docs/fr/intlayer_with_astro_lit.md +612 -0
  468. package/docs/fr/intlayer_with_astro_preact.md +567 -0
  469. package/docs/fr/intlayer_with_astro_react.md +560 -0
  470. package/docs/fr/intlayer_with_astro_solid.md +560 -0
  471. package/docs/fr/intlayer_with_astro_svelte.md +564 -0
  472. package/docs/fr/intlayer_with_astro_vanilla.md +539 -0
  473. package/docs/fr/intlayer_with_astro_vue.md +582 -0
  474. package/docs/fr/intlayer_with_create_react_app.md +9 -645
  475. package/docs/fr/intlayer_with_express.md +4 -110
  476. package/docs/fr/intlayer_with_fastify.md +5 -193
  477. package/docs/fr/intlayer_with_hono.md +5 -158
  478. package/docs/fr/intlayer_with_lynx+react.md +2 -108
  479. package/docs/fr/intlayer_with_nestjs.md +3 -31
  480. package/docs/fr/intlayer_with_nextjs_14.md +51 -573
  481. package/docs/fr/intlayer_with_nextjs_15.md +64 -842
  482. package/docs/fr/intlayer_with_nextjs_16.md +44 -867
  483. package/docs/fr/intlayer_with_nextjs_compiler.md +2 -64
  484. package/docs/fr/intlayer_with_nextjs_no_locale_path.md +11 -522
  485. package/docs/fr/intlayer_with_nextjs_page_router.md +37 -647
  486. package/docs/fr/intlayer_with_nuxt.md +16 -99
  487. package/docs/fr/intlayer_with_react_native+expo.md +31 -284
  488. package/docs/fr/intlayer_with_react_router_v7.md +15 -94
  489. package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +15 -94
  490. package/docs/fr/intlayer_with_storybook.md +1 -37
  491. package/docs/fr/intlayer_with_svelte_kit.md +29 -71
  492. package/docs/fr/intlayer_with_tanstack+solid.md +14 -70
  493. package/docs/fr/intlayer_with_tanstack.md +14 -62
  494. package/docs/fr/intlayer_with_vanilla.md +28 -108
  495. package/docs/fr/intlayer_with_vite+lit.md +98 -162
  496. package/docs/fr/intlayer_with_vite+preact.md +100 -709
  497. package/docs/fr/intlayer_with_vite+react.md +104 -788
  498. package/docs/fr/intlayer_with_vite+react_compiler.md +87 -1
  499. package/docs/fr/intlayer_with_vite+solid.md +79 -152
  500. package/docs/fr/intlayer_with_vite+svelte.md +104 -132
  501. package/docs/fr/intlayer_with_vite+vanilla.md +105 -155
  502. package/docs/fr/intlayer_with_vite+vue.md +92 -251
  503. package/docs/fr/introduction.md +2 -60
  504. package/docs/fr/packages/express-intlayer/t.md +6 -184
  505. package/docs/fr/packages/hono-intlayer/t.md +3 -95
  506. package/docs/fr/packages/intlayer/getConfiguration.md +2 -54
  507. package/docs/fr/packages/intlayer/getEnumeration.md +2 -60
  508. package/docs/fr/packages/intlayer/getHTMLTextDir.md +2 -39
  509. package/docs/fr/packages/intlayer/getLocaleLang.md +1 -19
  510. package/docs/fr/packages/intlayer/getLocaleName.md +1 -43
  511. package/docs/fr/packages/intlayer/getLocalizedUrl.md +2 -45
  512. package/docs/fr/packages/intlayer/getMultilingualUrls.md +2 -60
  513. package/docs/fr/packages/intlayer/getPathWithoutLocale.md +1 -19
  514. package/docs/fr/packages/intlayer/getPrefix.md +1 -15
  515. package/docs/fr/packages/intlayer/getTranslation.md +3 -87
  516. package/docs/fr/packages/intlayer/getTranslationContent.md +3 -87
  517. package/docs/fr/packages/next-intlayer/t.md +5 -137
  518. package/docs/fr/packages/next-intlayer/useDictionary.md +3 -118
  519. package/docs/fr/packages/next-intlayer/useIntlayer.md +3 -117
  520. package/docs/fr/packages/next-intlayer/useLocale.md +1 -51
  521. package/docs/fr/packages/react-intlayer/index.md +2 -60
  522. package/docs/fr/packages/react-intlayer/t.md +4 -109
  523. package/docs/fr/packages/react-intlayer/useDictionary.md +3 -114
  524. package/docs/fr/packages/react-intlayer/useI18n.md +4 -107
  525. package/docs/fr/packages/react-intlayer/useIntlayer.md +3 -109
  526. package/docs/fr/packages/react-intlayer/useLocale.md +3 -103
  527. package/docs/fr/per_locale_file.md +3 -35
  528. package/docs/hi/dictionary/condition.md +2 -116
  529. package/docs/hi/dictionary/content_file.md +2 -201
  530. package/docs/hi/dictionary/enumeration.md +2 -116
  531. package/docs/hi/dictionary/file.md +3 -100
  532. package/docs/hi/dictionary/function_fetching.md +3 -103
  533. package/docs/hi/dictionary/gender.md +2 -141
  534. package/docs/hi/dictionary/insertion.md +3 -57
  535. package/docs/hi/dictionary/nesting.md +3 -121
  536. package/docs/hi/dictionary/translation.md +4 -149
  537. package/docs/hi/interest_of_intlayer.md +2 -58
  538. package/docs/hi/intlayer_CMS.md +3 -227
  539. package/docs/hi/intlayer_visual_editor.md +1 -72
  540. package/docs/hi/intlayer_with_adonisjs.md +3 -109
  541. package/docs/hi/intlayer_with_analog.md +21 -41
  542. package/docs/hi/intlayer_with_angular.md +15 -41
  543. package/docs/hi/intlayer_with_astro.md +183 -57
  544. package/docs/hi/intlayer_with_astro_lit.md +615 -0
  545. package/docs/hi/intlayer_with_astro_preact.md +564 -0
  546. package/docs/hi/intlayer_with_astro_react.md +562 -0
  547. package/docs/hi/intlayer_with_astro_solid.md +562 -0
  548. package/docs/hi/intlayer_with_astro_svelte.md +566 -0
  549. package/docs/hi/intlayer_with_astro_vanilla.md +543 -0
  550. package/docs/hi/intlayer_with_astro_vue.md +584 -0
  551. package/docs/hi/intlayer_with_create_react_app.md +8 -444
  552. package/docs/hi/intlayer_with_express.md +6 -195
  553. package/docs/hi/intlayer_with_fastify.md +5 -193
  554. package/docs/hi/intlayer_with_hono.md +2 -2
  555. package/docs/hi/intlayer_with_lynx+react.md +2 -116
  556. package/docs/hi/intlayer_with_nestjs.md +3 -31
  557. package/docs/hi/intlayer_with_nextjs_14.md +60 -512
  558. package/docs/hi/intlayer_with_nextjs_15.md +60 -822
  559. package/docs/hi/intlayer_with_nextjs_16.md +40 -883
  560. package/docs/hi/intlayer_with_nextjs_compiler.md +2 -62
  561. package/docs/hi/intlayer_with_nextjs_no_locale_path.md +11 -498
  562. package/docs/hi/intlayer_with_nextjs_page_router.md +37 -648
  563. package/docs/hi/intlayer_with_nuxt.md +16 -101
  564. package/docs/hi/intlayer_with_react_native+expo.md +31 -284
  565. package/docs/hi/intlayer_with_react_router_v7.md +15 -91
  566. package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +15 -91
  567. package/docs/hi/intlayer_with_storybook.md +1 -37
  568. package/docs/hi/intlayer_with_svelte_kit.md +29 -71
  569. package/docs/hi/intlayer_with_tanstack+solid.md +14 -70
  570. package/docs/hi/intlayer_with_tanstack.md +14 -62
  571. package/docs/hi/intlayer_with_vanilla.md +28 -108
  572. package/docs/hi/intlayer_with_vite+lit.md +98 -156
  573. package/docs/hi/intlayer_with_vite+preact.md +98 -619
  574. package/docs/hi/intlayer_with_vite+react.md +123 -816
  575. package/docs/hi/intlayer_with_vite+react_compiler.md +87 -1
  576. package/docs/hi/intlayer_with_vite+solid.md +79 -151
  577. package/docs/hi/intlayer_with_vite+svelte.md +104 -132
  578. package/docs/hi/intlayer_with_vite+vanilla.md +105 -87
  579. package/docs/hi/intlayer_with_vite+vue.md +92 -250
  580. package/docs/hi/introduction.md +2 -62
  581. package/docs/hi/packages/express-intlayer/t.md +6 -181
  582. package/docs/hi/packages/hono-intlayer/t.md +1 -45
  583. package/docs/hi/packages/intlayer/getConfiguration.md +2 -54
  584. package/docs/hi/packages/intlayer/getEnumeration.md +2 -60
  585. package/docs/hi/packages/intlayer/getHTMLTextDir.md +2 -38
  586. package/docs/hi/packages/intlayer/getLocaleLang.md +1 -19
  587. package/docs/hi/packages/intlayer/getLocaleName.md +1 -43
  588. package/docs/hi/packages/intlayer/getLocalizedUrl.md +2 -45
  589. package/docs/hi/packages/intlayer/getMultilingualUrls.md +2 -62
  590. package/docs/hi/packages/intlayer/getPathWithoutLocale.md +1 -19
  591. package/docs/hi/packages/intlayer/getPrefix.md +1 -19
  592. package/docs/hi/packages/intlayer/getTranslation.md +3 -87
  593. package/docs/hi/packages/intlayer/getTranslationContent.md +3 -86
  594. package/docs/hi/packages/intlayer/index.md +4 -129
  595. package/docs/hi/packages/next-intlayer/t.md +5 -138
  596. package/docs/hi/packages/next-intlayer/useDictionary.md +3 -118
  597. package/docs/hi/packages/next-intlayer/useIntlayer.md +3 -120
  598. package/docs/hi/packages/next-intlayer/useLocale.md +1 -51
  599. package/docs/hi/packages/react-intlayer/t.md +4 -106
  600. package/docs/hi/packages/react-intlayer/useDictionary.md +3 -115
  601. package/docs/hi/packages/react-intlayer/useI18n.md +3 -111
  602. package/docs/hi/packages/react-intlayer/useIntlayer.md +3 -113
  603. package/docs/hi/packages/react-intlayer/useLocale.md +3 -103
  604. package/docs/hi/per_locale_file.md +3 -34
  605. package/docs/id/dictionary/condition.md +2 -110
  606. package/docs/id/dictionary/content_file.md +2 -200
  607. package/docs/id/dictionary/enumeration.md +2 -116
  608. package/docs/id/dictionary/file.md +3 -105
  609. package/docs/id/dictionary/function_fetching.md +3 -103
  610. package/docs/id/dictionary/gender.md +2 -140
  611. package/docs/id/dictionary/insertion.md +3 -57
  612. package/docs/id/dictionary/nesting.md +3 -121
  613. package/docs/id/dictionary/translation.md +4 -147
  614. package/docs/id/interest_of_intlayer.md +2 -58
  615. package/docs/id/intlayer_CMS.md +3 -227
  616. package/docs/id/intlayer_visual_editor.md +1 -72
  617. package/docs/id/intlayer_with_adonisjs.md +3 -109
  618. package/docs/id/intlayer_with_analog.md +21 -41
  619. package/docs/id/intlayer_with_angular.md +15 -41
  620. package/docs/id/intlayer_with_astro.md +182 -64
  621. package/docs/id/intlayer_with_astro_lit.md +615 -0
  622. package/docs/id/intlayer_with_astro_preact.md +564 -0
  623. package/docs/id/intlayer_with_astro_react.md +562 -0
  624. package/docs/id/intlayer_with_astro_solid.md +562 -0
  625. package/docs/id/intlayer_with_astro_svelte.md +566 -0
  626. package/docs/id/intlayer_with_astro_vanilla.md +543 -0
  627. package/docs/id/intlayer_with_astro_vue.md +584 -0
  628. package/docs/id/intlayer_with_create_react_app.md +39 -694
  629. package/docs/id/intlayer_with_express.md +5 -181
  630. package/docs/id/intlayer_with_fastify.md +5 -193
  631. package/docs/id/intlayer_with_hono.md +2 -2
  632. package/docs/id/intlayer_with_lynx+react.md +3 -109
  633. package/docs/id/intlayer_with_nestjs.md +3 -31
  634. package/docs/id/intlayer_with_nextjs_14.md +59 -796
  635. package/docs/id/intlayer_with_nextjs_15.md +37 -815
  636. package/docs/id/intlayer_with_nextjs_16.md +41 -884
  637. package/docs/id/intlayer_with_nextjs_compiler.md +2 -62
  638. package/docs/id/intlayer_with_nextjs_no_locale_path.md +11 -501
  639. package/docs/id/intlayer_with_nextjs_page_router.md +102 -713
  640. package/docs/id/intlayer_with_nuxt.md +16 -99
  641. package/docs/id/intlayer_with_react_native+expo.md +31 -291
  642. package/docs/id/intlayer_with_react_router_v7.md +15 -99
  643. package/docs/id/intlayer_with_react_router_v7_fs_routes.md +15 -99
  644. package/docs/id/intlayer_with_storybook.md +1 -37
  645. package/docs/id/intlayer_with_svelte_kit.md +29 -71
  646. package/docs/id/intlayer_with_tanstack+solid.md +14 -70
  647. package/docs/id/intlayer_with_tanstack.md +14 -62
  648. package/docs/id/intlayer_with_vanilla.md +28 -108
  649. package/docs/id/intlayer_with_vite+lit.md +98 -156
  650. package/docs/id/intlayer_with_vite+preact.md +103 -712
  651. package/docs/id/intlayer_with_vite+react.md +115 -803
  652. package/docs/id/intlayer_with_vite+react_compiler.md +87 -1
  653. package/docs/id/intlayer_with_vite+solid.md +79 -150
  654. package/docs/id/intlayer_with_vite+svelte.md +104 -132
  655. package/docs/id/intlayer_with_vite+vanilla.md +105 -155
  656. package/docs/id/intlayer_with_vite+vue.md +92 -258
  657. package/docs/id/introduction.md +2 -60
  658. package/docs/id/packages/express-intlayer/t.md +6 -181
  659. package/docs/id/packages/hono-intlayer/t.md +1 -45
  660. package/docs/id/packages/intlayer/getConfiguration.md +2 -54
  661. package/docs/id/packages/intlayer/getEnumeration.md +2 -60
  662. package/docs/id/packages/intlayer/getHTMLTextDir.md +2 -39
  663. package/docs/id/packages/intlayer/getLocaleLang.md +1 -19
  664. package/docs/id/packages/intlayer/getLocaleName.md +1 -44
  665. package/docs/id/packages/intlayer/getLocalizedUrl.md +2 -59
  666. package/docs/id/packages/intlayer/getMultilingualUrls.md +2 -64
  667. package/docs/id/packages/intlayer/getPathWithoutLocale.md +1 -19
  668. package/docs/id/packages/intlayer/getPrefix.md +1 -12
  669. package/docs/id/packages/intlayer/getTranslation.md +3 -87
  670. package/docs/id/packages/intlayer/getTranslationContent.md +3 -86
  671. package/docs/id/packages/next-intlayer/t.md +5 -137
  672. package/docs/id/packages/next-intlayer/useDictionary.md +3 -121
  673. package/docs/id/packages/next-intlayer/useIntlayer.md +3 -117
  674. package/docs/id/packages/next-intlayer/useLocale.md +1 -51
  675. package/docs/id/packages/react-intlayer/t.md +4 -109
  676. package/docs/id/packages/react-intlayer/useDictionary.md +3 -113
  677. package/docs/id/packages/react-intlayer/useI18n.md +4 -123
  678. package/docs/id/packages/react-intlayer/useIntlayer.md +3 -109
  679. package/docs/id/packages/react-intlayer/useLocale.md +3 -103
  680. package/docs/id/per_locale_file.md +3 -35
  681. package/docs/it/dictionary/condition.md +2 -116
  682. package/docs/it/dictionary/content_file.md +2 -201
  683. package/docs/it/dictionary/enumeration.md +2 -116
  684. package/docs/it/dictionary/file.md +3 -100
  685. package/docs/it/dictionary/function_fetching.md +3 -103
  686. package/docs/it/dictionary/gender.md +2 -140
  687. package/docs/it/dictionary/insertion.md +3 -57
  688. package/docs/it/dictionary/nesting.md +3 -121
  689. package/docs/it/dictionary/translation.md +4 -146
  690. package/docs/it/interest_of_intlayer.md +2 -59
  691. package/docs/it/intlayer_CMS.md +3 -227
  692. package/docs/it/intlayer_visual_editor.md +1 -72
  693. package/docs/it/intlayer_with_adonisjs.md +3 -109
  694. package/docs/it/intlayer_with_analog.md +21 -41
  695. package/docs/it/intlayer_with_angular.md +15 -41
  696. package/docs/it/intlayer_with_astro.md +187 -61
  697. package/docs/it/intlayer_with_astro_lit.md +615 -0
  698. package/docs/it/intlayer_with_astro_preact.md +564 -0
  699. package/docs/it/intlayer_with_astro_react.md +562 -0
  700. package/docs/it/intlayer_with_astro_solid.md +562 -0
  701. package/docs/it/intlayer_with_astro_svelte.md +566 -0
  702. package/docs/it/intlayer_with_astro_vanilla.md +543 -0
  703. package/docs/it/intlayer_with_astro_vue.md +584 -0
  704. package/docs/it/intlayer_with_create_react_app.md +9 -551
  705. package/docs/it/intlayer_with_express.md +5 -182
  706. package/docs/it/intlayer_with_fastify.md +5 -193
  707. package/docs/it/intlayer_with_hono.md +2 -2
  708. package/docs/it/intlayer_with_lynx+react.md +2 -116
  709. package/docs/it/intlayer_with_nestjs.md +3 -31
  710. package/docs/it/intlayer_with_nextjs_14.md +51 -575
  711. package/docs/it/intlayer_with_nextjs_15.md +55 -813
  712. package/docs/it/intlayer_with_nextjs_16.md +40 -883
  713. package/docs/it/intlayer_with_nextjs_compiler.md +2 -62
  714. package/docs/it/intlayer_with_nextjs_no_locale_path.md +11 -498
  715. package/docs/it/intlayer_with_nextjs_page_router.md +37 -650
  716. package/docs/it/intlayer_with_nuxt.md +16 -101
  717. package/docs/it/intlayer_with_react_native+expo.md +31 -286
  718. package/docs/it/intlayer_with_react_router_v7.md +15 -93
  719. package/docs/it/intlayer_with_react_router_v7_fs_routes.md +15 -93
  720. package/docs/it/intlayer_with_storybook.md +1 -37
  721. package/docs/it/intlayer_with_svelte_kit.md +29 -71
  722. package/docs/it/intlayer_with_tanstack+solid.md +14 -70
  723. package/docs/it/intlayer_with_tanstack.md +14 -62
  724. package/docs/it/intlayer_with_vanilla.md +28 -108
  725. package/docs/it/intlayer_with_vite+lit.md +98 -162
  726. package/docs/it/intlayer_with_vite+preact.md +102 -711
  727. package/docs/it/intlayer_with_vite+react.md +112 -797
  728. package/docs/it/intlayer_with_vite+react_compiler.md +87 -1
  729. package/docs/it/intlayer_with_vite+solid.md +79 -151
  730. package/docs/it/intlayer_with_vite+svelte.md +104 -132
  731. package/docs/it/intlayer_with_vite+vanilla.md +105 -155
  732. package/docs/it/intlayer_with_vite+vue.md +80 -281
  733. package/docs/it/introduction.md +2 -60
  734. package/docs/it/packages/express-intlayer/t.md +6 -181
  735. package/docs/it/packages/hono-intlayer/t.md +1 -45
  736. package/docs/it/packages/intlayer/getConfiguration.md +2 -54
  737. package/docs/it/packages/intlayer/getEnumeration.md +2 -60
  738. package/docs/it/packages/intlayer/getHTMLTextDir.md +2 -38
  739. package/docs/it/packages/intlayer/getLocaleLang.md +1 -20
  740. package/docs/it/packages/intlayer/getLocaleName.md +1 -43
  741. package/docs/it/packages/intlayer/getLocalizedUrl.md +2 -45
  742. package/docs/it/packages/intlayer/getMultilingualUrls.md +2 -62
  743. package/docs/it/packages/intlayer/getPathWithoutLocale.md +1 -19
  744. package/docs/it/packages/intlayer/getPrefix.md +1 -12
  745. package/docs/it/packages/intlayer/getTranslation.md +3 -86
  746. package/docs/it/packages/intlayer/getTranslationContent.md +3 -87
  747. package/docs/it/packages/next-intlayer/t.md +5 -141
  748. package/docs/it/packages/next-intlayer/useDictionary.md +3 -118
  749. package/docs/it/packages/next-intlayer/useIntlayer.md +3 -117
  750. package/docs/it/packages/next-intlayer/useLocale.md +1 -51
  751. package/docs/it/packages/react-intlayer/t.md +4 -109
  752. package/docs/it/packages/react-intlayer/useDictionary.md +3 -115
  753. package/docs/it/packages/react-intlayer/useI18n.md +4 -107
  754. package/docs/it/packages/react-intlayer/useIntlayer.md +3 -109
  755. package/docs/it/packages/react-intlayer/useLocale.md +3 -103
  756. package/docs/it/per_locale_file.md +3 -35
  757. package/docs/ja/dictionary/condition.md +2 -116
  758. package/docs/ja/dictionary/content_file.md +2 -204
  759. package/docs/ja/dictionary/enumeration.md +2 -116
  760. package/docs/ja/dictionary/file.md +3 -100
  761. package/docs/ja/dictionary/function_fetching.md +3 -103
  762. package/docs/ja/dictionary/gender.md +2 -140
  763. package/docs/ja/dictionary/insertion.md +3 -57
  764. package/docs/ja/dictionary/nesting.md +3 -121
  765. package/docs/ja/dictionary/translation.md +6 -160
  766. package/docs/ja/interest_of_intlayer.md +2 -58
  767. package/docs/ja/intlayer_CMS.md +3 -227
  768. package/docs/ja/intlayer_visual_editor.md +1 -75
  769. package/docs/ja/intlayer_with_adonisjs.md +3 -109
  770. package/docs/ja/intlayer_with_analog.md +21 -41
  771. package/docs/ja/intlayer_with_angular.md +15 -41
  772. package/docs/ja/intlayer_with_astro.md +184 -53
  773. package/docs/ja/intlayer_with_astro_lit.md +618 -0
  774. package/docs/ja/intlayer_with_astro_preact.md +572 -0
  775. package/docs/ja/intlayer_with_astro_react.md +565 -0
  776. package/docs/ja/intlayer_with_astro_solid.md +565 -0
  777. package/docs/ja/intlayer_with_astro_svelte.md +569 -0
  778. package/docs/ja/intlayer_with_astro_vanilla.md +546 -0
  779. package/docs/ja/intlayer_with_astro_vue.md +587 -0
  780. package/docs/ja/intlayer_with_create_react_app.md +7 -387
  781. package/docs/ja/intlayer_with_express.md +5 -182
  782. package/docs/ja/intlayer_with_fastify.md +5 -193
  783. package/docs/ja/intlayer_with_hono.md +2 -2
  784. package/docs/ja/intlayer_with_lynx+react.md +2 -116
  785. package/docs/ja/intlayer_with_nestjs.md +3 -31
  786. package/docs/ja/intlayer_with_nextjs_14.md +54 -682
  787. package/docs/ja/intlayer_with_nextjs_15.md +56 -836
  788. package/docs/ja/intlayer_with_nextjs_16.md +40 -883
  789. package/docs/ja/intlayer_with_nextjs_compiler.md +2 -62
  790. package/docs/ja/intlayer_with_nextjs_no_locale_path.md +12 -551
  791. package/docs/ja/intlayer_with_nextjs_page_router.md +73 -745
  792. package/docs/ja/intlayer_with_nuxt.md +16 -99
  793. package/docs/ja/intlayer_with_react_native+expo.md +31 -287
  794. package/docs/ja/intlayer_with_react_router_v7.md +32 -61
  795. package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +15 -91
  796. package/docs/ja/intlayer_with_storybook.md +1 -37
  797. package/docs/ja/intlayer_with_svelte_kit.md +27 -69
  798. package/docs/ja/intlayer_with_tanstack+solid.md +14 -70
  799. package/docs/ja/intlayer_with_tanstack.md +13 -1
  800. package/docs/ja/intlayer_with_vanilla.md +28 -108
  801. package/docs/ja/intlayer_with_vite+lit.md +98 -162
  802. package/docs/ja/intlayer_with_vite+preact.md +88 -62
  803. package/docs/ja/intlayer_with_vite+react.md +88 -62
  804. package/docs/ja/intlayer_with_vite+react_compiler.md +87 -1
  805. package/docs/ja/intlayer_with_vite+solid.md +80 -161
  806. package/docs/ja/intlayer_with_vite+svelte.md +104 -132
  807. package/docs/ja/intlayer_with_vite+vanilla.md +105 -155
  808. package/docs/ja/intlayer_with_vite+vue.md +92 -264
  809. package/docs/ja/introduction.md +2 -59
  810. package/docs/ja/packages/express-intlayer/t.md +6 -188
  811. package/docs/ja/packages/hono-intlayer/t.md +1 -45
  812. package/docs/ja/packages/intlayer/getConfiguration.md +2 -54
  813. package/docs/ja/packages/intlayer/getEnumeration.md +2 -60
  814. package/docs/ja/packages/intlayer/getHTMLTextDir.md +2 -39
  815. package/docs/ja/packages/intlayer/getLocaleLang.md +1 -19
  816. package/docs/ja/packages/intlayer/getLocaleName.md +1 -43
  817. package/docs/ja/packages/intlayer/getLocalizedUrl.md +2 -45
  818. package/docs/ja/packages/intlayer/getMultilingualUrls.md +2 -62
  819. package/docs/ja/packages/intlayer/getPathWithoutLocale.md +1 -19
  820. package/docs/ja/packages/intlayer/getPrefix.md +1 -12
  821. package/docs/ja/packages/intlayer/getTranslation.md +3 -87
  822. package/docs/ja/packages/intlayer/getTranslationContent.md +3 -87
  823. package/docs/ja/packages/next-intlayer/t.md +5 -137
  824. package/docs/ja/packages/next-intlayer/useDictionary.md +3 -118
  825. package/docs/ja/packages/next-intlayer/useIntlayer.md +3 -117
  826. package/docs/ja/packages/next-intlayer/useLocale.md +1 -51
  827. package/docs/ja/packages/react-intlayer/t.md +4 -109
  828. package/docs/ja/packages/react-intlayer/useDictionary.md +3 -115
  829. package/docs/ja/packages/react-intlayer/useI18n.md +4 -107
  830. package/docs/ja/packages/react-intlayer/useIntlayer.md +2 -95
  831. package/docs/ja/packages/react-intlayer/useLocale.md +3 -103
  832. package/docs/ja/per_locale_file.md +3 -34
  833. package/docs/ko/cli/index.md +1 -1
  834. package/docs/ko/dictionary/condition.md +2 -116
  835. package/docs/ko/dictionary/content_file.md +2 -201
  836. package/docs/ko/dictionary/enumeration.md +2 -116
  837. package/docs/ko/dictionary/file.md +3 -100
  838. package/docs/ko/dictionary/function_fetching.md +3 -103
  839. package/docs/ko/dictionary/gender.md +2 -140
  840. package/docs/ko/dictionary/insertion.md +3 -57
  841. package/docs/ko/dictionary/nesting.md +3 -121
  842. package/docs/ko/dictionary/translation.md +5 -161
  843. package/docs/ko/interest_of_intlayer.md +2 -60
  844. package/docs/ko/intlayer_CMS.md +3 -227
  845. package/docs/ko/intlayer_visual_editor.md +1 -72
  846. package/docs/ko/intlayer_with_adonisjs.md +3 -109
  847. package/docs/ko/intlayer_with_analog.md +21 -41
  848. package/docs/ko/intlayer_with_angular.md +15 -41
  849. package/docs/ko/intlayer_with_astro.md +169 -58
  850. package/docs/ko/intlayer_with_astro_lit.md +598 -0
  851. package/docs/ko/intlayer_with_astro_preact.md +552 -0
  852. package/docs/ko/intlayer_with_astro_react.md +545 -0
  853. package/docs/ko/intlayer_with_astro_solid.md +545 -0
  854. package/docs/ko/intlayer_with_astro_svelte.md +549 -0
  855. package/docs/ko/intlayer_with_astro_vanilla.md +526 -0
  856. package/docs/ko/intlayer_with_astro_vue.md +567 -0
  857. package/docs/ko/intlayer_with_create_react_app.md +38 -693
  858. package/docs/ko/intlayer_with_express.md +5 -182
  859. package/docs/ko/intlayer_with_fastify.md +5 -193
  860. package/docs/ko/intlayer_with_hono.md +2 -2
  861. package/docs/ko/intlayer_with_lynx+react.md +2 -116
  862. package/docs/ko/intlayer_with_nestjs.md +3 -31
  863. package/docs/ko/intlayer_with_nextjs_14.md +55 -693
  864. package/docs/ko/intlayer_with_nextjs_15.md +73 -859
  865. package/docs/ko/intlayer_with_nextjs_16.md +40 -883
  866. package/docs/ko/intlayer_with_nextjs_compiler.md +2 -62
  867. package/docs/ko/intlayer_with_nextjs_no_locale_path.md +13 -548
  868. package/docs/ko/intlayer_with_nextjs_page_router.md +66 -652
  869. package/docs/ko/intlayer_with_nuxt.md +16 -99
  870. package/docs/ko/intlayer_with_react_native+expo.md +31 -286
  871. package/docs/ko/intlayer_with_react_router_v7.md +15 -91
  872. package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +15 -91
  873. package/docs/ko/intlayer_with_storybook.md +1 -37
  874. package/docs/ko/intlayer_with_svelte_kit.md +29 -71
  875. package/docs/ko/intlayer_with_tanstack+solid.md +14 -70
  876. package/docs/ko/intlayer_with_tanstack.md +13 -1
  877. package/docs/ko/intlayer_with_vanilla.md +28 -108
  878. package/docs/ko/intlayer_with_vite+lit.md +98 -162
  879. package/docs/ko/intlayer_with_vite+preact.md +102 -711
  880. package/docs/ko/intlayer_with_vite+react.md +123 -805
  881. package/docs/ko/intlayer_with_vite+react_compiler.md +87 -1
  882. package/docs/ko/intlayer_with_vite+solid.md +79 -151
  883. package/docs/ko/intlayer_with_vite+svelte.md +104 -130
  884. package/docs/ko/intlayer_with_vite+vanilla.md +105 -155
  885. package/docs/ko/intlayer_with_vite+vue.md +92 -269
  886. package/docs/ko/introduction.md +2 -60
  887. package/docs/ko/packages/express-intlayer/t.md +5 -158
  888. package/docs/ko/packages/hono-intlayer/t.md +1 -45
  889. package/docs/ko/packages/intlayer/getConfiguration.md +2 -54
  890. package/docs/ko/packages/intlayer/getEnumeration.md +2 -60
  891. package/docs/ko/packages/intlayer/getHTMLTextDir.md +2 -38
  892. package/docs/ko/packages/intlayer/getLocaleLang.md +1 -19
  893. package/docs/ko/packages/intlayer/getLocaleName.md +1 -43
  894. package/docs/ko/packages/intlayer/getLocalizedUrl.md +2 -45
  895. package/docs/ko/packages/intlayer/getMultilingualUrls.md +2 -64
  896. package/docs/ko/packages/intlayer/getPathWithoutLocale.md +1 -19
  897. package/docs/ko/packages/intlayer/getPrefix.md +1 -12
  898. package/docs/ko/packages/intlayer/getTranslation.md +3 -87
  899. package/docs/ko/packages/intlayer/getTranslationContent.md +3 -87
  900. package/docs/ko/packages/next-intlayer/t.md +5 -139
  901. package/docs/ko/packages/next-intlayer/useDictionary.md +3 -118
  902. package/docs/ko/packages/next-intlayer/useIntlayer.md +3 -117
  903. package/docs/ko/packages/next-intlayer/useLocale.md +1 -51
  904. package/docs/ko/packages/react-intlayer/t.md +5 -133
  905. package/docs/ko/packages/react-intlayer/useDictionary.md +3 -113
  906. package/docs/ko/packages/react-intlayer/useI18n.md +4 -107
  907. package/docs/ko/packages/react-intlayer/useIntlayer.md +3 -109
  908. package/docs/ko/packages/react-intlayer/useLocale.md +3 -103
  909. package/docs/ko/per_locale_file.md +3 -34
  910. package/docs/nl/intlayer_with_fastify.md +5 -193
  911. package/docs/nl/intlayer_with_hono.md +5 -158
  912. package/docs/nl/intlayer_with_storybook.md +1 -37
  913. package/docs/nl/intlayer_with_vanilla.md +28 -108
  914. package/docs/nl/intlayer_with_vite+lit.md +98 -156
  915. package/docs/nl/intlayer_with_vite+vanilla.md +105 -155
  916. package/docs/nl/introduction.md +2 -58
  917. package/docs/pl/dictionary/condition.md +2 -111
  918. package/docs/pl/dictionary/content_file.md +2 -205
  919. package/docs/pl/dictionary/enumeration.md +2 -116
  920. package/docs/pl/dictionary/file.md +3 -102
  921. package/docs/pl/dictionary/function_fetching.md +3 -103
  922. package/docs/pl/dictionary/gender.md +2 -141
  923. package/docs/pl/dictionary/insertion.md +3 -57
  924. package/docs/pl/dictionary/nesting.md +3 -121
  925. package/docs/pl/dictionary/translation.md +4 -147
  926. package/docs/pl/interest_of_intlayer.md +2 -58
  927. package/docs/pl/intlayer_CMS.md +3 -227
  928. package/docs/pl/intlayer_visual_editor.md +1 -72
  929. package/docs/pl/intlayer_with_adonisjs.md +3 -109
  930. package/docs/pl/intlayer_with_analog.md +21 -41
  931. package/docs/pl/intlayer_with_angular.md +15 -41
  932. package/docs/pl/intlayer_with_astro.md +179 -89
  933. package/docs/pl/intlayer_with_astro_lit.md +615 -0
  934. package/docs/pl/intlayer_with_astro_preact.md +564 -0
  935. package/docs/pl/intlayer_with_astro_react.md +562 -0
  936. package/docs/pl/intlayer_with_astro_solid.md +562 -0
  937. package/docs/pl/intlayer_with_astro_svelte.md +566 -0
  938. package/docs/pl/intlayer_with_astro_vanilla.md +543 -0
  939. package/docs/pl/intlayer_with_astro_vue.md +584 -0
  940. package/docs/pl/intlayer_with_create_react_app.md +39 -696
  941. package/docs/pl/intlayer_with_express.md +5 -180
  942. package/docs/pl/intlayer_with_fastify.md +5 -193
  943. package/docs/pl/intlayer_with_hono.md +2 -2
  944. package/docs/pl/intlayer_with_lynx+react.md +3 -109
  945. package/docs/pl/intlayer_with_nestjs.md +3 -31
  946. package/docs/pl/intlayer_with_nextjs_14.md +54 -789
  947. package/docs/pl/intlayer_with_nextjs_15.md +39 -843
  948. package/docs/pl/intlayer_with_nextjs_16.md +60 -903
  949. package/docs/pl/intlayer_with_nextjs_compiler.md +2 -62
  950. package/docs/pl/intlayer_with_nextjs_no_locale_path.md +11 -499
  951. package/docs/pl/intlayer_with_nextjs_page_router.md +69 -751
  952. package/docs/pl/intlayer_with_nuxt.md +16 -100
  953. package/docs/pl/intlayer_with_react_native+expo.md +31 -292
  954. package/docs/pl/intlayer_with_react_router_v7.md +15 -101
  955. package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +16 -94
  956. package/docs/pl/intlayer_with_storybook.md +1 -37
  957. package/docs/pl/intlayer_with_svelte_kit.md +29 -71
  958. package/docs/pl/intlayer_with_tanstack+solid.md +14 -70
  959. package/docs/pl/intlayer_with_tanstack.md +14 -62
  960. package/docs/pl/intlayer_with_vanilla.md +28 -108
  961. package/docs/pl/intlayer_with_vite+lit.md +98 -156
  962. package/docs/pl/intlayer_with_vite+preact.md +102 -711
  963. package/docs/pl/intlayer_with_vite+react.md +121 -840
  964. package/docs/pl/intlayer_with_vite+react_compiler.md +87 -1
  965. package/docs/pl/intlayer_with_vite+solid.md +79 -151
  966. package/docs/pl/intlayer_with_vite+svelte.md +104 -132
  967. package/docs/pl/intlayer_with_vite+vanilla.md +105 -155
  968. package/docs/pl/intlayer_with_vite+vue.md +92 -267
  969. package/docs/pl/introduction.md +2 -48
  970. package/docs/pl/packages/express-intlayer/t.md +6 -181
  971. package/docs/pl/packages/hono-intlayer/t.md +1 -45
  972. package/docs/pl/packages/intlayer/getConfiguration.md +2 -54
  973. package/docs/pl/packages/intlayer/getEnumeration.md +2 -60
  974. package/docs/pl/packages/intlayer/getHTMLTextDir.md +2 -38
  975. package/docs/pl/packages/intlayer/getLocaleLang.md +1 -19
  976. package/docs/pl/packages/intlayer/getLocaleName.md +1 -43
  977. package/docs/pl/packages/intlayer/getLocalizedUrl.md +2 -59
  978. package/docs/pl/packages/intlayer/getMultilingualUrls.md +2 -62
  979. package/docs/pl/packages/intlayer/getPathWithoutLocale.md +1 -19
  980. package/docs/pl/packages/intlayer/getPrefix.md +1 -19
  981. package/docs/pl/packages/intlayer/getTranslation.md +3 -87
  982. package/docs/pl/packages/intlayer/getTranslationContent.md +3 -87
  983. package/docs/pl/packages/next-intlayer/t.md +5 -137
  984. package/docs/pl/packages/next-intlayer/useDictionary.md +3 -120
  985. package/docs/pl/packages/next-intlayer/useIntlayer.md +2 -82
  986. package/docs/pl/packages/next-intlayer/useLocale.md +1 -51
  987. package/docs/pl/packages/react-intlayer/t.md +4 -109
  988. package/docs/pl/packages/react-intlayer/useDictionary.md +3 -115
  989. package/docs/pl/packages/react-intlayer/useI18n.md +3 -91
  990. package/docs/pl/packages/react-intlayer/useIntlayer.md +3 -114
  991. package/docs/pl/packages/react-intlayer/useLocale.md +3 -103
  992. package/docs/pl/per_locale_file.md +3 -34
  993. package/docs/pt/dictionary/condition.md +2 -116
  994. package/docs/pt/dictionary/content_file.md +2 -202
  995. package/docs/pt/dictionary/enumeration.md +2 -116
  996. package/docs/pt/dictionary/file.md +3 -101
  997. package/docs/pt/dictionary/function_fetching.md +3 -103
  998. package/docs/pt/dictionary/gender.md +2 -140
  999. package/docs/pt/dictionary/insertion.md +3 -57
  1000. package/docs/pt/dictionary/nesting.md +3 -121
  1001. package/docs/pt/dictionary/translation.md +4 -146
  1002. package/docs/pt/interest_of_intlayer.md +2 -60
  1003. package/docs/pt/intlayer_CMS.md +3 -227
  1004. package/docs/pt/intlayer_visual_editor.md +1 -72
  1005. package/docs/pt/intlayer_with_adonisjs.md +3 -109
  1006. package/docs/pt/intlayer_with_analog.md +21 -41
  1007. package/docs/pt/intlayer_with_angular.md +15 -41
  1008. package/docs/pt/intlayer_with_astro.md +184 -58
  1009. package/docs/pt/intlayer_with_astro_lit.md +597 -0
  1010. package/docs/pt/intlayer_with_astro_preact.md +564 -0
  1011. package/docs/pt/intlayer_with_astro_react.md +562 -0
  1012. package/docs/pt/intlayer_with_astro_solid.md +562 -0
  1013. package/docs/pt/intlayer_with_astro_svelte.md +566 -0
  1014. package/docs/pt/intlayer_with_astro_vanilla.md +543 -0
  1015. package/docs/pt/intlayer_with_astro_vue.md +584 -0
  1016. package/docs/pt/intlayer_with_create_react_app.md +53 -654
  1017. package/docs/pt/intlayer_with_express.md +5 -183
  1018. package/docs/pt/intlayer_with_fastify.md +5 -193
  1019. package/docs/pt/intlayer_with_hono.md +2 -2
  1020. package/docs/pt/intlayer_with_lynx+react.md +2 -116
  1021. package/docs/pt/intlayer_with_nestjs.md +3 -33
  1022. package/docs/pt/intlayer_with_nextjs_14.md +51 -575
  1023. package/docs/pt/intlayer_with_nextjs_15.md +56 -819
  1024. package/docs/pt/intlayer_with_nextjs_16.md +40 -883
  1025. package/docs/pt/intlayer_with_nextjs_compiler.md +2 -62
  1026. package/docs/pt/intlayer_with_nextjs_no_locale_path.md +11 -499
  1027. package/docs/pt/intlayer_with_nextjs_page_router.md +87 -707
  1028. package/docs/pt/intlayer_with_nuxt.md +16 -98
  1029. package/docs/pt/intlayer_with_react_native+expo.md +31 -283
  1030. package/docs/pt/intlayer_with_react_router_v7.md +3 -98
  1031. package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +15 -91
  1032. package/docs/pt/intlayer_with_storybook.md +1 -37
  1033. package/docs/pt/intlayer_with_svelte_kit.md +29 -71
  1034. package/docs/pt/intlayer_with_tanstack+solid.md +14 -70
  1035. package/docs/pt/intlayer_with_tanstack.md +14 -62
  1036. package/docs/pt/intlayer_with_vanilla.md +28 -108
  1037. package/docs/pt/intlayer_with_vite+lit.md +98 -162
  1038. package/docs/pt/intlayer_with_vite+preact.md +100 -709
  1039. package/docs/pt/intlayer_with_vite+react.md +104 -797
  1040. package/docs/pt/intlayer_with_vite+react_compiler.md +87 -1
  1041. package/docs/pt/intlayer_with_vite+solid.md +79 -149
  1042. package/docs/pt/intlayer_with_vite+svelte.md +104 -132
  1043. package/docs/pt/intlayer_with_vite+vanilla.md +105 -155
  1044. package/docs/pt/intlayer_with_vite+vue.md +80 -263
  1045. package/docs/pt/introduction.md +2 -59
  1046. package/docs/pt/packages/express-intlayer/t.md +6 -181
  1047. package/docs/pt/packages/hono-intlayer/t.md +1 -45
  1048. package/docs/pt/packages/intlayer/getConfiguration.md +2 -54
  1049. package/docs/pt/packages/intlayer/getEnumeration.md +2 -60
  1050. package/docs/pt/packages/intlayer/getHTMLTextDir.md +2 -38
  1051. package/docs/pt/packages/intlayer/getLocaleLang.md +1 -19
  1052. package/docs/pt/packages/intlayer/getLocaleName.md +1 -43
  1053. package/docs/pt/packages/intlayer/getLocalizedUrl.md +2 -45
  1054. package/docs/pt/packages/intlayer/getMultilingualUrls.md +2 -60
  1055. package/docs/pt/packages/intlayer/getPathWithoutLocale.md +1 -19
  1056. package/docs/pt/packages/intlayer/getPrefix.md +1 -19
  1057. package/docs/pt/packages/intlayer/getTranslation.md +3 -87
  1058. package/docs/pt/packages/intlayer/getTranslationContent.md +3 -87
  1059. package/docs/pt/packages/next-intlayer/t.md +5 -137
  1060. package/docs/pt/packages/next-intlayer/useDictionary.md +3 -118
  1061. package/docs/pt/packages/next-intlayer/useIntlayer.md +3 -119
  1062. package/docs/pt/packages/next-intlayer/useLocale.md +1 -51
  1063. package/docs/pt/packages/react-intlayer/t.md +4 -109
  1064. package/docs/pt/packages/react-intlayer/useDictionary.md +3 -113
  1065. package/docs/pt/packages/react-intlayer/useI18n.md +4 -107
  1066. package/docs/pt/packages/react-intlayer/useIntlayer.md +3 -114
  1067. package/docs/pt/packages/react-intlayer/useLocale.md +3 -103
  1068. package/docs/pt/per_locale_file.md +3 -35
  1069. package/docs/ru/dictionary/condition.md +2 -116
  1070. package/docs/ru/dictionary/content_file.md +2 -204
  1071. package/docs/ru/dictionary/enumeration.md +2 -116
  1072. package/docs/ru/dictionary/file.md +3 -102
  1073. package/docs/ru/dictionary/function_fetching.md +3 -103
  1074. package/docs/ru/dictionary/gender.md +2 -140
  1075. package/docs/ru/dictionary/insertion.md +3 -57
  1076. package/docs/ru/dictionary/nesting.md +3 -121
  1077. package/docs/ru/dictionary/translation.md +4 -147
  1078. package/docs/ru/interest_of_intlayer.md +2 -60
  1079. package/docs/ru/intlayer_CMS.md +3 -225
  1080. package/docs/ru/intlayer_visual_editor.md +1 -72
  1081. package/docs/ru/intlayer_with_adonisjs.md +3 -109
  1082. package/docs/ru/intlayer_with_analog.md +21 -41
  1083. package/docs/ru/intlayer_with_angular.md +15 -41
  1084. package/docs/ru/intlayer_with_astro.md +172 -45
  1085. package/docs/ru/intlayer_with_astro_lit.md +614 -0
  1086. package/docs/ru/intlayer_with_astro_preact.md +568 -0
  1087. package/docs/ru/intlayer_with_astro_react.md +561 -0
  1088. package/docs/ru/intlayer_with_astro_solid.md +561 -0
  1089. package/docs/ru/intlayer_with_astro_svelte.md +565 -0
  1090. package/docs/ru/intlayer_with_astro_vanilla.md +542 -0
  1091. package/docs/ru/intlayer_with_astro_vue.md +583 -0
  1092. package/docs/ru/intlayer_with_create_react_app.md +9 -677
  1093. package/docs/ru/intlayer_with_express.md +4 -112
  1094. package/docs/ru/intlayer_with_fastify.md +5 -193
  1095. package/docs/ru/intlayer_with_hono.md +2 -2
  1096. package/docs/ru/intlayer_with_lynx+react.md +2 -116
  1097. package/docs/ru/intlayer_with_nestjs.md +3 -33
  1098. package/docs/ru/intlayer_with_nextjs_14.md +50 -534
  1099. package/docs/ru/intlayer_with_nextjs_15.md +60 -834
  1100. package/docs/ru/intlayer_with_nextjs_16.md +60 -903
  1101. package/docs/ru/intlayer_with_nextjs_compiler.md +2 -62
  1102. package/docs/ru/intlayer_with_nextjs_no_locale_path.md +11 -542
  1103. package/docs/ru/intlayer_with_nextjs_page_router.md +38 -610
  1104. package/docs/ru/intlayer_with_nuxt.md +16 -100
  1105. package/docs/ru/intlayer_with_react_native+expo.md +31 -286
  1106. package/docs/ru/intlayer_with_react_router_v7.md +15 -91
  1107. package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +15 -91
  1108. package/docs/ru/intlayer_with_storybook.md +1 -37
  1109. package/docs/ru/intlayer_with_svelte_kit.md +29 -71
  1110. package/docs/ru/intlayer_with_tanstack+solid.md +14 -70
  1111. package/docs/ru/intlayer_with_tanstack.md +14 -62
  1112. package/docs/ru/intlayer_with_vanilla.md +28 -108
  1113. package/docs/ru/intlayer_with_vite+lit.md +98 -162
  1114. package/docs/ru/intlayer_with_vite+preact.md +102 -711
  1115. package/docs/ru/intlayer_with_vite+react.md +111 -807
  1116. package/docs/ru/intlayer_with_vite+react_compiler.md +87 -1
  1117. package/docs/ru/intlayer_with_vite+solid.md +79 -153
  1118. package/docs/ru/intlayer_with_vite+svelte.md +104 -132
  1119. package/docs/ru/intlayer_with_vite+vanilla.md +105 -155
  1120. package/docs/ru/intlayer_with_vite+vue.md +92 -266
  1121. package/docs/ru/introduction.md +2 -62
  1122. package/docs/ru/packages/express-intlayer/t.md +6 -183
  1123. package/docs/ru/packages/hono-intlayer/t.md +1 -45
  1124. package/docs/ru/packages/intlayer/getConfiguration.md +2 -54
  1125. package/docs/ru/packages/intlayer/getEnumeration.md +2 -60
  1126. package/docs/ru/packages/intlayer/getHTMLTextDir.md +2 -38
  1127. package/docs/ru/packages/intlayer/getLocaleLang.md +1 -19
  1128. package/docs/ru/packages/intlayer/getLocaleName.md +1 -43
  1129. package/docs/ru/packages/intlayer/getLocalizedUrl.md +2 -45
  1130. package/docs/ru/packages/intlayer/getMultilingualUrls.md +2 -62
  1131. package/docs/ru/packages/intlayer/getPathWithoutLocale.md +1 -19
  1132. package/docs/ru/packages/intlayer/getPrefix.md +1 -15
  1133. package/docs/ru/packages/intlayer/getTranslation.md +3 -87
  1134. package/docs/ru/packages/intlayer/getTranslationContent.md +3 -87
  1135. package/docs/ru/packages/next-intlayer/t.md +5 -139
  1136. package/docs/ru/packages/next-intlayer/useDictionary.md +3 -119
  1137. package/docs/ru/packages/next-intlayer/useIntlayer.md +3 -120
  1138. package/docs/ru/packages/next-intlayer/useLocale.md +1 -51
  1139. package/docs/ru/packages/react-intlayer/t.md +4 -111
  1140. package/docs/ru/packages/react-intlayer/useDictionary.md +3 -115
  1141. package/docs/ru/packages/react-intlayer/useI18n.md +4 -107
  1142. package/docs/ru/packages/react-intlayer/useIntlayer.md +3 -118
  1143. package/docs/ru/packages/react-intlayer/useLocale.md +2 -58
  1144. package/docs/ru/per_locale_file.md +3 -35
  1145. package/docs/tr/dictionary/condition.md +2 -116
  1146. package/docs/tr/dictionary/content_file.md +2 -201
  1147. package/docs/tr/dictionary/enumeration.md +2 -116
  1148. package/docs/tr/dictionary/file.md +3 -100
  1149. package/docs/tr/dictionary/function_fetching.md +3 -103
  1150. package/docs/tr/dictionary/gender.md +2 -140
  1151. package/docs/tr/dictionary/insertion.md +3 -57
  1152. package/docs/tr/dictionary/nesting.md +3 -121
  1153. package/docs/tr/dictionary/translation.md +4 -119
  1154. package/docs/tr/interest_of_intlayer.md +2 -58
  1155. package/docs/tr/intlayer_CMS.md +3 -227
  1156. package/docs/tr/intlayer_visual_editor.md +1 -72
  1157. package/docs/tr/intlayer_with_adonisjs.md +3 -109
  1158. package/docs/tr/intlayer_with_analog.md +21 -41
  1159. package/docs/tr/intlayer_with_angular.md +15 -41
  1160. package/docs/tr/intlayer_with_astro.md +187 -61
  1161. package/docs/tr/intlayer_with_astro_lit.md +615 -0
  1162. package/docs/tr/intlayer_with_astro_preact.md +564 -0
  1163. package/docs/tr/intlayer_with_astro_react.md +562 -0
  1164. package/docs/tr/intlayer_with_astro_solid.md +562 -0
  1165. package/docs/tr/intlayer_with_astro_svelte.md +566 -0
  1166. package/docs/tr/intlayer_with_astro_vanilla.md +543 -0
  1167. package/docs/tr/intlayer_with_astro_vue.md +584 -0
  1168. package/docs/tr/intlayer_with_create_react_app.md +33 -685
  1169. package/docs/tr/intlayer_with_express.md +5 -179
  1170. package/docs/tr/intlayer_with_fastify.md +5 -193
  1171. package/docs/tr/intlayer_with_hono.md +2 -2
  1172. package/docs/tr/intlayer_with_lynx+react.md +2 -108
  1173. package/docs/tr/intlayer_with_nestjs.md +3 -31
  1174. package/docs/tr/intlayer_with_nextjs_14.md +12 -431
  1175. package/docs/tr/intlayer_with_nextjs_15.md +59 -815
  1176. package/docs/tr/intlayer_with_nextjs_16.md +60 -903
  1177. package/docs/tr/intlayer_with_nextjs_compiler.md +2 -62
  1178. package/docs/tr/intlayer_with_nextjs_no_locale_path.md +11 -498
  1179. package/docs/tr/intlayer_with_nextjs_page_router.md +37 -622
  1180. package/docs/tr/intlayer_with_nuxt.md +16 -98
  1181. package/docs/tr/intlayer_with_react_native+expo.md +31 -265
  1182. package/docs/tr/intlayer_with_react_router_v7.md +15 -91
  1183. package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +15 -91
  1184. package/docs/tr/intlayer_with_storybook.md +1 -37
  1185. package/docs/tr/intlayer_with_svelte_kit.md +29 -71
  1186. package/docs/tr/intlayer_with_tanstack+solid.md +14 -70
  1187. package/docs/tr/intlayer_with_tanstack.md +14 -62
  1188. package/docs/tr/intlayer_with_vanilla.md +28 -108
  1189. package/docs/tr/intlayer_with_vite+lit.md +98 -156
  1190. package/docs/tr/intlayer_with_vite+preact.md +102 -711
  1191. package/docs/tr/intlayer_with_vite+react.md +107 -791
  1192. package/docs/tr/intlayer_with_vite+react_compiler.md +87 -1
  1193. package/docs/tr/intlayer_with_vite+solid.md +79 -149
  1194. package/docs/tr/intlayer_with_vite+svelte.md +104 -132
  1195. package/docs/tr/intlayer_with_vite+vanilla.md +105 -155
  1196. package/docs/tr/intlayer_with_vite+vue.md +92 -196
  1197. package/docs/tr/introduction.md +2 -58
  1198. package/docs/tr/packages/express-intlayer/t.md +6 -181
  1199. package/docs/tr/packages/hono-intlayer/t.md +1 -45
  1200. package/docs/tr/packages/intlayer/getConfiguration.md +2 -54
  1201. package/docs/tr/packages/intlayer/getEnumeration.md +2 -60
  1202. package/docs/tr/packages/intlayer/getHTMLTextDir.md +2 -38
  1203. package/docs/tr/packages/intlayer/getLocaleLang.md +1 -19
  1204. package/docs/tr/packages/intlayer/getLocaleName.md +1 -43
  1205. package/docs/tr/packages/intlayer/getLocalizedUrl.md +3 -79
  1206. package/docs/tr/packages/intlayer/getMultilingualUrls.md +2 -60
  1207. package/docs/tr/packages/intlayer/getPathWithoutLocale.md +1 -19
  1208. package/docs/tr/packages/intlayer/getPrefix.md +1 -15
  1209. package/docs/tr/packages/intlayer/getTranslation.md +3 -87
  1210. package/docs/tr/packages/intlayer/getTranslationContent.md +3 -87
  1211. package/docs/tr/packages/next-intlayer/t.md +5 -137
  1212. package/docs/tr/packages/next-intlayer/useDictionary.md +3 -118
  1213. package/docs/tr/packages/next-intlayer/useIntlayer.md +3 -117
  1214. package/docs/tr/packages/next-intlayer/useLocale.md +1 -51
  1215. package/docs/tr/packages/react-intlayer/t.md +4 -109
  1216. package/docs/tr/packages/react-intlayer/useDictionary.md +3 -113
  1217. package/docs/tr/packages/react-intlayer/useI18n.md +8 -214
  1218. package/docs/tr/packages/react-intlayer/useIntlayer.md +3 -109
  1219. package/docs/tr/packages/react-intlayer/useLocale.md +3 -103
  1220. package/docs/tr/per_locale_file.md +3 -33
  1221. package/docs/uk/dictionary/condition.md +2 -116
  1222. package/docs/uk/dictionary/content_file.md +2 -218
  1223. package/docs/uk/dictionary/enumeration.md +2 -116
  1224. package/docs/uk/dictionary/file.md +3 -100
  1225. package/docs/uk/dictionary/function_fetching.md +3 -103
  1226. package/docs/uk/dictionary/gender.md +2 -140
  1227. package/docs/uk/dictionary/insertion.md +3 -57
  1228. package/docs/uk/dictionary/nesting.md +3 -121
  1229. package/docs/uk/dictionary/translation.md +4 -156
  1230. package/docs/uk/interest_of_intlayer.md +2 -60
  1231. package/docs/uk/intlayer_CMS.md +3 -227
  1232. package/docs/uk/intlayer_visual_editor.md +1 -72
  1233. package/docs/uk/intlayer_with_adonisjs.md +3 -109
  1234. package/docs/uk/intlayer_with_analog.md +21 -41
  1235. package/docs/uk/intlayer_with_angular.md +15 -41
  1236. package/docs/uk/intlayer_with_astro.md +187 -70
  1237. package/docs/uk/intlayer_with_astro_lit.md +615 -0
  1238. package/docs/uk/intlayer_with_astro_preact.md +564 -0
  1239. package/docs/uk/intlayer_with_astro_react.md +562 -0
  1240. package/docs/uk/intlayer_with_astro_solid.md +562 -0
  1241. package/docs/uk/intlayer_with_astro_svelte.md +566 -0
  1242. package/docs/uk/intlayer_with_astro_vanilla.md +543 -0
  1243. package/docs/uk/intlayer_with_astro_vue.md +584 -0
  1244. package/docs/uk/intlayer_with_create_react_app.md +39 -697
  1245. package/docs/uk/intlayer_with_express.md +5 -184
  1246. package/docs/uk/intlayer_with_fastify.md +5 -193
  1247. package/docs/uk/intlayer_with_hono.md +2 -2
  1248. package/docs/uk/intlayer_with_lynx+react.md +3 -118
  1249. package/docs/uk/intlayer_with_nestjs.md +3 -31
  1250. package/docs/uk/intlayer_with_nextjs_14.md +54 -797
  1251. package/docs/uk/intlayer_with_nextjs_15.md +42 -708
  1252. package/docs/uk/intlayer_with_nextjs_16.md +60 -903
  1253. package/docs/uk/intlayer_with_nextjs_compiler.md +2 -62
  1254. package/docs/uk/intlayer_with_nextjs_no_locale_path.md +11 -499
  1255. package/docs/uk/intlayer_with_nextjs_page_router.md +37 -659
  1256. package/docs/uk/intlayer_with_nuxt.md +16 -106
  1257. package/docs/uk/intlayer_with_react_native+expo.md +31 -293
  1258. package/docs/uk/intlayer_with_react_router_v7.md +15 -99
  1259. package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +15 -93
  1260. package/docs/uk/intlayer_with_storybook.md +1 -37
  1261. package/docs/uk/intlayer_with_svelte_kit.md +28 -70
  1262. package/docs/uk/intlayer_with_tanstack+solid.md +14 -70
  1263. package/docs/uk/intlayer_with_tanstack.md +14 -62
  1264. package/docs/uk/intlayer_with_vanilla.md +28 -108
  1265. package/docs/uk/intlayer_with_vite+lit.md +98 -156
  1266. package/docs/uk/intlayer_with_vite+preact.md +105 -714
  1267. package/docs/uk/intlayer_with_vite+react.md +113 -822
  1268. package/docs/uk/intlayer_with_vite+react_compiler.md +87 -1
  1269. package/docs/uk/intlayer_with_vite+solid.md +79 -151
  1270. package/docs/uk/intlayer_with_vite+svelte.md +104 -132
  1271. package/docs/uk/intlayer_with_vite+vanilla.md +105 -155
  1272. package/docs/uk/intlayer_with_vite+vue.md +92 -268
  1273. package/docs/uk/introduction.md +2 -61
  1274. package/docs/uk/packages/express-intlayer/t.md +6 -187
  1275. package/docs/uk/packages/hono-intlayer/t.md +1 -45
  1276. package/docs/uk/packages/intlayer/getConfiguration.md +2 -54
  1277. package/docs/uk/packages/intlayer/getEnumeration.md +2 -60
  1278. package/docs/uk/packages/intlayer/getHTMLTextDir.md +2 -38
  1279. package/docs/uk/packages/intlayer/getLocaleLang.md +1 -19
  1280. package/docs/uk/packages/intlayer/getLocaleName.md +1 -43
  1281. package/docs/uk/packages/intlayer/getLocalizedUrl.md +3 -71
  1282. package/docs/uk/packages/intlayer/getMultilingualUrls.md +3 -79
  1283. package/docs/uk/packages/intlayer/getPathWithoutLocale.md +1 -19
  1284. package/docs/uk/packages/intlayer/getPrefix.md +1 -15
  1285. package/docs/uk/packages/intlayer/getTranslation.md +3 -87
  1286. package/docs/uk/packages/intlayer/getTranslationContent.md +3 -87
  1287. package/docs/uk/packages/next-intlayer/t.md +5 -141
  1288. package/docs/uk/packages/next-intlayer/useDictionary.md +3 -126
  1289. package/docs/uk/packages/next-intlayer/useIntlayer.md +3 -117
  1290. package/docs/uk/packages/next-intlayer/useLocale.md +1 -51
  1291. package/docs/uk/packages/react-intlayer/t.md +4 -113
  1292. package/docs/uk/packages/react-intlayer/useDictionary.md +3 -118
  1293. package/docs/uk/packages/react-intlayer/useI18n.md +4 -107
  1294. package/docs/uk/packages/react-intlayer/useIntlayer.md +3 -109
  1295. package/docs/uk/packages/react-intlayer/useLocale.md +3 -103
  1296. package/docs/uk/per_locale_file.md +3 -34
  1297. package/docs/ur/intlayer_with_fastify.md +5 -193
  1298. package/docs/ur/intlayer_with_hono.md +5 -158
  1299. package/docs/ur/intlayer_with_storybook.md +1 -37
  1300. package/docs/ur/intlayer_with_vanilla.md +28 -108
  1301. package/docs/ur/intlayer_with_vite+lit.md +98 -156
  1302. package/docs/ur/intlayer_with_vite+vanilla.md +105 -155
  1303. package/docs/ur/introduction.md +2 -58
  1304. package/docs/vi/dictionary/condition.md +2 -116
  1305. package/docs/vi/dictionary/content_file.md +2 -200
  1306. package/docs/vi/dictionary/enumeration.md +2 -116
  1307. package/docs/vi/dictionary/file.md +3 -102
  1308. package/docs/vi/dictionary/function_fetching.md +3 -103
  1309. package/docs/vi/dictionary/gender.md +2 -140
  1310. package/docs/vi/dictionary/insertion.md +3 -57
  1311. package/docs/vi/dictionary/nesting.md +3 -121
  1312. package/docs/vi/dictionary/translation.md +4 -146
  1313. package/docs/vi/interest_of_intlayer.md +2 -60
  1314. package/docs/vi/intlayer_CMS.md +3 -227
  1315. package/docs/vi/intlayer_visual_editor.md +1 -72
  1316. package/docs/vi/intlayer_with_adonisjs.md +3 -109
  1317. package/docs/vi/intlayer_with_analog.md +21 -41
  1318. package/docs/vi/intlayer_with_angular.md +15 -41
  1319. package/docs/vi/intlayer_with_astro.md +184 -66
  1320. package/docs/vi/intlayer_with_astro_lit.md +615 -0
  1321. package/docs/vi/intlayer_with_astro_preact.md +564 -0
  1322. package/docs/vi/intlayer_with_astro_react.md +562 -0
  1323. package/docs/vi/intlayer_with_astro_solid.md +562 -0
  1324. package/docs/vi/intlayer_with_astro_svelte.md +566 -0
  1325. package/docs/vi/intlayer_with_astro_vanilla.md +543 -0
  1326. package/docs/vi/intlayer_with_astro_vue.md +584 -0
  1327. package/docs/vi/intlayer_with_create_react_app.md +39 -693
  1328. package/docs/vi/intlayer_with_express.md +5 -179
  1329. package/docs/vi/intlayer_with_fastify.md +5 -193
  1330. package/docs/vi/intlayer_with_hono.md +2 -2
  1331. package/docs/vi/intlayer_with_lynx+react.md +3 -111
  1332. package/docs/vi/intlayer_with_nestjs.md +3 -31
  1333. package/docs/vi/intlayer_with_nextjs_14.md +54 -785
  1334. package/docs/vi/intlayer_with_nextjs_15.md +34 -1171
  1335. package/docs/vi/intlayer_with_nextjs_16.md +60 -903
  1336. package/docs/vi/intlayer_with_nextjs_compiler.md +2 -62
  1337. package/docs/vi/intlayer_with_nextjs_no_locale_path.md +10 -516
  1338. package/docs/vi/intlayer_with_nextjs_page_router.md +69 -742
  1339. package/docs/vi/intlayer_with_nuxt.md +16 -98
  1340. package/docs/vi/intlayer_with_react_native+expo.md +31 -293
  1341. package/docs/vi/intlayer_with_react_router_v7.md +15 -101
  1342. package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +15 -101
  1343. package/docs/vi/intlayer_with_storybook.md +1 -37
  1344. package/docs/vi/intlayer_with_svelte_kit.md +29 -71
  1345. package/docs/vi/intlayer_with_tanstack+solid.md +14 -70
  1346. package/docs/vi/intlayer_with_tanstack.md +14 -62
  1347. package/docs/vi/intlayer_with_vanilla.md +28 -108
  1348. package/docs/vi/intlayer_with_vite+lit.md +98 -156
  1349. package/docs/vi/intlayer_with_vite+preact.md +103 -712
  1350. package/docs/vi/intlayer_with_vite+react.md +105 -787
  1351. package/docs/vi/intlayer_with_vite+react_compiler.md +87 -1
  1352. package/docs/vi/intlayer_with_vite+solid.md +79 -150
  1353. package/docs/vi/intlayer_with_vite+svelte.md +104 -132
  1354. package/docs/vi/intlayer_with_vite+vanilla.md +105 -155
  1355. package/docs/vi/intlayer_with_vite+vue.md +92 -252
  1356. package/docs/vi/introduction.md +2 -58
  1357. package/docs/vi/packages/express-intlayer/t.md +6 -181
  1358. package/docs/vi/packages/hono-intlayer/t.md +1 -45
  1359. package/docs/vi/packages/intlayer/getConfiguration.md +2 -54
  1360. package/docs/vi/packages/intlayer/getEnumeration.md +2 -62
  1361. package/docs/vi/packages/intlayer/getHTMLTextDir.md +2 -38
  1362. package/docs/vi/packages/intlayer/getLocaleLang.md +1 -19
  1363. package/docs/vi/packages/intlayer/getLocaleName.md +1 -54
  1364. package/docs/vi/packages/intlayer/getLocalizedUrl.md +2 -59
  1365. package/docs/vi/packages/intlayer/getMultilingualUrls.md +2 -62
  1366. package/docs/vi/packages/intlayer/getPathWithoutLocale.md +1 -19
  1367. package/docs/vi/packages/intlayer/getPrefix.md +1 -15
  1368. package/docs/vi/packages/intlayer/getTranslation.md +3 -98
  1369. package/docs/vi/packages/intlayer/getTranslationContent.md +3 -86
  1370. package/docs/vi/packages/next-intlayer/t.md +5 -137
  1371. package/docs/vi/packages/next-intlayer/useDictionary.md +3 -123
  1372. package/docs/vi/packages/next-intlayer/useIntlayer.md +3 -117
  1373. package/docs/vi/packages/next-intlayer/useLocale.md +1 -51
  1374. package/docs/vi/packages/react-intlayer/t.md +4 -111
  1375. package/docs/vi/packages/react-intlayer/useDictionary.md +3 -114
  1376. package/docs/vi/packages/react-intlayer/useI18n.md +5 -124
  1377. package/docs/vi/packages/react-intlayer/useIntlayer.md +3 -114
  1378. package/docs/vi/packages/react-intlayer/useLocale.md +3 -103
  1379. package/docs/vi/per_locale_file.md +3 -35
  1380. package/docs/zh/dictionary/condition.md +2 -116
  1381. package/docs/zh/dictionary/content_file.md +2 -201
  1382. package/docs/zh/dictionary/enumeration.md +2 -116
  1383. package/docs/zh/dictionary/file.md +3 -101
  1384. package/docs/zh/dictionary/function_fetching.md +3 -103
  1385. package/docs/zh/dictionary/gender.md +2 -140
  1386. package/docs/zh/dictionary/insertion.md +3 -57
  1387. package/docs/zh/dictionary/nesting.md +3 -121
  1388. package/docs/zh/dictionary/translation.md +5 -159
  1389. package/docs/zh/interest_of_intlayer.md +2 -59
  1390. package/docs/zh/intlayer_CMS.md +3 -224
  1391. package/docs/zh/intlayer_visual_editor.md +1 -72
  1392. package/docs/zh/intlayer_with_adonisjs.md +3 -109
  1393. package/docs/zh/intlayer_with_analog.md +21 -41
  1394. package/docs/zh/intlayer_with_angular.md +15 -41
  1395. package/docs/zh/intlayer_with_astro.md +169 -58
  1396. package/docs/zh/intlayer_with_astro_lit.md +598 -0
  1397. package/docs/zh/intlayer_with_astro_preact.md +547 -0
  1398. package/docs/zh/intlayer_with_astro_react.md +545 -0
  1399. package/docs/zh/intlayer_with_astro_solid.md +545 -0
  1400. package/docs/zh/intlayer_with_astro_svelte.md +549 -0
  1401. package/docs/zh/intlayer_with_astro_vanilla.md +526 -0
  1402. package/docs/zh/intlayer_with_astro_vue.md +567 -0
  1403. package/docs/zh/intlayer_with_create_react_app.md +33 -680
  1404. package/docs/zh/intlayer_with_express.md +5 -182
  1405. package/docs/zh/intlayer_with_fastify.md +5 -193
  1406. package/docs/zh/intlayer_with_hono.md +5 -158
  1407. package/docs/zh/intlayer_with_lynx+react.md +2 -116
  1408. package/docs/zh/intlayer_with_nestjs.md +3 -31
  1409. package/docs/zh/intlayer_with_nextjs_14.md +56 -597
  1410. package/docs/zh/intlayer_with_nextjs_15.md +56 -818
  1411. package/docs/zh/intlayer_with_nextjs_16.md +60 -903
  1412. package/docs/zh/intlayer_with_nextjs_compiler.md +2 -62
  1413. package/docs/zh/intlayer_with_nextjs_no_locale_path.md +11 -541
  1414. package/docs/zh/intlayer_with_nextjs_page_router.md +39 -636
  1415. package/docs/zh/intlayer_with_nuxt.md +16 -101
  1416. package/docs/zh/intlayer_with_react_native+expo.md +31 -286
  1417. package/docs/zh/intlayer_with_react_router_v7.md +15 -92
  1418. package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +15 -92
  1419. package/docs/zh/intlayer_with_storybook.md +1 -37
  1420. package/docs/zh/intlayer_with_svelte_kit.md +29 -71
  1421. package/docs/zh/intlayer_with_tanstack+solid.md +14 -70
  1422. package/docs/zh/intlayer_with_tanstack.md +14 -2
  1423. package/docs/zh/intlayer_with_vanilla.md +28 -108
  1424. package/docs/zh/intlayer_with_vite+lit.md +98 -162
  1425. package/docs/zh/intlayer_with_vite+preact.md +104 -713
  1426. package/docs/zh/intlayer_with_vite+react.md +106 -786
  1427. package/docs/zh/intlayer_with_vite+react_compiler.md +87 -1
  1428. package/docs/zh/intlayer_with_vite+solid.md +79 -151
  1429. package/docs/zh/intlayer_with_vite+svelte.md +104 -132
  1430. package/docs/zh/intlayer_with_vite+vanilla.md +105 -155
  1431. package/docs/zh/intlayer_with_vite+vue.md +92 -256
  1432. package/docs/zh/introduction.md +2 -59
  1433. package/docs/zh/packages/express-intlayer/t.md +6 -183
  1434. package/docs/zh/packages/hono-intlayer/t.md +2 -70
  1435. package/docs/zh/packages/intlayer/getConfiguration.md +2 -54
  1436. package/docs/zh/packages/intlayer/getEnumeration.md +2 -60
  1437. package/docs/zh/packages/intlayer/getHTMLTextDir.md +2 -39
  1438. package/docs/zh/packages/intlayer/getLocaleLang.md +1 -19
  1439. package/docs/zh/packages/intlayer/getLocaleName.md +1 -43
  1440. package/docs/zh/packages/intlayer/getLocalizedUrl.md +2 -45
  1441. package/docs/zh/packages/intlayer/getMultilingualUrls.md +2 -64
  1442. package/docs/zh/packages/intlayer/getPathWithoutLocale.md +1 -19
  1443. package/docs/zh/packages/intlayer/getPrefix.md +1 -12
  1444. package/docs/zh/packages/intlayer/getTranslation.md +3 -87
  1445. package/docs/zh/packages/intlayer/getTranslationContent.md +3 -87
  1446. package/docs/zh/packages/next-intlayer/t.md +5 -139
  1447. package/docs/zh/packages/next-intlayer/useDictionary.md +3 -120
  1448. package/docs/zh/packages/next-intlayer/useIntlayer.md +3 -119
  1449. package/docs/zh/packages/next-intlayer/useLocale.md +1 -51
  1450. package/docs/zh/packages/react-intlayer/t.md +4 -107
  1451. package/docs/zh/packages/react-intlayer/useDictionary.md +3 -116
  1452. package/docs/zh/packages/react-intlayer/useI18n.md +4 -107
  1453. package/docs/zh/packages/react-intlayer/useIntlayer.md +3 -109
  1454. package/docs/zh/packages/react-intlayer/useLocale.md +3 -103
  1455. package/docs/zh/per_locale_file.md +3 -35
  1456. package/package.json +6 -6
  1457. package/src/common.ts +2 -1
  1458. package/src/generated/docs.entry.ts +140 -0
@@ -15,6 +15,7 @@ slugs:
15
15
  - environment
16
16
  - nextjs
17
17
  applicationTemplate: https://github.com/aymericzip/intlayer-next-16-template
18
+ applicationShowcase: https://intlayer-next-16-template.vercel.app
18
19
  youtubeVideo: https://www.youtube.com/watch?v=e_PPG7PTqGU
19
20
  history:
20
21
  - version: 7.5.9
@@ -39,13 +40,24 @@ history:
39
40
  <Tab label="Mã nguồn" value="code">
40
41
 
41
42
  <iframe
42
- src="https://stackblitz.com/github/aymericzip/intlayer-next-16-template?embed=1&ctl=1&file=intlayer.config.ts"
43
+ src="https://ide.intlayer.org/aymericzip/intlayer-next-16-template?file=intlayer.config.ts"
43
44
  className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
44
45
  title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
45
46
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
46
47
  loading="lazy"
47
48
  />
48
49
 
50
+ </Tab>
51
+ <Tab label="Bản demo" value="demo">
52
+
53
+ <iframe
54
+ src="https://intlayer-next-16-template.vercel.app"
55
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
56
+ title="Bản demo — intlayer-next-16-template"
57
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
58
+ loading="lazy"
59
+ />
60
+
49
61
  </Tab>
50
62
  </Tabs>
51
63
 
@@ -139,7 +151,7 @@ bun x intlayer init
139
151
 
140
152
  Tạo một tệp cấu hình để định cấu hình các ngôn ngữ cho ứng dụng của bạn:
141
153
 
142
- ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
154
+ ```typescript fileName="intlayer.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
143
155
  import { Locales, type IntlayerConfig } from "intlayer";
144
156
 
145
157
  const config: IntlayerConfig = {
@@ -157,51 +169,13 @@ const config: IntlayerConfig = {
157
169
  export default config;
158
170
  ```
159
171
 
160
- ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
161
- import { Locales } from "intlayer";
162
-
163
- /** @type {import('intlayer').IntlayerConfig} */
164
- const config = {
165
- internationalization: {
166
- locales: [
167
- Locales.ENGLISH,
168
- Locales.FRENCH,
169
- Locales.SPANISH,
170
- // Các ngôn ngữ khác của bạn
171
- ],
172
- defaultLocale: Locales.ENGLISH,
173
- },
174
- };
175
-
176
- export default config;
177
- ```
178
-
179
- ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
180
- const { Locales } = require("intlayer");
181
-
182
- /** @type {import('intlayer').IntlayerConfig} */
183
- const config = {
184
- internationalization: {
185
- locales: [
186
- Locales.ENGLISH,
187
- Locales.FRENCH,
188
- Locales.SPANISH,
189
- // Các ngôn ngữ khác của bạn
190
- ],
191
- defaultLocale: Locales.ENGLISH,
192
- },
193
- };
194
-
195
- module.exports = config;
196
- ```
197
-
198
172
  > Thông qua tệp cấu hình này, bạn có thể thiết lập các URL được bản địa hóa, chuyển hướng proxy, tên cookie, vị trí và phần mở rộng của các khai báo nội dung, tắt nhật ký Intlayer trong bảng điều khiển và hơn thế nữa. Để biết danh sách đầy đủ các tham số có sẵn, hãy tham khảo [tài liệu cấu hình](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/configuration.md).
199
173
 
200
174
  ### Bước 3: Tích hợp Intlayer vào Cấu hình Next.js của Bạn
201
175
 
202
176
  Định cấu hình thiết lập Next.js của bạn để sử dụng Intlayer:
203
177
 
204
- ```typescript fileName="next.config.ts" codeFormat="typescript"
178
+ ```typescript fileName="next.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
205
179
  import type { NextConfig } from "next";
206
180
  import { withIntlayer } from "next-intlayer/server";
207
181
 
@@ -212,28 +186,6 @@ const nextConfig: NextConfig = {
212
186
  export default withIntlayer(nextConfig);
213
187
  ```
214
188
 
215
- ```typescript fileName="next.config.mjs" codeFormat="esm"
216
- import { withIntlayer } from "next-intlayer/server";
217
-
218
- /** @type {import('next').NextConfig} */
219
- const nextConfig = {
220
- /* tùy chọn cấu hình tại đây */
221
- };
222
-
223
- export default withIntlayer(nextConfig);
224
- ```
225
-
226
- ```typescript fileName="next.config.cjs" codeFormat="commonjs"
227
- const { withIntlayer } = require("next-intlayer/server");
228
-
229
- /** @type {import('next').NextConfig} */
230
- const nextConfig = {
231
- /* tùy chọn cấu hình tại đây */
232
- };
233
-
234
- module.exports = withIntlayer(nextConfig);
235
- ```
236
-
237
189
  > Plugin Next.js `withIntlayer()` được sử dụng để tích hợp Intlayer với Next.js. Nó đảm bảo việc xây dựng các tệp khai báo nội dung và giám sát chúng trong chế độ phát triển. Nó định nghĩa các biến môi trường Intlayer trong môi trường [Webpack](https://webpack.js.org/) hoặc [Turbopack](https://nextjs.org/docs/app/api-reference/turbopack). Ngoài ra, nó cung cấp các bí danh (aliases) để tối ưu hóa hiệu suất và đảm bảo khả năng tương thích với các thành phần máy chủ.
238
190
 
239
191
  > Hàm `withIntlayer()` là một hàm trả về promise. Nó cho phép chuẩn bị các từ điển intlayer trước khi quá trình xây dựng bắt đầu. Nếu bạn muốn sử dụng nó với các plugin khác, bạn có thể await nó. Ví dụ:
@@ -266,7 +218,7 @@ module.exports = withIntlayer(nextConfig);
266
218
 
267
219
  Xóa mọi thứ khỏi `RootLayout` và thay thế bằng mã sau:
268
220
 
269
- ```tsx {3} fileName="src/app/layout.tsx" codeFormat="typescript"
221
+ ```tsx {3} fileName="src/app/layout.tsx" codeFormat={["typescript", "esm"]}
270
222
  import type { PropsWithChildren, FC } from "react";
271
223
  import "./globals.css";
272
224
 
@@ -278,37 +230,12 @@ const RootLayout: FC<PropsWithChildren> = ({ children }) => (
278
230
  export default RootLayout;
279
231
  ```
280
232
 
281
- ```jsx {3} fileName="src/app/layout.mjx" codeFormat="esm"
282
- import "./globals.css";
283
-
284
- const RootLayout = ({ children }) => (
285
- // Bạn vẫn có thể bao bọc các con bằng các nhà cung cấp khác, như `next-themes`, `react-query`, `framer-motion`, v.v.
286
- <>{children}</>
287
- );
288
-
289
- export default RootLayout;
290
- ```
291
-
292
- ```jsx {1,8} fileName="src/app/layout.csx" codeFormat="commonjs"
293
- require("./globals.css");
294
-
295
- const RootLayout = ({ children }) => (
296
- // Bạn vẫn có thể bao bọc các con bằng các nhà cung cấp khác, như `next-themes`, `react-query`, `framer-motion`, v.v.
297
- <>{children}</>
298
- );
299
-
300
- module.exports = {
301
- default: RootLayout,
302
- generateStaticParams,
303
- };
304
- ```
305
-
306
233
  > Việc giữ cho thành phần `RootLayout` trống cho phép thiết lập các thuộc tính [`lang`](https://developer.mozilla.org/fr/docs/Web/HTML/Global_attributes/lang) và [`dir`](https://developer.mozilla.org/fr/docs/Web/HTML/Global_attributes/dir) cho thẻ `<html>`.
307
234
 
308
235
  Để triển khai định tuyến động, hãy cung cấp đường dẫn cho ngôn ngữ bằng cách thêm một bố cục mới trong thư mục `[locale]` của bạn:
309
236
 
310
- ```tsx fileName="src/app/[locale]/layout.tsx" codeFormat="typescript"
311
- import type { NextLayoutIntlayer } from "next-intlayer";
237
+ ```tsx fileName="src/app/[locale]/layout.tsx" codeFormat={["typescript", "esm"]}
238
+ import { type NextLayoutIntlayer, IntlayerClientProvider } from "next-intlayer";
312
239
  import { Inter } from "next/font/google";
313
240
  import { getHTMLTextDir } from "intlayer";
314
241
 
@@ -318,24 +245,11 @@ const LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {
318
245
  const { locale } = await params;
319
246
  return (
320
247
  <html lang={locale} dir={getHTMLTextDir(locale)}>
321
- <body className={inter.className}>{children}</body>
322
- </html>
323
- );
324
- };
325
-
326
- export default LocaleLayout;
327
- ```
328
-
329
- ```jsx fileName="src/app/[locale]/layout.mjx" codeFormat="esm"
330
- import { getHTMLTextDir } from "intlayer";
331
-
332
- const inter = Inter({ subsets: ["latin"] });
333
-
334
- const LocaleLayout = async ({ children, params: { locale } }) => {
335
- const { locale } = await params;
336
- return (
337
- <html lang={locale} dir={getHTMLTextDir(locale)}>
338
- <body className={inter.className}>{children}</body>
248
+ <body className={inter.className}>
249
+ <IntlayerClientProvider locale={locale}>
250
+ {children}
251
+ </IntlayerClientProvider>
252
+ </body>
339
253
  </html>
340
254
  );
341
255
  };
@@ -343,31 +257,13 @@ const LocaleLayout = async ({ children, params: { locale } }) => {
343
257
  export default LocaleLayout;
344
258
  ```
345
259
 
346
- ```jsx fileName="src/app/[locale]/layout.csx" codeFormat="commonjs"
347
- const { Inter } = require("next/font/google");
348
- const { getHTMLTextDir } = require("intlayer");
349
-
350
- const inter = Inter({ subsets: ["latin"] });
351
-
352
- const LocaleLayout = async ({ children, params: { locale } }) => {
353
- const { locale } = await params;
354
- return (
355
- <html lang={locale} dir={getHTMLTextDir(locale)}>
356
- <body className={inter.className}>{children}</body>
357
- </html>
358
- );
359
- };
360
-
361
- module.exports = LocaleLayout;
362
- ```
363
-
364
260
  > Đoạn đường dẫn `[locale]` được sử dụng để xác định ngôn ngữ. Ví dụ: `/en-US/about` sẽ tham chiếu đến `en-US` và `/fr/about` đến `fr`.
365
261
 
366
262
  > Ở giai đoạn này, bạn sẽ gặp lỗi: `Error: Missing <html> and <body> tags in the root layout.`. Điều này là bình thường vì tệp `/app/page.tsx` không còn được sử dụng và có thể bị xóa. Thay vào đó, đoạn đường dẫn `[locale]` sẽ kích hoạt trang `/app/[locale]/page.tsx`. Do đó, các trang sẽ có thể truy cập được qua các đường dẫn như `/en`, `/fr`, `/es` trong trình duyệt của bạn. Để đặt ngôn ngữ mặc định làm trang gốc, hãy tham khảo thiết lập `proxy` trong bước 7.
367
263
 
368
264
  Sau đó, triển khai hàm `generateStaticParams` trong Bố cục ứng dụng của bạn.
369
265
 
370
- ```tsx {1} fileName="src/app/[locale]/layout.tsx" codeFormat="typescript"
266
+ ```tsx {1} fileName="src/app/[locale]/layout.tsx" codeFormat={["typescript", "esm"]}
371
267
  export { generateStaticParams } from "next-intlayer"; // Dòng cần chèn
372
268
 
373
269
  const LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {
@@ -377,26 +273,6 @@ const LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {
377
273
  export default LocaleLayout;
378
274
  ```
379
275
 
380
- ```jsx {1} fileName="src/app/[locale]/layout.mjx" codeFormat="esm"
381
- export { generateStaticParams } from "next-intlayer"; // Dòng cần chèn
382
-
383
- const LocaleLayout = async ({ children, params: { locale } }) => {
384
- /*... Phần còn lại của mã*/
385
- };
386
-
387
- // ... Phần còn lại của mã
388
- ```
389
-
390
- ```jsx {1,7} fileName="src/app/[locale]/layout.csx" codeFormat="commonjs"
391
- const { generateStaticParams } = require("next-intlayer"); // Dòng cần chèn
392
-
393
- const LocaleLayout = async ({ children, params: { locale } }) => {
394
- /*... Phần còn lại của mã*/
395
- };
396
-
397
- module.exports = { default: LocaleLayout, generateStaticParams };
398
- ```
399
-
400
276
  > `generateStaticParams` đảm bảo rằng ứng dụng của bạn xây dựng trước các trang cần thiết cho tất cả các ngôn ngữ, giảm tính toán thời gian chạy và cải thiện trải nghiệm người dùng. Để biết thêm chi tiết, hãy tham khảo [tài liệu Next.js về generateStaticParams](https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic-rendering#generate-static-params).
401
277
 
402
278
  > Intlayer hoạt động với `export const dynamic = 'force-static';` để đảm bảo rằng các trang được xây dựng trước cho tất cả các ngôn ngữ.
@@ -405,7 +281,7 @@ module.exports = { default: LocaleLayout, generateStaticParams };
405
281
 
406
282
  Tạo và quản lý các khai báo nội dung của bạn để lưu trữ các bản dịch:
407
283
 
408
- ```tsx fileName="src/app/[locale]/page.content.ts" contentDeclarationFormat="typescript"
284
+ ```tsx fileName="src/app/[locale]/page.content.ts" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
409
285
  import { t, type Dictionary } from "intlayer";
410
286
 
411
287
  const pageContent = {
@@ -425,48 +301,6 @@ const pageContent = {
425
301
  export default pageContent;
426
302
  ```
427
303
 
428
- ```javascript fileName="src/app/[locale]/page.content.mjs" contentDeclarationFormat="esm"
429
- import { t } from "intlayer";
430
-
431
- /** @type {import('intlayer').Dictionary} */
432
- const pageContent = {
433
- key: "page",
434
- content: {
435
- getStarted: {
436
- main: t({
437
- en: "Get started by editing",
438
- fr: "Commencez par éditer",
439
- es: "Comience por editar",
440
- }),
441
- pageLink: "src/app/page.tsx",
442
- },
443
- },
444
- };
445
-
446
- export default pageContent;
447
- ```
448
-
449
- ```javascript fileName="src/app/[locale]/page.content.cjs" contentDeclarationFormat="commonjs"
450
- const { t } = require("intlayer");
451
-
452
- /** @type {import('intlayer').Dictionary} */
453
- const pageContent = {
454
- key: "page",
455
- content: {
456
- getStarted: {
457
- main: t({
458
- en: "Get started by editing",
459
- fr: "Commencez par éditer",
460
- es: "Comience por editar",
461
- }),
462
- pageLink: "src/app/page.tsx",
463
- },
464
- },
465
- };
466
-
467
- module.exports = pageContent;
468
- ```
469
-
470
304
  ```json fileName="src/app/[locale]/page.content.json" contentDeclarationFormat="json"
471
305
  {
472
306
  "$schema": "https://intlayer.org/schema.json",
@@ -493,11 +327,11 @@ module.exports = pageContent;
493
327
 
494
328
  Truy cập từ điển nội dung của bạn trong toàn bộ ứng dụng:
495
329
 
496
- ```tsx fileName="src/app/[locale]/page.tsx" codeFormat="typescript"
330
+ ```tsx fileName="src/app/[locale]/page.tsx" codeFormat={["typescript", "esm"]}
497
331
  import type { FC } from "react";
498
332
  import { ClientComponentExample } from "@components/ClientComponentExample";
499
333
  import { ServerComponentExample } from "@components/ServerComponentExample";
500
- import { type NextPageIntlayer, IntlayerClientProvider } from "next-intlayer";
334
+ import { type NextPageIntlayer } from "next-intlayer";
501
335
  import { IntlayerServerProvider, useIntlayer } from "next-intlayer/server";
502
336
 
503
337
  const PageContent: FC = () => {
@@ -519,44 +353,7 @@ const Page: NextPageIntlayer = async ({ params }) => {
519
353
  <PageContent />
520
354
  <ServerComponentExample />
521
355
 
522
- <IntlayerClientProvider locale={locale}>
523
- <ClientComponentExample />
524
- </IntlayerClientProvider>
525
- </IntlayerServerProvider>
526
- );
527
- };
528
-
529
- export default Page;
530
- ```
531
-
532
- ```jsx fileName="src/app/[locale]/page.mjx" codeFormat="esm"
533
- import { ClientComponentExample } from "@components/ClientComponentExample";
534
- import { ServerComponentExample } from "@components/ServerComponentExample";
535
- import { IntlayerClientProvider } from "next-intlayer";
536
- import { IntlayerServerProvider, useIntlayer } from "next-intlayer/server";
537
-
538
- const PageContent = () => {
539
- const content = useIntlayer("page");
540
-
541
- return (
542
- <>
543
- <p>{content.getStarted.main}</p>
544
- <code>{content.getStarted.pageLink}</code>
545
- </>
546
- );
547
- };
548
-
549
- const Page = async ({ params }) => {
550
- const { locale } = await params;
551
-
552
- return (
553
- <IntlayerServerProvider locale={locale}>
554
- <PageContent />
555
- <ServerComponentExample />
556
-
557
- <IntlayerClientProvider locale={locale}>
558
- <ClientComponentExample />
559
- </IntlayerClientProvider>
356
+ <ClientComponentExample />
560
357
  </IntlayerServerProvider>
561
358
  );
562
359
  };
@@ -564,45 +361,12 @@ const Page = async ({ params }) => {
564
361
  export default Page;
565
362
  ```
566
363
 
567
- ```jsx fileName="src/app/[locale]/page.csx" codeFormat="commonjs"
568
- import { ClientComponentExample } from "@components/ClientComponentExample";
569
- import { ServerComponentExample } from "@components/ServerComponentExample";
570
- import { IntlayerClientProvider } from "next-intlayer";
571
- import { IntlayerServerProvider, useIntlayer } from "next-intlayer/server";
572
-
573
- const PageContent = () => {
574
- const content = useIntlayer("page");
575
-
576
- return (
577
- <>
578
- <p>{content.getStarted.main}</p>
579
- <code>{content.getStarted.pageLink}</code>
580
- </>
581
- );
582
- };
583
-
584
- const Page = async ({ params }) => {
585
- const { locale } = await params;
586
-
587
- return (
588
- <IntlayerServerProvider locale={locale}>
589
- <PageContent />
590
- <ServerComponentExample />
591
-
592
- <IntlayerClientProvider locale={locale}>
593
- <ClientComponentExample />
594
- </IntlayerClientProvider>
595
- </IntlayerServerProvider>
596
- );
597
- };
598
- ```
599
-
600
364
  - **`IntlayerClientProvider`** được sử dụng để cung cấp ngôn ngữ cho các thành phần phía máy khách. Nó có thể được đặt trong bất kỳ thành phần cha nào, bao gồm cả bố cục. Tuy nhiên, việc đặt nó trong một bố cục được khuyến nghị vì Next.js chia sẻ mã bố cục giữa các trang, giúp hiệu quả hơn. Bằng cách sử dụng `IntlayerClientProvider` trong bố cục, bạn tránh việc khởi tạo lại nó cho mỗi trang, cải thiện hiệu suất và duy trì ngữ cảnh bản địa hóa nhất quán trong toàn bộ ứng dụng của bạn.
601
365
  - **`IntlayerServerProvider`** được sử dụng để cung cấp ngôn ngữ cho các thành phần con phía máy chủ. Nó không thể được đặt trong bố cục.
602
366
 
603
367
  > Bố cục và trang không thể chia sẻ ngữ cảnh máy chủ chung vì hệ thống ngữ cảnh máy chủ dựa trên kho dữ liệu theo từng yêu cầu (thông qua cơ chế [React's cache](https://react.dev/reference/react/cache)), khiến mỗi "ngữ cảnh" được tạo lại cho các đoạn khác nhau của ứng dụng. Việc đặt nhà cung cấp trong một bố cục dùng chung sẽ phá vỡ sự cô lập này, ngăn cản việc truyền đúng các giá trị ngữ cảnh máy chủ đến các thành phần máy chủ của bạn.
604
368
 
605
- ```tsx {4,7} fileName="src/components/ClientComponentExample.tsx" codeFormat="typescript"
369
+ ```tsx {4,7} fileName="src/components/ClientComponentExample.tsx" codeFormat={["typescript", "esm"]}
606
370
  "use client";
607
371
 
608
372
  import type { FC } from "react";
@@ -620,41 +384,7 @@ export const ClientComponentExample: FC = () => {
620
384
  };
621
385
  ```
622
386
 
623
- ```jsx {3,6} fileName="src/components/ClientComponentExample.mjx" codeFormat="esm"
624
- "use client";
625
-
626
- import { useIntlayer } from "next-intlayer";
627
-
628
- const ClientComponentExample = () => {
629
- const content = useIntlayer("client-component-example"); // Tạo khai báo nội dung liên quan
630
-
631
- return (
632
- <div>
633
- <h2>{content.title}</h2>
634
- <p>{content.content}</p>
635
- </div>
636
- );
637
- };
638
- ```
639
-
640
- ```jsx {3,6} fileName="src/components/ClientComponentExample.csx" codeFormat="commonjs"
641
- "use client";
642
-
643
- const { useIntlayer } = require("next-intlayer");
644
-
645
- const ClientComponentExample = () => {
646
- const content = useIntlayer("client-component-example"); // Tạo khai báo nội dung liên quan
647
-
648
- return (
649
- <div>
650
- <h2>{content.title}</h2>
651
- <p>{content.content}</p>
652
- </div>
653
- );
654
- };
655
- ```
656
-
657
- ```tsx {2} fileName="src/components/ServerComponentExample.tsx" codeFormat="typescript"
387
+ ```tsx {2} fileName="src/components/ServerComponentExample.tsx" codeFormat={["typescript", "esm"]}
658
388
  import type { FC } from "react";
659
389
  import { useIntlayer } from "next-intlayer/server";
660
390
 
@@ -670,36 +400,6 @@ export const ServerComponentExample: FC = () => {
670
400
  };
671
401
  ```
672
402
 
673
- ```jsx {1} fileName="src/components/ServerComponentExample.mjx" codeFormat="esm"
674
- import { useIntlayer } from "next-intlayer/server";
675
-
676
- const ServerComponentExample = () => {
677
- const content = useIntlayer("server-component-example"); // Tạo khai báo nội dung liên quan
678
-
679
- return (
680
- <div>
681
- <h2>{content.title}</h2>
682
- <p>{content.content}</p>
683
- </div>
684
- );
685
- };
686
- ```
687
-
688
- ```jsx {1} fileName="src/components/ServerComponentExample.csx" codeFormat="commonjs"
689
- const { useIntlayer } = require("next-intlayer/server");
690
-
691
- const ServerComponentExample = () => {
692
- const content = useIntlayer("server-component-example"); // Tạo khai báo nội dung liên quan
693
-
694
- return (
695
- <div>
696
- <h2>{content.title}</h2>
697
- <p>{content.content}</p>
698
- </div>
699
- );
700
- };
701
- ```
702
-
703
403
  > Nếu bạn muốn sử dụng nội dung của mình trong một thuộc tính `string`, chẳng hạn như `alt`, `title`, `href`, `aria-label`, v.v., bạn phải gọi giá trị của hàm, như:
704
404
 
705
405
  > ```jsx
@@ -714,16 +414,7 @@ const ServerComponentExample = () => {
714
414
 
715
415
  Thiết lập proxy để phát hiện ngôn ngữ ưu tiên của người dùng:
716
416
 
717
- ```typescript fileName="src/proxy.ts" codeFormat="typescript"
718
- export { intlayerProxy as proxy } from "next-intlayer/proxy";
719
-
720
- export const config = {
721
- matcher:
722
- "/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\..*|_next).*)",
723
- };
724
- ```
725
-
726
- ```javascript fileName="src/proxy.mjs" codeFormat="esm"
417
+ ```typescript fileName="src/proxy.ts" codeFormat={["typescript", "esm", "commonjs"]}
727
418
  export { intlayerProxy as proxy } from "next-intlayer/proxy";
728
419
 
729
420
  export const config = {
@@ -732,17 +423,6 @@ export const config = {
732
423
  };
733
424
  ```
734
425
 
735
- ```javascript fileName="src/proxy.cjs" codeFormat="commonjs"
736
- const { intlayerProxy } = require("next-intlayer/proxy");
737
-
738
- const config = {
739
- matcher:
740
- "/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\..*|_next).*)",
741
- };
742
-
743
- module.exports = { proxy: intlayerProxy, config };
744
- ```
745
-
746
426
  > `intlayerProxy` được sử dụng để phát hiện ngôn ngữ ưu tiên của người dùng và chuyển hướng họ đến URL thích hợp như được chỉ định trong [cấu hình](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/configuration.md). Ngoài ra, nó cho phép lưu ngôn ngữ ưu tiên của người dùng trong một cookie.
747
427
 
748
428
  > Nếu bạn cần xâu chuỗi nhiều proxy với nhau (ví dụ: `intlayerProxy` với xác thực hoặc các proxy tùy chỉnh), Intlayer hiện cung cấp một trợ giúp gọi là `multipleProxies`.
@@ -758,7 +438,7 @@ export const proxy = multipleProxies([intlayerProxy, customProxy]);
758
438
 
759
439
  Trong trường hợp bạn muốn quốc tế hóa metadata của mình, chẳng hạn như tiêu đề trang, bạn có thể sử dụng hàm `generateMetadata` do Next.js cung cấp. Bên trong đó, bạn có thể truy xuất nội dung từ hàm `getIntlayer` để dịch metadata của mình.
760
440
 
761
- ```typescript fileName="src/app/[locale]/metadata.content.ts" contentDeclarationFormat="typescript"
441
+ ```typescript fileName="src/app/[locale]/metadata.content.ts" contentDeclarationFormat={["typescript", "esm", "commonjs"]}
762
442
  import { type Dictionary, t } from "intlayer";
763
443
  import { Metadata } from "next";
764
444
 
@@ -781,52 +461,6 @@ const metadataContent = {
781
461
  export default metadataContent;
782
462
  ```
783
463
 
784
- ```javascript fileName="src/app/[locale]/metadata.content.mjs" contentDeclarationFormat="esm"
785
- import { t } from "intlayer";
786
-
787
- /** @type {import('intlayer').Dictionary<import('next').Metadata>} */
788
- const metadataContent = {
789
- key: "page-metadata",
790
- content: {
791
- title: t({
792
- en: "Create Next App",
793
- fr: "Créer une application Next.js",
794
- es: "Crear una aplicación Next.js",
795
- }),
796
- description: t({
797
- en: "Generated by create next app",
798
- fr: "Généré par create next app",
799
- es: "Generado por create next app",
800
- }),
801
- },
802
- };
803
-
804
- export default metadataContent;
805
- ```
806
-
807
- ```javascript fileName="src/app/[locale]/metadata.content.cjs" contentDeclarationFormat="commonjs"
808
- const { t } = require("intlayer");
809
-
810
- /** @type {import('intlayer').Dictionary<import('next').Metadata>} */
811
- const metadataContent = {
812
- key: "page-metadata",
813
- content: {
814
- title: t({
815
- en: "Create Next App",
816
- fr: "Créer une application Next.js",
817
- es: "Crear una aplicación Next.js",
818
- }),
819
- description: t({
820
- en: "Generated by create next app",
821
- fr: "Généré par create next app",
822
- es: "Generado por create next app",
823
- }),
824
- },
825
- };
826
-
827
- module.exports = metadataContent;
828
- ```
829
-
830
464
  ```json fileName="src/app/[locale]/metadata.content.json" contentDeclarationFormat="json"
831
465
  {
832
466
  "key": "page-metadata",
@@ -851,7 +485,7 @@ module.exports = metadataContent;
851
485
  }
852
486
  ```
853
487
 
854
- ````typescript fileName="src/app/[locale]/layout.tsx or src/app/[locale]/page.tsx" codeFormat="typescript"
488
+ ````typescript fileName="src/app/[locale]/layout.tsx or src/app/[locale]/page.tsx" codeFormat={["typescript", "esm"]}
855
489
  import { getIntlayer, getMultilingualUrls } from "intlayer";
856
490
  import type { Metadata } from "next";
857
491
  import type { LocalPromiseParams } from "next-intlayer";
@@ -897,95 +531,11 @@ export const generateMetadata = async ({
897
531
  // ... Phần còn lại của mã
898
532
  ````
899
533
 
900
- ````javascript fileName="src/app/[locale]/layout.mjs or src/app/[locale]/page.mjs" codeFormat="esm"
901
- import { getIntlayer, getMultilingualUrls } from "intlayer";
902
-
903
- export const generateMetadata = async ({ params }) => {
904
- const { locale } = await params;
905
-
906
- const metadata = getIntlayer("page-metadata", locale);
907
-
908
- /**
909
- * Tạo một đối tượng chứa tất cả url cho từng ngôn ngữ.
910
- *
911
- * Ví dụ:
912
- * ```ts
913
- * getMultilingualUrls('/about');
914
- *
915
- * // Trả về
916
- * // {
917
- * // en: '/about',
918
- * // fr: '/fr/about',
919
- * // es: '/es/about'
920
- * // }
921
- * ```
922
- */
923
- const multilingualUrls = getMultilingualUrls("/");
924
- const localizedUrl = multilingualUrls[locale];
925
-
926
- return {
927
- ...metadata,
928
- alternates: {
929
- canonical: localizedUrl,
930
- languages: { ...multilingualUrls, "x-default": "/" },
931
- },
932
- openGraph: {
933
- url: localizedUrl,
934
- },
935
- };
936
- };
937
-
938
- // ... Phần còn lại của mã
939
- ````
940
-
941
- ````javascript fileName="src/app/[locale]/layout.cjs or src/app/[locale]/page.cjs" codeFormat="commonjs"
942
- const { getIntlayer, getMultilingualUrls } = require("intlayer");
943
-
944
- const generateMetadata = async ({ params }) => {
945
- const { locale } = await params;
946
-
947
- const metadata = getIntlayer("page-metadata", locale);
948
-
949
- /**
950
- * Tạo một đối tượng chứa tất cả url cho từng ngôn ngữ.
951
- *
952
- * Ví dụ:
953
- * ```ts
954
- * getMultilingualUrls('/about');
955
- *
956
- * // Trả về
957
- * // {
958
- * // en: '/about',
959
- * // fr: '/fr/about',
960
- * // es: '/es/about'
961
- * // }
962
- * ```
963
- */
964
- const multilingualUrls = getMultilingualUrls("/");
965
- const localizedUrl = multilingualUrls[locale];
966
-
967
- return {
968
- ...metadata,
969
- alternates: {
970
- canonical: localizedUrl,
971
- languages: { ...multilingualUrls, "x-default": "/" },
972
- },
973
- openGraph: {
974
- url: localizedUrl,
975
- },
976
- };
977
- };
978
-
979
- module.exports = { generateMetadata };
980
-
981
- // ... Phần còn lại của mã
982
- ````
983
-
984
534
  > Lưu ý rằng hàm `getIntlayer` được nhập từ `next-intlayer` trả về nội dung của bạn được bao bọc trong một `IntlayerNode`, cho phép tích hợp với trình chỉnh sửa trực quan. Ngược lại, hàm `getIntlayer` được nhập từ `intlayer` trả về nội dung của bạn trực tiếp mà không có các thuộc tính bổ sung.
985
535
 
986
536
  Ngoài ra, bạn có thể sử dụng hàm `getTranslation` để khai báo metadata của mình. Tuy nhiên, việc sử dụng các tệp khai báo nội dung được khuyến nghị để tự động hóa việc dịch metadata của bạn và tách rời nội dung tại một thời điểm nào đó.
987
537
 
988
- ```typescript fileName="src/app/[locale]/layout.tsx or src/app/[locale]/page.tsx" codeFormat="typescript"
538
+ ```typescript fileName="src/app/[locale]/layout.tsx or src/app/[locale]/page.tsx" codeFormat={["typescript", "esm"]}
989
539
  import {
990
540
  type IConfigLocales,
991
541
  getTranslation,
@@ -1003,154 +553,31 @@ export const generateMetadata = async ({
1003
553
  return {
1004
554
  title: t<string>({
1005
555
  en: "My title",
1006
- fr: "Mon titre",
1007
- es: "Mi título",
1008
- }),
1009
- description: t({
1010
- en: "My description",
1011
- fr: "Ma description",
1012
- es: "Mi descripción",
1013
- }),
1014
- };
1015
- };
1016
-
1017
- // ... Phần còn lại của mã
1018
- ```
1019
-
1020
- ```javascript fileName="src/app/[locale]/layout.mjs or src/app/[locale]/page.mjs" codeFormat="esm"
1021
- import { getTranslation, getMultilingualUrls } from "intlayer";
1022
-
1023
- export const generateMetadata = async ({ params }) => {
1024
- const { locale } = await params;
1025
- const t = (content) => getTranslation(content, locale);
1026
-
1027
- return {
1028
- title: t({
1029
- en: "My title",
1030
- fr: "Mon titre",
1031
- es: "Mi título",
1032
- }),
1033
- description: t({
1034
- en: "My description",
1035
- fr: "Ma description",
1036
- es: "Mi descripción",
1037
- }),
1038
- };
1039
- };
1040
-
1041
- // ... Phần còn lại của mã
1042
- ```
1043
-
1044
- ```javascript fileName="src/app/[locale]/layout.cjs or src/app/[locale]/page.cjs" codeFormat="commonjs"
1045
- const { getTranslation, getMultilingualUrls } = require("intlayer");
1046
-
1047
- const generateMetadata = async ({ params }) => {
1048
- const { locale } = await params;
1049
-
1050
- const t = (content) => getTranslation(content, locale);
1051
-
1052
- return {
1053
- title: t({
1054
- en: "My title",
1055
- fr: "Mon titre",
1056
- es: "Mi título",
1057
- }),
1058
- description: t({
1059
- en: "My description",
1060
- fr: "Ma description",
1061
- es: "Mi descripción",
1062
- }),
1063
- };
1064
- };
1065
-
1066
- module.exports = { generateMetadata };
1067
-
1068
- // ... Phần còn lại của mã
1069
- ```
1070
-
1071
- > Tìm hiểu thêm về tối ưu hóa metadata [trên tài liệu chính thức của Next.js](https://nextjs.org/docs/app/building-your-application/optimizing/metadata).
1072
-
1073
- ### (Tùy chọn) Bước 9: Quốc tế hóa sitemap.xml và robots.txt của bạn
1074
-
1075
- Để quốc tế hóa `sitemap.xml` và `robots.txt` của bạn, bạn có thể sử dụng hàm `getMultilingualUrls` do Intlayer cung cấp. Hàm này cho phép bạn tạo các URL đa ngôn ngữ cho sitemap của mình.
1076
-
1077
- ```tsx fileName="src/app/sitemap.ts" codeFormat="typescript"
1078
- import { getMultilingualUrls } from "intlayer";
1079
- import type { MetadataRoute } from "next";
1080
-
1081
- const sitemap = (): MetadataRoute.Sitemap => [
1082
- {
1083
- url: "https://example.com",
1084
- alternates: {
1085
- languages: {
1086
- ...getMultilingualUrls("https://example.com"),
1087
- "x-default": "https://example.com",
1088
- },
1089
- },
1090
- },
1091
- {
1092
- url: "https://example.com/login",
1093
- alternates: {
1094
- languages: {
1095
- ...getMultilingualUrls("https://example.com/login"),
1096
- "x-default": "https://example.com/login",
1097
- },
1098
- },
1099
- },
1100
- {
1101
- url: "https://example.com/register",
1102
- alternates: {
1103
- languages: {
1104
- ...getMultilingualUrls("https://example.com/register"),
1105
- "x-default": "https://example.com/register",
1106
- },
1107
- },
1108
- },
1109
- ];
1110
-
1111
- export default sitemap;
1112
- ```
1113
-
1114
- ```jsx fileName="src/app/sitemap.mjx" codeFormat="esm"
1115
- import { getMultilingualUrls } from "intlayer";
1116
-
1117
- const sitemap = () => [
1118
- {
1119
- url: "https://example.com",
1120
- alternates: {
1121
- languages: {
1122
- ...getMultilingualUrls("https://example.com"),
1123
- "x-default": "https://example.com",
1124
- },
1125
- },
1126
- },
1127
- {
1128
- url: "https://example.com/login",
1129
- alternates: {
1130
- languages: {
1131
- ...getMultilingualUrls("https://example.com/login"),
1132
- "x-default": "https://example.com/login",
1133
- },
1134
- },
1135
- },
1136
- {
1137
- url: "https://example.com/register",
1138
- alternates: {
1139
- languages: {
1140
- ...getMultilingualUrls("https://example.com/register"),
1141
- "x-default": "https://example.com/register",
1142
- },
1143
- },
1144
- },
1145
- ];
556
+ fr: "Mon titre",
557
+ es: "Mi título",
558
+ }),
559
+ description: t({
560
+ en: "My description",
561
+ fr: "Ma description",
562
+ es: "Mi descripción",
563
+ }),
564
+ };
565
+ };
1146
566
 
1147
- export default sitemap;
567
+ // ... Phần còn lại của mã
1148
568
  ```
1149
569
 
1150
- ```jsx fileName="src/app/sitemap.csx" codeFormat="commonjs"
1151
- const { getMultilingualUrls } = require("intlayer");
570
+ > Tìm hiểu thêm về tối ưu hóa metadata [trên tài liệu chính thức của Next.js](https://nextjs.org/docs/app/building-your-application/optimizing/metadata).
571
+
572
+ ### (Tùy chọn) Bước 9: Quốc tế hóa sitemap.xml và robots.txt của bạn
573
+
574
+ Để quốc tế hóa `sitemap.xml` và `robots.txt` của bạn, bạn có thể sử dụng hàm `getMultilingualUrls` do Intlayer cung cấp. Hàm này cho phép bạn tạo các URL đa ngôn ngữ cho sitemap của mình.
575
+
576
+ ```tsx fileName="src/app/sitemap.ts" codeFormat={["typescript", "esm", "commonjs"]}
577
+ import { getMultilingualUrls } from "intlayer";
578
+ import type { MetadataRoute } from "next";
1152
579
 
1153
- const sitemap = () => [
580
+ const sitemap = (): MetadataRoute.Sitemap => [
1154
581
  {
1155
582
  url: "https://example.com",
1156
583
  alternates: {
@@ -1180,10 +607,10 @@ const sitemap = () => [
1180
607
  },
1181
608
  ];
1182
609
 
1183
- module.exports = sitemap;
610
+ export default sitemap;
1184
611
  ```
1185
612
 
1186
- ```tsx fileName="src/app/robots.ts" codeFormat="typescript"
613
+ ```tsx fileName="src/app/robots.ts" codeFormat={["typescript", "esm", "commonjs"]}
1187
614
  import type { MetadataRoute } from "next";
1188
615
  import { getMultilingualUrls } from "intlayer";
1189
616
 
@@ -1203,51 +630,13 @@ const robots = (): MetadataRoute.Robots => ({
1203
630
  export default robots;
1204
631
  ```
1205
632
 
1206
- ```jsx fileName="src/app/robots.mjx" codeFormat="esm"
1207
- import { getMultilingualUrls } from "intlayer";
1208
-
1209
- const getAllMultilingualUrls = (urls) =>
1210
- urls.flatMap((url) => Object.values(getMultilingualUrls(url)));
1211
-
1212
- const robots = () => ({
1213
- rules: {
1214
- userAgent: "*",
1215
- allow: ["/"],
1216
- disallow: getAllMultilingualUrls(["/login", "/register"]),
1217
- },
1218
- host: "https://example.com",
1219
- sitemap: `https://example.com/sitemap.xml`,
1220
- });
1221
-
1222
- export default robots;
1223
- ```
1224
-
1225
- ```jsx fileName="src/app/robots.csx" codeFormat="commonjs"
1226
- const { getMultilingualUrls } = require("intlayer");
1227
-
1228
- const getAllMultilingualUrls = (urls) =>
1229
- urls.flatMap((url) => Object.values(getMultilingualUrls(url)));
1230
-
1231
- const robots = () => ({
1232
- rules: {
1233
- userAgent: "*",
1234
- allow: ["/"],
1235
- disallow: getAllMultilingualUrls(["/login", "/register"]),
1236
- },
1237
- host: "https://example.com",
1238
- sitemap: `https://example.com/sitemap.xml`,
1239
- });
1240
-
1241
- module.exports = robots;
1242
- ```
1243
-
1244
633
  > Tìm hiểu thêm về tối ưu hóa sitemap [trên tài liệu chính thức của Next.js](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap). Tìm hiểu thêm về tối ưu hóa robots.txt [trên tài liệu chính thức của Next.js](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/robots).
1245
634
 
1246
635
  ### (Tùy chọn) Bước 10: Thay đổi ngôn ngữ của nội dung của bạn
1247
636
 
1248
637
  Để thay đổi ngôn ngữ của nội dung trong Next.js, cách được khuyến nghị là sử dụng thành phần `Link` để chuyển hướng người dùng đến trang bản địa hóa thích hợp. Thành phần `Link` cho phép tải trước trang, giúp tránh việc tải lại toàn bộ trang.
1249
638
 
1250
- ```tsx fileName="src/components/LocaleSwitcher.tsx" codeFormat="typescript"
639
+ ```tsx fileName="src/components/LocaleSwitcher.tsx" codeFormat={["typescript", "esm"]}
1251
640
  "use client";
1252
641
 
1253
642
  import type { FC } from "react";
@@ -1300,110 +689,6 @@ export const LocaleSwitcher: FC = () => {
1300
689
  };
1301
690
  ```
1302
691
 
1303
- ```jsx fileName="src/components/LocaleSwitcher.msx" codeFormat="esm"
1304
- "use client";
1305
-
1306
- import {
1307
- Locales,
1308
- getHTMLTextDir,
1309
- getLocaleName,
1310
- getLocalizedUrl,
1311
- } from "intlayer";
1312
- import { useLocale } from "next-intlayer";
1313
- import Link from "next/link";
1314
-
1315
- export const LocaleSwitcher = () => {
1316
- const { locale, pathWithoutLocale, availableLocales, setLocale } =
1317
- useLocale();
1318
-
1319
- return (
1320
- <div>
1321
- <button popoverTarget="localePopover">{getLocaleName(locale)}</button>
1322
- <div id="localePopover" popover="auto">
1323
- {availableLocales.map((localeItem) => (
1324
- <Link
1325
- href={getLocalizedUrl(pathWithoutLocale, localeItem)}
1326
- key={localeItem}
1327
- aria-current={locale === localeItem ? "page" : undefined}
1328
- onClick={() => setLocale(localeItem)}
1329
- replace // Sẽ đảm bảo nút "quay lại" của trình duyệt sẽ chuyển hướng đến trang trước đó
1330
- >
1331
- <span>
1332
- {/* Locale - ví dụ: FR */}
1333
- {localeItem}
1334
- </span>
1335
- <span>
1336
- {/* Ngôn ngữ trong chính Locale đó - ví dụ: Français */}
1337
- {getLocaleName(localeItem, locale)}
1338
- </span>
1339
- <span dir={getHTMLTextDir(localeItem)} lang={localeItem}>
1340
- {/* Ngôn ngữ trong Locale hiện tại - ví dụ: Francés với locale hiện tại là Locales.SPANISH */}
1341
- {getLocaleName(localeItem)}
1342
- </span>
1343
- <span dir="ltr" lang={Locales.ENGLISH}>
1344
- {/* Ngôn ngữ bằng tiếng Anh - ví dụ: French */}
1345
- {getLocaleName(localeItem, Locales.ENGLISH)}
1346
- </span>
1347
- </Link>
1348
- ))}
1349
- </div>
1350
- </div>
1351
- );
1352
- };
1353
- ```
1354
-
1355
- ```jsx fileName="src/components/LocaleSwitcher.csx" codeFormat="commonjs"
1356
- "use client";
1357
-
1358
- const {
1359
- Locales,
1360
- getHTMLTextDir,
1361
- getLocaleName,
1362
- getLocalizedUrl,
1363
- } = require("intlayer");
1364
- const { useLocale } = require("next-intlayer");
1365
- const Link = require("next/link");
1366
-
1367
- export const LocaleSwitcher = () => {
1368
- const { locale, pathWithoutLocale, availableLocales, setLocale } =
1369
- useLocale();
1370
-
1371
- return (
1372
- <div>
1373
- <button popoverTarget="localePopover">{getLocaleName(locale)}</button>
1374
- <div id="localePopover" popover="auto">
1375
- {availableLocales.map((localeItem) => (
1376
- <Link
1377
- href={getLocalizedUrl(pathWithoutLocale, localeItem)}
1378
- key={localeItem}
1379
- aria-current={locale === localeItem ? "page" : undefined}
1380
- onClick={() => setLocale(localeItem)}
1381
- replace // Sẽ đảm bảo nút "quay lại" của trình duyệt sẽ chuyển hướng đến trang trước đó
1382
- >
1383
- <span>
1384
- {/* Locale - ví dụ: FR */}
1385
- {localeItem}
1386
- </span>
1387
- <span>
1388
- {/* Ngôn ngữ trong chính Locale đó - ví dụ: Français */}
1389
- {getLocaleName(localeItem, locale)}
1390
- </span>
1391
- <span dir={getHTMLTextDir(localeItem)} lang={localeItem}>
1392
- {/* Ngôn ngữ trong Locale hiện tại - ví dụ: Francés với locale hiện tại là Locales.SPANISH */}
1393
- {getLocaleName(localeItem)}
1394
- </span>
1395
- <span dir="ltr" lang={Locales.ENGLISH}>
1396
- {/* Ngôn ngữ bằng tiếng Anh - ví dụ: French */}
1397
- {getLocaleName(localeItem, Locales.ENGLISH)}
1398
- </span>
1399
- </Link>
1400
- ))}
1401
- </div>
1402
- </div>
1403
- );
1404
- };
1405
- ```
1406
-
1407
692
  > Một cách thay thế là sử dụng hàm `setLocale` do hook `useLocale` cung cấp. Hàm này sẽ không cho phép tải trước trang. Xem [tài liệu hook `useLocale`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/packages/next-intlayer/useLocale.md) để biết thêm chi tiết.
1408
693
 
1409
694
  > Bạn cũng có thể thiết lập một hàm trong tùy chọn `onLocaleChange` để kích hoạt một hàm tùy chỉnh khi ngôn ngữ thay đổi.
@@ -1454,7 +739,7 @@ Hành vi này hữu ích vì một số lý do:
1454
739
 
1455
740
  Dưới đây là việc triển khai thành phần `Link` được bản địa hóa trong TypeScript:
1456
741
 
1457
- ```tsx fileName="src/components/Link.tsx" codeFormat="typescript"
742
+ ```tsx fileName="src/components/Link.tsx" codeFormat={["typescript", "esm"]}
1458
743
  "use client";
1459
744
 
1460
745
  import { getLocalizedUrl } from "intlayer";
@@ -1494,74 +779,6 @@ export const Link: FC<PropsWithChildren<NextLinkProps>> = ({
1494
779
  };
1495
780
  ```
1496
781
 
1497
- ```jsx fileName="src/components/Link.mjx" codeFormat="esm"
1498
- "use client";
1499
-
1500
- import { getLocalizedUrl } from "intlayer";
1501
- import NextLink from "next/link";
1502
- import { useLocale } from "next-intlayer";
1503
-
1504
- /**
1505
- * Hàm tiện ích để kiểm tra xem một URL cho trước có phải là bên ngoài hay không.
1506
- * Nếu URL bắt đầu bằng http:// hoặc https://, nó được coi là bên ngoài.
1507
- */
1508
- export const checkIsExternalLink = (href) => /^https?:\/\//.test(href ?? "");
1509
-
1510
- /**
1511
- * Một thành phần Link tùy chỉnh thích ứng thuộc tính href dựa trên ngôn ngữ hiện tại.
1512
- * Đối với các liên kết nội bộ, nó sử dụng `getLocalizedUrl` để thêm tiền tố ngôn ngữ vào URL (ví dụ: /fr/about).
1513
- * Điều này đảm bảo rằng việc điều hướng vẫn nằm trong cùng một ngữ cảnh ngôn ngữ.
1514
- */
1515
- export const Link = ({ href, children, ...props }) => {
1516
- const { locale } = useLocale();
1517
- const isExternalLink = checkIsExternalLink(href.toString());
1518
-
1519
- // Nếu liên kết là nội bộ và một href hợp lệ được cung cấp, lấy URL được bản địa hóa.
1520
- const hrefI18n =
1521
- href && !isExternalLink ? getLocalizedUrl(href.toString(), locale) : href;
1522
-
1523
- return (
1524
- <NextLink href={hrefI18n} {...props}>
1525
- {children}
1526
- </NextLink>
1527
- );
1528
- };
1529
- ```
1530
-
1531
- ```jsx fileName="src/components/Link.csx" codeFormat="commonjs"
1532
- "use client";
1533
-
1534
- const { getLocalizedUrl } = require("intlayer");
1535
- const NextLink = require("next/link");
1536
- const { useLocale } = require("next-intlayer");
1537
-
1538
- /**
1539
- * Hàm tiện ích để kiểm tra xem một URL cho trước có phải là bên ngoài hay không.
1540
- * Nếu URL bắt đầu bằng http:// hoặc https://, nó được coi là bên ngoài.
1541
- */
1542
- const checkIsExternalLink = (href) => /^https?:\/\//.test(href ?? "");
1543
-
1544
- /**
1545
- * Một thành phần Link tùy chỉnh thích ứng thuộc tính href dựa trên ngôn ngữ hiện tại.
1546
- * Đối với các liên kết nội bộ, nó sử dụng `getLocalizedUrl` để thêm tiền tố ngôn ngữ vào URL (ví dụ: /fr/about).
1547
- * Điều này đảm bảo rằng việc điều hướng vẫn nằm trong cùng một ngữ cảnh ngôn ngữ.
1548
- */
1549
- const Link = ({ href, children, ...props }) => {
1550
- const { locale } = useLocale();
1551
- const isExternalLink = checkIsExternalLink(href.toString());
1552
-
1553
- // Nếu liên kết là nội bộ và một href hợp lệ được cung cấp, lấy URL được bản địa hóa.
1554
- const hrefI18n =
1555
- href && !isExternalLink ? getLocalizedUrl(href.toString(), locale) : href;
1556
-
1557
- return (
1558
- <NextLink href={hrefI18n} {...props}>
1559
- {children}
1560
- </NextLink>
1561
- );
1562
- };
1563
- ```
1564
-
1565
782
  #### Cách hoạt động
1566
783
 
1567
784
  - **Phát hiện các liên kết bên ngoài**:
@@ -1703,7 +920,7 @@ Nếu bạn có một cơ sở mã hiện có, việc chuyển đổi hàng ngh
1703
920
 
1704
921
  Để thiết lập, bạn có thể thêm phần `compiler` vào tệp `intlayer.config.ts` của mình:
1705
922
 
1706
- ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
923
+ ```typescript fileName="intlayer.config.ts" codeFormat={["typescript", "esm", "commonjs"]}
1707
924
  import { type IntlayerConfig } from "intlayer";
1708
925
 
1709
926
  const config: IntlayerConfig = {
@@ -1734,66 +951,6 @@ const config: IntlayerConfig = {
1734
951
  export default config;
1735
952
  ```
1736
953
 
1737
- ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
1738
- /** @type {import('intlayer').IntlayerConfig} */
1739
- const config = {
1740
- // ... Phần còn lại của cấu hình
1741
- compiler: {
1742
- /**
1743
- * Cho biết trình biên dịch có nên được bật hay không.
1744
- */
1745
- enabled: true,
1746
-
1747
- /**
1748
- * Xác định đường dẫn các tệp đầu ra
1749
- */
1750
- output: ({ fileName, extension }) => `./${fileName}${extension}`,
1751
-
1752
- /**
1753
- * Cho biết các thành phần có nên được lưu sau khi chuyển đổi hay không. Bằng cách đó, trình biên dịch có thể được chạy chỉ một lần để chuyển đổi ứng dụng, sau đó có thể được gỡ bỏ.
1754
- */
1755
- saveComponents: false,
1756
-
1757
- /**
1758
- * Tiền tố khóa từ điển
1759
- */
1760
- dictionaryKeyPrefix: "",
1761
- },
1762
- };
1763
-
1764
- export default config;
1765
- ```
1766
-
1767
- ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
1768
- /** @type {import('intlayer').IntlayerConfig} */
1769
- const config = {
1770
- // ... Phần còn lại của cấu hình
1771
- compiler: {
1772
- /**
1773
- * Cho biết trình biên dịch có nên được bật hay không.
1774
- */
1775
- enabled: true,
1776
-
1777
- /**
1778
- * Xác định đường dẫn các tệp đầu ra
1779
- */
1780
- output: ({ fileName, extension }) => `./${fileName}${extension}`,
1781
-
1782
- /**
1783
- * Cho biết các thành phần có nên được lưu sau khi chuyển đổi hay không. Bằng cách đó, trình biên dịch có thể được chạy chỉ một lần để chuyển đổi ứng dụng, sau đó có thể được gỡ bỏ.
1784
- */
1785
- saveComponents: false,
1786
-
1787
- /**
1788
- * Tiền tố khóa từ điển
1789
- */
1790
- dictionaryKeyPrefix: "",
1791
- },
1792
- };
1793
-
1794
- module.exports = config;
1795
- ```
1796
-
1797
954
  <Tabs>
1798
955
  <Tab value='Lệnh trích xuất'>
1799
956