@strapi/i18n 0.0.0-next.d8f8da8f5b333be4a20563a1a15cd61350139956 → 0.0.0-next.da19c0501ff87d14fb664b55b8e0630d3c548485

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/CMHeaderActions.js +132 -1
  2. package/dist/admin/components/CMHeaderActions.js.map +1 -1
  3. package/dist/admin/components/CMHeaderActions.mjs +135 -5
  4. package/dist/admin/components/CMHeaderActions.mjs.map +1 -1
  5. package/dist/admin/components/CreateLocale.js +1 -1
  6. package/dist/admin/components/CreateLocale.js.map +1 -1
  7. package/dist/admin/components/CreateLocale.mjs +1 -1
  8. package/dist/admin/components/CreateLocale.mjs.map +1 -1
  9. package/dist/admin/components/EditLocale.js +1 -1
  10. package/dist/admin/components/EditLocale.js.map +1 -1
  11. package/dist/admin/components/EditLocale.mjs +1 -1
  12. package/dist/admin/components/EditLocale.mjs.map +1 -1
  13. package/dist/admin/components/LocaleListCell.js +65 -45
  14. package/dist/admin/components/LocaleListCell.js.map +1 -1
  15. package/dist/admin/components/LocaleListCell.mjs +66 -46
  16. package/dist/admin/components/LocaleListCell.mjs.map +1 -1
  17. package/dist/admin/components/LocalePicker.js +18 -11
  18. package/dist/admin/components/LocalePicker.js.map +1 -1
  19. package/dist/admin/components/LocalePicker.mjs +19 -12
  20. package/dist/admin/components/LocalePicker.mjs.map +1 -1
  21. package/dist/admin/contentManagerHooks/editView.js +6 -3
  22. package/dist/admin/contentManagerHooks/editView.js.map +1 -1
  23. package/dist/admin/contentManagerHooks/editView.mjs +7 -4
  24. package/dist/admin/contentManagerHooks/editView.mjs.map +1 -1
  25. package/dist/admin/contentManagerHooks/listView.js +2 -1
  26. package/dist/admin/contentManagerHooks/listView.js.map +1 -1
  27. package/dist/admin/contentManagerHooks/listView.mjs +2 -1
  28. package/dist/admin/contentManagerHooks/listView.mjs.map +1 -1
  29. package/dist/admin/hooks/useAILocalizationJobsPolling.js +91 -0
  30. package/dist/admin/hooks/useAILocalizationJobsPolling.js.map +1 -0
  31. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs +70 -0
  32. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs.map +1 -0
  33. package/dist/admin/index.js +1 -1
  34. package/dist/admin/index.js.map +1 -1
  35. package/dist/admin/index.mjs +2 -2
  36. package/dist/admin/index.mjs.map +1 -1
  37. package/dist/admin/middlewares/extendCTBAttributeInitialData.js +34 -24
  38. package/dist/admin/middlewares/extendCTBAttributeInitialData.js.map +1 -1
  39. package/dist/admin/middlewares/extendCTBAttributeInitialData.mjs +34 -24
  40. package/dist/admin/middlewares/extendCTBAttributeInitialData.mjs.map +1 -1
  41. package/dist/admin/pages/SettingsPage.js +121 -46
  42. package/dist/admin/pages/SettingsPage.js.map +1 -1
  43. package/dist/admin/pages/SettingsPage.mjs +124 -30
  44. package/dist/admin/pages/SettingsPage.mjs.map +1 -1
  45. package/dist/admin/services/aiLocalizationJobs.js +26 -0
  46. package/dist/admin/services/aiLocalizationJobs.js.map +1 -0
  47. package/dist/admin/services/aiLocalizationJobs.mjs +24 -0
  48. package/dist/admin/services/aiLocalizationJobs.mjs.map +1 -0
  49. package/dist/admin/services/api.js +4 -1
  50. package/dist/admin/services/api.js.map +1 -1
  51. package/dist/admin/services/api.mjs +4 -1
  52. package/dist/admin/services/api.mjs.map +1 -1
  53. package/dist/admin/services/locales.js +4 -2
  54. package/dist/admin/services/locales.js.map +1 -1
  55. package/dist/admin/services/locales.mjs +4 -2
  56. package/dist/admin/services/locales.mjs.map +1 -1
  57. package/dist/admin/services/settings.js +29 -0
  58. package/dist/admin/services/settings.js.map +1 -0
  59. package/dist/admin/services/settings.mjs +26 -0
  60. package/dist/admin/services/settings.mjs.map +1 -0
  61. package/dist/admin/src/components/CMHeaderActions.d.ts +7 -1
  62. package/dist/admin/src/components/LocaleListCell.d.ts +2 -1
  63. package/dist/admin/src/hooks/useAILocalizationJobsPolling.d.ts +9 -0
  64. package/dist/admin/src/services/aiLocalizationJobs.d.ts +6 -0
  65. package/dist/admin/src/services/api.d.ts +1 -1
  66. package/dist/admin/src/services/locales.d.ts +1 -1
  67. package/dist/admin/src/services/relations.d.ts +1 -1
  68. package/dist/admin/src/services/settings.d.ts +5 -0
  69. package/dist/admin/src/utils/schemas.d.ts +642 -16
  70. package/dist/admin/translations/en.json.js +9 -0
  71. package/dist/admin/translations/en.json.js.map +1 -1
  72. package/dist/admin/translations/en.json.mjs +9 -0
  73. package/dist/admin/translations/en.json.mjs.map +1 -1
  74. package/dist/admin/utils/clean.js +2 -2
  75. package/dist/admin/utils/clean.js.map +1 -1
  76. package/dist/admin/utils/clean.mjs +2 -2
  77. package/dist/admin/utils/clean.mjs.map +1 -1
  78. package/dist/admin/utils/fields.js +6 -1
  79. package/dist/admin/utils/fields.js.map +1 -1
  80. package/dist/admin/utils/fields.mjs +6 -1
  81. package/dist/admin/utils/fields.mjs.map +1 -1
  82. package/dist/admin/utils/schemas.js +19 -13
  83. package/dist/admin/utils/schemas.js.map +1 -1
  84. package/dist/admin/utils/schemas.mjs +19 -13
  85. package/dist/admin/utils/schemas.mjs.map +1 -1
  86. package/dist/server/bootstrap.js +2 -0
  87. package/dist/server/bootstrap.js.map +1 -1
  88. package/dist/server/bootstrap.mjs +2 -0
  89. package/dist/server/bootstrap.mjs.map +1 -1
  90. package/dist/server/constants/iso-locales.json.js +4 -0
  91. package/dist/server/constants/iso-locales.json.js.map +1 -1
  92. package/dist/server/constants/iso-locales.json.mjs +4 -0
  93. package/dist/server/constants/iso-locales.json.mjs.map +1 -1
  94. package/dist/server/controllers/ai-localization-jobs.js +47 -0
  95. package/dist/server/controllers/ai-localization-jobs.js.map +1 -0
  96. package/dist/server/controllers/ai-localization-jobs.mjs +45 -0
  97. package/dist/server/controllers/ai-localization-jobs.mjs.map +1 -0
  98. package/dist/server/controllers/index.js +5 -1
  99. package/dist/server/controllers/index.js.map +1 -1
  100. package/dist/server/controllers/index.mjs +5 -1
  101. package/dist/server/controllers/index.mjs.map +1 -1
  102. package/dist/server/controllers/settings.js +24 -0
  103. package/dist/server/controllers/settings.js.map +1 -0
  104. package/dist/server/controllers/settings.mjs +22 -0
  105. package/dist/server/controllers/settings.mjs.map +1 -0
  106. package/dist/server/models/ai-localization-job.js +60 -0
  107. package/dist/server/models/ai-localization-job.js.map +1 -0
  108. package/dist/server/models/ai-localization-job.mjs +57 -0
  109. package/dist/server/models/ai-localization-job.mjs.map +1 -0
  110. package/dist/server/register.js +3 -1
  111. package/dist/server/register.js.map +1 -1
  112. package/dist/server/register.mjs +3 -1
  113. package/dist/server/register.mjs.map +1 -1
  114. package/dist/server/routes/admin.js +40 -0
  115. package/dist/server/routes/admin.js.map +1 -1
  116. package/dist/server/routes/admin.mjs +40 -0
  117. package/dist/server/routes/admin.mjs.map +1 -1
  118. package/dist/server/routes/content-api.js +11 -7
  119. package/dist/server/routes/content-api.js.map +1 -1
  120. package/dist/server/routes/content-api.mjs +11 -7
  121. package/dist/server/routes/content-api.mjs.map +1 -1
  122. package/dist/server/routes/index.mjs +2 -2
  123. package/dist/server/routes/validation/locale.js +57 -0
  124. package/dist/server/routes/validation/locale.js.map +1 -0
  125. package/dist/server/routes/validation/locale.mjs +36 -0
  126. package/dist/server/routes/validation/locale.mjs.map +1 -0
  127. package/dist/server/services/ai-localization-jobs.js +64 -0
  128. package/dist/server/services/ai-localization-jobs.js.map +1 -0
  129. package/dist/server/services/ai-localization-jobs.mjs +62 -0
  130. package/dist/server/services/ai-localization-jobs.mjs.map +1 -0
  131. package/dist/server/services/ai-localizations.js +210 -0
  132. package/dist/server/services/ai-localizations.js.map +1 -0
  133. package/dist/server/services/ai-localizations.mjs +208 -0
  134. package/dist/server/services/ai-localizations.mjs.map +1 -0
  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 +12 -9
@@ -1,4 +1,4 @@
1
1
  import type { GetISOLocales } from '../../../shared/contracts/iso-locales';
2
2
  import type { GetLocales, CreateLocale, DeleteLocale, UpdateLocale } from '../../../shared/contracts/locales';
3
- declare const useCreateLocaleMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<Omit<import("../../../shared/contracts/locales").Locale, keyof import("../../../shared/contracts/shared").Entity>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", CreateLocale.Response, "adminApi">>, useDeleteLocaleMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<import("@strapi/types/dist/data").ID, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", DeleteLocale.Response, "adminApi">>, useGetLocalesQuery: 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, {}, {}>, "Locale", GetLocales.Response, "adminApi">>, useGetDefaultLocalesQuery: 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, {}, {}>, "Locale", GetISOLocales.Response, "adminApi">>, useUpdateLocaleMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<Pick<import("../../../shared/contracts/locales").Locale, "name" | "isDefault"> & UpdateLocale.Params, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", UpdateLocale.Response, "adminApi">>;
3
+ declare const useCreateLocaleMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<Omit<import("../../../shared/contracts/locales").Locale, keyof import("../../../shared/contracts/shared").Entity>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", CreateLocale.Response, "adminApi">>, useDeleteLocaleMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<import("@strapi/types/dist/data").ID, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", DeleteLocale.Response, "adminApi">>, useGetLocalesQuery: 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" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", GetLocales.Response, "adminApi">>, useGetDefaultLocalesQuery: 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" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", GetISOLocales.Response, "adminApi">>, useUpdateLocaleMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<Pick<import("../../../shared/contracts/locales").Locale, "name" | "isDefault"> & UpdateLocale.Params, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", UpdateLocale.Response, "adminApi">>;
4
4
  export { useCreateLocaleMutation, useDeleteLocaleMutation, useGetLocalesQuery, useGetDefaultLocalesQuery, useUpdateLocaleMutation, };
@@ -3,5 +3,5 @@ declare const useGetManyDraftRelationCountQuery: import("@reduxjs/toolkit/dist/q
3
3
  locale?: string | string[] | null | undefined;
4
4
  } & {
5
5
  model: string;
6
- }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", number, "adminApi">>;
6
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", number, "adminApi">>;
7
7
  export { useGetManyDraftRelationCountQuery };
@@ -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" | "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" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", UpdateSettings.Response, "adminApi">>;
5
+ export { useGetSettingsQuery, useUpdatei18nSettingsMutation };