@intlayer/docs 8.1.9 → 8.1.10

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 (297) hide show
  1. package/docs/ar/how_works_intlayer.md +1 -1
  2. package/docs/ar/index.md +1 -1
  3. package/docs/ar/intlayer_with_astro.md +2 -2
  4. package/docs/ar/intlayer_with_create_react_app.md +2 -2
  5. package/docs/ar/intlayer_with_express.md +1 -1
  6. package/docs/ar/intlayer_with_lynx+react.md +1 -1
  7. package/docs/ar/intlayer_with_nextjs_14.md +2 -2
  8. package/docs/ar/intlayer_with_nextjs_15.md +2 -2
  9. package/docs/ar/intlayer_with_nextjs_page_router.md +3 -3
  10. package/docs/ar/intlayer_with_react_native+expo.md +1 -1
  11. package/docs/ar/intlayer_with_react_router_v7.md +3 -3
  12. package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +3 -3
  13. package/docs/ar/intlayer_with_vite+solid.md +2 -2
  14. package/docs/ar/intlayer_with_vite+vue.md +2 -2
  15. package/docs/ar/introduction.md +1 -1
  16. package/docs/ar/packages/next-intlayer/useDictionary.md +1 -1
  17. package/docs/ar/packages/next-intlayer/useIntlayer.md +1 -1
  18. package/docs/ar/packages/react-intlayer/useDictionary.md +1 -1
  19. package/docs/ar/packages/react-intlayer/useI18n.md +1 -1
  20. package/docs/ar/packages/react-intlayer/useIntlayer.md +1 -1
  21. package/docs/ar/plugins/sync-json.md +10 -6
  22. package/docs/ar/roadmap.md +1 -1
  23. package/docs/de/how_works_intlayer.md +1 -1
  24. package/docs/de/index.md +1 -1
  25. package/docs/de/intlayer_with_astro.md +2 -2
  26. package/docs/de/intlayer_with_create_react_app.md +2 -2
  27. package/docs/de/intlayer_with_express.md +1 -1
  28. package/docs/de/intlayer_with_lynx+react.md +1 -1
  29. package/docs/de/intlayer_with_nextjs_14.md +2 -2
  30. package/docs/de/intlayer_with_nextjs_15.md +2 -2
  31. package/docs/de/intlayer_with_nextjs_page_router.md +3 -3
  32. package/docs/de/intlayer_with_react_native+expo.md +1 -1
  33. package/docs/de/intlayer_with_react_router_v7.md +3 -3
  34. package/docs/de/intlayer_with_react_router_v7_fs_routes.md +3 -3
  35. package/docs/de/intlayer_with_vite+preact.md +2 -2
  36. package/docs/de/intlayer_with_vite+solid.md +2 -2
  37. package/docs/de/intlayer_with_vite+vue.md +2 -2
  38. package/docs/de/introduction.md +1 -1
  39. package/docs/de/packages/next-intlayer/useDictionary.md +1 -1
  40. package/docs/de/packages/next-intlayer/useIntlayer.md +1 -1
  41. package/docs/de/packages/react-intlayer/useDictionary.md +1 -1
  42. package/docs/de/packages/react-intlayer/useI18n.md +1 -1
  43. package/docs/de/packages/react-intlayer/useIntlayer.md +1 -1
  44. package/docs/de/plugins/sync-json.md +10 -6
  45. package/docs/de/roadmap.md +1 -1
  46. package/docs/en/configuration.md +26 -10
  47. package/docs/en-GB/how_works_intlayer.md +1 -1
  48. package/docs/en-GB/index.md +1 -1
  49. package/docs/en-GB/intlayer_with_astro.md +2 -2
  50. package/docs/en-GB/intlayer_with_create_react_app.md +3 -3
  51. package/docs/en-GB/intlayer_with_express.md +1 -1
  52. package/docs/en-GB/intlayer_with_lynx+react.md +1 -1
  53. package/docs/en-GB/intlayer_with_nextjs_15.md +2 -2
  54. package/docs/en-GB/intlayer_with_nextjs_page_router.md +3 -3
  55. package/docs/en-GB/intlayer_with_react_native+expo.md +1 -1
  56. package/docs/en-GB/intlayer_with_react_router_v7.md +3 -3
  57. package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +3 -3
  58. package/docs/en-GB/intlayer_with_tanstack.md +3 -3
  59. package/docs/en-GB/intlayer_with_vite+preact.md +2 -2
  60. package/docs/en-GB/intlayer_with_vite+solid.md +2 -2
  61. package/docs/en-GB/intlayer_with_vite+vue.md +2 -2
  62. package/docs/en-GB/introduction.md +1 -1
  63. package/docs/en-GB/packages/next-intlayer/useDictionary.md +1 -1
  64. package/docs/en-GB/packages/next-intlayer/useIntlayer.md +1 -1
  65. package/docs/en-GB/packages/react-intlayer/useDictionary.md +1 -1
  66. package/docs/en-GB/packages/react-intlayer/useI18n.md +1 -1
  67. package/docs/en-GB/plugins/sync-json.md +10 -6
  68. package/docs/en-GB/roadmap.md +1 -1
  69. package/docs/es/how_works_intlayer.md +1 -1
  70. package/docs/es/index.md +1 -1
  71. package/docs/es/intlayer_with_astro.md +2 -2
  72. package/docs/es/intlayer_with_create_react_app.md +2 -2
  73. package/docs/es/intlayer_with_express.md +1 -1
  74. package/docs/es/intlayer_with_lynx+react.md +1 -1
  75. package/docs/es/intlayer_with_nextjs_14.md +2 -2
  76. package/docs/es/intlayer_with_nextjs_15.md +2 -2
  77. package/docs/es/intlayer_with_nextjs_page_router.md +3 -3
  78. package/docs/es/intlayer_with_react_native+expo.md +1 -1
  79. package/docs/es/intlayer_with_react_router_v7.md +3 -3
  80. package/docs/es/intlayer_with_react_router_v7_fs_routes.md +3 -3
  81. package/docs/es/intlayer_with_vite+preact.md +2 -2
  82. package/docs/es/intlayer_with_vite+solid.md +2 -2
  83. package/docs/es/intlayer_with_vite+vue.md +2 -2
  84. package/docs/es/introduction.md +1 -1
  85. package/docs/es/packages/next-intlayer/useDictionary.md +1 -1
  86. package/docs/es/packages/next-intlayer/useIntlayer.md +1 -1
  87. package/docs/es/packages/react-intlayer/useDictionary.md +1 -1
  88. package/docs/es/packages/react-intlayer/useI18n.md +1 -1
  89. package/docs/es/packages/react-intlayer/useIntlayer.md +1 -1
  90. package/docs/es/plugins/sync-json.md +10 -6
  91. package/docs/es/roadmap.md +1 -1
  92. package/docs/fr/how_works_intlayer.md +1 -1
  93. package/docs/fr/index.md +1 -1
  94. package/docs/fr/intlayer_with_astro.md +2 -2
  95. package/docs/fr/intlayer_with_create_react_app.md +2 -2
  96. package/docs/fr/intlayer_with_express.md +1 -1
  97. package/docs/fr/intlayer_with_lynx+react.md +1 -1
  98. package/docs/fr/intlayer_with_nextjs_14.md +2 -2
  99. package/docs/fr/intlayer_with_nextjs_15.md +2 -2
  100. package/docs/fr/intlayer_with_nextjs_page_router.md +3 -3
  101. package/docs/fr/intlayer_with_react_native+expo.md +1 -1
  102. package/docs/fr/intlayer_with_react_router_v7.md +3 -3
  103. package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +3 -3
  104. package/docs/fr/intlayer_with_vite+preact.md +2 -2
  105. package/docs/fr/intlayer_with_vite+solid.md +2 -2
  106. package/docs/fr/intlayer_with_vite+vue.md +2 -2
  107. package/docs/fr/introduction.md +1 -1
  108. package/docs/fr/packages/next-intlayer/useDictionary.md +1 -1
  109. package/docs/fr/packages/next-intlayer/useIntlayer.md +1 -1
  110. package/docs/fr/packages/react-intlayer/useDictionary.md +1 -1
  111. package/docs/fr/packages/react-intlayer/useI18n.md +1 -1
  112. package/docs/fr/packages/react-intlayer/useIntlayer.md +1 -1
  113. package/docs/fr/plugins/sync-json.md +10 -6
  114. package/docs/fr/roadmap.md +1 -1
  115. package/docs/hi/how_works_intlayer.md +1 -1
  116. package/docs/hi/index.md +1 -1
  117. package/docs/hi/intlayer_with_astro.md +2 -2
  118. package/docs/hi/intlayer_with_create_react_app.md +2 -2
  119. package/docs/hi/intlayer_with_express.md +1 -1
  120. package/docs/hi/intlayer_with_lynx+react.md +1 -1
  121. package/docs/hi/intlayer_with_nextjs_14.md +2 -2
  122. package/docs/hi/intlayer_with_nextjs_15.md +2 -2
  123. package/docs/hi/intlayer_with_nextjs_page_router.md +3 -3
  124. package/docs/hi/intlayer_with_react_native+expo.md +1 -1
  125. package/docs/hi/intlayer_with_react_router_v7.md +3 -3
  126. package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +3 -3
  127. package/docs/hi/intlayer_with_vite+preact.md +1 -1
  128. package/docs/hi/intlayer_with_vite+solid.md +1 -1
  129. package/docs/hi/intlayer_with_vite+vue.md +2 -2
  130. package/docs/hi/introduction.md +1 -1
  131. package/docs/hi/packages/next-intlayer/useDictionary.md +1 -1
  132. package/docs/hi/packages/next-intlayer/useIntlayer.md +1 -1
  133. package/docs/hi/packages/react-intlayer/useDictionary.md +1 -1
  134. package/docs/hi/packages/react-intlayer/useI18n.md +1 -1
  135. package/docs/hi/packages/react-intlayer/useIntlayer.md +1 -1
  136. package/docs/hi/plugins/sync-json.md +10 -6
  137. package/docs/hi/roadmap.md +1 -1
  138. package/docs/id/configuration.md +20 -8
  139. package/docs/id/intlayer_with_vite+preact.md +1 -1
  140. package/docs/id/plugins/sync-json.md +10 -6
  141. package/docs/it/how_works_intlayer.md +1 -1
  142. package/docs/it/index.md +1 -1
  143. package/docs/it/intlayer_with_astro.md +2 -2
  144. package/docs/it/intlayer_with_create_react_app.md +2 -2
  145. package/docs/it/intlayer_with_express.md +1 -1
  146. package/docs/it/intlayer_with_lynx+react.md +1 -1
  147. package/docs/it/intlayer_with_nextjs_14.md +2 -2
  148. package/docs/it/intlayer_with_nextjs_15.md +2 -2
  149. package/docs/it/intlayer_with_nextjs_page_router.md +3 -3
  150. package/docs/it/intlayer_with_react_native+expo.md +1 -1
  151. package/docs/it/intlayer_with_react_router_v7.md +3 -3
  152. package/docs/it/intlayer_with_react_router_v7_fs_routes.md +3 -3
  153. package/docs/it/intlayer_with_vite+preact.md +2 -2
  154. package/docs/it/intlayer_with_vite+solid.md +2 -2
  155. package/docs/it/intlayer_with_vite+vue.md +2 -2
  156. package/docs/it/introduction.md +1 -1
  157. package/docs/it/packages/next-intlayer/useDictionary.md +1 -1
  158. package/docs/it/packages/next-intlayer/useIntlayer.md +1 -1
  159. package/docs/it/packages/react-intlayer/useDictionary.md +1 -1
  160. package/docs/it/packages/react-intlayer/useI18n.md +1 -1
  161. package/docs/it/packages/react-intlayer/useIntlayer.md +1 -1
  162. package/docs/it/plugins/sync-json.md +10 -6
  163. package/docs/it/roadmap.md +1 -1
  164. package/docs/ja/how_works_intlayer.md +1 -1
  165. package/docs/ja/index.md +1 -1
  166. package/docs/ja/intlayer_with_astro.md +2 -2
  167. package/docs/ja/intlayer_with_create_react_app.md +2 -2
  168. package/docs/ja/intlayer_with_express.md +1 -1
  169. package/docs/ja/intlayer_with_lynx+react.md +1 -1
  170. package/docs/ja/intlayer_with_nextjs_14.md +2 -2
  171. package/docs/ja/intlayer_with_nextjs_15.md +2 -2
  172. package/docs/ja/intlayer_with_nextjs_page_router.md +3 -3
  173. package/docs/ja/intlayer_with_react_native+expo.md +1 -1
  174. package/docs/ja/intlayer_with_react_router_v7.md +3 -3
  175. package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +3 -3
  176. package/docs/ja/intlayer_with_vite+preact.md +2 -2
  177. package/docs/ja/intlayer_with_vite+solid.md +2 -2
  178. package/docs/ja/intlayer_with_vite+vue.md +2 -2
  179. package/docs/ja/introduction.md +1 -1
  180. package/docs/ja/packages/next-intlayer/useDictionary.md +1 -1
  181. package/docs/ja/packages/next-intlayer/useIntlayer.md +1 -1
  182. package/docs/ja/packages/react-intlayer/useDictionary.md +1 -1
  183. package/docs/ja/packages/react-intlayer/useI18n.md +1 -1
  184. package/docs/ja/packages/react-intlayer/useIntlayer.md +1 -1
  185. package/docs/ja/plugins/sync-json.md +10 -6
  186. package/docs/ja/roadmap.md +1 -1
  187. package/docs/ko/how_works_intlayer.md +1 -1
  188. package/docs/ko/index.md +1 -1
  189. package/docs/ko/intlayer_with_astro.md +2 -2
  190. package/docs/ko/intlayer_with_create_react_app.md +2 -2
  191. package/docs/ko/intlayer_with_express.md +1 -1
  192. package/docs/ko/intlayer_with_lynx+react.md +1 -1
  193. package/docs/ko/intlayer_with_nextjs_14.md +2 -2
  194. package/docs/ko/intlayer_with_nextjs_15.md +3 -3
  195. package/docs/ko/intlayer_with_nextjs_page_router.md +3 -3
  196. package/docs/ko/intlayer_with_react_native+expo.md +1 -1
  197. package/docs/ko/intlayer_with_react_router_v7.md +3 -3
  198. package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +3 -3
  199. package/docs/ko/intlayer_with_vite+preact.md +1 -1
  200. package/docs/ko/intlayer_with_vite+solid.md +2 -2
  201. package/docs/ko/intlayer_with_vite+vue.md +2 -2
  202. package/docs/ko/introduction.md +1 -1
  203. package/docs/ko/packages/next-intlayer/useDictionary.md +1 -1
  204. package/docs/ko/packages/next-intlayer/useIntlayer.md +1 -1
  205. package/docs/ko/packages/react-intlayer/useDictionary.md +1 -1
  206. package/docs/ko/packages/react-intlayer/useI18n.md +1 -1
  207. package/docs/ko/packages/react-intlayer/useIntlayer.md +1 -1
  208. package/docs/ko/plugins/sync-json.md +10 -6
  209. package/docs/ko/roadmap.md +1 -1
  210. package/docs/pl/configuration.md +20 -17
  211. package/docs/pl/intlayer_with_tanstack.md +3 -3
  212. package/docs/pl/plugins/sync-json.md +10 -6
  213. package/docs/pt/how_works_intlayer.md +1 -1
  214. package/docs/pt/index.md +1 -1
  215. package/docs/pt/intlayer_with_astro.md +2 -2
  216. package/docs/pt/intlayer_with_create_react_app.md +2 -2
  217. package/docs/pt/intlayer_with_express.md +1 -1
  218. package/docs/pt/intlayer_with_lynx+react.md +1 -1
  219. package/docs/pt/intlayer_with_nextjs_14.md +2 -2
  220. package/docs/pt/intlayer_with_nextjs_15.md +2 -2
  221. package/docs/pt/intlayer_with_nextjs_page_router.md +3 -3
  222. package/docs/pt/intlayer_with_react_native+expo.md +1 -1
  223. package/docs/pt/intlayer_with_react_router_v7.md +3 -3
  224. package/docs/pt/intlayer_with_tanstack.md +3 -3
  225. package/docs/pt/intlayer_with_vite+solid.md +2 -2
  226. package/docs/pt/intlayer_with_vite+vue.md +2 -2
  227. package/docs/pt/introduction.md +1 -1
  228. package/docs/pt/packages/next-intlayer/useDictionary.md +1 -1
  229. package/docs/pt/packages/next-intlayer/useIntlayer.md +1 -1
  230. package/docs/pt/packages/react-intlayer/useDictionary.md +1 -1
  231. package/docs/pt/packages/react-intlayer/useI18n.md +1 -1
  232. package/docs/pt/packages/react-intlayer/useIntlayer.md +1 -1
  233. package/docs/pt/plugins/sync-json.md +10 -6
  234. package/docs/pt/roadmap.md +1 -1
  235. package/docs/ru/how_works_intlayer.md +1 -1
  236. package/docs/ru/index.md +1 -1
  237. package/docs/ru/intlayer_with_astro.md +2 -2
  238. package/docs/ru/intlayer_with_create_react_app.md +2 -2
  239. package/docs/ru/intlayer_with_express.md +1 -1
  240. package/docs/ru/intlayer_with_lynx+react.md +1 -1
  241. package/docs/ru/intlayer_with_nextjs_14.md +2 -2
  242. package/docs/ru/intlayer_with_nextjs_15.md +2 -2
  243. package/docs/ru/intlayer_with_nextjs_page_router.md +3 -3
  244. package/docs/ru/intlayer_with_react_native+expo.md +1 -1
  245. package/docs/ru/intlayer_with_react_router_v7.md +3 -3
  246. package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +3 -3
  247. package/docs/ru/intlayer_with_tanstack.md +3 -3
  248. package/docs/ru/intlayer_with_vite+solid.md +2 -2
  249. package/docs/ru/intlayer_with_vite+vue.md +2 -2
  250. package/docs/ru/introduction.md +1 -1
  251. package/docs/ru/packages/next-intlayer/useDictionary.md +1 -1
  252. package/docs/ru/packages/next-intlayer/useIntlayer.md +1 -1
  253. package/docs/ru/packages/react-intlayer/useDictionary.md +1 -1
  254. package/docs/ru/packages/react-intlayer/useI18n.md +1 -1
  255. package/docs/ru/packages/react-intlayer/useIntlayer.md +1 -1
  256. package/docs/ru/plugins/sync-json.md +10 -6
  257. package/docs/ru/roadmap.md +1 -1
  258. package/docs/tr/intlayer_with_astro.md +2 -2
  259. package/docs/tr/intlayer_with_react_router_v7.md +3 -3
  260. package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +3 -3
  261. package/docs/tr/intlayer_with_tanstack.md +3 -3
  262. package/docs/tr/packages/next-intlayer/useDictionary.md +1 -1
  263. package/docs/tr/packages/next-intlayer/useIntlayer.md +1 -1
  264. package/docs/tr/packages/react-intlayer/useDictionary.md +1 -1
  265. package/docs/tr/packages/react-intlayer/useI18n.md +1 -1
  266. package/docs/tr/packages/react-intlayer/useIntlayer.md +1 -1
  267. package/docs/tr/plugins/sync-json.md +10 -6
  268. package/docs/uk/configuration.md +20 -17
  269. package/docs/uk/intlayer_with_tanstack.md +3 -3
  270. package/docs/vi/configuration.md +20 -17
  271. package/docs/vi/intlayer_with_tanstack.md +3 -3
  272. package/docs/vi/intlayer_with_vite+preact.md +1 -1
  273. package/docs/vi/plugins/sync-json.md +10 -6
  274. package/docs/zh/how_works_intlayer.md +1 -1
  275. package/docs/zh/index.md +1 -1
  276. package/docs/zh/intlayer_with_astro.md +2 -2
  277. package/docs/zh/intlayer_with_create_react_app.md +2 -2
  278. package/docs/zh/intlayer_with_express.md +1 -1
  279. package/docs/zh/intlayer_with_lynx+react.md +1 -1
  280. package/docs/zh/intlayer_with_nextjs_14.md +2 -2
  281. package/docs/zh/intlayer_with_nextjs_15.md +2 -2
  282. package/docs/zh/intlayer_with_nextjs_page_router.md +3 -3
  283. package/docs/zh/intlayer_with_react_native+expo.md +1 -1
  284. package/docs/zh/intlayer_with_react_router_v7.md +3 -3
  285. package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +3 -3
  286. package/docs/zh/intlayer_with_tanstack.md +1 -1
  287. package/docs/zh/intlayer_with_vite+solid.md +2 -2
  288. package/docs/zh/intlayer_with_vite+vue.md +2 -2
  289. package/docs/zh/introduction.md +1 -1
  290. package/docs/zh/packages/next-intlayer/useDictionary.md +1 -1
  291. package/docs/zh/packages/next-intlayer/useIntlayer.md +1 -1
  292. package/docs/zh/packages/react-intlayer/useDictionary.md +1 -1
  293. package/docs/zh/packages/react-intlayer/useI18n.md +1 -1
  294. package/docs/zh/packages/react-intlayer/useIntlayer.md +1 -1
  295. package/docs/zh/plugins/sync-json.md +10 -6
  296. package/docs/zh/roadmap.md +1 -1
  297. package/package.json +7 -7
@@ -69,7 +69,7 @@ history:
69
69
 
70
70
  ## Словарь
71
71
 
72
- Все ключи словаря должны быть объявлены в файлах декларации контента для повышения типобезопасности и избежания ошибок. Инструкции по настройке можно найти [здесь](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ru/dictionary/get_started.md).
72
+ Все ключи словаря должны быть объявлены в файлах декларации контента для повышения типобезопасности и избежания ошибок. Инструкции по настройке можно найти [здесь](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ru/dictionary/content_file.md).
73
73
 
74
74
  ## Пример использования в React
75
75
 
@@ -66,10 +66,10 @@ npm i -D @intlayer/sync-json-plugin
66
66
  Добавьте плагин в ваш `intlayer.config.ts` и укажите путь к вашей существующей структуре JSON.
67
67
 
68
68
  ```ts fileName="intlayer.config.ts"
69
- import { defineConfig, Locales } from "intlayer";
69
+ import { Locales, type IntlayerConfig } from "intlayer";
70
70
  import { syncJSON } from "@intlayer/sync-json-plugin";
71
71
 
72
- export default defineConfig({
72
+ const config: IntlayerConfig = {
73
73
  internationalization: {
74
74
  locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
75
75
  defaultLocale: Locales.ENGLISH,
@@ -82,7 +82,9 @@ export default defineConfig({
82
82
  source: ({ key, locale }) => `./locales/${locale}/${key}.json`,
83
83
  }),
84
84
  ],
85
- });
85
+ };
86
+
87
+ export default config;
86
88
  ```
87
89
 
88
90
  Альтернатива: один файл на локаль (распространено в настройках i18next/react-intl):
@@ -147,10 +149,10 @@ syncJSON({
147
149
  - Плагины с одинаковым приоритетом обрабатываются в порядке их появления в конфигурации
148
150
 
149
151
  ```ts fileName="intlayer.config.ts"
150
- import { defineConfig, Locales } from "intlayer";
152
+ import { Locales, type IntlayerConfig } from "intlayer";
151
153
  import { syncJSON } from "@intlayer/sync-json-plugin";
152
154
 
153
- export default defineConfig({
155
+ const config: IntlayerConfig = {
154
156
  internationalization: {
155
157
  locales: [Locales.ENGLISH, Locales.FRENCH],
156
158
  defaultLocale: Locales.ENGLISH,
@@ -181,7 +183,9 @@ export default defineConfig({
181
183
  priority: 1,
182
184
  }),
183
185
  ],
184
- });
186
+ };
187
+
188
+ export default config;
185
189
  ```
186
190
 
187
191
  ### Разрешение конфликтов
@@ -39,7 +39,7 @@ Intlayer - это решение для управления контентом
39
39
 
40
40
  > Ресурсы:
41
41
  >
42
- > - [Объявление контента](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ru/dictionary/get_started.md)
42
+ > - [Объявление контента](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ru/dictionary/content_file.md)
43
43
 
44
44
  ### 2. Интернационализация
45
45
 
@@ -67,7 +67,7 @@ yarn add react react-dom react-intlayer @astrojs/react
67
67
  ```
68
68
 
69
69
  - **intlayer**
70
- Yapılandırma yönetimi, çeviri, [içerik bildirimi](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md), transpile etme ve [CLI komutları](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/intlayer_cli.md) için uluslararasılaştırma araçları sağlayan temel paket.
70
+ Yapılandırma yönetimi, çeviri, [içerik bildirimi](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md), transpile etme ve [CLI komutları](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/intlayer_cli.md) için uluslararasılaştırma araçları sağlayan temel paket.
71
71
 
72
72
  - **astro-intlayer**
73
73
  Astro entegrasyon eklentisini içerir; bu eklenti, Intlayer'ı [Vite paketleyici](https://vite.dev/guide/why.html#why-bundle-for-production) ile entegre etmek için kullanılır ve ayrıca kullanıcının tercih ettiği yerel dili algılamak, çerezleri yönetmek ve URL yönlendirmesini işlemek için ara yazılım sağlar.
@@ -138,7 +138,7 @@ export default appContent;
138
138
 
139
139
  > İçerik bildirimleriniz, uygulamanızda `contentDir` dizinine (varsayılan olarak `./src`) dahil edildiği sürece herhangi bir yerde tanımlanabilir. Ve içerik bildirim dosya uzantısıyla eşleşmelidir (varsayılan olarak `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
140
140
 
141
- > Daha fazla detay için [içerik bildirim dokümantasyonuna](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md) bakabilirsiniz.
141
+ > Daha fazla detay için [içerik bildirim dokümantasyonuna](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md) bakabilirsiniz.
142
142
 
143
143
  ### Adım 5: İçeriğinizi Astro'da Kullanın
144
144
 
@@ -88,7 +88,7 @@ bunx intlayer init
88
88
 
89
89
  - **intlayer**
90
90
 
91
- - Uluslararasılaştırma araçlarını yapılandırma yönetimi, çeviri, [içerik beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md), transpile etme ve [CLI komutları](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/intlayer_cli.md) için sağlayan temel paket.
91
+ - Uluslararasılaştırma araçlarını yapılandırma yönetimi, çeviri, [içerik beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md), transpile etme ve [CLI komutları](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/intlayer_cli.md) için sağlayan temel paket.
92
92
 
93
93
  - **react-intlayer**
94
94
  Intlayer'ı React uygulamasıyla entegre eden paket. React uluslararasılaştırması için bağlam sağlayıcıları ve kancalar sunar.
@@ -288,7 +288,7 @@ export default pageContent;
288
288
 
289
289
  > İçerik bildirimleriniz, uygulamanızda `contentDir` dizinine (varsayılan olarak `./app`) dahil edildiği sürece herhangi bir yerde tanımlanabilir. Ve içerik bildirim dosya uzantısıyla eşleşmelidir (varsayılan olarak `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
290
290
 
291
- > Daha fazla detay için [içerik bildirim dokümantasyonuna](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md) bakınız.
291
+ > Daha fazla detay için [içerik bildirim dokümantasyonuna](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md) bakınız.
292
292
 
293
293
  ### Adım 7: Yerel Duyarlı Bileşenler Oluşturun
294
294
 
@@ -585,7 +585,7 @@ Daha ileri gitmek için, [görsel editörü](https://github.com/aymericzip/intla
585
585
  - [React Router v7 Dokümantasyonu](https://reactrouter.com/)
586
586
  - [useIntlayer hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/packages/react-intlayer/useIntlayer.md)
587
587
  - [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/packages/react-intlayer/useLocale.md)
588
- - [İçerik Beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md)
588
+ - [İçerik Beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md)
589
589
  - [Yapılandırma](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/configuration.md)
590
590
 
591
591
  Bu kapsamlı rehber, Intlayer'ı React Router v7 ile tam uluslararasılaştırılmış, yerel farkındalıklı yönlendirme ve TypeScript desteği olan bir uygulama için entegre etmeniz gereken her şeyi sağlar.
@@ -103,7 +103,7 @@ bunx intlayer init
103
103
 
104
104
  - **intlayer**
105
105
 
106
- - Uluslararasılaştırma araçlarını yapılandırma yönetimi, çeviri, [içerik beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md), transpile etme ve [CLI komutları](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/intlayer_cli.md) için sağlayan temel paket.
106
+ - Uluslararasılaştırma araçlarını yapılandırma yönetimi, çeviri, [içerik beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md), transpile etme ve [CLI komutları](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/intlayer_cli.md) için sağlayan temel paket.
107
107
 
108
108
  - **react-intlayer**
109
109
  Intlayer'ı React uygulamasıyla entegre eden paket. React uluslararasılaştırması için bağlam sağlayıcıları ve kancalar sunar.
@@ -428,7 +428,7 @@ export default aboutContent;
428
428
 
429
429
  > İçerik bildirimleriniz, uygulamanızda `contentDir` dizinine (varsayılan olarak `./app`) dahil edildiği sürece herhangi bir yerde tanımlanabilir. Ve içerik bildirim dosya uzantısıyla eşleşmelidir (varsayılan olarak `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
430
430
 
431
- > Daha fazla detay için [içerik bildirim dokümantasyonuna](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md) bakınız.
431
+ > Daha fazla detay için [içerik bildirim dokümantasyonuna](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md) bakınız.
432
432
 
433
433
  ### Adım 7: Yerel Duyarlı Bileşenler Oluşturun
434
434
 
@@ -655,7 +655,7 @@ Daha ileri gitmek için, [görsel editörü](https://github.com/aymericzip/intla
655
655
  - [React Router fs-routes Dokümantasyonu](https://reactrouter.com/how-to/file-route-conventions)
656
656
  - [useIntlayer hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/packages/react-intlayer/useIntlayer.md)
657
657
  - [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/packages/react-intlayer/useLocale.md)
658
- - [İçerik Beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md)
658
+ - [İçerik Beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md)
659
659
  - [Yapılandırma](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/configuration.md)
660
660
 
661
661
  Bu kapsamlı rehber, dosya sistemi tabanlı yönlendirme kullanarak React Router v7 ile Intlayer'ı entegre etmeniz için ihtiyacınız olan her şeyi sağlar, böylece yerel dil farkındalıklı yönlendirme ve TypeScript desteği ile tamamen uluslararasılaştırılmış bir uygulama elde edersiniz.
@@ -121,7 +121,7 @@ bunx intlayer init
121
121
 
122
122
  - **intlayer**
123
123
 
124
- Yapılandırma yönetimi, çeviri, [içerik bildirimi](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md), dönüştürme ve [CLI komutları](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/intlayer_cli.md) için uluslararasılaştırma araçları sağlayan temel paket.
124
+ Yapılandırma yönetimi, çeviri, [içerik bildirimi](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md), dönüştürme ve [CLI komutları](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/intlayer_cli.md) için uluslararasılaştırma araçları sağlayan temel paket.
125
125
 
126
126
  - **react-intlayer**
127
127
  Intlayer'ı React uygulamasıyla entegre eden paket. React uluslararasılaştırması için bağlam sağlayıcıları ve kancalar sunar.
@@ -302,7 +302,7 @@ export default appContent;
302
302
 
303
303
  > İçerik bildirimleriniz, uygulamanızda herhangi bir yerde tanımlanabilir, yeter ki `contentDir` dizinine dahil edilsin (varsayılan olarak, `./app`). Ve içerik bildirim dosya uzantısıyla eşleşmelidir (varsayılan olarak, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
304
304
 
305
- > Daha fazla ayrıntı için, [içerik bildirim dokümantasyonuna](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md) bakınız.
305
+ > Daha fazla ayrıntı için, [içerik bildirim dokümantasyonuna](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md) bakınız.
306
306
 
307
307
  ### Adım 8: Yerel Dili Algılayan Bileşenler ve Hook'lar Oluşturun
308
308
 
@@ -794,5 +794,5 @@ Daha ileri gitmek için, [görsel editörü](https://github.com/aymericzip/intla
794
794
  - [Tanstack Start Dokümantasyonu](https://reactrouter.com/)
795
795
  - [useIntlayer hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/packages/react-intlayer/useIntlayer.md)
796
796
  - [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/packages/react-intlayer/useLocale.md)
797
- - [İçerik Beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md)
797
+ - [İçerik Beyanı](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md)
798
798
  - [Yapılandırma](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/configuration.md)
@@ -69,7 +69,7 @@ Hook iki parametre kabul eder:
69
69
 
70
70
  ## Sözlük
71
71
 
72
- Tüm sözlük nesneleri, tür güvenliğini sağlamak ve çalışma zamanı hatalarını önlemek için yapılandırılmış içerik dosyalarında bildirilmelidir. [Kurulum talimatlarını burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md) bulabilirsiniz. İşte içerik bildirimi örneği:
72
+ Tüm sözlük nesneleri, tür güvenliğini sağlamak ve çalışma zamanı hatalarını önlemek için yapılandırılmış içerik dosyalarında bildirilmelidir. [Kurulum talimatlarını burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md) bulabilirsiniz. İşte içerik bildirimi örneği:
73
73
 
74
74
  ```typescript fileName="component.content.ts" codeFormat="typescript"
75
75
  import { t, type Dictionary } from "intlayer";
@@ -69,7 +69,7 @@ Next.js uygulamanızda istemci tarafı veya sunucu tarafı bileşenlerde çalı
69
69
 
70
70
  Çalışma zamanı hatalarını önlemek ve tür güvenliğini sağlamak için tüm içerik anahtarlarının içerik bildirim dosyalarında tanımlanması önemlidir. Bu yaklaşım ayrıca derleme zamanı doğrulaması için TypeScript entegrasyonunu kolaylaştırır.
71
71
 
72
- İçerik bildirim dosyalarının kurulumu için talimatlar [burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md) mevcuttur.
72
+ İçerik bildirim dosyalarının kurulumu için talimatlar [burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md) mevcuttur.
73
73
 
74
74
  ## Next.js'te Örnek Kullanım
75
75
 
@@ -74,7 +74,7 @@ Hook iki parametre kabul eder:
74
74
 
75
75
  ## Sözlük
76
76
 
77
- Tüm sözlük nesneleri, tür güvenliğini sağlamak ve çalışma zamanı hatalarını önlemek için yapılandırılmış içerik dosyalarında bildirilmelidir. [Kurulum talimatlarını burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md) bulabilirsiniz. İşte içerik bildirimi örneği:
77
+ Tüm sözlük nesneleri, tür güvenliğini sağlamak ve çalışma zamanı hatalarını önlemek için yapılandırılmış içerik dosyalarında bildirilmelidir. [Kurulum talimatlarını burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md) bulabilirsiniz. İşte içerik bildirimi örneği:
78
78
 
79
79
  ```typescript fileName="./component.content.ts" contentDeclarationFormat="typescript"
80
80
  import { t, type Dictionary } from "intlayer";
@@ -70,7 +70,7 @@ Bu hook iki parametre kabul eder:
70
70
 
71
71
  ## Sözlük
72
72
 
73
- Tüm sözlük anahtarları, tür güvenliğini geliştirmek ve hataları önlemek için içerik bildirim dosyalarında bildirilmelidir. [Yapılandırma talimatlarını burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md) bulabilirsiniz.
73
+ Tüm sözlük anahtarları, tür güvenliğini geliştirmek ve hataları önlemek için içerik bildirim dosyalarında bildirilmelidir. [Yapılandırma talimatlarını burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md) bulabilirsiniz.
74
74
 
75
75
  ## React'te Kullanım Örnekleri
76
76
 
@@ -69,7 +69,7 @@ Hook iki parametre kabul eder:
69
69
 
70
70
  ## Sözlük
71
71
 
72
- Tüm sözlük anahtarları, tür güvenliğini geliştirmek ve hataları önlemek için içerik bildirim dosyalarında bildirilmelidir. [Kurulum talimatlarını burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/get_started.md) bulabilirsiniz.
72
+ Tüm sözlük anahtarları, tür güvenliğini geliştirmek ve hataları önlemek için içerik bildirim dosyalarında bildirilmelidir. [Kurulum talimatlarını burada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/tr/dictionary/content_file.md) bulabilirsiniz.
73
73
 
74
74
  ## React'te Örnek Kullanım
75
75
 
@@ -66,10 +66,10 @@ npm i -D @intlayer/sync-json-plugin
66
66
  Eklentiyi `intlayer.config.ts` dosyanıza ekleyin ve mevcut JSON yapınıza işaret edin.
67
67
 
68
68
  ```ts fileName="intlayer.config.ts"
69
- import { defineConfig, Locales } from "intlayer";
69
+ import { Locales, type IntlayerConfig } from "intlayer";
70
70
  import { syncJSON } from "@intlayer/sync-json-plugin";
71
71
 
72
- export default defineConfig({
72
+ const config: IntlayerConfig = {
73
73
  internationalization: {
74
74
  locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
75
75
  defaultLocale: Locales.ENGLISH,
@@ -82,7 +82,9 @@ export default defineConfig({
82
82
  source: ({ key, locale }) => `./locales/${locale}/${key}.json`,
83
83
  }),
84
84
  ],
85
- });
85
+ };
86
+
87
+ export default config;
86
88
  ```
87
89
 
88
90
  Alternatif: her yerel için tek dosya (i18next/react-intl yapılandırmalarında yaygın):
@@ -148,10 +150,10 @@ Birden fazla eklenti aynı sözlük anahtarını hedeflediğinde, `priority` par
148
150
  - Aynı önceliğe sahip eklentiler, yapılandırmada göründükleri sırayla işlenir
149
151
 
150
152
  ```ts fileName="intlayer.config.ts"
151
- import { defineConfig, Locales } from "intlayer";
153
+ import { Locales, type IntlayerConfig } from "intlayer";
152
154
  import { syncJSON } from "@intlayer/sync-json-plugin";
153
155
 
154
- export default defineConfig({
156
+ const config: IntlayerConfig = {
155
157
  internationalization: {
156
158
  locales: [Locales.ENGLISH, Locales.FRENCH],
157
159
  defaultLocale: Locales.ENGLISH,
@@ -182,7 +184,9 @@ export default defineConfig({
182
184
  priority: 1,
183
185
  }),
184
186
  ],
185
- });
187
+ };
188
+
189
+ export default config;
186
190
  ```
187
191
 
188
192
  ### Çakışma çözümü
@@ -735,8 +735,9 @@ export default config;
735
735
  **Базова конфігурація (за замовчуванням)**:
736
736
 
737
737
  ```typescript
738
+ import { Locales, type IntlayerConfig } from "intlayer";
738
739
  // intlayer.config.ts
739
- export default defineConfig({
740
+ const config: IntlayerConfig = {
740
741
  internationalization: {
741
742
  locales: ["en", "fr", "es"],
742
743
  defaultLocale: "en",
@@ -745,16 +746,18 @@ export default defineConfig({
745
746
  mode: "prefix-no-default",
746
747
  storage: "localStorage",
747
748
  headerName: "x-intlayer-locale",
748
- basePath: "",
749
749
  },
750
- });
750
+ };
751
+
752
+ export default config;
751
753
  ```
752
754
 
753
755
  **Конфігурація, сумісна з GDPR**:
754
756
 
755
757
  ```typescript
758
+ import { Locales, type IntlayerConfig } from "intlayer";
756
759
  // intlayer.config.ts
757
- export default defineConfig({
760
+ const config: IntlayerConfig = {
758
761
  internationalization: {
759
762
  locales: ["en", "fr", "es"],
760
763
  defaultLocale: "en",
@@ -774,35 +777,36 @@ export default defineConfig({
774
777
  httpOnly: false,
775
778
  },
776
779
  ],
777
- headerName: "x-intlayer-locale",
778
- basePath: "",
779
780
  },
780
- });
781
+ };
782
+
783
+ export default config;
781
784
  ```
782
785
 
783
786
  **Режим параметрів пошуку**:
784
787
 
785
788
  ```typescript
789
+ import { Locales, type IntlayerConfig } from "intlayer";
786
790
  // intlayer.config.ts
787
- export default defineConfig({
791
+ const config: IntlayerConfig = {
788
792
  internationalization: {
789
793
  locales: ["en", "fr", "es"],
790
794
  defaultLocale: "en",
791
795
  },
792
796
  routing: {
793
797
  mode: "search-params",
794
- storage: "localStorage",
795
- headerName: "x-intlayer-locale",
796
- basePath: "",
797
798
  },
798
- });
799
+ };
800
+
801
+ export default config;
799
802
  ```
800
803
 
801
804
  **Режим без префікса з кастомним сховищем**:
802
805
 
803
806
  ```typescript
807
+ import { Locales, type IntlayerConfig } from "intlayer";
804
808
  // intlayer.config.ts
805
- export default defineConfig({
809
+ const config: IntlayerConfig = {
806
810
  internationalization: {
807
811
  locales: ["en", "fr", "es"],
808
812
  defaultLocale: "en",
@@ -811,12 +815,11 @@ export default defineConfig({
811
815
  mode: "no-prefix",
812
816
  storage: {
813
817
  type: "sessionStorage",
814
- name: "app-locale",
815
818
  },
816
- headerName: "x-custom-locale",
817
- basePath: "/my-app",
818
819
  },
819
- });
820
+ };
821
+
822
+ export default config;
820
823
  ```
821
824
 
822
825
  ---
@@ -121,7 +121,7 @@ bunx intlayer init
121
121
 
122
122
  - **intlayer**
123
123
 
124
- Основний пакет, який надає інструменти інтернаціоналізації для керування конфігурацією, перекладу, [оголошення контенту](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/dictionary/get_started.md), транспіляції та [команд CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/cli/index.md).
124
+ Основний пакет, який надає інструменти інтернаціоналізації для керування конфігурацією, перекладу, [оголошення контенту](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/dictionary/content_file.md), транспіляції та [команд CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/cli/index.md).
125
125
 
126
126
  - **react-intlayer**
127
127
  Пакет, який інтегрує Intlayer із React-застосунком. Надає провайдери контексту та хуки для інтернаціоналізації в React.
@@ -302,7 +302,7 @@ export default appContent;
302
302
 
303
303
  > Оголошення вмісту можна визначати будь-де у вашому застосунку, за умови, що вони включені у директорію `contentDir` (за замовчуванням, `./app`) та відповідають розширенню файлу декларації вмісту (за замовчуванням, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
304
304
 
305
- > Для детальнішої інформації зверніться до [документації з оголошення вмісту](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/dictionary/get_started.md).
305
+ > Для детальнішої інформації зверніться до [документації з оголошення вмісту](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/dictionary/content_file.md).
306
306
 
307
307
  ### Крок 8: Створіть компоненти та хуки, що враховують локаль
308
308
 
@@ -794,5 +794,5 @@ Intlayer використовує module augmentation, щоб отримати
794
794
  - [Документація Tanstack Start](https://reactrouter.com/)
795
795
  - [Хук useIntlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/packages/react-intlayer/useIntlayer.md)
796
796
  - [Хук useLocale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/packages/react-intlayer/useLocale.md)
797
- - [Оголошення контенту](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/dictionary/get_started.md)
797
+ - [Оголошення контенту](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/dictionary/content_file.md)
798
798
  - [Конфігурація](https://github.com/aymericzip/intlayer/blob/main/docs/docs/uk/configuration.md)
@@ -735,8 +735,9 @@ Dưới đây là một số ví dụ cấu hình phổ biến cho cấu trúc r
735
735
  **Cấu hình cơ bản (Mặc định)**:
736
736
 
737
737
  ```typescript
738
+ import { Locales, type IntlayerConfig } from "intlayer";
738
739
  // intlayer.config.ts
739
- export default defineConfig({
740
+ const config: IntlayerConfig = {
740
741
  internationalization: {
741
742
  locales: ["en", "fr", "es"],
742
743
  defaultLocale: "en",
@@ -745,16 +746,18 @@ export default defineConfig({
745
746
  mode: "prefix-no-default",
746
747
  storage: "localStorage",
747
748
  headerName: "x-intlayer-locale",
748
- basePath: "",
749
749
  },
750
- });
750
+ };
751
+
752
+ export default config;
751
753
  ```
752
754
 
753
755
  **Cấu hình tuân thủ GDPR**:
754
756
 
755
757
  ```typescript
758
+ import { Locales, type IntlayerConfig } from "intlayer";
756
759
  // intlayer.config.ts
757
- export default defineConfig({
760
+ const config: IntlayerConfig = {
758
761
  internationalization: {
759
762
  locales: ["en", "fr", "es"],
760
763
  defaultLocale: "en",
@@ -774,35 +777,36 @@ export default defineConfig({
774
777
  httpOnly: false,
775
778
  },
776
779
  ],
777
- headerName: "x-intlayer-locale",
778
- basePath: "",
779
780
  },
780
- });
781
+ };
782
+
783
+ export default config;
781
784
  ```
782
785
 
783
786
  **Chế độ Tham số Tìm kiếm**:
784
787
 
785
788
  ```typescript
789
+ import { Locales, type IntlayerConfig } from "intlayer";
786
790
  // intlayer.config.ts
787
- export default defineConfig({
791
+ const config: IntlayerConfig = {
788
792
  internationalization: {
789
793
  locales: ["en", "fr", "es"],
790
794
  defaultLocale: "en",
791
795
  },
792
796
  routing: {
793
797
  mode: "search-params",
794
- storage: "localStorage",
795
- headerName: "x-intlayer-locale",
796
- basePath: "",
797
798
  },
798
- });
799
+ };
800
+
801
+ export default config;
799
802
  ```
800
803
 
801
804
  **Chế độ Không Tiền Tố với Bộ Lưu Trữ Tùy Chỉnh**:
802
805
 
803
806
  ```typescript
807
+ import { Locales, type IntlayerConfig } from "intlayer";
804
808
  // intlayer.config.ts
805
- export default defineConfig({
809
+ const config: IntlayerConfig = {
806
810
  internationalization: {
807
811
  locales: ["en", "fr", "es"],
808
812
  defaultLocale: "en",
@@ -811,12 +815,11 @@ export default defineConfig({
811
815
  mode: "no-prefix",
812
816
  storage: {
813
817
  type: "sessionStorage",
814
- name: "app-locale",
815
818
  },
816
- headerName: "x-custom-locale",
817
- basePath: "/my-app",
818
819
  },
819
- });
820
+ };
821
+
822
+ export default config;
820
823
  ```
821
824
 
822
825
  ---
@@ -121,7 +121,7 @@ bunx intlayer init
121
121
 
122
122
  - **intlayer**
123
123
 
124
- Gói cốt lõi cung cấp các công cụ quốc tế hóa cho quản lý cấu hình, dịch thuật, [khai báo nội dung](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dictionary/get_started.md), biên dịch lại, và [các lệnh CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/intlayer_cli.md).
124
+ Gói cốt lõi cung cấp các công cụ quốc tế hóa cho quản lý cấu hình, dịch thuật, [khai báo nội dung](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dictionary/content_file.md), biên dịch lại, và [các lệnh CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/intlayer_cli.md).
125
125
 
126
126
  - **react-intlayer**
127
127
  Gói tích hợp Intlayer với ứng dụng React. Nó cung cấp các context provider và hook cho việc quốc tế hóa trong React.
@@ -302,7 +302,7 @@ export default appContent;
302
302
 
303
303
  > Các khai báo nội dung của bạn có thể được định nghĩa ở bất kỳ đâu trong ứng dụng của bạn miễn là chúng được bao gồm trong thư mục `contentDir` (mặc định là `./app`). Và phù hợp với phần mở rộng tệp khai báo nội dung (mặc định là `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
304
304
 
305
- > Để biết thêm chi tiết, hãy tham khảo [tài liệu khai báo nội dung](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dictionary/get_started.md).
305
+ > Để biết thêm chi tiết, hãy tham khảo [tài liệu khai báo nội dung](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dictionary/content_file.md).
306
306
 
307
307
  ### Bước 8: Tạo các Component và Hook nhận biết Locale
308
308
 
@@ -794,5 +794,5 @@ Tiện ích mở rộng này cung cấp:
794
794
  - [Tanstack Start Tài liệu](https://reactrouter.com/)
795
795
  - [Hook useIntlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/packages/react-intlayer/useIntlayer.md)
796
796
  - [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/packages/react-intlayer/useLocale.md)
797
- - [Khai báo nội dung](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dictionary/get_started.md)
797
+ - [Khai báo nội dung](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dictionary/content_file.md)
798
798
  - [Cấu hình](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/configuration.md)
@@ -428,7 +428,7 @@ module.exports = appContent;
428
428
 
429
429
  > Các khai báo nội dung của bạn có thể được định nghĩa ở bất kỳ đâu trong ứng dụng của bạn miễn là chúng được đưa vào thư mục `contentDir` (mặc định là `./src`). Và phải phù hợp với phần mở rộng của file khai báo nội dung (mặc định là `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
430
430
 
431
- > Để biết thêm chi tiết, hãy tham khảo [tài liệu khai báo nội dung](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dictionary/get_started.md).
431
+ > Để biết thêm chi tiết, hãy tham khảo [tài liệu khai báo nội dung](https://github.com/aymericzip/intlayer/blob/main/docs/docs/vi/dictionary/content_file.md).
432
432
 
433
433
  > Nếu file nội dung của bạn bao gồm mã TSX, bạn có thể cần import `import { h } from "preact";` hoặc đảm bảo pragma JSX của bạn được thiết lập đúng cho Preact.
434
434
 
@@ -66,10 +66,10 @@ npm i -D @intlayer/sync-json-plugin
66
66
  Thêm plugin vào `intlayer.config.ts` của bạn và trỏ nó đến cấu trúc JSON hiện có của bạn.
67
67
 
68
68
  ```ts fileName="intlayer.config.ts"
69
- import { defineConfig, Locales } from "intlayer";
69
+ import { Locales, type IntlayerConfig } from "intlayer";
70
70
  import { syncJSON } from "@intlayer/sync-json-plugin";
71
71
 
72
- export default defineConfig({
72
+ const config: IntlayerConfig = {
73
73
  internationalization: {
74
74
  locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
75
75
  defaultLocale: Locales.ENGLISH,
@@ -82,7 +82,9 @@ export default defineConfig({
82
82
  source: ({ key, locale }) => `./locales/${locale}/${key}.json`,
83
83
  }),
84
84
  ],
85
- });
85
+ };
86
+
87
+ export default config;
86
88
  ```
87
89
 
88
90
  Phương án thay thế: một tệp duy nhất cho mỗi locale (thường dùng với i18next/react-intl):
@@ -147,10 +149,10 @@ Khi nhiều plugin cùng nhắm tới cùng một khóa từ điển, tham số
147
149
  - Các plugin có cùng mức ưu tiên sẽ được xử lý theo thứ tự xuất hiện trong cấu hình
148
150
 
149
151
  ```ts fileName="intlayer.config.ts"
150
- import { defineConfig, Locales } from "intlayer";
152
+ import { Locales, type IntlayerConfig } from "intlayer";
151
153
  import { syncJSON } from "@intlayer/sync-json-plugin";
152
154
 
153
- export default defineConfig({
155
+ const config: IntlayerConfig = {
154
156
  internationalization: {
155
157
  locales: [Locales.ENGLISH, Locales.FRENCH],
156
158
  defaultLocale: Locales.ENGLISH,
@@ -181,7 +183,9 @@ export default defineConfig({
181
183
  priority: 1,
182
184
  }),
183
185
  ],
184
- });
186
+ };
187
+
188
+ export default config;
185
189
  ```
186
190
 
187
191
  ### Giải quyết xung đột
@@ -78,7 +78,7 @@ const MyComponent = () => {
78
78
 
79
79
  此钩子将为您管理语言环境检测,并返回当前语言环境的内容。通过此钩子,您还可以解释 markdown、管理复数化等。
80
80
 
81
- > 要查看 Intlayer 的所有功能,您可以阅读 [字典文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
81
+ > 要查看 Intlayer 的所有功能,您可以阅读 [字典文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
82
82
 
83
83
  ## 远程内容
84
84
 
package/docs/zh/index.md CHANGED
@@ -55,7 +55,7 @@ Intlayer 提供了一种灵活且现代化的应用翻译方案。我们的文
55
55
 
56
56
  将您的多语言内容组织在代码附近,保持所有内容的一致性和可维护性。
57
57
 
58
- - **[入门指南](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)**
58
+ - **[入门指南](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)**
59
59
  学习在 Intlayer 中声明内容的基础知识。
60
60
 
61
61
  - **[翻译](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/translation.md)**
@@ -67,7 +67,7 @@ yarn add react react-dom react-intlayer @astrojs/react
67
67
  ```
68
68
 
69
69
  - **intlayer**
70
- 核心包,提供国际化工具,用于配置管理、翻译、[内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)、转译以及[命令行工具](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/intlayer_cli.md)。
70
+ 核心包,提供国际化工具,用于配置管理、翻译、[内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)、转译以及[命令行工具](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/intlayer_cli.md)。
71
71
 
72
72
  - **astro-intlayer**
73
73
  包括用于将 Intlayer 与 [Vite 打包工具](https://vite.dev/guide/why.html#why-bundle-for-production) 集成的 Astro 集成插件,以及用于检测用户首选语言环境、管理 Cookie 和处理 URL 重定向的中间件。
@@ -138,7 +138,7 @@ export default appContent;
138
138
 
139
139
  > 您的内容声明可以定义在应用程序中的任何位置,只要它们被包含在 `contentDir` 目录中(默认是 `./src`)。并且文件扩展名需匹配内容声明文件扩展名(默认是 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)。
140
140
 
141
- > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
141
+ > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
142
142
 
143
143
  ### 第5步:在 Astro 中使用您的内容
144
144
 
@@ -68,7 +68,7 @@ bunx intlayer init
68
68
 
69
69
  - **intlayer**
70
70
 
71
- 提供用于配置管理、翻译、[内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)、转译和 [CLI 命令](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/intlayer_cli.md) 的核心包。
71
+ 提供用于配置管理、翻译、[内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)、转译和 [CLI 命令](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/intlayer_cli.md) 的核心包。
72
72
 
73
73
  - **react-intlayer**
74
74
 
@@ -284,7 +284,7 @@ module.exports = appContent;
284
284
 
285
285
  > 您的内容声明可以在应用程序中的任何位置定义,只要它们包含在 `contentDir` 目录中(默认情况下为 `./src`),并且文件扩展名符合内容声明的要求(默认情况下为 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)。
286
286
 
287
- > 有关更多详细信息,请参阅 [内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
287
+ > 有关更多详细信息,请参阅 [内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
288
288
 
289
289
  > 如果您的内容文件包含 TSX 代码,您应该考虑在内容文件中导入 `import React from "react";`。
290
290