mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
add translation for ribbon widgets: note_map.js
This commit is contained in:
parent
bdc6a1fe29
commit
729715ebfb
@ -1,5 +1,6 @@
|
||||
import NoteContextAwareWidget from "../note_context_aware_widget.js";
|
||||
import NoteMapWidget from "../note_map.js";
|
||||
import { t } from "../../services/i18n.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="note-map-ribbon-widget">
|
||||
@ -25,8 +26,8 @@ const TPL = `
|
||||
}
|
||||
</style>
|
||||
|
||||
<button class="bx bx-arrow-to-bottom icon-action open-full-button" title="Open full"></button>
|
||||
<button class="bx bx-arrow-to-top icon-action collapse-button" style="display: none;" title="Collapse to normal size"></button>
|
||||
<button class="bx bx-arrow-to-bottom icon-action open-full-button" title="${t("note_map.open_full")}"></button>
|
||||
<button class="bx bx-arrow-to-top icon-action collapse-button" style="display: none;" title="${t("note_map.collapse")}"></button>
|
||||
|
||||
<div class="note-map-container"></div>
|
||||
</div>`;
|
||||
@ -50,7 +51,7 @@ export default class NoteMapRibbonWidget extends NoteContextAwareWidget {
|
||||
getTitle() {
|
||||
return {
|
||||
show: this.isEnabled(),
|
||||
title: 'Note Map',
|
||||
title: t("note_map.title"),
|
||||
icon: 'bx bx-map-alt'
|
||||
};
|
||||
}
|
||||
|
@ -716,5 +716,10 @@
|
||||
"calculate": "计算",
|
||||
"subtree_size": "(子树大小: {{size}}, 共计 {{count}} 个笔记)",
|
||||
"title": "笔记信息"
|
||||
},
|
||||
"note_map": {
|
||||
"open_full": "展开显示",
|
||||
"collapse": "折叠到正常大小",
|
||||
"title": "笔记地图"
|
||||
}
|
||||
}
|
||||
|
@ -717,5 +717,10 @@
|
||||
"calculate": "calculate",
|
||||
"subtree_size": "(subtree size: {{size}} in {{count}} notes)",
|
||||
"title": "Note Info"
|
||||
},
|
||||
"note_map": {
|
||||
"open_full": "Expand to full",
|
||||
"collapse": "Collapse to normal size",
|
||||
"title": "Note Map"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user