feat(website/i18n): translate note types

This commit is contained in:
Elian Doran 2025-10-11 22:08:53 +03:00
parent ffaa011c3e
commit ee9de82203
No known key found for this signature in database
2 changed files with 39 additions and 18 deletions

View File

@ -37,5 +37,26 @@
"search_content": "Or search for text inside notes and narrow down the search by filtering by the parent note, or by depth.", "search_content": "Or search for text inside notes and narrow down the search by filtering by the parent note, or by depth.",
"web_clipper_title": "Web clipper", "web_clipper_title": "Web clipper",
"web_clipper_content": "Grab web pages (or screenshots) and place them directly into Trilium using the web clipper browser extension." "web_clipper_content": "Grab web pages (or screenshots) and place them directly into Trilium using the web clipper browser extension."
},
"note_types": {
"text_title": "Text notes",
"text_description": "The notes are edited using a visual (WYSIWYG) editor, with support for tables, images, math expressions, code blocks with syntax highlighting. Quickly format the text using Markdown-like syntax or using slash commands.",
"code_title": "Code notes",
"code_description": "Large samples of source code or scripts use a dedicated editor, with syntax highlighting for many programming languages and with various color themes.",
"file_title": "File notes",
"file_description": "Embed multimedia files such as PDFs, images, videos with an in-application preview.",
"canvas_title": "Canvas",
"canvas_description": "Arrange shapes, images and text across an infinite canvas, using the same technology behind excalidraw.com. Ideal for diagrams, sketches and visual planning.",
"mermaid_title": "Mermaid diagrams",
"mermaid_description": "Create diagrams such as flowcharts, class & sequence diagrams, Gantt charts and many more, using the Mermaid syntax.",
"mindmap_title": "Mindmap",
"mindmap_description": "Organize your thoughts visually or do a brainstorming session.",
"others_prefix": "and others: ",
"others_separator": ", ",
"others_note_map": "note map",
"others_relation_map": "relation map",
"others_saved_searches": "saved searches",
"others_render_note": "render note",
"others_webview": "web views"
} }
} }

View File

@ -130,55 +130,55 @@ function NoteTypesSection() {
<Section className="note-types" title="Multiple ways to represent your information"> <Section className="note-types" title="Multiple ways to represent your information">
<ListWithScreenshot horizontal items={[ <ListWithScreenshot horizontal items={[
{ {
title: "Text notes", title: t("note_types.text_title"),
imageUrl: "/type_text.webp", imageUrl: "/type_text.webp",
iconSvg: textNoteIcon, iconSvg: textNoteIcon,
moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Text/index.html", moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Text/index.html",
description: "The notes are edited using a visual (WYSIWYG) editor, with support for tables, images, math expressions, code blocks with syntax highlighting. Quickly format the text using Markdown-like syntax or using slash commands." description: t("note_types.text_description")
}, },
{ {
title: "Code notes", title: t("note_types.code_title"),
imageUrl: "/type_code.webp", imageUrl: "/type_code.webp",
iconSvg: codeIcon, iconSvg: codeIcon,
moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Code.html", moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Code.html",
description: "Large samples of source code or scripts use a dedicated editor, with syntax highlighting for many programming languages and with various color themes." description: t("note_types.code_description")
}, },
{ {
title: "File notes", title: t("note_types.file_title"),
imageUrl: "/type_file.webp", imageUrl: "/type_file.webp",
iconSvg: fileIcon, iconSvg: fileIcon,
moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/File.html", moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/File.html",
description: "Embed multimedia files such as PDFs, images, videos with an in-application preview." description: t("note_types.file_description")
}, },
{ {
title: "Canvas", title: t("note_types.canvas_title"),
imageUrl: "/type_canvas.webp", imageUrl: "/type_canvas.webp",
iconSvg: canvasIcon, iconSvg: canvasIcon,
moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Canvas.html", moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Canvas.html",
description: "Arrange shapes, images and text across an infinite canvas, using the same technology behind excalidraw.com. Ideal for diagrams, sketches and visual planning." description: t("note_types.canvas_description")
}, },
{ {
title: "Mermaid diagrams", title: t("note_types.mermaid_title"),
imageUrl: "/type_mermaid.webp", imageUrl: "/type_mermaid.webp",
iconSvg: mermaidIcon, iconSvg: mermaidIcon,
moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Mermaid%20Diagrams/index.html", moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Mermaid%20Diagrams/index.html",
description: "Create diagrams such as flowcharts, class & sequence diagrams, Gantt charts and many more, using the Mermaid syntax." description: t("note_types.mermaid_description")
}, },
{ {
title: "Mindmap", title: t("note_types.mindmap_title"),
imageUrl: "/type_mindmap.webp", imageUrl: "/type_mindmap.webp",
iconSvg: mindmapIcon, iconSvg: mindmapIcon,
moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Mind%20Map.html", moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Mind%20Map.html",
description: "Organize your thoughts visually or do a brainstorming session." description: t("note_types.mindmap_description")
} }
]} /> ]} />
<p> <p>
and others:{" "} {t("note_types.others_prefix")}
<Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Note%20Map.html" openExternally>note map</Link>,{" "} <Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Note%20Map.html" openExternally>{t("note_types.others_note_map")}</Link>{t("note_types.others_separator")}
<Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Relation%20Map.html" openExternally>relation map</Link>,{" "} <Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Relation%20Map.html" openExternally>{t("note_types.others_relation_map")}</Link>{t("note_types.others_separator")}
<Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Saved%20Search.html" openExternally>saved searches</Link>,{" "} <Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Saved%20Search.html" openExternally>{t("note_types.others_saved_searches")}</Link>{t("note_types.others_separator")}
<Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Render%20Note.html" openExternally>render note</Link>,{" "} <Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Render%20Note.html" openExternally>{t("note_types.others_render_note")}</Link>{t("note_types.others_separator")}
<Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Web%20View.html" openExternally>web views</Link>. <Link href="https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Web%20View.html" openExternally>{t("note_types.others_webview")}</Link>.
</p> </p>
</Section> </Section>
); );