@strapi/i18n 0.0.0-next.0fc44faf3ab6f94c481a4d426988705776878bb3 → 0.0.0-next.10e62155f737fd6e63fc8a032ef377bdbf764e76

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 (189) hide show
  1. package/dist/admin/components/BulkLocaleActionModal.js.map +1 -1
  2. package/dist/admin/components/BulkLocaleActionModal.mjs.map +1 -1
  3. package/dist/admin/components/CMHeaderActions.js +252 -5
  4. package/dist/admin/components/CMHeaderActions.js.map +1 -1
  5. package/dist/admin/components/CMHeaderActions.mjs +256 -10
  6. package/dist/admin/components/CMHeaderActions.mjs.map +1 -1
  7. package/dist/admin/components/CreateLocale.js +3 -4
  8. package/dist/admin/components/CreateLocale.js.map +1 -1
  9. package/dist/admin/components/CreateLocale.mjs +4 -5
  10. package/dist/admin/components/CreateLocale.mjs.map +1 -1
  11. package/dist/admin/components/EditLocale.js +1 -1
  12. package/dist/admin/components/EditLocale.js.map +1 -1
  13. package/dist/admin/components/EditLocale.mjs +1 -1
  14. package/dist/admin/components/EditLocale.mjs.map +1 -1
  15. package/dist/admin/components/LocaleListCell.js +65 -45
  16. package/dist/admin/components/LocaleListCell.js.map +1 -1
  17. package/dist/admin/components/LocaleListCell.mjs +66 -46
  18. package/dist/admin/components/LocaleListCell.mjs.map +1 -1
  19. package/dist/admin/components/LocalePicker.js +18 -11
  20. package/dist/admin/components/LocalePicker.js.map +1 -1
  21. package/dist/admin/components/LocalePicker.mjs +19 -12
  22. package/dist/admin/components/LocalePicker.mjs.map +1 -1
  23. package/dist/admin/contentManagerHooks/editView.js +6 -3
  24. package/dist/admin/contentManagerHooks/editView.js.map +1 -1
  25. package/dist/admin/contentManagerHooks/editView.mjs +7 -4
  26. package/dist/admin/contentManagerHooks/editView.mjs.map +1 -1
  27. package/dist/admin/contentManagerHooks/listView.js +2 -1
  28. package/dist/admin/contentManagerHooks/listView.js.map +1 -1
  29. package/dist/admin/contentManagerHooks/listView.mjs +2 -1
  30. package/dist/admin/contentManagerHooks/listView.mjs.map +1 -1
  31. package/dist/admin/hooks/useAILocalizationJobsPolling.js +110 -0
  32. package/dist/admin/hooks/useAILocalizationJobsPolling.js.map +1 -0
  33. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs +89 -0
  34. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs.map +1 -0
  35. package/dist/admin/hooks/useI18n.js +4 -4
  36. package/dist/admin/hooks/useI18n.js.map +1 -1
  37. package/dist/admin/hooks/useI18n.mjs +4 -4
  38. package/dist/admin/hooks/useI18n.mjs.map +1 -1
  39. package/dist/admin/index.js +1 -0
  40. package/dist/admin/index.js.map +1 -1
  41. package/dist/admin/index.mjs +2 -1
  42. package/dist/admin/index.mjs.map +1 -1
  43. package/dist/admin/pages/SettingsPage.js +121 -46
  44. package/dist/admin/pages/SettingsPage.js.map +1 -1
  45. package/dist/admin/pages/SettingsPage.mjs +124 -30
  46. package/dist/admin/pages/SettingsPage.mjs.map +1 -1
  47. package/dist/admin/services/aiLocalizationJobs.js +26 -0
  48. package/dist/admin/services/aiLocalizationJobs.js.map +1 -0
  49. package/dist/admin/services/aiLocalizationJobs.mjs +24 -0
  50. package/dist/admin/services/aiLocalizationJobs.mjs.map +1 -0
  51. package/dist/admin/services/api.js +4 -1
  52. package/dist/admin/services/api.js.map +1 -1
  53. package/dist/admin/services/api.mjs +4 -1
  54. package/dist/admin/services/api.mjs.map +1 -1
  55. package/dist/admin/services/locales.js +4 -2
  56. package/dist/admin/services/locales.js.map +1 -1
  57. package/dist/admin/services/locales.mjs +4 -2
  58. package/dist/admin/services/locales.mjs.map +1 -1
  59. package/dist/admin/services/settings.js +30 -0
  60. package/dist/admin/services/settings.js.map +1 -0
  61. package/dist/admin/services/settings.mjs +27 -0
  62. package/dist/admin/services/settings.mjs.map +1 -0
  63. package/dist/admin/src/components/CMHeaderActions.d.ts +17 -4
  64. package/dist/admin/src/components/LocaleListCell.d.ts +2 -1
  65. package/dist/admin/src/hooks/useAILocalizationJobsPolling.d.ts +9 -0
  66. package/dist/admin/src/services/aiLocalizationJobs.d.ts +6 -0
  67. package/dist/admin/src/services/api.d.ts +1 -1
  68. package/dist/admin/src/services/locales.d.ts +1 -1
  69. package/dist/admin/src/services/relations.d.ts +1 -1
  70. package/dist/admin/src/services/settings.d.ts +5 -0
  71. package/dist/admin/src/utils/schemas.d.ts +219 -1
  72. package/dist/admin/translations/en.json.js +10 -0
  73. package/dist/admin/translations/en.json.js.map +1 -1
  74. package/dist/admin/translations/en.json.mjs +10 -0
  75. package/dist/admin/translations/en.json.mjs.map +1 -1
  76. package/dist/admin/utils/clean.js +2 -2
  77. package/dist/admin/utils/clean.js.map +1 -1
  78. package/dist/admin/utils/clean.mjs +2 -2
  79. package/dist/admin/utils/clean.mjs.map +1 -1
  80. package/dist/admin/utils/getTranslation.js.map +1 -1
  81. package/dist/admin/utils/getTranslation.mjs.map +1 -1
  82. package/dist/admin/utils/prefixPluginTranslations.js.map +1 -1
  83. package/dist/admin/utils/prefixPluginTranslations.mjs.map +1 -1
  84. package/dist/server/bootstrap.js +2 -0
  85. package/dist/server/bootstrap.js.map +1 -1
  86. package/dist/server/bootstrap.mjs +2 -0
  87. package/dist/server/bootstrap.mjs.map +1 -1
  88. package/dist/server/constants/iso-locales.json.js +4 -0
  89. package/dist/server/constants/iso-locales.json.js.map +1 -1
  90. package/dist/server/constants/iso-locales.json.mjs +4 -0
  91. package/dist/server/constants/iso-locales.json.mjs.map +1 -1
  92. package/dist/server/controllers/ai-localization-jobs.js +47 -0
  93. package/dist/server/controllers/ai-localization-jobs.js.map +1 -0
  94. package/dist/server/controllers/ai-localization-jobs.mjs +45 -0
  95. package/dist/server/controllers/ai-localization-jobs.mjs.map +1 -0
  96. package/dist/server/controllers/index.js +5 -1
  97. package/dist/server/controllers/index.js.map +1 -1
  98. package/dist/server/controllers/index.mjs +5 -1
  99. package/dist/server/controllers/index.mjs.map +1 -1
  100. package/dist/server/controllers/settings.js +24 -0
  101. package/dist/server/controllers/settings.js.map +1 -0
  102. package/dist/server/controllers/settings.mjs +22 -0
  103. package/dist/server/controllers/settings.mjs.map +1 -0
  104. package/dist/server/models/ai-localization-job.js +60 -0
  105. package/dist/server/models/ai-localization-job.js.map +1 -0
  106. package/dist/server/models/ai-localization-job.mjs +57 -0
  107. package/dist/server/models/ai-localization-job.mjs.map +1 -0
  108. package/dist/server/register.js +3 -1
  109. package/dist/server/register.js.map +1 -1
  110. package/dist/server/register.mjs +3 -1
  111. package/dist/server/register.mjs.map +1 -1
  112. package/dist/server/routes/admin.js +40 -0
  113. package/dist/server/routes/admin.js.map +1 -1
  114. package/dist/server/routes/admin.mjs +40 -0
  115. package/dist/server/routes/admin.mjs.map +1 -1
  116. package/dist/server/routes/content-api.js +11 -7
  117. package/dist/server/routes/content-api.js.map +1 -1
  118. package/dist/server/routes/content-api.mjs +11 -7
  119. package/dist/server/routes/content-api.mjs.map +1 -1
  120. package/dist/server/routes/index.mjs +2 -2
  121. package/dist/server/routes/validation/locale.js +57 -0
  122. package/dist/server/routes/validation/locale.js.map +1 -0
  123. package/dist/server/routes/validation/locale.mjs +36 -0
  124. package/dist/server/routes/validation/locale.mjs.map +1 -0
  125. package/dist/server/services/ai-localization-jobs.js +64 -0
  126. package/dist/server/services/ai-localization-jobs.js.map +1 -0
  127. package/dist/server/services/ai-localization-jobs.mjs +62 -0
  128. package/dist/server/services/ai-localization-jobs.mjs.map +1 -0
  129. package/dist/server/services/ai-localizations.js +268 -0
  130. package/dist/server/services/ai-localizations.js.map +1 -0
  131. package/dist/server/services/ai-localizations.mjs +266 -0
  132. package/dist/server/services/ai-localizations.mjs.map +1 -0
  133. package/dist/server/services/content-types.js.map +1 -1
  134. package/dist/server/services/content-types.mjs.map +1 -1
  135. package/dist/server/services/index.js +7 -1
  136. package/dist/server/services/index.js.map +1 -1
  137. package/dist/server/services/index.mjs +7 -1
  138. package/dist/server/services/index.mjs.map +1 -1
  139. package/dist/server/services/settings.js +25 -0
  140. package/dist/server/services/settings.js.map +1 -0
  141. package/dist/server/services/settings.mjs +23 -0
  142. package/dist/server/services/settings.mjs.map +1 -0
  143. package/dist/server/src/bootstrap.d.ts.map +1 -1
  144. package/dist/server/src/controllers/ai-localization-jobs.d.ts +17 -0
  145. package/dist/server/src/controllers/ai-localization-jobs.d.ts.map +1 -0
  146. package/dist/server/src/controllers/index.d.ts +10 -0
  147. package/dist/server/src/controllers/index.d.ts.map +1 -1
  148. package/dist/server/src/controllers/settings.d.ts +7 -0
  149. package/dist/server/src/controllers/settings.d.ts.map +1 -0
  150. package/dist/server/src/index.d.ts +47 -8
  151. package/dist/server/src/index.d.ts.map +1 -1
  152. package/dist/server/src/models/ai-localization-job.d.ts +5 -0
  153. package/dist/server/src/models/ai-localization-job.d.ts.map +1 -0
  154. package/dist/server/src/models/index.d.ts +5 -0
  155. package/dist/server/src/models/index.d.ts.map +1 -0
  156. package/dist/server/src/register.d.ts +1 -1
  157. package/dist/server/src/register.d.ts.map +1 -1
  158. package/dist/server/src/routes/admin.d.ts.map +1 -1
  159. package/dist/server/src/routes/content-api.d.ts +5 -8
  160. package/dist/server/src/routes/content-api.d.ts.map +1 -1
  161. package/dist/server/src/routes/index.d.ts +3 -7
  162. package/dist/server/src/routes/index.d.ts.map +1 -1
  163. package/dist/server/src/routes/validation/index.d.ts +2 -0
  164. package/dist/server/src/routes/validation/index.d.ts.map +1 -0
  165. package/dist/server/src/routes/validation/locale.d.ts +41 -0
  166. package/dist/server/src/routes/validation/locale.d.ts.map +1 -0
  167. package/dist/server/src/services/ai-localization-jobs.d.ts +26 -0
  168. package/dist/server/src/services/ai-localization-jobs.d.ts.map +1 -0
  169. package/dist/server/src/services/ai-localizations.d.ts +18 -0
  170. package/dist/server/src/services/ai-localizations.d.ts.map +1 -0
  171. package/dist/server/src/services/index.d.ts +33 -0
  172. package/dist/server/src/services/index.d.ts.map +1 -1
  173. package/dist/server/src/services/settings.d.ts +13 -0
  174. package/dist/server/src/services/settings.d.ts.map +1 -0
  175. package/dist/server/src/utils/index.d.ts +7 -1
  176. package/dist/server/src/utils/index.d.ts.map +1 -1
  177. package/dist/server/src/validation/settings.d.ts +12 -0
  178. package/dist/server/src/validation/settings.d.ts.map +1 -0
  179. package/dist/server/utils/index.js.map +1 -1
  180. package/dist/server/utils/index.mjs.map +1 -1
  181. package/dist/server/validation/settings.js +11 -0
  182. package/dist/server/validation/settings.js.map +1 -0
  183. package/dist/server/validation/settings.mjs +9 -0
  184. package/dist/server/validation/settings.mjs.map +1 -0
  185. package/dist/shared/contracts/ai-localization-jobs.d.ts +27 -0
  186. package/dist/shared/contracts/ai-localization-jobs.d.ts.map +1 -0
  187. package/dist/shared/contracts/settings.d.ts +40 -0
  188. package/dist/shared/contracts/shared.d.ts.map +1 -0
  189. package/package.json +13 -10
@@ -0,0 +1,5 @@
1
+ import type { UpdateSettings } from '../../../shared/contracts/settings';
2
+ declare const useGetSettingsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", import("../../../shared/contracts/settings").Settings, "adminApi">>, useUpdatei18nSettingsMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<{
3
+ aiLocalizations?: boolean | undefined;
4
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", UpdateSettings.Response, "adminApi">>;
5
+ export { useGetSettingsQuery, useUpdatei18nSettingsMutation };