@strapi/i18n 0.0.0-experimental.cb311d9fcfbd8e441f790aea232f0a39bdd90e16 → 0.0.0-experimental.cb374d6b06692607bcfbd4d5131bafd4c990aa29

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 (475) hide show
  1. package/dist/admin/components/BulkLocaleActionModal.js +262 -0
  2. package/dist/admin/components/BulkLocaleActionModal.js.map +1 -0
  3. package/dist/admin/components/BulkLocaleActionModal.mjs +260 -0
  4. package/dist/admin/components/BulkLocaleActionModal.mjs.map +1 -0
  5. package/dist/admin/components/CMHeaderActions.js +995 -0
  6. package/dist/admin/components/CMHeaderActions.js.map +1 -0
  7. package/dist/admin/components/CMHeaderActions.mjs +969 -0
  8. package/dist/admin/components/CMHeaderActions.mjs.map +1 -0
  9. package/dist/admin/components/CMListViewModalsAdditionalInformation.js +69 -0
  10. package/dist/admin/components/CMListViewModalsAdditionalInformation.js.map +1 -0
  11. package/dist/admin/components/CMListViewModalsAdditionalInformation.mjs +65 -0
  12. package/dist/admin/components/CMListViewModalsAdditionalInformation.mjs.map +1 -0
  13. package/dist/admin/components/CheckboxConfirmation.js +155 -0
  14. package/dist/admin/components/CheckboxConfirmation.js.map +1 -0
  15. package/dist/admin/components/CheckboxConfirmation.mjs +134 -0
  16. package/dist/admin/components/CheckboxConfirmation.mjs.map +1 -0
  17. package/dist/admin/components/CreateLocale.js +399 -0
  18. package/dist/admin/components/CreateLocale.js.map +1 -0
  19. package/dist/admin/components/CreateLocale.mjs +373 -0
  20. package/dist/admin/components/CreateLocale.mjs.map +1 -0
  21. package/dist/admin/components/DeleteLocale.js +90 -0
  22. package/dist/admin/components/DeleteLocale.js.map +1 -0
  23. package/dist/admin/components/DeleteLocale.mjs +69 -0
  24. package/dist/admin/components/DeleteLocale.mjs.map +1 -0
  25. package/dist/admin/components/EditLocale.js +212 -0
  26. package/dist/admin/components/EditLocale.js.map +1 -0
  27. package/dist/admin/components/EditLocale.mjs +190 -0
  28. package/dist/admin/components/EditLocale.mjs.map +1 -0
  29. package/dist/admin/components/LocaleListCell.js +102 -0
  30. package/dist/admin/components/LocaleListCell.js.map +1 -0
  31. package/dist/admin/components/LocaleListCell.mjs +100 -0
  32. package/dist/admin/components/LocaleListCell.mjs.map +1 -0
  33. package/dist/admin/components/LocalePicker.js +105 -0
  34. package/dist/admin/components/LocalePicker.js.map +1 -0
  35. package/dist/admin/components/LocalePicker.mjs +84 -0
  36. package/dist/admin/components/LocalePicker.mjs.map +1 -0
  37. package/dist/admin/components/LocaleTable.js +143 -0
  38. package/dist/admin/components/LocaleTable.js.map +1 -0
  39. package/dist/admin/components/LocaleTable.mjs +122 -0
  40. package/dist/admin/components/LocaleTable.mjs.map +1 -0
  41. package/dist/admin/constants.js +37 -0
  42. package/dist/admin/constants.js.map +1 -0
  43. package/dist/admin/constants.mjs +35 -0
  44. package/dist/admin/constants.mjs.map +1 -0
  45. package/dist/admin/contentManagerHooks/editView.js +109 -0
  46. package/dist/admin/contentManagerHooks/editView.js.map +1 -0
  47. package/dist/admin/contentManagerHooks/editView.mjs +88 -0
  48. package/dist/admin/contentManagerHooks/editView.mjs.map +1 -0
  49. package/dist/admin/contentManagerHooks/listView.js +44 -0
  50. package/dist/admin/contentManagerHooks/listView.js.map +1 -0
  51. package/dist/admin/contentManagerHooks/listView.mjs +42 -0
  52. package/dist/admin/contentManagerHooks/listView.mjs.map +1 -0
  53. package/dist/admin/contentReleasesHooks/releaseDetailsView.js +20 -0
  54. package/dist/admin/contentReleasesHooks/releaseDetailsView.js.map +1 -0
  55. package/dist/admin/contentReleasesHooks/releaseDetailsView.mjs +18 -0
  56. package/dist/admin/contentReleasesHooks/releaseDetailsView.mjs.map +1 -0
  57. package/dist/admin/hooks/useAILocalizationJobsPolling.js +110 -0
  58. package/dist/admin/hooks/useAILocalizationJobsPolling.js.map +1 -0
  59. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs +89 -0
  60. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs.map +1 -0
  61. package/dist/admin/hooks/useI18n.js +78 -0
  62. package/dist/admin/hooks/useI18n.js.map +1 -0
  63. package/dist/admin/hooks/useI18n.mjs +57 -0
  64. package/dist/admin/hooks/useI18n.mjs.map +1 -0
  65. package/dist/admin/index.js +226 -5
  66. package/dist/admin/index.js.map +1 -1
  67. package/dist/admin/index.mjs +202 -5
  68. package/dist/admin/index.mjs.map +1 -1
  69. package/dist/admin/middlewares/extendCTBAttributeInitialData.js +71 -0
  70. package/dist/admin/middlewares/extendCTBAttributeInitialData.js.map +1 -0
  71. package/dist/admin/middlewares/extendCTBAttributeInitialData.mjs +69 -0
  72. package/dist/admin/middlewares/extendCTBAttributeInitialData.mjs.map +1 -0
  73. package/dist/admin/middlewares/extendCTBInitialData.js +40 -0
  74. package/dist/admin/middlewares/extendCTBInitialData.js.map +1 -0
  75. package/dist/admin/middlewares/extendCTBInitialData.mjs +38 -0
  76. package/dist/admin/middlewares/extendCTBInitialData.mjs.map +1 -0
  77. package/dist/admin/middlewares/rbac-middleware.js +49 -0
  78. package/dist/admin/middlewares/rbac-middleware.js.map +1 -0
  79. package/dist/admin/middlewares/rbac-middleware.mjs +28 -0
  80. package/dist/admin/middlewares/rbac-middleware.mjs.map +1 -0
  81. package/dist/admin/pages/SettingsPage.js +182 -0
  82. package/dist/admin/pages/SettingsPage.js.map +1 -0
  83. package/dist/admin/pages/SettingsPage.mjs +179 -0
  84. package/dist/admin/pages/SettingsPage.mjs.map +1 -0
  85. package/dist/admin/pluginId.js +6 -0
  86. package/dist/admin/pluginId.js.map +1 -0
  87. package/dist/admin/pluginId.mjs +4 -0
  88. package/dist/admin/pluginId.mjs.map +1 -0
  89. package/dist/admin/services/aiLocalizationJobs.js +26 -0
  90. package/dist/admin/services/aiLocalizationJobs.js.map +1 -0
  91. package/dist/admin/services/aiLocalizationJobs.mjs +24 -0
  92. package/dist/admin/services/aiLocalizationJobs.mjs.map +1 -0
  93. package/dist/admin/services/api.js +15 -0
  94. package/dist/admin/services/api.js.map +1 -0
  95. package/dist/admin/services/api.mjs +13 -0
  96. package/dist/admin/services/api.mjs.map +1 -0
  97. package/dist/admin/services/locales.js +72 -0
  98. package/dist/admin/services/locales.js.map +1 -0
  99. package/dist/admin/services/locales.mjs +66 -0
  100. package/dist/admin/services/locales.mjs.map +1 -0
  101. package/dist/admin/services/relations.js +23 -0
  102. package/dist/admin/services/relations.js.map +1 -0
  103. package/dist/admin/services/relations.mjs +21 -0
  104. package/dist/admin/services/relations.mjs.map +1 -0
  105. package/dist/admin/services/settings.js +30 -0
  106. package/dist/admin/services/settings.js.map +1 -0
  107. package/dist/admin/services/settings.mjs +27 -0
  108. package/dist/admin/services/settings.mjs.map +1 -0
  109. package/dist/admin/src/components/BulkLocaleActionModal.d.ts +2 -1
  110. package/dist/admin/src/components/CMHeaderActions.d.ts +43 -4
  111. package/dist/admin/src/components/CreateLocale.d.ts +6 -6
  112. package/dist/admin/src/components/LocaleListCell.d.ts +5 -4
  113. package/dist/admin/src/components/tests/CreateLocale.test.d.ts +1 -0
  114. package/dist/admin/src/components/tests/DeleteLocale.test.d.ts +1 -0
  115. package/dist/admin/src/components/tests/EditLocale.test.d.ts +1 -0
  116. package/dist/admin/src/components/tests/LocaleListCell.test.d.ts +1 -0
  117. package/dist/admin/src/contentReleasesHooks/releaseDetailsView.d.ts +1 -1
  118. package/dist/admin/src/hooks/useAILocalizationJobsPolling.d.ts +9 -0
  119. package/dist/admin/src/pages/tests/SettingsPage.test.d.ts +1 -0
  120. package/dist/admin/src/services/aiLocalizationJobs.d.ts +6 -0
  121. package/dist/admin/src/services/api.d.ts +1 -1
  122. package/dist/admin/src/services/locales.d.ts +1 -1
  123. package/dist/admin/src/services/relations.d.ts +1 -1
  124. package/dist/admin/src/services/settings.d.ts +5 -0
  125. package/dist/admin/src/utils/clean.d.ts +4 -0
  126. package/dist/admin/src/utils/schemas.d.ts +642 -16
  127. package/dist/admin/tests/server.d.ts +1 -0
  128. package/dist/admin/tests/utils.d.ts +6 -0
  129. package/dist/admin/translations/de.json.js +66 -0
  130. package/dist/admin/translations/de.json.js.map +1 -0
  131. package/dist/admin/translations/de.json.mjs +64 -0
  132. package/dist/admin/translations/de.json.mjs.map +1 -0
  133. package/dist/admin/translations/dk.json.js +66 -0
  134. package/dist/admin/translations/dk.json.js.map +1 -0
  135. package/dist/admin/translations/dk.json.mjs +64 -0
  136. package/dist/admin/translations/dk.json.mjs.map +1 -0
  137. package/dist/admin/translations/en.json.js +91 -0
  138. package/dist/admin/translations/en.json.js.map +1 -0
  139. package/dist/admin/translations/en.json.mjs +89 -0
  140. package/dist/admin/translations/en.json.mjs.map +1 -0
  141. package/dist/admin/translations/es.json.js +66 -0
  142. package/dist/admin/translations/es.json.js.map +1 -0
  143. package/dist/admin/translations/es.json.mjs +64 -0
  144. package/dist/admin/translations/es.json.mjs.map +1 -0
  145. package/dist/admin/translations/fr.json.js +66 -0
  146. package/dist/admin/translations/fr.json.js.map +1 -0
  147. package/dist/admin/translations/fr.json.mjs +64 -0
  148. package/dist/admin/translations/fr.json.mjs.map +1 -0
  149. package/dist/admin/translations/ko.json.js +65 -0
  150. package/dist/admin/translations/ko.json.js.map +1 -0
  151. package/dist/admin/translations/ko.json.mjs +63 -0
  152. package/dist/admin/translations/ko.json.mjs.map +1 -0
  153. package/dist/admin/translations/pl.json.js +66 -0
  154. package/dist/admin/translations/pl.json.js.map +1 -0
  155. package/dist/admin/translations/pl.json.mjs +64 -0
  156. package/dist/admin/translations/pl.json.mjs.map +1 -0
  157. package/dist/admin/translations/ru.json.js +68 -0
  158. package/dist/admin/translations/ru.json.js.map +1 -0
  159. package/dist/admin/translations/ru.json.mjs +66 -0
  160. package/dist/admin/translations/ru.json.mjs.map +1 -0
  161. package/dist/admin/translations/tr.json.js +66 -0
  162. package/dist/admin/translations/tr.json.js.map +1 -0
  163. package/dist/admin/translations/tr.json.mjs +64 -0
  164. package/dist/admin/translations/tr.json.mjs.map +1 -0
  165. package/dist/admin/translations/uk.json.js +82 -0
  166. package/dist/admin/translations/uk.json.js.map +1 -0
  167. package/dist/admin/translations/uk.json.mjs +80 -0
  168. package/dist/admin/translations/uk.json.mjs.map +1 -0
  169. package/dist/admin/translations/zh-Hans.json.js +57 -0
  170. package/dist/admin/translations/zh-Hans.json.js.map +1 -0
  171. package/dist/admin/translations/zh-Hans.json.mjs +55 -0
  172. package/dist/admin/translations/zh-Hans.json.mjs.map +1 -0
  173. package/dist/admin/translations/zh.json.js +66 -0
  174. package/dist/admin/translations/zh.json.js.map +1 -0
  175. package/dist/admin/translations/zh.json.mjs +64 -0
  176. package/dist/admin/translations/zh.json.mjs.map +1 -0
  177. package/dist/admin/utils/baseQuery.js +8 -0
  178. package/dist/admin/utils/baseQuery.js.map +1 -0
  179. package/dist/admin/utils/baseQuery.mjs +6 -0
  180. package/dist/admin/utils/baseQuery.mjs.map +1 -0
  181. package/dist/admin/utils/clean.js +70 -0
  182. package/dist/admin/utils/clean.js.map +1 -0
  183. package/dist/admin/utils/clean.mjs +68 -0
  184. package/dist/admin/utils/clean.mjs.map +1 -0
  185. package/dist/admin/utils/fields.js +34 -0
  186. package/dist/admin/utils/fields.js.map +1 -0
  187. package/dist/admin/utils/fields.mjs +31 -0
  188. package/dist/admin/utils/fields.mjs.map +1 -0
  189. package/dist/admin/utils/getTranslation.js +8 -0
  190. package/dist/admin/utils/getTranslation.js.map +1 -0
  191. package/dist/admin/utils/getTranslation.mjs +6 -0
  192. package/dist/admin/utils/getTranslation.mjs.map +1 -0
  193. package/dist/admin/utils/prefixPluginTranslations.js +11 -0
  194. package/dist/admin/utils/prefixPluginTranslations.js.map +1 -0
  195. package/dist/admin/utils/prefixPluginTranslations.mjs +9 -0
  196. package/dist/admin/utils/prefixPluginTranslations.mjs.map +1 -0
  197. package/dist/admin/utils/schemas.js +74 -0
  198. package/dist/admin/utils/schemas.js.map +1 -0
  199. package/dist/admin/utils/schemas.mjs +72 -0
  200. package/dist/admin/utils/schemas.mjs.map +1 -0
  201. package/dist/admin/utils/strings.js +6 -0
  202. package/dist/admin/utils/strings.js.map +1 -0
  203. package/dist/admin/utils/strings.mjs +4 -0
  204. package/dist/admin/utils/strings.mjs.map +1 -0
  205. package/dist/server/bootstrap.js +95 -0
  206. package/dist/server/bootstrap.js.map +1 -0
  207. package/dist/server/bootstrap.mjs +93 -0
  208. package/dist/server/bootstrap.mjs.map +1 -0
  209. package/dist/server/constants/index.js +29 -0
  210. package/dist/server/constants/index.js.map +1 -0
  211. package/dist/server/constants/index.mjs +25 -0
  212. package/dist/server/constants/index.mjs.map +1 -0
  213. package/dist/server/constants/iso-locales.json.js +2427 -0
  214. package/dist/server/constants/iso-locales.json.js.map +1 -0
  215. package/dist/server/constants/iso-locales.json.mjs +2425 -0
  216. package/dist/server/constants/iso-locales.json.mjs.map +1 -0
  217. package/dist/server/content-types/index.js +10 -0
  218. package/dist/server/content-types/index.js.map +1 -0
  219. package/dist/server/content-types/index.mjs +8 -0
  220. package/dist/server/content-types/index.mjs.map +1 -0
  221. package/dist/server/content-types/locale/index.js +10 -0
  222. package/dist/server/content-types/locale/index.js.map +1 -0
  223. package/dist/server/content-types/locale/index.mjs +8 -0
  224. package/dist/server/content-types/locale/index.mjs.map +1 -0
  225. package/dist/server/content-types/locale/schema.json.js +46 -0
  226. package/dist/server/content-types/locale/schema.json.js.map +1 -0
  227. package/dist/server/content-types/locale/schema.json.mjs +38 -0
  228. package/dist/server/content-types/locale/schema.json.mjs.map +1 -0
  229. package/dist/server/controllers/ai-localization-jobs.js +47 -0
  230. package/dist/server/controllers/ai-localization-jobs.js.map +1 -0
  231. package/dist/server/controllers/ai-localization-jobs.mjs +45 -0
  232. package/dist/server/controllers/ai-localization-jobs.mjs.map +1 -0
  233. package/dist/server/controllers/content-types.js +76 -0
  234. package/dist/server/controllers/content-types.js.map +1 -0
  235. package/dist/server/controllers/content-types.mjs +74 -0
  236. package/dist/server/controllers/content-types.mjs.map +1 -0
  237. package/dist/server/controllers/index.js +18 -0
  238. package/dist/server/controllers/index.js.map +1 -0
  239. package/dist/server/controllers/index.mjs +16 -0
  240. package/dist/server/controllers/index.mjs.map +1 -0
  241. package/dist/server/controllers/iso-locales.js +13 -0
  242. package/dist/server/controllers/iso-locales.js.map +1 -0
  243. package/dist/server/controllers/iso-locales.mjs +11 -0
  244. package/dist/server/controllers/iso-locales.mjs.map +1 -0
  245. package/dist/server/controllers/locales.js +108 -0
  246. package/dist/server/controllers/locales.js.map +1 -0
  247. package/dist/server/controllers/locales.mjs +87 -0
  248. package/dist/server/controllers/locales.mjs.map +1 -0
  249. package/dist/server/controllers/settings.js +24 -0
  250. package/dist/server/controllers/settings.js.map +1 -0
  251. package/dist/server/controllers/settings.mjs +22 -0
  252. package/dist/server/controllers/settings.mjs.map +1 -0
  253. package/dist/server/controllers/validate-locale-creation.js +47 -0
  254. package/dist/server/controllers/validate-locale-creation.js.map +1 -0
  255. package/dist/server/controllers/validate-locale-creation.mjs +45 -0
  256. package/dist/server/controllers/validate-locale-creation.mjs.map +1 -0
  257. package/dist/server/domain/locale.js +11 -0
  258. package/dist/server/domain/locale.js.map +1 -0
  259. package/dist/server/domain/locale.mjs +9 -0
  260. package/dist/server/domain/locale.mjs.map +1 -0
  261. package/dist/server/graphql.js +115 -0
  262. package/dist/server/graphql.js.map +1 -0
  263. package/dist/server/graphql.mjs +113 -0
  264. package/dist/server/graphql.mjs.map +1 -0
  265. package/dist/server/index.js +18 -3520
  266. package/dist/server/index.js.map +1 -1
  267. package/dist/server/index.mjs +17 -3502
  268. package/dist/server/index.mjs.map +1 -1
  269. package/dist/server/models/ai-localization-job.js +60 -0
  270. package/dist/server/models/ai-localization-job.js.map +1 -0
  271. package/dist/server/models/ai-localization-job.mjs +57 -0
  272. package/dist/server/models/ai-localization-job.mjs.map +1 -0
  273. package/dist/server/register.js +81 -0
  274. package/dist/server/register.js.map +1 -0
  275. package/dist/server/register.mjs +79 -0
  276. package/dist/server/register.mjs.map +1 -0
  277. package/dist/server/routes/admin.js +142 -0
  278. package/dist/server/routes/admin.js.map +1 -0
  279. package/dist/server/routes/admin.mjs +140 -0
  280. package/dist/server/routes/admin.mjs.map +1 -0
  281. package/dist/server/routes/content-api.js +19 -0
  282. package/dist/server/routes/content-api.js.map +1 -0
  283. package/dist/server/routes/content-api.mjs +17 -0
  284. package/dist/server/routes/content-api.mjs.map +1 -0
  285. package/dist/server/routes/index.js +12 -0
  286. package/dist/server/routes/index.js.map +1 -0
  287. package/dist/server/routes/index.mjs +10 -0
  288. package/dist/server/routes/index.mjs.map +1 -0
  289. package/dist/server/routes/validation/locale.js +57 -0
  290. package/dist/server/routes/validation/locale.js.map +1 -0
  291. package/dist/server/routes/validation/locale.mjs +36 -0
  292. package/dist/server/routes/validation/locale.mjs.map +1 -0
  293. package/dist/server/services/ai-localization-jobs.js +64 -0
  294. package/dist/server/services/ai-localization-jobs.js.map +1 -0
  295. package/dist/server/services/ai-localization-jobs.mjs +62 -0
  296. package/dist/server/services/ai-localization-jobs.mjs.map +1 -0
  297. package/dist/server/services/ai-localizations.js +268 -0
  298. package/dist/server/services/ai-localizations.js.map +1 -0
  299. package/dist/server/services/ai-localizations.mjs +266 -0
  300. package/dist/server/services/ai-localizations.mjs.map +1 -0
  301. package/dist/server/services/content-types.js +157 -0
  302. package/dist/server/services/content-types.js.map +1 -0
  303. package/dist/server/services/content-types.mjs +155 -0
  304. package/dist/server/services/content-types.mjs.map +1 -0
  305. package/dist/server/services/index.js +28 -0
  306. package/dist/server/services/index.js.map +1 -0
  307. package/dist/server/services/index.mjs +26 -0
  308. package/dist/server/services/index.mjs.map +1 -0
  309. package/dist/server/services/iso-locales.js +12 -0
  310. package/dist/server/services/iso-locales.js.map +1 -0
  311. package/dist/server/services/iso-locales.mjs +10 -0
  312. package/dist/server/services/iso-locales.mjs.map +1 -0
  313. package/dist/server/services/locales.js +114 -0
  314. package/dist/server/services/locales.js.map +1 -0
  315. package/dist/server/services/locales.mjs +112 -0
  316. package/dist/server/services/locales.mjs.map +1 -0
  317. package/dist/server/services/localizations.js +68 -0
  318. package/dist/server/services/localizations.js.map +1 -0
  319. package/dist/server/services/localizations.mjs +66 -0
  320. package/dist/server/services/localizations.mjs.map +1 -0
  321. package/dist/server/services/metrics.js +30 -0
  322. package/dist/server/services/metrics.js.map +1 -0
  323. package/dist/server/services/metrics.mjs +28 -0
  324. package/dist/server/services/metrics.mjs.map +1 -0
  325. package/dist/server/services/permissions/actions.js +136 -0
  326. package/dist/server/services/permissions/actions.js.map +1 -0
  327. package/dist/server/services/permissions/actions.mjs +134 -0
  328. package/dist/server/services/permissions/actions.mjs.map +1 -0
  329. package/dist/server/services/permissions/engine.js +52 -0
  330. package/dist/server/services/permissions/engine.js.map +1 -0
  331. package/dist/server/services/permissions/engine.mjs +50 -0
  332. package/dist/server/services/permissions/engine.mjs.map +1 -0
  333. package/dist/server/services/permissions/sections-builder.js +45 -0
  334. package/dist/server/services/permissions/sections-builder.js.map +1 -0
  335. package/dist/server/services/permissions/sections-builder.mjs +43 -0
  336. package/dist/server/services/permissions/sections-builder.mjs.map +1 -0
  337. package/dist/server/services/permissions.js +14 -0
  338. package/dist/server/services/permissions.js.map +1 -0
  339. package/dist/server/services/permissions.mjs +12 -0
  340. package/dist/server/services/permissions.mjs.map +1 -0
  341. package/dist/server/services/sanitize/index.js +34 -0
  342. package/dist/server/services/sanitize/index.js.map +1 -0
  343. package/dist/server/services/sanitize/index.mjs +32 -0
  344. package/dist/server/services/sanitize/index.mjs.map +1 -0
  345. package/dist/server/services/settings.js +25 -0
  346. package/dist/server/services/settings.js.map +1 -0
  347. package/dist/server/services/settings.mjs +23 -0
  348. package/dist/server/services/settings.mjs.map +1 -0
  349. package/dist/server/src/bootstrap.d.ts +1 -4
  350. package/dist/server/src/bootstrap.d.ts.map +1 -1
  351. package/dist/server/src/controllers/ai-localization-jobs.d.ts +17 -0
  352. package/dist/server/src/controllers/ai-localization-jobs.d.ts.map +1 -0
  353. package/dist/server/src/controllers/index.d.ts +10 -0
  354. package/dist/server/src/controllers/index.d.ts.map +1 -1
  355. package/dist/server/src/controllers/settings.d.ts +7 -0
  356. package/dist/server/src/controllers/settings.d.ts.map +1 -0
  357. package/dist/server/src/index.d.ts +67 -20
  358. package/dist/server/src/index.d.ts.map +1 -1
  359. package/dist/server/src/models/ai-localization-job.d.ts +5 -0
  360. package/dist/server/src/models/ai-localization-job.d.ts.map +1 -0
  361. package/dist/server/src/models/index.d.ts +5 -0
  362. package/dist/server/src/models/index.d.ts.map +1 -0
  363. package/dist/server/src/register.d.ts +1 -1
  364. package/dist/server/src/register.d.ts.map +1 -1
  365. package/dist/server/src/routes/admin.d.ts.map +1 -1
  366. package/dist/server/src/routes/content-api.d.ts +5 -8
  367. package/dist/server/src/routes/content-api.d.ts.map +1 -1
  368. package/dist/server/src/routes/index.d.ts +3 -7
  369. package/dist/server/src/routes/index.d.ts.map +1 -1
  370. package/dist/server/src/routes/validation/index.d.ts +2 -0
  371. package/dist/server/src/routes/validation/index.d.ts.map +1 -0
  372. package/dist/server/src/routes/validation/locale.d.ts +41 -0
  373. package/dist/server/src/routes/validation/locale.d.ts.map +1 -0
  374. package/dist/server/src/services/ai-localization-jobs.d.ts +26 -0
  375. package/dist/server/src/services/ai-localization-jobs.d.ts.map +1 -0
  376. package/dist/server/src/services/ai-localizations.d.ts +18 -0
  377. package/dist/server/src/services/ai-localizations.d.ts.map +1 -0
  378. package/dist/server/src/services/index.d.ts +53 -10
  379. package/dist/server/src/services/index.d.ts.map +1 -1
  380. package/dist/server/src/services/localizations.d.ts +1 -1
  381. package/dist/server/src/services/localizations.d.ts.map +1 -1
  382. package/dist/server/src/services/permissions/actions.d.ts +14 -2
  383. package/dist/server/src/services/permissions/actions.d.ts.map +1 -1
  384. package/dist/server/src/services/permissions.d.ts +14 -2
  385. package/dist/server/src/services/permissions.d.ts.map +1 -1
  386. package/dist/server/src/services/sanitize/index.d.ts +11 -0
  387. package/dist/server/src/services/sanitize/index.d.ts.map +1 -0
  388. package/dist/server/src/services/settings.d.ts +13 -0
  389. package/dist/server/src/services/settings.d.ts.map +1 -0
  390. package/dist/server/src/utils/index.d.ts +9 -3
  391. package/dist/server/src/utils/index.d.ts.map +1 -1
  392. package/dist/server/src/validation/settings.d.ts +12 -0
  393. package/dist/server/src/validation/settings.d.ts.map +1 -0
  394. package/dist/server/utils/index.js +16 -0
  395. package/dist/server/utils/index.js.map +1 -0
  396. package/dist/server/utils/index.mjs +13 -0
  397. package/dist/server/utils/index.mjs.map +1 -0
  398. package/dist/server/validation/content-types.js +18 -0
  399. package/dist/server/validation/content-types.js.map +1 -0
  400. package/dist/server/validation/content-types.mjs +16 -0
  401. package/dist/server/validation/content-types.mjs.map +1 -0
  402. package/dist/server/validation/locales.js +23 -0
  403. package/dist/server/validation/locales.js.map +1 -0
  404. package/dist/server/validation/locales.mjs +20 -0
  405. package/dist/server/validation/locales.mjs.map +1 -0
  406. package/dist/server/validation/settings.js +11 -0
  407. package/dist/server/validation/settings.js.map +1 -0
  408. package/dist/server/validation/settings.mjs +9 -0
  409. package/dist/server/validation/settings.mjs.map +1 -0
  410. package/dist/shared/contracts/ai-localization-jobs.d.ts +27 -0
  411. package/dist/shared/contracts/ai-localization-jobs.d.ts.map +1 -0
  412. package/dist/shared/contracts/content-manager.d.ts +1 -1
  413. package/dist/shared/contracts/settings.d.ts +40 -0
  414. package/dist/shared/contracts/shared.d.ts +1 -1
  415. package/dist/shared/contracts/shared.d.ts.map +1 -0
  416. package/package.json +22 -17
  417. package/dist/_chunks/SettingsPage-CsGvujny.mjs +0 -554
  418. package/dist/_chunks/SettingsPage-CsGvujny.mjs.map +0 -1
  419. package/dist/_chunks/SettingsPage-DA9haizZ.js +0 -574
  420. package/dist/_chunks/SettingsPage-DA9haizZ.js.map +0 -1
  421. package/dist/_chunks/de-9eCAqqrB.mjs +0 -66
  422. package/dist/_chunks/de-9eCAqqrB.mjs.map +0 -1
  423. package/dist/_chunks/de-DtWiGdHl.js +0 -66
  424. package/dist/_chunks/de-DtWiGdHl.js.map +0 -1
  425. package/dist/_chunks/dk-2qBjxt-P.mjs +0 -66
  426. package/dist/_chunks/dk-2qBjxt-P.mjs.map +0 -1
  427. package/dist/_chunks/dk-D8C-casx.js +0 -66
  428. package/dist/_chunks/dk-D8C-casx.js.map +0 -1
  429. package/dist/_chunks/en-BsOU9o5z.js +0 -74
  430. package/dist/_chunks/en-BsOU9o5z.js.map +0 -1
  431. package/dist/_chunks/en-CM6Pjfyv.mjs +0 -74
  432. package/dist/_chunks/en-CM6Pjfyv.mjs.map +0 -1
  433. package/dist/_chunks/es-DS-XFGSw.js +0 -66
  434. package/dist/_chunks/es-DS-XFGSw.js.map +0 -1
  435. package/dist/_chunks/es-DlmMVaBG.mjs +0 -66
  436. package/dist/_chunks/es-DlmMVaBG.mjs.map +0 -1
  437. package/dist/_chunks/fr-3S6ke71d.mjs +0 -66
  438. package/dist/_chunks/fr-3S6ke71d.mjs.map +0 -1
  439. package/dist/_chunks/fr-BTjekDpq.js +0 -66
  440. package/dist/_chunks/fr-BTjekDpq.js.map +0 -1
  441. package/dist/_chunks/index-CCZJF_EJ.mjs +0 -1367
  442. package/dist/_chunks/index-CCZJF_EJ.mjs.map +0 -1
  443. package/dist/_chunks/index-DIzVXZoE.js +0 -1389
  444. package/dist/_chunks/index-DIzVXZoE.js.map +0 -1
  445. package/dist/_chunks/ko-DmcGUBQ3.js +0 -65
  446. package/dist/_chunks/ko-DmcGUBQ3.js.map +0 -1
  447. package/dist/_chunks/ko-qTjQ8IMw.mjs +0 -65
  448. package/dist/_chunks/ko-qTjQ8IMw.mjs.map +0 -1
  449. package/dist/_chunks/pl-B67TSHqT.mjs +0 -66
  450. package/dist/_chunks/pl-B67TSHqT.mjs.map +0 -1
  451. package/dist/_chunks/pl-Cn5RYonZ.js +0 -66
  452. package/dist/_chunks/pl-Cn5RYonZ.js.map +0 -1
  453. package/dist/_chunks/ru-BMBgVL3s.js +0 -68
  454. package/dist/_chunks/ru-BMBgVL3s.js.map +0 -1
  455. package/dist/_chunks/ru-hagMa57T.mjs +0 -68
  456. package/dist/_chunks/ru-hagMa57T.mjs.map +0 -1
  457. package/dist/_chunks/tr-CarUU76c.js +0 -66
  458. package/dist/_chunks/tr-CarUU76c.js.map +0 -1
  459. package/dist/_chunks/tr-Dw_jmkG-.mjs +0 -66
  460. package/dist/_chunks/tr-Dw_jmkG-.mjs.map +0 -1
  461. package/dist/_chunks/zh-57YM4amO.mjs +0 -66
  462. package/dist/_chunks/zh-57YM4amO.mjs.map +0 -1
  463. package/dist/_chunks/zh-CukOviB0.js +0 -66
  464. package/dist/_chunks/zh-CukOviB0.js.map +0 -1
  465. package/dist/_chunks/zh-Hans-DSHIXAa3.js +0 -57
  466. package/dist/_chunks/zh-Hans-DSHIXAa3.js.map +0 -1
  467. package/dist/_chunks/zh-Hans-Dyc-aR-h.mjs +0 -57
  468. package/dist/_chunks/zh-Hans-Dyc-aR-h.mjs.map +0 -1
  469. package/dist/server/src/migrations/content-type/disable/index.d.ts +0 -3
  470. package/dist/server/src/migrations/content-type/disable/index.d.ts.map +0 -1
  471. package/dist/server/src/migrations/content-type/enable/index.d.ts +0 -3
  472. package/dist/server/src/migrations/content-type/enable/index.d.ts.map +0 -1
  473. package/dist/server/src/services/entity-service-decorator.d.ts +0 -29
  474. package/dist/server/src/services/entity-service-decorator.d.ts.map +0 -1
  475. package/strapi-server.js +0 -3
@@ -1,11 +1,10 @@
1
1
  /// <reference types="koa" />
2
+ /// <reference types="lodash" />
2
3
  declare const _default: () => {
3
4
  register: ({ strapi }: {
4
5
  strapi: import("@strapi/types/dist/core").Strapi;
5
- }) => void;
6
- bootstrap: ({ strapi }: {
7
- strapi: import("@strapi/types/dist/core").Strapi;
8
6
  }) => Promise<void>;
7
+ bootstrap: () => Promise<void>;
9
8
  routes: {
10
9
  admin: {
11
10
  type: string;
@@ -23,13 +22,9 @@ declare const _default: () => {
23
22
  };
24
23
  }[];
25
24
  };
26
- 'content-api': {
27
- type: string;
28
- routes: {
29
- method: string;
30
- path: string;
31
- handler: string;
32
- }[];
25
+ 'content-api': () => {
26
+ type: "content-api";
27
+ routes: import("@strapi/types/dist/core").RouteInput[];
33
28
  };
34
29
  };
35
30
  controllers: {
@@ -38,6 +33,16 @@ declare const _default: () => {
38
33
  'content-types': {
39
34
  getNonLocalizedAttributes(ctx: import("koa").Context): Promise<import("koa").Context | undefined>;
40
35
  };
36
+ settings: {
37
+ updateSettings(ctx: import("koa").Context): Promise<void>;
38
+ getSettings(ctx: import("koa").Context): Promise<void>;
39
+ };
40
+ 'ai-localization-jobs': ({ strapi }: {
41
+ strapi: import("@strapi/types/dist/core").Strapi;
42
+ }) => {
43
+ getJobForSingleType(ctx: any): Promise<any>;
44
+ getJobForCollectionType(ctx: any): Promise<any>;
45
+ };
41
46
  };
42
47
  contentTypes: {
43
48
  locale: {
@@ -77,14 +82,26 @@ declare const _default: () => {
77
82
  services: {
78
83
  permissions: () => {
79
84
  actions: {
80
- actions: {
85
+ actions: ({
81
86
  section: string;
82
87
  category: string;
83
88
  subCategory: string;
84
89
  pluginName: string;
85
90
  displayName: string;
86
91
  uid: string;
87
- }[];
92
+ aliases?: undefined;
93
+ } | {
94
+ section: string;
95
+ category: string;
96
+ subCategory: string;
97
+ pluginName: string;
98
+ displayName: string;
99
+ uid: string;
100
+ aliases: {
101
+ actionId: string;
102
+ subjects: string[];
103
+ }[];
104
+ })[];
88
105
  registerI18nActions: () => Promise<void>;
89
106
  registerI18nActionsHooks: () => void;
90
107
  updateActionsProperties: () => void;
@@ -119,20 +136,17 @@ declare const _default: () => {
119
136
  delete: ({ id }: any) => Promise<any>;
120
137
  initDefaultLocale: () => Promise<void>;
121
138
  };
139
+ sanitize: ({ strapi }: {
140
+ strapi: import("@strapi/types/dist/core").Strapi;
141
+ }) => {
142
+ sanitizeLocalizationFields: import("lodash").CurriedFunction2<import("@strapi/types/dist/struct").ContentTypeSchema | import("@strapi/types/dist/struct").ComponentSchema, import("@strapi/types/dist/data").Entity<import("@strapi/types/dist/uid").Schema, string>, Promise<import("@strapi/utils/dist/types").Data>>;
143
+ };
122
144
  'iso-locales': () => {
123
145
  getIsoLocales: () => {
124
146
  code: string;
125
147
  name: string;
126
148
  }[];
127
149
  };
128
- 'entity-service-decorator': () => {
129
- decorator: (service: any) => {
130
- wrapResult(result?: {}, ctx?: {}): Promise<any>;
131
- wrapParams(params?: any, ctx?: any): Promise<any>;
132
- findMany(uid: any, opts: any): Promise<any>;
133
- };
134
- wrapParams: (params?: any, ctx?: any) => Promise<any>;
135
- };
136
150
  'content-types': () => {
137
151
  isLocalizedContentType: (model: any) => boolean;
138
152
  getValidLocale: (locale: any) => Promise<any>;
@@ -142,6 +156,39 @@ declare const _default: () => {
142
156
  fillNonLocalizedAttributes: (entry: any, relatedEntry: any, { model }: any) => void;
143
157
  getNestedPopulateOfNonLocalizedAttributes: (modelUID: any) => string[];
144
158
  };
159
+ 'ai-localizations': ({ strapi }: {
160
+ strapi: import("@strapi/types/dist/core").Strapi;
161
+ }) => {
162
+ isEnabled(): Promise<boolean>;
163
+ generateDocumentLocalizations({ model, document, }: {
164
+ model: import("@strapi/types/dist/uid").ContentType;
165
+ document: import("@strapi/types/dist/modules/documents").AnyDocument;
166
+ }): Promise<void>;
167
+ setupMiddleware(): void;
168
+ };
169
+ 'ai-localization-jobs': ({ strapi }: {
170
+ strapi: import("@strapi/types/dist/core").Strapi;
171
+ }) => {
172
+ upsertJobForDocument({ documentId, contentType, sourceLocale, targetLocales, status, }: {
173
+ documentId: string;
174
+ contentType: string;
175
+ sourceLocale: string;
176
+ targetLocales: string[];
177
+ status?: "processing" | "completed" | "failed" | undefined;
178
+ }): Promise<any>;
179
+ getJobByDocument(contentType: string, documentId: string): Promise<any>;
180
+ getJobByContentType(contentType: string): Promise<any>;
181
+ };
182
+ settings: ({ strapi }: {
183
+ strapi: import("@strapi/types/dist/core").Strapi;
184
+ }) => {
185
+ getSettings: () => Promise<import("yup/lib/object").AssertsShape<{
186
+ aiLocalizations: import("yup").BooleanSchema<boolean, Record<string, any>, boolean>;
187
+ }> | null>;
188
+ setSettings: (value: import("yup/lib/object").AssertsShape<{
189
+ aiLocalizations: import("yup").BooleanSchema<boolean, Record<string, any>, boolean>;
190
+ }>) => Promise<void>;
191
+ };
145
192
  };
146
193
  };
147
194
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAOG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAOG"}
@@ -0,0 +1,5 @@
1
+ import type { Model } from '@strapi/database';
2
+ declare const AI_LOCALIZATION_JOB_UID = "plugin::i18n.ai-localization-job";
3
+ declare const aiLocalizationJob: Model;
4
+ export { aiLocalizationJob, AI_LOCALIZATION_JOB_UID };
5
+ //# sourceMappingURL=ai-localization-job.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-localization-job.d.ts","sourceRoot":"","sources":["../../../../server/src/models/ai-localization-job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,QAAA,MAAM,uBAAuB,qCAAqC,CAAC;AAEnE,QAAA,MAAM,iBAAiB,EAAE,KAsCxB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ aiLocalizationJob: import("@strapi/database").Model;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/models/index.ts"],"names":[],"mappings":";;;AAEA,wBAEE"}
@@ -1,6 +1,6 @@
1
1
  import type { Core } from '@strapi/types';
2
2
  declare const _default: ({ strapi }: {
3
3
  strapi: Core.Strapi;
4
- }) => void;
4
+ }) => Promise<void>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=register.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../server/src/register.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCAQd;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;AAAnD,wBAIE"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../server/src/register.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCAOR;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;AAAzD,wBAKE"}
@@ -1 +1 @@
1
- {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/admin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wBA4EE"}
1
+ {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/admin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wBA4GE"}
@@ -1,10 +1,7 @@
1
- declare const _default: {
2
- type: string;
3
- routes: {
4
- method: string;
5
- path: string;
6
- handler: string;
7
- }[];
1
+ import type { Core } from '@strapi/types';
2
+ declare const createContentApiRoutes: () => {
3
+ type: "content-api";
4
+ routes: Core.RouteInput[];
8
5
  };
9
- export default _default;
6
+ export default createContentApiRoutes;
10
7
  //# sourceMappingURL=content-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-api.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/content-api.ts"],"names":[],"mappings":";;;;;;;;AAAA,wBASE"}
1
+ {"version":3,"file":"content-api.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/content-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI1C,QAAA,MAAM,sBAAsB;;;CAU1B,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
@@ -15,13 +15,9 @@ declare const _default: {
15
15
  };
16
16
  }[];
17
17
  };
18
- 'content-api': {
19
- type: string;
20
- routes: {
21
- method: string;
22
- path: string;
23
- handler: string;
24
- }[];
18
+ 'content-api': () => {
19
+ type: "content-api";
20
+ routes: import("@strapi/types/dist/core").RouteInput[];
25
21
  };
26
22
  };
27
23
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
@@ -0,0 +1,2 @@
1
+ export { I18nLocaleRouteValidator } from './locale';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/routes/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { Core } from '@strapi/types';
2
+ import * as z from 'zod/v4';
3
+ /**
4
+ * A validator for i18n locale routes.
5
+ *
6
+ */
7
+ export declare class I18nLocaleRouteValidator {
8
+ protected readonly _strapi: Core.Strapi;
9
+ constructor(strapi: Core.Strapi);
10
+ /**
11
+ * Generates a validation schema for a single locale.
12
+ *
13
+ * @returns A schema for validating locale objects
14
+ */
15
+ get locale(): z.ZodObject<{
16
+ id: z.ZodNumber;
17
+ documentId: z.ZodString;
18
+ name: z.ZodString;
19
+ code: z.ZodString;
20
+ createdAt: z.ZodString;
21
+ updatedAt: z.ZodString;
22
+ publishedAt: z.ZodNullable<z.ZodString>;
23
+ isDefault: z.ZodBoolean;
24
+ }, z.core.$strip>;
25
+ /**
26
+ * Generates a validation schema for an array of locales
27
+ *
28
+ * @returns A schema for validating arrays of locales
29
+ */
30
+ get locales(): z.ZodArray<z.ZodObject<{
31
+ id: z.ZodNumber;
32
+ documentId: z.ZodString;
33
+ name: z.ZodString;
34
+ code: z.ZodString;
35
+ createdAt: z.ZodString;
36
+ updatedAt: z.ZodString;
37
+ publishedAt: z.ZodNullable<z.ZodString>;
38
+ isDefault: z.ZodBoolean;
39
+ }, z.core.$strip>>;
40
+ }
41
+ //# sourceMappingURL=locale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../../../server/src/routes/validation/locale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;;GAGG;AACH,qBAAa,wBAAwB;IACnC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC;gBAErB,MAAM,EAAE,IAAI,CAAC,MAAM;IAItC;;;;OAIG;IACH,IAAI,MAAM;;;;;;;;;sBAWT;IAED;;;;OAIG;IACH,IAAI,OAAO;;;;;;;;;uBAEV;CACF"}
@@ -0,0 +1,26 @@
1
+ import type { Core } from '@strapi/types';
2
+ import type { AILocalizationJobs } from '../../../shared/contracts/ai-localization-jobs';
3
+ export declare const createAILocalizationJobsService: ({ strapi }: {
4
+ strapi: Core.Strapi;
5
+ }) => {
6
+ /**
7
+ * Create a new AI localizations job or update an existing one for a document
8
+ * Ensures only one job exists per document
9
+ */
10
+ upsertJobForDocument({ documentId, contentType, sourceLocale, targetLocales, status, }: {
11
+ documentId: string;
12
+ contentType: string;
13
+ sourceLocale: string;
14
+ targetLocales: string[];
15
+ status?: AILocalizationJobs['status'];
16
+ }): Promise<any>;
17
+ /**
18
+ * Get job by document ID
19
+ */
20
+ getJobByDocument(contentType: string, documentId: string): Promise<any>;
21
+ /**
22
+ * Get job by content type
23
+ */
24
+ getJobByContentType(contentType: string): Promise<any>;
25
+ };
26
+ //# sourceMappingURL=ai-localization-jobs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-localization-jobs.d.ts","sourceRoot":"","sources":["../../../../server/src/services/ai-localization-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEzF,eAAO,MAAM,+BAA+B,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;IACjF;;;OAGG;4FAOA;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;KACvC;IAsCD;;OAEG;kCACiC,MAAM,cAAc,MAAM;IAS9D;;OAEG;qCACoC,MAAM;CAO7C,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { Core, Modules, UID } from '@strapi/types';
2
+ declare const createAILocalizationsService: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => {
5
+ isEnabled(): Promise<boolean>;
6
+ /**
7
+ * Checks if there are localizations that need to be generated for the given document,
8
+ * and if so, calls the AI service and saves the results to the database.
9
+ * Works for both single and collection types, on create and update.
10
+ */
11
+ generateDocumentLocalizations({ model, document, }: {
12
+ model: UID.ContentType;
13
+ document: Modules.Documents.AnyDocument;
14
+ }): Promise<void>;
15
+ setupMiddleware(): void;
16
+ };
17
+ export { createAILocalizationsService };
18
+ //# sourceMappingURL=ai-localizations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-localizations.d.ts","sourceRoot":"","sources":["../../../../server/src/services/ai-localizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAU,GAAG,EAAE,MAAM,eAAe,CAAC;AAQhE,QAAA,MAAM,4BAA4B,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;IAuCrE;;;;OAIG;wDAIA;QACD,KAAK,EAAE,IAAI,WAAW,CAAC;QACvB,QAAQ,EAAE,QAAQ,SAAS,CAAC,WAAW,CAAC;KACzC;;CAgQJ,CAAC;AAEF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
@@ -1,14 +1,27 @@
1
+ /// <reference types="lodash" />
1
2
  declare const _default: {
2
3
  permissions: () => {
3
4
  actions: {
4
- actions: {
5
+ actions: ({
5
6
  section: string;
6
7
  category: string;
7
8
  subCategory: string;
8
9
  pluginName: string;
9
10
  displayName: string;
10
11
  uid: string;
11
- }[];
12
+ aliases?: undefined;
13
+ } | {
14
+ section: string;
15
+ category: string;
16
+ subCategory: string;
17
+ pluginName: string;
18
+ displayName: string;
19
+ uid: string;
20
+ aliases: {
21
+ actionId: string;
22
+ subjects: string[];
23
+ }[];
24
+ })[];
12
25
  registerI18nActions: () => Promise<void>;
13
26
  registerI18nActionsHooks: () => void;
14
27
  updateActionsProperties: () => void;
@@ -43,20 +56,17 @@ declare const _default: {
43
56
  delete: ({ id }: any) => Promise<any>;
44
57
  initDefaultLocale: () => Promise<void>;
45
58
  };
59
+ sanitize: ({ strapi }: {
60
+ strapi: import("@strapi/types/dist/core").Strapi;
61
+ }) => {
62
+ sanitizeLocalizationFields: import("lodash").CurriedFunction2<import("@strapi/types/dist/struct").ContentTypeSchema | import("@strapi/types/dist/struct").ComponentSchema, import("@strapi/types/dist/data").Entity<import("@strapi/types/dist/uid").Schema, string>, Promise<import("@strapi/utils/dist/types").Data>>;
63
+ };
46
64
  'iso-locales': () => {
47
65
  getIsoLocales: () => {
48
66
  code: string;
49
67
  name: string;
50
68
  }[];
51
69
  };
52
- 'entity-service-decorator': () => {
53
- decorator: (service: any) => {
54
- wrapResult(result?: {}, ctx?: {}): Promise<any>;
55
- wrapParams(params?: any, ctx?: any): Promise<any>;
56
- findMany(uid: any, opts: any): Promise<any>;
57
- };
58
- wrapParams: (params?: any, ctx?: any) => Promise<any>;
59
- };
60
70
  'content-types': () => {
61
71
  isLocalizedContentType: (model: any) => boolean;
62
72
  getValidLocale: (locale: any) => Promise<any>;
@@ -66,6 +76,39 @@ declare const _default: {
66
76
  fillNonLocalizedAttributes: (entry: any, relatedEntry: any, { model }: any) => void;
67
77
  getNestedPopulateOfNonLocalizedAttributes: (modelUID: any) => string[];
68
78
  };
79
+ 'ai-localizations': ({ strapi }: {
80
+ strapi: import("@strapi/types/dist/core").Strapi;
81
+ }) => {
82
+ isEnabled(): Promise<boolean>;
83
+ generateDocumentLocalizations({ model, document, }: {
84
+ model: import("@strapi/types/dist/uid").ContentType;
85
+ document: import("@strapi/types/dist/modules/documents").AnyDocument;
86
+ }): Promise<void>;
87
+ setupMiddleware(): void;
88
+ };
89
+ 'ai-localization-jobs': ({ strapi }: {
90
+ strapi: import("@strapi/types/dist/core").Strapi;
91
+ }) => {
92
+ upsertJobForDocument({ documentId, contentType, sourceLocale, targetLocales, status, }: {
93
+ documentId: string;
94
+ contentType: string;
95
+ sourceLocale: string;
96
+ targetLocales: string[];
97
+ status?: "processing" | "completed" | "failed" | undefined;
98
+ }): Promise<any>;
99
+ getJobByDocument(contentType: string, documentId: string): Promise<any>;
100
+ getJobByContentType(contentType: string): Promise<any>;
101
+ };
102
+ settings: ({ strapi }: {
103
+ strapi: import("@strapi/types/dist/core").Strapi;
104
+ }) => {
105
+ getSettings: () => Promise<import("yup/lib/object").AssertsShape<{
106
+ aiLocalizations: import("yup").BooleanSchema<boolean, Record<string, any>, boolean>;
107
+ }> | null>;
108
+ setSettings: (value: import("yup/lib/object").AssertsShape<{
109
+ aiLocalizations: import("yup").BooleanSchema<boolean, Record<string, any>, boolean>;
110
+ }>) => Promise<void>;
111
+ };
69
112
  };
70
113
  export default _default;
71
114
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAQE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wBAWE"}
@@ -1,4 +1,4 @@
1
- import { type Schema } from '@strapi/types';
1
+ import type { Schema } from '@strapi/types';
2
2
  declare const localizations: () => {
3
3
  syncNonLocalizedAttributes: (sourceEntry: any, model: Schema.ContentType) => Promise<void>;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"localizations.d.ts","sourceRoot":"","sources":["../../../../server/src/services/localizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AA+D5C,QAAA,MAAM,aAAa;8CAxDoC,GAAG,SAAS,OAAO,WAAW;CA0DnF,CAAC;AAEH,KAAK,oBAAoB,GAAG,OAAO,aAAa,CAAC;AAEjD,eAAe,aAAa,CAAC;AAC7B,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"localizations.d.ts","sourceRoot":"","sources":["../../../../server/src/services/localizations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AA+D5C,QAAA,MAAM,aAAa;8CAxDoC,GAAG,SAAS,OAAO,WAAW;CA0DnF,CAAC;AAEH,KAAK,oBAAoB,GAAG,OAAO,aAAa,CAAC;AAEjD,eAAe,aAAa,CAAC;AAC7B,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,12 +1,24 @@
1
1
  declare const _default: {
2
- actions: {
2
+ actions: ({
3
3
  section: string;
4
4
  category: string;
5
5
  subCategory: string;
6
6
  pluginName: string;
7
7
  displayName: string;
8
8
  uid: string;
9
- }[];
9
+ aliases?: undefined;
10
+ } | {
11
+ section: string;
12
+ category: string;
13
+ subCategory: string;
14
+ pluginName: string;
15
+ displayName: string;
16
+ uid: string;
17
+ aliases: {
18
+ actionId: string;
19
+ subjects: string[];
20
+ }[];
21
+ })[];
10
22
  registerI18nActions: () => Promise<void>;
11
23
  registerI18nActionsHooks: () => void;
12
24
  updateActionsProperties: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/permissions/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAuHA,wBAME"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/permissions/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoJA,wBAME"}
@@ -1,13 +1,25 @@
1
1
  declare const permissions: () => {
2
2
  actions: {
3
- actions: {
3
+ actions: ({
4
4
  section: string;
5
5
  category: string;
6
6
  subCategory: string;
7
7
  pluginName: string;
8
8
  displayName: string;
9
9
  uid: string;
10
- }[];
10
+ aliases?: undefined;
11
+ } | {
12
+ section: string;
13
+ category: string;
14
+ subCategory: string;
15
+ pluginName: string;
16
+ displayName: string;
17
+ uid: string;
18
+ aliases: {
19
+ actionId: string;
20
+ subjects: string[];
21
+ }[];
22
+ })[];
11
23
  registerI18nActions: () => Promise<void>;
12
24
  registerI18nActionsHooks: () => void;
13
25
  updateActionsProperties: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../../server/src/services/permissions.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;CAIf,CAAC;AAEH,KAAK,kBAAkB,GAAG,OAAO,WAAW,CAAC;AAE7C,eAAe,WAAW,CAAC;AAC3B,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../../server/src/services/permissions.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIf,CAAC;AAEH,KAAK,kBAAkB,GAAG,OAAO,WAAW,CAAC;AAE7C,eAAe,WAAW,CAAC;AAC3B,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="lodash" />
2
+ import type { Core, Data } from '@strapi/types';
3
+ declare const sanitize: ({ strapi }: {
4
+ strapi: Core.Strapi;
5
+ }) => {
6
+ sanitizeLocalizationFields: import("lodash").CurriedFunction2<import("@strapi/types/dist/struct").ContentTypeSchema | import("@strapi/types/dist/struct").ComponentSchema, Data.Entity<import("@strapi/types/dist/uid").Schema, string>, Promise<import("@strapi/utils/dist/types").Data>>;
7
+ };
8
+ type SanitizeService = typeof sanitize;
9
+ export default sanitize;
10
+ export type { SanitizeService };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/sanitize/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAU,IAAI,EAAE,MAAM,eAAe,CAAC;AASxD,QAAA,MAAM,QAAQ,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;CA2BpD,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAe,QAAQ,CAAC;AACxB,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Core } from '@strapi/types';
2
+ import type { Settings } from '../validation/settings';
3
+ declare const createSettingsService: ({ strapi }: {
4
+ strapi: Core.Strapi;
5
+ }) => {
6
+ getSettings: () => Promise<import("yup/lib/object").AssertsShape<{
7
+ aiLocalizations: import("yup").BooleanSchema<boolean, Record<string, any>, boolean>;
8
+ }> | null>;
9
+ setSettings: (value: Settings) => Promise<void>;
10
+ };
11
+ export { createSettingsService };
12
+ export type SettingsService = ReturnType<typeof createSettingsService>;
13
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../server/src/services/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD,QAAA,MAAM,qBAAqB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;;yBASpC,QAAQ;CAQrC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC;AACjC,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -2,17 +2,23 @@ import type { LocaleService } from '../services/locales';
2
2
  import type { PermissionsService } from '../services/permissions';
3
3
  import type { ContentTypesService } from '../services/content-types';
4
4
  import type { MetricsService } from '../services/metrics';
5
- import type { EntityServiceDecoratorService } from '../services/entity-service-decorator';
6
5
  import type { ISOLocalesService } from '../services/iso-locales';
7
6
  import type { LocalizationsService } from '../services/localizations';
7
+ import type { SanitizeService } from '../services/sanitize';
8
+ import type { SettingsService } from '../services/settings';
9
+ import type { createAILocalizationsService } from '../services/ai-localizations';
10
+ import type { createAILocalizationJobsService } from '../services/ai-localization-jobs';
8
11
  type S = {
9
12
  permissions: PermissionsService;
10
13
  metrics: MetricsService;
11
14
  locales: LocaleService;
12
15
  localizations: LocalizationsService;
16
+ settings: SettingsService;
13
17
  ['iso-locales']: ISOLocalesService;
14
18
  ['content-types']: ContentTypesService;
15
- ['entity-service-decorator']: EntityServiceDecoratorService;
19
+ sanitize: SanitizeService;
20
+ ['ai-localizations']: ReturnType<typeof createAILocalizationsService>;
21
+ 'ai-localization-jobs': ReturnType<typeof createAILocalizationJobsService>;
16
22
  };
17
23
  declare const getCoreStore: () => {
18
24
  get(params?: Partial<{
@@ -38,6 +44,6 @@ declare const getCoreStore: () => {
38
44
  tag?: string | undefined;
39
45
  }> | undefined): Promise<void>;
40
46
  };
41
- declare const getService: <T extends keyof S>(name: T) => ReturnType<S[T]>;
47
+ declare const getService: <T extends keyof S>(name: T) => S[T] extends (...args: any) => any ? ReturnType<S[T]> : S[T];
42
48
  export { getService, getCoreStore };
43
49
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,KAAK,CAAC,GAAG;IACP,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,aAAa,CAAC;IACvB,aAAa,EAAE,oBAAoB,CAAC;IACpC,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IACnC,CAAC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACvC,CAAC,0BAA0B,CAAC,EAAE,6BAA6B,CAAC;CAC7D,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;CAEjB,CAAC;AAGF,QAAA,MAAM,UAAU,4BAA6B,CAAC,KAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAE/D,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AAExF,KAAK,CAAC,GAAG;IACP,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,aAAa,CAAC;IACvB,aAAa,EAAE,oBAAoB,CAAC;IACpC,QAAQ,EAAE,eAAe,CAAC;IAC1B,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IACnC,CAAC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACvC,QAAQ,EAAE,eAAe,CAAC;IAC1B,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;IACtE,sBAAsB,EAAE,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;CAC5E,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;CAEjB,CAAC;AAGF,QAAA,MAAM,UAAU,4BACR,CAAC,KACN,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAE7D,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { yup } from '@strapi/utils';
2
+ declare const settingsSchema: import("yup/lib/object").OptionalObjectSchema<{
3
+ aiLocalizations: yup.BooleanSchema<boolean, Record<string, any>, boolean>;
4
+ }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
5
+ aiLocalizations: yup.BooleanSchema<boolean, Record<string, any>, boolean>;
6
+ }>>;
7
+ declare const _default: (body: unknown, errorMessage?: string | undefined) => Promise<import("yup/lib/object").AssertsShape<{
8
+ aiLocalizations: yup.BooleanSchema<boolean, Record<string, any>, boolean>;
9
+ }>>;
10
+ export default _default;
11
+ export type Settings = yup.InferType<typeof settingsSchema>;
12
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../server/src/validation/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,eAAe,CAAC;AAEvD,QAAA,MAAM,cAAc;;;;GAElB,CAAC;;;;AAEH,wBAAiD;AAEjD,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC,SAAS,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ const getCoreStore = ()=>{
4
+ return strapi.store({
5
+ type: 'plugin',
6
+ name: 'i18n'
7
+ });
8
+ };
9
+ // retrieve a local service
10
+ const getService = (name)=>{
11
+ return strapi.plugin('i18n').service(name);
12
+ };
13
+
14
+ exports.getCoreStore = getCoreStore;
15
+ exports.getService = getService;
16
+ //# sourceMappingURL=index.js.map