@nocode-factory/sanity-kit 2.25.0 → 2.27.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 (78) 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 +11 -3
  4. package/dist/index.js +605 -406
  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 +52 -21
  13. package/src/actions/RemoveFromSite.tsx +9 -9
  14. package/src/config/defaults.ts +8 -8
  15. package/src/config/resolve.ts +4 -1
  16. package/src/config/types.ts +8 -0
  17. package/src/config/validate.ts +24 -24
  18. package/src/context/BoardLayoutContext.tsx +1 -1
  19. package/src/context/KitContext.tsx +1 -1
  20. package/src/context/PreviewTargetContext.tsx +1 -1
  21. package/src/form/OverrideInput.tsx +67 -6
  22. package/src/form/SlugUrlInput.tsx +2 -2
  23. package/src/form/TranslationTodoInput.tsx +38 -4
  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/hooks/useTranslationTodo.ts +2 -1
  28. package/src/index.ts +9 -5
  29. package/src/lib/aiTexts.ts +72 -0
  30. package/src/lib/aiTranslate.ts +61 -0
  31. package/src/lib/grouping.ts +2 -2
  32. package/src/lib/overrides.ts +10 -10
  33. package/src/lib/pages.ts +3 -3
  34. package/src/lib/service.ts +5 -5
  35. package/src/lib/status.ts +3 -3
  36. package/src/lib/studioLinks.ts +6 -6
  37. package/src/schema/boardLayout.ts +32 -32
  38. package/src/schema/componentDefaults.ts +5 -5
  39. package/src/schema/translationTodo.ts +6 -6
  40. package/src/tools/components/BlockCard.tsx +3 -3
  41. package/src/tools/components/ComponentsTool.tsx +17 -17
  42. package/src/tools/components/map/SectionNode.tsx +1 -1
  43. package/src/tools/components/map/SectionsMap.tsx +10 -10
  44. package/src/tools/designSystem/DesignSystemTool.tsx +3 -3
  45. package/src/tools/history/DiffPanel.tsx +23 -23
  46. package/src/tools/history/HistoryTool.tsx +21 -23
  47. package/src/tools/more/MoreTool.tsx +1 -1
  48. package/src/tools/navbar/KitUpdate.tsx +8 -8
  49. package/src/tools/navbar/PreviewLauncher.tsx +6 -6
  50. package/src/tools/navbar/ToolButtons.tsx +2 -2
  51. package/src/tools/pages/ColumnHeader.tsx +18 -18
  52. package/src/tools/pages/ColumnVisibility.tsx +10 -10
  53. package/src/tools/pages/FieldValue.tsx +9 -9
  54. package/src/tools/pages/PagesTable.tsx +11 -11
  55. package/src/tools/pages/PagesTool.tsx +19 -19
  56. package/src/tools/pages/PagesToolbar.tsx +3 -3
  57. package/src/tools/pages/PathCell.tsx +1 -1
  58. package/src/tools/pages/PreviewTarget.tsx +10 -10
  59. package/src/tools/pages/SharePreview.tsx +19 -20
  60. package/src/tools/pages/TagCell.tsx +2 -2
  61. package/src/tools/pages/ViewTabs.tsx +4 -4
  62. package/src/tools/pages/board/BoardView.tsx +11 -11
  63. package/src/tools/pages/board/PageNode.tsx +5 -5
  64. package/src/tools/pages/board/PagePanel.tsx +10 -10
  65. package/src/tools/presentation/PreviewHeader.tsx +1 -1
  66. package/src/tools/shared/AnnotationNode.tsx +3 -3
  67. package/src/ui/ActorName.tsx +1 -1
  68. package/src/ui/ConfigIssues.tsx +3 -3
  69. package/src/ui/PreviewOriginsNotice.tsx +3 -3
  70. package/src/ui/ProjectStatusNotice.tsx +7 -7
  71. package/src/ui/QueryError.tsx +2 -2
  72. package/src/ui/ToolPlaceholder.tsx +2 -2
  73. package/src/ui/formatDate.ts +1 -1
  74. package/src/version.ts +1 -1
  75. package/src/web/PreviewBanner.tsx +9 -9
  76. package/src/web/draftModeToggle.ts +1 -1
  77. package/src/web/previewGrant.ts +5 -5
  78. package/dist/componentDefaults-BY3hQ6aD.js.map +0 -1
@@ -8,10 +8,10 @@ import type {ResolvedDocumentColumn} from '../../config/types'
8
8
 
9
9
  /** Colonnes qu'on peut masquer. Titre et chemin restent toujours visibles. */
10
10
  export const HIDEABLE = [
11
- {key: 'status', label: 'Statut'},
12
- {key: 'blockCount', label: 'Blocs'},
13
- {key: 'updatedAt', label: 'Modifiée'},
14
- {key: 'tag', label: 'Étiquette'},
11
+ {key: 'status', label: 'Status'},
12
+ {key: 'blockCount', label: 'Blocks'},
13
+ {key: 'updatedAt', label: 'Updated'},
14
+ {key: 'tag', label: 'Tag'},
15
15
  ] as const
16
16
 
17
17
  export type HideableKey = (typeof HIDEABLE)[number]['key']
@@ -33,10 +33,10 @@ export function ColumnVisibility(props: ColumnVisibilityProps) {
33
33
  const shownCount = dataColumns.filter((column) => shownData.has(column.key)).length
34
34
  const label =
35
35
  hiddenCount > 0
36
- ? `Colonnes · ${hiddenCount} masquée${hiddenCount > 1 ? 's' : ''}`
36
+ ? `Columns · ${hiddenCount} hidden`
37
37
  : shownCount > 0
38
- ? `Colonnes · +${shownCount}`
39
- : 'Colonnes'
38
+ ? `Columns · +${shownCount}`
39
+ : 'Columns'
40
40
 
41
41
  return (
42
42
  <InlinePopover
@@ -124,7 +124,7 @@ function DataColumnList(props: ColumnVisibilityProps) {
124
124
  <>
125
125
  <Box paddingX={2} paddingTop={3} paddingBottom={1}>
126
126
  <Text size={0} weight="semibold" muted>
127
- Données de la page
127
+ Page data
128
128
  </Text>
129
129
  </Box>
130
130
 
@@ -133,7 +133,7 @@ function DataColumnList(props: ColumnVisibilityProps) {
133
133
  <input
134
134
  type="text"
135
135
  value={filter}
136
- placeholder="Filtrer…"
136
+ placeholder="Filter…"
137
137
  onChange={(event) => setFilter(event.currentTarget.value)}
138
138
  style={{
139
139
  width: '100%',
@@ -162,7 +162,7 @@ function DataColumnList(props: ColumnVisibilityProps) {
162
162
  {matches.length === 0 && (
163
163
  <Box padding={2}>
164
164
  <Text size={0} muted>
165
- Aucun champ ne correspond.
165
+ No matching fields.
166
166
  </Text>
167
167
  </Box>
168
168
  )}
@@ -54,7 +54,7 @@ export function FieldValue(props: FieldValueProps) {
54
54
  border: bordered ? `1px solid ${BORDER}` : undefined,
55
55
  background: bordered ? 'var(--card-bg-color)' : undefined,
56
56
  }}
57
- title={`Changer ${(column.label || column.id).toLowerCase()}`}
57
+ title={`Change ${(column.label || column.id).toLowerCase()}`}
58
58
  >
59
59
  {current ? (
60
60
  <>
@@ -108,7 +108,7 @@ export function OptionEditor(props: OptionEditorProps) {
108
108
  <Stack gap={1}>
109
109
  {onSelect && (
110
110
  <Option
111
- label="Aucune valeur"
111
+ label="No value"
112
112
  selected={!options.some((option) => option.id === selectedId)}
113
113
  onSelect={() => onSelect('')}
114
114
  />
@@ -117,7 +117,7 @@ export function OptionEditor(props: OptionEditorProps) {
117
117
  {options.length === 0 && !onSelect && (
118
118
  <Box padding={2}>
119
119
  <Text size={0} muted>
120
- Aucun choix pour l'instant.
120
+ No choices yet.
121
121
  </Text>
122
122
  </Box>
123
123
  )}
@@ -185,7 +185,7 @@ function Option(props: {
185
185
  >
186
186
  <Box
187
187
  onClick={() => props.onColor && setPicking((value) => !value)}
188
- title={props.onColor ? 'Couleur' : undefined}
188
+ title={props.onColor ? 'Color' : undefined}
189
189
  style={{
190
190
  width: 10,
191
191
  height: 10,
@@ -213,8 +213,8 @@ function Option(props: {
213
213
  padding={1}
214
214
  fontSize={0}
215
215
  icon={CloseIcon}
216
- title="Supprimer ce choix"
217
- aria-label="Supprimer ce choix"
216
+ title="Delete this choice"
217
+ aria-label="Delete this choice"
218
218
  onClick={props.onRemove}
219
219
  />
220
220
  )}
@@ -243,7 +243,7 @@ function Option(props: {
243
243
  mode="bleed"
244
244
  padding={1}
245
245
  fontSize={0}
246
- text="Aucune"
246
+ text="None"
247
247
  onClick={() => {
248
248
  props.onColor?.(null)
249
249
  setPicking(false)
@@ -279,7 +279,7 @@ function NewOption(props: {onAdd: (label: string) => void}) {
279
279
  padding={2}
280
280
  fontSize={1}
281
281
  icon={AddIcon}
282
- text="Ajouter un choix"
282
+ text="Add a choice"
283
283
  style={{width: '100%', justifyContent: 'flex-start'}}
284
284
  onClick={() => setOpen(true)}
285
285
  />
@@ -292,7 +292,7 @@ function NewOption(props: {onAdd: (label: string) => void}) {
292
292
  type="text"
293
293
  autoFocus
294
294
  value={label}
295
- placeholder="Nom du choix"
295
+ placeholder="Choice name"
296
296
  onChange={(event) => setLabel(event.currentTarget.value)}
297
297
  onKeyDown={(event) => {
298
298
  if (event.key === 'Enter') submit()
@@ -18,11 +18,11 @@ import {PathCell} from './PathCell'
18
18
  import {TagCell} from './TagCell'
19
19
 
20
20
  const BASE_COLUMNS: {key: SortKey; label: string; align?: 'right'; width: string}[] = [
21
- {key: 'title', label: 'Titre', width: 'minmax(180px, 1.6fr)'},
22
- {key: 'path', label: 'Chemin', width: 'minmax(200px, 2fr)'},
23
- {key: 'status', label: 'Statut', width: '118px'},
24
- {key: 'blockCount', label: 'Blocs', align: 'right', width: '64px'},
25
- {key: 'updatedAt', label: 'Modifiée', width: '132px'},
21
+ {key: 'title', label: 'Title', width: 'minmax(180px, 1.6fr)'},
22
+ {key: 'path', label: 'Path', width: 'minmax(200px, 2fr)'},
23
+ {key: 'status', label: 'Status', width: '118px'},
24
+ {key: 'blockCount', label: 'Blocks', align: 'right', width: '64px'},
25
+ {key: 'updatedAt', label: 'Updated', width: '132px'},
26
26
  ]
27
27
 
28
28
  export interface PagesTableProps {
@@ -170,7 +170,7 @@ export function PagesTable(props: PagesTableProps) {
170
170
  justify={column.align === 'right' ? 'flex-end' : 'flex-start'}
171
171
  onClick={() => onSort(column.key)}
172
172
  style={{cursor: 'pointer', userSelect: 'none'}}
173
- title={`Trier par ${column.label.toLowerCase()}`}
173
+ title={`Sort by ${column.label.toLowerCase()}`}
174
174
  >
175
175
  <Text size={0} weight="medium" muted={!active}>
176
176
  {column.label}
@@ -188,7 +188,7 @@ export function PagesTable(props: PagesTableProps) {
188
188
 
189
189
  {showTag && (
190
190
  <Text size={0} weight="medium" muted>
191
- Étiquette
191
+ Tag
192
192
  </Text>
193
193
  )}
194
194
 
@@ -297,7 +297,7 @@ export function PagesTable(props: PagesTableProps) {
297
297
  <Box
298
298
  style={{...CELL, cursor: 'pointer'}}
299
299
  onClick={() => onOpen(entryRow)}
300
- title="Ouvrir dans Presentation"
300
+ title="Open in Presentation"
301
301
  >
302
302
  <Text size={1} weight="medium" textOverflow="ellipsis">
303
303
  {entryRow.title}
@@ -324,9 +324,9 @@ export function PagesTable(props: PagesTableProps) {
324
324
  <Badge
325
325
  tone="caution"
326
326
  fontSize={0}
327
- title="Champs modifiés dans la version principale, pas encore traduits (marqués « À traduire » dans le formulaire)"
327
+ title="Fields changed in the main version, not yet translated (marked &quot;To translate&quot; in the form)"
328
328
  >
329
- À traduire · {todos?.get(entryRow.id)}
329
+ To translate · {todos?.get(entryRow.id)}
330
330
  </Badge>
331
331
  )}
332
332
  {/* L'indexation ne se signale que lorsqu'elle bloque :
@@ -335,7 +335,7 @@ export function PagesTable(props: PagesTableProps) {
335
335
  <Badge
336
336
  tone="caution"
337
337
  fontSize={0}
338
- title="Exclue de Google, du sitemap et de llms.txt"
338
+ title="Excluded from Google, the sitemap and llms.txt"
339
339
  >
340
340
  Noindex
341
341
  </Badge>
@@ -143,8 +143,8 @@ export function PagesTool() {
143
143
  if (error) return <QueryError error={error} onRetry={refresh} />
144
144
 
145
145
  const colorOptions = [
146
- {value: 'tag' as ColorBy, label: 'Étiquette'},
147
- {value: 'status' as ColorBy, label: 'Statut'},
146
+ {value: 'tag' as ColorBy, label: 'Tag'},
147
+ {value: 'status' as ColorBy, label: 'Status'},
148
148
  ...columns.map((field) => ({
149
149
  value: `field:${field.id}` as ColorBy,
150
150
  label: field.label || field.id,
@@ -154,13 +154,13 @@ export function PagesTool() {
154
154
  const summary =
155
155
  visible.length === rows.length
156
156
  ? `${rows.length} page${rows.length > 1 ? 's' : ''}`
157
- : `${visible.length} sur ${rows.length}`
157
+ : `${visible.length} of ${rows.length}`
158
158
 
159
159
  const loadingState = (
160
160
  <Flex align="center" justify="center" padding={6} gap={3}>
161
161
  <Spinner muted />
162
162
  <Text size={1} muted>
163
- Chargement des pages…
163
+ Loading pages…
164
164
  </Text>
165
165
  </Flex>
166
166
  )
@@ -200,7 +200,7 @@ export function PagesTool() {
200
200
 
201
201
  {locales.length > 1 && (
202
202
  <Box style={{width: 120, flex: 'none'}}>
203
- <FieldLabel>Langue</FieldLabel>
203
+ <FieldLabel>Language</FieldLabel>
204
204
  <Select
205
205
  fontSize={1}
206
206
  radius={2}
@@ -210,7 +210,7 @@ export function PagesTool() {
210
210
  setPage(0)
211
211
  }}
212
212
  >
213
- <option value="">Toutes</option>
213
+ <option value="">All</option>
214
214
  {locales.map((code) => (
215
215
  <option key={code} value={code}>
216
216
  {code.toUpperCase()}
@@ -222,7 +222,7 @@ export function PagesTool() {
222
222
 
223
223
  {(todos.size > 0 || onlyTodo) && (
224
224
  <Box style={{width: 150, flex: 'none'}}>
225
- <FieldLabel>Traduction</FieldLabel>
225
+ <FieldLabel>Translation</FieldLabel>
226
226
  <Select
227
227
  fontSize={1}
228
228
  radius={2}
@@ -232,24 +232,24 @@ export function PagesTool() {
232
232
  setPage(0)
233
233
  }}
234
234
  >
235
- <option value="">Toutes</option>
236
- <option value="todo">À traduire ({todos.size})</option>
235
+ <option value="">All</option>
236
+ <option value="todo">To translate ({todos.size})</option>
237
237
  </Select>
238
238
  </Box>
239
239
  )}
240
240
 
241
241
  {view === 'list' && (
242
242
  <Box style={{width: 168, flex: 'none'}}>
243
- <FieldLabel>Grouper par</FieldLabel>
243
+ <FieldLabel>Group by</FieldLabel>
244
244
  <Select
245
245
  fontSize={1}
246
246
  radius={2}
247
247
  value={groupBy}
248
248
  onChange={(event) => setGroupBy(event.currentTarget.value as GroupBy)}
249
249
  >
250
- <option value="none">Aucun</option>
251
- <option value="tag">Étiquette</option>
252
- <option value="status">Statut</option>
250
+ <option value="none">None</option>
251
+ <option value="tag">Tag</option>
252
+ <option value="status">Status</option>
253
253
  <option value="indexation">Indexation</option>
254
254
  <option value="type">Type</option>
255
255
  {columns.map((field) => (
@@ -262,7 +262,7 @@ export function PagesTool() {
262
262
  )}
263
263
 
264
264
  <Box style={{width: 168, flex: 'none'}}>
265
- <FieldLabel>Colorer par</FieldLabel>
265
+ <FieldLabel>Color by</FieldLabel>
266
266
  <Select
267
267
  fontSize={1}
268
268
  radius={2}
@@ -310,12 +310,12 @@ export function PagesTool() {
310
310
  <Box padding={6}>
311
311
  <Stack gap={3}>
312
312
  <Text size={1} weight="medium" align="center">
313
- {rows.length === 0 ? 'Aucune page dans ce dataset' : 'Aucun résultat'}
313
+ {rows.length === 0 ? 'No pages in this dataset' : 'No results'}
314
314
  </Text>
315
315
  <Text size={1} muted align="center">
316
316
  {rows.length === 0
317
- ? `Le kit suit les types ${config.pageTypeNames.join(', ')}.`
318
- : 'Essaie un autre terme ou une autre langue, ou vide la recherche.'}
317
+ ? `The kit tracks the types ${config.pageTypeNames.join(', ')}.`
318
+ : 'Try another term or another language, or clear the search.'}
319
319
  </Text>
320
320
  </Stack>
321
321
  </Box>
@@ -357,9 +357,9 @@ export function PagesTool() {
357
357
 
358
358
  {pageCount > 1 && (
359
359
  <Flex gap={2}>
360
- <PageStep label="Précédent" disabled={current === 0} onClick={() => setPage(current - 1)} />
360
+ <PageStep label="Previous" disabled={current === 0} onClick={() => setPage(current - 1)} />
361
361
  <PageStep
362
- label="Suivant"
362
+ label="Next"
363
363
  disabled={current >= pageCount - 1}
364
364
  onClick={() => setPage(current + 1)}
365
365
  />
@@ -26,7 +26,7 @@ export function PagesToolbar(props: PagesToolbarProps) {
26
26
  <TextInput
27
27
  value={props.search}
28
28
  onChange={(event) => props.onSearch(event.currentTarget.value)}
29
- placeholder="Rechercher un titre ou un chemin"
29
+ placeholder="Search a title or a path"
30
30
  icon={SearchIcon}
31
31
  clearButton={props.search.length > 0}
32
32
  onClear={() => props.onSearch('')}
@@ -42,8 +42,8 @@ export function PagesToolbar(props: PagesToolbarProps) {
42
42
  tone="default"
43
43
  fontSize={1}
44
44
  padding={2}
45
- title="Rafraîchir"
46
- aria-label="Rafraîchir"
45
+ title="Refresh"
46
+ aria-label="Refresh"
47
47
  onClick={props.onRefresh}
48
48
  disabled={props.busy}
49
49
  />
@@ -56,7 +56,7 @@ export function PathCell(props: {
56
56
  href={url}
57
57
  target="_blank"
58
58
  rel="noreferrer"
59
- title={`Ouvrir ${url}`}
59
+ title={`Open ${url}`}
60
60
  onClick={(event) => {
61
61
  if (!guarded) return
62
62
  event.preventDefault()
@@ -47,7 +47,7 @@ export function PreviewTarget(props: PreviewTargetProps) {
47
47
 
48
48
  return (
49
49
  <Box style={{flex: 'none'}}>
50
- <FieldLabel>Aperçu</FieldLabel>
50
+ <FieldLabel>Preview</FieldLabel>
51
51
  <Flex gap={1} align="center">
52
52
  {PERSPECTIVES.map((option) => {
53
53
  const active = option.id === perspective
@@ -61,7 +61,7 @@ export function PreviewTarget(props: PreviewTargetProps) {
61
61
  fontSize={1}
62
62
  padding={2}
63
63
  text={option.label}
64
- title={unavailable ? "La production ne montre que le contenu en ligne : les brouillons se relisent sur la préprod." : option.hint}
64
+ title={unavailable ? 'Production only shows published content: review drafts on staging.' : option.hint}
65
65
  aria-pressed={active}
66
66
  onClick={() => onPerspective(option.id)}
67
67
  />
@@ -76,8 +76,8 @@ export function PreviewTarget(props: PreviewTargetProps) {
76
76
  fontSize={1}
77
77
  padding={2}
78
78
  icon={EarthGlobeIcon}
79
- text={current?.label ?? 'Environnement'}
80
- title="Version du site chargée dans l'aperçu"
79
+ text={current?.label ?? 'Environment'}
80
+ title="Site version loaded in the preview"
81
81
  onClick={toggle}
82
82
  />
83
83
  )}
@@ -86,7 +86,7 @@ export function PreviewTarget(props: PreviewTargetProps) {
86
86
  <Stack gap={1}>
87
87
  <Box paddingX={2} paddingTop={2} paddingBottom={1}>
88
88
  <Text size={0} muted>
89
- Version du site. Les données ne changent pas.
89
+ Site version. The data does not change.
90
90
  </Text>
91
91
  </Box>
92
92
 
@@ -154,7 +154,7 @@ function EnvironmentRow(props: {
154
154
  <Text size={0} muted textOverflow="ellipsis">
155
155
  {/* Le site public se signale : on n'y prévisualise rien, et un lien
156
156
  de partage vers lui ne montrerait rien. */}
157
- {props.isProduction ? 'site public — pas de préversion' : hostOf(props.environment.url)}
157
+ {props.isProduction ? 'public site (no preview)' : hostOf(props.environment.url)}
158
158
  </Text>
159
159
  </Stack>
160
160
  {/* Seule l'adresse collée s'oublie : les environnements déclarés
@@ -165,8 +165,8 @@ function EnvironmentRow(props: {
165
165
  padding={1}
166
166
  fontSize={0}
167
167
  icon={CloseIcon}
168
- title="Oublier cette adresse"
169
- aria-label="Oublier cette adresse"
168
+ title="Forget this address"
169
+ aria-label="Forget this address"
170
170
  onClick={props.onForget}
171
171
  />
172
172
  )}
@@ -196,7 +196,7 @@ function CustomUrlField(props: {current: string | null; onSubmit: (url: string)
196
196
  <input
197
197
  type="text"
198
198
  value={value}
199
- placeholder={props.current ? 'Autre adresse…' : 'Coller une URL de préversion…'}
199
+ placeholder={props.current ? 'Other address…' : 'Paste a preview URL…'}
200
200
  onChange={(event) => {
201
201
  setValue(event.currentTarget.value)
202
202
  setRejected(false)
@@ -219,7 +219,7 @@ function CustomUrlField(props: {current: string | null; onSubmit: (url: string)
219
219
  />
220
220
  {rejected && (
221
221
  <Text size={0} style={{color: 'var(--card-badge-critical-dot-color, #e03131)'}}>
222
- Adresse inexploitable.
222
+ Unusable address.
223
223
  </Text>
224
224
  )}
225
225
  </Stack>
@@ -11,9 +11,9 @@ import {BORDER, MONO} from '../../ui/tokens'
11
11
 
12
12
  /** Durées proposées. Au-delà d'un mois, un lien oublié traîne trop longtemps. */
13
13
  const DURATIONS = [
14
- {days: 1, label: '1 jour'},
15
- {days: 7, label: '7 jours'},
16
- {days: 30, label: '30 jours'},
14
+ {days: 1, label: '1 day'},
15
+ {days: 7, label: '7 days'},
16
+ {days: 30, label: '30 days'},
17
17
  ]
18
18
 
19
19
  /**
@@ -90,8 +90,8 @@ export function SharePreview() {
90
90
  fontSize={1}
91
91
  padding={2}
92
92
  icon={ShareIcon}
93
- text="Partager la préversion"
94
- title="Créer un lien que n'importe qui peut ouvrir, sans compte"
93
+ text="Share preview"
94
+ title="Create a link anyone can open, without an account"
95
95
  onClick={toggle}
96
96
  />
97
97
  )}
@@ -104,24 +104,23 @@ export function SharePreview() {
104
104
  {isProduction ? (
105
105
  <Stack gap={3}>
106
106
  <Text size={1} weight="semibold">
107
- Rien à partager sur le site public
107
+ Nothing to share on the public site
108
108
  </Text>
109
109
  <Text size={0} muted>
110
- La production n'affiche jamais les brouillons — c'est ce qui protège votre
111
- contenu non publié. Un lien vers elle ne montrerait rien de plus qu'une
112
- visite ordinaire.
110
+ Production never shows drafts: that is what protects your unpublished
111
+ content. A link to it would show nothing more than an ordinary visit.
113
112
  </Text>
114
113
  <Text size={0} muted>
115
- Choisissez d'abord une <b>préversion</b> dans le sélecteur d'environnement, à
116
- gauche : une préproduction déclarée, ou l'adresse d'un déploiement de branche
117
- que vous y collez.
114
+ First choose a <b>preview</b> in the environment picker on the left: a
115
+ declared staging environment, or the address of a branch deployment that you
116
+ paste there.
118
117
  </Text>
119
118
  </Stack>
120
119
  ) : (
121
120
  <>
122
121
  <Text size={0} muted>
123
- Un lien qui ouvre <b>{environment?.label ?? 'le site'}</b> et permet d'y basculer
124
- entre brouillons et contenu en ligne. Celui qui l'a n'a besoin d'aucun compte.
122
+ A link that opens <b>{environment?.label ?? 'the site'}</b> and lets you switch
123
+ between drafts and published content there. Whoever has it needs no account.
125
124
  </Text>
126
125
 
127
126
  {!link && (
@@ -130,7 +129,7 @@ export function SharePreview() {
130
129
  fontSize={1}
131
130
  padding={2}
132
131
  radius={2}
133
- placeholder="À quoi sert ce lien ? (facultatif)"
132
+ placeholder="What is this link for? (optional)"
134
133
  value={label}
135
134
  onChange={(event) => setLabel(event.currentTarget.value)}
136
135
  />
@@ -154,7 +153,7 @@ export function SharePreview() {
154
153
  <Flex align="center" gap={2}>
155
154
  <Spinner muted />
156
155
  <Text size={1} muted>
157
- Création…
156
+ Creating…
158
157
  </Text>
159
158
  </Flex>
160
159
  )}
@@ -188,14 +187,14 @@ export function SharePreview() {
188
187
  fontSize={1}
189
188
  padding={2}
190
189
  icon={copied ? CheckmarkIcon : ShareIcon}
191
- text={copied ? 'Copié' : 'Copier le lien'}
190
+ text={copied ? 'Copied' : 'Copy link'}
192
191
  onClick={copy}
193
192
  />
194
193
  <Button
195
194
  mode="bleed"
196
195
  fontSize={1}
197
196
  padding={2}
198
- text="Un autre"
197
+ text="Another one"
199
198
  onClick={() => {
200
199
  setLink(null)
201
200
  setCopied(false)
@@ -205,8 +204,8 @@ export function SharePreview() {
205
204
 
206
205
  {expiresAt && (
207
206
  <Text size={0} muted>
208
- Valable jusqu'au {new Date(expiresAt).toLocaleDateString('fr-FR')}. Révocable à
209
- tout moment par NoCode Factory.
207
+ Valid until {new Date(expiresAt).toLocaleDateString('en-US')}. Can be revoked
208
+ at any time by NoCode Factory.
210
209
  </Text>
211
210
  )}
212
211
  </Stack>
@@ -30,7 +30,7 @@ export function TagCell(props: TagCellProps) {
30
30
  gap={2}
31
31
  onClick={toggle}
32
32
  style={{...CELL, cursor: 'pointer'}}
33
- title="Changer l’étiquette"
33
+ title="Change tag"
34
34
  >
35
35
  {current ? (
36
36
  <>
@@ -58,7 +58,7 @@ export function TagCell(props: TagCellProps) {
58
58
  {({close}) => (
59
59
  <Stack gap={0}>
60
60
  <TagOption
61
- label="Sans étiquette"
61
+ label="No tag"
62
62
  selected={!current}
63
63
  onClick={() => {
64
64
  onChange(null)
@@ -6,9 +6,9 @@ import {CircleIcon} from '@sanity/icons/Circle'
6
6
  export type PagesView = 'list' | 'tree' | 'brain'
7
7
 
8
8
  const TABS: {value: PagesView; label: string; icon: typeof DocumentsIcon}[] = [
9
- {value: 'list', label: 'Liste', icon: DocumentsIcon},
10
- {value: 'tree', label: 'Arbo', icon: ProjectsIcon},
11
- {value: 'brain', label: 'Cerveau', icon: CircleIcon},
9
+ {value: 'list', label: 'List', icon: DocumentsIcon},
10
+ {value: 'tree', label: 'Tree', icon: ProjectsIcon},
11
+ {value: 'brain', label: 'Graph', icon: CircleIcon},
12
12
  ]
13
13
 
14
14
  export interface ViewTabsProps {
@@ -23,7 +23,7 @@ export interface ViewTabsProps {
23
23
  */
24
24
  export function ViewTabs(props: ViewTabsProps) {
25
25
  return (
26
- <Flex gap={1} role="tablist" aria-label="Vue des pages">
26
+ <Flex gap={1} role="tablist" aria-label="Pages view">
27
27
  {TABS.map((tab) => {
28
28
  const active = props.view === tab.value
29
29
  return (
@@ -467,7 +467,7 @@ function Board(props: BoardViewProps) {
467
467
  <Flex align="center" justify="center" padding={5} gap={3}>
468
468
  <Spinner muted />
469
469
  <Text size={1} muted>
470
- Analyse des liens entre les pages…
470
+ Analyzing links between pages…
471
471
  </Text>
472
472
  </Flex>
473
473
  )
@@ -510,7 +510,7 @@ function Board(props: BoardViewProps) {
510
510
  value={tagFilter}
511
511
  onChange={(event) => setTagFilter(event.currentTarget.value)}
512
512
  >
513
- <option value="">Toutes les étiquettes</option>
513
+ <option value="">All tags</option>
514
514
  {config.boardTags.map((tag) => (
515
515
  <option key={tag.id} value={tag.id}>
516
516
  {tag.label}
@@ -528,14 +528,14 @@ function Board(props: BoardViewProps) {
528
528
  />
529
529
  <Button
530
530
  icon={AddIcon}
531
- text="Forme"
531
+ text="Shape"
532
532
  mode="ghost"
533
533
  fontSize={1}
534
534
  padding={2}
535
535
  onClick={() => addAnnotation('rect', screenToFlowPosition({x: 300, y: 320}))}
536
536
  />
537
537
  <Button
538
- text={arranging ? 'Réorganisation…' : 'Réorganiser automatiquement'}
538
+ text={arranging ? 'Arranging…' : 'Auto arrange'}
539
539
  mode="ghost"
540
540
  fontSize={1}
541
541
  padding={2}
@@ -543,22 +543,22 @@ function Board(props: BoardViewProps) {
543
543
  onClick={() => void rearrange()}
544
544
  />
545
545
  <Text size={0} muted>
546
- {visibleNodes.length} pages · {graph.edges.length} liens
547
- {graph.orphans.length > 0 ? ` · ${graph.orphans.length} sans aucun lien` : ''}
546
+ {visibleNodes.length} pages · {graph.edges.length} links
547
+ {graph.orphans.length > 0 ? ` · ${graph.orphans.length} without any link` : ''}
548
548
  </Text>
549
549
  </Flex>
550
550
 
551
551
  {saveError && (
552
552
  <Card padding={3} radius={2} tone="critical">
553
- <Text size={1}>La disposition n’a pas pu être enregistrée : {saveError.message}</Text>
553
+ <Text size={1}>The layout could not be saved: {saveError.message}</Text>
554
554
  </Card>
555
555
  )}
556
556
 
557
557
  {graph.duplicatePaths.length > 0 && (
558
558
  <Card padding={3} radius={2} tone="caution">
559
559
  <Text size={1}>
560
- Plusieurs pages partagent le même chemin ({graph.duplicatePaths.join(', ')}).
561
- Un lien vers ce chemin ne peut en désigner qu’une.
560
+ Several pages share the same path ({graph.duplicatePaths.join(', ')}).
561
+ A link to this path can only point to one of them.
562
562
  </Text>
563
563
  </Card>
564
564
  )}
@@ -642,8 +642,8 @@ function Board(props: BoardViewProps) {
642
642
  </Flex>
643
643
  ))}
644
644
  <Text size={0} muted>
645
- {legend.length === 0 ? 'Couleur déduite de la valeur saisie · ' : '· '}
646
- clic pour la fiche, double-clic pour ouvrir la page
645
+ {legend.length === 0 ? 'Color derived from the entered value · ' : '· '}
646
+ click for details, double-click to open the page
647
647
  </Text>
648
648
  </Flex>
649
649
  </Stack>