Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
dash: Save a copy keeps you on the original; warn when a recovered copy looks older (#717)
nyblnet92f98a455f51
diff --git a/dash/CHANGELOG.md b/dash/CHANGELOG.mdindex 93f7e8fd..6dc4bd32 100644--- a/dash/CHANGELOG.md+++ b/dash/CHANGELOG.md@@ -12,6 +12,22 @@ There is no server, so a break here would be permanent.The release that came out of watching somebody use 0.2.0.+- **Save a copy keeps you on the original.** The copy is written and you go+ on editing the file you opened: ⌘S, the automatic save and the unsaved dot+ all stay with the original, and the message says so. Before, the copy quietly+ became the file you were editing.++- **A recovered copy that looks older than the file says so.** When the copy+ kept in this browser predates the file you opened, the banner warns you and+ makes "Keep the file" the default, with "Restore anyway" beside it. It is+ still offered, because two devices' clocks can disagree, and keeping the file+ does not delete the copy.++- **When crash recovery is off for a large workbook, dash tells you.** If the+ workbook is too large to keep a backup copy, a message says so once and asks+ you to save often, instead of the message about a browser that keeps no+ backups.+- **Portuguese.** dash's interface is available in Portuguese, the eighthlanguage beside English, Japanese, Simplified and Traditional Chinese,Spanish, French, German and Italian. The translation rig now finds thediff --git a/dash/src/i18n/de.ts b/dash/src/i18n/de.tsindex bfe5b894..73750f98 100644--- a/dash/src/i18n/de.ts+++ b/dash/src/i18n/de.ts@@ -34,7 +34,6 @@ export const de: Catalog = {"A pivot summarises a dataset’s columns, and this sheet has none.": "Eine Pivot fasst Spalten eines Datensatzes zusammen, und dieses Blatt hat keine.","A rule colours cells by what they CONTAIN, so the colour follows the data — sort, filter or edit a value and it moves with it.": "Eine Regel färbt Zellen nach ihrem INHALT, die Farbe folgt also den Daten — sortieren, filtern oder einen Wert ändern, und sie wandert mit.","A rule says what may be TYPED here. Existing values are never changed by adding one — anything that breaks it is marked instead.": "Eine Regel legt fest, was hier EINGEGEBEN werden darf. Bestehende Werte ändert sie nie — was ihr widerspricht, wird nur markiert.",- "A second file you carry on working in — same workbook, same identity.": "Eine zweite Datei zum Weiterarbeiten — dieselbe Arbeitsmappe, dieselbe Identität.","A separate workbook — same data, new identity. Nothing links it back to this one.": "Eine eigene Arbeitsmappe — dieselben Daten, neue Identität. Nichts verweist zurück auf diese hier.","A starting point: every open of it becomes a fresh workbook of its own.": "Ein Ausgangspunkt: jedes Öffnen erzeugt eine eigene, neue Arbeitsmappe.","A story step saves a dataset’s view — its filters, sorts and chart. A spreadsheet has none.": "Ein Story-Schritt speichert die Ansicht eines Datensatzes — Filter, Sortierungen und Diagramm. Ein Tabellenblatt hat davon nichts.",@@ -129,7 +128,6 @@ export const de: Catalog = {"Copied — {size} of JSON.": "Kopiert — {size} JSON.","Copy": "Kopieren","Copy document JSON": "Dokument-JSON kopieren",- "Copy saved": "Kopie gespeichert","Copy something first — paste special pastes what dash last copied.": "Kopieren Sie zuerst etwas — Inhalte einfügen fügt ein, was dash zuletzt kopiert hat.","Copy the selection": "Die Auswahl kopieren","Could not check for updates: {why}": "Nach Updates konnte nicht gesucht werden: {why}",@@ -752,4 +750,10 @@ export const de: Catalog = {"+ Comment on the selected cell": "+ Kommentar zur ausgewählten Zelle","This file was updated. Reload to run the new version before saving again.": "Diese Datei wurde aktualisiert. Laden Sie neu, um die neue Version zu starten, bevor Sie erneut speichern.","Not a number — left out of totals, and a formula that reads it gives #VALUE!": "Keine Zahl — aus den Summen ausgenommen, und eine Formel, die sie liest, ergibt #VALUE!",+ "This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.": "Diese wiederhergestellte Kopie scheint älter zu sein als die geöffnete Datei. Behalten Sie die Datei, es sei denn, Sie wissen, dass die Kopie neuer ist.",+ "Keep the file": "Datei behalten",+ "Restore anyway": "Trotzdem wiederherstellen",+ "Copy saved — you are still editing the original": "Kopie gespeichert — Sie bearbeiten weiterhin das Original",+ "Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.": "Die Absturzwiederherstellung ist für diese Arbeitsmappe deaktiviert – sie ist zu groß für eine Sicherungskopie. Speichern Sie häufig.",+ "A backup of this workbook for yourself — same workbook, same live session.": "Eine Sicherungskopie für Sie — gleiche Arbeitsmappe, gleiche Live-Sitzung.",}diff --git a/dash/src/i18n/es.ts b/dash/src/i18n/es.tsindex 7bdf596a..7215f795 100644--- a/dash/src/i18n/es.ts+++ b/dash/src/i18n/es.ts@@ -34,7 +34,6 @@ export const es: Catalog = {"A pivot summarises a dataset’s columns, and this sheet has none.": "Una tabla dinámica resume columnas de un conjunto de datos, y esta hoja no tiene ninguna.","A rule colours cells by what they CONTAIN, so the colour follows the data — sort, filter or edit a value and it moves with it.": "Una regla colorea las celdas por lo que CONTIENEN, así que el color sigue a los datos: ordena, filtra o edita un valor y el color se mueve con él.","A rule says what may be TYPED here. Existing values are never changed by adding one — anything that breaks it is marked instead.": "Una regla dice qué se puede ESCRIBIR aquí. Añadirla nunca cambia los valores existentes: lo que la incumple se marca.",- "A second file you carry on working in — same workbook, same identity.": "Un segundo archivo con el que sigues trabajando: mismo libro, misma identidad.","A separate workbook — same data, new identity. Nothing links it back to this one.": "Un libro aparte: mismos datos, identidad nueva. Nada lo vincula con este.","A starting point: every open of it becomes a fresh workbook of its own.": "Un punto de partida: cada vez que se abre se convierte en un libro nuevo.","A story step saves a dataset’s view — its filters, sorts and chart. A spreadsheet has none.": "Un paso de la historia guarda la vista de un conjunto de datos: filtros, ordenaciones y gráfico. Una hoja de cálculo no tiene ninguno.",@@ -129,7 +128,6 @@ export const es: Catalog = {"Copied — {size} of JSON.": "Copiado: {size} de JSON.","Copy": "Copiar","Copy document JSON": "Copiar JSON del documento",- "Copy saved": "Copia guardada","Copy something first — paste special pastes what dash last copied.": "Copia algo primero: pegado especial pega lo último que dash copió.","Copy the selection": "Copiar la selección","Could not check for updates: {why}": "No se han podido buscar actualizaciones: {why}",@@ -752,4 +750,10 @@ export const es: Catalog = {"+ Comment on the selected cell": "+ Comentar la celda seleccionada","This file was updated. Reload to run the new version before saving again.": "Este archivo se ha actualizado. Recarga para ejecutar la nueva versión antes de volver a guardar.","Not a number — left out of totals, and a formula that reads it gives #VALUE!": "No es un número: queda fuera de los totales, y una fórmula que lo lea da #VALUE!",+ "This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.": "Esta copia recuperada parece más antigua que el archivo que abriste. Conserva el archivo, salvo que sepas que la copia es más reciente.",+ "Keep the file": "Conservar el archivo",+ "Restore anyway": "Restaurar de todos modos",+ "Copy saved — you are still editing the original": "Copia guardada: sigues editando el original",+ "Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.": "La recuperación tras fallos está desactivada para este libro: es demasiado grande para guardar una copia de seguridad. Guarda a menudo.",+ "A backup of this workbook for yourself — same workbook, same live session.": "Una copia de seguridad para ti — mismo libro, misma sesión en vivo.",}diff --git a/dash/src/i18n/fr.ts b/dash/src/i18n/fr.tsindex 071b3a82..9cea8e7e 100644--- a/dash/src/i18n/fr.ts+++ b/dash/src/i18n/fr.ts@@ -34,7 +34,6 @@ export const fr: Catalog = {"A pivot summarises a dataset’s columns, and this sheet has none.": "Un tableau croisé résume les colonnes d’un jeu de données, et cette feuille n’en a aucune.","A rule colours cells by what they CONTAIN, so the colour follows the data — sort, filter or edit a value and it moves with it.": "Une règle colore les cellules selon leur CONTENU : la couleur suit la donnée — triez, filtrez ou modifiez une valeur et elle se déplace avec elle.","A rule says what may be TYPED here. Existing values are never changed by adding one — anything that breaks it is marked instead.": "Une règle dit ce qui peut être SAISI ici. L’ajouter ne modifie jamais les valeurs existantes : ce qui l’enfreint est simplement signalé.",- "A second file you carry on working in — same workbook, same identity.": "Un deuxième fichier dans lequel vous continuez à travailler — même classeur, même identité.","A separate workbook — same data, new identity. Nothing links it back to this one.": "Un classeur distinct — mêmes données, nouvelle identité. Rien ne le relie à celui-ci.","A starting point: every open of it becomes a fresh workbook of its own.": "Un point de départ : chaque ouverture devient un nouveau classeur à part entière.","A story step saves a dataset’s view — its filters, sorts and chart. A spreadsheet has none.": "Une étape d’histoire enregistre la vue d’un jeu de données — filtres, tris et graphique. Une feuille de calcul n’en a aucun.",@@ -129,7 +128,6 @@ export const fr: Catalog = {"Copied — {size} of JSON.": "Copié — {size} de JSON.","Copy": "Copier","Copy document JSON": "Copier le JSON du document",- "Copy saved": "Copie enregistrée","Copy something first — paste special pastes what dash last copied.": "Copiez d’abord quelque chose — le collage spécial colle ce que dash a copié en dernier.","Copy the selection": "Copier la sélection","Could not check for updates: {why}": "Impossible de rechercher des mises à jour : {why}",@@ -752,4 +750,10 @@ export const fr: Catalog = {"+ Comment on the selected cell": "+ Commenter la cellule sélectionnée","This file was updated. Reload to run the new version before saving again.": "Ce fichier a été mis à jour. Rechargez pour lancer la nouvelle version avant d’enregistrer à nouveau.","Not a number — left out of totals, and a formula that reads it gives #VALUE!": "Pas un nombre — exclu des totaux, et une formule qui le lit donne #VALUE!",+ "This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.": "Cette copie récupérée semble plus ancienne que le fichier ouvert. Gardez le fichier, sauf si vous savez qu’elle est plus récente.",+ "Keep the file": "Garder le fichier",+ "Restore anyway": "Restaurer quand même",+ "Copy saved — you are still editing the original": "Copie enregistrée — vous modifiez toujours l'original",+ "Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.": "La récupération après plantage est désactivée pour ce classeur : il est trop volumineux pour en garder une copie de secours. Enregistrez souvent.",+ "A backup of this workbook for yourself — same workbook, same live session.": "Une sauvegarde pour vous — même classeur, même session live.",}diff --git a/dash/src/i18n/it.ts b/dash/src/i18n/it.tsindex 16bf93b9..5c87bd1a 100644--- a/dash/src/i18n/it.ts+++ b/dash/src/i18n/it.ts@@ -34,7 +34,6 @@ export const it: Catalog = {"A pivot summarises a dataset’s columns, and this sheet has none.": "Una tabella pivot riassume le colonne di un set di dati, e questo foglio non ne ha.","A rule colours cells by what they CONTAIN, so the colour follows the data — sort, filter or edit a value and it moves with it.": "Una regola colora le celle in base al loro CONTENUTO, quindi il colore segue i dati: ordina, filtra o modifica un valore e il colore si sposta con esso.","A rule says what may be TYPED here. Existing values are never changed by adding one — anything that breaks it is marked instead.": "Una regola dice che cosa si può DIGITARE qui. Aggiungerla non cambia mai i valori esistenti: ciò che la viola viene solo segnalato.",- "A second file you carry on working in — same workbook, same identity.": "Un secondo file su cui continuare a lavorare — stessa cartella di lavoro, stessa identità.","A separate workbook — same data, new identity. Nothing links it back to this one.": "Una cartella di lavoro separata — stessi dati, nuova identità. Nulla la collega a questa.","A starting point: every open of it becomes a fresh workbook of its own.": "Un punto di partenza: ogni sua apertura diventa una nuova cartella di lavoro a sé.","A story step saves a dataset’s view — its filters, sorts and chart. A spreadsheet has none.": "Un passaggio della storia salva la vista di un set di dati: filtri, ordinamenti e grafico. Un foglio di calcolo non ne ha.",@@ -129,7 +128,6 @@ export const it: Catalog = {"Copied — {size} of JSON.": "Copiato — {size} di JSON.","Copy": "Copia","Copy document JSON": "Copia JSON del documento",- "Copy saved": "Copia salvata","Copy something first — paste special pastes what dash last copied.": "Copia prima qualcosa — Incolla speciale incolla ciò che dash ha copiato per ultimo.","Copy the selection": "Copia la selezione","Could not check for updates: {why}": "Impossibile cercare aggiornamenti: {why}",@@ -752,4 +750,10 @@ export const it: Catalog = {"+ Comment on the selected cell": "+ Commenta la cella selezionata","This file was updated. Reload to run the new version before saving again.": "Questo file è stato aggiornato. Ricarica per avviare la nuova versione prima di salvare di nuovo.","Not a number — left out of totals, and a formula that reads it gives #VALUE!": "Non è un numero — escluso dai totali, e una formula che lo legge dà #VALUE!",+ "This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.": "Questa copia recuperata sembra più vecchia del file che hai aperto. Tieni il file, a meno che tu non sappia che la copia è più recente.",+ "Keep the file": "Tieni il file",+ "Restore anyway": "Ripristina comunque",+ "Copy saved — you are still editing the original": "Copia salvata: stai ancora modificando l'originale",+ "Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.": "Il ripristino dopo un arresto anomalo è disattivato per questa cartella di lavoro: è troppo grande per conservarne una copia di backup. Salva spesso.",+ "A backup of this workbook for yourself — same workbook, same live session.": "Una copia di riserva per te — stessa cartella di lavoro, stessa sessione live.",}diff --git a/dash/src/i18n/ja.ts b/dash/src/i18n/ja.tsindex 66b3ce06..d1c5e5d7 100644--- a/dash/src/i18n/ja.ts+++ b/dash/src/i18n/ja.ts@@ -34,7 +34,6 @@ export const ja: Catalog = {"A pivot summarises a dataset’s columns, and this sheet has none.": "ピボットはデータセットの列を集計しますが、このシートには列がありません。","A rule colours cells by what they CONTAIN, so the colour follows the data — sort, filter or edit a value and it moves with it.": "ルールはセルの内容に応じて色を付けます。色はデータに従うので、並べ替え・絞り込み・値の編集をしても一緒に移動します。","A rule says what may be TYPED here. Existing values are never changed by adding one — anything that breaks it is marked instead.": "規則は、ここに何を入力してよいかを決めるものです。規則を追加しても既存の値は変更されません。規則に反する値には印が付くだけです。",- "A second file you carry on working in — same workbook, same identity.": "作業を続けるための 2 つ目のファイル — ブックも識別子も同じです。","A separate workbook — same data, new identity. Nothing links it back to this one.": "別のブック — データは同じで、識別子は新規。元のブックとのつながりはありません。","A starting point: every open of it becomes a fresh workbook of its own.": "出発点となるファイル。開くたびに、それ自体が新しいブックになります。","A story step saves a dataset’s view — its filters, sorts and chart. A spreadsheet has none.": "ストーリーのステップはデータセットのビュー(フィルター、並べ替え、グラフ)を保存します。スプレッドシートにはそれがありません。",@@ -129,7 +128,6 @@ export const ja: Catalog = {"Copied — {size} of JSON.": "コピーしました — {size} の JSON。","Copy": "コピー","Copy document JSON": "ドキュメント JSON をコピー",- "Copy saved": "コピーを保存しました","Copy something first — paste special pastes what dash last copied.": "まずコピーしてください。形式を選択して貼り付けは、dash が最後にコピーした内容を貼り付けます。","Copy the selection": "選択範囲をコピーする","Could not check for updates: {why}": "更新を確認できませんでした: {why}",@@ -752,4 +750,10 @@ export const ja: Catalog = {"+ Comment on the selected cell": "+ 選択したセルにコメント","This file was updated. Reload to run the new version before saving again.": "このファイルは更新されました。再度保存する前に、再読み込みして新しいバージョンを起動してください。","Not a number — left out of totals, and a formula that reads it gives #VALUE!": "数値ではありません — 合計から除外され、これを参照する数式は #VALUE! になります",+ "This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.": "この復元コピーは、開いたファイルより古いようです。新しいと分かっている場合を除き、ファイルをそのまま使ってください。",+ "Keep the file": "ファイルを使う",+ "Restore anyway": "それでも復元",+ "Copy saved — you are still editing the original": "コピーを保存しました — 編集中なのは引き続き元のファイルです",+ "Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.": "このブックのクラッシュ復旧はオフです — 大きすぎてバックアップを保存できません。こまめに保存してください。",+ "A backup of this workbook for yourself — same workbook, same live session.": "自分用のバックアップ — 同じブック・同じライブセッションです。",}diff --git a/dash/src/i18n/packed.ts b/dash/src/i18n/packed.tsindex 5f1ef830..5a434412 100644--- a/dash/src/i18n/packed.ts+++ b/dash/src/i18n/packed.ts@@ -29,6 +29,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {"A COPY, as the dataset is right now. Editing it does not change the dataset, and the dataset does not update it.": ["現時点のデータセットのコピーです。これを編集してもデータセットは変わらず、データセットの変更もここには反映されません。","这是数据集此刻的副本。编辑它不会改变数据集,数据集也不会更新它。","這是資料集此刻的副本。編輯它不會改變資料集,資料集也不會更新它。","Una COPIA, tal como está el conjunto de datos ahora mismo. Editarla no cambia el conjunto de datos, y el conjunto de datos no la actualiza.","Une COPIE, telle que le jeu de données est en ce moment. La modifier ne change pas le jeu de données, et le jeu de données ne la met pas à jour.","Eine KOPIE, so wie der Datensatz gerade ist. Sie zu bearbeiten ändert den Datensatz nicht, und der Datensatz aktualisiert sie nicht.","Una COPIA, com’è il set di dati in questo momento. Modificarla non cambia il set di dati, e il set di dati non la aggiorna.","Uma CÓPIA, do conjunto de dados como ele está agora. Editá-la não altera o conjunto de dados, e o conjunto de dados não a atualiza."],"A CSV is one header row and one row per row, and this sheet has no columns to name.": ["CSV はヘッダー 1 行と各行 1 行で構成されますが、このシートには名前を付ける列がありません。","CSV 由一行表头和每行一行组成,而此工作表没有可命名的列。","CSV 由一列標題和每列一列組成,而此工作表沒有可命名的欄。","Un CSV es una fila de encabezado y una fila por fila, y esta hoja no tiene columnas que nombrar.","Un CSV, c’est une ligne d’en-tête et une ligne par ligne, et cette feuille n’a aucune colonne à nommer.","Eine CSV ist eine Kopfzeile und eine Zeile je Zeile, und dieses Blatt hat keine Spalten zu benennen.","Un CSV è una riga di intestazione e una riga per riga, e questo foglio non ha colonne da nominare.","Um CSV é uma linha de cabeçalho e uma linha por registro, e esta planilha não tem colunas para nomear."],"A CSV is one header row and one row per row. A spreadsheet has no columns to name — make a range into a dataset first.": ["CSV はヘッダー 1 行と各行 1 行で構成されます。スプレッドシートには名前を付ける列がないため、まず範囲をデータセットにしてください。","CSV 由一行表头和每行一行组成。电子表格没有可命名的列 — 请先将某个区域转为数据集。","CSV 由一列標題和每列一列組成。試算表沒有可命名的欄 — 請先將某個範圍轉為資料集。","Un CSV es una fila de encabezado y una fila por fila. Una hoja de cálculo no tiene columnas que nombrar: convierte antes un rango en un conjunto de datos.","Un CSV, c’est une ligne d’en-tête et une ligne par ligne. Une feuille de calcul n’a aucune colonne à nommer — transformez d’abord une plage en jeu de données.","Eine CSV ist eine Kopfzeile und eine Zeile je Zeile. Ein Tabellenblatt hat keine Spalten zu benennen — machen Sie zuerst einen Bereich zu einem Datensatz.","Un CSV è una riga di intestazione e una riga per riga. Un foglio di calcolo non ha colonne da nominare: converti prima un intervallo in un set di dati.","Um CSV é uma linha de cabeçalho e uma linha por registro. Uma planilha não tem colunas para nomear — transforme um intervalo em conjunto de dados primeiro."],+ "A backup of this workbook for yourself — same workbook, same live session.": ["自分用のバックアップ — 同じブック・同じライブセッションです。","自己留存的备份 — 同一个工作簿、同一个实时会话。","自己留存的備份 — 同一個活頁簿、同一個即時會話。","Una copia de seguridad para ti — mismo libro, misma sesión en vivo.","Une sauvegarde pour vous — même classeur, même session live.","Eine Sicherungskopie für Sie — gleiche Arbeitsmappe, gleiche Live-Sitzung.","Una copia di riserva per te — stessa cartella di lavoro, stessa sessione live.","Um backup desta pasta de trabalho para você — mesma pasta de trabalho, mesma sessão ao vivo."],"A cell that starts with “?” has to be typed that way: press F2 first, because a bare “?” opens this card.": ["「?」で始まるセルは、そのままでは入力できません。まず F2 を押してください。単独の「?」はこのカードを開いてしまいます。","以“?”开头的单元格必须这样输入:先按 F2,因为单独键入“?”会打开这张卡片。","要在儲存格開頭輸入「?」,必須先按 F2,因為單獨輸入「?」會開啟這張卡片。","Una celda que empieza por “?” hay que escribirla así: pulsa primero F2, porque un “?” suelto abre esta ficha.","Une cellule qui commence par « ? » doit être saisie ainsi : appuyez d’abord sur F2, car un « ? » seul ouvre cette fiche.","Eine Zelle, die mit „?“ beginnt, muss so eingegeben werden: zuerst F2 drücken, denn ein bloßes „?“ öffnet diese Karte.","Una cella che inizia con “?” va digitata così: premi prima F2, perché un “?” da solo apre questa scheda.","Uma célula que começa com “?” precisa ser digitada assim: pressione F2 antes, porque um “?” sozinho abre este cartão."],"A computed column is defined by its formula; there is nothing stored in it to split.": ["計算列は数式で定義されています。分割できる値は保存されていません。","计算列由其公式定义,其中没有可供拆分的存储内容。","計算欄由其公式定義,其中沒有可供拆分的儲存內容。","Una columna calculada se define por su fórmula; no hay nada almacenado en ella que dividir.","Une colonne calculée est définie par sa formule ; elle ne contient rien de stocké à diviser.","Eine berechnete Spalte ist durch ihre Formel definiert; darin ist nichts gespeichert, was sich teilen ließe.","Una colonna calcolata è definita dalla sua formula; non contiene nulla di memorizzato da dividere.","Uma coluna calculada é definida pela sua fórmula; não há nada armazenado nela para dividir."],"A copy, a template or a read-only copy: the ▾ beside Save.": ["コピー、テンプレート、読み取り専用のコピーは、「保存」の隣の ▾ から。","副本、模板或只读副本:用“保存”旁边的 ▾。","副本、範本或唯讀副本:用「儲存」旁邊的 ▾。","Una copia, una plantilla o una copia de solo lectura: el ▾ junto a Guardar.","Une copie, un modèle ou une copie en lecture seule : le ▾ à côté d’Enregistrer.","Eine Kopie, eine Vorlage oder eine schreibgeschützte Kopie: das ▾ neben Speichern.","Una copia, un modello o una copia di sola lettura: il ▾ accanto a Salva.","Uma cópia, um modelo ou uma cópia somente leitura: o ▾ ao lado de Salvar."],@@ -44,7 +45,6 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {"A pivot summarises a dataset’s columns, and this sheet has none.": ["ピボットはデータセットの列を集計しますが、このシートには列がありません。","透视表汇总数据集的列,而此工作表没有列。","樞紐分析彙總資料集的欄,而此工作表沒有欄。","Una tabla dinámica resume columnas de un conjunto de datos, y esta hoja no tiene ninguna.","Un tableau croisé résume les colonnes d’un jeu de données, et cette feuille n’en a aucune.","Eine Pivot fasst Spalten eines Datensatzes zusammen, und dieses Blatt hat keine.","Una tabella pivot riassume le colonne di un set di dati, e questo foglio non ne ha.","Uma tabela dinâmica resume as colunas de um conjunto de dados, e esta planilha não tem nenhuma."],"A rule colours cells by what they CONTAIN, so the colour follows the data — sort, filter or edit a value and it moves with it.": ["ルールはセルの内容に応じて色を付けます。色はデータに従うので、並べ替え・絞り込み・値の編集をしても一緒に移動します。","规则按单元格的内容着色,颜色跟随数据——排序、筛选或修改数值时,颜色也随之移动。","規則依儲存格的內容上色,顏色跟著資料走——排序、篩選或修改數值時,顏色也跟著移動。","Una regla colorea las celdas por lo que CONTIENEN, así que el color sigue a los datos: ordena, filtra o edita un valor y el color se mueve con él.","Une règle colore les cellules selon leur CONTENU : la couleur suit la donnée — triez, filtrez ou modifiez une valeur et elle se déplace avec elle.","Eine Regel färbt Zellen nach ihrem INHALT, die Farbe folgt also den Daten — sortieren, filtern oder einen Wert ändern, und sie wandert mit.","Una regola colora le celle in base al loro CONTENUTO, quindi il colore segue i dati: ordina, filtra o modifica un valore e il colore si sposta con esso.","Uma regra colore as células pelo que elas CONTÊM, então a cor acompanha o dado — ordene, filtre ou edite um valor e ela vai junto."],"A rule says what may be TYPED here. Existing values are never changed by adding one — anything that breaks it is marked instead.": ["規則は、ここに何を入力してよいかを決めるものです。規則を追加しても既存の値は変更されません。規則に反する値には印が付くだけです。","规则规定这里可以输入什么。添加规则不会改动已有的值——不符合的值只会被标记出来。","規則規定這裡可以輸入什麼。新增規則不會改動既有的值——不符合的值只會被標記出來。","Una regla dice qué se puede ESCRIBIR aquí. Añadirla nunca cambia los valores existentes: lo que la incumple se marca.","Une règle dit ce qui peut être SAISI ici. L’ajouter ne modifie jamais les valeurs existantes : ce qui l’enfreint est simplement signalé.","Eine Regel legt fest, was hier EINGEGEBEN werden darf. Bestehende Werte ändert sie nie — was ihr widerspricht, wird nur markiert.","Una regola dice che cosa si può DIGITARE qui. Aggiungerla non cambia mai i valori esistenti: ciò che la viola viene solo segnalato.","Uma regra diz o que pode ser DIGITADO aqui. Valores existentes nunca são alterados ao adicionar uma — o que a infringe é apenas marcado."],- "A second file you carry on working in — same workbook, same identity.": ["作業を続けるための 2 つ目のファイル — ブックも識別子も同じです。","另一个可以继续工作的文件 — 同一个工作簿,同一个身份。","另一個可以繼續編輯的檔案 — 同一份活頁簿,同一個識別。","Un segundo archivo con el que sigues trabajando: mismo libro, misma identidad.","Un deuxième fichier dans lequel vous continuez à travailler — même classeur, même identité.","Eine zweite Datei zum Weiterarbeiten — dieselbe Arbeitsmappe, dieselbe Identität.","Un secondo file su cui continuare a lavorare — stessa cartella di lavoro, stessa identità.","Um segundo arquivo em que você continua trabalhando — mesma pasta de trabalho, mesma identidade."],"A separate workbook — same data, new identity. Nothing links it back to this one.": ["別のブック — データは同じで、識別子は新規。元のブックとのつながりはありません。","独立的工作簿 — 数据相同,身份全新。它与当前文件不再有任何关联。","獨立的活頁簿 — 相同資料,全新識別。不會連回目前這一份。","Un libro aparte: mismos datos, identidad nueva. Nada lo vincula con este.","Un classeur distinct — mêmes données, nouvelle identité. Rien ne le relie à celui-ci.","Eine eigene Arbeitsmappe — dieselben Daten, neue Identität. Nichts verweist zurück auf diese hier.","Una cartella di lavoro separata — stessi dati, nuova identità. Nulla la collega a questa.","Uma pasta de trabalho separada — mesmos dados, nova identidade. Nada a liga de volta a esta."],"A starting point: every open of it becomes a fresh workbook of its own.": ["出発点となるファイル。開くたびに、それ自体が新しいブックになります。","一个起点:每次打开它都会生成一个全新的工作簿。","一個起點:每次開啟它,都會變成一份自己的全新活頁簿。","Un punto de partida: cada vez que se abre se convierte en un libro nuevo.","Un point de départ : chaque ouverture devient un nouveau classeur à part entière.","Ein Ausgangspunkt: jedes Öffnen erzeugt eine eigene, neue Arbeitsmappe.","Un punto di partenza: ogni sua apertura diventa una nuova cartella di lavoro a sé.","Um ponto de partida: cada abertura dele vira uma pasta de trabalho nova e própria."],"A story step saves a dataset’s view — its filters, sorts and chart. A spreadsheet has none.": ["ストーリーのステップはデータセットのビュー(フィルター、並べ替え、グラフ)を保存します。スプレッドシートにはそれがありません。","故事步骤保存数据集的视图 — 筛选、排序和图表。电子表格没有这些。","故事步驟儲存資料集的檢視 — 篩選、排序和圖表。試算表沒有這些。","Un paso de la historia guarda la vista de un conjunto de datos: filtros, ordenaciones y gráfico. Una hoja de cálculo no tiene ninguno.","Une étape d’histoire enregistre la vue d’un jeu de données — filtres, tris et graphique. Une feuille de calcul n’en a aucun.","Ein Story-Schritt speichert die Ansicht eines Datensatzes — Filter, Sortierungen und Diagramm. Ein Tabellenblatt hat davon nichts.","Un passaggio della storia salva la vista di un set di dati: filtri, ordinamenti e grafico. Un foglio di calcolo non ne ha.","Um passo de narrativa salva a visão de um conjunto de dados — seus filtros, ordenações e gráfico. Uma planilha não tem nenhum."],@@ -139,12 +139,13 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {"Copied — {size} of JSON.": ["コピーしました — {size} の JSON。","已复制 — {size} 的 JSON。","已複製 — {size} 的 JSON。","Copiado: {size} de JSON.","Copié — {size} de JSON.","Kopiert — {size} JSON.","Copiato — {size} di JSON.","Copiado — {size} de JSON."],"Copy": ["コピー","复制","複製","Copiar","Copier","Kopieren","Copia","Copiar"],"Copy document JSON": ["ドキュメント JSON をコピー","复制文档 JSON","複製文件 JSON","Copiar JSON del documento","Copier le JSON du document","Dokument-JSON kopieren","Copia JSON del documento","Copiar o JSON do documento"],- "Copy saved": ["コピーを保存しました","副本已保存","已儲存副本","Copia guardada","Copie enregistrée","Kopie gespeichert","Copia salvata","Cópia salva"],+ "Copy saved — you are still editing the original": ["コピーを保存しました — 編集中なのは引き続き元のファイルです","副本已保存 — 你仍在编辑原文件","副本已儲存 — 你仍在編輯原始檔案","Copia guardada: sigues editando el original","Copie enregistrée — vous modifiez toujours l'original","Kopie gespeichert — Sie bearbeiten weiterhin das Original","Copia salvata: stai ancora modificando l'originale","Cópia salva — você continua editando o original"],"Copy something first — paste special pastes what dash last copied.": ["まずコピーしてください。形式を選択して貼り付けは、dash が最後にコピーした内容を貼り付けます。","请先复制 — 选择性粘贴会粘贴 dash 最后复制的内容。","請先複製 — 選擇性貼上會貼上 dash 最後複製的內容。","Copia algo primero: pegado especial pega lo último que dash copió.","Copiez d’abord quelque chose — le collage spécial colle ce que dash a copié en dernier.","Kopieren Sie zuerst etwas — Inhalte einfügen fügt ein, was dash zuletzt kopiert hat.","Copia prima qualcosa — Incolla speciale incolla ciò che dash ha copiato per ultimo.","Copie algo primeiro — colar especial cola o que o dash copiou por último."],"Copy the selection": ["選択範囲をコピーする","复制所选内容","複製選取範圍","Copiar la selección","Copier la sélection","Die Auswahl kopieren","Copia la selezione","Copiar a seleção"],"Could not check for updates: {why}": ["更新を確認できませんでした: {why}","无法检查更新:{why}","無法檢查更新:{why}","No se han podido buscar actualizaciones: {why}","Impossible de rechercher des mises à jour : {why}","Nach Updates konnte nicht gesucht werden: {why}","Impossibile cercare aggiornamenti: {why}","Não foi possível verificar atualizações: {why}"],"Could not save to the file automatically — {why}. Your changes are still here; press ⌘S.": ["ファイルへ自動保存できませんでした — {why}。変更はここに残っています。⌘S を押してください。","无法自动保存到文件 — {why}。您的更改仍在这里;请按 ⌘S。","無法自動儲存到檔案 — {why}。您的變更仍在這裡;請按 ⌘S。","No se pudo guardar automáticamente en el archivo — {why}. Sus cambios siguen aquí; pulse ⌘S.","Impossible d’enregistrer automatiquement dans le fichier — {why}. Vos modifications sont toujours là ; appuyez sur ⌘S.","Automatisches Speichern in die Datei nicht möglich — {why}. Ihre Änderungen sind noch da; drücken Sie ⌘S.","Impossibile salvare automaticamente sul file — {why}. Le tue modifiche sono ancora qui; premi ⌘S.","Não foi possível salvar no arquivo automaticamente — {why}. Suas alterações continuam aqui; pressione ⌘S."],"Count": ["個数","计数","計數","Cuenta","Nombre","Anzahl","Conteggio","Contagem"],+ "Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.": ["このブックのクラッシュ復旧はオフです — 大きすぎてバックアップを保存できません。こまめに保存してください。","此工作簿的崩溃恢复已关闭 — 文件太大,无法保留备份。请经常保存。","此活頁簿的當機復原已關閉 — 檔案太大,無法保留備份。請經常儲存。","La recuperación tras fallos está desactivada para este libro: es demasiado grande para guardar una copia de seguridad. Guarda a menudo.","La récupération après plantage est désactivée pour ce classeur : il est trop volumineux pour en garder une copie de secours. Enregistrez souvent.","Die Absturzwiederherstellung ist für diese Arbeitsmappe deaktiviert – sie ist zu groß für eine Sicherungskopie. Speichern Sie häufig.","Il ripristino dopo un arresto anomalo è disattivato per questa cartella di lavoro: è troppo grande per conservarne una copia di backup. Salva spesso.","A recuperação de falhas está desativada para esta pasta de trabalho: ela é grande demais para manter uma cópia de segurança. Salve com frequência."],"Currency": ["通貨","货币","貨幣","Moneda","Monétaire","Währung","Valuta","Moeda"],"Custom": ["ユーザー定義","自定义","自訂","Personalizado","Personnalisé","Benutzerdefiniert","Personalizzato","Personalizado"],"Custom formula": ["カスタム数式","自定义公式","自訂公式","Fórmula personalizada","Formule personnalisée","Eigene Formel","Formula personalizzata","Fórmula personalizada"],@@ -269,6 +270,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {"Italic the selected cells": ["選択したセルを斜体にします","将所选单元格设为斜体","將所選儲存格設為斜體","Pone en cursiva las celdas seleccionadas","Met les cellules sélectionnées en italique","Setzt die ausgewählten Zellen kursiv","Mette in corsivo le celle selezionate","Aplicar itálico às células selecionadas"],"Jump to the edge of the data block": ["データ範囲の端まで移動する","跳到数据区域的边缘","跳到資料區塊的邊緣","Saltar al borde del bloque de datos","Aller au bord du bloc de données","Zum Rand des Datenblocks springen","Salta al bordo del blocco di dati","Saltar para a borda do bloco de dados"],"Just start typing over a selected cell — the first character replaces what was there. F2 (or a double-click) edits what is already in it instead.": ["セルを選んでそのまま入力を始めてください — 最初の 1 文字で元の内容が置き換わります。F2(またはダブルクリック)なら、今ある内容を編集できます。","选中单元格后直接输入 — 第一个字符就会替换原有内容。按 F2(或双击)则是在原有内容上编辑。","選取儲存格後直接開始輸入 — 第一個字元就會取代原本的內容。若要編輯原有內容,請按 F2(或連按兩下)。","Empieza a escribir sobre una celda seleccionada: el primer carácter sustituye lo que hubiera. F2 (o un doble clic) edita lo que ya hay en ella.","Tapez simplement sur une cellule sélectionnée — le premier caractère remplace ce qui s’y trouvait. F2 (ou un double-clic) modifie plutôt le contenu existant.","Einfach über einer ausgewählten Zelle lostippen — das erste Zeichen ersetzt den bisherigen Inhalt. F2 (oder ein Doppelklick) bearbeitet stattdessen das, was schon darin steht.","Basta iniziare a digitare su una cella selezionata — il primo carattere sostituisce ciò che c’era. F2 (o un doppio clic) modifica invece il contenuto esistente.","Basta digitar sobre uma célula selecionada — o primeiro caractere substitui o que havia. F2 (ou um duplo clique) edita o que já está nela."],+ "Keep the file": ["ファイルを使う","保留文件","保留檔案","Conservar el archivo","Garder le fichier","Datei behalten","Tieni il file","Manter o arquivo"],"Keyboard shortcuts": ["キーボードショートカット","键盘快捷键","鍵盤快速鍵","Atajos de teclado","Raccourcis clavier","Tastenkürzel","Scorciatoie da tastiera","Atalhos de teclado"],"Keyboard shortcuts (?)": ["キーボードショートカット (?)","键盘快捷键 (?)","鍵盤快速鍵 (?)","Atajos de teclado (?)","Raccourcis clavier (?)","Tastenkürzel (?)","Scorciatoie da tastiera (?)","Atalhos de teclado (?)"],"Keywords": ["キーワード","关键词","關鍵詞","Palabras clave","Mots-clés","Schlagwörter","Parole chiave","Palavras-chave"],@@ -425,6 +427,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {"Resolve": ["解決","解决","解決","Resolver","Résoudre","Erledigen","Risolvi","Resolver"],"Resolved": ["解決済み","已解决","已解決","Resuelto","Résolu","Erledigt","Risolto","Resolvido"],"Restore": ["復元","恢复","還原","Restaurar","Restaurer","Wiederherstellen","Ripristina","Restaurar"],+ "Restore anyway": ["それでも復元","仍然恢复","仍然還原","Restaurar de todos modos","Restaurer quand même","Trotzdem wiederherstellen","Ripristina comunque","Restaurar mesmo assim"],"Restored the unsaved changes from {when}.": ["{when} の未保存の変更を復元しました。","已恢复 {when} 的未保存更改。","已還原 {when} 的未儲存變更。","Se han restaurado los cambios sin guardar de {when}.","Modifications non enregistrées de {when} restaurées.","Die nicht gespeicherten Änderungen von {when} wurden wiederhergestellt.","Ripristinate le modifiche non salvate del {when}.","Alterações não salvas de {when} restauradas."],"Restored the version from {when}.": ["{when} のバージョンを復元しました。","已恢复 {when} 的版本。","已還原 {when} 的版本。","Se ha restaurado la versión del {when}.","Version du {when} restaurée.","Version vom {when} wiederhergestellt.","Ripristinata la versione del {when}.","Versão de {when} restaurada."],"Right": ["右揃え","右对齐","靠右","Derecha","Droite","Rechts","Destra","Direita"],@@ -556,6 +559,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {"This file is encrypted.": ["このファイルは暗号化されています。","此文件已加密。","此檔案已加密。","Este archivo está cifrado.","Ce fichier est chiffré.","Diese Datei ist verschlüsselt.","Questo file è cifrato.","Este arquivo está criptografado."],"This file was updated. Reload to run the new version before saving again.": ["このファイルは更新されました。再度保存する前に、再読み込みして新しいバージョンを起動してください。","此文件已更新。请先重新加载以运行新版本,然后再保存。","此檔案已更新。請先重新載入以執行新版本,再進行儲存。","Este archivo se ha actualizado. Recarga para ejecutar la nueva versión antes de volver a guardar.","Ce fichier a été mis à jour. Rechargez pour lancer la nouvelle version avant d’enregistrer à nouveau.","Diese Datei wurde aktualisiert. Laden Sie neu, um die neue Version zu starten, bevor Sie erneut speichern.","Questo file è stato aggiornato. Ricarica per avviare la nuova versione prima di salvare di nuovo.","Este arquivo foi atualizado. Recarregue para executar a nova versão antes de salvar novamente."],"This is now a new workbook — save it under a new name": ["これは新しいブックになりました — 別の名前で保存してください","这已经是一个新工作簿 — 请用新名称保存","這現在是一份新的活頁簿 — 請以新名稱儲存","Ahora esto es un libro nuevo: guárdalo con otro nombre","C’est désormais un nouveau classeur — enregistrez-le sous un nouveau nom","Das ist jetzt eine neue Arbeitsmappe — unter einem neuen Namen speichern","Ora questa è una nuova cartella di lavoro — salvala con un nuovo nome","Agora esta é uma pasta de trabalho nova — salve-a com outro nome"],+ "This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.": ["この復元コピーは、開いたファイルより古いようです。新しいと分かっている場合を除き、ファイルをそのまま使ってください。","此恢复副本似乎比你打开的文件更旧。除非你确定它更新,否则请保留该文件。","此復原副本似乎比你開啟的檔案更舊。除非你確定它較新,否則請保留該檔案。","Esta copia recuperada parece más antigua que el archivo que abriste. Conserva el archivo, salvo que sepas que la copia es más reciente.","Cette copie récupérée semble plus ancienne que le fichier ouvert. Gardez le fichier, sauf si vous savez qu’elle est plus récente.","Diese wiederhergestellte Kopie scheint älter zu sein als die geöffnete Datei. Behalten Sie die Datei, es sei denn, Sie wissen, dass die Kopie neuer ist.","Questa copia recuperata sembra più vecchia del file che hai aperto. Tieni il file, a meno che tu non sappia che la copia è più recente.","Esta cópia recuperada parece mais antiga do que o arquivo que você abriu. Mantenha o arquivo, a menos que saiba que a cópia é mais recente."],"This rule came from a later build of dash. It is kept in the file and written back out unchanged, and this build paints nothing for it.": ["このルールは新しいバージョンの dash で作られたものです。ファイルの中に保持してそのまま書き出しますが、このバージョンでは何も描画しません。","该规则来自更高版本的 dash。文件中会原样保留并写回,但当前版本不会为它绘制任何内容。","這條規則來自較新版本的 dash。檔案中會原樣保留並寫回,但這個版本不會為它繪製任何內容。","Esta regla viene de una versión posterior de dash. Se conserva en el archivo y se vuelve a escribir sin cambios, y esta versión no pinta nada para ella.","Cette règle vient d’une version plus récente de dash. Elle est conservée dans le fichier et réécrite telle quelle, et cette version ne dessine rien pour elle.","Diese Regel stammt aus einer neueren Version von dash. Sie bleibt in der Datei und wird unverändert zurückgeschrieben; diese Version zeichnet nichts dafür.","Questa regola arriva da una versione più recente di dash. Resta nel file e viene riscritta invariata, e questa versione non disegna nulla per essa.","Esta regra veio de uma versão mais recente do dash. Ela é mantida no arquivo e gravada de volta sem alteração, e esta versão não pinta nada por ela."],"This rule came from a spreadsheet that evaluates it. dash keeps it and writes it back out unchanged, and does not check entries against it.": ["この規則は、それを評価するスプレッドシートから読み込まれました。dash は内容をそのまま保持して書き戻しますが、入力の検証には使いません。","此规则来自一个会计算它的电子表格。dash 会原样保留并写回,但不会用它检查输入。","此規則來自會計算它的試算表。dash 會原樣保留並寫回,但不會用它檢查輸入。","Esta regla viene de una hoja de cálculo que sí la evalúa. dash la conserva y la vuelve a escribir sin cambios, pero no comprueba las entradas con ella.","Cette règle vient d’un tableur qui, lui, l’évalue. dash la conserve et la réécrit telle quelle, sans vérifier les saisies avec.","Diese Regel stammt aus einer Tabellenkalkulation, die sie auswertet. dash bewahrt sie unverändert auf und schreibt sie so wieder heraus, prüft Eingaben aber nicht damit.","Questa regola arriva da un foglio di calcolo che la valuta. dash la conserva e la riscrive invariata, ma non la usa per controllare ciò che si digita.","Esta regra veio de uma planilha que a avalia. O dash a mantém e a grava de volta sem alteração, e não confere as entradas contra ela."],"This sheet": ["このシート","此工作表","此工作表","Esta hoja","Cette feuille","Dieses Blatt","Questo foglio","Esta planilha"],diff --git a/dash/src/i18n/pt.ts b/dash/src/i18n/pt.tsindex 22d9c108..93f04400 100644--- a/dash/src/i18n/pt.ts+++ b/dash/src/i18n/pt.ts@@ -47,7 +47,6 @@ export const pt: Catalog = {"A pivot summarises a dataset’s columns, and this sheet has none.": "Uma tabela dinâmica resume as colunas de um conjunto de dados, e esta planilha não tem nenhuma.","A rule colours cells by what they CONTAIN, so the colour follows the data — sort, filter or edit a value and it moves with it.": "Uma regra colore as células pelo que elas CONTÊM, então a cor acompanha o dado — ordene, filtre ou edite um valor e ela vai junto.","A rule says what may be TYPED here. Existing values are never changed by adding one — anything that breaks it is marked instead.": "Uma regra diz o que pode ser DIGITADO aqui. Valores existentes nunca são alterados ao adicionar uma — o que a infringe é apenas marcado.",- "A second file you carry on working in — same workbook, same identity.": "Um segundo arquivo em que você continua trabalhando — mesma pasta de trabalho, mesma identidade.","A separate workbook — same data, new identity. Nothing links it back to this one.": "Uma pasta de trabalho separada — mesmos dados, nova identidade. Nada a liga de volta a esta.","A starting point: every open of it becomes a fresh workbook of its own.": "Um ponto de partida: cada abertura dele vira uma pasta de trabalho nova e própria.","A story step saves a dataset’s view — its filters, sorts and chart. A spreadsheet has none.": "Um passo de narrativa salva a visão de um conjunto de dados — seus filtros, ordenações e gráfico. Uma planilha não tem nenhum.",@@ -142,7 +141,6 @@ export const pt: Catalog = {"Copied — {size} of JSON.": "Copiado — {size} de JSON.","Copy": "Copiar","Copy document JSON": "Copiar o JSON do documento",- "Copy saved": "Cópia salva","Copy something first — paste special pastes what dash last copied.": "Copie algo primeiro — colar especial cola o que o dash copiou por último.","Copy the selection": "Copiar a seleção","Could not check for updates: {why}": "Não foi possível verificar atualizações: {why}",@@ -765,4 +763,10 @@ export const pt: Catalog = {"Open \"{name}\" as a spreadsheet": "Abrir “{name}” como planilha","Not a number — left out of totals, and a formula that reads it gives #VALUE!": "Não é um número — fica fora dos totais, e uma fórmula que o lê dá #VALUE!","This file was updated. Reload to run the new version before saving again.": "Este arquivo foi atualizado. Recarregue para executar a nova versão antes de salvar novamente.",+ "This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.": "Esta cópia recuperada parece mais antiga do que o arquivo que você abriu. Mantenha o arquivo, a menos que saiba que a cópia é mais recente.",+ "Keep the file": "Manter o arquivo",+ "Restore anyway": "Restaurar mesmo assim",+ "Copy saved — you are still editing the original": "Cópia salva — você continua editando o original",+ "Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.": "A recuperação de falhas está desativada para esta pasta de trabalho: ela é grande demais para manter uma cópia de segurança. Salve com frequência.",+ "A backup of this workbook for yourself — same workbook, same live session.": "Um backup desta pasta de trabalho para você — mesma pasta de trabalho, mesma sessão ao vivo.",}diff --git a/dash/src/i18n/zh-Hans.ts b/dash/src/i18n/zh-Hans.tsindex d12eff27..6a01e482 100644--- a/dash/src/i18n/zh-Hans.ts+++ b/dash/src/i18n/zh-Hans.ts@@ -34,7 +34,6 @@ export const zhHans: Catalog = {"A pivot summarises a dataset’s columns, and this sheet has none.": "透视表汇总数据集的列,而此工作表没有列。","A rule colours cells by what they CONTAIN, so the colour follows the data — sort, filter or edit a value and it moves with it.": "规则按单元格的内容着色,颜色跟随数据——排序、筛选或修改数值时,颜色也随之移动。","A rule says what may be TYPED here. Existing values are never changed by adding one — anything that breaks it is marked instead.": "规则规定这里可以输入什么。添加规则不会改动已有的值——不符合的值只会被标记出来。",- "A second file you carry on working in — same workbook, same identity.": "另一个可以继续工作的文件 — 同一个工作簿,同一个身份。","A separate workbook — same data, new identity. Nothing links it back to this one.": "独立的工作簿 — 数据相同,身份全新。它与当前文件不再有任何关联。","A starting point: every open of it becomes a fresh workbook of its own.": "一个起点:每次打开它都会生成一个全新的工作簿。","A story step saves a dataset’s view — its filters, sorts and chart. A spreadsheet has none.": "故事步骤保存数据集的视图 — 筛选、排序和图表。电子表格没有这些。",@@ -129,7 +128,6 @@ export const zhHans: Catalog = {"Copied — {size} of JSON.": "已复制 — {size} 的 JSON。","Copy": "复制","Copy document JSON": "复制文档 JSON",- "Copy saved": "副本已保存","Copy something first — paste special pastes what dash last copied.": "请先复制 — 选择性粘贴会粘贴 dash 最后复制的内容。","Copy the selection": "复制所选内容","Could not check for updates: {why}": "无法检查更新:{why}",@@ -752,4 +750,10 @@ export const zhHans: Catalog = {"+ Comment on the selected cell": "+ 为所选单元格添加评论","This file was updated. Reload to run the new version before saving again.": "此文件已更新。请先重新加载以运行新版本,然后再保存。","Not a number — left out of totals, and a formula that reads it gives #VALUE!": "不是数字 — 未计入合计,读取它的公式会得到 #VALUE!",+ "This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.": "此恢复副本似乎比你打开的文件更旧。除非你确定它更新,否则请保留该文件。",+ "Keep the file": "保留文件",+ "Restore anyway": "仍然恢复",+ "Copy saved — you are still editing the original": "副本已保存 — 你仍在编辑原文件",+ "Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.": "此工作簿的崩溃恢复已关闭 — 文件太大,无法保留备份。请经常保存。",+ "A backup of this workbook for yourself — same workbook, same live session.": "自己留存的备份 — 同一个工作簿、同一个实时会话。",}diff --git a/dash/src/i18n/zh-Hant.ts b/dash/src/i18n/zh-Hant.tsindex 46e697c7..73028f3f 100644--- a/dash/src/i18n/zh-Hant.ts+++ b/dash/src/i18n/zh-Hant.ts@@ -34,7 +34,6 @@ export const zhHant: Catalog = {"A pivot summarises a dataset’s columns, and this sheet has none.": "樞紐分析彙總資料集的欄,而此工作表沒有欄。","A rule colours cells by what they CONTAIN, so the colour follows the data — sort, filter or edit a value and it moves with it.": "規則依儲存格的內容上色,顏色跟著資料走——排序、篩選或修改數值時,顏色也跟著移動。","A rule says what may be TYPED here. Existing values are never changed by adding one — anything that breaks it is marked instead.": "規則規定這裡可以輸入什麼。新增規則不會改動既有的值——不符合的值只會被標記出來。",- "A second file you carry on working in — same workbook, same identity.": "另一個可以繼續編輯的檔案 — 同一份活頁簿,同一個識別。","A separate workbook — same data, new identity. Nothing links it back to this one.": "獨立的活頁簿 — 相同資料,全新識別。不會連回目前這一份。","A starting point: every open of it becomes a fresh workbook of its own.": "一個起點:每次開啟它,都會變成一份自己的全新活頁簿。","A story step saves a dataset’s view — its filters, sorts and chart. A spreadsheet has none.": "故事步驟儲存資料集的檢視 — 篩選、排序和圖表。試算表沒有這些。",@@ -129,7 +128,6 @@ export const zhHant: Catalog = {"Copied — {size} of JSON.": "已複製 — {size} 的 JSON。","Copy": "複製","Copy document JSON": "複製文件 JSON",- "Copy saved": "已儲存副本","Copy something first — paste special pastes what dash last copied.": "請先複製 — 選擇性貼上會貼上 dash 最後複製的內容。","Copy the selection": "複製選取範圍","Could not check for updates: {why}": "無法檢查更新:{why}",@@ -752,4 +750,10 @@ export const zhHant: Catalog = {"+ Comment on the selected cell": "+ 為選取的儲存格加註解","This file was updated. Reload to run the new version before saving again.": "此檔案已更新。請先重新載入以執行新版本,再進行儲存。","Not a number — left out of totals, and a formula that reads it gives #VALUE!": "不是數字 — 未計入合計,讀取它的公式會得到 #VALUE!",+ "This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.": "此復原副本似乎比你開啟的檔案更舊。除非你確定它較新,否則請保留該檔案。",+ "Keep the file": "保留檔案",+ "Restore anyway": "仍然還原",+ "Copy saved — you are still editing the original": "副本已儲存 — 你仍在編輯原始檔案",+ "Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.": "此活頁簿的當機復原已關閉 — 檔案太大,無法保留備份。請經常儲存。",+ "A backup of this workbook for yourself — same workbook, same live session.": "自己留存的備份 — 同一個活頁簿、同一個即時會話。",}diff --git a/dash/src/main.ts b/dash/src/main.tsindex 5415cc4d..12055a09 100644--- a/dash/src/main.ts+++ b/dash/src/main.ts@@ -29,7 +29,7 @@ import {currentFileName,} from '../../kernel/src/save.ts'import { startTheme } from '../../kernel/src/theme.ts'-import { putRecovery, pruneOld } from '../../kernel/src/autosave.ts'+import { putRecovery, pruneOld, onRecoveryOff, recoveryOff } from '../../kernel/src/autosave.ts'import { FileWriteBack } from './writeback.ts'import { APP_VERSION } from '../../kernel/src/update.ts'import { mountAbout, openAbout, rememberVersion, checkAtLaunch } from './about.ts'@@ -89,7 +89,7 @@ import {} from './cellfmt.ts'import { rangeKeys, stylePatch } from './cellprops.ts'import { mountComments, flatComments } from './comments.ts'-import { mountRecovery } from './recovery.ts'+import { mountRecovery, recoveryOffNotice } from './recovery.ts'import { mountDropOpen } from './dropopen.ts'import { Grid, canvasKey, CANVAS_MAX_ROWS, CANVAS_MAX_COLS } from './grid.ts'// Paste Special and Text to Columns. Both are DOM-free decisions with their@@ -1265,7 +1265,11 @@ function boot(doc: DashDoc, repaired: number, frozen?: 'policy' | 'version', sav// session — but somebody editing for an hour on the assumption that a// crash costs them nothing deserves to know it costs them everything.void putRecovery(store.doc).then((stored) => {- if (stored || warnedNoBackstop) return+ // A REFUSED copy (too large for the per-document store) is a different+ // fact from a browser with no storage, and has its own message — see+ // onRecoveryOff below. Saying "this browser will not keep a backup"+ // there would blame the wrong thing and advise the wrong fix.+ if (stored || warnedNoBackstop || recoveryOff(store.doc.docId)) returnwarnedNoBackstop = truetoast(t('This browser will not keep a local backup of your work. Save the file yourself to keep changes.'))})@@ -1281,6 +1285,11 @@ function boot(doc: DashDoc, repaired: number, frozen?: 'policy' | 'version', sav}, 2500)}let warnedNoBackstop = false+ // CRASH RECOVERY OFF, said once per workbook (maintainer wording 2026-10-15,+ // slides' string with "workbook"). The kernel fires this when the+ // per-document store refuses the recovery copy; from then on there is no+ // backstop, and the author should hear it rather than assume one.+ onRecoveryOff(recoveryOffNotice(store, toast))// --- write-back to the real file//diff --git a/dash/src/recovery.ts b/dash/src/recovery.tsindex 020702a0..0e5f2bce 100644--- a/dash/src/recovery.ts+++ b/dash/src/recovery.ts@@ -47,7 +47,7 @@// callers, so they cannot drift apart again.import './recovery.css'-import { getRecovery, clearRecovery, type Snapshot } from '../../kernel/src/autosave.ts'+import { getRecovery, clearRecovery, recoveryLooksOlder, type Snapshot } from '../../kernel/src/autosave.ts'import { isEncryptionActive } from '../../kernel/src/save.ts'import { planReplace } from './about.ts'import { parseDoc, type DashDoc } from './model.ts'@@ -121,7 +121,13 @@ export type NoOfferReason =| 'same' // rule 1 — the file already has these editsexport type RecoveryDecision =- | { offer: true; doc: DashDoc; at: number }+ /**+ * `older`: the snapshot predates the file that loaded (kernel+ * `recoveryLooksOlder`). A SIGNAL for the banner's wording, never a reason+ * not to offer (maintainer ruling 2026-10-15): two devices' clocks can make+ * a newer copy look older, and a hidden offer is unrecoverable work.+ */+ | { offer: true; doc: DashDoc; at: number; older: boolean }| { offer: false; why: NoOfferReason }export interface DecideInput {@@ -200,7 +206,9 @@ export function decide(input: DecideInput): RecoveryDecision {const doc = restoredWorkbook(input.snapshot.json, input.doc)if (!doc) return { offer: false, why: 'unreadable' }if (contentKey(doc) === contentKey(input.doc)) return { offer: false, why: 'same' }- return { offer: true, doc, at: input.snapshot.at }+ // Read against the workbook AS LOADED: `modified` is stamped on every edit,+ // so asking after the reader has typed would compare against their typing.+ return { offer: true, doc, at: input.snapshot.at, older: recoveryLooksOlder(input.snapshot, input.doc) }}// --- swapping a whole workbook in -------------------------------------------@@ -263,6 +271,18 @@ export function swapWorkbook(host: WorkbookHost, next: DashDoc): boolean {* ever written) can assert on it. Never throws: a failure here must not be able* to take down a boot that has otherwise succeeded.*/+/**+ * The listener main.ts hands to the kernel's `onRecoveryOff`: says, for THIS+ * workbook only, that crash recovery is off (maintainer wording 2026-10-15).+ * Here rather than inline so the rig can drive the exact function the app uses.+ */+export function recoveryOffNotice(store: Store, say: (message: string) => void): (docId: string) => void {+ return (docId) => {+ if (docId !== store.doc.docId) return+ say(t('Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.'))+ }+}+export async function mountRecovery(host: WorkbookHost): Promise<NoOfferReason | 'offered'> {const doc = host.store.doc// Rule 2, enforced before the read as well as inside `decide`: an encrypted@@ -272,11 +292,18 @@ export async function mountRecovery(host: WorkbookHost): Promise<NoOfferReason |try { snapshot = await getRecovery(doc.docId) } catch { return 'none' }const d = decide({ snapshot, doc, encrypted: false, readOnly: host.store.readOnly })if (!d.offer) return d.why- showBanner(host, d.doc, d.at)+ showRecoveryBanner(host, d.doc, d.at, d.older)return 'offered'}-function showBanner(host: WorkbookHost, recovered: DashDoc, at: number): void {+/**+ * The offer. Exported for the rig, with `clear` injectable so it can PROVE+ * which answers delete the snapshot — "Keep the file" must not, ever.+ */+export function showRecoveryBanner(+ host: WorkbookHost, recovered: DashDoc, at: number, older = false,+ clear: (docId: string) => unknown = clearRecovery,+): void {document.querySelector('.dxr-bar')?.remove()const bar = document.createElement('div')bar.className = 'dxr-bar'@@ -287,9 +314,16 @@ function showBanner(host: WorkbookHost, recovered: DashDoc, at: number): void {})const msg = document.createElement('span')msg.className = 'dxr-msg'- msg.textContent = t('Unsaved changes from {when} were found in this browser.', { when })+ // THE OLDER CASE WARNS AND KEEPS THE FILE BY DEFAULT — slides' banner,+ // word for word (maintainer ruling 2026-10-15). It still OFFERS the copy:+ // "older" comes from two clocks that need not agree, so it only changes the+ // advice. No "newer"/"safe" wording in the ordinary case: when there is no+ // warning the banner says what was found and nothing about which to trust.+ msg.textContent = older+ ? t('This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.')+ : t('Unsaved changes from {when} were found in this browser.', { when })- const restore = btn(t('Restore'), 'dxr-primary')+ const restore = btn(older ? t('Restore anyway') : t('Restore'), older ? '' : 'dxr-primary')const discard = btn(t('Discard'))const x = closeBtn(bar, t('Dismiss — the changes stay in this browser'))@@ -318,10 +352,22 @@ function showBanner(host: WorkbookHost, recovered: DashDoc, at: number): void {})discard.addEventListener('click', () => {- void clearRecovery(host.store.doc.docId)+ void clear(host.store.doc.docId)bar.remove()})+ if (older) {+ // "Keep the file" DISMISSES; it does not delete. A false "older" (clock+ // skew) must never cost the copy — it stays for the next open, exactly+ // like ✕. Discard is not offered here: deleting is the one answer the+ // advice does not support. Keep comes first and takes focus.+ const keep = btn(t('Keep the file'), 'dxr-primary')+ keep.addEventListener('click', () => bar.remove())+ bar.append(msg, keep, restore)+ document.body.append(bar)+ keep.focus?.()+ return+ }bar.append(msg, restore, discard, x)document.body.append(bar)}diff --git a/dash/src/saveui.ts b/dash/src/saveui.tsindex e5119b4a..72e21328 100644--- a/dash/src/saveui.ts+++ b/dash/src/saveui.ts@@ -18,9 +18,10 @@// consequence was measured and ugly: export a read-only copy, keep// working, press ⌘S — and the FULL document overwrites the locked copy you// just handed someone. Templates and read-only copies below pass no-// `keepHandle`. "Save a copy" deliberately does keep it (it goes through-// `saveFile(doc, true)`, which is the copy purpose): a copy is a file you-// continue in, an export is a file you hand over.+// `keepHandle`. Neither does "Save a copy" (maintainer ruling 2026-10-15):+// the copy is a backup you keep, and you go on editing the ORIGINAL — the+// kernel's `saveFile(doc, true)` answers 'copied' and leaves its handle+// where it was.// 2. IDENTITY CHANGES IN EXACTLY ONE PLACE. `docId` is minted once and never// regenerated (PLATFORM §3); "Save as new workbook" is the only sanctioned// exception, and it mints a fresh id AND drops any collaboration@@ -51,7 +52,7 @@// nobody honours is worse than no tier at all.import './saveui.css'-import { afterPendingWrites, saveRevision, savingFor, type Acknowledge } from './saving.ts'+import { afterPendingWrites, copyLanding, saveRevision, savingFor, type Acknowledge } from './saving.ts'import {saveFile, serializeAuto, writeUpdatedFileAs, canWriteInPlace, adoptFileHandle,isEncryptionActive, setEncryptionPassword,@@ -235,21 +236,18 @@ export function installSaveMenu(host: SaveMenuHost): void {item(t('Save'), t('Write this workbook back to its own file.'),() => host.save())- item(t('Save a copy…'), t('A second file you carry on working in — same workbook, same identity.'),+ item(t('Save a copy…'), t('A backup of this workbook for yourself — same workbook, same live session.'),async () => {if (!confirmBudget(store.doc)) returnif (refuseSuperseded()) return- // THE COPY BECOMES THE OPEN FILE: `saveFile(…, true)` keeps the picked- // handle, so the next ⌘S and the next automatic save go to it. That is- // a handle change, so it queues behind any write still in flight to- // the old one, and it acknowledges like ⌘S — it was not acknowledged- // at all before, so the dot stayed lit over a file that held every edit- // and write-back rewrote the copy it had just been handed.- const out = await saveRevision(store, (snap) => saveFile(snap, true),- (r) => r === 'saved' || r === 'saved-as' ? 'open-file' : r === 'downloaded' ? 'elsewhere' : 'nowhere',- host.ack)+ // THE COPY IS WRITTEN; THE OPEN FILE DOES NOT CHANGE. Still queued, so+ // the copy's snapshot cannot interleave with a write to the original,+ // but it is acknowledged as 'elsewhere': nothing is adopted as the+ // open file's content and the unsaved dot is left exactly as it was —+ // the original is still the file it describes.+ const out = await saveRevision(store, (snap) => saveFile(snap, true), copyLanding, host.ack)if (out.kind === 'failed') return failed(out.error)- if (out.kind === 'done' && out.value !== 'cancelled') toast(t('Copy saved'))+ if (out.kind === 'done' && out.value !== 'cancelled') toast(t('Copy saved — you are still editing the original'))})item(t('Save as new workbook…'), t('A separate workbook — same data, new identity. Nothing links it back to this one.'),diff --git a/dash/src/saving.ts b/dash/src/saving.tsindex 9e668bba..34a996d9 100644--- a/dash/src/saving.ts+++ b/dash/src/saving.ts@@ -69,6 +69,16 @@ export type Landed =/** nothing was written */| 'nowhere'+/**+ * "Save a copy…" never lands in the OPEN file (maintainer ruling 2026-10-15):+ * the copy is written and the workbook stays on the original — ⌘S, automatic+ * write-back and the unsaved dot all keep describing the original. The kernel+ * answers 'copied' and keeps its handle; a download is a copy too. Whatever+ * the kernel answers, nothing but a cancel is anything other than "elsewhere",+ * so a future result name can never quietly retarget the workbook.+ */+export const copyLanding = (r: string): Landed => (r === 'cancelled' ? 'nowhere' : 'elsewhere')+export interface Acknowledge {/** the open file holds these bytes — write-back must not rewrite them */adopt(doc: DashDoc): voiddiff --git a/docs/DECISIONS.md b/docs/DECISIONS.mdindex 80db59fe..e237537c 100644--- a/docs/DECISIONS.md+++ b/docs/DECISIONS.md@@ -10346,3 +10346,21 @@ Mutations, all red by exit code:Naming a content key, an identity key, or a misspelled key in `syncHistory`fails tsc.++## 2026-10-15 — dash: Save a copy and the older-copy banner, per the maintainer ruling++Dash adopts the maintainer's ruling and slides' wording (#713) verbatim. Two+choices are dash's and are recorded because a later change could undo them:++- **A copy never lands in the open file, whatever the kernel answers.**+ `copyLanding` (dash/src/saving.ts) maps every result but `cancelled` to+ "elsewhere", rather than listing the results that mean a copy. A future result+ name, or an old one like `saved-as`, can then never retarget the workbook or+ clear its unsaved dot.+- **"Keep the file" dismisses; it never deletes.** The older-copy banner offers+ Keep (default, focused) and Restore anyway, and no Discard. "Older" comes from+ two clocks that need not agree (kernel `recoveryLooksOlder`), so the advice+ must never cost the copy. It stays for the next open, as ✕ already left it.+ `recoveryLooksOlder` is read against the workbook AS LOADED, because dash+ stamps `modified` on every edit.+diff --git a/scripts/test-dash-recovery.ts b/scripts/test-dash-recovery.tsindex 47399655..d1853c99 100644--- a/scripts/test-dash-recovery.ts+++ b/scripts/test-dash-recovery.ts@@ -252,7 +252,9 @@ console.log('\nrestoring a whole workbook is reversible, from both surfaces')append(...n: FakeNode[]): voidremove(): voidclick(): void+ focus(): void}+ let focused: FakeNode | null = nullconst all: FakeNode[] = []const make = (tag: string): FakeNode => {const handlers: Record<string, Array<() => void>> = {}@@ -267,6 +269,7 @@ console.log('\nrestoring a whole workbook is reversible, from both surfaces')n.parent = null},click() { for (const fn of handlers.click ?? []) fn() },+ focus() { focused = n },}all.push(n)return n@@ -324,6 +327,69 @@ console.log('\nrestoring a whole workbook is reversible, from both surfaces')ok(bars().length === 0 && store2.doc.title === 'Restored','dismissing with ✕ keeps the restored workbook — it is not a second Undo')+ // THE OLDER-COPY BANNER (maintainer ruling 2026-10-15, slides' wording):+ // when the snapshot predates the file it WARNS, puts "Keep the file" first+ // and focused, and keeping does not delete; it never hides the offer. With+ // no warning it says only what was found — never "newer" or "safe".+ {+ const { showRecoveryBanner, decide: decide2 } = await import('../dash/src/recovery.ts')+ const cleared: string[] = []+ const clear = (id: string) => { cleared.push(id) }+ const buttons = () => walk(body).filter((n) => n.tag === 'button').map((n) => n.textContent)+ const text = () => walk(body).map((n) => n.textContent).join(' ')++ // decide(): the signal, and that it never suppresses the offer+ const fileAt = '2026-10-15T12:00:00Z'+ const loadedFile = loaded({ modified: fileAt })+ const changed = workbook({ title: 'Edited later' })+ const snapAt = (ms: number): Snapshot => ({ docId: 'doc-1', at: ms, title: 'x', json: JSON.stringify(changed) })+ const early = decide2({ doc: loadedFile, encrypted: false, readOnly: false, snapshot: snapAt(Date.parse(fileAt) - 60_000) })+ ok(early.offer && early.older, 'a snapshot from BEFORE the file was saved is offered AND flagged older — never hidden')+ const late = decide2({ doc: loadedFile, encrypted: false, readOnly: false, snapshot: snapAt(Date.parse(fileAt) + 60_000) })+ ok(late.offer && !late.older, 'a snapshot from after the save is offered, not flagged')+ const unknown = decide2({ doc: loaded(), encrypted: false, readOnly: false, snapshot: snapAt(1) })+ ok(unknown.offer && !unknown.older, 'a file with no `modified` is never called older — unknown says nothing')++ // the older banner+ const st = new Store(workbook({ title: 'On screen' }))+ const h = { store: st, showingSheet: () => 'sheet-1', showSheet: () => {} }+ focused = null+ showRecoveryBanner(h, workbook({ title: 'Recovered' }), 1_700_000_000_000, true, clear)+ ok(walk(body).some((n) => n.textContent === 'This recovered copy looks older than the file you opened. Keep the file unless you know it’s newer.'),+ 'older: the banner carries the approved warning, word for word')+ ok(buttons().join('|') === 'Keep the file|Restore anyway', `older: "Keep the file" then "Restore anyway", and no Discard (${buttons().join(' · ')})`)+ const keep = walk(body).find((n) => n.textContent === 'Keep the file')!+ ok(keep.className.includes('dxr-primary') && focused === keep, 'older: Keep is the primary button and takes focus — keeping is the default')+ ok(!walk(body).find((n) => n.textContent === 'Restore anyway')!.className.includes('dxr-primary'), 'older: Restore anyway is NOT primary')+ keep.click()+ ok(bars().length === 0 && cleared.length === 0, 'Keep the file dismisses WITHOUT deleting the snapshot — a false "older" must never cost the copy')+ ok(st.doc.title === 'On screen', 'and the workbook on screen is untouched')++ showRecoveryBanner(h, workbook({ title: 'Recovered' }), 1_700_000_000_000, true, clear)+ walk(body).find((n) => n.textContent === 'Restore anyway')!.click()+ ok(st.doc.title === 'Recovered', 'Restore anyway still restores — the warning advises, it does not forbid')++ // the ordinary banner: unchanged, and claims nothing+ for (const b of bars()) b.remove()+ const st2 = new Store(workbook({ title: 'On screen' }))+ showRecoveryBanner({ store: st2, showingSheet: () => 'sheet-1', showSheet: () => {} }, workbook({ title: 'Recovered' }), 1_700_000_000_000, false, clear)+ ok(buttons().join('|') === 'Restore|Discard|✕', `not older: Restore, Discard, ✕ as before (${buttons().join(' · ')})`)+ ok(!/newer|safe|older/i.test(text()), `not older: no claim about which copy is newer or safe — "${text()}"`)+ walk(body).find((n) => n.textContent === 'Discard')!.click()+ ok(cleared.length === 1, 'Discard is the one answer that deletes the snapshot')+ for (const b of bars()) b.remove()++ // CRASH RECOVERY OFF: the exact listener main.ts registers with the kernel+ const { recoveryOffNotice } = await import('../dash/src/recovery.ts')+ const said: string[] = []+ const notice = recoveryOffNotice(new Store(workbook()), (m) => said.push(m))+ notice('some-other-doc')+ ok(said.length === 0, 'recovery-off for ANOTHER document says nothing here')+ notice('doc-1')+ ok(said.join() === 'Crash recovery is off for this workbook — it’s too large to keep a backup copy. Save often.',+ `recovery-off for this workbook says the approved sentence, word for word — "${said.join()}"`)+ }+delete (globalThis as Record<string, unknown>).document}diff --git a/scripts/test-dash-save-revisions.ts b/scripts/test-dash-save-revisions.tsindex 3e562f85..078597b3 100644--- a/scripts/test-dash-save-revisions.ts+++ b/scripts/test-dash-save-revisions.ts@@ -25,7 +25,7 @@ registerHooks({const { parseDoc } = await import('../dash/src/model.ts')const { Store } = await import('../dash/src/store.ts')-const { savingFor, saveRevision, afterPendingWrites } = await import('../dash/src/saving.ts')+const { savingFor, saveRevision, afterPendingWrites, copyLanding } = await import('../dash/src/saving.ts')const { FileWriteBack } = await import('../dash/src/writeback.ts')type DashDoc = import('../dash/src/model.ts').DashDoc@@ -162,6 +162,27 @@ for (const [landed, clean, adopt] of [['open-file', 1, 1], ['download', 1, 0], [`${landed}: dot ${clean ? 'clears' : 'stays'}, ${adopt ? 'adopted' : 'not adopted'} as the file's content`)}+console.log('\nSave a copy… leaves the workbook on the ORIGINAL (maintainer ruling 2026-10-15)')+{+ for (const [r, want] of [['copied', 'elsewhere'], ['downloaded', 'elsewhere'], ['saved-as', 'elsewhere'], ['saved', 'elsewhere'], ['cancelled', 'nowhere']] as const) {+ ok(copyLanding(r) === want, `a copy answering '${r}' lands ${want} — never in the open file`)+ }+ // end to end, the way saveui.ts drives it: dirty workbook, copy written+ const s = new Store(fresh())+ edit(s, 7)+ const { a, ack } = ackSpy()+ const out = await saveRevision(s, async () => 'copied', copyLanding, ack)+ ok(out.kind === 'done' && a.cleaned === 0 && a.adopted.length === 0,+ 'after a copy, the unsaved dot still describes the original and nothing is adopted as its content')+ // The menu handler is DOM-only, so it is checked by what it CALLS: the copy+ // must go through copyLanding, and the toast must say you are still on the original.+ const { readFileSync } = await import('node:fs')+ const ui = readFileSync(new URL('../dash/src/saveui.ts', import.meta.url), 'utf8')+ ok(/saveRevision\(store, \(snap\) => saveFile\(snap, true\), copyLanding, host\.ack\)/.test(ui),+ 'saveui.ts writes the copy through copyLanding — not a mapping that could retarget the workbook')+ ok(ui.includes("t('Copy saved — you are still editing the original')"), 'and its toast says you are still on the original')+}+console.log('\na write for a workbook that has been replaced is never made'){const s = new Store(fresh())