- "@today", "@friday", "@2026-12-01" insert a date; "@remind friday" or the date's popover adds a reminder for the person who set it. - docwell-server keeps a reminders row per person, date and time zone in step with each page and sends a "reminder" notification at 9:00 on the day in that time zone (job notify.reminders). Dates already past when added do not notify. - Exports write dates out; the web and phone inboxes show reminders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
165 lines
5.3 KiB
TypeScript
165 lines
5.3 KiB
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
/**
|
|
* The editor's own words (menus, buttons). The editor has no i18n of its own:
|
|
* hosts pass translated labels, and English is the default.
|
|
*/
|
|
export interface EditorLabels {
|
|
/** The language of the labels (a BCP 47 tag) for writing dates; the browser's by default. */
|
|
locale?: string;
|
|
slashMenu: string;
|
|
noMatches: string;
|
|
slash: Record<string, { label: string; description: string }>;
|
|
format: {
|
|
bold: string;
|
|
italic: string;
|
|
strike: string;
|
|
code: string;
|
|
link: string;
|
|
linkPrompt: string;
|
|
comment: string;
|
|
};
|
|
mentions: string;
|
|
noPeople: string;
|
|
/** "[[" page links. */
|
|
pageLinks: string;
|
|
noPages: string;
|
|
/** Words on the richer blocks: math, diagrams, table of contents. */
|
|
blocks: {
|
|
edit: string;
|
|
done: string;
|
|
cancel: string;
|
|
save: string;
|
|
remove: string;
|
|
saving: string;
|
|
latex: string;
|
|
mermaid: string;
|
|
mermaidError: string;
|
|
emptyDrawio: string;
|
|
emptyExcalidraw: string;
|
|
loadFailed: string;
|
|
toc: string;
|
|
tocEmpty: string;
|
|
expand: string;
|
|
collapse: string;
|
|
embed: string;
|
|
embedUrl: string;
|
|
embedInvalid: string;
|
|
linkUrl: string;
|
|
copyBlockLink: string;
|
|
};
|
|
/** The find and replace bar. count has {current} and {total} in it. */
|
|
find: {
|
|
find: string;
|
|
replace: string;
|
|
previous: string;
|
|
next: string;
|
|
replaceOne: string;
|
|
replaceAll: string;
|
|
matchCase: string;
|
|
close: string;
|
|
count: string;
|
|
none: string;
|
|
};
|
|
/** Dates in the text ("@tomorrow") and their reminders. */
|
|
dates: {
|
|
today: string;
|
|
tomorrow: string;
|
|
yesterday: string;
|
|
nextWeek: string;
|
|
/** Typed after "@" to ask for a reminder, e.g. "remind". */
|
|
remindWord: string;
|
|
remindMe: string;
|
|
reminderAt: string;
|
|
someoneElse: string;
|
|
edit: string;
|
|
};
|
|
}
|
|
|
|
export const englishLabels: EditorLabels = {
|
|
slashMenu: "Insert block",
|
|
noMatches: "No matching blocks",
|
|
slash: {
|
|
text: { label: "Text", description: "Plain paragraph" },
|
|
h1: { label: "Heading 1", description: "Big section heading" },
|
|
h2: { label: "Heading 2", description: "Medium section heading" },
|
|
h3: { label: "Heading 3", description: "Small section heading" },
|
|
bullet: { label: "Bulleted list", description: "A simple list" },
|
|
ordered: { label: "Numbered list", description: "A list with numbers" },
|
|
quote: { label: "Quote", description: "Set text apart as a quote" },
|
|
code: { label: "Code block", description: "Monospaced code" },
|
|
divider: { label: "Divider", description: "A line between sections" },
|
|
image: { label: "Image", description: "Upload a picture" },
|
|
file: { label: "File", description: "Attach a file to download" },
|
|
math: { label: "Math block", description: "A formula on its own line (LaTeX)" },
|
|
mathInline: { label: "Inline math", description: "A formula inside the text (LaTeX)" },
|
|
mermaid: { label: "Mermaid diagram", description: "Flowcharts and sequences from text" },
|
|
drawio: { label: "Draw.io diagram", description: "Draw a diagram with diagrams.net" },
|
|
excalidraw: { label: "Excalidraw drawing", description: "Sketch by hand" },
|
|
toc: { label: "Table of contents", description: "The page's headings, kept up to date" },
|
|
pageLink: { label: "Link to page", description: "Link another page (or type [[)" },
|
|
toggle: { label: "Toggle", description: "A heading that hides the blocks under it" },
|
|
embed: { label: "Embed", description: "A video, design or document from YouTube, Figma and more" },
|
|
linkCard: { label: "Link card", description: "A link with its page's title and picture" },
|
|
},
|
|
format: {
|
|
bold: "Bold",
|
|
italic: "Italic",
|
|
strike: "Strikethrough",
|
|
code: "Inline code",
|
|
link: "Link",
|
|
linkPrompt: "Link address (leave empty to remove the link)",
|
|
comment: "Comment",
|
|
},
|
|
mentions: "Mention someone",
|
|
noPeople: "Nobody found",
|
|
pageLinks: "Link to a page",
|
|
noPages: "No pages found",
|
|
blocks: {
|
|
edit: "Edit",
|
|
done: "Done",
|
|
cancel: "Cancel",
|
|
save: "Save",
|
|
remove: "Remove",
|
|
saving: "Saving…",
|
|
latex: "LaTeX formula",
|
|
mermaid: "Mermaid diagram source",
|
|
mermaidError: "This diagram has an error:",
|
|
emptyDrawio: "Empty diagram. Click to draw.",
|
|
emptyExcalidraw: "Empty drawing. Click to sketch.",
|
|
loadFailed: "The editor could not be loaded.",
|
|
toc: "Contents",
|
|
tocEmpty: "Add headings to the page to fill the table of contents.",
|
|
expand: "Show contents",
|
|
collapse: "Hide contents",
|
|
embed: "Embedded content",
|
|
embedUrl: "Address of the video, design or document",
|
|
embedInvalid: "This address can't be embedded.",
|
|
linkUrl: "Address of the page to link",
|
|
copyBlockLink: "Copy link to this block",
|
|
},
|
|
find: {
|
|
find: "Find in page",
|
|
replace: "Replace with",
|
|
previous: "Previous match",
|
|
next: "Next match",
|
|
replaceOne: "Replace",
|
|
replaceAll: "Replace all",
|
|
matchCase: "Match case",
|
|
close: "Close",
|
|
count: "{current} of {total}",
|
|
none: "No matches",
|
|
},
|
|
dates: {
|
|
today: "Today",
|
|
tomorrow: "Tomorrow",
|
|
yesterday: "Yesterday",
|
|
nextWeek: "Next week",
|
|
remindWord: "remind",
|
|
remindMe: "Remind me",
|
|
reminderAt: "Reminder at 9:00 on the day",
|
|
someoneElse: "Someone else set a reminder on this date.",
|
|
edit: "Change date",
|
|
},
|
|
};
|