@strapi/i18n 0.0.0-experimental.8478bb287dfba93afd007cad7697c0f88853a2d8 → 0.0.0-experimental.848e0ac442910c1ad22a7c5eaab07088827fb53c

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 (169) 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 +3 -1
  52. package/dist/admin/services/api.js.map +1 -1
  53. package/dist/admin/services/api.mjs +3 -1
  54. package/dist/admin/services/api.mjs.map +1 -1
  55. package/dist/admin/services/locales.js.map +1 -1
  56. package/dist/admin/services/locales.mjs.map +1 -1
  57. package/dist/admin/services/settings.js +30 -0
  58. package/dist/admin/services/settings.js.map +1 -0
  59. package/dist/admin/services/settings.mjs +27 -0
  60. package/dist/admin/services/settings.mjs.map +1 -0
  61. package/dist/admin/src/components/CMHeaderActions.d.ts +17 -4
  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/translations/en.json.js +10 -0
  70. package/dist/admin/translations/en.json.js.map +1 -1
  71. package/dist/admin/translations/en.json.mjs +10 -0
  72. package/dist/admin/translations/en.json.mjs.map +1 -1
  73. package/dist/admin/utils/clean.js +2 -2
  74. package/dist/admin/utils/clean.js.map +1 -1
  75. package/dist/admin/utils/clean.mjs +2 -2
  76. package/dist/admin/utils/clean.mjs.map +1 -1
  77. package/dist/admin/utils/getTranslation.js.map +1 -1
  78. package/dist/admin/utils/getTranslation.mjs.map +1 -1
  79. package/dist/admin/utils/prefixPluginTranslations.js.map +1 -1
  80. package/dist/admin/utils/prefixPluginTranslations.mjs.map +1 -1
  81. package/dist/server/bootstrap.js +2 -0
  82. package/dist/server/bootstrap.js.map +1 -1
  83. package/dist/server/bootstrap.mjs +2 -0
  84. package/dist/server/bootstrap.mjs.map +1 -1
  85. package/dist/server/constants/iso-locales.json.js +4 -0
  86. package/dist/server/constants/iso-locales.json.js.map +1 -1
  87. package/dist/server/constants/iso-locales.json.mjs +4 -0
  88. package/dist/server/constants/iso-locales.json.mjs.map +1 -1
  89. package/dist/server/controllers/ai-localization-jobs.js +47 -0
  90. package/dist/server/controllers/ai-localization-jobs.js.map +1 -0
  91. package/dist/server/controllers/ai-localization-jobs.mjs +45 -0
  92. package/dist/server/controllers/ai-localization-jobs.mjs.map +1 -0
  93. package/dist/server/controllers/index.js +5 -1
  94. package/dist/server/controllers/index.js.map +1 -1
  95. package/dist/server/controllers/index.mjs +5 -1
  96. package/dist/server/controllers/index.mjs.map +1 -1
  97. package/dist/server/controllers/settings.js +24 -0
  98. package/dist/server/controllers/settings.js.map +1 -0
  99. package/dist/server/controllers/settings.mjs +22 -0
  100. package/dist/server/controllers/settings.mjs.map +1 -0
  101. package/dist/server/models/ai-localization-job.js +60 -0
  102. package/dist/server/models/ai-localization-job.js.map +1 -0
  103. package/dist/server/models/ai-localization-job.mjs +57 -0
  104. package/dist/server/models/ai-localization-job.mjs.map +1 -0
  105. package/dist/server/register.js +3 -1
  106. package/dist/server/register.js.map +1 -1
  107. package/dist/server/register.mjs +3 -1
  108. package/dist/server/register.mjs.map +1 -1
  109. package/dist/server/routes/admin.js +40 -0
  110. package/dist/server/routes/admin.js.map +1 -1
  111. package/dist/server/routes/admin.mjs +40 -0
  112. package/dist/server/routes/admin.mjs.map +1 -1
  113. package/dist/server/services/ai-localization-jobs.js +64 -0
  114. package/dist/server/services/ai-localization-jobs.js.map +1 -0
  115. package/dist/server/services/ai-localization-jobs.mjs +62 -0
  116. package/dist/server/services/ai-localization-jobs.mjs.map +1 -0
  117. package/dist/server/services/ai-localizations.js +268 -0
  118. package/dist/server/services/ai-localizations.js.map +1 -0
  119. package/dist/server/services/ai-localizations.mjs +266 -0
  120. package/dist/server/services/ai-localizations.mjs.map +1 -0
  121. package/dist/server/services/content-types.js.map +1 -1
  122. package/dist/server/services/content-types.mjs.map +1 -1
  123. package/dist/server/services/index.js +7 -1
  124. package/dist/server/services/index.js.map +1 -1
  125. package/dist/server/services/index.mjs +7 -1
  126. package/dist/server/services/index.mjs.map +1 -1
  127. package/dist/server/services/settings.js +25 -0
  128. package/dist/server/services/settings.js.map +1 -0
  129. package/dist/server/services/settings.mjs +23 -0
  130. package/dist/server/services/settings.mjs.map +1 -0
  131. package/dist/server/src/bootstrap.d.ts.map +1 -1
  132. package/dist/server/src/controllers/ai-localization-jobs.d.ts +17 -0
  133. package/dist/server/src/controllers/ai-localization-jobs.d.ts.map +1 -0
  134. package/dist/server/src/controllers/index.d.ts +10 -0
  135. package/dist/server/src/controllers/index.d.ts.map +1 -1
  136. package/dist/server/src/controllers/settings.d.ts +7 -0
  137. package/dist/server/src/controllers/settings.d.ts.map +1 -0
  138. package/dist/server/src/index.d.ts +44 -1
  139. package/dist/server/src/index.d.ts.map +1 -1
  140. package/dist/server/src/models/ai-localization-job.d.ts +5 -0
  141. package/dist/server/src/models/ai-localization-job.d.ts.map +1 -0
  142. package/dist/server/src/models/index.d.ts +5 -0
  143. package/dist/server/src/models/index.d.ts.map +1 -0
  144. package/dist/server/src/register.d.ts +1 -1
  145. package/dist/server/src/register.d.ts.map +1 -1
  146. package/dist/server/src/routes/admin.d.ts.map +1 -1
  147. package/dist/server/src/services/ai-localization-jobs.d.ts +26 -0
  148. package/dist/server/src/services/ai-localization-jobs.d.ts.map +1 -0
  149. package/dist/server/src/services/ai-localizations.d.ts +18 -0
  150. package/dist/server/src/services/ai-localizations.d.ts.map +1 -0
  151. package/dist/server/src/services/index.d.ts +33 -0
  152. package/dist/server/src/services/index.d.ts.map +1 -1
  153. package/dist/server/src/services/settings.d.ts +13 -0
  154. package/dist/server/src/services/settings.d.ts.map +1 -0
  155. package/dist/server/src/utils/index.d.ts +7 -1
  156. package/dist/server/src/utils/index.d.ts.map +1 -1
  157. package/dist/server/src/validation/settings.d.ts +12 -0
  158. package/dist/server/src/validation/settings.d.ts.map +1 -0
  159. package/dist/server/utils/index.js.map +1 -1
  160. package/dist/server/utils/index.mjs.map +1 -1
  161. package/dist/server/validation/settings.js +11 -0
  162. package/dist/server/validation/settings.js.map +1 -0
  163. package/dist/server/validation/settings.mjs +9 -0
  164. package/dist/server/validation/settings.mjs.map +1 -0
  165. package/dist/shared/contracts/ai-localization-jobs.d.ts +27 -0
  166. package/dist/shared/contracts/ai-localization-jobs.d.ts.map +1 -0
  167. package/dist/shared/contracts/settings.d.ts +40 -0
  168. package/dist/shared/contracts/shared.d.ts.map +1 -0
  169. package/package.json +10 -8
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../server/src/utils/index.ts"],"sourcesContent":["import type { LocaleService } from '../services/locales';\nimport type { PermissionsService } from '../services/permissions';\nimport type { ContentTypesService } from '../services/content-types';\nimport type { MetricsService } from '../services/metrics';\nimport type { ISOLocalesService } from '../services/iso-locales';\nimport type { LocalizationsService } from '../services/localizations';\nimport type { SanitizeService } from '../services/sanitize';\n\ntype S = {\n permissions: PermissionsService;\n metrics: MetricsService;\n locales: LocaleService;\n localizations: LocalizationsService;\n ['iso-locales']: ISOLocalesService;\n ['content-types']: ContentTypesService;\n sanitize: SanitizeService;\n};\n\nconst getCoreStore = () => {\n return strapi.store({ type: 'plugin', name: 'i18n' });\n};\n\n// retrieve a local service\nconst getService = <T extends keyof S>(name: T): ReturnType<S[T]> => {\n return strapi.plugin('i18n').service(name);\n};\n\nexport { getService, getCoreStore };\n"],"names":["getCoreStore","strapi","store","type","name","getService","plugin","service"],"mappings":";;AAkBA,MAAMA,YAAe,GAAA,IAAA;IACnB,OAAOC,MAAAA,CAAOC,KAAK,CAAC;QAAEC,IAAM,EAAA,QAAA;QAAUC,IAAM,EAAA;AAAO,KAAA,CAAA;AACrD;AAEA;AACA,MAAMC,aAAa,CAAoBD,IAAAA,GAAAA;AACrC,IAAA,OAAOH,MAAOK,CAAAA,MAAM,CAAC,MAAA,CAAA,CAAQC,OAAO,CAACH,IAAAA,CAAAA;AACvC;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../server/src/utils/index.ts"],"sourcesContent":["import type { LocaleService } from '../services/locales';\nimport type { PermissionsService } from '../services/permissions';\nimport type { ContentTypesService } from '../services/content-types';\nimport type { MetricsService } from '../services/metrics';\nimport type { ISOLocalesService } from '../services/iso-locales';\nimport type { LocalizationsService } from '../services/localizations';\nimport type { SanitizeService } from '../services/sanitize';\nimport type { SettingsService } from '../services/settings';\nimport type { createAILocalizationsService } from '../services/ai-localizations';\nimport type { createAILocalizationJobsService } from '../services/ai-localization-jobs';\n\ntype S = {\n permissions: PermissionsService;\n metrics: MetricsService;\n locales: LocaleService;\n localizations: LocalizationsService;\n settings: SettingsService;\n ['iso-locales']: ISOLocalesService;\n ['content-types']: ContentTypesService;\n sanitize: SanitizeService;\n ['ai-localizations']: ReturnType<typeof createAILocalizationsService>;\n 'ai-localization-jobs': ReturnType<typeof createAILocalizationJobsService>;\n};\n\nconst getCoreStore = () => {\n return strapi.store({ type: 'plugin', name: 'i18n' });\n};\n\n// retrieve a local service\nconst getService = <T extends keyof S>(\n name: T\n): S[T] extends (...args: any) => any ? ReturnType<S[T]> : S[T] => {\n return strapi.plugin('i18n').service(name);\n};\n\nexport { getService, getCoreStore };\n"],"names":["getCoreStore","strapi","store","type","name","getService","plugin","service"],"mappings":";;AAwBA,MAAMA,YAAe,GAAA,IAAA;IACnB,OAAOC,MAAAA,CAAOC,KAAK,CAAC;QAAEC,IAAM,EAAA,QAAA;QAAUC,IAAM,EAAA;AAAO,KAAA,CAAA;AACrD;AAEA;AACA,MAAMC,aAAa,CACjBD,IAAAA,GAAAA;AAEA,IAAA,OAAOH,MAAOK,CAAAA,MAAM,CAAC,MAAA,CAAA,CAAQC,OAAO,CAACH,IAAAA,CAAAA;AACvC;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../server/src/utils/index.ts"],"sourcesContent":["import type { LocaleService } from '../services/locales';\nimport type { PermissionsService } from '../services/permissions';\nimport type { ContentTypesService } from '../services/content-types';\nimport type { MetricsService } from '../services/metrics';\nimport type { ISOLocalesService } from '../services/iso-locales';\nimport type { LocalizationsService } from '../services/localizations';\nimport type { SanitizeService } from '../services/sanitize';\n\ntype S = {\n permissions: PermissionsService;\n metrics: MetricsService;\n locales: LocaleService;\n localizations: LocalizationsService;\n ['iso-locales']: ISOLocalesService;\n ['content-types']: ContentTypesService;\n sanitize: SanitizeService;\n};\n\nconst getCoreStore = () => {\n return strapi.store({ type: 'plugin', name: 'i18n' });\n};\n\n// retrieve a local service\nconst getService = <T extends keyof S>(name: T): ReturnType<S[T]> => {\n return strapi.plugin('i18n').service(name);\n};\n\nexport { getService, getCoreStore };\n"],"names":["getCoreStore","strapi","store","type","name","getService","plugin","service"],"mappings":"AAkBA,MAAMA,YAAe,GAAA,IAAA;IACnB,OAAOC,MAAAA,CAAOC,KAAK,CAAC;QAAEC,IAAM,EAAA,QAAA;QAAUC,IAAM,EAAA;AAAO,KAAA,CAAA;AACrD;AAEA;AACA,MAAMC,aAAa,CAAoBD,IAAAA,GAAAA;AACrC,IAAA,OAAOH,MAAOK,CAAAA,MAAM,CAAC,MAAA,CAAA,CAAQC,OAAO,CAACH,IAAAA,CAAAA;AACvC;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../server/src/utils/index.ts"],"sourcesContent":["import type { LocaleService } from '../services/locales';\nimport type { PermissionsService } from '../services/permissions';\nimport type { ContentTypesService } from '../services/content-types';\nimport type { MetricsService } from '../services/metrics';\nimport type { ISOLocalesService } from '../services/iso-locales';\nimport type { LocalizationsService } from '../services/localizations';\nimport type { SanitizeService } from '../services/sanitize';\nimport type { SettingsService } from '../services/settings';\nimport type { createAILocalizationsService } from '../services/ai-localizations';\nimport type { createAILocalizationJobsService } from '../services/ai-localization-jobs';\n\ntype S = {\n permissions: PermissionsService;\n metrics: MetricsService;\n locales: LocaleService;\n localizations: LocalizationsService;\n settings: SettingsService;\n ['iso-locales']: ISOLocalesService;\n ['content-types']: ContentTypesService;\n sanitize: SanitizeService;\n ['ai-localizations']: ReturnType<typeof createAILocalizationsService>;\n 'ai-localization-jobs': ReturnType<typeof createAILocalizationJobsService>;\n};\n\nconst getCoreStore = () => {\n return strapi.store({ type: 'plugin', name: 'i18n' });\n};\n\n// retrieve a local service\nconst getService = <T extends keyof S>(\n name: T\n): S[T] extends (...args: any) => any ? ReturnType<S[T]> : S[T] => {\n return strapi.plugin('i18n').service(name);\n};\n\nexport { getService, getCoreStore };\n"],"names":["getCoreStore","strapi","store","type","name","getService","plugin","service"],"mappings":"AAwBA,MAAMA,YAAe,GAAA,IAAA;IACnB,OAAOC,MAAAA,CAAOC,KAAK,CAAC;QAAEC,IAAM,EAAA,QAAA;QAAUC,IAAM,EAAA;AAAO,KAAA,CAAA;AACrD;AAEA;AACA,MAAMC,aAAa,CACjBD,IAAAA,GAAAA;AAEA,IAAA,OAAOH,MAAOK,CAAAA,MAAM,CAAC,MAAA,CAAA,CAAQC,OAAO,CAACH,IAAAA,CAAAA;AACvC;;;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var utils = require('@strapi/utils');
4
+
5
+ const settingsSchema = utils.yup.object({
6
+ aiLocalizations: utils.yup.boolean().default(false)
7
+ });
8
+ var validateSettings = utils.validateYupSchema(settingsSchema);
9
+
10
+ module.exports = validateSettings;
11
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sources":["../../../server/src/validation/settings.ts"],"sourcesContent":["import { yup, validateYupSchema } from '@strapi/utils';\n\nconst settingsSchema = yup.object({\n aiLocalizations: yup.boolean().default(false),\n});\n\nexport default validateYupSchema(settingsSchema);\n\nexport type Settings = yup.InferType<typeof settingsSchema>;\n"],"names":["settingsSchema","yup","object","aiLocalizations","boolean","default","validateYupSchema"],"mappings":";;;;AAEA,MAAMA,cAAAA,GAAiBC,SAAIC,CAAAA,MAAM,CAAC;AAChCC,IAAAA,eAAAA,EAAiBF,SAAIG,CAAAA,OAAO,EAAGC,CAAAA,OAAO,CAAC,KAAA;AACzC,CAAA,CAAA;AAEA,uBAAeC,wBAAkBN,cAAgB,CAAA;;;;"}
@@ -0,0 +1,9 @@
1
+ import { yup, validateYupSchema } from '@strapi/utils';
2
+
3
+ const settingsSchema = yup.object({
4
+ aiLocalizations: yup.boolean().default(false)
5
+ });
6
+ var validateSettings = validateYupSchema(settingsSchema);
7
+
8
+ export { validateSettings as default };
9
+ //# sourceMappingURL=settings.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.mjs","sources":["../../../server/src/validation/settings.ts"],"sourcesContent":["import { yup, validateYupSchema } from '@strapi/utils';\n\nconst settingsSchema = yup.object({\n aiLocalizations: yup.boolean().default(false),\n});\n\nexport default validateYupSchema(settingsSchema);\n\nexport type Settings = yup.InferType<typeof settingsSchema>;\n"],"names":["settingsSchema","yup","object","aiLocalizations","boolean","default","validateYupSchema"],"mappings":";;AAEA,MAAMA,cAAAA,GAAiBC,GAAIC,CAAAA,MAAM,CAAC;AAChCC,IAAAA,eAAAA,EAAiBF,GAAIG,CAAAA,OAAO,EAAGC,CAAAA,OAAO,CAAC,KAAA;AACzC,CAAA,CAAA;AAEA,uBAAeC,kBAAkBN,cAAgB,CAAA;;;;"}
@@ -0,0 +1,27 @@
1
+ import { errors } from '@strapi/utils';
2
+ import { Entity } from './shared';
3
+ export interface AILocalizationJobs extends Entity {
4
+ contentType: string;
5
+ relatedDocumentId: string;
6
+ sourceLocale: string;
7
+ targetLocales: string[];
8
+ status: 'processing' | 'completed' | 'failed';
9
+ }
10
+ /**
11
+ * GET /i18n/ai-localization-jobs/document/:documentId - Get AI localization jobs by document ID
12
+ */
13
+ export declare namespace GetAILocalizationJobsByDocument {
14
+ interface Request {
15
+ query: {};
16
+ body: {};
17
+ }
18
+ interface Params {
19
+ documentId: string;
20
+ }
21
+ type Response = {
22
+ data: AILocalizationJobs;
23
+ } | {
24
+ data: null;
25
+ error: errors.ApplicationError;
26
+ };
27
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-localization-jobs.d.ts","sourceRoot":"","sources":["../../../shared/contracts/ai-localization-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,+BAA+B,CAAC;IACvD,UAAiB,OAAO;QACtB,KAAK,EAAE,EAAE,CAAC;QACV,IAAI,EAAE,EAAE,CAAC;KACV;IAED,UAAiB,MAAM;QACrB,UAAU,EAAE,MAAM,CAAC;KACpB;IAED,KAAY,QAAQ,GAChB;QACE,IAAI,EAAE,kBAAkB,CAAC;KAC1B,GACD;QACE,IAAI,EAAE,IAAI,CAAC;QACX,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAChC,CAAC;CACP"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Used to store user configurations related to i18n.
3
+ * E.g the AI metadata flag for automatic translations.
4
+ */
5
+ import { errors } from '@strapi/utils';
6
+ import type { Utils } from '@strapi/types';
7
+ export interface Settings {
8
+ data: {
9
+ aiLocalizations?: boolean;
10
+ };
11
+ }
12
+ export type SettingsData = Settings['data'];
13
+ /**
14
+ * GET /i18n/settings
15
+ *
16
+ * Return the stored settings for the i18n plugin.
17
+ */
18
+ export declare namespace GetSettings {
19
+ interface Request {
20
+ query?: {};
21
+ }
22
+ interface Response {
23
+ data: Settings;
24
+ }
25
+ }
26
+ /**
27
+ * PUT /i18n/settings
28
+ *
29
+ * Update the stored settings
30
+ */
31
+ export declare namespace UpdateSettings {
32
+ interface Request {
33
+ body: Settings['data'];
34
+ }
35
+ type Response = Utils.OneOf<{
36
+ data: Settings['data'];
37
+ }, {
38
+ error?: errors.ApplicationError | errors.ValidationError;
39
+ }>;
40
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../shared/contracts/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/i18n",
3
- "version": "0.0.0-experimental.8478bb287dfba93afd007cad7697c0f88853a2d8",
3
+ "version": "0.0.0-experimental.848e0ac442910c1ad22a7c5eaab07088827fb53c",
4
4
  "description": "Create read and update content in different languages, both from the Admin Panel and from the API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -57,9 +57,9 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@reduxjs/toolkit": "1.9.7",
60
- "@strapi/design-system": "2.0.0-rc.29",
61
- "@strapi/icons": "2.0.0-rc.29",
62
- "@strapi/utils": "0.0.0-experimental.8478bb287dfba93afd007cad7697c0f88853a2d8",
60
+ "@strapi/design-system": "2.0.0-rc.30",
61
+ "@strapi/icons": "2.0.0-rc.30",
62
+ "@strapi/utils": "0.0.0-experimental.848e0ac442910c1ad22a7c5eaab07088827fb53c",
63
63
  "lodash": "4.17.21",
64
64
  "qs": "6.11.1",
65
65
  "react-intl": "6.6.2",
@@ -68,12 +68,14 @@
68
68
  "zod": "3.25.67"
69
69
  },
70
70
  "devDependencies": {
71
- "@strapi/admin": "0.0.0-experimental.8478bb287dfba93afd007cad7697c0f88853a2d8",
72
- "@strapi/admin-test-utils": "0.0.0-experimental.8478bb287dfba93afd007cad7697c0f88853a2d8",
73
- "@strapi/content-manager": "0.0.0-experimental.8478bb287dfba93afd007cad7697c0f88853a2d8",
74
- "@strapi/types": "0.0.0-experimental.8478bb287dfba93afd007cad7697c0f88853a2d8",
71
+ "@strapi/admin": "0.0.0-experimental.848e0ac442910c1ad22a7c5eaab07088827fb53c",
72
+ "@strapi/admin-test-utils": "0.0.0-experimental.848e0ac442910c1ad22a7c5eaab07088827fb53c",
73
+ "@strapi/content-manager": "0.0.0-experimental.848e0ac442910c1ad22a7c5eaab07088827fb53c",
74
+ "@strapi/database": "0.0.0-experimental.848e0ac442910c1ad22a7c5eaab07088827fb53c",
75
+ "@strapi/types": "0.0.0-experimental.848e0ac442910c1ad22a7c5eaab07088827fb53c",
75
76
  "@testing-library/react": "15.0.7",
76
77
  "@testing-library/user-event": "14.5.2",
78
+ "koa": "2.16.1",
77
79
  "msw": "1.3.0",
78
80
  "react": "18.3.1",
79
81
  "react-dom": "18.3.1",