@nocode-factory/sanity-kit 2.24.0 → 2.26.0

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 (76) hide show
  1. package/dist/{componentDefaults-BY3hQ6aD.js → componentDefaults-2eWjLLBf.js} +6 -6
  2. package/dist/componentDefaults-2eWjLLBf.js.map +1 -0
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.js +467 -367
  5. package/dist/index.js.map +1 -1
  6. package/dist/schema.js +1 -1
  7. package/dist/web-server.js +2 -2
  8. package/dist/web-server.js.map +1 -1
  9. package/dist/web.js +9 -9
  10. package/dist/web.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/actions/PropagatePublish.tsx +14 -14
  13. package/src/actions/RemoveFromSite.tsx +9 -9
  14. package/src/config/defaults.ts +7 -7
  15. package/src/config/resolve.ts +1 -1
  16. package/src/config/validate.ts +24 -24
  17. package/src/context/BoardLayoutContext.tsx +1 -1
  18. package/src/context/KitContext.tsx +1 -1
  19. package/src/context/PreviewTargetContext.tsx +1 -1
  20. package/src/form/LanguageMismatch.tsx +85 -0
  21. package/src/form/OverrideInput.tsx +5 -5
  22. package/src/form/SlugUrlInput.tsx +2 -2
  23. package/src/form/TranslationTodoInput.tsx +2 -2
  24. package/src/hooks/useHistory.ts +5 -5
  25. package/src/hooks/useOccurrences.ts +1 -1
  26. package/src/hooks/useOpenOnline.ts +4 -4
  27. package/src/index.ts +7 -5
  28. package/src/lib/grouping.ts +2 -2
  29. package/src/lib/overrides.ts +10 -10
  30. package/src/lib/pages.ts +3 -3
  31. package/src/lib/previewLocale.ts +17 -0
  32. package/src/lib/service.ts +5 -5
  33. package/src/lib/status.ts +3 -3
  34. package/src/lib/studioLinks.ts +6 -6
  35. package/src/schema/boardLayout.ts +32 -32
  36. package/src/schema/componentDefaults.ts +5 -5
  37. package/src/schema/translationTodo.ts +6 -6
  38. package/src/tools/components/BlockCard.tsx +3 -3
  39. package/src/tools/components/ComponentsTool.tsx +17 -17
  40. package/src/tools/components/map/SectionNode.tsx +1 -1
  41. package/src/tools/components/map/SectionsMap.tsx +10 -10
  42. package/src/tools/designSystem/DesignSystemTool.tsx +3 -3
  43. package/src/tools/history/DiffPanel.tsx +23 -23
  44. package/src/tools/history/HistoryTool.tsx +21 -23
  45. package/src/tools/more/MoreTool.tsx +1 -1
  46. package/src/tools/navbar/KitUpdate.tsx +8 -8
  47. package/src/tools/navbar/PreviewLauncher.tsx +6 -6
  48. package/src/tools/navbar/ToolButtons.tsx +2 -2
  49. package/src/tools/pages/ColumnHeader.tsx +18 -18
  50. package/src/tools/pages/ColumnVisibility.tsx +10 -10
  51. package/src/tools/pages/FieldValue.tsx +9 -9
  52. package/src/tools/pages/PagesTable.tsx +11 -11
  53. package/src/tools/pages/PagesTool.tsx +19 -19
  54. package/src/tools/pages/PagesToolbar.tsx +3 -3
  55. package/src/tools/pages/PathCell.tsx +1 -1
  56. package/src/tools/pages/PreviewTarget.tsx +10 -10
  57. package/src/tools/pages/SharePreview.tsx +19 -20
  58. package/src/tools/pages/TagCell.tsx +2 -2
  59. package/src/tools/pages/ViewTabs.tsx +4 -4
  60. package/src/tools/pages/board/BoardView.tsx +11 -11
  61. package/src/tools/pages/board/PageNode.tsx +5 -5
  62. package/src/tools/pages/board/PagePanel.tsx +10 -10
  63. package/src/tools/presentation/PreviewHeader.tsx +1 -1
  64. package/src/tools/shared/AnnotationNode.tsx +3 -3
  65. package/src/ui/ActorName.tsx +1 -1
  66. package/src/ui/ConfigIssues.tsx +3 -3
  67. package/src/ui/PreviewOriginsNotice.tsx +3 -3
  68. package/src/ui/ProjectStatusNotice.tsx +7 -7
  69. package/src/ui/QueryError.tsx +2 -2
  70. package/src/ui/ToolPlaceholder.tsx +2 -2
  71. package/src/ui/formatDate.ts +1 -1
  72. package/src/version.ts +1 -1
  73. package/src/web/PreviewBanner.tsx +9 -9
  74. package/src/web/draftModeToggle.ts +1 -1
  75. package/src/web/previewGrant.ts +5 -5
  76. package/dist/componentDefaults-BY3hQ6aD.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as defineComponentDefaults, i as defaultsFieldName, n as componentDefaultsMainDocument, o as requiredUnlessDefault, r as componentDefaultsMainDocuments, s as requiredUnlessDefaultFor, t as DEFAULT_COMPONENT_DEFAULTS_TYPE } from "./componentDefaults-BY3hQ6aD.js";
1
+ import { a as defineComponentDefaults, i as defaultsFieldName, n as componentDefaultsMainDocument, o as requiredUnlessDefault, r as componentDefaultsMainDocuments, s as requiredUnlessDefaultFor, t as DEFAULT_COMPONENT_DEFAULTS_TYPE } from "./componentDefaults-2eWjLLBf.js";
2
2
  import { createContext, createElement, forwardRef, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
3
3
  import { ToolLink, defineField, definePlugin, defineType, pathToString, set, unset, useClient, useCurrentUser, useFormValue, usePerspective, useSchema, useSetPerspective, useUser, useWorkspace } from "sanity";
4
4
  import { ClockIcon } from "@sanity/icons/Clock";
@@ -37,6 +37,7 @@ import { RestoreIcon } from "@sanity/icons/Restore";
37
37
  import { UndoIcon } from "@sanity/icons/Undo";
38
38
  import { Tooltip } from "@sanity/ui/tooltip";
39
39
  import { EyeClosedIcon } from "@sanity/icons/EyeClosed";
40
+ import { usePresentationNavigate, usePresentationParams } from "sanity/presentation";
40
41
  import { useToast } from "@sanity/ui/toast";
41
42
  const DEFAULT_PAGE_BUILDER_FIELD = "sections", DEFAULT_SLUG_FIELD = "slug", DEFAULT_TITLE_FIELD = "title", DEFAULT_NOINDEX_FIELDS = ["seo.noindex", "noindex"], DEFAULT_I18N = {
42
43
  field: "language",
@@ -61,38 +62,38 @@ const DEFAULT_PAGE_BUILDER_FIELD = "sections", DEFAULT_SLUG_FIELD = "slug", DEFA
61
62
  ], DEFAULT_BOARD_TAGS = [
62
63
  {
63
64
  id: "en-cours",
64
- label: "En cours",
65
+ label: "In progress",
65
66
  color: "#f5a623"
66
67
  },
67
68
  {
68
69
  id: "fait",
69
- label: "Fait",
70
+ label: "Done",
70
71
  color: "#43d675"
71
72
  },
72
73
  {
73
74
  id: "a-relire",
74
- label: "À relire",
75
+ label: "To review",
75
76
  color: "#2276fc"
76
77
  },
77
78
  {
78
79
  id: "a-refondre",
79
- label: "À refondre",
80
+ label: "To rework",
80
81
  color: "#f03e3e"
81
82
  }
82
83
  ], DEFAULT_INTERNAL_FIELDS = [
83
84
  {
84
85
  id: "owner",
85
- label: "Responsable",
86
+ label: "Owner",
86
87
  type: "text"
87
88
  },
88
89
  {
89
90
  id: "audience",
90
- label: "Cible",
91
+ label: "Audience",
91
92
  type: "text"
92
93
  },
93
94
  {
94
95
  id: "role",
95
- label: "Rôle de la page",
96
+ label: "Page role",
96
97
  type: "text"
97
98
  }
98
99
  ], trimTrailingSlash = (url) => url.replace(/\/+$/, ""), normalizePath = (path) => {
@@ -209,7 +210,7 @@ function resolveEnvironments(input) {
209
210
  url: preview
210
211
  }], conventional = conventionalPreprodUrl(preview), hasPreprod = declared.some((environment) => environment.url === conventional || environment.id === "preprod") || input.preprodUrl === !1, preprod = conventional && !hasPreprod ? [{
211
212
  id: "preprod",
212
- label: "Préproduction",
213
+ label: "Staging",
213
214
  url: conventional
214
215
  }] : [];
215
216
  return [
@@ -243,28 +244,28 @@ function validateConfig(config) {
243
244
  message,
244
245
  ...tools ? { tools } : {}
245
246
  });
246
- config.pageTypes.length === 0 && error("pageTypes", "`pageTypes` est vide. Renseigne au moins un type de document, ex. pageTypes: ['page'].");
247
+ config.pageTypes.length === 0 && error("pageTypes", "`pageTypes` is empty. Declare at least one document type, e.g. pageTypes: ['page'].");
247
248
  let seen = /* @__PURE__ */ new Set();
248
249
  config.pageTypes.forEach((pageType, index) => {
249
250
  let at = `pageTypes[${index}]`;
250
251
  if (!pageType.type) {
251
- error(`${at}.type`, "Type de document manquant ou vide.");
252
+ error(`${at}.type`, "Document type missing or empty.");
252
253
  return;
253
254
  }
254
- seen.has(pageType.type) && error(`${at}.type`, `Le type « ${pageType.type} » est déclaré plusieurs fois.`), seen.add(pageType.type), pageType.path && pageType.pathPrefix && warn(`${at}.pathPrefix`, `« ${pageType.type} » a un chemin fixe : son pathPrefix est ignoré.`), !pageType.slugField && !pageType.path && error(`${at}`, `« ${pageType.type} » n'a ni slugField ni path : le kit ne peut pas construire son URL. Donne-lui un chemin fixe, ex. {type: '${pageType.type}', path: '/'} pour une page d'accueil.`);
255
- }), config.previewUrl && !isAbsoluteHttpUrl(config.previewUrl) && error("previewUrl", `« ${config.previewUrl} » n'est pas une URL absolue. Attendu : https://exemple.fr`), config.componentPreview.provider === "designSystemPage" && (config.previewUrl || warn("previewUrl", "Aperçu des composants actif mais `previewUrl` est absent : les vignettes et les liens vers la page design system seront désactivés.", ["components"]), !config.componentPreview.thumbnail.includes("{name}") && !config.componentPreview.thumbnail.includes("{kebab}") && warn("componentPreview.thumbnail", "Le gabarit ne contient ni {name} ni {kebab} : tous les blocs afficheront la même image.", ["components"]));
255
+ seen.has(pageType.type) && error(`${at}.type`, `The type "${pageType.type}" is declared more than once.`), seen.add(pageType.type), pageType.path && pageType.pathPrefix && warn(`${at}.pathPrefix`, `"${pageType.type}" has a fixed path: its pathPrefix is ignored.`), !pageType.slugField && !pageType.path && error(`${at}`, `"${pageType.type}" has neither slugField nor path: the kit cannot build its URL. Give it a fixed path, e.g. {type: '${pageType.type}', path: '/'} for a home page.`);
256
+ }), config.previewUrl && !isAbsoluteHttpUrl(config.previewUrl) && error("previewUrl", `"${config.previewUrl}" is not an absolute URL. Expected: https://example.com`), config.componentPreview.provider === "designSystemPage" && (config.previewUrl || warn("previewUrl", "Component preview is enabled but `previewUrl` is missing: thumbnails and links to the design system page will be disabled.", ["components"]), !config.componentPreview.thumbnail.includes("{name}") && !config.componentPreview.thumbnail.includes("{kebab}") && warn("componentPreview.thumbnail", "The template contains neither {name} nor {kebab}: every block will show the same image.", ["components"]));
256
257
  let seenEnvironments = /* @__PURE__ */ new Set();
257
- for (let environment of config.environments) isAbsoluteHttpUrl(environment.url) || error(`environments.${environment.id}.url`, `« ${environment.url} » n'est pas une URL absolue. L'aperçu ne pourra pas charger cet environnement.`, ["pages"]), seenEnvironments.has(environment.id) && error("environments", `Deux environnements portent l'identifiant « ${environment.id} » : le choix retenu serait imprévisible.`, ["pages"]), seenEnvironments.add(environment.id);
258
- config.tools.history && (config.history ? ((!config.history.endpoint || !isAbsoluteHttpUrl(config.history.endpoint)) && error("history.endpoint", `« ${config.history.endpoint || ""} » n'est pas une URL absolue vers l'Edge Function de lecture.`, ["history"]), config.history.projectKey?.trim() || error("history.projectKey", "`history.projectKey` est vide.", ["history"]), /^eyJ|^sb_secret_|service_role/i.test(config.history.projectKey ?? "") && error("history.projectKey", "Cette valeur ressemble à une clé Supabase. Le Studio est public : n'y place jamais qu'un identifiant de projet opaque, sans droit d'écriture.", ["history"])) : warn("history", "L'onglet Historique est activé mais aucune clé de lecture n'est configurée. Lance `npx ncf-kit setup` dans le dossier du studio (elle est écrite dans .env), ou passe tools: {history: false}.", ["history"]));
258
+ for (let environment of config.environments) isAbsoluteHttpUrl(environment.url) || error(`environments.${environment.id}.url`, `"${environment.url}" is not an absolute URL. The preview will not be able to load this environment.`, ["pages"]), seenEnvironments.has(environment.id) && error("environments", `Two environments share the id "${environment.id}": which one is used would be unpredictable.`, ["pages"]), seenEnvironments.add(environment.id);
259
+ config.tools.history && (config.history ? ((!config.history.endpoint || !isAbsoluteHttpUrl(config.history.endpoint)) && error("history.endpoint", `"${config.history.endpoint || ""}" is not an absolute URL to the read Edge Function.`, ["history"]), config.history.projectKey?.trim() || error("history.projectKey", "`history.projectKey` is empty.", ["history"]), /^eyJ|^sb_secret_|service_role/i.test(config.history.projectKey ?? "") && error("history.projectKey", "This value looks like a Supabase key. The Studio is public: only ever put an opaque project identifier here, with no write access.", ["history"])) : warn("history", "The History tab is enabled but no read key is configured. Run `npx ncf-kit setup` in the studio folder (it is written to .env), or set tools: {history: false}.", ["history"]));
259
260
  let fieldIds = /* @__PURE__ */ new Set();
260
261
  return config.internalFields.forEach((field, index) => {
261
262
  let at = `internalFields[${index}]`;
262
263
  if (!field.id?.trim()) {
263
- error(`${at}.id`, "Identifiant de champ manquant.", ["pages"]);
264
+ error(`${at}.id`, "Field id missing.", ["pages"]);
264
265
  return;
265
266
  }
266
- fieldIds.has(field.id) && error(`${at}.id`, `Le champ « ${field.id} » est déclaré plusieurs fois.`, ["pages"]), fieldIds.add(field.id), field.label?.trim() || warn(`${at}.label`, `Le champ « ${field.id} » n'a pas de libellé : son identifiant sera affiché.`, ["pages"]), field.type === "select" && !field.options?.length && error(`${at}.options`, `Le champ « ${field.id} » est de type select mais n'a aucune option.`, ["pages"]);
267
- }), config.pageBuilderField || error("pageBuilderField", "Le champ du page builder ne peut pas être vide.", ["pages", "components"]), issues;
267
+ fieldIds.has(field.id) && error(`${at}.id`, `The field "${field.id}" is declared more than once.`, ["pages"]), fieldIds.add(field.id), field.label?.trim() || warn(`${at}.label`, `The field "${field.id}" has no label: its id will be shown.`, ["pages"]), field.type === "select" && !field.options?.length && error(`${at}.options`, `The field "${field.id}" is of type select but has no options.`, ["pages"]);
268
+ }), config.pageBuilderField || error("pageBuilderField", "The page builder field cannot be empty.", ["pages", "components"]), issues;
268
269
  }
269
270
  /** Problèmes bloquant un outil donné. */
270
271
  function issuesForTool(issues, tool) {
@@ -290,35 +291,35 @@ function KitProvider(props) {
290
291
  */
291
292
  function useKitContext() {
292
293
  let value = useContext(KitContext);
293
- if (!value) throw Error("useKitContext doit être appelé dans un outil du plugin @nocode-factory/sanity-kit.");
294
+ if (!value) throw Error("useKitContext must be called inside a tool of the @nocode-factory/sanity-kit plugin.");
294
295
  return value;
295
296
  }
296
297
  const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfTranslationTodo", translationTodoId = (documentId) => `ncfTodo.${documentId.replace(/^drafts\./, "")}`, translationTodoType = defineType({
297
298
  name: TRANSLATION_TODO_TYPE,
298
- title: "À traduire (NCF)",
299
+ title: "To translate (NCF)",
299
300
  type: "document",
300
301
  fields: [
301
302
  defineField({
302
303
  name: "documentId",
303
- title: "Traduction",
304
+ title: "Translation",
304
305
  type: "string",
305
306
  readOnly: !0
306
307
  }),
307
308
  defineField({
308
309
  name: "sourceId",
309
- title: "Version principale",
310
+ title: "Main version",
310
311
  type: "string",
311
312
  readOnly: !0
312
313
  }),
313
314
  defineField({
314
315
  name: "sourceLanguage",
315
- title: "Langue principale",
316
+ title: "Main language",
316
317
  type: "string",
317
318
  readOnly: !0
318
319
  }),
319
320
  defineField({
320
321
  name: "paths",
321
- title: "Champs à traduire",
322
+ title: "Fields to translate",
322
323
  type: "array",
323
324
  of: [{ type: "string" }],
324
325
  readOnly: !0
@@ -326,11 +327,11 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
326
327
  ],
327
328
  preview: {
328
329
  select: { title: "documentId" },
329
- prepare: ({ title }) => ({ title: `À traduire : ${title}` })
330
+ prepare: ({ title }) => ({ title: `To translate: ${title}` })
330
331
  }
331
332
  }), BOARD_LAYOUT_TYPE = "ncfBoardLayout", BOARD_LAYOUT_ID = "ncfBoardLayout", BOARD_NODE_TYPE = "ncfBoardNode", SECTION_NODE_TYPE = "ncfSectionNode", NODE_FIELD_TYPE = "ncfNodeField", COLUMN_TYPE = "ncfColumn", COLUMN_OPTION_TYPE = "ncfColumnOption", ANNOTATION_TYPE = "ncfAnnotation", NCF_HIDDEN_TYPES = [BOARD_LAYOUT_TYPE, TRANSLATION_TODO_TYPE], boardNodeType = defineType({
332
333
  name: BOARD_NODE_TYPE,
333
- title: "Position d'une page",
334
+ title: "Page position",
334
335
  type: "object",
335
336
  fields: [
336
337
  defineField({
@@ -350,22 +351,22 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
350
351
  }),
351
352
  defineField({
352
353
  name: "width",
353
- title: "Largeur",
354
+ title: "Width",
354
355
  type: "number"
355
356
  }),
356
357
  defineField({
357
358
  name: "height",
358
- title: "Hauteur",
359
+ title: "Height",
359
360
  type: "number"
360
361
  }),
361
362
  defineField({
362
363
  name: "tag",
363
- title: "Étiquette de suivi",
364
+ title: "Tracking tag",
364
365
  type: "string"
365
366
  }),
366
367
  defineField({
367
368
  name: "fields",
368
- title: "Gestion interne",
369
+ title: "Internal management",
369
370
  type: "array",
370
371
  of: [{ type: NODE_FIELD_TYPE }]
371
372
  })
@@ -377,7 +378,7 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
377
378
  y: "y"
378
379
  },
379
380
  prepare: ({ title, x, y }) => ({
380
- title: title ?? "Sans document",
381
+ title: title ?? "No document",
381
382
  subtitle: `${x ?? 0} × ${y ?? 0}`
382
383
  })
383
384
  }
@@ -388,7 +389,7 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
388
389
  fields: [
389
390
  defineField({
390
391
  name: "id",
391
- title: "Identifiant",
392
+ title: "ID",
392
393
  type: "string"
393
394
  }),
394
395
  defineField({
@@ -405,13 +406,13 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
405
406
  }),
406
407
  defineField({
407
408
  name: "kind",
408
- title: "Nature",
409
+ title: "Kind",
409
410
  type: "string",
410
411
  options: { list: [{
411
- title: "Texte",
412
+ title: "Text",
412
413
  value: "text"
413
414
  }, {
414
- title: "Forme",
415
+ title: "Shape",
415
416
  value: "rect"
416
417
  }] }
417
418
  }),
@@ -433,12 +434,12 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
433
434
  }),
434
435
  defineField({
435
436
  name: "text",
436
- title: "Texte",
437
+ title: "Text",
437
438
  type: "string"
438
439
  }),
439
440
  defineField({
440
441
  name: "color",
441
- title: "Couleur",
442
+ title: "Color",
442
443
  type: "string"
443
444
  })
444
445
  ],
@@ -448,22 +449,22 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
448
449
  } }
449
450
  }), columnOptionType = defineType({
450
451
  name: COLUMN_OPTION_TYPE,
451
- title: "Choix",
452
+ title: "Choice",
452
453
  type: "object",
453
454
  fields: [
454
455
  defineField({
455
456
  name: "id",
456
- title: "Identifiant",
457
+ title: "ID",
457
458
  type: "string"
458
459
  }),
459
460
  defineField({
460
461
  name: "label",
461
- title: "Libellé",
462
+ title: "Label",
462
463
  type: "string"
463
464
  }),
464
465
  defineField({
465
466
  name: "color",
466
- title: "Couleur",
467
+ title: "Color",
467
468
  type: "string"
468
469
  })
469
470
  ],
@@ -473,17 +474,17 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
473
474
  } }
474
475
  }), columnType = defineType({
475
476
  name: COLUMN_TYPE,
476
- title: "Colonne de gestion interne",
477
+ title: "Internal management column",
477
478
  type: "object",
478
479
  fields: [
479
480
  defineField({
480
481
  name: "id",
481
- title: "Identifiant",
482
+ title: "ID",
482
483
  type: "string"
483
484
  }),
484
485
  defineField({
485
486
  name: "label",
486
- title: "Nom",
487
+ title: "Name",
487
488
  type: "string"
488
489
  }),
489
490
  defineField({
@@ -491,16 +492,16 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
491
492
  title: "Type",
492
493
  type: "string",
493
494
  options: { list: [{
494
- title: "Texte",
495
+ title: "Text",
495
496
  value: "text"
496
497
  }, {
497
- title: "Liste",
498
+ title: "List",
498
499
  value: "select"
499
500
  }] }
500
501
  }),
501
502
  defineField({
502
503
  name: "options",
503
- title: "Choix",
504
+ title: "Choices",
504
505
  type: "array",
505
506
  of: [{ type: COLUMN_OPTION_TYPE }]
506
507
  })
@@ -511,15 +512,15 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
511
512
  } }
512
513
  }), nodeFieldType = defineType({
513
514
  name: NODE_FIELD_TYPE,
514
- title: "Champ de gestion interne",
515
+ title: "Internal management field",
515
516
  type: "object",
516
517
  fields: [defineField({
517
518
  name: "fieldId",
518
- title: "Champ",
519
+ title: "Field",
519
520
  type: "string"
520
521
  }), defineField({
521
522
  name: "value",
522
- title: "Valeur",
523
+ title: "Value",
523
524
  type: "string"
524
525
  })],
525
526
  preview: { select: {
@@ -528,12 +529,12 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
528
529
  } }
529
530
  }), sectionNodeType = defineType({
530
531
  name: SECTION_NODE_TYPE,
531
- title: "Position d'une section",
532
+ title: "Section position",
532
533
  type: "object",
533
534
  fields: [
534
535
  defineField({
535
536
  name: "blockName",
536
- title: "Type de bloc",
537
+ title: "Block type",
537
538
  type: "string"
538
539
  }),
539
540
  defineField({
@@ -554,14 +555,14 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
554
555
  y: "y"
555
556
  },
556
557
  prepare: ({ title, x, y }) => ({
557
- title: title ?? "Sans bloc",
558
+ title: title ?? "No block",
558
559
  subtitle: `${x ?? 0} × ${y ?? 0}`
559
560
  })
560
561
  }
561
562
  }), kitSchemaTypes = [
562
563
  defineType({
563
564
  name: BOARD_LAYOUT_TYPE,
564
- title: "Disposition du board (NCF)",
565
+ title: "Board layout (NCF)",
565
566
  type: "document",
566
567
  fields: [
567
568
  defineField({
@@ -578,29 +579,29 @@ const useKitConfig = () => useKitContext().config, TRANSLATION_TODO_TYPE = "ncfT
578
579
  }),
579
580
  defineField({
580
581
  name: "columns",
581
- title: "Colonnes de gestion interne",
582
+ title: "Internal management columns",
582
583
  type: "array",
583
584
  of: [{ type: COLUMN_TYPE }]
584
585
  }),
585
586
  defineField({
586
587
  name: "columnsSet",
587
- title: "Colonnes réglées",
588
+ title: "Columns set",
588
589
  type: "boolean"
589
590
  }),
590
591
  defineField({
591
592
  name: "sections",
592
- title: "Positions des sections",
593
+ title: "Section positions",
593
594
  type: "array",
594
595
  of: [{ type: SECTION_NODE_TYPE }]
595
596
  }),
596
597
  defineField({
597
598
  name: "updatedBy",
598
- title: "Modifié par",
599
+ title: "Modified by",
599
600
  type: "string",
600
601
  readOnly: !0
601
602
  })
602
603
  ],
603
- preview: { prepare: () => ({ title: "Disposition du board (NCF)" }) }
604
+ preview: { prepare: () => ({ title: "Board layout (NCF)" }) }
604
605
  }),
605
606
  translationTodoType,
606
607
  boardNodeType,
@@ -713,19 +714,19 @@ function mergeVersions(docs) {
713
714
  }
714
715
  const STATUS_LABELS = {
715
716
  published: {
716
- label: "Publiée",
717
+ label: "Published",
717
718
  tone: "positive",
718
- help: "En ligne, à jour"
719
+ help: "Live, up to date"
719
720
  },
720
721
  modified: {
721
- label: "Modifiée",
722
+ label: "Modified",
722
723
  tone: "caution",
723
- help: "En ligne, avec des modifications non publiées"
724
+ help: "Live, with unpublished changes"
724
725
  },
725
726
  draft: {
726
- label: "Non publiée",
727
+ label: "Not published",
727
728
  tone: "default",
728
- help: "Absente du site : jamais publiée, ou retirée du site (contenu conservé en brouillon)"
729
+ help: "Not on the site: never published, or removed from the site (content kept in the draft)"
729
730
  }
730
731
  };
731
732
  /**
@@ -1026,17 +1027,17 @@ function BoardLayoutProvider(props) {
1026
1027
  }
1027
1028
  function useBoardLayout() {
1028
1029
  let value = useContext(BoardLayoutContext);
1029
- if (!value) throw Error("useBoardLayout doit être appelé sous BoardLayoutProvider.");
1030
+ if (!value) throw Error("useBoardLayout must be called inside BoardLayoutProvider.");
1030
1031
  return value;
1031
1032
  }
1032
1033
  const PERSPECTIVES = [{
1033
1034
  id: "drafts",
1034
- label: "Brouillons",
1035
- hint: "Ce qui sortira après publication"
1035
+ label: "Drafts",
1036
+ hint: "What will go live after publishing"
1036
1037
  }, {
1037
1038
  id: "published",
1038
- label: "En ligne",
1039
- hint: "Ce que voit le public aujourd'hui"
1039
+ label: "Published",
1040
+ hint: "What the public sees today"
1040
1041
  }], trimEnd = (url) => url.replace(/\/+$/, "");
1041
1042
  /**
1042
1043
  * URL d'une page sur un front donné.
@@ -1058,24 +1059,24 @@ function isPublicEnvironment(environment, previewUrl) {
1058
1059
  return environment ? environment.id === "production" || !!previewUrl && trimEnd(environment.url) === trimEnd(previewUrl) : !1;
1059
1060
  }
1060
1061
  function previewTargets(environments, previewUrl) {
1061
- let previews = environments.filter((e) => !isPublicEnvironment(e, previewUrl)), publics = environments.filter((e) => isPublicEnvironment(e, previewUrl)), name = (e) => e.id === "preprod" ? "Préprod" : e.label;
1062
+ let previews = environments.filter((e) => !isPublicEnvironment(e, previewUrl)), publics = environments.filter((e) => isPublicEnvironment(e, previewUrl)), name = (e) => e.id === "preprod" ? "Staging" : e.label;
1062
1063
  return [...previews.flatMap((environment) => [{
1063
1064
  environment,
1064
1065
  perspective: "drafts",
1065
- label: `${name(environment)} · Brouillons`,
1066
- hint: "Ce qui sortira après publication",
1066
+ label: `${name(environment)} · Drafts`,
1067
+ hint: "What will go live after publishing",
1067
1068
  tone: "draft"
1068
1069
  }, {
1069
1070
  environment,
1070
1071
  perspective: "published",
1071
- label: `${name(environment)} · En ligne`,
1072
- hint: "Le contenu publié, sur la version de test du site",
1072
+ label: `${name(environment)} · Published`,
1073
+ hint: "The published content, on the test version of the site",
1073
1074
  tone: "live"
1074
1075
  }]), ...publics.map((environment) => ({
1075
1076
  environment,
1076
1077
  perspective: "published",
1077
- label: "Prod · En ligne",
1078
- hint: "Le site public, tel que le voient les visiteurs",
1078
+ label: "Prod · Published",
1079
+ hint: "The public site, as visitors see it",
1079
1080
  tone: "prod"
1080
1081
  }))];
1081
1082
  }
@@ -1289,7 +1290,7 @@ function PreviewTargetProvider(props) {
1289
1290
  }
1290
1291
  function usePreviewTarget() {
1291
1292
  let value = useContext(PreviewTargetContext);
1292
- if (!value) throw Error("usePreviewTarget doit être appelé sous PreviewTargetProvider.");
1293
+ if (!value) throw Error("usePreviewTarget must be called inside PreviewTargetProvider.");
1293
1294
  return value;
1294
1295
  }
1295
1296
  /**
@@ -1331,7 +1332,7 @@ function ConfigIssues(props) {
1331
1332
  children: [
1332
1333
  /* @__PURE__ */ jsx(Text, {
1333
1334
  weight: "semibold",
1334
- children: blocking ? `« ${toolTitle} » est désactivé : la configuration de ncfKit() est incomplète.` : `« ${toolTitle} » fonctionne en mode dégradé.`
1335
+ children: blocking ? `"${toolTitle}" is disabled: the ncfKit() configuration is incomplete.` : `"${toolTitle}" is running in degraded mode.`
1335
1336
  }),
1336
1337
  /* @__PURE__ */ jsx(Stack, {
1337
1338
  gap: 3,
@@ -1348,7 +1349,7 @@ function ConfigIssues(props) {
1348
1349
  /* @__PURE__ */ jsx(Text, {
1349
1350
  size: 1,
1350
1351
  muted: !0,
1351
- children: "À corriger dans l'appel à ncfKit() de sanity.config.ts."
1352
+ children: "Fix it in the ncfKit() call in sanity.config.ts."
1352
1353
  })
1353
1354
  ]
1354
1355
  })
@@ -1411,14 +1412,14 @@ async function requestPreviewGrant(endpoint, payload, signal) {
1411
1412
  /** Messages du service, rendus lisibles pour un éditeur. */
1412
1413
  function explainGrantError(error) {
1413
1414
  let code = error instanceof Error ? error.message : String(error);
1414
- return code === "missing_sanity_token" ? "Votre session Sanity n'expose pas de jeton : impossible de prouver votre accès au projet." : code === "no_project_access" ? "Votre compte n'a pas accès à ce projet Sanity." : code === "project_inactive" ? "Ce projet n'est pas actif chez NoCode Factory." : code === "unknown_project" ? "Ce projet n'est pas enregistré chez NoCode Factory." : "Le lien n'a pas pu être créé.";
1415
+ return code === "missing_sanity_token" ? "Your Sanity session exposes no token: unable to prove your access to the project." : code === "no_project_access" ? "Your account has no access to this Sanity project." : code === "project_inactive" ? "This project is not active at NoCode Factory." : code === "unknown_project" ? "This project is not registered at NoCode Factory." : "The link could not be created.";
1415
1416
  }
1416
1417
  /**
1417
1418
  * Version du kit, rapportée au service pour savoir quels projets tournent sur
1418
1419
  * quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
1419
1420
  * le vérifie.
1420
1421
  */
1421
- const KIT_VERSION = "2.24.0";
1422
+ const KIT_VERSION = "2.26.0";
1422
1423
  /**
1423
1424
  * Signale ce Studio au service du kit, une fois par montage.
1424
1425
  *
@@ -1471,14 +1472,14 @@ function ProjectStatusNotice(props) {
1471
1472
  children: [/* @__PURE__ */ jsx(Text, {
1472
1473
  size: 1,
1473
1474
  weight: "semibold",
1474
- children: "Le journal n'est pas encore activé pour ce projet."
1475
+ children: "The log is not enabled for this project yet."
1475
1476
  }), /* @__PURE__ */ jsxs(Text, {
1476
1477
  size: 0,
1477
1478
  muted: !0,
1478
1479
  children: [
1479
- "NoCode Factory l'active en lançant ",
1480
+ "NoCode Factory enables it by running ",
1480
1481
  /* @__PURE__ */ jsx("code", { children: "npx ncf-kit setup" }),
1481
- " dans le dossier du studio."
1482
+ " in the studio folder."
1482
1483
  ]
1483
1484
  })]
1484
1485
  })
@@ -1491,11 +1492,11 @@ function ProjectStatusNotice(props) {
1491
1492
  children: [/* @__PURE__ */ jsx(Text, {
1492
1493
  size: 1,
1493
1494
  weight: "semibold",
1494
- children: status === "expired" ? "L'accès à ce projet a expiré." : status === "suspended" ? "Ce projet est suspendu." : "Ce projet n'est plus autorisé."
1495
+ children: status === "expired" ? "Access to this project has expired." : status === "suspended" ? "This project is suspended." : "This project is no longer authorized."
1495
1496
  }), /* @__PURE__ */ jsx(Text, {
1496
1497
  size: 0,
1497
1498
  muted: !0,
1498
- children: "Les outils restent utilisables, mais le journal des modifications est arrêté. Contactez NoCode Factory pour rétablir le service."
1499
+ children: "The tools remain usable, but the change log is stopped. Contact NoCode Factory to restore the service."
1499
1500
  })]
1500
1501
  })
1501
1502
  });
@@ -1521,7 +1522,7 @@ function PreviewOriginsNotice() {
1521
1522
  children: [
1522
1523
  /* @__PURE__ */ jsxs(Text, {
1523
1524
  weight: "semibold",
1524
- children: ["Aperçu muet sur ", missing.length > 1 ? "ces environnements" : "cet environnement"]
1525
+ children: ["Preview not interactive on ", missing.length > 1 ? "these environments" : "this environment"]
1525
1526
  }),
1526
1527
  /* @__PURE__ */ jsx(Stack, {
1527
1528
  gap: 2,
@@ -1530,11 +1531,11 @@ function PreviewOriginsNotice() {
1530
1531
  /* @__PURE__ */ jsxs(Text, {
1531
1532
  size: 1,
1532
1533
  children: [
1533
- "Presentation n'autorise pas ",
1534
- missing.length > 1 ? "ces origines" : "cette origine",
1535
- " : la page s'affiche sans édition visuelle. Dans sanity.config.ts, passer ",
1534
+ "Presentation does not allow ",
1535
+ missing.length > 1 ? "these origins" : "this origin",
1536
+ ": the page is shown without visual editing. In sanity.config.ts, pass ",
1536
1537
  /* @__PURE__ */ jsx(InlineCode, { children: "allowOrigins: ncfAllowedOrigins(options)" }),
1537
- " à presentationTool."
1538
+ " to presentationTool."
1538
1539
  ]
1539
1540
  })
1540
1541
  ]
@@ -1690,7 +1691,7 @@ function useOpenOnline() {
1690
1691
  }
1691
1692
  let tab = window.open("about:blank", "_blank");
1692
1693
  if (tab) {
1693
- tab.opener = null, tab.document.title = "Ouverture de la préversion…", tab.document.body.innerHTML = "<p style=\"font:15px/1.6 system-ui,sans-serif;color:#57534e;padding:2rem\">Ouverture de la préversion…</p>";
1694
+ tab.opener = null, tab.document.title = "Opening the preview…", tab.document.body.innerHTML = "<p style=\"font:15px/1.6 system-ui,sans-serif;color:#57534e;padding:2rem\">Opening the preview…</p>";
1694
1695
  try {
1695
1696
  let { projectId, dataset, token } = client.config();
1696
1697
  if (!projectId || !dataset) throw Error("unknown_project");
@@ -1710,7 +1711,7 @@ function useOpenOnline() {
1710
1711
  tab.location.href = signed ?? plain;
1711
1712
  } catch (cause) {
1712
1713
  let message = explainGrantError(cause);
1713
- tab.document.title = "Préversion indisponible", tab.document.body.innerHTML = "<main style=\"font:15px/1.6 system-ui,sans-serif;color:#1c1917;padding:2rem;max-width:32rem\"><h1 style=\"font-size:18px\">Impossible d'ouvrir la préversion</h1><p style=\"color:#57534e\"></p></main>";
1714
+ tab.document.title = "Preview unavailable", tab.document.body.innerHTML = "<main style=\"font:15px/1.6 system-ui,sans-serif;color:#1c1917;padding:2rem;max-width:32rem\"><h1 style=\"font-size:18px\">Unable to open the preview</h1><p style=\"color:#57534e\"></p></main>";
1714
1715
  let paragraph = tab.document.querySelector("p");
1715
1716
  paragraph && (paragraph.textContent = message);
1716
1717
  }
@@ -1761,7 +1762,7 @@ function useKitUpdate() {
1761
1762
  !controller.signal.aborted && body?.version && setLatest(body.version);
1762
1763
  }).catch(() => {}), () => controller.abort();
1763
1764
  }, []);
1764
- let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.24.0") > 0);
1765
+ let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.26.0") > 0);
1765
1766
  return {
1766
1767
  current: KIT_VERSION,
1767
1768
  latest,
@@ -1826,7 +1827,7 @@ function NcfKitUpdate(props) {
1826
1827
  padding: props.inline ? 2 : 3,
1827
1828
  icon: ArrowUpIcon,
1828
1829
  text: `Kit ${update.latest}`,
1829
- title: `Une version plus récente du kit est disponible (vous exécutez la ${update.current})`,
1830
+ title: `A newer version of the kit is available (you are running ${update.current})`,
1830
1831
  justify: props.inline ? void 0 : "flex-start",
1831
1832
  onClick: toggle
1832
1833
  }),
@@ -1842,13 +1843,13 @@ function NcfKitUpdate(props) {
1842
1843
  children: [
1843
1844
  "Kit ",
1844
1845
  update.latest,
1845
- " disponible"
1846
+ " available"
1846
1847
  ]
1847
1848
  }), /* @__PURE__ */ jsxs(Text, {
1848
1849
  size: 0,
1849
1850
  muted: !0,
1850
1851
  children: [
1851
- "Vous exécutez la ",
1852
+ "You are running ",
1852
1853
  update.current,
1853
1854
  "."
1854
1855
  ]
@@ -1876,7 +1877,7 @@ function NcfKitUpdate(props) {
1876
1877
  fontSize: 1,
1877
1878
  padding: 2,
1878
1879
  icon: copied ? CheckmarkIcon : CopyIcon,
1879
- text: copied ? "Copié" : "Copier la commande",
1880
+ text: copied ? "Copied" : "Copy command",
1880
1881
  onClick: copy
1881
1882
  }), /* @__PURE__ */ jsx(Button, {
1882
1883
  as: "a",
@@ -1886,7 +1887,7 @@ function NcfKitUpdate(props) {
1886
1887
  mode: "bleed",
1887
1888
  fontSize: 1,
1888
1889
  padding: 2,
1889
- text: "Nouveautés"
1890
+ text: "What's new"
1890
1891
  })]
1891
1892
  }),
1892
1893
  /* @__PURE__ */ jsx(Box, {
@@ -1898,14 +1899,14 @@ function NcfKitUpdate(props) {
1898
1899
  size: 0,
1899
1900
  muted: !0,
1900
1901
  children: [
1901
- "À lancer dans ",
1902
+ "Run it in ",
1902
1903
  /* @__PURE__ */ jsx("code", { children: "studio/" }),
1903
- " puis ",
1904
+ " then ",
1904
1905
  /* @__PURE__ */ jsx("code", { children: "web/" }),
1905
- ", suivi d'un",
1906
+ ", followed by",
1906
1907
  " ",
1907
1908
  /* @__PURE__ */ jsx("code", { children: "npx sanity deploy" }),
1908
- ". Le Studio ne peut pas le faire lui-même : il s'exécute dans votre navigateur, pas sur la machine qui le construit."
1909
+ ". The Studio cannot do it itself: it runs in your browser, not on the machine that builds it."
1909
1910
  ]
1910
1911
  })
1911
1912
  })
@@ -1961,12 +1962,12 @@ function NcfToolButtons(props) {
1961
1962
  id: "ncf-tool-menu-more",
1962
1963
  button: /* @__PURE__ */ jsx(Button, {
1963
1964
  icon: EllipsisHorizontalIcon,
1964
- text: "Plus",
1965
+ text: "More",
1965
1966
  mode: "bleed",
1966
1967
  fontSize: 1,
1967
1968
  padding: 3,
1968
1969
  selected: more.some((t) => t.name === activeToolName),
1969
- title: `Outils techniques (${more.map((t) => t.title || t.name).join(", ")})`
1970
+ title: `Technical tools (${more.map((t) => t.title || t.name).join(", ")})`
1970
1971
  }),
1971
1972
  menu: /* @__PURE__ */ jsx(Menu, { children: more.map((tool) => /* @__PURE__ */ jsx(MenuItem, {
1972
1973
  as: ToolAnchor,
@@ -2044,8 +2045,8 @@ function NcfPreviewLauncher(props) {
2044
2045
  fontSize: 1,
2045
2046
  padding: inline ? 2 : 3,
2046
2047
  icon: EyeOpenIcon,
2047
- text: "Prévisualiser",
2048
- title: "Ouvrir le site dans l'aperçu",
2048
+ text: "Preview",
2049
+ title: "Open the site in the preview",
2049
2050
  justify: inline ? void 0 : "flex-start",
2050
2051
  onClick: toggle
2051
2052
  }),
@@ -2058,7 +2059,7 @@ function NcfPreviewLauncher(props) {
2058
2059
  children: /* @__PURE__ */ jsx(Text, {
2059
2060
  size: 0,
2060
2061
  muted: !0,
2061
- children: "Cliquer : ouvre dans le Studio. L'icône ↗ : ouvre le site en ligne."
2062
+ children: "Click: opens in the Studio. The ↗ icon: opens the live site."
2062
2063
  })
2063
2064
  }), previewTargets(environments, config.previewUrl).map((target) => {
2064
2065
  let tone = TARGET_TONES[target.tone];
@@ -2080,7 +2081,7 @@ function NcfPreviewLauncher(props) {
2080
2081
  background: tone.background,
2081
2082
  color: tone.color
2082
2083
  },
2083
- title: "Ouvrir dans le Studio (Presentation)",
2084
+ title: "Open in the Studio (Presentation)",
2084
2085
  children: /* @__PURE__ */ jsxs(Stack, {
2085
2086
  gap: 1,
2086
2087
  style: { minWidth: 0 },
@@ -2104,8 +2105,8 @@ function NcfPreviewLauncher(props) {
2104
2105
  padding: 2,
2105
2106
  fontSize: 1,
2106
2107
  icon: LaunchIcon,
2107
- title: "Ouvrir le site en ligne, dans un nouvel onglet",
2108
- "aria-label": `Ouvrir ${target.label} dans un nouvel onglet`,
2108
+ title: "Open the live site in a new tab",
2109
+ "aria-label": `Open ${target.label} in a new tab`,
2109
2110
  onClick: () => {
2110
2111
  openOnline(target.environment, target.perspective), close();
2111
2112
  }
@@ -2247,7 +2248,7 @@ function pageTypeFor(type, pageTypes) {
2247
2248
  * qu'une cellule vide.
2248
2249
  */
2249
2250
  function formatDocumentValue(value, type, invert = !1) {
2250
- return value == null ? type === "boolean" && invert ? "Oui" : "" : type === "boolean" ? (invert ? !value : value) ? "Oui" : "Non" : type === "number" ? typeof value == "number" ? String(value) : "" : typeof value == "string" ? value.trim() : typeof value == "number" || typeof value == "boolean" ? String(value) : "";
2251
+ return value == null ? type === "boolean" && invert ? "Yes" : "" : type === "boolean" ? (invert ? !value : value) ? "Yes" : "No" : type === "number" ? typeof value == "number" ? String(value) : "" : typeof value == "string" ? value.trim() : typeof value == "number" || typeof value == "boolean" ? String(value) : "";
2251
2252
  }
2252
2253
  function buildPageRows(docs, config, documentColumns = []) {
2253
2254
  return mergeVersions(docs).map((merged) => {
@@ -2260,7 +2261,7 @@ function buildPageRows(docs, config, documentColumns = []) {
2260
2261
  return {
2261
2262
  id: merged.id,
2262
2263
  type: doc._type,
2263
- title: doc.ncfTitle?.trim() || "Sans titre",
2264
+ title: doc.ncfTitle?.trim() || "Untitled",
2264
2265
  path,
2265
2266
  url: toUrl(config.previewUrl, path),
2266
2267
  locale: doc.ncfLocale ?? null,
@@ -2524,17 +2525,17 @@ function indexationColumn(noindexFields) {
2524
2525
  const TABS = [
2525
2526
  {
2526
2527
  value: "list",
2527
- label: "Liste",
2528
+ label: "List",
2528
2529
  icon: DocumentsIcon
2529
2530
  },
2530
2531
  {
2531
2532
  value: "tree",
2532
- label: "Arbo",
2533
+ label: "Tree",
2533
2534
  icon: ProjectsIcon
2534
2535
  },
2535
2536
  {
2536
2537
  value: "brain",
2537
- label: "Cerveau",
2538
+ label: "Graph",
2538
2539
  icon: CircleIcon
2539
2540
  }
2540
2541
  ];
@@ -2547,7 +2548,7 @@ function ViewTabs(props) {
2547
2548
  return /* @__PURE__ */ jsx(Flex, {
2548
2549
  gap: 1,
2549
2550
  role: "tablist",
2550
- "aria-label": "Vue des pages",
2551
+ "aria-label": "Pages view",
2551
2552
  children: TABS.map((tab) => {
2552
2553
  let active = props.view === tab.value;
2553
2554
  return /* @__PURE__ */ jsx(Button, {
@@ -2592,7 +2593,7 @@ function PreviewTarget(props) {
2592
2593
  let { environments, environmentId, perspective, onEnvironment, onPerspective } = props, { onCustomUrl, customUrl, productionUrl } = props, current = environments.find((environment) => environment.id === environmentId), onProduction = !!(current && productionUrl && current.url.replace(/\/+$/, "") === productionUrl.replace(/\/+$/, "")) || current?.id === "production";
2593
2594
  return /* @__PURE__ */ jsxs(Box, {
2594
2595
  style: { flex: "none" },
2595
- children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Aperçu" }), /* @__PURE__ */ jsxs(Flex, {
2596
+ children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Preview" }), /* @__PURE__ */ jsxs(Flex, {
2596
2597
  gap: 1,
2597
2598
  align: "center",
2598
2599
  children: [PERSPECTIVES.map((option) => {
@@ -2604,7 +2605,7 @@ function PreviewTarget(props) {
2604
2605
  fontSize: 1,
2605
2606
  padding: 2,
2606
2607
  text: option.label,
2607
- title: unavailable ? "La production ne montre que le contenu en ligne : les brouillons se relisent sur la préprod." : option.hint,
2608
+ title: unavailable ? "Production only shows published content: review drafts on staging." : option.hint,
2608
2609
  "aria-pressed": active,
2609
2610
  onClick: () => onPerspective(option.id)
2610
2611
  }, option.id);
@@ -2615,8 +2616,8 @@ function PreviewTarget(props) {
2615
2616
  fontSize: 1,
2616
2617
  padding: 2,
2617
2618
  icon: EarthGlobeIcon,
2618
- text: current?.label ?? "Environnement",
2619
- title: "Version du site chargée dans l'aperçu",
2619
+ text: current?.label ?? "Environment",
2620
+ title: "Site version loaded in the preview",
2620
2621
  onClick: toggle
2621
2622
  }),
2622
2623
  children: ({ close }) => /* @__PURE__ */ jsxs(Stack, {
@@ -2629,7 +2630,7 @@ function PreviewTarget(props) {
2629
2630
  children: /* @__PURE__ */ jsx(Text, {
2630
2631
  size: 0,
2631
2632
  muted: !0,
2632
- children: "Version du site. Les données ne changent pas."
2633
+ children: "Site version. The data does not change."
2633
2634
  })
2634
2635
  }),
2635
2636
  environments.map((environment) => /* @__PURE__ */ jsx(EnvironmentRow, {
@@ -2694,7 +2695,7 @@ function EnvironmentRow(props) {
2694
2695
  size: 0,
2695
2696
  muted: !0,
2696
2697
  textOverflow: "ellipsis",
2697
- children: props.isProduction ? "site public — pas de préversion" : hostOf(props.environment.url)
2698
+ children: props.isProduction ? "public site (no preview)" : hostOf(props.environment.url)
2698
2699
  })]
2699
2700
  }),
2700
2701
  props.onForget && /* @__PURE__ */ jsx(Button, {
@@ -2702,8 +2703,8 @@ function EnvironmentRow(props) {
2702
2703
  padding: 1,
2703
2704
  fontSize: 0,
2704
2705
  icon: CloseIcon,
2705
- title: "Oublier cette adresse",
2706
- "aria-label": "Oublier cette adresse",
2706
+ title: "Forget this address",
2707
+ "aria-label": "Forget this address",
2707
2708
  onClick: props.onForget
2708
2709
  })
2709
2710
  ]
@@ -2730,7 +2731,7 @@ function CustomUrlField(props) {
2730
2731
  children: [/* @__PURE__ */ jsx("input", {
2731
2732
  type: "text",
2732
2733
  value,
2733
- placeholder: props.current ? "Autre adresse…" : "Coller une URL de préversion…",
2734
+ placeholder: props.current ? "Other address…" : "Paste a preview URL…",
2734
2735
  onChange: (event) => {
2735
2736
  setValue(event.currentTarget.value), setRejected(!1);
2736
2737
  },
@@ -2752,7 +2753,7 @@ function CustomUrlField(props) {
2752
2753
  }), rejected && /* @__PURE__ */ jsx(Text, {
2753
2754
  size: 0,
2754
2755
  style: { color: "var(--card-badge-critical-dot-color, #e03131)" },
2755
- children: "Adresse inexploitable."
2756
+ children: "Unusable address."
2756
2757
  })]
2757
2758
  })
2758
2759
  });
@@ -2766,15 +2767,15 @@ const hostOf = (url) => {
2766
2767
  }, DURATIONS = [
2767
2768
  {
2768
2769
  days: 1,
2769
- label: "1 jour"
2770
+ label: "1 day"
2770
2771
  },
2771
2772
  {
2772
2773
  days: 7,
2773
- label: "7 jours"
2774
+ label: "7 days"
2774
2775
  },
2775
2776
  {
2776
2777
  days: 30,
2777
- label: "30 jours"
2778
+ label: "30 days"
2778
2779
  }
2779
2780
  ];
2780
2781
  /**
@@ -2827,8 +2828,8 @@ function SharePreview() {
2827
2828
  fontSize: 1,
2828
2829
  padding: 2,
2829
2830
  icon: ShareIcon,
2830
- text: "Partager la préversion",
2831
- title: "Créer un lien que n'importe qui peut ouvrir, sans compte",
2831
+ text: "Share preview",
2832
+ title: "Create a link anyone can open, without an account",
2832
2833
  onClick: toggle
2833
2834
  }),
2834
2835
  children: () => /* @__PURE__ */ jsx(Stack, {
@@ -2840,20 +2841,20 @@ function SharePreview() {
2840
2841
  /* @__PURE__ */ jsx(Text, {
2841
2842
  size: 1,
2842
2843
  weight: "semibold",
2843
- children: "Rien à partager sur le site public"
2844
+ children: "Nothing to share on the public site"
2844
2845
  }),
2845
2846
  /* @__PURE__ */ jsx(Text, {
2846
2847
  size: 0,
2847
2848
  muted: !0,
2848
- children: "La production n'affiche jamais les brouillons — c'est ce qui protège votre contenu non publié. Un lien vers elle ne montrerait rien de plus qu'une visite ordinaire."
2849
+ children: "Production never shows drafts: that is what protects your unpublished content. A link to it would show nothing more than an ordinary visit."
2849
2850
  }),
2850
2851
  /* @__PURE__ */ jsxs(Text, {
2851
2852
  size: 0,
2852
2853
  muted: !0,
2853
2854
  children: [
2854
- "Choisissez d'abord une ",
2855
- /* @__PURE__ */ jsx("b", { children: "préversion" }),
2856
- " dans le sélecteur d'environnement, à gauche : une préproduction déclarée, ou l'adresse d'un déploiement de branche que vous y collez."
2855
+ "First choose a ",
2856
+ /* @__PURE__ */ jsx("b", { children: "preview" }),
2857
+ " in the environment picker on the left: a declared staging environment, or the address of a branch deployment that you paste there."
2857
2858
  ]
2858
2859
  })
2859
2860
  ]
@@ -2862,16 +2863,16 @@ function SharePreview() {
2862
2863
  size: 0,
2863
2864
  muted: !0,
2864
2865
  children: [
2865
- "Un lien qui ouvre ",
2866
- /* @__PURE__ */ jsx("b", { children: environment?.label ?? "le site" }),
2867
- " et permet d'y basculer entre brouillons et contenu en ligne. Celui qui l'a n'a besoin d'aucun compte."
2866
+ "A link that opens ",
2867
+ /* @__PURE__ */ jsx("b", { children: environment?.label ?? "the site" }),
2868
+ " and lets you switch between drafts and published content there. Whoever has it needs no account."
2868
2869
  ]
2869
2870
  }),
2870
2871
  !link && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(TextInput, {
2871
2872
  fontSize: 1,
2872
2873
  padding: 2,
2873
2874
  radius: 2,
2874
- placeholder: "À quoi sert ce lien ? (facultatif)",
2875
+ placeholder: "What is this link for? (optional)",
2875
2876
  value: label,
2876
2877
  onChange: (event) => setLabel(event.currentTarget.value)
2877
2878
  }), /* @__PURE__ */ jsx(Flex, {
@@ -2891,7 +2892,7 @@ function SharePreview() {
2891
2892
  children: [/* @__PURE__ */ jsx(Spinner, { muted: !0 }), /* @__PURE__ */ jsx(Text, {
2892
2893
  size: 1,
2893
2894
  muted: !0,
2894
- children: "Création…"
2895
+ children: "Creating…"
2895
2896
  })]
2896
2897
  }),
2897
2898
  error && /* @__PURE__ */ jsx(Card, {
@@ -2931,13 +2932,13 @@ function SharePreview() {
2931
2932
  fontSize: 1,
2932
2933
  padding: 2,
2933
2934
  icon: copied ? CheckmarkIcon : ShareIcon,
2934
- text: copied ? "Copié" : "Copier le lien",
2935
+ text: copied ? "Copied" : "Copy link",
2935
2936
  onClick: copy
2936
2937
  }), /* @__PURE__ */ jsx(Button, {
2937
2938
  mode: "bleed",
2938
2939
  fontSize: 1,
2939
2940
  padding: 2,
2940
- text: "Un autre",
2941
+ text: "Another one",
2941
2942
  onClick: () => {
2942
2943
  setLink(null), setCopied(!1);
2943
2944
  }
@@ -2947,9 +2948,9 @@ function SharePreview() {
2947
2948
  size: 0,
2948
2949
  muted: !0,
2949
2950
  children: [
2950
- "Valable jusqu'au ",
2951
- new Date(expiresAt).toLocaleDateString("fr-FR"),
2952
- ". Révocable à tout moment par NoCode Factory."
2951
+ "Valid until ",
2952
+ new Date(expiresAt).toLocaleDateString("en-US"),
2953
+ ". Can be revoked at any time by NoCode Factory."
2953
2954
  ]
2954
2955
  })
2955
2956
  ]
@@ -2969,7 +2970,7 @@ function useTranslationTodos() {
2969
2970
  });
2970
2971
  return useMemo(() => new Map((data ?? []).map((t) => [t.documentId, t.count])), [data]);
2971
2972
  }
2972
- const UNSET_LABEL = "Non renseigné", fieldIdOf = (groupBy) => groupBy.startsWith("field:") ? groupBy.slice(6) : null;
2973
+ const UNSET_LABEL = "Not set", fieldIdOf = (groupBy) => groupBy.startsWith("field:") ? groupBy.slice(6) : null;
2973
2974
  /** Valeur du critère pour une ligne. Chaîne vide = non renseigné. */
2974
2975
  function groupValue(row, groupBy, options) {
2975
2976
  if (groupBy === "type") return row.type;
@@ -2983,7 +2984,7 @@ function groupValue(row, groupBy, options) {
2983
2984
  function describe(value, groupBy, options) {
2984
2985
  if (!value) return { label: UNSET_LABEL };
2985
2986
  if (groupBy === "status") return { label: STATUS_LABELS[row_status(value)].label };
2986
- if (groupBy === "indexation") return value === "noindex" ? { label: "Non indexable" } : { label: "Indexable" };
2987
+ if (groupBy === "indexation") return value === "noindex" ? { label: "Not indexable" } : { label: "Indexable" };
2987
2988
  if (groupBy === "tag") {
2988
2989
  let tag = options.tags.find((t) => t.id === value);
2989
2990
  return tag ? {
@@ -3226,14 +3227,14 @@ function QueryError(props) {
3226
3227
  children: [
3227
3228
  /* @__PURE__ */ jsx(Text, {
3228
3229
  weight: "semibold",
3229
- children: "La requête a échoué."
3230
+ children: "The query failed."
3230
3231
  }),
3231
3232
  /* @__PURE__ */ jsx(Text, {
3232
3233
  size: 1,
3233
3234
  children: props.error.message
3234
3235
  }),
3235
3236
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, {
3236
- text: "Réessayer",
3237
+ text: "Retry",
3237
3238
  mode: "ghost",
3238
3239
  onClick: props.onRetry
3239
3240
  }) })
@@ -3250,7 +3251,7 @@ function StatusBadge(props) {
3250
3251
  children: label
3251
3252
  });
3252
3253
  }
3253
- const formatter = new Intl.DateTimeFormat("fr-FR", {
3254
+ const formatter = new Intl.DateTimeFormat("en-US", {
3254
3255
  day: "2-digit",
3255
3256
  month: "2-digit",
3256
3257
  year: "numeric",
@@ -3331,7 +3332,7 @@ function FieldValue(props) {
3331
3332
  border: bordered ? `1px solid ${BORDER}` : void 0,
3332
3333
  background: bordered ? "var(--card-bg-color)" : void 0
3333
3334
  },
3334
- title: `Changer ${(column.label || column.id).toLowerCase()}`,
3335
+ title: `Change ${(column.label || column.id).toLowerCase()}`,
3335
3336
  children: current ? /* @__PURE__ */ jsxs(Fragment, { children: [current.color && /* @__PURE__ */ jsx(Dot, { color: current.color }), /* @__PURE__ */ jsx(Text, {
3336
3337
  size: 0,
3337
3338
  textOverflow: "ellipsis",
@@ -3366,7 +3367,7 @@ function OptionEditor(props) {
3366
3367
  gap: 1,
3367
3368
  children: [
3368
3369
  onSelect && /* @__PURE__ */ jsx(Option, {
3369
- label: "Aucune valeur",
3370
+ label: "No value",
3370
3371
  selected: !options.some((option) => option.id === selectedId),
3371
3372
  onSelect: () => onSelect("")
3372
3373
  }),
@@ -3375,7 +3376,7 @@ function OptionEditor(props) {
3375
3376
  children: /* @__PURE__ */ jsx(Text, {
3376
3377
  size: 0,
3377
3378
  muted: !0,
3378
- children: "Aucun choix pour l'instant."
3379
+ children: "No choices yet."
3379
3380
  })
3380
3381
  }),
3381
3382
  options.map((option) => /* @__PURE__ */ jsx(Option, {
@@ -3418,7 +3419,7 @@ function Option(props) {
3418
3419
  children: [
3419
3420
  /* @__PURE__ */ jsx(Box, {
3420
3421
  onClick: () => props.onColor && setPicking((value) => !value),
3421
- title: props.onColor ? "Couleur" : void 0,
3422
+ title: props.onColor ? "Color" : void 0,
3422
3423
  style: {
3423
3424
  width: 10,
3424
3425
  height: 10,
@@ -3452,8 +3453,8 @@ function Option(props) {
3452
3453
  padding: 1,
3453
3454
  fontSize: 0,
3454
3455
  icon: CloseIcon,
3455
- title: "Supprimer ce choix",
3456
- "aria-label": "Supprimer ce choix",
3456
+ title: "Delete this choice",
3457
+ "aria-label": "Delete this choice",
3457
3458
  onClick: props.onRemove
3458
3459
  })
3459
3460
  ]
@@ -3479,7 +3480,7 @@ function Option(props) {
3479
3480
  mode: "bleed",
3480
3481
  padding: 1,
3481
3482
  fontSize: 0,
3482
- text: "Aucune",
3483
+ text: "None",
3483
3484
  onClick: () => {
3484
3485
  props.onColor?.(null), setPicking(!1);
3485
3486
  }
@@ -3506,7 +3507,7 @@ function NewOption(props) {
3506
3507
  type: "text",
3507
3508
  autoFocus: !0,
3508
3509
  value: label,
3509
- placeholder: "Nom du choix",
3510
+ placeholder: "Choice name",
3510
3511
  onChange: (event) => setLabel(event.currentTarget.value),
3511
3512
  onKeyDown: (event) => {
3512
3513
  event.key === "Enter" && submit(), event.key === "Escape" && (setLabel(""), setOpen(!1));
@@ -3536,7 +3537,7 @@ function NewOption(props) {
3536
3537
  padding: 2,
3537
3538
  fontSize: 1,
3538
3539
  icon: AddIcon,
3539
- text: "Ajouter un choix",
3540
+ text: "Add a choice",
3540
3541
  style: {
3541
3542
  width: "100%",
3542
3543
  justifyContent: "flex-start"
@@ -3566,21 +3567,21 @@ function ColumnHeader(props) {
3566
3567
  /* @__PURE__ */ jsx(Text, {
3567
3568
  size: 0,
3568
3569
  muted: !0,
3569
- children: "Supprimer ?"
3570
+ children: "Delete?"
3570
3571
  }),
3571
3572
  /* @__PURE__ */ jsx(Button, {
3572
3573
  mode: "bleed",
3573
3574
  tone: "critical",
3574
3575
  padding: 1,
3575
3576
  fontSize: 0,
3576
- text: "Oui",
3577
+ text: "Yes",
3577
3578
  onClick: () => onRemove(column.id)
3578
3579
  }),
3579
3580
  /* @__PURE__ */ jsx(Button, {
3580
3581
  mode: "bleed",
3581
3582
  padding: 1,
3582
3583
  fontSize: 0,
3583
- text: "Non",
3584
+ text: "No",
3584
3585
  onClick: () => setConfirming(!1)
3585
3586
  })
3586
3587
  ]
@@ -3602,7 +3603,7 @@ function ColumnHeader(props) {
3602
3603
  weight: "medium",
3603
3604
  muted: !0,
3604
3605
  textOverflow: "ellipsis",
3605
- title: "Cliquer pour renommer",
3606
+ title: "Click to rename",
3606
3607
  children: column.label || column.id
3607
3608
  })
3608
3609
  }), (hovered || managing) && /* @__PURE__ */ jsxs(Flex, {
@@ -3617,8 +3618,8 @@ function ColumnHeader(props) {
3617
3618
  padding: 1,
3618
3619
  fontSize: 0,
3619
3620
  icon: UlistIcon,
3620
- title: "Gérer les choix",
3621
- "aria-label": "Gérer les choix de la colonne",
3621
+ title: "Manage choices",
3622
+ "aria-label": "Manage column choices",
3622
3623
  onClick: toggle
3623
3624
  }),
3624
3625
  children: () => /* @__PURE__ */ jsx(OptionEditor, {
@@ -3631,8 +3632,8 @@ function ColumnHeader(props) {
3631
3632
  padding: 1,
3632
3633
  fontSize: 0,
3633
3634
  icon: ChevronLeftIcon,
3634
- title: "Déplacer à gauche",
3635
- "aria-label": "Déplacer la colonne à gauche",
3635
+ title: "Move left",
3636
+ "aria-label": "Move column left",
3636
3637
  onClick: () => onMove(column.id, -1)
3637
3638
  }),
3638
3639
  /* @__PURE__ */ jsx(Button, {
@@ -3640,8 +3641,8 @@ function ColumnHeader(props) {
3640
3641
  padding: 1,
3641
3642
  fontSize: 0,
3642
3643
  icon: ChevronRightIcon,
3643
- title: "Déplacer à droite",
3644
- "aria-label": "Déplacer la colonne à droite",
3644
+ title: "Move right",
3645
+ "aria-label": "Move column right",
3645
3646
  onClick: () => onMove(column.id, 1)
3646
3647
  }),
3647
3648
  /* @__PURE__ */ jsx(Button, {
@@ -3650,8 +3651,8 @@ function ColumnHeader(props) {
3650
3651
  fontSize: 0,
3651
3652
  icon: CloseIcon,
3652
3653
  tone: "critical",
3653
- title: "Supprimer la colonne",
3654
- "aria-label": "Supprimer la colonne",
3654
+ title: "Delete column",
3655
+ "aria-label": "Delete column",
3655
3656
  onClick: () => setConfirming(!0)
3656
3657
  })
3657
3658
  ]
@@ -3666,7 +3667,7 @@ function AddColumn(props) {
3666
3667
  padding: 1,
3667
3668
  fontSize: 0,
3668
3669
  icon: AddIcon,
3669
- text: "Colonne",
3670
+ text: "Column",
3670
3671
  onClick: () => setOpen(!0)
3671
3672
  });
3672
3673
  let submit = () => {
@@ -3688,7 +3689,7 @@ function AddColumn(props) {
3688
3689
  padding: 1,
3689
3690
  radius: 2,
3690
3691
  autoFocus: !0,
3691
- placeholder: "Nom de la colonne",
3692
+ placeholder: "Column name",
3692
3693
  value: label,
3693
3694
  onChange: (event) => setLabel(event.currentTarget.value),
3694
3695
  onKeyDown: (event) => {
@@ -3701,13 +3702,13 @@ function AddColumn(props) {
3701
3702
  mode: type === "text" ? "default" : "bleed",
3702
3703
  padding: 1,
3703
3704
  fontSize: 0,
3704
- text: "Texte",
3705
+ text: "Text",
3705
3706
  onClick: () => setType("text")
3706
3707
  }), /* @__PURE__ */ jsx(Button, {
3707
3708
  mode: type === "select" ? "default" : "bleed",
3708
3709
  padding: 1,
3709
3710
  fontSize: 0,
3710
- text: "Liste",
3711
+ text: "List",
3711
3712
  onClick: () => setType("select")
3712
3713
  })]
3713
3714
  }),
@@ -3718,13 +3719,13 @@ function AddColumn(props) {
3718
3719
  tone: "primary",
3719
3720
  padding: 1,
3720
3721
  fontSize: 0,
3721
- text: "Ajouter",
3722
+ text: "Add",
3722
3723
  onClick: submit
3723
3724
  }), /* @__PURE__ */ jsx(Button, {
3724
3725
  mode: "bleed",
3725
3726
  padding: 1,
3726
3727
  fontSize: 0,
3727
- text: "Annuler",
3728
+ text: "Cancel",
3728
3729
  onClick: () => setOpen(!1)
3729
3730
  })]
3730
3731
  })
@@ -3767,7 +3768,7 @@ function PathCell(props) {
3767
3768
  href: url,
3768
3769
  target: "_blank",
3769
3770
  rel: "noreferrer",
3770
- title: `Ouvrir ${url}`,
3771
+ title: `Open ${url}`,
3771
3772
  onClick: (event) => {
3772
3773
  guarded && (event.preventDefault(), open(environment, {
3773
3774
  path: pathnameOf(url),
@@ -3826,7 +3827,7 @@ function TagCell(props) {
3826
3827
  ...CELL,
3827
3828
  cursor: "pointer"
3828
3829
  },
3829
- title: "Changer l’étiquette",
3830
+ title: "Change tag",
3830
3831
  children: current ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Box, { style: {
3831
3832
  width: 6,
3832
3833
  height: 6,
@@ -3846,7 +3847,7 @@ function TagCell(props) {
3846
3847
  children: ({ close }) => /* @__PURE__ */ jsxs(Stack, {
3847
3848
  gap: 0,
3848
3849
  children: [/* @__PURE__ */ jsx(TagOption, {
3849
- label: "Sans étiquette",
3850
+ label: "No tag",
3850
3851
  selected: !current,
3851
3852
  onClick: () => {
3852
3853
  onChange(null), close();
@@ -3906,28 +3907,28 @@ function TagOption(props) {
3906
3907
  const BASE_COLUMNS = [
3907
3908
  {
3908
3909
  key: "title",
3909
- label: "Titre",
3910
+ label: "Title",
3910
3911
  width: "minmax(180px, 1.6fr)"
3911
3912
  },
3912
3913
  {
3913
3914
  key: "path",
3914
- label: "Chemin",
3915
+ label: "Path",
3915
3916
  width: "minmax(200px, 2fr)"
3916
3917
  },
3917
3918
  {
3918
3919
  key: "status",
3919
- label: "Statut",
3920
+ label: "Status",
3920
3921
  width: "118px"
3921
3922
  },
3922
3923
  {
3923
3924
  key: "blockCount",
3924
- label: "Blocs",
3925
+ label: "Blocks",
3925
3926
  align: "right",
3926
3927
  width: "64px"
3927
3928
  },
3928
3929
  {
3929
3930
  key: "updatedAt",
3930
- label: "Modifiée",
3931
+ label: "Updated",
3931
3932
  width: "132px"
3932
3933
  }
3933
3934
  ];
@@ -3975,7 +3976,7 @@ function PagesTable(props) {
3975
3976
  cursor: "pointer",
3976
3977
  userSelect: "none"
3977
3978
  },
3978
- title: `Trier par ${column.label.toLowerCase()}`,
3979
+ title: `Sort by ${column.label.toLowerCase()}`,
3979
3980
  children: [/* @__PURE__ */ jsx(Text, {
3980
3981
  size: 0,
3981
3982
  weight: "medium",
@@ -3998,7 +3999,7 @@ function PagesTable(props) {
3998
3999
  size: 0,
3999
4000
  weight: "medium",
4000
4001
  muted: !0,
4001
- children: "Étiquette"
4002
+ children: "Tag"
4002
4003
  }),
4003
4004
  columns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, {
4004
4005
  column,
@@ -4091,7 +4092,7 @@ function PagesTable(props) {
4091
4092
  cursor: "pointer"
4092
4093
  },
4093
4094
  onClick: () => onOpen(entryRow),
4094
- title: "Ouvrir dans Presentation",
4095
+ title: "Open in Presentation",
4095
4096
  children: /* @__PURE__ */ jsx(Text, {
4096
4097
  size: 1,
4097
4098
  weight: "medium",
@@ -4120,13 +4121,13 @@ function PagesTable(props) {
4120
4121
  !!todos?.get(entryRow.id) && /* @__PURE__ */ jsxs(Badge, {
4121
4122
  tone: "caution",
4122
4123
  fontSize: 0,
4123
- title: "Champs modifiés dans la version principale, pas encore traduits (marqués « À traduire » dans le formulaire)",
4124
- children: ["À traduire · ", todos?.get(entryRow.id)]
4124
+ title: "Fields changed in the main version, not yet translated (marked \"To translate\" in the form)",
4125
+ children: ["To translate · ", todos?.get(entryRow.id)]
4125
4126
  }),
4126
4127
  entryRow.noindex && /* @__PURE__ */ jsx(Badge, {
4127
4128
  tone: "caution",
4128
4129
  fontSize: 0,
4129
- title: "Exclue de Google, du sitemap et de llms.txt",
4130
+ title: "Excluded from Google, the sitemap and llms.txt",
4130
4131
  children: "Noindex"
4131
4132
  })
4132
4133
  ]
@@ -4205,7 +4206,7 @@ function PagesToolbar(props) {
4205
4206
  children: /* @__PURE__ */ jsx(TextInput, {
4206
4207
  value: props.search,
4207
4208
  onChange: (event) => props.onSearch(event.currentTarget.value),
4208
- placeholder: "Rechercher un titre ou un chemin",
4209
+ placeholder: "Search a title or a path",
4209
4210
  icon: SearchIcon,
4210
4211
  clearButton: props.search.length > 0,
4211
4212
  onClear: () => props.onSearch(""),
@@ -4220,8 +4221,8 @@ function PagesToolbar(props) {
4220
4221
  tone: "default",
4221
4222
  fontSize: 1,
4222
4223
  padding: 2,
4223
- title: "Rafraîchir",
4224
- "aria-label": "Rafraîchir",
4224
+ title: "Refresh",
4225
+ "aria-label": "Refresh",
4225
4226
  onClick: props.onRefresh,
4226
4227
  disabled: props.busy
4227
4228
  })
@@ -4232,24 +4233,24 @@ function PagesToolbar(props) {
4232
4233
  const HIDEABLE = [
4233
4234
  {
4234
4235
  key: "status",
4235
- label: "Statut"
4236
+ label: "Status"
4236
4237
  },
4237
4238
  {
4238
4239
  key: "blockCount",
4239
- label: "Blocs"
4240
+ label: "Blocks"
4240
4241
  },
4241
4242
  {
4242
4243
  key: "updatedAt",
4243
- label: "Modifiée"
4244
+ label: "Updated"
4244
4245
  },
4245
4246
  {
4246
4247
  key: "tag",
4247
- label: "Étiquette"
4248
+ label: "Tag"
4248
4249
  }
4249
4250
  ];
4250
4251
  /** Choix des colonnes affichées, sans quitter le tableau. */
4251
4252
  function ColumnVisibility(props) {
4252
- let { hidden, onToggle, dataColumns, shownData, onToggleData } = props, hiddenCount = HIDEABLE.filter((column) => hidden.has(column.key)).length, shownCount = dataColumns.filter((column) => shownData.has(column.key)).length, label = hiddenCount > 0 ? `Colonnes · ${hiddenCount} masquée${hiddenCount > 1 ? "s" : ""}` : shownCount > 0 ? `Colonnes · +${shownCount}` : "Colonnes";
4253
+ let { hidden, onToggle, dataColumns, shownData, onToggleData } = props, hiddenCount = HIDEABLE.filter((column) => hidden.has(column.key)).length, shownCount = dataColumns.filter((column) => shownData.has(column.key)).length, label = hiddenCount > 0 ? `Columns · ${hiddenCount} hidden` : shownCount > 0 ? `Columns · +${shownCount}` : "Columns";
4253
4254
  return /* @__PURE__ */ jsx(InlinePopover, {
4254
4255
  width: 264,
4255
4256
  trigger: ({ toggle }) => /* @__PURE__ */ jsx(Button, {
@@ -4327,7 +4328,7 @@ function DataColumnList(props) {
4327
4328
  size: 0,
4328
4329
  weight: "semibold",
4329
4330
  muted: !0,
4330
- children: "Données de la page"
4331
+ children: "Page data"
4331
4332
  })
4332
4333
  }),
4333
4334
  dataColumns.length > 8 && /* @__PURE__ */ jsx(Box, {
@@ -4336,7 +4337,7 @@ function DataColumnList(props) {
4336
4337
  children: /* @__PURE__ */ jsx("input", {
4337
4338
  type: "text",
4338
4339
  value: filter,
4339
- placeholder: "Filtrer…",
4340
+ placeholder: "Filter…",
4340
4341
  onChange: (event) => setFilter(event.currentTarget.value),
4341
4342
  style: {
4342
4343
  width: "100%",
@@ -4361,7 +4362,7 @@ function DataColumnList(props) {
4361
4362
  children: /* @__PURE__ */ jsx(Text, {
4362
4363
  size: 0,
4363
4364
  muted: !0,
4364
- children: "Aucun champ ne correspond."
4365
+ children: "No matching fields."
4365
4366
  })
4366
4367
  })
4367
4368
  ] })]
@@ -4421,7 +4422,7 @@ function PagePanel(props) {
4421
4422
  padding: 1,
4422
4423
  fontSize: 0,
4423
4424
  icon: CloseIcon,
4424
- "aria-label": "Fermer",
4425
+ "aria-label": "Close",
4425
4426
  onClick: onClose
4426
4427
  })]
4427
4428
  }),
@@ -4452,7 +4453,7 @@ function PagePanel(props) {
4452
4453
  size: 0,
4453
4454
  muted: !0,
4454
4455
  align: "center",
4455
- children: failed ? "Capture non générée" : "Pas de capture"
4456
+ children: failed ? "Screenshot not generated" : "No screenshot"
4456
4457
  })
4457
4458
  })
4458
4459
  }),
@@ -4487,9 +4488,9 @@ function PagePanel(props) {
4487
4488
  muted: !0,
4488
4489
  children: [
4489
4490
  incoming,
4490
- " lien(s) entrant(s) · ",
4491
+ " incoming link(s) · ",
4491
4492
  outgoing,
4492
- " sortant(s)"
4493
+ " outgoing"
4493
4494
  ]
4494
4495
  }),
4495
4496
  /* @__PURE__ */ jsxs(Stack, {
@@ -4498,14 +4499,14 @@ function PagePanel(props) {
4498
4499
  size: 0,
4499
4500
  weight: "semibold",
4500
4501
  muted: !0,
4501
- children: "Étiquette"
4502
+ children: "Tag"
4502
4503
  }), /* @__PURE__ */ jsxs(Select, {
4503
4504
  fontSize: 1,
4504
4505
  value: tag ?? "",
4505
4506
  onChange: (event) => onTag(row.id, event.currentTarget.value || null),
4506
4507
  children: [/* @__PURE__ */ jsx("option", {
4507
4508
  value: "",
4508
- children: "Sans étiquette"
4509
+ children: "No tag"
4509
4510
  }), tags.map((option) => /* @__PURE__ */ jsx("option", {
4510
4511
  value: option.id,
4511
4512
  children: option.label
@@ -4518,7 +4519,7 @@ function PagePanel(props) {
4518
4519
  size: 0,
4519
4520
  weight: "semibold",
4520
4521
  muted: !0,
4521
- children: "Gestion interne"
4522
+ children: "Internal management"
4522
4523
  }), columns.map((column) => /* @__PURE__ */ jsxs(Flex, {
4523
4524
  align: "center",
4524
4525
  gap: 2,
@@ -4556,8 +4557,8 @@ function PagePanel(props) {
4556
4557
  mode: "default",
4557
4558
  fontSize: 1,
4558
4559
  padding: 2,
4559
- text: "Ouvrir la page",
4560
- title: "Ouvre dans Presentation",
4560
+ text: "Open page",
4561
+ title: "Opens in Presentation",
4561
4562
  onClick: onOpen
4562
4563
  }),
4563
4564
  /* @__PURE__ */ jsx(IntentLink, {
@@ -4571,7 +4572,7 @@ function PagePanel(props) {
4571
4572
  mode: "ghost",
4572
4573
  fontSize: 1,
4573
4574
  padding: 2,
4574
- text: "Modifier",
4575
+ text: "Edit",
4575
4576
  as: "span"
4576
4577
  })
4577
4578
  }),
@@ -4590,7 +4591,7 @@ function PagePanel(props) {
4590
4591
  fontSize: 1,
4591
4592
  padding: 2,
4592
4593
  icon: LaunchIcon,
4593
- text: environments.length > 1 ? environment?.label ?? "Voir" : "Voir en ligne",
4594
+ text: environments.length > 1 ? environment?.label ?? "View" : "View live",
4594
4595
  title: siteUrl
4595
4596
  })
4596
4597
  ]
@@ -4814,7 +4815,7 @@ function TreeNode(props) {
4814
4815
  children: /* @__PURE__ */ jsx(Text, {
4815
4816
  size: 0,
4816
4817
  muted: !0,
4817
- children: thumbnailFailed ? "Capture non générée" : siteUrl ? "Survoler pour l’aperçu" : "Pas d’aperçu"
4818
+ children: thumbnailFailed ? "Screenshot not generated" : siteUrl ? "Hover to preview" : "No preview"
4818
4819
  })
4819
4820
  })]
4820
4821
  }), /* @__PURE__ */ jsx(Box, {
@@ -4851,7 +4852,7 @@ function TreeNode(props) {
4851
4852
  fontSize: Math.round(11 * textScale),
4852
4853
  lineHeight: 1.3
4853
4854
  },
4854
- children: tags.find((t) => t.id === tag)?.label ?? "Sans étiquette"
4855
+ children: tags.find((t) => t.id === tag)?.label ?? "No tag"
4855
4856
  }) : /* @__PURE__ */ jsxs(Flex, {
4856
4857
  gap: 2,
4857
4858
  align: "center",
@@ -4863,7 +4864,7 @@ function TreeNode(props) {
4863
4864
  onChange: (event) => onTag(props.id, event.currentTarget.value || null),
4864
4865
  children: [/* @__PURE__ */ jsx("option", {
4865
4866
  value: "",
4866
- children: "Sans étiquette"
4867
+ children: "No tag"
4867
4868
  }), tags.map((option) => /* @__PURE__ */ jsx("option", {
4868
4869
  value: option.id,
4869
4870
  children: option.label
@@ -4948,7 +4949,7 @@ function AnnotationNodeComponent(props) {
4948
4949
  opacity: annotation.text ? 1 : .5,
4949
4950
  overflow: "hidden"
4950
4951
  },
4951
- children: annotation.text || "Double-clic pour écrire"
4952
+ children: annotation.text || "Double-click to write"
4952
4953
  }), props.selected && /* @__PURE__ */ jsxs(Flex, {
4953
4954
  gap: 1,
4954
4955
  style: {
@@ -4973,8 +4974,8 @@ function AnnotationNodeComponent(props) {
4973
4974
  fontSize: 0,
4974
4975
  icon: TrashIcon,
4975
4976
  tone: "critical",
4976
- title: "Supprimer l’annotation",
4977
- "aria-label": "Supprimer l’annotation",
4977
+ title: "Delete annotation",
4978
+ "aria-label": "Delete annotation",
4978
4979
  onClick: () => onRemove(annotation.id)
4979
4980
  })]
4980
4981
  })]
@@ -5288,7 +5289,7 @@ function Board(props) {
5288
5289
  children: [/* @__PURE__ */ jsx(Spinner, { muted: !0 }), /* @__PURE__ */ jsx(Text, {
5289
5290
  size: 1,
5290
5291
  muted: !0,
5291
- children: "Analyse des liens entre les pages…"
5292
+ children: "Analyzing links between pages…"
5292
5293
  })]
5293
5294
  });
5294
5295
  let size = defaultNodeSize(mode, !!config.pageThumbnail), legend = colorBy === "tag" ? config.boardTags.map((tag) => ({
@@ -5330,7 +5331,7 @@ function Board(props) {
5330
5331
  onChange: (event) => setTagFilter(event.currentTarget.value),
5331
5332
  children: [/* @__PURE__ */ jsx("option", {
5332
5333
  value: "",
5333
- children: "Toutes les étiquettes"
5334
+ children: "All tags"
5334
5335
  }), config.boardTags.map((tag) => /* @__PURE__ */ jsx("option", {
5335
5336
  value: tag.id,
5336
5337
  children: tag.label
@@ -5350,7 +5351,7 @@ function Board(props) {
5350
5351
  }),
5351
5352
  /* @__PURE__ */ jsx(Button, {
5352
5353
  icon: AddIcon,
5353
- text: "Forme",
5354
+ text: "Shape",
5354
5355
  mode: "ghost",
5355
5356
  fontSize: 1,
5356
5357
  padding: 2,
@@ -5360,7 +5361,7 @@ function Board(props) {
5360
5361
  }))
5361
5362
  }),
5362
5363
  /* @__PURE__ */ jsx(Button, {
5363
- text: arranging ? "Réorganisation…" : "Réorganiser automatiquement",
5364
+ text: arranging ? "Arranging…" : "Auto arrange",
5364
5365
  mode: "ghost",
5365
5366
  fontSize: 1,
5366
5367
  padding: 2,
@@ -5374,8 +5375,8 @@ function Board(props) {
5374
5375
  visibleNodes.length,
5375
5376
  " pages · ",
5376
5377
  graph.edges.length,
5377
- " liens",
5378
- graph.orphans.length > 0 ? ` · ${graph.orphans.length} sans aucun lien` : ""
5378
+ " links",
5379
+ graph.orphans.length > 0 ? ` · ${graph.orphans.length} without any link` : ""
5379
5380
  ]
5380
5381
  })
5381
5382
  ]
@@ -5386,7 +5387,7 @@ function Board(props) {
5386
5387
  tone: "critical",
5387
5388
  children: /* @__PURE__ */ jsxs(Text, {
5388
5389
  size: 1,
5389
- children: ["La disposition n’a pas pu être enregistrée : ", saveError.message]
5390
+ children: ["The layout could not be saved: ", saveError.message]
5390
5391
  })
5391
5392
  }),
5392
5393
  graph.duplicatePaths.length > 0 && /* @__PURE__ */ jsx(Card, {
@@ -5396,9 +5397,9 @@ function Board(props) {
5396
5397
  children: /* @__PURE__ */ jsxs(Text, {
5397
5398
  size: 1,
5398
5399
  children: [
5399
- "Plusieurs pages partagent le même chemin (",
5400
+ "Several pages share the same path (",
5400
5401
  graph.duplicatePaths.join(", "),
5401
- "). Un lien vers ce chemin ne peut en désigner qu’une."
5402
+ "). A link to this path can only point to one of them."
5402
5403
  ]
5403
5404
  })
5404
5405
  }),
@@ -5496,7 +5497,7 @@ function Board(props) {
5496
5497
  }, item.key)), /* @__PURE__ */ jsxs(Text, {
5497
5498
  size: 0,
5498
5499
  muted: !0,
5499
- children: [legend.length === 0 ? "Couleur déduite de la valeur saisie · " : "· ", "clic pour la fiche, double-clic pour ouvrir la page"]
5500
+ children: [legend.length === 0 ? "Color derived from the entered value · " : "· ", "click for details, double-click to open the page"]
5500
5501
  })]
5501
5502
  })
5502
5503
  ]
@@ -5552,17 +5553,17 @@ function PagesTool() {
5552
5553
  let colorOptions = [
5553
5554
  {
5554
5555
  value: "tag",
5555
- label: "Étiquette"
5556
+ label: "Tag"
5556
5557
  },
5557
5558
  {
5558
5559
  value: "status",
5559
- label: "Statut"
5560
+ label: "Status"
5560
5561
  },
5561
5562
  ...columns.map((field) => ({
5562
5563
  value: `field:${field.id}`,
5563
5564
  label: field.label || field.id
5564
5565
  }))
5565
- ], summary = visible.length === rows.length ? `${rows.length} page${rows.length > 1 ? "s" : ""}` : `${visible.length} sur ${rows.length}`, loadingState = /* @__PURE__ */ jsxs(Flex, {
5566
+ ], summary = visible.length === rows.length ? `${rows.length} page${rows.length > 1 ? "s" : ""}` : `${visible.length} of ${rows.length}`, loadingState = /* @__PURE__ */ jsxs(Flex, {
5566
5567
  align: "center",
5567
5568
  justify: "center",
5568
5569
  padding: 6,
@@ -5570,7 +5571,7 @@ function PagesTool() {
5570
5571
  children: [/* @__PURE__ */ jsx(Spinner, { muted: !0 }), /* @__PURE__ */ jsx(Text, {
5571
5572
  size: 1,
5572
5573
  muted: !0,
5573
- children: "Chargement des pages…"
5574
+ children: "Loading pages…"
5574
5575
  })]
5575
5576
  });
5576
5577
  return /* @__PURE__ */ jsxs(Stack, {
@@ -5624,7 +5625,7 @@ function PagesTool() {
5624
5625
  width: 120,
5625
5626
  flex: "none"
5626
5627
  },
5627
- children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Langue" }), /* @__PURE__ */ jsxs(Select, {
5628
+ children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Language" }), /* @__PURE__ */ jsxs(Select, {
5628
5629
  fontSize: 1,
5629
5630
  radius: 2,
5630
5631
  value: locale,
@@ -5633,7 +5634,7 @@ function PagesTool() {
5633
5634
  },
5634
5635
  children: [/* @__PURE__ */ jsx("option", {
5635
5636
  value: "",
5636
- children: "Toutes"
5637
+ children: "All"
5637
5638
  }), locales.map((code) => /* @__PURE__ */ jsx("option", {
5638
5639
  value: code,
5639
5640
  children: code.toUpperCase()
@@ -5645,7 +5646,7 @@ function PagesTool() {
5645
5646
  width: 150,
5646
5647
  flex: "none"
5647
5648
  },
5648
- children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Traduction" }), /* @__PURE__ */ jsxs(Select, {
5649
+ children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Translation" }), /* @__PURE__ */ jsxs(Select, {
5649
5650
  fontSize: 1,
5650
5651
  radius: 2,
5651
5652
  value: onlyTodo ? "todo" : "",
@@ -5654,11 +5655,11 @@ function PagesTool() {
5654
5655
  },
5655
5656
  children: [/* @__PURE__ */ jsx("option", {
5656
5657
  value: "",
5657
- children: "Toutes"
5658
+ children: "All"
5658
5659
  }), /* @__PURE__ */ jsxs("option", {
5659
5660
  value: "todo",
5660
5661
  children: [
5661
- "À traduire (",
5662
+ "To translate (",
5662
5663
  todos.size,
5663
5664
  ")"
5664
5665
  ]
@@ -5670,7 +5671,7 @@ function PagesTool() {
5670
5671
  width: 168,
5671
5672
  flex: "none"
5672
5673
  },
5673
- children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Grouper par" }), /* @__PURE__ */ jsxs(Select, {
5674
+ children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Group by" }), /* @__PURE__ */ jsxs(Select, {
5674
5675
  fontSize: 1,
5675
5676
  radius: 2,
5676
5677
  value: groupBy,
@@ -5678,15 +5679,15 @@ function PagesTool() {
5678
5679
  children: [
5679
5680
  /* @__PURE__ */ jsx("option", {
5680
5681
  value: "none",
5681
- children: "Aucun"
5682
+ children: "None"
5682
5683
  }),
5683
5684
  /* @__PURE__ */ jsx("option", {
5684
5685
  value: "tag",
5685
- children: "Étiquette"
5686
+ children: "Tag"
5686
5687
  }),
5687
5688
  /* @__PURE__ */ jsx("option", {
5688
5689
  value: "status",
5689
- children: "Statut"
5690
+ children: "Status"
5690
5691
  }),
5691
5692
  /* @__PURE__ */ jsx("option", {
5692
5693
  value: "indexation",
@@ -5708,7 +5709,7 @@ function PagesTool() {
5708
5709
  width: 168,
5709
5710
  flex: "none"
5710
5711
  },
5711
- children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Colorer par" }), /* @__PURE__ */ jsx(Select, {
5712
+ children: [/* @__PURE__ */ jsx(FieldLabel, { children: "Color by" }), /* @__PURE__ */ jsx(Select, {
5712
5713
  fontSize: 1,
5713
5714
  radius: 2,
5714
5715
  value: colorBy,
@@ -5744,12 +5745,12 @@ function PagesTool() {
5744
5745
  size: 1,
5745
5746
  weight: "medium",
5746
5747
  align: "center",
5747
- children: rows.length === 0 ? "Aucune page dans ce dataset" : "Aucun résultat"
5748
+ children: rows.length === 0 ? "No pages in this dataset" : "No results"
5748
5749
  }), /* @__PURE__ */ jsx(Text, {
5749
5750
  size: 1,
5750
5751
  muted: !0,
5751
5752
  align: "center",
5752
- children: rows.length === 0 ? `Le kit suit les types ${config.pageTypeNames.join(", ")}.` : "Essaie un autre terme ou une autre langue, ou vide la recherche."
5753
+ children: rows.length === 0 ? `The kit tracks the types ${config.pageTypeNames.join(", ")}.` : "Try another term or another language, or clear the search."
5753
5754
  })]
5754
5755
  })
5755
5756
  }) : /* @__PURE__ */ jsx(PagesTable, {
@@ -5788,11 +5789,11 @@ function PagesTool() {
5788
5789
  }), pageCount > 1 && /* @__PURE__ */ jsxs(Flex, {
5789
5790
  gap: 2,
5790
5791
  children: [/* @__PURE__ */ jsx(PageStep, {
5791
- label: "Précédent",
5792
+ label: "Previous",
5792
5793
  disabled: current === 0,
5793
5794
  onClick: () => setPage(current - 1)
5794
5795
  }), /* @__PURE__ */ jsx(PageStep, {
5795
- label: "Suivant",
5796
+ label: "Next",
5796
5797
  disabled: current >= pageCount - 1,
5797
5798
  onClick: () => setPage(current + 1)
5798
5799
  })]
@@ -5936,7 +5937,7 @@ function useOccurrences() {
5936
5937
  map.set(id, {
5937
5938
  id,
5938
5939
  type: doc._type,
5939
- title: (typeof title == "string" ? title.trim() : "") || "Sans titre"
5940
+ title: (typeof title == "string" ? title.trim() : "") || "Untitled"
5940
5941
  });
5941
5942
  }
5942
5943
  return map;
@@ -6072,7 +6073,7 @@ function BlockCard(props) {
6072
6073
  padding: 0,
6073
6074
  as: onOpen ? "button" : void 0,
6074
6075
  onClick: onOpen,
6075
- title: onOpen ? "Voir le composant en vrai et régler ses valeurs par défaut" : void 0,
6076
+ title: onOpen ? "See the real component and set its default values" : void 0,
6076
6077
  style: {
6077
6078
  height: "100%",
6078
6079
  overflow: "hidden",
@@ -6109,7 +6110,7 @@ function BlockCard(props) {
6109
6110
  size: 0,
6110
6111
  muted: !0,
6111
6112
  align: "center",
6112
- children: failed ? "Capture introuvable" : "Pas de capture"
6113
+ children: failed ? "Screenshot not found" : "No screenshot"
6113
6114
  })
6114
6115
  })
6115
6116
  }), /* @__PURE__ */ jsx(Box, {
@@ -6142,7 +6143,7 @@ function BlockCard(props) {
6142
6143
  ...TABULAR,
6143
6144
  flex: "none"
6144
6145
  },
6145
- title: unused ? "Jamais utilisé" : `${occurrence.count} occurrences`,
6146
+ title: unused ? "Never used" : `${occurrence.count} occurrences`,
6146
6147
  children: occurrence.count
6147
6148
  })]
6148
6149
  })
@@ -6237,7 +6238,7 @@ function SectionNodeComponent(props) {
6237
6238
  size: 0,
6238
6239
  muted: !0,
6239
6240
  align: "center",
6240
- children: failed ? "Capture introuvable" : "Pas de capture"
6241
+ children: failed ? "Screenshot not found" : "No screenshot"
6241
6242
  })
6242
6243
  })
6243
6244
  }), /* @__PURE__ */ jsx(Box, {
@@ -6406,7 +6407,7 @@ function MapCanvas(props) {
6406
6407
  wrap: "wrap",
6407
6408
  children: [
6408
6409
  /* @__PURE__ */ jsx(Button, {
6409
- text: "Réorganiser automatiquement",
6410
+ text: "Auto arrange",
6410
6411
  mode: "ghost",
6411
6412
  fontSize: 1,
6412
6413
  padding: 2,
@@ -6425,7 +6426,7 @@ function MapCanvas(props) {
6425
6426
  }),
6426
6427
  /* @__PURE__ */ jsx(Button, {
6427
6428
  icon: AddIcon,
6428
- text: "Forme",
6429
+ text: "Shape",
6429
6430
  mode: "ghost",
6430
6431
  fontSize: 1,
6431
6432
  padding: 2,
@@ -6437,7 +6438,7 @@ function MapCanvas(props) {
6437
6438
  /* @__PURE__ */ jsx(Text, {
6438
6439
  size: 0,
6439
6440
  muted: !0,
6440
- children: "Glisser une tuile enregistre sa position · cliquer affiche ses pages"
6441
+ children: "Dragging a tile saves its position · clicking shows its pages"
6441
6442
  })
6442
6443
  ]
6443
6444
  }),
@@ -6447,7 +6448,7 @@ function MapCanvas(props) {
6447
6448
  tone: "critical",
6448
6449
  children: /* @__PURE__ */ jsxs(Text, {
6449
6450
  size: 1,
6450
- children: ["La disposition n’a pas pu être enregistrée : ", saveError.message]
6451
+ children: ["The layout could not be saved: ", saveError.message]
6451
6452
  })
6452
6453
  }),
6453
6454
  /* @__PURE__ */ jsxs(Flex, {
@@ -6519,22 +6520,22 @@ function MapCanvas(props) {
6519
6520
  padding: 1,
6520
6521
  fontSize: 0,
6521
6522
  icon: CloseIcon,
6522
- "aria-label": "Fermer",
6523
+ "aria-label": "Close",
6523
6524
  onClick: () => setSelected(null)
6524
6525
  })]
6525
6526
  }),
6526
6527
  /* @__PURE__ */ jsx(Text, {
6527
6528
  size: 0,
6528
6529
  muted: !0,
6529
- children: selectedEntry.occurrence.count === 0 ? "Jamais utilisé sur le site." : `${selectedPages.length} page${selectedPages.length > 1 ? "s" : ""} · ${selectedEntry.occurrence.count} instance${selectedEntry.occurrence.count > 1 ? "s" : ""}`
6530
+ children: selectedEntry.occurrence.count === 0 ? "Never used on the site." : `${selectedPages.length} page${selectedPages.length > 1 ? "s" : ""} · ${selectedEntry.occurrence.count} instance${selectedEntry.occurrence.count > 1 ? "s" : ""}`
6530
6531
  }),
6531
6532
  openComponent && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Button, {
6532
6533
  mode: "default",
6533
6534
  tone: "primary",
6534
6535
  fontSize: 1,
6535
6536
  padding: 2,
6536
- text: "Ouvrir le composant",
6537
- title: "Rendu réel et valeurs par défaut, côte à côte",
6537
+ text: "Open component",
6538
+ title: "Real rendering and default values, side by side",
6538
6539
  onClick: () => openComponent(selectedEntry.block.name)
6539
6540
  }) }),
6540
6541
  /* @__PURE__ */ jsx(Stack, {
@@ -6572,7 +6573,7 @@ function MapCanvas(props) {
6572
6573
  fontSize: 1,
6573
6574
  padding: 2,
6574
6575
  icon: LaunchIcon,
6575
- text: "Voir sur le design system"
6576
+ text: "View on the design system"
6576
6577
  }) })
6577
6578
  ]
6578
6579
  }) : /* @__PURE__ */ jsx(Flex, {
@@ -6583,7 +6584,7 @@ function MapCanvas(props) {
6583
6584
  size: 0,
6584
6585
  muted: !0,
6585
6586
  align: "center",
6586
- children: "Cliquer une section pour l’ouvrir (rendu réel et valeurs par défaut) ou aller à ses emplacements dans les pages."
6587
+ children: "Click a section to open it (real rendering and default values) or go to where it is used in the pages."
6587
6588
  })
6588
6589
  })
6589
6590
  })]
@@ -6597,19 +6598,19 @@ function SectionsMap(props) {
6597
6598
  const ORDERS = [
6598
6599
  {
6599
6600
  value: "type",
6600
- label: "Par type"
6601
+ label: "By type"
6601
6602
  },
6602
6603
  {
6603
6604
  value: "usage",
6604
- label: "Les plus utilisés"
6605
+ label: "Most used"
6605
6606
  },
6606
6607
  {
6607
6608
  value: "unused",
6608
- label: "Les inutilisés d’abord"
6609
+ label: "Unused first"
6609
6610
  },
6610
6611
  {
6611
6612
  value: "schema",
6612
- label: "Ordre du schéma"
6613
+ label: "Schema order"
6613
6614
  }
6614
6615
  ];
6615
6616
  function ComponentsTool() {
@@ -6635,7 +6636,7 @@ function ComponentsTool() {
6635
6636
  children: [/* @__PURE__ */ jsx(Spinner, { muted: !0 }), /* @__PURE__ */ jsx(Text, {
6636
6637
  size: 1,
6637
6638
  muted: !0,
6638
- children: "Analyse du page builder…"
6639
+ children: "Analyzing the page builder…"
6639
6640
  })]
6640
6641
  }) : blockTypes.length === 0 ? /* @__PURE__ */ jsx(Card, {
6641
6642
  padding: 4,
@@ -6646,16 +6647,16 @@ function ComponentsTool() {
6646
6647
  gap: 3,
6647
6648
  children: [/* @__PURE__ */ jsx(Text, {
6648
6649
  weight: "semibold",
6649
- children: "Aucun bloc trouvé."
6650
+ children: "No blocks found."
6650
6651
  }), /* @__PURE__ */ jsxs(Text, {
6651
6652
  size: 1,
6652
6653
  children: [
6653
- "Le champ « ",
6654
+ "The field \"",
6654
6655
  config.pageBuilderField,
6655
- " » n’existe sur aucun des types",
6656
+ "\" does not exist on any of the types",
6656
6657
  " ",
6657
6658
  config.pageTypeNames.join(", "),
6658
- ", ou il n’est pas un tableau. Vérifie `pageBuilderField` dans l’appel à ncfKit()."
6659
+ ", or it is not an array. Check `pageBuilderField` in the ncfKit() call."
6659
6660
  ]
6660
6661
  })]
6661
6662
  })
@@ -6665,7 +6666,7 @@ function ComponentsTool() {
6665
6666
  /* @__PURE__ */ jsxs(Flex, {
6666
6667
  gap: 2,
6667
6668
  children: [/* @__PURE__ */ jsx(Button, {
6668
- text: "Grille",
6669
+ text: "Grid",
6669
6670
  mode: view === "grid" ? "default" : "ghost",
6670
6671
  fontSize: 1,
6671
6672
  padding: 2,
@@ -6688,10 +6689,10 @@ function ComponentsTool() {
6688
6689
  muted: !0,
6689
6690
  children: [
6690
6691
  blockTypes.length,
6691
- " blocs · ",
6692
+ " blocks · ",
6692
6693
  scanned,
6693
- " pages analysées",
6694
- unusedCount > 0 ? ` · ${unusedCount} jamais utilisé${unusedCount > 1 ? "s" : ""}` : ""
6694
+ " pages analyzed",
6695
+ unusedCount > 0 ? ` · ${unusedCount} never used` : ""
6695
6696
  ]
6696
6697
  }), /* @__PURE__ */ jsxs(Flex, {
6697
6698
  gap: 2,
@@ -6703,7 +6704,7 @@ function ComponentsTool() {
6703
6704
  text: option.label,
6704
6705
  onClick: () => setOrder(option.value)
6705
6706
  }, option.value)), /* @__PURE__ */ jsx(Button, {
6706
- text: "Rafraîchir",
6707
+ text: "Refresh",
6707
6708
  mode: "ghost",
6708
6709
  fontSize: 1,
6709
6710
  padding: 2,
@@ -6719,9 +6720,9 @@ function ComponentsTool() {
6719
6720
  children: /* @__PURE__ */ jsxs(Text, {
6720
6721
  size: 1,
6721
6722
  children: [
6722
- "Analyse limitée aux ",
6723
+ "Analysis limited to the first ",
6723
6724
  1e3,
6724
- " premières pages : les chiffres ci-dessous sont un minimum, pas un total."
6725
+ " pages: the numbers below are a minimum, not a total."
6725
6726
  ]
6726
6727
  })
6727
6728
  }),
@@ -6733,7 +6734,7 @@ function ComponentsTool() {
6733
6734
  children: /* @__PURE__ */ jsx(Text, {
6734
6735
  size: 1,
6735
6736
  muted: !0,
6736
- children: "Vignettes désactivées : renseigne `previewUrl` dans ncfKit() pour afficher les captures du design system."
6737
+ children: "Thumbnails disabled: set `previewUrl` in ncfKit() to show the design system screenshots."
6737
6738
  })
6738
6739
  }),
6739
6740
  view === "map" ? /* @__PURE__ */ jsx(SectionsMap, {
@@ -6763,7 +6764,7 @@ function ComponentsTool() {
6763
6764
  /** Messages du service, rendus lisibles pour un éditeur. */
6764
6765
  function explain(error) {
6765
6766
  let code = error instanceof Error ? error.message : String(error);
6766
- return code === "bad_key" ? "La clé de lecture n'est pas reconnue : relancez `npx ncf-kit setup` dans le dossier du studio, puis redéployez-le." : code === "project_inactive" ? "Le journal n'est pas activé pour ce projet chez NoCode Factory : `npx ncf-kit setup` l'active, ou contactez NoCode Factory." : code === "missing_key" ? "Aucune clé de lecture configurée." : "Le journal n'a pas pu être chargé.";
6767
+ return code === "bad_key" ? "The read key is not recognized: run `npx ncf-kit setup` again in the studio folder, then redeploy it." : code === "project_inactive" ? "The log is not enabled for this project at NoCode Factory: `npx ncf-kit setup` enables it, or contact NoCode Factory." : code === "missing_key" ? "No read key configured." : "The log could not be loaded.";
6767
6768
  }
6768
6769
  /**
6769
6770
  * Frise du journal, la plus récente d'abord.
@@ -6775,7 +6776,7 @@ function useHistory(documentId) {
6775
6776
  let history = useKitConfig().history, [events, setEvents] = useState([]), [loading, setLoading] = useState(!1), [error, setError] = useState(null), [hasMore, setHasMore] = useState(!1), [before, setBefore] = useState(void 0), [nonce, setNonce] = useState(0);
6776
6777
  return useEffect(() => {
6777
6778
  if (!history) {
6778
- setError("Aucune clé de lecture configurée.");
6779
+ setError("No read key configured.");
6779
6780
  return;
6780
6781
  }
6781
6782
  let controller = new AbortController();
@@ -7081,7 +7082,7 @@ function Line(props) {
7081
7082
  * d'avoir à détenir un jeton Sanity par client.
7082
7083
  */
7083
7084
  function ActorName(props) {
7084
- let [user] = useUser(props.actorId ?? ""), label = props.actorName || user?.displayName || (props.actorId ? "Compte inconnu" : "—");
7085
+ let [user] = useUser(props.actorId ?? ""), label = props.actorName || user?.displayName || (props.actorId ? "Unknown account" : "—");
7085
7086
  return /* @__PURE__ */ jsx(Text, {
7086
7087
  size: 0,
7087
7088
  muted: !0,
@@ -7105,7 +7106,7 @@ function DiffPanel(props) {
7105
7106
  return setLoading(!0), setError(null), setRestored(null), setConflicts([]), fetchDetail(config.history.endpoint, config.history.projectKey, event.id, controller.signal).then((result) => {
7106
7107
  controller.signal.aborted || setDetail(result);
7107
7108
  }).catch(() => {
7108
- controller.signal.aborted || setError("Ce détail n'a pas pu être chargé.");
7109
+ controller.signal.aborted || setError("This detail could not be loaded.");
7109
7110
  }).finally(() => {
7110
7111
  controller.signal.aborted || setLoading(!1);
7111
7112
  }), () => controller.abort();
@@ -7164,7 +7165,7 @@ function DiffPanel(props) {
7164
7165
  children: [/* @__PURE__ */ jsxs(Text, {
7165
7166
  size: 0,
7166
7167
  muted: !0,
7167
- children: [new Date(event.occurred_at).toLocaleString("fr-FR"), " ·"]
7168
+ children: [new Date(event.occurred_at).toLocaleString("en-US"), " ·"]
7168
7169
  }), /* @__PURE__ */ jsx(ActorName, {
7169
7170
  actorId: event.actor_id,
7170
7171
  actorName: event.actor_name
@@ -7175,7 +7176,7 @@ function DiffPanel(props) {
7175
7176
  padding: 1,
7176
7177
  fontSize: 0,
7177
7178
  icon: CloseIcon,
7178
- "aria-label": "Fermer",
7179
+ "aria-label": "Close",
7179
7180
  onClick: onClose
7180
7181
  })]
7181
7182
  }),
@@ -7186,7 +7187,7 @@ function DiffPanel(props) {
7186
7187
  children: [/* @__PURE__ */ jsx(Spinner, { muted: !0 }), /* @__PURE__ */ jsx(Text, {
7187
7188
  size: 1,
7188
7189
  muted: !0,
7189
- children: "Chargement…"
7190
+ children: "Loading…"
7190
7191
  })]
7191
7192
  }),
7192
7193
  error && /* @__PURE__ */ jsx(Card, {
@@ -7208,17 +7209,17 @@ function DiffPanel(props) {
7208
7209
  /* @__PURE__ */ jsxs(Text, {
7209
7210
  size: 1,
7210
7211
  children: [
7211
- "Fait ",
7212
- /* @__PURE__ */ jsx("b", { children: "en brouillon" }),
7213
- ". Rien n'est encore en ligne : ouvrez le document, vérifiez, puis ",
7214
- /* @__PURE__ */ jsx("b", { children: "publiez" }),
7212
+ "Done ",
7213
+ /* @__PURE__ */ jsx("b", { children: "in the draft" }),
7214
+ ". Nothing is live yet: open the document, check it, then ",
7215
+ /* @__PURE__ */ jsx("b", { children: "publish" }),
7215
7216
  "."
7216
7217
  ]
7217
7218
  }),
7218
7219
  conflicts.length > 0 && /* @__PURE__ */ jsxs(Text, {
7219
7220
  size: 1,
7220
7221
  children: [
7221
- "Non annulé, car modifié depuis : ",
7222
+ "Not undone, because changed since: ",
7222
7223
  conflicts.join(", "),
7223
7224
  "."
7224
7225
  ]
@@ -7234,7 +7235,7 @@ function DiffPanel(props) {
7234
7235
  mode: "ghost",
7235
7236
  fontSize: 1,
7236
7237
  padding: 2,
7237
- text: "Ouvrir le brouillon",
7238
+ text: "Open draft",
7238
7239
  as: "span"
7239
7240
  })
7240
7241
  })
@@ -7245,12 +7246,12 @@ function DiffPanel(props) {
7245
7246
  !detail.previous && /* @__PURE__ */ jsx(Text, {
7246
7247
  size: 0,
7247
7248
  muted: !0,
7248
- children: "Premier état connu : tout apparaît comme ajouté."
7249
+ children: "First known state: everything shows as added."
7249
7250
  }),
7250
7251
  changes.length === 0 ? /* @__PURE__ */ jsx(Text, {
7251
7252
  size: 1,
7252
7253
  muted: !0,
7253
- children: "Aucune modification de contenu — seuls des champs système ont bougé."
7254
+ children: "No content changes, only system fields changed."
7254
7255
  }) : /* @__PURE__ */ jsxs(Stack, {
7255
7256
  gap: 2,
7256
7257
  children: [/* @__PURE__ */ jsxs(Text, {
@@ -7259,7 +7260,7 @@ function DiffPanel(props) {
7259
7260
  muted: !0,
7260
7261
  children: [
7261
7262
  changes.length,
7262
- " modification",
7263
+ " change",
7263
7264
  changes.length > 1 ? "s" : ""
7264
7265
  ]
7265
7266
  }), /* @__PURE__ */ jsx(Card, {
@@ -7287,13 +7288,13 @@ function DiffPanel(props) {
7287
7288
  fontSize: 1,
7288
7289
  padding: 3,
7289
7290
  icon: UndoIcon,
7290
- text: restoring ? "Annulation…" : "Annuler cette modification",
7291
+ text: restoring ? "Undoing…" : "Undo this change",
7291
7292
  disabled: restoring,
7292
7293
  onClick: undo
7293
7294
  }), /* @__PURE__ */ jsx(Text, {
7294
7295
  size: 0,
7295
7296
  muted: !0,
7296
- children: "Remet les valeurs d'avant cette modification, et seulement elles : ce qui a été modifié ensuite est conservé. Le résultat va dans le brouillon : publiez-le pour le mettre en ligne."
7297
+ children: "Restores the values from before this change, and only those: anything changed afterwards is kept. The result goes into the draft: publish it to put it live."
7297
7298
  })]
7298
7299
  }), /* @__PURE__ */ jsxs(Stack, {
7299
7300
  gap: 2,
@@ -7303,13 +7304,13 @@ function DiffPanel(props) {
7303
7304
  fontSize: 1,
7304
7305
  padding: 3,
7305
7306
  icon: RestoreIcon,
7306
- text: restoring ? "Restauration…" : "Restaurer le document tel qu’après cette modification",
7307
+ text: restoring ? "Restoring…" : "Restore the document as it was after this change",
7307
7308
  disabled: restoring,
7308
7309
  onClick: restore
7309
7310
  }), /* @__PURE__ */ jsx(Text, {
7310
7311
  size: 0,
7311
7312
  muted: !0,
7312
- children: "Remet le document ENTIER dans l'état qui a suivi cette modification (les modifications plus récentes sont perdues), dans le brouillon. La version en ligne n'est pas touchée tant que vous ne publiez pas."
7313
+ children: "Puts the ENTIRE document back in the state that followed this change (more recent changes are lost), in the draft. The published version is not touched until you publish."
7313
7314
  })]
7314
7315
  })]
7315
7316
  })
@@ -7322,27 +7323,27 @@ function DiffPanel(props) {
7322
7323
  /** Traduit l'échec d'une restauration en une phrase actionnable. */
7323
7324
  function explainRestore(cause) {
7324
7325
  let message = cause instanceof Error ? cause.message : String(cause);
7325
- return /permission|insufficient|not allowed/i.test(message) ? "Vos droits sur ce dataset ne permettent pas d'écrire ce document." : /schema|unknown type|invalid/i.test(message) ? "Cet état ne correspond plus au schéma actuel : le type a changé depuis. Restauration impossible sans intervention." : `La restauration a échoué, rien n'a été modifié. (${message.slice(0, 120)})`;
7326
+ return /permission|insufficient|not allowed/i.test(message) ? "Your permissions on this dataset do not allow writing this document." : /schema|unknown type|invalid/i.test(message) ? "This state no longer matches the current schema: the type has changed since. It cannot be restored without manual intervention." : `Restore failed, nothing was changed. (${message.slice(0, 120)})`;
7326
7327
  }
7327
7328
  const OPERATION = {
7328
7329
  create: {
7329
- label: "création",
7330
+ label: "created",
7330
7331
  tone: "positive"
7331
7332
  },
7332
7333
  update: {
7333
- label: "modification",
7334
+ label: "updated",
7334
7335
  tone: "primary"
7335
7336
  },
7336
7337
  delete: {
7337
- label: "suppression",
7338
+ label: "deleted",
7338
7339
  tone: "critical"
7339
7340
  }
7340
7341
  }, SCOPES = [{
7341
7342
  id: "all",
7342
- label: "Tout"
7343
+ label: "All"
7343
7344
  }, {
7344
7345
  id: "published",
7345
- label: "En ligne"
7346
+ label: "Published"
7346
7347
  }];
7347
7348
  /** Journal des modifications du dataset, alimenté par les webhooks Sanity. */
7348
7349
  function HistoryTool() {
@@ -7376,7 +7377,7 @@ function HistoryTool() {
7376
7377
  fontSize: 1,
7377
7378
  padding: 3,
7378
7379
  radius: 2,
7379
- placeholder: "Filtrer par document, type ou auteur…",
7380
+ placeholder: "Filter by document, type or author…",
7380
7381
  value: search,
7381
7382
  onChange: (event) => setSearch(event.currentTarget.value)
7382
7383
  })
@@ -7397,7 +7398,7 @@ function HistoryTool() {
7397
7398
  fontSize: 1,
7398
7399
  padding: 3,
7399
7400
  icon: RefreshIcon,
7400
- text: "Actualiser",
7401
+ text: "Refresh",
7401
7402
  onClick: refresh
7402
7403
  })
7403
7404
  ]
@@ -7418,7 +7419,7 @@ function HistoryTool() {
7418
7419
  children: [/* @__PURE__ */ jsx(Spinner, { muted: !0 }), /* @__PURE__ */ jsx(Text, {
7419
7420
  size: 1,
7420
7421
  muted: !0,
7421
- children: "Chargement du journal…"
7422
+ children: "Loading the log…"
7422
7423
  })]
7423
7424
  }),
7424
7425
  !loading && !error && events.length === 0 && /* @__PURE__ */ jsx(Card, {
@@ -7431,11 +7432,11 @@ function HistoryTool() {
7431
7432
  children: [/* @__PURE__ */ jsx(Text, {
7432
7433
  size: 1,
7433
7434
  weight: "semibold",
7434
- children: "Aucun changement enregistré"
7435
+ children: "No changes recorded"
7435
7436
  }), /* @__PURE__ */ jsx(Text, {
7436
7437
  size: 1,
7437
7438
  muted: !0,
7438
- children: "Le journal se remplit à partir du webhook Sanity de ce projet. S'il vient d'être posé, seules les modifications à venir y figureront : rien n'est reconstitué rétroactivement. Vérifiez aussi que le webhook vise bien le dataset de ce Studio."
7439
+ children: "The log is filled by this project's Sanity webhook. If it was just set up, only upcoming changes will appear: nothing is rebuilt retroactively. Also check that the webhook targets this Studio's dataset."
7439
7440
  })]
7440
7441
  })
7441
7442
  }),
@@ -7478,7 +7479,7 @@ function HistoryTool() {
7478
7479
  tone: event.is_draft ? "caution" : "positive",
7479
7480
  fontSize: 0,
7480
7481
  padding: 1,
7481
- children: event.is_draft ? "brouillon" : "en ligne"
7482
+ children: event.is_draft ? "draft" : "published"
7482
7483
  })
7483
7484
  }),
7484
7485
  /* @__PURE__ */ jsx(Box, {
@@ -7509,7 +7510,7 @@ function HistoryTool() {
7509
7510
  children: /* @__PURE__ */ jsx(Text, {
7510
7511
  size: 0,
7511
7512
  muted: !0,
7512
- children: new Date(event.occurred_at).toLocaleString("fr-FR", {
7513
+ children: new Date(event.occurred_at).toLocaleString("en-US", {
7513
7514
  day: "2-digit",
7514
7515
  month: "2-digit",
7515
7516
  hour: "2-digit",
@@ -7527,7 +7528,7 @@ function HistoryTool() {
7527
7528
  mode: "ghost",
7528
7529
  fontSize: 1,
7529
7530
  padding: 3,
7530
- text: loading ? "Chargement…" : "Charger plus",
7531
+ text: loading ? "Loading…" : "Load more",
7531
7532
  disabled: loading,
7532
7533
  onClick: loadMore
7533
7534
  })
@@ -7535,7 +7536,7 @@ function HistoryTool() {
7535
7536
  search && visible.length === 0 && events.length > 0 && /* @__PURE__ */ jsx(Text, {
7536
7537
  size: 1,
7537
7538
  muted: !0,
7538
- children: "Aucun événement ne correspond. Le filtre ne porte que sur les événements déjà chargés."
7539
+ children: "No matching events. The filter only applies to events already loaded."
7539
7540
  })
7540
7541
  ]
7541
7542
  }), selected && /* @__PURE__ */ jsx(DiffPanel, {
@@ -7554,14 +7555,14 @@ function HistoryTool() {
7554
7555
  /* @__PURE__ */ jsx(Text, {
7555
7556
  size: 1,
7556
7557
  weight: "semibold",
7557
- children: "Historique non configuré"
7558
+ children: "History not configured"
7558
7559
  }),
7559
7560
  /* @__PURE__ */ jsxs(Text, {
7560
7561
  size: 1,
7561
7562
  children: [
7562
- "Aucune clé de lecture. Dans le dossier du studio, la commande suivante active le projet, écrit la clé dans ",
7563
+ "No read key. In the studio folder, the following command enables the project, writes the key to ",
7563
7564
  /* @__PURE__ */ jsx("code", { children: ".env" }),
7564
- " et crée le webhook du journal :"
7565
+ " and creates the log webhook:"
7565
7566
  ]
7566
7567
  }),
7567
7568
  /* @__PURE__ */ jsx(Text, {
@@ -7573,14 +7574,14 @@ function HistoryTool() {
7573
7574
  size: 0,
7574
7575
  muted: !0,
7575
7576
  children: [
7576
- "Puis ",
7577
+ "Then add ",
7577
7578
  /* @__PURE__ */ jsxs("code", { children: [
7578
7579
  "history: ",
7579
7580
  "{",
7580
7581
  "projectKey: process.env.SANITY_STUDIO_NCF_PROJECT_KEY",
7581
7582
  "}"
7582
7583
  ] }),
7583
- " dans sanity.config.ts et redéployez le studio. Ou masquez cet onglet avec",
7584
+ " to sanity.config.ts and redeploy the studio. Or hide this tab with",
7584
7585
  " ",
7585
7586
  /* @__PURE__ */ jsxs("code", { children: [
7586
7587
  "tools: ",
@@ -7636,10 +7637,10 @@ function DesignSystemTool() {
7636
7637
  /* @__PURE__ */ jsx(Text, {
7637
7638
  size: 1,
7638
7639
  muted: !0,
7639
- children: available ? `Ouverture de la page ${config.componentPreview.path} dans Presentation, avec les valeurs par défaut des composants. Un style changé ici change le composant partout où il n’est pas surchargé.` : "Ni document de valeurs par défaut des composants, ni previewUrl : rien à ouvrir. Voir la checklist du kit (README)."
7640
+ children: available ? `Opens the ${config.componentPreview.path} page in Presentation, with the component default values. A style changed here changes the component everywhere it is not overridden.` : "No component default values document and no previewUrl: nothing to open. See the kit checklist (README)."
7640
7641
  }),
7641
7642
  available && /* @__PURE__ */ jsx(Flex, { children: /* @__PURE__ */ jsx(Button, {
7642
- text: "Ouvrir le design system",
7643
+ text: "Open design system",
7643
7644
  tone: "primary",
7644
7645
  fontSize: 1,
7645
7646
  onClick: open
@@ -7756,20 +7757,20 @@ function sameValue(a, b) {
7756
7757
  }
7757
7758
  /** Valeur par défaut lisible, pour la bulle de la pastille. */
7758
7759
  function describeValue(value) {
7759
- if (isEmptyValue(value)) return "vide (valeur du design system)";
7760
- if (typeof value == "string") return value.length > 60 ? `« ${value.slice(0, 57)}… »` : `« ${value} »`;
7761
- if (typeof value == "boolean") return value ? "Oui" : "Non";
7760
+ if (isEmptyValue(value)) return "empty (design system value)";
7761
+ if (typeof value == "string") return value.length > 60 ? `"${value.slice(0, 57)}…"` : `"${value}"`;
7762
+ if (typeof value == "boolean") return value ? "Yes" : "No";
7762
7763
  if (typeof value == "number") return String(value);
7763
- if (Array.isArray(value)) return `${value.length} élément${value.length > 1 ? "s" : ""}`;
7764
+ if (Array.isArray(value)) return `${value.length} item${value.length > 1 ? "s" : ""}`;
7764
7765
  if (value && typeof value == "object") {
7765
7766
  let v = value;
7766
- if (typeof v.token == "string") return `couleur ${v.token}`;
7767
- if (typeof v.customHex == "string") return `couleur ${v.customHex}`;
7768
- if (typeof v.label == "string") return `« ${v.label} »`;
7769
- if (v.asset) return "une image";
7770
- if (typeof v._ref == "string") return "un document";
7767
+ if (typeof v.token == "string") return `color ${v.token}`;
7768
+ if (typeof v.customHex == "string") return `color ${v.customHex}`;
7769
+ if (typeof v.label == "string") return `"${v.label}"`;
7770
+ if (v.asset) return "an image";
7771
+ if (typeof v._ref == "string") return "a document";
7771
7772
  }
7772
- return "une valeur";
7773
+ return "a value";
7773
7774
  }
7774
7775
  /**
7775
7776
  * Ce que fait « Réinitialiser » : remettre le champ en HÉRITAGE (le vider en
@@ -7833,7 +7834,7 @@ function createOverrideInput(config) {
7833
7834
  children: /* @__PURE__ */ jsxs(Text, {
7834
7835
  size: 0,
7835
7836
  muted: !0,
7836
- children: ["Valeur par défaut du composant : ", describeValue(inherited)]
7837
+ children: ["Component default value: ", describeValue(inherited)]
7837
7838
  })
7838
7839
  })]
7839
7840
  }), override && !inputProps.readOnly && /* @__PURE__ */ jsx(OverrideDot, {
@@ -7856,7 +7857,7 @@ function carriesDot(schemaType) {
7856
7857
  return !1;
7857
7858
  }
7858
7859
  function OverrideDot(props) {
7859
- let [hover, setHover] = useState(!1), label = props.hasDefault ? `↺ ${props.short}` : "Pas de valeur par défaut";
7860
+ let [hover, setHover] = useState(!1), label = props.hasDefault ? `↺ ${props.short}` : "No default value";
7860
7861
  return /* @__PURE__ */ jsx(Tooltip, {
7861
7862
  portal: !0,
7862
7863
  placement: "left",
@@ -7865,7 +7866,7 @@ function OverrideDot(props) {
7865
7866
  style: { maxWidth: 280 },
7866
7867
  children: /* @__PURE__ */ jsx(Text, {
7867
7868
  size: 1,
7868
- children: props.hasDefault ? `Différent de la valeur par défaut du composant (${props.full}). Cliquer pour revenir à la valeur par défaut : le champ la suivra, même si elle change.` : "Ce composant n'a pas de valeur par défaut pour ce champ. Cliquer pour la définir (Composants : valeurs par défaut)."
7869
+ children: props.hasDefault ? `Different from the component default value (${props.full}). Click to go back to the default value: the field will follow it, even if it changes.` : "This component has no default value for this field. Click to set it (Components: default values)."
7869
7870
  })
7870
7871
  }),
7871
7872
  children: /* @__PURE__ */ jsx("button", {
@@ -7875,7 +7876,7 @@ function OverrideDot(props) {
7875
7876
  onMouseLeave: () => setHover(!1),
7876
7877
  onFocus: () => setHover(!0),
7877
7878
  onBlur: () => setHover(!1),
7878
- "aria-label": props.hasDefault ? `Revenir à la valeur par défaut du composant : ${props.full}` : "Définir la valeur par défaut du composant",
7879
+ "aria-label": props.hasDefault ? `Go back to the component default value: ${props.full}` : "Set the component default value",
7879
7880
  style: {
7880
7881
  marginTop: 9,
7881
7882
  flex: "none",
@@ -7931,14 +7932,14 @@ const RemoveFromSiteAction = (props) => {
7931
7932
  }), tx.delete(props.id), await tx.commit(), setOpen(!1), props.onComplete();
7932
7933
  } catch (cause) {
7933
7934
  let message = cause instanceof Error ? cause.message : String(cause);
7934
- setError(/referenc/i.test(message) ? "Sanity refuse : un document publié pointe vers cette page par une référence forte. Retirez ou modifiez ce lien, puis recommencez." : `Le retrait a échoué, rien n'a changé. (${message.slice(0, 140)})`);
7935
+ setError(/referenc/i.test(message) ? "Sanity refused: a published document points to this page with a strong reference. Remove or change that link, then try again." : `Removal failed, nothing was changed. (${message.slice(0, 140)})`);
7935
7936
  } finally {
7936
7937
  setBusy(!1);
7937
7938
  }
7938
7939
  };
7939
7940
  return {
7940
- label: "Retirer du site",
7941
- title: "Dépublier : la page quitte le site, son contenu reste en brouillon",
7941
+ label: "Remove from site",
7942
+ title: "Unpublish: the page leaves the site, its content stays in the draft",
7942
7943
  icon: EyeClosedIcon,
7943
7944
  tone: "critical",
7944
7945
  disabled: busy,
@@ -7955,16 +7956,16 @@ const RemoveFromSiteAction = (props) => {
7955
7956
  children: [
7956
7957
  /* @__PURE__ */ jsx(Text, {
7957
7958
  size: 1,
7958
- children: "La page quitte le site (production et préproduction « En ligne »). Tout son contenu reste dans le brouillon : pour la remettre en ligne, publiez-le."
7959
+ children: "The page leaves the site (production and staging \"Published\"). All its content stays in the draft: to put it back online, publish it."
7959
7960
  }),
7960
7961
  referrers === null ? /* @__PURE__ */ jsx(Text, {
7961
7962
  size: 1,
7962
7963
  muted: !0,
7963
- children: "Recherche des liens vers cette page…"
7964
+ children: "Looking for links to this page…"
7964
7965
  }) : referrers.length > 0 ? /* @__PURE__ */ jsxs(Text, {
7965
7966
  size: 1,
7966
7967
  children: [
7967
- "Ces documents publiés pointent vers elle ; leurs liens vers cette page disparaîtront du site :",
7968
+ "These published documents point to it; their links to this page will disappear from the site:",
7968
7969
  " ",
7969
7970
  referrers.map((r) => r.title || r._id).join(", "),
7970
7971
  "."
@@ -7972,7 +7973,7 @@ const RemoveFromSiteAction = (props) => {
7972
7973
  }) : /* @__PURE__ */ jsx(Text, {
7973
7974
  size: 1,
7974
7975
  muted: !0,
7975
- children: "Aucun document publié ne pointe vers cette page."
7976
+ children: "No published document points to this page."
7976
7977
  }),
7977
7978
  error && /* @__PURE__ */ jsx(Text, {
7978
7979
  size: 1,
@@ -8028,7 +8029,7 @@ function createSlugUrlInput(config) {
8028
8029
  mode: "ghost",
8029
8030
  fontSize: 1,
8030
8031
  padding: 2,
8031
- text: copied ? "Copié" : "Copier",
8032
+ text: copied ? "Copied" : "Copy",
8032
8033
  onClick: copy
8033
8034
  }),
8034
8035
  /* @__PURE__ */ jsx(Button, {
@@ -8039,7 +8040,7 @@ function createSlugUrlInput(config) {
8039
8040
  mode: "ghost",
8040
8041
  fontSize: 1,
8041
8042
  padding: 2,
8042
- text: "Ouvrir"
8043
+ text: "Open"
8043
8044
  })
8044
8045
  ]
8045
8046
  })
@@ -8115,15 +8116,15 @@ function withTranslationTodo(Inner, config) {
8115
8116
  size: 1,
8116
8117
  style: { flex: 1 },
8117
8118
  children: [
8118
- "À traduire : modifié dans la version ",
8119
+ "To translate: changed in the ",
8119
8120
  (todo?.sourceLanguage ?? "").toUpperCase(),
8120
- "."
8121
+ " version."
8121
8122
  ]
8122
8123
  }), /* @__PURE__ */ jsx(Button, {
8123
8124
  mode: "ghost",
8124
8125
  fontSize: 1,
8125
8126
  padding: 2,
8126
- text: "Marquer comme traduit",
8127
+ text: "Mark as translated",
8127
8128
  disabled: busy,
8128
8129
  onClick: done
8129
8130
  })]
@@ -8161,6 +8162,105 @@ function withPublishedHint(Inner) {
8161
8162
  }
8162
8163
  return PublishedHint;
8163
8164
  }
8165
+ /**
8166
+ * Langue de la page affichée dans l'aperçu, d'après son adresse : premier segment
8167
+ * s'il est une langue autre que la principale (/en/...), sinon la langue principale.
8168
+ */
8169
+ function localeOfPreview(preview, i18n) {
8170
+ if (!i18n || !preview) return null;
8171
+ let pathname;
8172
+ try {
8173
+ pathname = new URL(preview, "http://preview.local").pathname;
8174
+ } catch {
8175
+ return null;
8176
+ }
8177
+ let first = pathname.split("/").filter(Boolean)[0];
8178
+ return first && first !== i18n.defaultLocale && i18n.locales.includes(first) ? first : i18n.defaultLocale;
8179
+ }
8180
+ /**
8181
+ * Presentation : le panneau d'édition DOIT montrer la langue de l'aperçu. Si le
8182
+ * document édité n'est pas dans la langue de la page affichée (ex. aperçu EN, panneau
8183
+ * FR), un bandeau le dit en haut du formulaire, avec un bouton qui ouvre la bonne
8184
+ * version. Évite de modifier le français en croyant modifier l'anglais.
8185
+ * Structure stable : le formulaire garde sa place, que le bandeau soit là ou non.
8186
+ */
8187
+ function withLanguageMismatch(Inner, config) {
8188
+ let i18n = config.i18n;
8189
+ function LanguageMismatch(props) {
8190
+ let inner = createElement(Inner, props);
8191
+ return !i18n || props.path.length > 0 ? inner : /* @__PURE__ */ jsxs(Stack, {
8192
+ gap: 4,
8193
+ children: [/* @__PURE__ */ jsx(MismatchCheck, {}), inner]
8194
+ });
8195
+ }
8196
+ function MismatchCheck() {
8197
+ let params = usePresentationParams(!1), language = useFormValue([i18n?.field ?? "language"]), shown = localeOfPreview(params?.preview, i18n);
8198
+ return !params || !language || !shown || language === shown ? null : /* @__PURE__ */ jsx(MismatchBanner, {
8199
+ editing: language,
8200
+ shown
8201
+ });
8202
+ }
8203
+ function MismatchBanner(props) {
8204
+ let { editing, shown } = props, navigate = usePresentationNavigate(), client = useKitClient(), id = useFormValue(["_id"])?.replace(/^drafts\./, ""), type = useFormValue(["_type"]), [target, setTarget] = useState(void 0);
8205
+ return useEffect(() => {
8206
+ if (!id) return;
8207
+ let alive = !0;
8208
+ return client.fetch("*[_type == \"translation.metadata\" && references($id)][0].translations[_key == $lang || language == $lang][0].value._ref", {
8209
+ id,
8210
+ lang: shown
8211
+ }).then((ref) => alive && setTarget(ref ?? null)).catch(() => alive && setTarget(null)), () => {
8212
+ alive = !1;
8213
+ };
8214
+ }, [
8215
+ client,
8216
+ id,
8217
+ shown
8218
+ ]), /* @__PURE__ */ jsx(Card, {
8219
+ tone: "caution",
8220
+ padding: 3,
8221
+ radius: 2,
8222
+ border: !0,
8223
+ children: /* @__PURE__ */ jsxs(Flex, {
8224
+ align: "center",
8225
+ gap: 3,
8226
+ wrap: "wrap",
8227
+ children: [/* @__PURE__ */ jsxs(Text, {
8228
+ size: 1,
8229
+ weight: "semibold",
8230
+ style: {
8231
+ flex: 1,
8232
+ minWidth: 200
8233
+ },
8234
+ children: [
8235
+ "You are editing the ",
8236
+ editing.toUpperCase(),
8237
+ " version. The preview shows ",
8238
+ shown.toUpperCase(),
8239
+ "."
8240
+ ]
8241
+ }), target && type ? /* @__PURE__ */ jsx(Button, {
8242
+ tone: "caution",
8243
+ fontSize: 1,
8244
+ padding: 2,
8245
+ text: `Edit the ${shown.toUpperCase()} version`,
8246
+ onClick: () => navigate(void 0, {
8247
+ type,
8248
+ id: target
8249
+ })
8250
+ }) : target === null ? /* @__PURE__ */ jsxs(Text, {
8251
+ size: 1,
8252
+ muted: !0,
8253
+ children: [
8254
+ "No ",
8255
+ shown.toUpperCase(),
8256
+ " version of this document yet."
8257
+ ]
8258
+ }) : null]
8259
+ })
8260
+ });
8261
+ }
8262
+ return LanguageMismatch;
8263
+ }
8164
8264
  const VALUE_TYPE_NAMES = /* @__PURE__ */ new Set([
8165
8265
  "image",
8166
8266
  "file",
@@ -8299,7 +8399,7 @@ function withPropagation(Publish, config) {
8299
8399
  },
8300
8400
  dialog: run ? {
8301
8401
  type: "dialog",
8302
- header: "Propager aux autres langues ?",
8402
+ header: "Propagate to other languages?",
8303
8403
  width: "medium",
8304
8404
  onClose: () => {
8305
8405
  setRun(null), props.onComplete();
@@ -8363,12 +8463,12 @@ function PropagateDialog(props) {
8363
8463
  }
8364
8464
  toast.push({
8365
8465
  status: "success",
8366
- title: `Brouillons mis à jour : ${applied.join(", ")}`,
8367
- description: "Traduisez les champs marqués « À traduire », puis publiez chaque langue.",
8466
+ title: `Drafts updated: ${applied.join(", ")}`,
8467
+ description: "Translate the fields marked \"To translate\", then publish each language.",
8368
8468
  duration: 8e3
8369
8469
  }), onDone();
8370
8470
  } catch (cause) {
8371
- setError(`La propagation a échoué, rien n'a été publié. (${(cause instanceof Error ? cause.message : String(cause)).slice(0, 140)})`);
8471
+ setError(`Propagation failed, nothing was published. (${(cause instanceof Error ? cause.message : String(cause)).slice(0, 140)})`);
8372
8472
  } finally {
8373
8473
  setBusy(!1);
8374
8474
  }
@@ -8380,9 +8480,9 @@ function PropagateDialog(props) {
8380
8480
  /* @__PURE__ */ jsxs(Text, {
8381
8481
  size: 1,
8382
8482
  children: [
8383
- "La version ",
8483
+ "The ",
8384
8484
  source.toUpperCase(),
8385
- " est publiée. Appliquer ses changements aux brouillons des autres langues ? Les textes traduits ne sont jamais écrasés : les textes modifiés sont marqués « À traduire ». Rien n’est publié."
8485
+ " version is published. Apply its changes to the drafts of the other languages? Translated texts are never overwritten: changed texts are marked \"To translate\". Nothing is published."
8386
8486
  ]
8387
8487
  }),
8388
8488
  /* @__PURE__ */ jsx(Stack, {
@@ -8432,12 +8532,12 @@ function PropagateDialog(props) {
8432
8532
  justify: "flex-end",
8433
8533
  gap: 2,
8434
8534
  children: [/* @__PURE__ */ jsx(Button, {
8435
- text: "Ignorer",
8535
+ text: "Skip",
8436
8536
  mode: "ghost",
8437
8537
  onClick: onDone,
8438
8538
  disabled: busy
8439
8539
  }), /* @__PURE__ */ jsx(Button, {
8440
- text: busy ? "Propagation…" : "Propager",
8540
+ text: busy ? "Propagating…" : "Propagate",
8441
8541
  tone: "primary",
8442
8542
  onClick: () => void apply(),
8443
8543
  disabled: busy || !targets.some((t) => t.selected)
@@ -8447,9 +8547,9 @@ function PropagateDialog(props) {
8447
8547
  });
8448
8548
  }
8449
8549
  function summary(r) {
8450
- if (!hasChanges(r)) return "Déjà à jour.";
8550
+ if (!hasChanges(r)) return "Already up to date.";
8451
8551
  let parts = [];
8452
- return r.added && parts.push(`${r.added} élément${r.added > 1 ? "s" : ""} ajouté${r.added > 1 ? "s" : ""}`), r.removed && parts.push(`${r.removed} supprimé${r.removed > 1 ? "s" : ""}`), r.moved && parts.push("ordre mis à jour"), r.copied.length && parts.push(`${r.copied.length} valeur${r.copied.length > 1 ? "s" : ""} recopiée${r.copied.length > 1 ? "s" : ""} (images, liens, options…)`), r.toTranslate.length && parts.push(`${r.toTranslate.length} texte${r.toTranslate.length > 1 ? "s" : ""} à traduire`), parts.join(" · ");
8552
+ return r.added && parts.push(`${r.added} item${r.added > 1 ? "s" : ""} added`), r.removed && parts.push(`${r.removed} removed`), r.moved && parts.push("order updated"), r.copied.length && parts.push(`${r.copied.length} value${r.copied.length > 1 ? "s" : ""} copied (images, links, options…)`), r.toTranslate.length && parts.push(`${r.toTranslate.length} text${r.toTranslate.length > 1 ? "s" : ""} to translate`), parts.join(" · ");
8453
8553
  }
8454
8554
  /**
8455
8555
  * `pageTypes` déduits du registre du starter, pour ne pas redire au kit ce que
@@ -8539,7 +8639,7 @@ function withMoreTool(tools, names = DEFAULT_MORE_TOOLS) {
8539
8639
  if (hidden.length === 0) return tools;
8540
8640
  let more = {
8541
8641
  name: NCF_MORE_TOOL,
8542
- title: "Plus",
8642
+ title: "More",
8543
8643
  icon: EllipsisHorizontalIcon,
8544
8644
  component: MoreToolComponent,
8545
8645
  options: { tools: hidden }
@@ -8583,7 +8683,7 @@ function NcfPreviewHeader(props) {
8583
8683
  children: [/* @__PURE__ */ jsx(Text, {
8584
8684
  size: 0,
8585
8685
  muted: !0,
8586
- children: "Données"
8686
+ children: "Data"
8587
8687
  }), /* @__PURE__ */ jsx(Flex, {
8588
8688
  gap: 1,
8589
8689
  children: PERSPECTIVES.map((option) => {
@@ -8686,7 +8786,7 @@ function createKitInput(config) {
8686
8786
  function KitInput(props) {
8687
8787
  return isSlugInput(props) ? createElement(SlugUrl, props) : createElement(Override, props);
8688
8788
  }
8689
- return withPublishedHint(config.i18n ? withTranslationTodo(KitInput, config) : KitInput);
8789
+ return withPublishedHint(config.i18n ? withLanguageMismatch(withTranslationTodo(KitInput, config), config) : KitInput);
8690
8790
  }
8691
8791
  const ncfKit = definePlugin((options) => {
8692
8792
  let config = resolveConfig(options), issues = validateConfig(config);
@@ -8712,11 +8812,11 @@ const ncfKit = definePlugin((options) => {
8712
8812
  name: "components",
8713
8813
  tool: {
8714
8814
  name: NCF_COMPONENTS_TOOL,
8715
- title: "Composants",
8815
+ title: "Components",
8716
8816
  icon: ComponentIcon,
8717
8817
  component: createToolComponent({
8718
8818
  name: "components",
8719
- title: "Composants",
8819
+ title: "Components",
8720
8820
  config,
8721
8821
  issues,
8722
8822
  Component: ComponentsTool
@@ -8727,11 +8827,11 @@ const ncfKit = definePlugin((options) => {
8727
8827
  name: "history",
8728
8828
  tool: {
8729
8829
  name: NCF_HISTORY_TOOL,
8730
- title: "Historique",
8830
+ title: "History",
8731
8831
  icon: ClockIcon,
8732
8832
  component: createToolComponent({
8733
8833
  name: "history",
8734
- title: "Historique",
8834
+ title: "History",
8735
8835
  config,
8736
8836
  issues,
8737
8837
  Component: HistoryTool