@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
@@ -223,7 +223,7 @@ module.exports = indexContent;
223
223
 
224
224
  > 您可以在应用程序中的任何位置定义内容声明,只要它们包含在 `contentDir` 目录中(默认是 `./src`),并且文件扩展名符合内容声明格式(默认是 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)。
225
225
 
226
- > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
226
+ > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
227
227
 
228
228
  ### Express 应用程序设置
229
229
 
@@ -368,7 +368,7 @@ module.exports = appContent;
368
368
  }
369
369
  ```
370
370
 
371
- > 有关内容声明的详细信息,请参阅 [Intlayer 的内容文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
371
+ > 有关内容声明的详细信息,请参阅 [Intlayer 的内容文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
372
372
 
373
373
  ---
374
374
 
@@ -73,7 +73,7 @@ bunx intlayer init
73
73
 
74
74
  - **intlayer**
75
75
 
76
- 核心包,提供用于配置管理、翻译、[内容声明](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)的国际化工具。
76
+ 核心包,提供用于配置管理、翻译、[内容声明](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)的国际化工具。
77
77
 
78
78
  - **next-intlayer**
79
79
 
@@ -432,7 +432,7 @@ module.exports = pageContent;
432
432
  "en": "src/app/page.tsx",
433
433
  > 您的内容声明可以在应用程序中的任何位置定义,只要它们被包含在 `contentDir` 目录中(默认是 `./src`),并且符合内容声明文件的扩展名(默认是 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)。
434
434
 
435
- > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
435
+ > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
436
436
 
437
437
  ### 第7步:在代码中使用内容
438
438
 
@@ -76,7 +76,7 @@ bunx intlayer init
76
76
 
77
77
  - **intlayer**
78
78
 
79
- 核心包,提供用于配置管理、翻译、[内容声明](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)的国际化工具。
79
+ 核心包,提供用于配置管理、翻译、[内容声明](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)的国际化工具。
80
80
 
81
81
  - **next-intlayer**
82
82
 
@@ -427,7 +427,7 @@ module.exports = pageContent;
427
427
 
428
428
  > 您的内容声明可以在应用程序中的任何位置定义,只要它们被包含在 `contentDir` 目录中(默认是 `./src`)。并且文件扩展名需匹配内容声明文件扩展名(默认是 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)。
429
429
 
430
- > 更多详情,请参考[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
430
+ > 更多详情,请参考[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
431
431
 
432
432
  ### 第6步:在代码中使用内容
433
433
 
@@ -70,7 +70,7 @@ bunx intlayer init
70
70
 
71
71
  - **intlayer**
72
72
 
73
- 核心包,提供用于配置管理、翻译、[内容声明](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)的国际化工具。
73
+ 核心包,提供用于配置管理、翻译、[内容声明](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)的国际化工具。
74
74
 
75
75
  - **next-intlayer**
76
76
 
@@ -442,7 +442,7 @@ module.exports = homeContent;
442
442
  }
443
443
  ```
444
444
 
445
- 有关声明内容的更多信息,请参阅[内容声明指南](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
445
+ 有关声明内容的更多信息,请参阅[内容声明指南](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
446
446
 
447
447
  ### 第7步:在代码中使用内容
448
448
 
@@ -1486,7 +1486,7 @@ Intlayer 使用模块增强(module augmentation)来利用 TypeScript 的优
1486
1486
  ## 其他资源
1487
1487
 
1488
1488
  - **Intlayer 文档:** [GitHub 仓库](https://github.com/aymericzip/intlayer)
1489
- - **词典指南:** [词典](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)
1489
+ - **词典指南:** [词典](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)
1490
1490
  - **配置文档:** [配置指南](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/configuration.md)
1491
1491
 
1492
1492
  通过遵循本指南,您可以将 Intlayer 有效集成到使用页面路由的 Next.js 应用程序中,为您的 Web 项目提供强大且可扩展的国际化支持。
@@ -370,7 +370,7 @@ module.exports = appContent;
370
370
  }
371
371
  ```
372
372
 
373
- > 有关内容声明的详细信息,请参阅 [Intlayer 内容文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
373
+ > 有关内容声明的详细信息,请参阅 [Intlayer 内容文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
374
374
 
375
375
  ---
376
376
 
@@ -90,7 +90,7 @@ bunx intlayer init
90
90
 
91
91
  - **intlayer**
92
92
 
93
- 提供国际化工具的核心包,用于配置管理、翻译、[内容声明](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)。
93
+ 提供国际化工具的核心包,用于配置管理、翻译、[内容声明](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)。
94
94
 
95
95
  - **react-intlayer**
96
96
  将 Intlayer 集成到 React 应用中的包。它提供了 React 国际化的上下文提供者和钩子。
@@ -291,7 +291,7 @@ export default pageContent;
291
291
 
292
292
  > 您的内容声明可以定义在应用程序中的任何位置,只要它们被包含在 `contentDir` 目录中(默认是 `./app`)。并且文件扩展名需匹配内容声明文件扩展名(默认是 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)。
293
293
 
294
- > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
294
+ > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
295
295
 
296
296
  ### 第7步:创建支持多语言的组件
297
297
 
@@ -586,7 +586,7 @@ Intlayer 使用模块增强来利用 TypeScript 的优势,使您的代码库
586
586
  - [React Router v7 文档](https://reactrouter.com/)
587
587
  - [useIntlayer 钩子](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/react-intlayer/useIntlayer.md)
588
588
  - [useLocale 钩子](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/react-intlayer/useLocale.md)
589
- - [内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)
589
+ - [内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)
590
590
  - [配置](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/configuration.md)
591
591
 
592
592
  本综合指南提供了将 Intlayer 与 React Router v7 集成所需的一切,支持完全国际化的应用程序,具备基于区域设置的路由和 TypeScript 支持。
@@ -89,7 +89,7 @@ bunx intlayer init
89
89
 
90
90
  - **intlayer**
91
91
 
92
- 提供国际化工具的核心包,用于配置管理、翻译、[内容声明](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)。
92
+ 提供国际化工具的核心包,用于配置管理、翻译、[内容声明](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)。
93
93
 
94
94
  - **react-intlayer**
95
95
  将 Intlayer 集成到 React 应用中的包。它提供了 React 国际化的上下文提供者和钩子。
@@ -261,7 +261,7 @@ export default pageContent;
261
261
 
262
262
  > 您的内容声明可以定义在应用程序中的任何位置,只要它们被包含在 `contentDir` 目录中(默认是 `./app`)。并且文件扩展名需匹配内容声明文件扩展名(默认是 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)。
263
263
 
264
- > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
264
+ > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
265
265
 
266
266
  ### 第7步:创建支持多语言的组件
267
267
 
@@ -531,7 +531,7 @@ Intlayer 使用模块增强来利用 TypeScript 的优势,使您的代码库
531
531
  - [React Router v7 文档](https://reactrouter.com/)
532
532
  - [useIntlayer 钩子](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/react-intlayer/useIntlayer.md)
533
533
  - [useLocale 钩子](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/react-intlayer/useLocale.md)
534
- - [内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)
534
+ - [内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)
535
535
  - [配置](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/configuration.md)
536
536
 
537
537
  本综合指南提供了将 Intlayer 与 React Router v7 集成所需的一切,支持完全国际化的应用程序,具备基于区域设置的路由和 TypeScript 支持。
@@ -798,5 +798,5 @@ Intlayer 使用模块增强来利用 TypeScript 的优势,使您的代码库
798
798
  - [Tanstack Start 文档](https://reactrouter.com/)
799
799
  - [useIntlayer 钩子](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/react-intlayer/useIntlayer.md)
800
800
  - [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/packages/react-intlayer/useLocale.md)
801
- - [内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)
801
+ - [内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)
802
802
  - [配置](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/configuration.md)
@@ -103,7 +103,7 @@ bunx intlayer init
103
103
  - **intlayer**
104
104
 
105
105
  - **intlayer**
106
- 提供国际化工具的核心包,用于配置管理、翻译、[内容声明](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)。
106
+ 提供国际化工具的核心包,用于配置管理、翻译、[内容声明](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)。
107
107
 
108
108
  - **solid-intlayer**
109
109
  将 Intlayer 集成到 Solid 应用中的包。它提供了 Solid 国际化的上下文提供者和钩子。
@@ -263,7 +263,7 @@ module.exports = appContent;
263
263
 
264
264
  > 您的内容声明可以在应用程序中的任何位置定义,只要它们被包含在 `contentDir` 目录中(默认是 `./src`)。并且文件扩展名需匹配内容声明文件扩展名(默认是 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)。
265
265
 
266
- > 更多详情,请参考[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
266
+ > 更多详情,请参考[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
267
267
 
268
268
  ### 第5步:在代码中使用 Intlayer
269
269
 
@@ -95,7 +95,7 @@ bunx intlayer init
95
95
 
96
96
  - **intlayer**
97
97
 
98
- 核心包,提供国际化工具,用于配置管理、翻译、[内容声明](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)。
98
+ 核心包,提供国际化工具,用于配置管理、翻译、[内容声明](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)。
99
99
 
100
100
  - **vue-intlayer**
101
101
  将 Intlayer 集成到 Vue 应用中的包,提供 Vue 国际化的上下文提供者和组合式函数。
@@ -426,7 +426,7 @@ module.exports = appContent;
426
426
 
427
427
  > 您的内容声明可以定义在应用程序中的任何位置,只要它们被包含在 `contentDir` 目录中(默认是 `./src`)。并且文件扩展名需匹配内容声明的文件扩展名(默认是 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)。
428
428
 
429
- > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
429
+ > 更多详情,请参阅[内容声明文档](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
430
430
 
431
431
  ### 第5步:在代码中使用 Intlayer
432
432
 
@@ -157,7 +157,7 @@ Intlayer 提供了多种功能,专为满足现代网页开发的需求而设
157
157
 
158
158
  将您的多语言内容组织在代码附近,保持内容一致且易于维护。
159
159
 
160
- - **[入门指南](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)**
160
+ - **[入门指南](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)**
161
161
  学习在 Intlayer 中声明内容的基础知识。
162
162
 
163
163
  - **[翻译](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/translation.md)**
@@ -69,7 +69,7 @@ history:
69
69
 
70
70
  ## 字典
71
71
 
72
- 所有字典对象都应声明在结构化内容文件中,以确保类型安全并防止运行时错误。您可以在[此处找到设置说明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。以下是内容声明的示例:
72
+ 所有字典对象都应声明在结构化内容文件中,以确保类型安全并防止运行时错误。您可以在[此处找到设置说明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。以下是内容声明的示例:
73
73
 
74
74
  ```typescript fileName="component.content.ts" codeFormat="typescript"
75
75
  import { t, type Dictionary } from "intlayer";
@@ -69,7 +69,7 @@ history:
69
69
 
70
70
  确保所有内容键都在内容声明文件中定义,以防止运行时错误并确保类型安全。这种方法还便于 TypeScript 集成,实现编译时验证。
71
71
 
72
- 有关设置内容声明文件的说明,请参见[此处](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
72
+ 有关设置内容声明文件的说明,请参见[此处](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
73
73
 
74
74
  ## 在 Next.js 中的示例用法
75
75
 
@@ -68,7 +68,7 @@ history:
68
68
 
69
69
  ## 字典
70
70
 
71
- 所有字典对象都应声明在结构化内容文件中,以确保类型安全并防止运行时错误。您可以在[此处找到设置说明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。以下是内容声明的示例:
71
+ 所有字典对象都应声明在结构化内容文件中,以确保类型安全并防止运行时错误。您可以在[此处找到设置说明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。以下是内容声明的示例:
72
72
 
73
73
  ```typescript fileName="./component.content.ts" contentDeclarationFormat="typescript"
74
74
  import { t, type Dictionary } from "intlayer";
@@ -70,7 +70,7 @@ history:
70
70
 
71
71
  ## 字典
72
72
 
73
- 所有字典键必须在内容声明文件中声明,以增强类型安全并防止错误。[配置说明请参见此处](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
73
+ 所有字典键必须在内容声明文件中声明,以增强类型安全并防止错误。[配置说明请参见此处](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)。
74
74
 
75
75
  ## React 中的使用示例
76
76
 
@@ -69,7 +69,7 @@ history:
69
69
 
70
70
  ## 字典
71
71
 
72
- 所有字典键必须在内容声明文件中声明,以增强类型安全并避免错误。您可以在[此处找到设置说明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/get_started.md)。
72
+ 所有字典键必须在内容声明文件中声明,以增强类型安全并避免错误。您可以在[此处找到设置说明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/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/zh/dictionary/get_started.md)
42
+ > - [内容声明](https://github.com/aymericzip/intlayer/blob/main/docs/docs/zh/dictionary/content_file.md)
43
43
 
44
44
  ### 2. 国际化
45
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/docs",
3
- "version": "8.1.9",
3
+ "version": "8.1.10",
4
4
  "private": false,
5
5
  "description": "Intlayer documentation",
6
6
  "keywords": [
@@ -72,14 +72,14 @@
72
72
  "watch": "webpack --config ./webpack.config.ts --watch"
73
73
  },
74
74
  "dependencies": {
75
- "@intlayer/config": "8.1.9",
76
- "@intlayer/core": "8.1.9",
77
- "@intlayer/types": "8.1.9"
75
+ "@intlayer/config": "8.1.10",
76
+ "@intlayer/core": "8.1.10",
77
+ "@intlayer/types": "8.1.10"
78
78
  },
79
79
  "devDependencies": {
80
- "@intlayer/api": "8.1.9",
81
- "@intlayer/cli": "8.1.9",
82
- "@types/node": "25.3.0",
80
+ "@intlayer/api": "8.1.10",
81
+ "@intlayer/cli": "8.1.10",
82
+ "@types/node": "25.3.3",
83
83
  "@utils/ts-config": "1.0.4",
84
84
  "@utils/ts-config-types": "1.0.4",
85
85
  "@utils/tsdown-config": "1.0.4",