Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions configs/components.preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { defineConfig } from "vite";

export default defineConfig({
root: resolve("renderer/preview/components"),
worker: { format: "es" },
optimizeDeps: { entries: ["index.html", "../../components/Editor/code-worker.ts"] },
plugins: [svelte({ configFile: resolve("configs/svelte.config.js") })],
server: { host: "127.0.0.1", port: 15175, strictPort: true }
});
2 changes: 2 additions & 0 deletions configs/electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export default defineConfig({
},
renderer: {
root: "renderer",
worker: { format: "es" },
optimizeDeps: { entries: ["index.html", "components/Editor/code-worker.ts"] },
server: {
port: 15173
},
Expand Down
188 changes: 187 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"attribute-invalid-compound": "The saved compound attribute is invalid.",
"block-invalid-identity": "The block identity, type or child UUIDs are invalid.",
"block-invalid-version": "The block content format version is invalid.",
"block-invalid-language": "Only code blocks can specify a supported code language.",
"block-invalid-collapse": "The collapsed state is invalid.",
"block-invalid-inline": "The rich text node is invalid.",
"block-empty-text": "A text node cannot be empty.",
Expand Down Expand Up @@ -287,7 +288,9 @@
"group2": "Focus Second Editor Group",
"group3": "Focus Third Editor Group",
"about": "About Labloom",
"devtools": "Developer Tools"
"devtools": "Developer Tools",
"blockMenu": "Block menu",
"toggleProperties": "Toggle properties panel"
},
"menu": {
"file": "File",
Expand All @@ -296,6 +299,92 @@
"go": "Go",
"help": "Help"
},
"insertReference": {
"inline": "Inline reference",
"reference": "Linked reference",
"sync": "Synced block"
},
"codeLanguage": {
"plain": "Plain text",
"javascript": "JavaScript",
"typescript": "TypeScript",
"python": "Python",
"r": "R",
"c": "C",
"cpp": "C++",
"csharp": "C#",
"java": "Java",
"kotlin": "Kotlin",
"scala": "Scala",
"rust": "Rust",
"go": "Go",
"swift": "Swift",
"shell": "Shell",
"powershell": "PowerShell",
"sql": "SQL",
"json": "JSON",
"yaml": "YAML",
"toml": "TOML",
"html": "HTML",
"xml": "XML",
"css": "CSS",
"markdown": "Markdown",
"latex": "LaTeX",
"matlab": "MATLAB",
"ruby": "Ruby",
"lua": "Lua",
"perl": "Perl"
},
"editor": {
"language": "Code language",
"copyCode": "Copy code",
"insertBlock": "Insert block",
"controls": "Editor controls",
"bodyMenu": "Text context menu",
"toolbar": "Formatting toolbar",
"write": "Type something…",
"missingReference": "Reference target missing",
"loadingReference": "Loading reference…",
"emptyBlock": "Empty block",
"recycledSuffix": " (in the recycle bin)",
"deleted": "Deleted",
"properties": "Properties",
"convert": "Turn into",
"row": "Add row",
"column": "Add column",
"reference": "Insert linked reference after",
"sync": "Insert synced block after",
"unsync": "Unsync this copy",
"fold": "Collapse children",
"unfold": "Expand children",
"up": "Move up",
"down": "Move down",
"delete": "Delete block",
"inline": "Insert inline reference",
"pasteSynced": "Paste as synced block",
"pasteOptions": "Paste options",
"backlinks": "{{count}} backlinks",
"backlinks_one": "{{count}} backlink",
"trashed": "This page is in the trash",
"restore": "Restore page",
"missingPage": "Page not found",
"choosePage": "Choose a page",
"pages": "Search pages…",
"blocks": "Search blocks in “{{title}}”…",
"noBlocks": "No matching blocks",
"browseBlocks": "Browse blocks in this page",
"bold": "Bold",
"italic": "Italic",
"underline": "Underline",
"strike": "Strikethrough",
"code": "Inline code",
"clearFormat": "Clear formatting",
"colors": "Text and background colors",
"fgColor": "Text color",
"bgColor": "Background color",
"mixed": "Mixed",
"custom": "Custom"
},
"shell": {
"mainNavigation": "Primary Navigation",
"menuBar": "Menu Bar",
Expand Down Expand Up @@ -383,5 +472,102 @@
},
"notice": {
"reminderTitle": "Labloom reminder"
},
"block": {
"title": "Page title",
"paragraph": "Text",
"heading_1": "Heading 1",
"heading_2": "Heading 2",
"heading_3": "Heading 3",
"unordered_list": "Bulleted list",
"ordered_list": "Numbered list",
"blockquote": "Quote",
"callout": "Callout",
"code": "Code",
"table": "Table",
"hr": "Divider",
"blocked_reference": "Linked reference"
},
"color": {
"default": "Default",
"gray": "Gray",
"light-gray": "Light gray",
"red": "Red",
"yellow": "Yellow",
"orange": "Orange",
"green": "Green",
"lime": "Lime",
"blue": "Blue",
"purple": "Purple",
"brown": "Brown",
"cyan": "Cyan",
"pink": "Pink",
"magenta": "Magenta"
},
"property": {
"sourcePaper": "Source paper",
"none": "None",
"add": "Add property",
"search": "Search properties…",
"create": "Create property {{name}}",
"manage": "Manage properties…",
"clear": "Clear {{name}}",
"remove": "Remove “{{name}}” from this page",
"empty": "Empty",
"linkedPage": "Open linked page",
"setRefresh": "Set auto-refresh",
"interval": "Refresh interval (minutes)",
"every": "Every",
"minutes": "minutes",
"noOptions": "No options. Add one in shared properties.",
"openPage": "Open page",
"removeItem": "Remove {{name}}",
"json": "JSON value",
"hour": "Hour",
"hourValue": "{{hour}}:00",
"year": "Four-digit year",
"addTag": "Add tag…",
"createTag": "Create tag {{name}}",
"files": "Files for {{name}}",
"addFile": "Add file",
"addingFile": "Adding…",
"noFiles": "No files",
"findFile": "Search filenames…",
"noFileChoices": "No matching files",
"reminder": "Set reminders for {{name}}",
"onTime": "At the scheduled time",
"minutesBefore": "{{count}} minutes before",
"hourBefore": "1 hour before",
"dayBefore": "1 day before",
"weekBefore": "1 week before",
"morning": "At 9:00 that day",
"loadingFile": "Loading file…",
"yearHint": "YYYY",
"repeatPeriod": "Every {{period}}",
"enabled": "Enabled",
"paused": "Paused",
"cancelled": "Cancelled",
"manualDelete": "Manually deleted",
"unreachable": "No remaining references"
},
"attributeType": {
"string": "Text",
"number": "Number",
"boolean": "Checkbox",
"minute": "Date and minute",
"hour": "Date and hour",
"day": "Date",
"month": "Month",
"year": "Year",
"select": "Select",
"status": "Status",
"multiselect": "Multi-select",
"url": "URL",
"page-link": "Page link",
"page-links": "Page links",
"file": "File",
"files": "Files",
"recurrence": "Repeat",
"json": "JSON"
}
}
Loading
Loading