Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

spaces: popovers that fit, plurals that agree, and a home for the shortcuts (#359)

nyblnet8b47509a42c6
diff --git a/scripts/test-spaces-model.ts b/scripts/test-spaces-model.ts
index fee7e97c..d28520ac 100644
--- a/scripts/test-spaces-model.ts
+++ b/scripts/test-spaces-model.ts
@@ -357,6 +357,76 @@ for (const [label, input, err] of [
ok(/store\.replaceDoc\(restored\)/.test(about), '…and restores through replaceDoc, so ⌘Z walks it back')
}
+// ---- a popover is as tall as the room it has ------------------------------
+// .sp-pop carried `max-height: 44vh`. On a 900px window that is 396px, and the
+// share panel wants 543 — measured: 149px clipped, with "Start live session"
+// and "Reset access…" both below the fold. The primary action of the sharing
+// panel was reachable only by noticing that a box showing no scrollbar scrolls.
+// A 13" laptop is worse.
+{
+ const fs = await import('node:fs')
+ const ed = fs.readFileSync(new URL('../spaces/src/editor.ts', import.meta.url), 'utf8')
+ const css = fs.readFileSync(new URL('../spaces/src/styles.css', import.meta.url), 'utf8')
+ const props = fs.readFileSync(new URL('../spaces/src/props.ts', import.meta.url), 'utf8')
+
+ ok(!/\.sp-pop \{[^}]*max-height: 44vh/.test(css), 'the popover is not capped at a fraction of the window')
+ ok(/pop\.style\.maxHeight = /.test(ed), '…place() gives it the room the anchor actually leaves')
+ // Both popover builders must route through the helper, or the one that does
+ // not will size itself once and stay that size while the window moves.
+ const viaHelper = (ed.match(/else this\.placed\(pop, anchor\)/g) ?? []).length
+ ok(viaHelper === 2, 'both popover call sites place through the same helper')
+ ok(/addEventListener\('resize', reflow\)/.test(ed), '…which re-places on resize')
+ ok(/removeEventListener\('resize', reflow\)/.test(ed), '…and takes the listener back off when it closes')
+
+ // THE EXTRACTOR SWEEPS LITERALS. A helper that picks a key —
+ // `t(n === 1 ? one : many)` — compiles, runs, and is never translated by
+ // anyone, because no catalog ever learns the strings exist. This cost a round
+ // trip while the plural was being written, and the model rig is where that
+ // lesson is cheap to keep.
+ for (const key of ['{n} block', '{n} blocks', '{n} word', '{n} words',
+ '{n} link to this page', '{n} links to this page']) {
+ ok(props.includes(`t('${key}'`), `the panel's "${key}" is a literal at its own call site, so it is swept`)
+ }
+ ok(!/\{blocks\} blocks · \{words\} words/.test(props),
+ '…and the old one-string-three-plurals stat is gone (it read "1 blocks · 1 words")')
+}
+
+// ---- the shortcut list documents keys that exist --------------------------
+// A help screen listing a key the app does not bind is worse than no help
+// screen: the reader doubts their keyboard rather than the page, and there is
+// no way for them to tell which of the two is wrong. So every ⌘-letter the
+// overlay prints is checked against the keydown handler that would have to
+// implement it. The prose in the starter space says the same things, but the
+// starter is a DOCUMENT — deleting it is the first thing many people do, and
+// the reference should not go with it.
+{
+ const fs = await import('node:fs')
+ const ed = fs.readFileSync(new URL('../spaces/src/editor.ts', import.meta.url), 'utf8')
+
+ ok(/openHelp\(\): void/.test(ed), 'there is a shortcut list')
+ ok(/e\.key === '\?' && !isTyping\(\)/.test(ed),
+ "…opened by ? , behind the same isTyping guard as [ and ] (it is a character people type)")
+ ok(/label: t\('Keyboard shortcuts'\)/.test(ed),
+ '…and reachable from the menu, not only by the key it documents')
+
+ // Pull the ⌘-letters out of the overlay's own table and demand a binding for
+ // each. Letters only: the modifiers differ per branch and the point is that
+ // the key is handled at all, not how.
+ const from = ed.indexOf('const groups: Array<[string, Array<[string, string]>]>')
+ const table = ed.slice(from, ed.indexOf("const grid = el('div', 'sp-keys-grid')", from))
+ const letters = new Set<string>()
+ for (const m of table.matchAll(/'[⌘⇧⌥]*⌘([A-Z])'/g)) letters.add(m[1].toLowerCase())
+ ok(letters.size >= 8, `the list actually names shortcuts (${letters.size} found)`)
+ for (const c of [...letters].sort()) {
+ // Both spellings the file uses: the long `e.key.toLowerCase() === 'x'` of
+ // the command branches, and the short `k === 'x'` inside markKey(), which
+ // is where ⌘B/I/U/E and ⇧⌘S/H actually live. Matching only the long one
+ // reported ⌘U and ⌘H as unbound when they are bound three lines apart.
+ const bound = new RegExp(`=== '${c}'`).test(ed)
+ ok(bound, `⌘${c.toUpperCase()} in the list is a key something actually binds`)
+ }
+}
+
// ---- find & replace: the number shown IS the number changed ----------------
// Replace-all is destructive and lands in one commit, so the count in the
// readout, the count in the confirmation and the count of things that change
diff --git a/spaces/src/editor.ts b/spaces/src/editor.ts
index 853885d5..37c16722 100644
--- a/spaces/src/editor.ts
+++ b/spaces/src/editor.ts
@@ -105,6 +105,8 @@ export class Editor {
private sidebar!: HTMLElement
private statusEl!: HTMLElement
private overlay: HTMLElement | null = null
+ /** undo whatever the open popover attached to the window */
+ private overlayReflow: (() => void) | null = null
/** set while the editor is writing the DOM, so input handlers stand down */
private painting = false
/** reading view: the document without the machinery for changing it */
@@ -346,6 +348,9 @@ export class Editor {
{ icon: 'print', label: t('Print or save as PDF'), hint: '⌘P', run: () => this.openPrint() },
{ icon: 'info', label: t('About this space'), hint: t('Version, language, password, exports'),
run: () => this.openAbout() },
+ // A help screen only reachable by pressing the key it documents is a
+ // help screen for people who did not need it.
+ { icon: 'help', label: t('Keyboard shortcuts'), hint: '?', run: () => this.openHelp() },
]
const inlineSecondary = barActions.map((a) => {
@@ -1458,7 +1463,7 @@ export class Editor {
this.overlay = pop
document.body.append(pop)
if (this.isDrawer()) pop.classList.add('sp-sheet-in')
- else place(pop, anchor)
+ else this.placed(pop, anchor)
const away = (ev: MouseEvent) => {
if (!pop.contains(ev.target as Node)) { this.closeOverlay(); document.removeEventListener('mousedown', away) }
}
@@ -1661,7 +1666,7 @@ export class Editor {
this.overlay = pop
document.body.append(pop)
if (this.isDrawer()) pop.classList.add('sp-sheet-in')
- else place(pop, anchor)
+ else this.placed(pop, anchor)
const away = (ev: MouseEvent) => {
if (!pop.contains(ev.target as Node)) { this.closeOverlay(); document.removeEventListener('mousedown', away) }
}
@@ -2923,6 +2928,8 @@ export class Editor {
// takes a keystroke as readily as an input does.
if (!mod && e.key === '[' && !isTyping()) { e.preventDefault(); this.togglePane(); return }
if (!mod && e.key === ']' && !isTyping()) { e.preventDefault(); this.toggleInsp(); return }
+ // Same guard as [ and ]: '?' is a character somebody is entitled to type.
+ if (!mod && e.key === '?' && !isTyping()) { e.preventDefault(); this.openHelp(); return }
if (mod && e.shiftKey && e.key.toLowerCase() === 'i') { e.preventDefault(); this.newIssue(); return }
if (mod && e.key.toLowerCase() === 'z') {
e.preventDefault()
@@ -3140,7 +3147,123 @@ export class Editor {
card.querySelector<HTMLElement>('input,button,[tabindex]')?.focus()
}
+ /**
+ * The shortcut list.
+ *
+ * Every shortcut here was read off the keydown handler rather than off the
+ * documentation, because a help screen that lists a key the app does not
+ * bind is worse than no help screen: it makes the reader doubt the keyboard
+ * rather than the page. The starter space describes the same keys in prose,
+ * but the starter is a document — the first thing many people do is delete
+ * it, and the reference should not go with it.
+ *
+ * Built on .sp-overlay/.sp-card, the About dialog's shell, so it inherits
+ * the dialog's scrim, escape handling and focus return rather than growing a
+ * second set.
+ */
+ openHelp(): void {
+ this.closeOverlay()
+ const returnFocus = document.activeElement as HTMLElement | null
+ const back = el('div', 'sp-overlay')
+ const card = el('div', 'sp-card sp-keys')
+ card.setAttribute('role', 'dialog')
+ card.setAttribute('aria-modal', 'true')
+ card.setAttribute('aria-label', t('Keyboard shortcuts'))
+
+ const close = () => {
+ back.remove()
+ document.removeEventListener('keydown', onKey, true)
+ returnFocus?.focus?.()
+ }
+ const onKey = (e: KeyboardEvent) => {
+ if (e.key === 'Escape') { e.stopPropagation(); close() }
+ }
+
+ const h = el('h2', 'sp-card-h', t('Keyboard shortcuts'))
+ card.append(h)
+
+ const groups: Array<[string, Array<[string, string]>]> = [
+ [t('Writing'), [
+ ['↵', t('A new block')],
+ ['Tab / ⇧Tab', t('Indent, or move back out')],
+ ['/', t('The block menu, on an empty line')],
+ ['[[', t('Link to another page')],
+ ['⌘Z / ⇧⌘Z', t('Undo, redo')],
+ ]],
+ [t('Formatting'), [
+ ['⌘B', t('Bold')],
+ ['⌘I', t('Italic')],
+ ['⌘U', t('Underline')],
+ ['⇧⌘S', t('Strikethrough')],
+ ['⌘E', t('Code')],
+ ['⇧⌘H', t('Highlight')],
+ ['⌘K', t('Link the selected words')],
+ ]],
+ [t('Getting around'), [
+ ['⌘K', t('Search all pages, with nothing selected')],
+ ['⌘F', t('Find and replace')],
+ ['⌘⌥N', t('New page')],
+ ['⌘⇧J', t("Today's journal")],
+ ['⌘⇧I', t('New issue')],
+ ]],
+ [t('The workspace'), [
+ ['[', t('Show or hide the page list')],
+ [']', t('Show or hide properties')],
+ ['⌘S', t('Save')],
+ ['⌘P', t('Print or save as PDF')],
+ ['?', t('This list')],
+ ['Esc', t('Leave the reading view')],
+ ]],
+ ]
+
+ // Two columns where there is room. In one column the four groups run to
+ // 23 rows and the last three fall off the bottom of the card — a help
+ // screen that hides the help, which is the same defect this pass just took
+ // out of the share panel. The grid collapses to one column on a phone,
+ // where scrolling a list is what you expect anyway.
+ const grid = el('div', 'sp-keys-grid')
+ for (const [title, rows] of groups) {
+ const g = el('section', 'sp-keys-g')
+ g.append(el('h3', 'sp-keys-h', title))
+ const list = el('dl', 'sp-keys-list')
+ for (const [key, what] of rows) {
+ const dt = el('dt', '', '')
+ dt.append(el('kbd', 'sp-kbd', key))
+ list.append(dt, el('dd', '', what))
+ }
+ g.append(list)
+ grid.append(g)
+ }
+ card.append(grid)
+
+ back.append(card)
+ back.addEventListener('click', (e) => { if (e.target === back) close() })
+ document.addEventListener('keydown', onKey, true)
+ document.body.append(back)
+ card.tabIndex = -1
+ card.focus()
+ }
+
+ /**
+ * Place a popover AND keep it placed.
+ *
+ * place() sizes a popover to the room the window has right now, so its answer
+ * stops being true the moment the window changes. Stale in the small-to-large
+ * direction merely misplaces a box; stale the other way CLIPS it, which is
+ * the bug this change exists to remove — the 44vh it replaces at least
+ * tracked the viewport. Both popover call sites go through here so neither
+ * can forget.
+ */
+ private placed(pop: HTMLElement, anchor: HTMLElement): void {
+ place(pop, anchor)
+ const reflow = () => place(pop, anchor)
+ addEventListener('resize', reflow)
+ this.overlayReflow = () => removeEventListener('resize', reflow)
+ }
+
private closeOverlay(): void {
+ this.overlayReflow?.()
+ this.overlayReflow = null
this.overlay?.remove()
this.overlay = null
}
@@ -5020,17 +5143,36 @@ function caretRect(): DOMRect {
return new DOMRect(80, 120, 0, 0)
}
-/** Place a popover near an anchor without letting it leave the viewport. */
+/**
+ * Place a popover near an anchor without letting it leave the viewport.
+ *
+ * THE HEIGHT IS THE ROOM IT ACTUALLY HAS, not a fraction of the window. The
+ * CSS capped every popover at 44vh, which on a 900px-tall window is 396px —
+ * and the share panel wants 543. Measured before this: 149px clipped, with
+ * "Start live session" and "Reset access…" both below the fold. The primary
+ * action of the sharing panel was reachable only by noticing that a box with
+ * no visible scrollbar scrolls. A laptop at 800px fares worse.
+ *
+ * So the cap is computed per placement: pick the side with more room, give the
+ * popover that room, and only then measure to position it. The floor is 160px
+ * because a popover squeezed under a control near the bottom edge should flip
+ * rather than become a slot.
+ */
function place(pop: HTMLElement, anchor: HTMLElement | DOMRect): void {
const r = anchor instanceof HTMLElement ? anchor.getBoundingClientRect() : anchor
+ const GAP = 6, EDGE = 8
+ const below = innerHeight - r.bottom - GAP - EDGE
+ const above = r.top - GAP - EDGE
+ const useBelow = below >= above || below >= 320
+ pop.style.maxHeight = `${Math.max(160, useBelow ? below : above)}px`
+ // measured AFTER the cap, so a flip decides on the height the popover will
+ // actually have rather than the one CSS would have forced on it
const w = pop.offsetWidth || 260
const h = pop.offsetHeight || 260
let left = r.left
- let top = r.bottom + 6
- if (left + w > innerWidth - 8) left = Math.max(8, innerWidth - w - 8)
- if (top + h > innerHeight - 8) top = Math.max(8, r.top - h - 6)
- pop.style.left = `${Math.max(8, left)}px`
- pop.style.top = `${top}px`
+ if (left + w > innerWidth - EDGE) left = Math.max(EDGE, innerWidth - w - EDGE)
+ pop.style.left = `${Math.max(EDGE, left)}px`
+ pop.style.top = `${useBelow ? r.bottom + GAP : Math.max(EDGE, r.top - h - GAP)}px`
}
/**
diff --git a/spaces/src/i18n/de.ts b/spaces/src/i18n/de.ts
index c759fe81..61366118 100644
--- a/spaces/src/i18n/de.ts
+++ b/spaces/src/i18n/de.ts
@@ -563,4 +563,29 @@ export const de: Catalog = {
"most recent": "neueste",
"That version could not be read": "Diese Version konnte nicht gelesen werden",
"Restored the version from {when} — ⌘Z undoes it": "Version vom {when} wiederhergestellt — ⌘Z macht das rückgängig.",
+ "Dismiss": "Schließen",
+ "Toggle section": "Abschnitt auf- oder zuklappen",
+ "{n} block": "{n} Block",
+ "{n} blocks": "{n} Blöcke",
+ "{n} word": "{n} Wort",
+ "{n} words": "{n} Wörter",
+ "{n} link to this page": "{n} Link auf diese Seite",
+ "{n} links to this page": "{n} Links auf diese Seite",
+ "A new block": "Ein neuer Block",
+ "Find and replace": "Suchen und ersetzen",
+ "Formatting": "Formatierung",
+ "Getting around": "Navigieren",
+ "Indent, or move back out": "Einrücken, oder wieder heraus",
+ "Keyboard shortcuts": "Tastaturkürzel",
+ "Leave the reading view": "Leseansicht verlassen",
+ "Link the selected words": "Die markierten Wörter verlinken",
+ "Link to another page": "Auf eine andere Seite verlinken",
+ "Search all pages, with nothing selected": "Alle Seiten durchsuchen, wenn nichts markiert ist",
+ "Show or hide properties": "Eigenschaften ein- oder ausblenden",
+ "Show or hide the page list": "Seitenliste ein- oder ausblenden",
+ "The block menu, on an empty line": "Das Blockmenü, in einer leeren Zeile",
+ "The workspace": "Der Arbeitsbereich",
+ "This list": "Diese Liste",
+ "Undo, redo": "Rückgängig, wiederherstellen",
+ "Writing": "Schreiben",
}
diff --git a/spaces/src/i18n/es.ts b/spaces/src/i18n/es.ts
index ff6724c4..1ee65b8a 100644
--- a/spaces/src/i18n/es.ts
+++ b/spaces/src/i18n/es.ts
@@ -563,4 +563,29 @@ export const es: Catalog = {
"most recent": "más reciente",
"That version could not be read": "No se pudo leer esa versión",
"Restored the version from {when} — ⌘Z undoes it": "Se restauró la versión del {when}: ⌘Z lo deshace.",
+ "Dismiss": "Descartar",
+ "Toggle section": "Mostrar u ocultar la sección",
+ "{n} block": "{n} bloque",
+ "{n} blocks": "{n} bloques",
+ "{n} word": "{n} palabra",
+ "{n} words": "{n} palabras",
+ "{n} link to this page": "{n} enlace a esta página",
+ "{n} links to this page": "{n} enlaces a esta página",
+ "A new block": "Un bloque nuevo",
+ "Find and replace": "Buscar y reemplazar",
+ "Formatting": "Formato",
+ "Getting around": "Moverse",
+ "Indent, or move back out": "Sangrar, o volver a salir",
+ "Keyboard shortcuts": "Atajos de teclado",
+ "Leave the reading view": "Salir de la vista de lectura",
+ "Link the selected words": "Enlazar las palabras seleccionadas",
+ "Link to another page": "Enlazar a otra página",
+ "Search all pages, with nothing selected": "Buscar en todas las páginas, sin nada seleccionado",
+ "Show or hide properties": "Mostrar u ocultar las propiedades",
+ "Show or hide the page list": "Mostrar u ocultar la lista de páginas",
+ "The block menu, on an empty line": "El menú de bloques, en una línea vacía",
+ "The workspace": "El espacio de trabajo",
+ "This list": "Esta lista",
+ "Undo, redo": "Deshacer, rehacer",
+ "Writing": "Escribir",
}
diff --git a/spaces/src/i18n/fr.ts b/spaces/src/i18n/fr.ts
index 014da0dd..b09bf05f 100644
--- a/spaces/src/i18n/fr.ts
+++ b/spaces/src/i18n/fr.ts
@@ -563,4 +563,29 @@ export const fr: Catalog = {
"most recent": "la plus récente",
"That version could not be read": "Cette version n’a pas pu être lue",
"Restored the version from {when} — ⌘Z undoes it": "Version du {when} restaurée — ⌘Z annule.",
+ "Dismiss": "Ignorer",
+ "Toggle section": "Afficher ou masquer la section",
+ "{n} block": "{n} bloc",
+ "{n} blocks": "{n} blocs",
+ "{n} word": "{n} mot",
+ "{n} words": "{n} mots",
+ "{n} link to this page": "{n} lien vers cette page",
+ "{n} links to this page": "{n} liens vers cette page",
+ "A new block": "Un nouveau bloc",
+ "Find and replace": "Rechercher et remplacer",
+ "Formatting": "Mise en forme",
+ "Getting around": "Se déplacer",
+ "Indent, or move back out": "Indenter, ou revenir en arrière",
+ "Keyboard shortcuts": "Raccourcis clavier",
+ "Leave the reading view": "Quitter la vue lecture",
+ "Link the selected words": "Lier les mots sélectionnés",
+ "Link to another page": "Lier vers une autre page",
+ "Search all pages, with nothing selected": "Rechercher dans toutes les pages, sans sélection",
+ "Show or hide properties": "Afficher ou masquer les propriétés",
+ "Show or hide the page list": "Afficher ou masquer la liste des pages",
+ "The block menu, on an empty line": "Le menu de blocs, sur une ligne vide",
+ "The workspace": "L’espace de travail",
+ "This list": "Cette liste",
+ "Undo, redo": "Annuler, rétablir",
+ "Writing": "Écrire",
}
diff --git a/spaces/src/i18n/it.ts b/spaces/src/i18n/it.ts
index 5aa9316b..65149c8e 100644
--- a/spaces/src/i18n/it.ts
+++ b/spaces/src/i18n/it.ts
@@ -563,4 +563,29 @@ export const it: Catalog = {
"most recent": "più recente",
"That version could not be read": "Non è stato possibile leggere quella versione",
"Restored the version from {when} — ⌘Z undoes it": "Ripristinata la versione del {when} — ⌘Z annulla.",
+ "Dismiss": "Chiudi",
+ "Toggle section": "Mostra o nascondi la sezione",
+ "{n} block": "{n} blocco",
+ "{n} blocks": "{n} blocchi",
+ "{n} word": "{n} parola",
+ "{n} words": "{n} parole",
+ "{n} link to this page": "{n} link a questa pagina",
+ "{n} links to this page": "{n} link a questa pagina",
+ "A new block": "Un nuovo blocco",
+ "Find and replace": "Trova e sostituisci",
+ "Formatting": "Formattazione",
+ "Getting around": "Spostarsi",
+ "Indent, or move back out": "Rientra, o torna indietro",
+ "Keyboard shortcuts": "Scorciatoie da tastiera",
+ "Leave the reading view": "Esci dalla vista di lettura",
+ "Link the selected words": "Collega le parole selezionate",
+ "Link to another page": "Collega a un’altra pagina",
+ "Search all pages, with nothing selected": "Cerca in tutte le pagine, senza nulla selezionato",
+ "Show or hide properties": "Mostra o nascondi le proprietà",
+ "Show or hide the page list": "Mostra o nascondi l’elenco delle pagine",
+ "The block menu, on an empty line": "Il menu dei blocchi, su una riga vuota",
+ "The workspace": "Lo spazio di lavoro",
+ "This list": "Questo elenco",
+ "Undo, redo": "Annulla, ripeti",
+ "Writing": "Scrivere",
}
diff --git a/spaces/src/i18n/ja.ts b/spaces/src/i18n/ja.ts
index 09084455..973373e0 100644
--- a/spaces/src/i18n/ja.ts
+++ b/spaces/src/i18n/ja.ts
@@ -563,4 +563,29 @@ export const ja: Catalog = {
"most recent": "最新",
"That version could not be read": "そのバージョンを読み込めませんでした",
"Restored the version from {when} — ⌘Z undoes it": "{when} のバージョンを復元しました。⌘Z で取り消せます。",
+ "Dismiss": "閉じる",
+ "Toggle section": "セクションの開閉",
+ "{n} block": "{n} ブロック",
+ "{n} blocks": "{n} ブロック",
+ "{n} word": "{n} 語",
+ "{n} words": "{n} 語",
+ "{n} link to this page": "このページへのリンク {n} 件",
+ "{n} links to this page": "このページへのリンク {n} 件",
+ "A new block": "新しいブロック",
+ "Find and replace": "検索と置換",
+ "Formatting": "書式",
+ "Getting around": "移動",
+ "Indent, or move back out": "字下げ、または戻す",
+ "Keyboard shortcuts": "キーボードショートカット",
+ "Leave the reading view": "読書ビューを終了",
+ "Link the selected words": "選択した語句にリンクを付ける",
+ "Link to another page": "別のページへリンク",
+ "Search all pages, with nothing selected": "何も選択せずに全ページを検索",
+ "Show or hide properties": "プロパティの表示・非表示",
+ "Show or hide the page list": "ページ一覧の表示・非表示",
+ "The block menu, on an empty line": "空行でブロックメニュー",
+ "The workspace": "ワークスペース",
+ "This list": "この一覧",
+ "Undo, redo": "取り消し・やり直し",
+ "Writing": "書く",
}
diff --git a/spaces/src/i18n/packed.ts b/spaces/src/i18n/packed.ts
index fd47a8ea..bacc4ebb 100644
--- a/spaces/src/i18n/packed.ts
+++ b/spaces/src/i18n/packed.ts
@@ -20,6 +20,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"A link with nothing in it yet": ["まだ何も入っていないリンク","还没有内容的链接","還沒有內容的連結","Un enlace todavía sin nada","Un lien encore vide","Ein Link, in dem noch nichts steht","Un collegamento ancora vuoto","Um link ainda sem nada"],
"A list of every page, in order": ["すべてのページを順番に並べた一覧","按顺序列出的所有页面","依順序列出每一個頁面","Una lista de todas las páginas, en orden","La liste de toutes les pages, dans l’ordre","Eine Liste aller Seiten, der Reihe nach","Un elenco di tutte le pagine, in ordine","Uma lista de todas as páginas, por ordem"],
"A live viewer: follows every edit as it happens but can never change this space — the relay enforces it.": ["ライブビューア:編集をリアルタイムで追いますが、この Space を変更することはできません — リレーが強制します。","实时查看副本:实时跟随每次编辑,但永远无法修改此 Space — 由中继强制执行。","即時檢視副本:即時跟隨每次編輯,但永遠無法修改此 Space — 由中繼強制執行。","Un visor en vivo: sigue cada edición al instante pero nunca puede modificar este Space — el relé lo garantiza.","Un visualiseur en direct : suit chaque modification mais ne peut jamais changer cet espace — le relais l’applique.","Ein Live-Viewer: folgt jeder Änderung, kann diesen Space aber nie verändern — vom Relay erzwungen.","Un visualizzatore live: segue ogni modifica ma non può mai cambiare questo Space — imposto dal relay.","Um visualizador ao vivo: acompanha cada edição conforme acontece, mas nunca pode alterar este Space — o retransmissor garante isso."],
+ "A new block": ["新しいブロック","新建一个块","新增一個區塊","Un bloque nuevo","Un nouveau bloc","Ein neuer Block","Un nuovo blocco","Um bloco novo"],
"A note, tip or warning": ["メモ・ヒント・注意","注释、提示或警告","註記、提示或警告","Una nota, un consejo o una advertencia","Une note, un conseil ou un avertissement","Eine Notiz, ein Tipp oder eine Warnung","Una nota, un consiglio o un avviso","Uma nota, dica ou aviso"],
"A page cannot contain itself": ["ページを自分自身に入れることはできません","页面不能包含自身","頁面不能包含自己","Una página no puede contenerse a sí misma","Une page ne peut pas se contenir elle-même","Eine Seite kann sich nicht selbst enthalten","Una pagina non può contenere sé stessa","Uma página não pode conter-se a si própria"],
"A password encrypts the document inside the file. There is no recovery — lose it and the space is gone.": ["パスワードはファイル内のドキュメントを暗号化します。復元手段はありません — 忘れたらこのスペースは失われます。","密码会加密文件内的文档。没有任何找回方式 — 密码丢了,空间就没了。","密碼會加密檔案內的文件。沒有任何復原方式 — 密碼一旦遺失,這個空間就沒了。","Una contraseña cifra el documento dentro del archivo. No hay forma de recuperarla — si la pierdes, el espacio desaparece.","Un mot de passe chiffre le document à l’intérieur du fichier. Il n’y a aucune récupération — perdez-le et l’espace est perdu.","Ein Passwort verschlüsselt das Dokument in der Datei. Es gibt keine Wiederherstellung — verlierst du es, ist der Space weg.","Una password cifra il documento dentro il file. Non c’è modo di recuperarla — se la perdi, lo spazio è perso.","Uma palavra-passe encripta o documento dentro do ficheiro. Não há recuperação — se a perder, o espaço desaparece."],
@@ -129,6 +130,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Descending": ["降順","降序","遞減","Descendente","Décroissant","Absteigend","Decrescente","Decrescente"],
"Description": ["説明","描述","描述","Descripción","Description","Beschreibung","Descrizione","Descrição"],
"Discard": ["破棄","放弃","捨棄","Descartar","Ignorer","Verwerfen","Ignora","Descartar"],
+ "Dismiss": ["閉じる","关闭","關閉","Descartar","Ignorer","Schließen","Chiudi","Dispensar"],
"Divider": ["区切り線","分隔线","分隔線","Separador","Séparateur","Trennlinie","Separatore","Separador"],
"Document": ["文書","文档","文件","Documento","Document","Dokument","Documento","Documento"],
"Document JSON copied": ["ドキュメント JSON をコピーしました","已复制文档 JSON","已複製文件 JSON","JSON del documento copiado","JSON du document copié","Dokument-JSON kopiert","JSON del documento copiato","JSON do documento copiado"],
@@ -168,10 +170,13 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Filter": ["フィルター","筛选","篩選","Filtrar","Filtrer","Filtern","Filtra","Filtrar"],
"Filter blocks…": ["ブロックを絞り込む…","筛选块…","篩選區塊…","Filtrar bloques…","Filtrer les blocs…","Blöcke filtern…","Filtra i blocchi…","Filtrar blocos…"],
"Find": ["検索","查找","尋找","Buscar","Rechercher","Suchen","Trova","Localizar"],
+ "Find and replace": ["検索と置換","查找和替换","尋找與取代","Buscar y reemplazar","Rechercher et remplacer","Suchen und ersetzen","Trova e sostituisci","Localizar e substituir"],
"Find in this space…": ["このスペース内を検索…","在此空间中查找…","在此空間尋找…","Buscar en este espacio…","Rechercher dans cet espace…","In diesem Space suchen…","Trova in questo spazio…","Localizar neste espaço…"],
"Find or create a page…": ["ページを検索または作成…","查找或新建页面…","尋找或建立頁面…","Buscar o crear una página…","Trouver ou créer une page…","Seite finden oder erstellen…","Trova o crea una pagina…","Encontrar ou criar uma página…"],
"Following — view only": ["追従中 — 閲覧のみ","跟随中 — 仅供查看","跟隨中 — 僅供檢視","Siguiendo — solo lectura","Suivi en cours — lecture seule","Folgt mit — nur Ansicht","In ascolto — sola lettura","Acompanhando — somente visualização"],
+ "Formatting": ["書式","格式","格式","Formato","Mise en forme","Formatierung","Formattazione","Formatação"],
"Full width": ["全幅","全宽","全寬","Ancho completo","Pleine largeur","Volle Breite","Larghezza piena","Largura total"],
+ "Getting around": ["移動","导航","導覽","Moverse","Se déplacer","Navigieren","Spostarsi","Navegar"],
"Gray": ["グレー","灰色","灰色","Gris","Gris","Grau","Grigio","Cinza"],
"Green": ["緑","绿色","綠色","Verde","Vert","Grün","Verde","Verde"],
"Group": ["グループ","分组","分組","Agrupar","Grouper","Gruppieren","Raggruppa","Agrupar"],
@@ -200,6 +205,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Include archived pages": ["アーカイブしたページを含める","包含已归档页面","包含已封存的頁面","Incluir páginas archivadas","Inclure les pages archivées","Archivierte Seiten einbeziehen","Includi le pagine archiviate","Incluir páginas arquivadas"],
"Include the image files and they are embedded too. An image this browser cannot open is kept as its path rather than as a broken picture.": ["画像ファイルも一緒に選べば、そのまま埋め込まれます。このブラウザーが開けない画像は、壊れた画像ではなくパスのまま残ります。","把图片文件一起选上,它们也会被嵌入。这个浏览器打不开的图片会以路径的形式保留,而不是一张坏掉的图。","把圖片檔案一起選取,它們也會一併嵌入。這個瀏覽器打不開的圖片會以路徑的形式保留,而不是一張破圖。","Incluye los archivos de imagen y también se incrustan. Una imagen que este navegador no puede abrir se conserva como su ruta, no como una imagen rota.","Ajoutez les fichiers image et ils sont intégrés eux aussi. Une image que ce navigateur ne peut pas ouvrir reste sous forme de chemin, plutôt qu’en image cassée.","Nimm die Bilddateien mit, dann werden sie gleich eingebettet. Ein Bild, das dieser Browser nicht öffnen kann, bleibt als Pfad stehen statt als kaputtes Bild.","Includi anche i file immagine e vengono incorporati. Un’immagine che questo browser non riesce ad aprire resta come percorso, invece che come immagine rotta.","Inclua os ficheiros de imagem e também são incorporados. Uma imagem que este navegador não consegue abrir fica como o seu caminho, em vez de uma imagem partida."],
"Include the pages nested under it": ["その下にあるページも含める","包含其下级页面","包含其下層頁面","Incluir las páginas anidadas debajo","Inclure les pages imbriquées en dessous","Die darunter verschachtelten Seiten einschließen","Includi le pagine annidate sotto di essa","Incluir as páginas aninhadas por baixo"],
+ "Indent, or move back out": ["字下げ、または戻す","缩进,或退回一级","縮排,或退回一層","Sangrar, o volver a salir","Indenter, ou revenir en arrière","Einrücken, oder wieder heraus","Rientra, o torna indietro","Avançar, ou recuar de novo"],
"Inline code — ⌘E": ["インラインコード — ⌘E","行内代码 — ⌘E","行內程式碼 — ⌘E","Código en línea — ⌘E","Code en ligne — ⌘E","Inline-Code — ⌘E","Codice in linea — ⌘E","Código em linha — ⌘E"],
"Insert": ["挿入","插入","插入","Insertar","Insérer","Einfügen","Inserisci","Inserir"],
"Insert a block — text, headings, lists, code, images": ["ブロックを挿入 — テキスト、見出し、リスト、コード、画像","插入块 — 文本、标题、列表、代码、图片","插入區塊 — 文字、標題、清單、程式碼、圖片","Insertar un bloque — texto, encabezados, listas, código, imágenes","Insérer un bloc — texte, titres, listes, code, images","Block einfügen — Text, Überschriften, Listen, Code, Bilder","Inserisci un blocco — testo, titoli, elenchi, codice, immagini","Inserir um bloco — texto, títulos, listas, código, imagens"],
@@ -212,16 +218,20 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Italic — ⌘I": ["イタリック — ⌘I","斜体 — ⌘I","斜體 — ⌘I","Cursiva — ⌘I","Italique — ⌘I","Kursiv — ⌘I","Corsivo — ⌘I","Itálico — ⌘I"],
"Journal date": ["ジャーナルの日付","日志日期","日誌日期","Fecha del diario","Date du journal","Journaldatum","Data del diario","Data do diário"],
"Key-verified identity": ["鍵で検証済みのアイデンティティ","密钥验证的身份","金鑰驗證的身份","Identidad verificada por clave","Identité vérifiée par clé","Schlüssel-verifizierte Identität","Identità verificata da chiave","Identidade verificada por chave"],
+ "Keyboard shortcuts": ["キーボードショートカット","键盘快捷键","鍵盤快速鍵","Atajos de teclado","Raccourcis clavier","Tastaturkürzel","Scorciatoie da tastiera","Atalhos de teclado"],
"Language": ["言語","语言","語言","Idioma","Langue","Sprache","Lingua","Idioma"],
"Language follows whoever opens the file. It is never written into the document.": ["言語はファイルを開いた人に従います。ドキュメントには書き込まれません。","语言跟随打开文件的人,绝不会写入文档。","語言取決於開啟檔案的人,永遠不會寫入文件中。","El idioma sigue a quien abre el archivo. Nunca se escribe en el documento.","La langue suit la personne qui ouvre le fichier. Elle n’est jamais écrite dans le document.","Die Sprache richtet sich danach, wer die Datei öffnet. Sie wird nie ins Dokument geschrieben.","La lingua segue chi apre il file. Non viene mai scritta nel documento.","O idioma segue quem abre o ficheiro. Nunca é escrito no documento."],
"Language — what this block is highlighted as": ["言語 — このブロックを何として色分けするか","语言 — 这个块按什么语言着色","語言 — 這個區塊以什麼語言上色","Lenguaje — cómo se colorea este bloque","Langage — la coloration de ce bloc","Sprache — wie dieser Block hervorgehoben wird","Linguaggio — come viene evidenziato questo blocco","Linguagem — como este bloco é realçado"],
"Last saved": ["最終保存","上次保存","上次儲存","Última vez guardado","Dernier enregistrement","Zuletzt gespeichert","Ultimo salvataggio","Última gravação"],
"Launch check couldn't reach the release server ({m}). Check manually below.": ["起動時の確認でリリースサーバーに接続できませんでした ({m})。下から手動で確認してください。","启动检查无法连接发布服务器 ({m})。请在下方手动检查。","啟動檢查無法連線發佈伺服器 ({m})。請在下方手動檢查。","La comprobación inicial no alcanzó el servidor ({m}). Comprueba manualmente abajo.","La vérification au démarrage n'a pas atteint le serveur ({m}). Vérifiez manuellement ci-dessous.","Startprüfung konnte den Release-Server nicht erreichen ({m}). Unten manuell prüfen.","La verifica all'avvio non ha raggiunto il server ({m}). Verifica manualmente qui sotto.","A verificação ao abrir não alcançou o servidor de versões ({m}). Verifique manualmente abaixo."],
"Leave it empty to use the tone mark": ["空のままにすると種類の記号を使います","留空则使用该类型的标记","留空則使用該類型的標記","Déjalo vacío para usar el símbolo del tipo","Laissez vide pour utiliser le symbole du type","Leer lassen, um das Symbol der Art zu verwenden","Lascia vuoto per usare il simbolo del tipo","Deixe vazio para usar o símbolo do tipo"],
+ "Leave the reading view": ["読書ビューを終了","退出阅读视图","離開閱讀檢視","Salir de la vista de lectura","Quitter la vue lecture","Leseansicht verlassen","Esci dalla vista di lettura","Sair da vista de leitura"],
"Light": ["ライト","浅色","淺色","Claro","Clair","Hell","Chiaro","Claro"],
"Link": ["リンク","链接","連結","Enlace","Lien","Link","Collegamento","Link"],
"Link address": ["リンク先の URL","链接地址","連結網址","Dirección del enlace","Adresse du lien","Linkadresse","Indirizzo del collegamento","Endereço do link"],
"Link card": ["リンクカード","链接卡片","連結卡片","Tarjeta de enlace","Carte de lien","Link-Karte","Scheda di collegamento","Cartão de link"],
+ "Link the selected words": ["選択した語句にリンクを付ける","为选中的文字添加链接","為選取的文字加上連結","Enlazar las palabras seleccionadas","Lier les mots sélectionnés","Die markierten Wörter verlinken","Collega le parole selezionate","Ligar as palavras selecionadas"],
+ "Link to another page": ["別のページへリンク","链接到另一个页面","連結到另一個頁面","Enlazar a otra página","Lier vers une autre page","Auf eine andere Seite verlinken","Collega a un’altra pagina","Ligar a outra página"],
"Link to page": ["ページにリンク","链接到页面","連結到頁面","Enlazar a una página","Lier à une page","Seite verlinken","Collega a una pagina","Ligar a uma página"],
"Link to the web": ["ウェブへのリンク","链接到网页","連結到網頁","Enlace a la web","Lien vers le web","Link ins Web","Collegamento al web","Ligação para a web"],
"Link — ⌘K": ["リンク — ⌘K","链接 — ⌘K","連結 — ⌘K","Enlace — ⌘K","Lien — ⌘K","Link — ⌘K","Collegamento — ⌘K","Link — ⌘K"],
@@ -366,12 +376,15 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Saving…": ["保存中…","保存中…","儲存中…","Guardando…","Enregistrement…","Speichere…","Salvataggio…","A guardar…"],
"Search": ["検索","搜索","搜尋","Buscar","Rechercher","Suche","Cerca","Pesquisar"],
"Search all pages (⌘K)": ["全ページを検索 (⌘K)","搜索所有页面 (⌘K)","搜尋所有頁面 (⌘K)","Buscar en todas las páginas (⌘K)","Rechercher dans toutes les pages (⌘K)","Alle Seiten durchsuchen (⌘K)","Cerca in tutte le pagine (⌘K)","Pesquisar em todas as páginas (⌘K)"],
+ "Search all pages, with nothing selected": ["何も選択せずに全ページを検索","未选中内容时,搜索所有页面","未選取內容時,搜尋所有頁面","Buscar en todas las páginas, sin nada seleccionado","Rechercher dans toutes les pages, sans sélection","Alle Seiten durchsuchen, wenn nichts markiert ist","Cerca in tutte le pagine, senza nulla selezionato","Pesquisar todas as páginas, sem nada selecionado"],
"Search all pages…": ["全ページを検索…","搜索所有页面…","搜尋所有頁面…","Buscar en todas las páginas…","Rechercher dans toutes les pages…","Alle Seiten durchsuchen…","Cerca in tutte le pagine…","Pesquisar em todas as páginas…"],
"Search this space": ["このスペースを検索","搜索此空间","搜尋此空間","Buscar en este espacio","Rechercher dans cet espace","Diesen Space durchsuchen","Cerca in questo spazio","Pesquisar neste espaço"],
"Set a password…": ["パスワードを設定…","设置密码…","設定密碼…","Establecer una contraseña…","Définir un mot de passe…","Passwort festlegen…","Imposta una password…","Definir uma palavra-passe…"],
"Share this space": ["このスペースを共有","共享此空间","分享此空間","Compartir este espacio","Partager cet espace","Diesen Space teilen","Condividi questo spazio","Partilhar este espaço"],
"Show as a board": ["ボードで表示","以看板显示","以看板顯示","Mostrar como tablero","Afficher en tableau","Als Board anzeigen","Mostra come bacheca","Mostrar como quadro"],
"Show as a list": ["リストで表示","以列表显示","以清單顯示","Mostrar como lista","Afficher en liste","Als Liste anzeigen","Mostra come elenco","Mostrar como lista"],
+ "Show or hide properties": ["プロパティの表示・非表示","显示或隐藏属性","顯示或隱藏屬性","Mostrar u ocultar las propiedades","Afficher ou masquer les propriétés","Eigenschaften ein- oder ausblenden","Mostra o nascondi le proprietà","Mostrar ou ocultar as propriedades"],
+ "Show or hide the page list": ["ページ一覧の表示・非表示","显示或隐藏页面列表","顯示或隱藏頁面清單","Mostrar u ocultar la lista de páginas","Afficher ou masquer la liste des pages","Seitenliste ein- oder ausblenden","Mostra o nascondi l’elenco delle pagine","Mostrar ou ocultar a lista de páginas"],
"Show playback controls to the reader": ["読み手に再生コントロールを表示する","向读者显示播放控件","向讀者顯示播放控制項","Mostrar los controles de reproducción a quien lee","Afficher les contrôles de lecture au lecteur","Wiedergabesteuerung für Lesende anzeigen","Mostra i controlli di riproduzione a chi legge","Mostrar os controlos de reprodução a quem lê"],
"Show properties (])": ["プロパティを表示(])","显示属性面板(])","顯示屬性面板(])","Mostrar propiedades (])","Afficher les propriétés (])","Eigenschaften einblenden (])","Mostra proprietà (])","Mostrar propriedades (])"],
"Show the page list ([)": ["ページ一覧を表示([)","显示页面列表([)","顯示頁面清單([)","Mostrar la lista de páginas ([)","Afficher la liste des pages ([)","Seitenliste einblenden ([)","Mostra l'elenco delle pagine ([)","Mostrar a lista de páginas ([)"],
@@ -402,6 +415,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"That needs to be an http or https address": ["http または https のアドレスを入力してください","这里需要填写 http 或 https 地址","這裡需要填 http 或 https 位址","Tiene que ser una dirección http o https","Il faut une adresse http ou https","Das muss eine http- oder https-Adresse sein","Serve un indirizzo http o https","Tem de ser um endereço http ou https"],
"That space is password-protected. Open it, then export the pages you want.": ["そのスペースはパスワードで保護されています。開いてから、必要なページを書き出してください。","该空间受密码保护。请先打开它,再导出你需要的页面。","該空間受密碼保護。請先開啟它,再匯出你需要的頁面。","Ese espacio está protegido con contraseña. Ábrelo y exporta desde allí las páginas que quieras.","Cet espace est protégé par un mot de passe. Ouvrez-le, puis exportez-en les pages voulues.","Dieser Space ist passwortgeschützt. Öffnen Sie ihn und exportieren Sie dort die gewünschten Seiten.","Quello spazio è protetto da password. Aprilo e da lì esporta le pagine che vuoi.","Esse espaço está protegido por palavra-passe. Abra-o e exporte de lá as páginas que quiser."],
"That version could not be read": ["そのバージョンを読み込めませんでした","无法读取该版本","無法讀取該版本","No se pudo leer esa versión","Cette version n’a pas pu être lue","Diese Version konnte nicht gelesen werden","Non è stato possibile leggere quella versione","Não foi possível ler essa versão"],
+ "The block menu, on an empty line": ["空行でブロックメニュー","在空行上打开块菜单","在空行上開啟區塊選單","El menú de bloques, en una línea vacía","Le menu de blocs, sur une ligne vide","Das Blockmenü, in einer leeren Zeile","Il menu dei blocchi, su una riga vuota","O menu de blocos, numa linha vazia"],
"The counterpart of Copy document JSON: edit a space in another tool, then bring it back.": ["「文書 JSON をコピー」の対になる機能です。別のツールでスペースを編集して、ここへ戻せます。","“复制文档 JSON”的对应功能:在别的工具里编辑一个空间,再把它带回来。","「複製文件 JSON」的對應功能:在別的工具裡編輯一個空間,再把它帶回來。","La contraparte de Copiar el JSON del documento: edita un espacio en otra herramienta y vuelve a traerlo.","Le pendant de Copier le JSON du document : modifiez un espace dans un autre outil, puis ramenez-le ici.","Das Gegenstück zu „Dokument-JSON kopieren“: Bearbeiten Sie einen Space in einem anderen Werkzeug und bringen Sie ihn zurück.","Il corrispettivo di Copia il JSON del documento: modifica uno spazio in un altro strumento e riportalo qui.","O par de Copiar o JSON do documento: edite um espaço noutra ferramenta e traga-o de volta."],
"The day after": ["翌日","后一天","後一天","El día siguiente","Le lendemain","Der Tag danach","Il giorno dopo","O dia seguinte"],
"The day before": ["前日","前一天","前一天","El día anterior","La veille","Der Tag davor","Il giorno prima","O dia anterior"],
@@ -416,6 +430,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"The rest name notes that were not in the selection, and are left as text.": ["残りは選択に含まれていないノートを指しており、テキストのまま残ります。","其余指向不在所选范围内的笔记,保留为文字。","其餘指向不在所選範圍內的筆記,保留為文字。","El resto nombra notas que no estaban en la selección y se dejan como texto.","Les autres désignent des notes absentes de la sélection et restent en texte.","Der Rest nennt Notizen, die nicht in der Auswahl waren, und bleibt als Text stehen.","Gli altri nominano note che non erano nella selezione e restano come testo.","Os restantes nomeiam notas que não estavam na seleção e ficam como texto."],
"The theme follows whoever opens the file. It is never written into the document.": ["テーマはファイルを開いた人に従います。ドキュメントには書き込まれません。","主题跟随打开文件的人,绝不会写入文档。","主題取決於開啟檔案的人,永遠不會寫入文件中。","El tema sigue a quien abre el archivo. Nunca se escribe en el documento.","Le thème suit la personne qui ouvre le fichier. Il n’est jamais écrit dans le document.","Das Design richtet sich danach, wer die Datei öffnet. Es wird nie ins Dokument geschrieben.","Il tema segue chi apre il file. Non viene mai scritto nel documento.","O tema segue quem abre o ficheiro. Nunca é escrito no documento."],
"The whole space": ["スペース全体","整个空间","整個空間","Todo el espacio","Tout l’espace","Der ganze Space","L’intero spazio","Todo o espaço"],
+ "The workspace": ["ワークスペース","工作区","工作區","El espacio de trabajo","L’espace de travail","Der Arbeitsbereich","Lo spazio di lavoro","A área de trabalho"],
"These windows are on this computer. Start a session to work with someone elsewhere.": ["これらのウィンドウはこのパソコン内のものです。別の場所にいる人と作業するにはセッションを開始してください。","这些窗口都在本机。若要与其他地方的人协作,请开始一个会话。","這些視窗都在本機。若要與其他地方的人協作,請開始一個工作階段。","Estas ventanas están en este ordenador. Inicia una sesión para trabajar con alguien en otro sitio.","Ces fenêtres sont sur cet ordinateur. Démarrez une session pour travailler avec quelqu’un ailleurs.","Diese Fenster sind auf diesem Computer. Starte eine Sitzung, um mit jemand anderem zu arbeiten.","Queste finestre sono su questo computer. Avvia una sessione per lavorare con qualcuno altrove.","Estas janelas estão neste computador. Inicia uma sessão para trabalhar com alguém noutro lugar."],
"This block has no settings of its own — its content is all of it.": ["このブロックに固有の設定はありません — 中身がすべてです。","这个块没有自己的设置 — 内容就是它的全部。","這個區塊沒有自己的設定 — 內容就是它的全部。","Este bloque no tiene ajustes propios: su contenido es todo lo que hay.","Ce bloc n’a pas de réglages à lui — son contenu, c’est tout.","Dieser Block hat keine eigenen Einstellungen — sein Inhalt ist alles.","Questo blocco non ha impostazioni proprie: il suo contenuto è tutto.","Este bloco não tem definições próprias — o conteúdo é tudo o que há."],
"This block’s settings, and the page’s": ["このブロックの設定と、ページの設定","这个块的设置,还有页面的设置","這個區塊的設定,還有頁面的設定","Los ajustes de este bloque, y los de la página","Les réglages de ce bloc, et ceux de la page","Die Einstellungen dieses Blocks — und die der Seite","Le impostazioni di questo blocco, e quelle della pagina","As definições deste bloco, e as da página"],
@@ -433,6 +448,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"This is a reading copy. It opens for reading; nothing you do here changes the file.": ["これは閲覧用のコピーです。読むために開きます。ここでの操作はファイルを変更しません。","这是一份阅读副本。它以阅读方式打开;你在此处的操作不会更改文件。","這是一份閱讀副本。它以閱讀方式開啟;你在此處的操作不會變更檔案。","Esta es una copia de lectura. Se abre para leer; nada de lo que hagas aquí cambia el archivo.","Ceci est une copie de lecture. Elle s'ouvre en lecture ; rien de ce que vous faites ici ne modifie le fichier.","Dies ist eine Lesekopie. Sie öffnet sich zum Lesen; nichts, was du hier tust, ändert die Datei.","Questa è una copia di lettura. Si apre in lettura; nulla di ciò che fai qui modifica il file.","Esta é uma cópia de leitura. Abre para leitura; nada do que fizeres aqui altera o ficheiro."],
"This is a view-only copy — it follows the live session but can’t change this space.": ["これは閲覧専用コピーです — ライブセッションに追従しますが、この Space は変更できません。","这是只读副本 — 会跟随实时会话,但无法修改此 Space。","這是唯讀副本 — 會跟隨即時會話,但無法修改此 Space。","Esta es una copia de solo lectura — sigue la sesión en vivo pero no puede modificar este Space.","Ceci est une copie en lecture seule — elle suit la session live mais ne peut pas modifier cet espace.","Dies ist eine Nur-Lesen-Kopie — sie folgt der Live-Sitzung, kann diesen Space aber nicht ändern.","Questa è una copia di sola lettura — segue la sessione live ma non può modificare questo Space.","Esta é uma cópia somente para visualização — ela acompanha a sessão ao vivo, mas não pode alterar este Space."],
"This is not a bento/spaces document — {detail}.": ["これは bento/spaces のドキュメントではありません — {detail}。","这不是 bento/spaces 文档 — {detail}。","這不是 bento/spaces 文件 — {detail}。","Esto no es un documento de bento/spaces — {detail}.","Ce n’est pas un document bento/spaces — {detail}.","Dies ist kein bento/spaces-Dokument — {detail}.","Questo non è un documento bento/spaces — {detail}.","Isto não é um documento bento/spaces — {detail}."],
+ "This list": ["この一覧","本列表","本清單","Esta lista","Cette liste","Diese Liste","Questo elenco","Esta lista"],
"This live session has run out of room. Your change is saved in your copy, but collaborators won’t see it.": ["このライブセッションの容量がいっぱいです。変更は自分のコピーに保存されますが、共同編集者には表示されません。","此实时会话空间已满。你的更改已保存在你的副本中,但协作者不会看到。","此即時工作階段空間已滿。你的變更已儲存在你的副本中,但協作者不會看到。","Esta sesión en vivo se ha quedado sin espacio. Tu cambio se guarda en tu copia, pero los colaboradores no lo verán.","Cette session en direct n’a plus de place. Votre modification est enregistrée dans votre copie, mais les collaborateurs ne la verront pas.","Diese Live-Sitzung hat keinen Platz mehr. Deine Änderung ist in deiner Kopie gespeichert, aber Mitarbeitende sehen sie nicht.","Questa sessione dal vivo ha esaurito lo spazio. La tua modifica è salvata nella tua copia, ma i collaboratori non la vedranno.","Esta sessão ao vivo ficou sem espaço. Sua alteração fica salva na sua cópia, mas os colaboradores não a verão."],
"This page only": ["このページだけ","仅此页面","僅此頁面","Solo esta página","Cette page seulement","Nur diese Seite","Solo questa pagina","Apenas esta página"],
"This space has no live session to follow": ["この Space には追従できるライブセッションがありません","此 Space 没有可跟随的实时会话","此 Space 沒有可跟隨的即時會話","Este Space no tiene sesión en vivo que seguir","Cet espace n’a pas de session live à suivre","Dieser Space hat keine Live-Sitzung zum Folgen","Questo Space non ha una sessione live da seguire","Este Space não tem sessão ao vivo para acompanhar"],
@@ -451,6 +467,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Today": ["今日","今天","今天","Hoy","Aujourd’hui","Heute","Oggi","Hoje"],
"Today's journal": ["今日のジャーナル","今天的日志","今天的日誌","Diario de hoy","Journal du jour","Heutiges Journal","Diario di oggi","Diário de hoje"],
"Toggle": ["トグル","折叠块","摺疊區塊","Bloque plegable","Bloc dépliant","Klappblock","Blocco richiudibile","Bloco recolhível"],
+ "Toggle section": ["セクションの開閉","展开或收起此节","展開或收合此節","Mostrar u ocultar la sección","Afficher ou masquer la section","Abschnitt auf- oder zuklappen","Mostra o nascondi la sezione","Mostrar ou ocultar a secção"],
"Tone": ["トーン","语气","語氣","Tono","Ton","Art","Tono","Tom"],
"Too many changes at once — live sync is catching up.": ["変更が多すぎます — ライブ同期が追いついています。","更改过多 — 实时同步正在追赶。","變更太多 — 即時同步正在追趕。","Demasiados cambios a la vez — la sincronización en vivo se está poniendo al día.","Trop de modifications à la fois — la synchronisation en direct rattrape son retard.","Zu viele Änderungen auf einmal — die Live-Synchronisierung holt auf.","Troppe modifiche insieme — la sincronizzazione dal vivo sta recuperando.","Alterações demais de uma vez — a sincronização ao vivo está se atualizando."],
"Top level": ["最上位","顶层","最上層","Nivel superior","Premier niveau","Oberste Ebene","Primo livello","Nível superior"],
@@ -459,6 +476,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Underline": ["下線","下划线","底線","Subrayado","Souligné","Unterstrichen","Sottolineato","Sublinhado"],
"Underline — ⌘U": ["下線 — ⌘U","下划线 — ⌘U","底線 — ⌘U","Subrayado — ⌘U","Souligné — ⌘U","Unterstrichen — ⌘U","Sottolineato — ⌘U","Sublinhado — ⌘U"],
"Undo (⌘Z)": ["元に戻す (⌘Z)","撤销 (⌘Z)","還原 (⌘Z)","Deshacer (⌘Z)","Annuler (⌘Z)","Rückgängig (⌘Z)","Annulla (⌘Z)","Desfazer (⌘Z)"],
+ "Undo, redo": ["取り消し・やり直し","撤销、重做","復原、重做","Deshacer, rehacer","Annuler, rétablir","Rückgängig, wiederherstellen","Annulla, ripeti","Anular, refazer"],
"Unlock": ["ロック解除","解锁","解鎖","Desbloquear","Déverrouiller","Entsperren","Sblocca","Desbloquear"],
"Unlocked, but the document inside could not be read.": ["ロックは解除しましたが、中のドキュメントを読み取れませんでした。","已解锁,但无法读取其中的文档。","已解鎖,但無法讀取裡面的文件。","Desbloqueado, pero no se pudo leer el documento de dentro.","Déverrouillé, mais le document à l’intérieur n’a pas pu être lu.","Entsperrt, aber das Dokument darin konnte nicht gelesen werden.","Sbloccato, ma non è stato possibile leggere il documento all’interno.","Desbloqueado, mas não foi possível ler o documento lá dentro."],
"Unsaved changes from a previous session were found.": ["前回のセッションの未保存の変更が見つかりました。","发现上一次会话未保存的更改。","發現上一次工作階段未儲存的變更。","Se encontraron cambios sin guardar de una sesión anterior.","Des modifications non enregistrées d’une session précédente ont été trouvées.","Nicht gespeicherte Änderungen aus einer früheren Sitzung gefunden.","Sono state trovate modifiche non salvate di una sessione precedente.","Foram encontradas alterações não guardadas de uma sessão anterior."],
@@ -496,6 +514,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Width in the text column": ["本文カラム内の幅","在正文栏中的宽度","相對於文字欄的寬度","Ancho en la columna de texto","Largeur dans la colonne de texte","Breite in der Textspalte","Larghezza nella colonna di testo","Largura na coluna de texto"],
"Windows on this computer still sync; turn offline mode off in About to work with someone elsewhere.": ["このコンピュータ上のウィンドウ同士は引き続き同期します。ほかの場所にいる人と作業するには「About」でオフラインモードを解除してください。","本机的窗口仍会同步;要与其他地方的人协作,请在“关于”中关闭离线模式。","本機的視窗仍會同步;要與其他地方的人協作,請在「關於」中關閉離線模式。","Las ventanas de este equipo siguen sincronizándose; desactiva el modo sin conexión en «Acerca de» para trabajar con alguien en otro lugar.","Les fenêtres de cet ordinateur restent synchronisées ; désactivez le mode hors ligne dans « À propos » pour travailler avec quelqu’un ailleurs.","Fenster auf diesem Computer synchronisieren sich weiterhin; deaktiviere den Offline-Modus unter „Über“, um mit jemandem anderswo zu arbeiten.","Le finestre su questo computer restano sincronizzate; disattiva la modalità offline in «Informazioni» per lavorare con qualcuno altrove.","As janelas neste computador continuam sincronizando; desative o modo offline em Sobre para trabalhar com alguém em outro lugar."],
"Words": ["語数","字数","字數","Palabras","Mots","Wörter","Parole","Palavras"],
+ "Writing": ["書く","写作","書寫","Escribir","Écrire","Schreiben","Scrivere","Escrever"],
"Wrong password — try again": ["パスワードが違います — もう一度お試しください","密码错误 — 请重试","密碼錯誤 — 請重試","Contraseña incorrecta: inténtalo de nuevo","Mot de passe incorrect — réessayez","Falsches Passwort — bitte erneut versuchen","Password errata — riprova","Palavra-passe incorreta — tente novamente"],
"Yellow": ["黄","黄色","黃色","Amarillo","Jaune","Gelb","Giallo","Amarelo"],
"You have the newest version ({v}).": ["最新バージョンです ({v})。","你已是最新版本 ({v})。","你已是最新版本 ({v})。","Tienes la versión más reciente ({v}).","Vous avez la dernière version ({v}).","Du hast die neueste Version ({v}).","Hai la versione più recente ({v}).","Já tem a versão mais recente ({v})."],
@@ -511,11 +530,12 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"none": ["なし","无","無","ninguna","aucun","keine","nessuno","nenhuma"],
"you": ["あなた","你","你","tú","vous","du","tu","você"],
"you: {name} ✎": ["あなた: {name} ✎","你:{name} ✎","你:{name} ✎","tú: {name} ✎","vous : {name} ✎","Sie: {name} ✎","tu: {name} ✎","você: {name} ✎"],
- "{blocks} blocks · {words} words · {links} links in": ["{blocks} ブロック · {words} 語 · 被リンク {links}","{blocks} 个块 · {words} 个词 · {links} 个入链","{blocks} 個區塊 · {words} 個詞 · {links} 個入連結","{blocks} bloques · {words} palabras · {links} enlaces entrantes","{blocks} blocs · {words} mots · {links} liens entrants","{blocks} Blöcke · {words} Wörter · {links} eingehende Links","{blocks} blocchi · {words} parole · {links} link in entrata","{blocks} blocos · {words} palavras · {links} ligações a apontar"],
"{i} of {n}": ["{i} / {n}","第 {i} 个,共 {n} 个","{i} / {n}","{i} de {n}","{i} sur {n}","{i} von {n}","{i} di {n}","{i} de {n}"],
"{name} joined": ["{name} が参加しました","{name} 已加入","{name} 已加入","{name} se ha unido","{name} a rejoint","{name} ist beigetreten","{name} si è unito","{name} entrou"],
"{name} left": ["{name} が退出しました","{name} 已离开","{name} 已離開","{name} se ha ido","{name} est parti","{name} hat verlassen","{name} se n'è andato","{name} saiu"],
"{name} was removed": ["{name} を削除しました","已移除 {name}","已移除 {name}","{name} fue eliminado","{name} a été retiré","{name} wurde entfernt","{name} è stato rimosso","{name} foi removido"],
+ "{n} block": ["{n} ブロック","{n} 个块","{n} 個區塊","{n} bloque","{n} bloc","{n} Block","{n} blocco","{n} bloco"],
+ "{n} blocks": ["{n} ブロック","{n} 个块","{n} 個區塊","{n} bloques","{n} blocs","{n} Blöcke","{n} blocchi","{n} blocos"],
"{n} connected": ["{n} 人が接続中","{n} 人已连接","{n} 人已連線","{n} conectados","{n} connectés","{n} verbunden","{n} connessi","{n} conectados"],
"{n} duplicate or missing id(s) were repaired so links and pages resolve.": ["重複または欠落した id を {n} 件修復し、リンクとページが解決するようにしました。","已修复 {n} 个重复或缺失的 id,链接和页面现在都能正常解析。","已修復 {n} 個重複或遺失的 id,讓連結與頁面能正確對應。","Se repararon {n} id(s) duplicados o ausentes para que los enlaces y las páginas funcionen.","{n} id(s) en double ou manquant(s) ont été réparés pour que les liens et les pages se résolvent.","{n} doppelte oder fehlende IDs wurden repariert, damit Links und Seiten wieder gefunden werden.","Riparati {n} id duplicati o mancanti, così link e pagine funzionano.","Foram reparados {n} id(s) duplicados ou em falta para que as ligações e as páginas funcionem."],
"{n} embedded image(s) and clip(s) account for {size} of that — {pct}%. Everything else is text.": ["埋め込まれた画像とクリップ {n} 件で {size}、全体の {pct}% を占めます。残りはすべてテキストです。","其中 {n} 个嵌入的图片和片段占了 {size},也就是 {pct}%。其余全是文字。","其中 {n} 個嵌入的圖片和片段占了 {size},也就是 {pct}%。其餘全是文字。","{n} imagen(es) y clip(s) incrustados suman {size} de ese total: el {pct}%. Todo lo demás es texto.","{n} image(s) et clip(s) intégrés représentent {size}, soit {pct}%. Tout le reste est du texte.","{n} eingebettete Bild(er) und Clip(s) machen davon {size} aus — {pct}%. Alles andere ist Text.","{n} immagine/i e clip incorporate rappresentano {size} di quel totale — il {pct}%. Tutto il resto è testo.","{n} imagem(ns) e clipe(s) incorporados representam {size} desse total — {pct}%. O resto é tudo texto."],
@@ -527,9 +547,11 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"{n} image(s) go with them; the rest stay here.": ["{n} 件の画像が一緒に移動し、残りはここに残ります。","{n} 张图片会一起带走,其余留在这里。","{n} 張圖片會一起帶走,其餘留在這裡。","{n} imagen(es) van con ellas; el resto se queda aquí.","{n} image(s) partent avec elles ; les autres restent ici.","{n} Bild(er) gehen mit; der Rest bleibt hier.","{n} immagine/i vanno con esse; il resto resta qui.","{n} imagem(ns) vão com elas; as restantes ficam aqui."],
"{n} image(s) point at the web. Nothing loads until a reader asks.": ["{n} 個の画像はウェブを指しています。読み手が求めるまで何も読み込みません。","{n} 张图片指向网络。在读者主动请求之前不会加载。","{n} 張圖片指向網路。在讀者主動要求之前不會載入。","{n} imagen(es) apuntan a la web. No se carga nada hasta que un lector lo pida.","{n} image(s) pointent vers le web. Rien ne se charge tant qu’un lecteur ne le demande pas.","{n} Bild(er) zeigen ins Web. Nichts wird geladen, bevor ein Leser darum bittet.","{n} immagini puntano al web. Non si carica nulla finché un lettore non lo chiede.","{n} imagem(ns) apontam para a web. Nada é carregado até um leitor pedir."],
"{n} image(s) were left as paths because embedding stopped there.": ["{n} 個の画像は、そこで埋め込みを止めたためパスのまま残りました。","{n} 张图片以路径形式保留,因为嵌入到此为止。","{n} 張圖片以路徑形式保留,因為嵌入到此為止。","{n} imagen(es) quedaron como rutas porque la incrustación se detuvo ahí.","{n} image(s) restent sous forme de chemin, l’intégration s’étant arrêtée là.","{n} Bild(er) blieben als Pfad stehen, weil das Einbetten dort endete.","{n} immagini restano come percorsi perché l’incorporamento si è fermato lì.","{n} imagem(ns) ficaram como caminhos porque a incorporação parou aí."],
+ "{n} link to this page": ["このページへのリンク {n} 件","{n} 个链接指向此页","{n} 個連結指向此頁","{n} enlace a esta página","{n} lien vers cette page","{n} Link auf diese Seite","{n} link a questa pagina","{n} ligação para esta página"],
"{n} link(s) named pages that were not in that file, and are kept as text.": ["{n} 件のリンクはそのファイルに無いページを指していたため、テキストとして残しました。","有 {n} 个链接指向该文件中不存在的页面,已保留为文字。","有 {n} 個連結指向該檔案中不存在的頁面,已保留為文字。","{n} enlace(s) nombraban páginas que no estaban en ese archivo y se conservan como texto.","{n} lien(s) nommaient des pages absentes de ce fichier et sont conservés en texte.","{n} Link(s) nannten Seiten, die nicht in dieser Datei waren, und bleiben als Text erhalten.","{n} collegamento/i nominavano pagine non presenti in quel file e restano come testo.","{n} ligação(ões) nomeavam páginas que não estavam nesse ficheiro e ficam como texto."],
"{n} link(s) point outside them and are kept as text naming the page they meant.": ["{n} 件のリンクは外を指しているため、指していたページ名を残したテキストになります。","有 {n} 个链接指向其外部,将保留为写明原目标页面的文字。","有 {n} 個連結指向其外部,將保留為寫明原目標頁面的文字。","{n} enlace(s) apuntan fuera y se conservan como texto que nombra la página a la que se referían.","{n} lien(s) pointent en dehors et sont conservés en texte, avec le nom de la page visée.","{n} Link(s) zeigen nach außen und bleiben als Text erhalten, der die gemeinte Seite nennt.","{n} collegamento/i puntano fuori e restano come testo che nomina la pagina a cui puntavano.","{n} ligação(ões) apontam para fora e ficam como texto que nomeia a página pretendida."],
"{n} link(s) to it will stop working.": ["このページへのリンク {n} 件が機能しなくなります。","指向它的 {n} 个链接会失效。","指向它的 {n} 個連結將會失效。","{n} enlace(s) a ella dejarán de funcionar.","{n} lien(s) vers elle ne fonctionneront plus.","{n} Links darauf funktionieren nicht mehr.","{n} collegamenti a questa pagina smetteranno di funzionare.","{n} ligação(ões) para ela deixam de funcionar."],
+ "{n} links to this page": ["このページへのリンク {n} 件","{n} 个链接指向此页","{n} 個連結指向此頁","{n} enlaces a esta página","{n} liens vers cette page","{n} Links auf diese Seite","{n} link a questa pagina","{n} ligações para esta página"],
"{n} note name(s) appear more than once, so links naming them all went to the first.": ["{n} 件のノート名が重複しているため、その名前のリンクはすべて最初のノートに向いています。","有 {n} 个笔记名称重复,因此指向该名称的链接都指向了第一个。","有 {n} 個筆記名稱重複,因此指向該名稱的連結都指向了第一個。","{n} nombre(s) de nota se repiten, así que los enlaces con ese nombre fueron todos al primero.","{n} nom(s) de note apparaissent plusieurs fois : les liens portant ce nom pointent tous vers le premier.","{n} Notiznamen kommen mehrfach vor — Links mit diesem Namen führen alle zur ersten.","{n} nome/i di nota compaiono più volte, quindi i link con quel nome puntano tutti al primo.","{n} nome(s) de nota aparecem mais de uma vez, por isso as ligações com esse nome foram todas para a primeira."],
"{n} of {total} wikilink(s) resolved.": ["{total} 個のウィキリンクのうち {n} 個を解決しました。","{total} 个 wiki 链接中解析了 {n} 个。","{total} 個 wiki 連結中解析了 {n} 個。","{n} de {total} wikilink(s) resueltos.","{n} wikilien(s) sur {total} résolus.","{n} von {total} Wikilink(s) aufgelöst.","{n} wikilink su {total} risolti.","{n} de {total} wikilink(s) resolvidos."],
"{n} page(s) had frontmatter, kept verbatim in a folded block.": ["{n} ページにフロントマターがありました。折りたたみブロックにそのまま保存しています。","{n} 个页面带有 frontmatter,已原样保存在折叠块里。","{n} 個頁面帶有 frontmatter,已原樣保存在摺疊區塊裡。","{n} página(s) tenían frontmatter, conservado tal cual en un bloque plegado.","{n} page(s) avaient un frontmatter, conservé tel quel dans un bloc replié.","{n} Seite(n) hatten Frontmatter — wortgetreu in einem zugeklappten Block erhalten.","{n} pagine avevano un frontmatter, conservato alla lettera in un blocco richiuso.","{n} página(s) tinham frontmatter, guardado tal e qual num bloco fechado."],
@@ -537,6 +559,8 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"{n} pages, in sidebar order, with a contents page": ["{n} ページをサイドバー順に、目次ページ付きで","{n} 个页面,按侧边栏顺序,并附一个目录页","{n} 個頁面,依側邊欄順序排列,並附目錄頁","{n} páginas, en el orden de la barra lateral, con una página de índice","{n} pages, dans l’ordre de la barre latérale, avec une page de sommaire","{n} Seiten, in der Reihenfolge der Seitenleiste, mit Inhaltsverzeichnis","{n} pagine, nell’ordine della barra laterale, con una pagina indice","{n} páginas, pela ordem da barra lateral, com uma página de índice"],
"{n} table(s) imported, with their column alignment.": ["{n} 個の表を取り込みました(列の配置も含みます)。","已导入 {n} 个表格,并保留列对齐方式。","已匯入 {n} 個表格,並保留欄位對齊方式。","{n} tabla(s) importada(s), con la alineación de sus columnas.","{n} tableau(x) importé(s), avec l’alignement de leurs colonnes.","{n} Tabelle(n) importiert, samt Spaltenausrichtung.","{n} tabella/e importata/e, con l’allineamento delle colonne.","{n} tabela(s) importada(s), com o alinhamento das colunas."],
"{n} unresolved comment(s)": ["未解決のコメント {n} 件","{n} 条未解决的评论","{n} 則未解決的註解","{n} comentario(s) sin resolver","{n} commentaire(s) non résolu(s)","{n} offene(r) Kommentar(e)","{n} commento/i non risolto/i","{n} comentário(s) não resolvido(s)"],
+ "{n} word": ["{n} 語","{n} 个词","{n} 個詞","{n} palabra","{n} mot","{n} Wort","{n} parola","{n} palavra"],
+ "{n} words": ["{n} 語","{n} 个词","{n} 個詞","{n} palabras","{n} mots","{n} Wörter","{n} parole","{n} palavras"],
"{n}d ago": ["{n}日前","{n} 天前","{n} 天前","hace {n} d","il y a {n} j","vor {n} T","{n} g fa","há {n}d"],
"{n}h ago": ["{n}時間前","{n} 小时前","{n} 小時前","hace {n} h","il y a {n} h","vor {n} Std","{n} h fa","há {n}h"],
"{n}m ago": ["{n}分前","{n} 分钟前","{n} 分鐘前","hace {n} min","il y a {n} min","vor {n} Min","{n} min fa","há {n}min"],
diff --git a/spaces/src/i18n/pt.ts b/spaces/src/i18n/pt.ts
index dbd62e03..8bac1a3c 100644
--- a/spaces/src/i18n/pt.ts
+++ b/spaces/src/i18n/pt.ts
@@ -563,4 +563,29 @@ export const pt: Catalog = {
"most recent": "mais recente",
"That version could not be read": "Não foi possível ler essa versão",
"Restored the version from {when} — ⌘Z undoes it": "Versão de {when} restaurada — ⌘Z desfaz.",
+ "Dismiss": "Dispensar",
+ "Toggle section": "Mostrar ou ocultar a secção",
+ "{n} block": "{n} bloco",
+ "{n} blocks": "{n} blocos",
+ "{n} word": "{n} palavra",
+ "{n} words": "{n} palavras",
+ "{n} link to this page": "{n} ligação para esta página",
+ "{n} links to this page": "{n} ligações para esta página",
+ "A new block": "Um bloco novo",
+ "Find and replace": "Localizar e substituir",
+ "Formatting": "Formatação",
+ "Getting around": "Navegar",
+ "Indent, or move back out": "Avançar, ou recuar de novo",
+ "Keyboard shortcuts": "Atalhos de teclado",
+ "Leave the reading view": "Sair da vista de leitura",
+ "Link the selected words": "Ligar as palavras selecionadas",
+ "Link to another page": "Ligar a outra página",
+ "Search all pages, with nothing selected": "Pesquisar todas as páginas, sem nada selecionado",
+ "Show or hide properties": "Mostrar ou ocultar as propriedades",
+ "Show or hide the page list": "Mostrar ou ocultar a lista de páginas",
+ "The block menu, on an empty line": "O menu de blocos, numa linha vazia",
+ "The workspace": "A área de trabalho",
+ "This list": "Esta lista",
+ "Undo, redo": "Anular, refazer",
+ "Writing": "Escrever",
}
diff --git a/spaces/src/i18n/zh-Hans.ts b/spaces/src/i18n/zh-Hans.ts
index c2c3711e..a44b9812 100644
--- a/spaces/src/i18n/zh-Hans.ts
+++ b/spaces/src/i18n/zh-Hans.ts
@@ -563,4 +563,29 @@ export const zh_Hans: Catalog = {
"most recent": "最新",
"That version could not be read": "无法读取该版本",
"Restored the version from {when} — ⌘Z undoes it": "已恢复 {when} 的版本,按 ⌘Z 可撤销。",
+ "Dismiss": "关闭",
+ "Toggle section": "展开或收起此节",
+ "{n} block": "{n} 个块",
+ "{n} blocks": "{n} 个块",
+ "{n} word": "{n} 个词",
+ "{n} words": "{n} 个词",
+ "{n} link to this page": "{n} 个链接指向此页",
+ "{n} links to this page": "{n} 个链接指向此页",
+ "A new block": "新建一个块",
+ "Find and replace": "查找和替换",
+ "Formatting": "格式",
+ "Getting around": "导航",
+ "Indent, or move back out": "缩进,或退回一级",
+ "Keyboard shortcuts": "键盘快捷键",
+ "Leave the reading view": "退出阅读视图",
+ "Link the selected words": "为选中的文字添加链接",
+ "Link to another page": "链接到另一个页面",
+ "Search all pages, with nothing selected": "未选中内容时,搜索所有页面",
+ "Show or hide properties": "显示或隐藏属性",
+ "Show or hide the page list": "显示或隐藏页面列表",
+ "The block menu, on an empty line": "在空行上打开块菜单",
+ "The workspace": "工作区",
+ "This list": "本列表",
+ "Undo, redo": "撤销、重做",
+ "Writing": "写作",
}
diff --git a/spaces/src/i18n/zh-Hant.ts b/spaces/src/i18n/zh-Hant.ts
index e846752b..ea8006e4 100644
--- a/spaces/src/i18n/zh-Hant.ts
+++ b/spaces/src/i18n/zh-Hant.ts
@@ -563,4 +563,29 @@ export const zh_Hant: Catalog = {
"most recent": "最新",
"That version could not be read": "無法讀取該版本",
"Restored the version from {when} — ⌘Z undoes it": "已還原 {when} 的版本,按 ⌘Z 可復原。",
+ "Dismiss": "關閉",
+ "Toggle section": "展開或收合此節",
+ "{n} block": "{n} 個區塊",
+ "{n} blocks": "{n} 個區塊",
+ "{n} word": "{n} 個詞",
+ "{n} words": "{n} 個詞",
+ "{n} link to this page": "{n} 個連結指向此頁",
+ "{n} links to this page": "{n} 個連結指向此頁",
+ "A new block": "新增一個區塊",
+ "Find and replace": "尋找與取代",
+ "Formatting": "格式",
+ "Getting around": "導覽",
+ "Indent, or move back out": "縮排,或退回一層",
+ "Keyboard shortcuts": "鍵盤快速鍵",
+ "Leave the reading view": "離開閱讀檢視",
+ "Link the selected words": "為選取的文字加上連結",
+ "Link to another page": "連結到另一個頁面",
+ "Search all pages, with nothing selected": "未選取內容時,搜尋所有頁面",
+ "Show or hide properties": "顯示或隱藏屬性",
+ "Show or hide the page list": "顯示或隱藏頁面清單",
+ "The block menu, on an empty line": "在空行上開啟區塊選單",
+ "The workspace": "工作區",
+ "This list": "本清單",
+ "Undo, redo": "復原、重做",
+ "Writing": "書寫",
}
diff --git a/spaces/src/icons.ts b/spaces/src/icons.ts
index 9c2fded5..a9579f02 100644
--- a/spaces/src/icons.ts
+++ b/spaces/src/icons.ts
@@ -15,6 +15,7 @@ export const ICONS = {
search: svg('<circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>'),
save: svg('<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/><polyline points="17 21 17 13 7 13 7 21"/><polyline points="7 3 7 8 15 8"/>'),
info: svg('<circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/>'),
+ help: svg('<circle cx="12" cy="12" r="10"/><path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/>'),
menu: svg('<line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="18" x2="21" y2="18"/>'),
plus: svg('<line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/>'),
grip: svg('<circle cx="9" cy="6" r="1.4" fill="currentColor" stroke="none"/><circle cx="15" cy="6" r="1.4" fill="currentColor" stroke="none"/><circle cx="9" cy="12" r="1.4" fill="currentColor" stroke="none"/><circle cx="15" cy="12" r="1.4" fill="currentColor" stroke="none"/><circle cx="9" cy="18" r="1.4" fill="currentColor" stroke="none"/><circle cx="15" cy="18" r="1.4" fill="currentColor" stroke="none"/>'),
diff --git a/spaces/src/main.ts b/spaces/src/main.ts
index 54c3476b..d9ab1a4a 100644
--- a/spaces/src/main.ts
+++ b/spaces/src/main.ts
@@ -16,6 +16,7 @@ import {
import { putRecovery, getRecovery, clearRecovery, pruneOld, addVersion } from '../../kernel/src/autosave.ts'
import { APP_VERSION } from '../../kernel/src/update.ts'
import { t, locale, applyDirection } from './i18n'
+import { i18nApi } from '../../kernel/src/i18n.ts'
import { parseDoc, docContentKey, uid, newPage, type SpacesDoc, type ParseResult } from './model'
import {
validateDoc, outlineDoc, statsDoc,
@@ -398,6 +399,20 @@ function boot(doc: SpacesDoc, repaired: string[], frozen?: 'policy' | 'version')
undo: () => { store.undo(); editor.repaint() },
redo: () => { store.redo(); editor.repaint() },
updates: { version: APP_VERSION },
+ /**
+ * i18n: t/locale/setLocale/choices, as slides exposes it.
+ *
+ * setLocale('x-pseudo') is the SWEEP AUDIT: every string that reached t()
+ * comes back bracketed and accented, so anything still in plain English is
+ * a string the extractor never saw and no catalog will ever carry. That is
+ * not hypothetical here — two aria-labels were sitting untranslated in this
+ * app, and the packer reported 100% the whole time, because a key that is
+ * never swept is a key the percentage cannot know about.
+ *
+ * Chrome only: page titles and block text are the document and must stay
+ * exactly as written.
+ */
+ i18n: i18nApi,
/** every page, flat — the shape an agent wants before it reads anything */
pages: () => store.doc.pages.map((p) => ({
id: p.id, title: p.title, parent: p.parent, archived: !!p.archived, blocks: p.blocks.length,
@@ -576,7 +591,7 @@ function banner(text: string, actions: Array<[string, () => void]> = []): void {
const close = document.createElement('button')
close.className = 'sp-btn'
close.textContent = '✕'
- close.setAttribute('aria-label', 'Dismiss')
+ close.setAttribute('aria-label', t('Dismiss'))
close.addEventListener('click', () => bar.remove())
bar.append(close)
document.body.prepend(bar)
diff --git a/spaces/src/props.ts b/spaces/src/props.ts
index f1343529..2427840e 100644
--- a/spaces/src/props.ts
+++ b/spaces/src/props.ts
@@ -334,9 +334,28 @@ export class PropsPanel {
const words = page.blocks.reduce(
(n, b) => n + (String(b.html ?? '').replace(/<[^>]*>/g, ' ').match(/\S+/g)?.length ?? 0), 0)
const back = s.index.backlinks.get(page.id)?.length ?? 0
- this.host.append(mk('p', 'sp-insp-hint',
- t('{blocks} blocks · {words} words · {links} links in',
- { blocks: page.blocks.length, words, links: back })))
+ // ONE STRING WITH THREE HARDCODED PLURALS read "1 blocks · 1 words · 1
+ // links in" on every new page — the first thing anyone sees in this panel.
+ // The rest of the app dodges this with the "(s)" convention (52 uses), but
+ // that is for one-off dialogs; this line is permanent chrome, and "1
+ // block(s)" is a shrug in the corner of the screen. So each count picks its
+ // own form. English, German, Spanish, French, Italian and Portuguese all
+ // split at one; the CJK catalogs have one form and use it for both.
+ // "links in" also said nothing useful — they are links TO this page.
+ //
+ // Written out rather than routed through a pick-a-key helper: the extractor
+ // sweeps t() call sites for LITERALS, so `t(v === 1 ? one : many)` compiles
+ // and runs and is never translated by anybody. Every form below has to be
+ // visible at its own call site to reach the catalogs.
+ const blocks = page.blocks.length
+ const stats = [
+ blocks === 1 ? t('{n} block', { n: blocks }) : t('{n} blocks', { n: blocks }),
+ words === 1 ? t('{n} word', { n: words }) : t('{n} words', { n: words }),
+ back === 1 ? t('{n} link to this page', { n: back }) : t('{n} links to this page', { n: back }),
+ ].join(' · ')
+ // its own class: a statistic that looks exactly like the instruction above
+ // it is a statistic nobody reads as data
+ this.host.append(mk('p', 'sp-insp-stat', stats))
}
// ---- rows -----------------------------------------------------------------
diff --git a/spaces/src/render.ts b/spaces/src/render.ts
index 437ab2ed..8ff2077e 100644
--- a/spaces/src/render.ts
+++ b/spaces/src/render.ts
@@ -540,7 +540,7 @@ export function renderBlock(b: Block, doc: SpacesDoc, opts: RenderOpts = {}, cal
twist.className = 'sp-twist'
twist.type = 'button'
twist.setAttribute('aria-expanded', String(!!(opts.forceOpen || b.open)))
- twist.setAttribute('aria-label', 'Toggle section')
+ twist.setAttribute('aria-label', t('Toggle section'))
twist.textContent = '▸'
el.appendChild(twist)
hostAndAnswer(el, b, opts, calc)
diff --git a/spaces/src/styles.css b/spaces/src/styles.css
index d9a9f762..f9fb4a33 100644
--- a/spaces/src/styles.css
+++ b/spaces/src/styles.css
@@ -848,7 +848,11 @@ button.sp-callout-chip:hover { text-decoration: underline; text-underline-offset
/* the block menu is anchored to the caret, not centred on the screen */
.sp-pop {
- position: fixed; z-index: 60; width: 260px; max-height: 44vh; overflow: auto;
+ /* max-height is set per placement by editor.ts place(), from the room the
+ anchor actually leaves. The 44vh that used to live here clipped the share
+ panel's primary action off the bottom on an ordinary laptop. This value is
+ only the fallback for a popover placed some other way. */
+ position: fixed; z-index: 60; width: 260px; max-height: 80vh; overflow: auto;
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: 0 12px 34px rgb(var(--shade) / .2); padding: 6px;
}
@@ -1339,6 +1343,35 @@ button.sp-callout-chip:hover { text-decoration: underline; text-underline-offset
.sp-ab-vdo { margin-inline-start: auto; color: var(--muted); }
.sp-ab-version:hover .sp-ab-vdo, .sp-ab-version:focus-visible .sp-ab-vdo { color: var(--blue); }
+/* The shortcut list. Two columns, keys right-aligned against their meanings,
+ so the eye runs down one edge instead of hunting across a ragged gap. */
+/* wider than the other cards, because this one is a two-column table and
+ .sp-card's 560px leaves 534px of content — four pixels short of two 260px
+ columns plus the gap, which silently collapsed the grid back to one */
+.sp-keys { width: min(720px, 92vw); max-width: none; }
+.sp-keys-grid {
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
+ gap: 0 30px; align-items: start;
+}
+.sp-keys-g { min-width: 0; }
+.sp-keys-h {
+ margin: 16px 2px 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
+ text-transform: uppercase; color: var(--muted);
+}
+.sp-keys-g:first-child .sp-keys-h, .sp-keys-g:nth-child(2) .sp-keys-h { margin-top: 8px; }
+.sp-keys-list {
+ display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px;
+ margin: 0; align-items: baseline;
+}
+.sp-keys-list dt { justify-self: end; }
+.sp-keys-list dd { margin: 0; font-size: 13.5px; color: var(--ink-2); }
+.sp-kbd {
+ display: inline-block; padding: 2px 7px; font: inherit; font-size: 12px;
+ font-variant-numeric: tabular-nums; color: var(--ink);
+ background: var(--chrome-2); border: 1px solid var(--line);
+ border-radius: 6px; white-space: nowrap;
+}
+
/* ————— narrow topbar: hide, never scroll —————
Measured at 375px: the bar wanted 678px, so seven of eleven controls sat off
the right edge — Save among them, which made the file unsaveable on a phone.
@@ -1642,6 +1675,12 @@ body.sp-col-resizing { cursor: col-resize; user-select: none; }
.sp-insp-hint {
margin: 4px 6px 8px; font-size: 12px; line-height: 1.45; color: var(--muted);
}
+/* Measurements of the page, not advice about it. Set apart from the hint above
+ by a rule and tabular figures, so the numbers line up and read as data. */
+.sp-insp-stat {
+ margin: 10px 6px 8px; padding-top: 8px; border-top: 1px solid var(--line);
+ font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums;
+}
.sp-insp .sp-select { max-width: 100%; }
/* THE SAME BARGAIN THE PAGE LIST MAKES BELOW THE BREAKPOINT: an overlay, not a