Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client: Translate note types
Elian Dorane382a32ebdf4
diff --git a/src/public/app/services/note_types.js b/src/public/app/services/note_types.jsindex 73314245d2..242df1a543 100644--- a/src/public/app/services/note_types.js+++ b/src/public/app/services/note_types.js@@ -1,19 +1,20 @@import server from "./server.js";import froca from "./froca.js";+import { t } from "./i18n.js";async function getNoteTypeItems(command) {const items = [- { title: "Text", command: command, type: "text", uiIcon: "bx bx-note" },- { title: "Code", command: command, type: "code", uiIcon: "bx bx-code" },- { title: "Saved Search", command: command, type: "search", uiIcon: "bx bx-file-find" },- { title: "Relation Map", command: command, type: "relationMap", uiIcon: "bx bx-map-alt" },- { title: "Note Map", command: command, type: "noteMap", uiIcon: "bx bx-map-alt" },- { title: "Render Note", command: command, type: "render", uiIcon: "bx bx-extension" },- { title: "Book", command: command, type: "book", uiIcon: "bx bx-book" },- { title: "Mermaid Diagram", command: command, type: "mermaid", uiIcon: "bx bx-selection" },- { title: "Canvas", command: command, type: "canvas", uiIcon: "bx bx-pen" },- { title: "Web View", command: command, type: "webView", uiIcon: "bx bx-globe-alt" },- { title: "Mind Map", command, type: "mindMap", uiIcon: "bx bx-sitemap" }+ { title: t("note_types.text"), command: command, type: "text", uiIcon: "bx bx-note" },+ { title: t("note_types.code"), command: command, type: "code", uiIcon: "bx bx-code" },+ { title: t("note_types.saved-search"), command: command, type: "search", uiIcon: "bx bx-file-find" },+ { title: t("note_types.relation-map"), command: command, type: "relationMap", uiIcon: "bx bx-map-alt" },+ { title: t("note_types.note-map"), command: command, type: "noteMap", uiIcon: "bx bx-map-alt" },+ { title: t("note_types.render-note"), command: command, type: "render", uiIcon: "bx bx-extension" },+ { title: t("note_types.book"), command: command, type: "book", uiIcon: "bx bx-book" },+ { title: t("note_types.mermaid-diagram"), command: command, type: "mermaid", uiIcon: "bx bx-selection" },+ { title: t("note_types.canvas"), command: command, type: "canvas", uiIcon: "bx bx-pen" },+ { title: t("note_types.web-view"), command: command, type: "webView", uiIcon: "bx bx-globe-alt" },+ { title: t("note_types.mind-map"), command, type: "mindMap", uiIcon: "bx bx-sitemap" }];const templateNoteIds = await server.get("search-templates");diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex d842120e08..848b3c083c 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -1281,5 +1281,18 @@"shared_publicly": "This note is shared publicly on","shared_locally": "This note is shared locally on","help_link": "For help visit <a href=\"https://triliumnext.github.io/Docs/Wiki/sharing.html\">wiki</a>."+ },+ "note_types": {+ "text": "Text",+ "code": "Code",+ "saved-search": "Saved Search",+ "relation-map": "Relation Map",+ "note-map": "Note Map",+ "render-note": "Render Note",+ "book": "Book",+ "mermaid-diagram": "Mermaid Diagram",+ "canvas": "Canvas",+ "web-view": "Web View",+ "mind-map": "Mind Map"}}diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.jsonindex 598698d7c0..4113cfedd1 100644--- a/src/public/translations/ro/translation.json+++ b/src/public/translations/ro/translation.json@@ -1281,5 +1281,18 @@"help_link": "Pentru informații vizitați <a href=\"https://triliumnext.github.io/Docs/Wiki/sharing.html\">wiki-ul</a>.","shared_locally": "Această notiță este partajată local la","shared_publicly": "Această notiță este partajată public la"+ },+ "note_types": {+ "book": "Carte",+ "canvas": "Schiță",+ "code": "Cod sursă",+ "mermaid-diagram": "Diagramă Mermaid",+ "mind-map": "Hartă mentală",+ "note-map": "Hartă notițe",+ "relation-map": "Hartă relații",+ "render-note": "Randare notiță",+ "saved-search": "Căutare salvată",+ "text": "Text",+ "web-view": "Vizualizare web"}}