From 729715ebfb0770e09ecba2fd4a661fa2013efcd4 Mon Sep 17 00:00:00 2001 From: Nriver <6752679+Nriver@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:55:37 +0800 Subject: [PATCH] add translation for ribbon widgets: note_map.js --- src/public/app/widgets/ribbon_widgets/note_map.js | 7 ++++--- src/public/translations/cn/translation.json | 5 +++++ src/public/translations/en/translation.json | 5 +++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/public/app/widgets/ribbon_widgets/note_map.js b/src/public/app/widgets/ribbon_widgets/note_map.js index 9dd4de961..b180190b9 100644 --- a/src/public/app/widgets/ribbon_widgets/note_map.js +++ b/src/public/app/widgets/ribbon_widgets/note_map.js @@ -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 = `
@@ -25,8 +26,8 @@ const TPL = ` } - - + +
`; @@ -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' }; } diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json index 8c962c6d6..6ea3d5c44 100644 --- a/src/public/translations/cn/translation.json +++ b/src/public/translations/cn/translation.json @@ -716,5 +716,10 @@ "calculate": "计算", "subtree_size": "(子树大小: {{size}}, 共计 {{count}} 个笔记)", "title": "笔记信息" + }, + "note_map": { + "open_full": "展开显示", + "collapse": "折叠到正常大小", + "title": "笔记地图" } } diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json index 080166e9d..059dea807 100644 --- a/src/public/translations/en/translation.json +++ b/src/public/translations/en/translation.json @@ -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" } }