@intlayer/docs 5.5.11 → 5.5.12

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 (313) hide show
  1. package/blog/ar/intlayer_with_next-intl.md +0 -1
  2. package/blog/ar/list_i18n_technologies/CMS/wordpress.md +1 -1
  3. package/blog/ar/list_i18n_technologies/frameworks/angular.md +1 -1
  4. package/blog/ar/list_i18n_technologies/frameworks/flutter.md +1 -1
  5. package/blog/ar/list_i18n_technologies/frameworks/react-native.md +1 -1
  6. package/blog/ar/list_i18n_technologies/frameworks/react.md +1 -1
  7. package/blog/ar/list_i18n_technologies/frameworks/svelte.md +1 -1
  8. package/blog/ar/list_i18n_technologies/frameworks/vue.md +1 -1
  9. package/blog/ar/what_is_internationalization.md +2 -2
  10. package/blog/de/intlayer_with_next-intl.md +0 -1
  11. package/blog/de/list_i18n_technologies/CMS/wordpress.md +1 -1
  12. package/blog/de/list_i18n_technologies/frameworks/angular.md +1 -1
  13. package/blog/de/list_i18n_technologies/frameworks/flutter.md +1 -1
  14. package/blog/de/list_i18n_technologies/frameworks/react-native.md +1 -1
  15. package/blog/de/list_i18n_technologies/frameworks/react.md +1 -1
  16. package/blog/de/list_i18n_technologies/frameworks/svelte.md +1 -1
  17. package/blog/de/list_i18n_technologies/frameworks/vue.md +1 -1
  18. package/blog/de/what_is_internationalization.md +2 -2
  19. package/blog/en/intlayer_with_next-intl.md +0 -1
  20. package/blog/en/list_i18n_technologies/CMS/wordpress.md +1 -1
  21. package/blog/en/list_i18n_technologies/frameworks/angular.md +1 -1
  22. package/blog/en/list_i18n_technologies/frameworks/flutter.md +1 -1
  23. package/blog/en/list_i18n_technologies/frameworks/react-native.md +1 -1
  24. package/blog/en/list_i18n_technologies/frameworks/react.md +1 -1
  25. package/blog/en/list_i18n_technologies/frameworks/svelte.md +1 -1
  26. package/blog/en/list_i18n_technologies/frameworks/vue.md +1 -1
  27. package/blog/en/what_is_internationalization.md +2 -2
  28. package/blog/en-GB/intlayer_with_next-intl.md +0 -1
  29. package/blog/en-GB/list_i18n_technologies/CMS/wordpress.md +1 -1
  30. package/blog/en-GB/list_i18n_technologies/frameworks/angular.md +1 -1
  31. package/blog/en-GB/list_i18n_technologies/frameworks/flutter.md +1 -1
  32. package/blog/en-GB/list_i18n_technologies/frameworks/react-native.md +1 -1
  33. package/blog/en-GB/list_i18n_technologies/frameworks/svelte.md +1 -1
  34. package/blog/en-GB/list_i18n_technologies/frameworks/vue.md +1 -1
  35. package/blog/en-GB/what_is_internationalization.md +2 -2
  36. package/blog/es/intlayer_with_next-intl.md +0 -1
  37. package/blog/es/list_i18n_technologies/CMS/wordpress.md +1 -1
  38. package/blog/es/list_i18n_technologies/frameworks/angular.md +1 -1
  39. package/blog/es/list_i18n_technologies/frameworks/flutter.md +1 -1
  40. package/blog/es/list_i18n_technologies/frameworks/react-native.md +1 -1
  41. package/blog/es/list_i18n_technologies/frameworks/react.md +1 -1
  42. package/blog/es/list_i18n_technologies/frameworks/svelte.md +1 -1
  43. package/blog/es/list_i18n_technologies/frameworks/vue.md +1 -1
  44. package/blog/es/what_is_internationalization.md +2 -2
  45. package/blog/fr/intlayer_with_next-intl.md +0 -1
  46. package/blog/fr/list_i18n_technologies/CMS/wordpress.md +1 -1
  47. package/blog/fr/list_i18n_technologies/frameworks/angular.md +1 -1
  48. package/blog/fr/list_i18n_technologies/frameworks/flutter.md +1 -1
  49. package/blog/fr/list_i18n_technologies/frameworks/react-native.md +1 -1
  50. package/blog/fr/list_i18n_technologies/frameworks/react.md +1 -1
  51. package/blog/fr/list_i18n_technologies/frameworks/svelte.md +1 -1
  52. package/blog/fr/list_i18n_technologies/frameworks/vue.md +1 -1
  53. package/blog/fr/what_is_internationalization.md +2 -2
  54. package/blog/hi/list_i18n_technologies/CMS/wordpress.md +1 -1
  55. package/blog/hi/list_i18n_technologies/frameworks/angular.md +1 -1
  56. package/blog/hi/list_i18n_technologies/frameworks/flutter.md +1 -1
  57. package/blog/hi/list_i18n_technologies/frameworks/react-native.md +1 -1
  58. package/blog/hi/list_i18n_technologies/frameworks/react.md +1 -1
  59. package/blog/hi/list_i18n_technologies/frameworks/svelte.md +1 -1
  60. package/blog/hi/list_i18n_technologies/frameworks/vue.md +1 -1
  61. package/blog/hi/what_is_internationalization.md +2 -2
  62. package/blog/it/intlayer_with_next-intl.md +0 -1
  63. package/blog/it/list_i18n_technologies/CMS/wordpress.md +1 -1
  64. package/blog/it/list_i18n_technologies/frameworks/angular.md +1 -1
  65. package/blog/it/list_i18n_technologies/frameworks/react-native.md +1 -1
  66. package/blog/it/list_i18n_technologies/frameworks/react.md +1 -1
  67. package/blog/it/list_i18n_technologies/frameworks/svelte.md +1 -1
  68. package/blog/it/list_i18n_technologies/frameworks/vue.md +1 -1
  69. package/blog/it/what_is_internationalization.md +2 -2
  70. package/blog/ja/intlayer_with_next-intl.md +0 -1
  71. package/blog/ja/list_i18n_technologies/CMS/wordpress.md +1 -1
  72. package/blog/ja/list_i18n_technologies/frameworks/angular.md +1 -1
  73. package/blog/ja/list_i18n_technologies/frameworks/flutter.md +1 -1
  74. package/blog/ja/list_i18n_technologies/frameworks/react-native.md +1 -1
  75. package/blog/ja/list_i18n_technologies/frameworks/react.md +1 -1
  76. package/blog/ja/list_i18n_technologies/frameworks/svelte.md +1 -1
  77. package/blog/ja/list_i18n_technologies/frameworks/vue.md +1 -1
  78. package/blog/ja/what_is_internationalization.md +2 -2
  79. package/blog/ko/intlayer_with_next-intl.md +0 -1
  80. package/blog/ko/list_i18n_technologies/CMS/wordpress.md +1 -1
  81. package/blog/ko/list_i18n_technologies/frameworks/angular.md +1 -1
  82. package/blog/ko/list_i18n_technologies/frameworks/react-native.md +1 -1
  83. package/blog/ko/list_i18n_technologies/frameworks/react.md +1 -1
  84. package/blog/ko/list_i18n_technologies/frameworks/vue.md +1 -1
  85. package/blog/pt/intlayer_with_next-intl.md +0 -1
  86. package/blog/pt/list_i18n_technologies/CMS/wordpress.md +1 -1
  87. package/blog/pt/list_i18n_technologies/frameworks/angular.md +1 -1
  88. package/blog/pt/list_i18n_technologies/frameworks/flutter.md +1 -1
  89. package/blog/pt/list_i18n_technologies/frameworks/react-native.md +1 -1
  90. package/blog/pt/list_i18n_technologies/frameworks/react.md +1 -1
  91. package/blog/pt/list_i18n_technologies/frameworks/svelte.md +1 -1
  92. package/blog/pt/list_i18n_technologies/frameworks/vue.md +1 -1
  93. package/blog/pt/what_is_internationalization.md +2 -2
  94. package/blog/ru/intlayer_with_next-intl.md +0 -1
  95. package/blog/ru/list_i18n_technologies/CMS/wordpress.md +1 -1
  96. package/blog/ru/list_i18n_technologies/frameworks/angular.md +1 -1
  97. package/blog/ru/list_i18n_technologies/frameworks/flutter.md +1 -1
  98. package/blog/ru/list_i18n_technologies/frameworks/react-native.md +1 -1
  99. package/blog/ru/list_i18n_technologies/frameworks/react.md +1 -1
  100. package/blog/ru/list_i18n_technologies/frameworks/svelte.md +1 -1
  101. package/blog/ru/list_i18n_technologies/frameworks/vue.md +1 -1
  102. package/blog/ru/what_is_internationalization.md +2 -2
  103. package/blog/zh/intlayer_with_next-intl.md +0 -1
  104. package/blog/zh/list_i18n_technologies/CMS/wordpress.md +1 -1
  105. package/blog/zh/list_i18n_technologies/frameworks/angular.md +1 -1
  106. package/blog/zh/list_i18n_technologies/frameworks/flutter.md +1 -1
  107. package/blog/zh/list_i18n_technologies/frameworks/react-native.md +1 -1
  108. package/blog/zh/list_i18n_technologies/frameworks/react.md +1 -1
  109. package/blog/zh/list_i18n_technologies/frameworks/svelte.md +1 -1
  110. package/blog/zh/list_i18n_technologies/frameworks/vue.md +1 -1
  111. package/blog/zh/what_is_internationalization.md +2 -2
  112. package/dist/cjs/blog.cjs +2 -2
  113. package/dist/cjs/blog.cjs.map +1 -1
  114. package/dist/cjs/common.cjs +17 -6
  115. package/dist/cjs/common.cjs.map +1 -1
  116. package/dist/cjs/doc.cjs +2 -2
  117. package/dist/cjs/doc.cjs.map +1 -1
  118. package/dist/cjs/frequentQuestions.cjs +2 -2
  119. package/dist/cjs/frequentQuestions.cjs.map +1 -1
  120. package/dist/cjs/generated/blog.entry.cjs +1152 -252
  121. package/dist/cjs/generated/blog.entry.cjs.map +1 -1
  122. package/dist/cjs/generated/docs.entry.cjs +3778 -1124
  123. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  124. package/dist/cjs/generated/frequentQuestions.entry.cjs +794 -161
  125. package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
  126. package/dist/cjs/generated/legal.entry.cjs +32 -31
  127. package/dist/cjs/generated/legal.entry.cjs.map +1 -1
  128. package/dist/cjs/legal.cjs +2 -2
  129. package/dist/cjs/legal.cjs.map +1 -1
  130. package/dist/esm/blog.mjs +2 -2
  131. package/dist/esm/blog.mjs.map +1 -1
  132. package/dist/esm/common.mjs +17 -6
  133. package/dist/esm/common.mjs.map +1 -1
  134. package/dist/esm/doc.mjs +2 -2
  135. package/dist/esm/doc.mjs.map +1 -1
  136. package/dist/esm/frequentQuestions.mjs +2 -2
  137. package/dist/esm/frequentQuestions.mjs.map +1 -1
  138. package/dist/esm/generated/blog.entry.mjs +1151 -252
  139. package/dist/esm/generated/blog.entry.mjs.map +1 -1
  140. package/dist/esm/generated/docs.entry.mjs +3777 -1124
  141. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  142. package/dist/esm/generated/frequentQuestions.entry.mjs +793 -161
  143. package/dist/esm/generated/frequentQuestions.entry.mjs.map +1 -1
  144. package/dist/esm/generated/legal.entry.mjs +31 -31
  145. package/dist/esm/generated/legal.entry.mjs.map +1 -1
  146. package/dist/esm/legal.mjs +2 -2
  147. package/dist/esm/legal.mjs.map +1 -1
  148. package/dist/types/blog.d.ts +2 -2
  149. package/dist/types/blog.d.ts.map +1 -1
  150. package/dist/types/common.d.ts +3 -2
  151. package/dist/types/common.d.ts.map +1 -1
  152. package/dist/types/doc.d.ts +2 -2
  153. package/dist/types/doc.d.ts.map +1 -1
  154. package/dist/types/frequentQuestions.d.ts +2 -2
  155. package/dist/types/frequentQuestions.d.ts.map +1 -1
  156. package/dist/types/generated/blog.entry.d.ts.map +1 -1
  157. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  158. package/dist/types/generated/frequentQuestions.entry.d.ts +1 -0
  159. package/dist/types/generated/frequentQuestions.entry.d.ts.map +1 -1
  160. package/dist/types/generated/legal.entry.d.ts.map +1 -1
  161. package/dist/types/legal.d.ts +2 -2
  162. package/dist/types/legal.d.ts.map +1 -1
  163. package/docs/ar/intlayer_with_vite+react.md +100 -108
  164. package/docs/de/intlayer_with_vite+react.md +121 -142
  165. package/docs/en/CI_CD.md +3 -1
  166. package/docs/en/autoFill.md +3 -1
  167. package/docs/en/configuration.md +4 -1
  168. package/docs/en/dictionary/condition.md +3 -1
  169. package/docs/en/dictionary/content_extention_customization.md +3 -1
  170. package/docs/en/dictionary/enumeration.md +3 -1
  171. package/docs/en/dictionary/file.md +3 -1
  172. package/docs/en/dictionary/function_fetching.md +3 -1
  173. package/docs/en/dictionary/get_started.md +3 -1
  174. package/docs/en/dictionary/insertion.md +3 -1
  175. package/docs/en/dictionary/markdown.md +3 -1
  176. package/docs/en/dictionary/nesting.md +3 -1
  177. package/docs/en/dictionary/translation.md +3 -1
  178. package/docs/en/how_works_intlayer.md +3 -1
  179. package/docs/en/index.md +3 -1
  180. package/docs/en/interest_of_intlayer.md +3 -1
  181. package/docs/en/intlayer_CMS.md +3 -1
  182. package/docs/en/intlayer_cli.md +3 -1
  183. package/docs/en/intlayer_visual_editor.md +3 -1
  184. package/docs/en/intlayer_with_angular.md +3 -1
  185. package/docs/en/intlayer_with_create_react_app.md +3 -1
  186. package/docs/en/intlayer_with_express.md +3 -1
  187. package/docs/en/intlayer_with_lynx+react.md +3 -1
  188. package/docs/en/intlayer_with_nextjs_14.md +6 -1
  189. package/docs/en/intlayer_with_nextjs_15.md +5 -1
  190. package/docs/en/intlayer_with_nextjs_page_router.md +5 -1
  191. package/docs/en/intlayer_with_nuxt.md +3 -1
  192. package/docs/en/intlayer_with_react_native+expo.md +3 -1
  193. package/docs/en/intlayer_with_vite+preact.md +3 -1
  194. package/docs/en/intlayer_with_vite+react.md +9 -7
  195. package/docs/en/intlayer_with_vite+solid.md +3 -1
  196. package/docs/en/intlayer_with_vite+svelte.md +3 -1
  197. package/docs/en/intlayer_with_vite+vue.md +3 -1
  198. package/docs/en/introduction.md +3 -1
  199. package/docs/en/mcp_server.md +42 -1
  200. package/docs/en/packages/@intlayer/api/index.md +3 -1
  201. package/docs/en/packages/@intlayer/chokidar/index.md +3 -1
  202. package/docs/en/packages/@intlayer/cli/index.md +3 -1
  203. package/docs/en/packages/@intlayer/config/index.md +3 -1
  204. package/docs/en/packages/@intlayer/core/index.md +3 -1
  205. package/docs/en/packages/@intlayer/design-system/index.md +3 -1
  206. package/docs/en/packages/@intlayer/dictionary-entry/index.md +3 -1
  207. package/docs/en/packages/@intlayer/editor/index.md +3 -1
  208. package/docs/en/packages/@intlayer/editor-react/index.md +3 -1
  209. package/docs/en/packages/@intlayer/webpack/index.md +3 -1
  210. package/docs/en/packages/angular-intlayer/index.md +3 -1
  211. package/docs/en/packages/express-intlayer/index.md +3 -1
  212. package/docs/en/packages/express-intlayer/t.md +3 -1
  213. package/docs/en/packages/intlayer/getConfiguration.md +3 -1
  214. package/docs/en/packages/intlayer/getEnumeration.md +3 -1
  215. package/docs/en/packages/intlayer/getHTMLTextDir.md +3 -1
  216. package/docs/en/packages/intlayer/getLocaleLang.md +3 -1
  217. package/docs/en/packages/intlayer/getLocaleName.md +3 -1
  218. package/docs/en/packages/intlayer/getLocalizedUrl.md +3 -1
  219. package/docs/en/packages/intlayer/getMultilingualUrls.md +3 -1
  220. package/docs/en/packages/intlayer/getPathWithoutLocale.md +3 -1
  221. package/docs/en/packages/intlayer/getTranslation.md +3 -1
  222. package/docs/en/packages/intlayer/getTranslationContent.md +3 -1
  223. package/docs/en/packages/intlayer/index.md +3 -1
  224. package/docs/en/packages/intlayer-cli/index.md +3 -1
  225. package/docs/en/packages/intlayer-editor/index.md +3 -1
  226. package/docs/en/packages/lynx-intlayer/index.md +3 -1
  227. package/docs/en/packages/next-intlayer/index.md +3 -1
  228. package/docs/en/packages/next-intlayer/t.md +3 -1
  229. package/docs/en/packages/next-intlayer/useDictionary.md +3 -1
  230. package/docs/en/packages/next-intlayer/useIntlayer.md +3 -1
  231. package/docs/en/packages/next-intlayer/useIntlayerAsync.md +3 -1
  232. package/docs/en/packages/next-intlayer/useLocale.md +3 -1
  233. package/docs/en/packages/nuxt-intlayer/index.md +3 -1
  234. package/docs/en/packages/preact-intlayer/index.md +3 -1
  235. package/docs/en/packages/react-intlayer/index.md +3 -1
  236. package/docs/en/packages/react-intlayer/t.md +3 -1
  237. package/docs/en/packages/react-intlayer/useDictionary.md +3 -1
  238. package/docs/en/packages/react-intlayer/useIntlayer.md +3 -1
  239. package/docs/en/packages/react-intlayer/useIntlayerAsync.md +3 -1
  240. package/docs/en/packages/react-intlayer/useLocale.md +3 -1
  241. package/docs/en/packages/react-native-intlayer/index.md +3 -1
  242. package/docs/en/packages/react-scripts-intlayer/index.md +3 -1
  243. package/docs/en/packages/solid-intlayer/index.md +3 -1
  244. package/docs/en/packages/svelte-intlayer/index.md +3 -1
  245. package/docs/en/packages/vite-intlayer/index.md +3 -1
  246. package/docs/en/packages/vue-intlayer/index.md +3 -1
  247. package/docs/en/per_locale_file.md +3 -1
  248. package/docs/en/roadmap.md +5 -2
  249. package/docs/en/vs_code_extension.md +3 -1
  250. package/docs/en-GB/intlayer_with_vite+react.md +64 -83
  251. package/docs/es/intlayer_with_vite+react.md +91 -94
  252. package/docs/fr/intlayer_with_vite+react.md +73 -65
  253. package/docs/hi/intlayer_with_vite+react.md +107 -107
  254. package/docs/it/intlayer_with_vite+react.md +156 -112
  255. package/docs/ja/intlayer_with_vite+react.md +153 -218
  256. package/docs/ko/intlayer_with_vite+react.md +116 -148
  257. package/docs/ko/packages/intlayer/getLocalizedUrl.md +1 -23
  258. package/docs/pt/intlayer_with_vite+react.md +110 -132
  259. package/docs/ru/intlayer_with_vite+react.md +98 -83
  260. package/docs/zh/intlayer_with_vite+react.md +147 -184
  261. package/docs/zh/packages/intlayer/getLocalizedUrl.md +1 -23
  262. package/frequent_questions/ar/build_error_CI_CD.md +75 -0
  263. package/frequent_questions/de/build_error_CI_CD.md +75 -0
  264. package/frequent_questions/en/build_error_CI_CD.md +75 -0
  265. package/frequent_questions/en-GB/build_error_CI_CD.md +75 -0
  266. package/frequent_questions/es/build_error_CI_CD.md +75 -0
  267. package/frequent_questions/fr/build_error_CI_CD.md +75 -0
  268. package/frequent_questions/hi/build_error_CI_CD.md +75 -0
  269. package/frequent_questions/it/build_error_CI_CD.md +75 -0
  270. package/frequent_questions/ja/build_error_CI_CD.md +75 -0
  271. package/frequent_questions/ja/intlayer_command_undefined.md +3 -3
  272. package/frequent_questions/ko/build_error_CI_CD.md +75 -0
  273. package/frequent_questions/ko/intlayer_command_undefined.md +3 -3
  274. package/frequent_questions/pt/build_error_CI_CD.md +75 -0
  275. package/frequent_questions/ru/build_error_CI_CD.md +75 -0
  276. package/frequent_questions/zh/build_error_CI_CD.md +75 -0
  277. package/frequent_questions/zh/intlayer_command_undefined.md +3 -3
  278. package/legal/ar/privacy_notice.md +83 -0
  279. package/legal/ar/terms_of_service.md +55 -0
  280. package/legal/de/privacy_notice.md +83 -0
  281. package/legal/de/terms_of_service.md +55 -0
  282. package/legal/en/privacy_notice.md +83 -0
  283. package/legal/en/terms_of_service.md +55 -0
  284. package/legal/en-GB/privacy_notice.md +83 -0
  285. package/legal/en-GB/terms_of_service.md +55 -0
  286. package/legal/es/privacy_notice.md +83 -0
  287. package/legal/es/terms_of_service.md +55 -0
  288. package/legal/fr/privacy_notice.md +83 -0
  289. package/legal/fr/terms_of_service.md +55 -0
  290. package/legal/hi/privacy_notice.md +83 -0
  291. package/legal/hi/terms_of_service.md +55 -0
  292. package/legal/it/privacy_notice.md +83 -0
  293. package/legal/it/terms_of_service.md +55 -0
  294. package/legal/ja/privacy_notice.md +83 -0
  295. package/legal/ja/terms_of_service.md +55 -0
  296. package/legal/ko/privacy_notice.md +83 -0
  297. package/legal/ko/terms_of_service.md +55 -0
  298. package/legal/pt/privacy_notice.md +83 -0
  299. package/legal/pt/terms_of_service.md +55 -0
  300. package/legal/ru/privacy_notice.md +83 -0
  301. package/legal/ru/terms_of_service.md +55 -0
  302. package/legal/zh/privacy_notice.md +83 -0
  303. package/legal/zh/terms_of_service.md +55 -0
  304. package/package.json +7 -6
  305. package/src/blog.ts +6 -4
  306. package/src/common.ts +23 -7
  307. package/src/doc.ts +6 -4
  308. package/src/frequentQuestions.ts +6 -4
  309. package/src/generated/blog.entry.ts +1177 -280
  310. package/src/generated/docs.entry.ts +3868 -1217
  311. package/src/generated/frequentQuestions.entry.ts +808 -178
  312. package/src/generated/legal.entry.ts +34 -36
  313. package/src/legal.ts +6 -4
@@ -186,28 +186,6 @@ getLocalizedUrl(
186
186
 
187
187
  ## 在应用中的使用
188
188
 
189
- 在多语言应用中,配置 `locales` 和 `defaultLocale` 的国际化设置对于确保显示正确的语言至关重要。以下是 `getLocalizedUrl` 如何在应用程序设置中使用的示例:
190
-
191
- ```tsx codeFormat="typescript"
192
- import { Locales, type IntlayerConfig } from "intlayer";
193
-
194
- // 支持的语言和默认语言的配置
195
- export default {
196
- internationalization: {
197
- locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
198
- defaultLocale: Locales.ENGLISH,
199
- },
200
- } satisfies IntlayerConfig;
201
-
202
- export default config;
203
- ```
204
-
205
- ````javascript codeFormat="esm"
206
- import { Locales } from "intlayer";
207
-
208
- /** @type {import('intlayer').IntlayerConfig} */
209
- const config = {
210
- internationalization: {
211
189
  在多语言应用程序中,使用 `locales` 和 `defaultLocale` 配置国际化设置对于确保显示正确的语言至关重要。以下是如何在应用程序设置中使用 `getLocalizedUrl` 的示例:
212
190
 
213
191
  ```tsx codeFormat="typescript"
@@ -222,7 +200,7 @@ export default {
222
200
  } satisfies IntlayerConfig;
223
201
 
224
202
  export default config;
225
- ````
203
+ ```
226
204
 
227
205
  ```javascript codeFormat="esm"
228
206
  import { Locales } from "intlayer";
@@ -0,0 +1,75 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: خطأ في البناء في CI/CD
5
+ description: تعلّم كيفية إصلاح أخطاء البناء التي تحدث في بيئات CI/CD.
6
+ keywords:
7
+ - بناء
8
+ - خطأ
9
+ - ci
10
+ - cd
11
+ - خط الأنابيب
12
+ - intlayer
13
+ - القواميس
14
+ - next.js
15
+ - ما قبل البناء
16
+ - الأتمتة
17
+ slugs:
18
+ - doc
19
+ - faq
20
+ - build-error-ci-cd
21
+ ---
22
+
23
+ # خطأ في البناء في CI/CD
24
+
25
+ إذا حصلت على خطأ مثل هذا في Next.js:
26
+
27
+ ```text
28
+ Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error
29
+ ```
30
+
31
+ إليك بعض الحلول:
32
+
33
+ ## 1. القواميس المفقودة
34
+
35
+ تأكد من أن القواميس تم بناؤها في مرحلة البناء.
36
+
37
+ من الشائع أن يعمل البناء محليًا ولكن لا يعمل على CI/CD. السبب هو أنه محليًا، يكون مجلد `.intlayer` موجودًا، ولكن على CI/CD، لا يكون موجودًا لأنه مستبعد من البناء.
38
+
39
+ يمكنك إصلاح ذلك عن طريق إضافة سكربت ما قبل البناء في ملف `package.json` الخاص بمشروعك.
40
+
41
+ ```json5 fileName=package.json
42
+ {
43
+ // ...
44
+ "scripts": {
45
+ "prebuild": "npx intlayer dictionaries build", // سيتم تشغيله قبل البناء
46
+ "build": "next build",
47
+ },
48
+ }
49
+ ```
50
+
51
+ > لاحظ أنه إذا كنت تستخدم دالة `withIntlayer`، أو الإضافة المكافئة للباندلر في إطار عملك، فسيتم تشغيل سكربت ما قبل البناء قبل البناء.
52
+
53
+ ## 2. المتغيرات البيئية المفقودة أثناء وقت البناء / التشغيل
54
+
55
+ في الحاويات، أو المنصات التي تعتمد النشر التلقائي، يُنصح باستبعاد ملف `.env` من البناء.
56
+
57
+ ```text fileName=".gitignore or .dockerignore"
58
+ # المتغيرات البيئية
59
+ .env
60
+ **/.env
61
+ .env.*
62
+ **/.env.*
63
+ ```
64
+
65
+ إذا لم تكن المتغيرات البيئية متاحة أثناء وقت البناء، فسيتم إصدار خطأ.
66
+
67
+ ```ts
68
+ import { Metadata } from "next";
69
+
70
+ export const generateMetadata = async ({ params }): Promise<Metadata> => ({
71
+ metadataBase: new URL(process.env.NEXT_PUBLIC_URL),
72
+ });
73
+ ```
74
+
75
+ من المحتمل أن هذا لا يتعلق بـ Intlayer. لذا تحقق من المتغيرات البيئية الخاصة بك أثناء وقت البناء على منصة CI/CD الخاصة بك.
@@ -0,0 +1,75 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: Build-Fehler in CI/CD
5
+ description: Erfahren Sie, wie Sie Build-Fehler beheben, die in CI/CD-Umgebungen auftreten.
6
+ keywords:
7
+ - build
8
+ - fehler
9
+ - ci
10
+ - cd
11
+ - pipeline
12
+ - intlayer
13
+ - wörterbücher
14
+ - next.js
15
+ - vorbuild
16
+ - automatisierung
17
+ slugs:
18
+ - doc
19
+ - faq
20
+ - build-fehler-ci-cd
21
+ ---
22
+
23
+ # Fehler beim Build in CI/CD
24
+
25
+ Wenn Sie einen Fehler wie diesen in Next.js erhalten:
26
+
27
+ ```text
28
+ Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error
29
+ ```
30
+
31
+ Hier einige Lösungen:
32
+
33
+ ## 1. Fehlende Wörterbücher
34
+
35
+ Stellen Sie sicher, dass die Wörterbücher während der Build-Phase erstellt werden.
36
+
37
+ Es kommt häufig vor, dass der Build lokal funktioniert, aber nicht in CI/CD. Der Grund ist, dass lokal das Verzeichnis `.intlayer` vorhanden ist, in CI/CD jedoch nicht, da es vom Build ausgeschlossen ist.
38
+
39
+ Sie können dies beheben, indem Sie ein Prebuild-Skript in der `package.json` Ihres Projekts hinzufügen.
40
+
41
+ ```json5 fileName=package.json
42
+ {
43
+ // ...
44
+ "scripts": {
45
+ "prebuild": "npx intlayer dictionaries build", // Wird vor dem Build ausgeführt
46
+ "build": "next build",
47
+ },
48
+ }
49
+ ```
50
+
51
+ > Beachten Sie, dass wenn Sie die Funktion `withIntlayer` oder das entsprechende Bundler-Plugin für Ihr Framework verwenden, das Prebuild-Skript vor dem Build ausgeführt wird.
52
+
53
+ ## 2. Fehlende Umgebungsvariablen zur Build- oder Laufzeit
54
+
55
+ In einem Container oder einer automatisch bereitgestellten Plattform wird empfohlen, die `.env`-Datei vom Build auszuschließen.
56
+
57
+ ```text fileName=".gitignore oder .dockerignore"
58
+ # Umgebungsvariablen
59
+ .env
60
+ **/.env
61
+ .env.*
62
+ **/.env.*
63
+ ```
64
+
65
+ Wenn Ihre Umgebungsvariablen zur Build-Zeit nicht verfügbar sind, wird ein Fehler ausgelöst.
66
+
67
+ ```ts
68
+ import { Metadata } from "next";
69
+
70
+ export const generateMetadata = async ({ params }): Promise<Metadata> => ({
71
+ metadataBase: new URL(process.env.NEXT_PUBLIC_URL),
72
+ });
73
+ ```
74
+
75
+ Dies hängt wahrscheinlich nicht mit Intlayer zusammen. Überprüfen Sie daher Ihre Umgebungsvariablen zur Build-Zeit auf Ihrer CI/CD-Plattform.
@@ -0,0 +1,75 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: Build Error in CI/CD
5
+ description: Learn how to fix build errors that occur in CI/CD environments.
6
+ keywords:
7
+ - build
8
+ - error
9
+ - ci
10
+ - cd
11
+ - pipeline
12
+ - intlayer
13
+ - dictionaries
14
+ - next.js
15
+ - prebuild
16
+ - automation
17
+ slugs:
18
+ - doc
19
+ - faq
20
+ - build-error-ci-cd
21
+ ---
22
+
23
+ # Error on build on CI/CD
24
+
25
+ If you get an error like this on Next.js:
26
+
27
+ ```text
28
+ Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error
29
+ ```
30
+
31
+ Here some solutions:
32
+
33
+ ## 1. Missing dictionaries
34
+
35
+ Ensure that the dictionaries are built at the stage of the build.
36
+
37
+ It's frquent that the build works locally but not on CI/CD. The reason is that locally, the `.intlayer` directory is present, but on CI/CD, it's not as it's excluded from the build.
38
+
39
+ You can fix it by adding a prebuild script in the `package.json` of your project.
40
+
41
+ ```json5 fileName=package.json
42
+ {
43
+ // ...
44
+ "scripts": {
45
+ "prebuild": "npx intlayer dictionaries build", // Will run before the build
46
+ "build": "next build",
47
+ },
48
+ }
49
+ ```
50
+
51
+ > Not that if you use the `withIntlayer` function, or the equivalent bundler plugin for your framework, the prebuild script will be run before the build.
52
+
53
+ ## 2. Missing environment variables at build / run time
54
+
55
+ In a container, or auto-deployed platform, it's recommended to exclude the `.env` file from the build.
56
+
57
+ ```text fileName=".gitignore or .dockerignore"
58
+ # Environment variables
59
+ .env
60
+ **/.env
61
+ .env.*
62
+ **/.env.*
63
+ ```
64
+
65
+ If your environment variables are not available at build time, an error will be thrown.
66
+
67
+ ```ts
68
+ import { Metadata } from "next";
69
+
70
+ export const generateMetadata = async ({ params }): Promise<Metadata> => ({
71
+ metadataBase: new URL(process.env.NEXT_PUBLIC_URL),
72
+ });
73
+ ```
74
+
75
+ It's probably not related to Intlayer. So check your environment variables at build time on your CI/CD platform.
@@ -0,0 +1,75 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: Build Error in CI/CD
5
+ description: Learn how to fix build errors that occur in CI/CD environments.
6
+ keywords:
7
+ - build
8
+ - error
9
+ - ci
10
+ - cd
11
+ - pipeline
12
+ - intlayer
13
+ - dictionaries
14
+ - next.js
15
+ - prebuild
16
+ - automation
17
+ slugs:
18
+ - doc
19
+ - faq
20
+ - build-error-ci-cd
21
+ ---
22
+
23
+ # Error on build on CI/CD
24
+
25
+ If you get an error like this on Next.js:
26
+
27
+ ```text
28
+ Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error
29
+ ```
30
+
31
+ Here are some solutions:
32
+
33
+ ## 1. Missing dictionaries
34
+
35
+ Ensure that the dictionaries are built at the stage of the build.
36
+
37
+ It's frequent that the build works locally but not on CI/CD. The reason is that locally, the `.intlayer` directory is present, but on CI/CD, it is not as it is excluded from the build.
38
+
39
+ You can fix this by adding a prebuild script in the `package.json` of your project.
40
+
41
+ ```json5 fileName=package.json
42
+ {
43
+ // ...
44
+ "scripts": {
45
+ "prebuild": "npx intlayer dictionaries build", // Will run before the build
46
+ "build": "next build",
47
+ },
48
+ }
49
+ ```
50
+
51
+ > Note that if you use the `withIntlayer` function, or the equivalent bundler plugin for your framework, the prebuild script will be run before the build.
52
+
53
+ ## 2. Missing environment variables at build / run time
54
+
55
+ In a container, or auto-deployed platform, it is recommended to exclude the `.env` file from the build.
56
+
57
+ ```text fileName=".gitignore or .dockerignore"
58
+ # Environment variables
59
+ .env
60
+ **/.env
61
+ .env.*
62
+ **/.env.*
63
+ ```
64
+
65
+ If your environment variables are not available at build time, an error will be thrown.
66
+
67
+ ```ts
68
+ import { Metadata } from "next";
69
+
70
+ export const generateMetadata = async ({ params }): Promise<Metadata> => ({
71
+ metadataBase: new URL(process.env.NEXT_PUBLIC_URL),
72
+ });
73
+ ```
74
+
75
+ It is probably not related to Intlayer. Therefore, check your environment variables at build time on your CI/CD platform.
@@ -0,0 +1,75 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: Error de compilación en CI/CD
5
+ description: Aprende cómo solucionar errores de compilación que ocurren en entornos CI/CD.
6
+ keywords:
7
+ - compilación
8
+ - error
9
+ - ci
10
+ - cd
11
+ - pipeline
12
+ - intlayer
13
+ - diccionarios
14
+ - next.js
15
+ - prebuild
16
+ - automatización
17
+ slugs:
18
+ - doc
19
+ - faq
20
+ - build-error-ci-cd
21
+ ---
22
+
23
+ # Error en la compilación en CI/CD
24
+
25
+ Si obtienes un error como este en Next.js:
26
+
27
+ ```text
28
+ Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error
29
+ ```
30
+
31
+ Aquí algunas soluciones:
32
+
33
+ ## 1. Diccionarios faltantes
34
+
35
+ Asegúrate de que los diccionarios se construyan en la etapa de compilación.
36
+
37
+ Es frecuente que la compilación funcione localmente pero no en CI/CD. La razón es que localmente, el directorio `.intlayer` está presente, pero en CI/CD no, ya que está excluido de la compilación.
38
+
39
+ Puedes solucionarlo agregando un script de precompilación en el `package.json` de tu proyecto.
40
+
41
+ ```json5 fileName=package.json
42
+ {
43
+ // ...
44
+ "scripts": {
45
+ "prebuild": "npx intlayer dictionaries build", // Se ejecutará antes de la compilación
46
+ "build": "next build",
47
+ },
48
+ }
49
+ ```
50
+
51
+ > Ten en cuenta que si usas la función `withIntlayer`, o el plugin equivalente para el empaquetador de tu framework, el script de precompilación se ejecutará antes de la compilación.
52
+
53
+ ## 2. Variables de entorno faltantes en tiempo de compilación / ejecución
54
+
55
+ En un contenedor, o plataforma de despliegue automático, se recomienda excluir el archivo `.env` de la compilación.
56
+
57
+ ```text fileName=".gitignore or .dockerignore"
58
+ # Variables de entorno
59
+ .env
60
+ **/.env
61
+ .env.*
62
+ **/.env.*
63
+ ```
64
+
65
+ Si tus variables de entorno no están disponibles en tiempo de compilación, se generará un error.
66
+
67
+ ```ts
68
+ import { Metadata } from "next";
69
+
70
+ export const generateMetadata = async ({ params }): Promise<Metadata> => ({
71
+ metadataBase: new URL(process.env.NEXT_PUBLIC_URL),
72
+ });
73
+ ```
74
+
75
+ Probablemente no esté relacionado con Intlayer. Así que verifica tus variables de entorno en tiempo de compilación en tu plataforma CI/CD.
@@ -0,0 +1,75 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: Erreur de build en CI/CD
5
+ description: Apprenez comment corriger les erreurs de build qui surviennent dans les environnements CI/CD.
6
+ keywords:
7
+ - build
8
+ - erreur
9
+ - ci
10
+ - cd
11
+ - pipeline
12
+ - intlayer
13
+ - dictionnaires
14
+ - next.js
15
+ - prébuild
16
+ - automatisation
17
+ slugs:
18
+ - doc
19
+ - faq
20
+ - build-error-ci-cd
21
+ ---
22
+
23
+ # Erreur lors du build en CI/CD
24
+
25
+ Si vous obtenez une erreur comme celle-ci sur Next.js :
26
+
27
+ ```text
28
+ Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error
29
+ ```
30
+
31
+ Voici quelques solutions :
32
+
33
+ ## 1. Dictionnaires manquants
34
+
35
+ Assurez-vous que les dictionnaires sont construits lors de l'étape de build.
36
+
37
+ Il est fréquent que le build fonctionne localement mais pas en CI/CD. La raison est qu'en local, le répertoire `.intlayer` est présent, mais en CI/CD, il ne l'est pas car il est exclu du build.
38
+
39
+ Vous pouvez corriger cela en ajoutant un script de prébuild dans le `package.json` de votre projet.
40
+
41
+ ```json5 fileName=package.json
42
+ {
43
+ // ...
44
+ "scripts": {
45
+ "prebuild": "npx intlayer dictionaries build", // S'exécutera avant le build
46
+ "build": "next build",
47
+ },
48
+ }
49
+ ```
50
+
51
+ > Notez que si vous utilisez la fonction `withIntlayer`, ou le plugin bundler équivalent pour votre framework, le script de prébuild sera exécuté avant le build.
52
+
53
+ ## 2. Variables d'environnement manquantes au moment du build / de l'exécution
54
+
55
+ Dans un conteneur, ou une plateforme à déploiement automatique, il est recommandé d'exclure le fichier `.env` du build.
56
+
57
+ ```text fileName=".gitignore or .dockerignore"
58
+ # Variables d'environnement
59
+ .env
60
+ **/.env
61
+ .env.*
62
+ **/.env.*
63
+ ```
64
+
65
+ Si vos variables d'environnement ne sont pas disponibles au moment du build, une erreur sera levée.
66
+
67
+ ```ts
68
+ import { Metadata } from "next";
69
+
70
+ export const generateMetadata = async ({ params }): Promise<Metadata> => ({
71
+ metadataBase: new URL(process.env.NEXT_PUBLIC_URL),
72
+ });
73
+ ```
74
+
75
+ Cela n'est probablement pas lié à Intlayer. Vérifiez donc vos variables d'environnement au moment du build sur votre plateforme CI/CD.
@@ -0,0 +1,75 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: CI/CD में बिल्ड त्रुटि
5
+ description: जानें कि CI/CD वातावरण में होने वाली बिल्ड त्रुटियों को कैसे ठीक करें।
6
+ keywords:
7
+ - build
8
+ - error
9
+ - ci
10
+ - cd
11
+ - pipeline
12
+ - intlayer
13
+ - dictionaries
14
+ - next.js
15
+ - prebuild
16
+ - automation
17
+ slugs:
18
+ - doc
19
+ - faq
20
+ - build-error-ci-cd
21
+ ---
22
+
23
+ # CI/CD में बिल्ड पर त्रुटि
24
+
25
+ यदि आपको Next.js में इस प्रकार की त्रुटि मिलती है:
26
+
27
+ ```text
28
+ Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error
29
+ ```
30
+
31
+ यहाँ कुछ समाधान दिए गए हैं:
32
+
33
+ ## 1. डिक्शनरी गायब हैं
34
+
35
+ सुनिश्चित करें कि डिक्शनरी बिल्ड के चरण में बनाई गई हैं।
36
+
37
+ यह सामान्य है कि बिल्ड स्थानीय रूप से काम करता है लेकिन CI/CD पर नहीं। इसका कारण यह है कि स्थानीय रूप से, `.intlayer` निर्देशिका मौजूद होती है, लेकिन CI/CD पर यह बिल्ड से बाहर रखी जाती है।
38
+
39
+ आप इसे अपने प्रोजेक्ट के `package.json` में एक प्रीबिल्ड स्क्रिप्ट जोड़कर ठीक कर सकते हैं।
40
+
41
+ ```json5 fileName=package.json
42
+ {
43
+ // ...
44
+ "scripts": {
45
+ "prebuild": "npx intlayer dictionaries build", // बिल्ड से पहले चलेगा
46
+ "build": "next build",
47
+ },
48
+ }
49
+ ```
50
+
51
+ > ध्यान दें कि यदि आप `withIntlayer` फ़ंक्शन का उपयोग करते हैं, या अपने फ्रेमवर्क के लिए समकक्ष बंडलर प्लगइन, तो प्रीबिल्ड स्क्रिप्ट बिल्ड से पहले चलेगा।
52
+
53
+ ## 2. बिल्ड / रन टाइम पर पर्यावरण चर गायब हैं
54
+
55
+ कंटेनर या ऑटो-डिप्लॉयड प्लेटफ़ॉर्म में, यह अनुशंसित है कि `.env` फ़ाइल को बिल्ड से बाहर रखा जाए।
56
+
57
+ ```text fileName=".gitignore or .dockerignore"
58
+ # पर्यावरण चर
59
+ .env
60
+ **/.env
61
+ .env.*
62
+ **/.env.*
63
+ ```
64
+
65
+ यदि आपके पर्यावरण चर बिल्ड समय पर उपलब्ध नहीं हैं, तो एक त्रुटि उत्पन्न होगी।
66
+
67
+ ```ts
68
+ import { Metadata } from "next";
69
+
70
+ export const generateMetadata = async ({ params }): Promise<Metadata> => ({
71
+ metadataBase: new URL(process.env.NEXT_PUBLIC_URL),
72
+ });
73
+ ```
74
+
75
+ यह संभवतः Intlayer से संबंधित नहीं है। इसलिए अपने CI/CD प्लेटफ़ॉर्म पर बिल्ड समय पर अपने पर्यावरण चर की जांच करें।
@@ -0,0 +1,75 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: Errore di build in CI/CD
5
+ description: Scopri come risolvere gli errori di build che si verificano negli ambienti CI/CD.
6
+ keywords:
7
+ - build
8
+ - errore
9
+ - ci
10
+ - cd
11
+ - pipeline
12
+ - intlayer
13
+ - dizionari
14
+ - next.js
15
+ - prebuild
16
+ - automazione
17
+ slugs:
18
+ - doc
19
+ - faq
20
+ - build-error-ci-cd
21
+ ---
22
+
23
+ # Errore di build in CI/CD
24
+
25
+ Se ricevi un errore come questo su Next.js:
26
+
27
+ ```text
28
+ Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error
29
+ ```
30
+
31
+ Ecco alcune soluzioni:
32
+
33
+ ## 1. Dizionari mancanti
34
+
35
+ Assicurati che i dizionari siano costruiti nella fase di build.
36
+
37
+ È frequente che la build funzioni localmente ma non su CI/CD. Il motivo è che localmente la directory `.intlayer` è presente, mentre su CI/CD non lo è perché è esclusa dalla build.
38
+
39
+ Puoi risolvere aggiungendo uno script di prebuild nel `package.json` del tuo progetto.
40
+
41
+ ```json5 fileName=package.json
42
+ {
43
+ // ...
44
+ "scripts": {
45
+ "prebuild": "npx intlayer dictionaries build", // Verrà eseguito prima della build
46
+ "build": "next build",
47
+ },
48
+ }
49
+ ```
50
+
51
+ > Nota che se usi la funzione `withIntlayer`, o il plugin bundler equivalente per il tuo framework, lo script di prebuild verrà eseguito prima della build.
52
+
53
+ ## 2. Variabili d'ambiente mancanti al momento della build o dell'esecuzione
54
+
55
+ In un container, o su una piattaforma con deploy automatico, è consigliato escludere il file `.env` dalla build.
56
+
57
+ ```text fileName=".gitignore or .dockerignore"
58
+ # Variabili d'ambiente
59
+ .env
60
+ **/.env
61
+ .env.*
62
+ **/.env.*
63
+ ```
64
+
65
+ Se le tue variabili d'ambiente non sono disponibili al momento della build, verrà generato un errore.
66
+
67
+ ```ts
68
+ import { Metadata } from "next";
69
+
70
+ export const generateMetadata = async ({ params }): Promise<Metadata> => ({
71
+ metadataBase: new URL(process.env.NEXT_PUBLIC_URL),
72
+ });
73
+ ```
74
+
75
+ Probabilmente non è correlato a Intlayer. Quindi verifica le tue variabili d'ambiente al momento della build sulla tua piattaforma CI/CD.