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
i18n: Translate note map buttons
Elian Doranc0d613c46d0c
diff --git a/src/public/app/widgets/note_map.js b/src/public/app/widgets/note_map.jsindex ab7d2c0e09..f4b00dc81d 100644--- a/src/public/app/widgets/note_map.js+++ b/src/public/app/widgets/note_map.js@@ -6,6 +6,7 @@ import appContext from "../components/app_context.js";import NoteContextAwareWidget from "./note_context_aware_widget.js";import linkContextMenuService from "../menus/link_context_menu.js";import utils from "../services/utils.js";+import { t } from "../services/i18n.js";const esc = utils.escapeHtml;@@ -30,8 +31,8 @@ const TPL = `<div class="note-map-widget" style="position: relative;"></style><div class="btn-group btn-group-sm map-type-switcher" role="group">- <button type="button" class="btn bx bx-network-chart" title="Link Map" data-type="link"></button>- <button type="button" class="btn bx bx-sitemap" title="Tree map" data-type="tree"></button>+ <button type="button" class="btn bx bx-network-chart" title="${t("note-map.button-link-map")}" data-type="link"></button>+ <button type="button" class="btn bx bx-sitemap" title="${t("note-map.button-tree-map")}" data-type="tree"></button></div><div class="style-resolver"></div>diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex 8273e69120..cc7fd98ba6 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -1244,5 +1244,9 @@"note_is_editable": "Note is editable if it's not too long.","note_is_read_only": "Note is read-only, but can be edited with a button click.","note_is_always_editable": "Note is always editable, regardless of its length."+ },+ "note-map": {+ "button-link-map": "Link Map",+ "button-tree-map": "Tree map"}}diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.jsonindex ab5f24a20a..07e450c3a8 100644--- a/src/public/translations/ro/translation.json+++ b/src/public/translations/ro/translation.json@@ -1244,5 +1244,9 @@},"svg_export_button": {"button_title": "Exportă diagrama ca SVG"+ },+ "note-map": {+ "button-link-map": "Harta legăturilor",+ "button-tree-map": "Harta ierarhiei"}}