Skip to content

Build your personal knowledge base with Trilium Notes

add translation for buttons: create pane button

Nriver75e8a6cdc07c
diff --git a/src/public/app/widgets/buttons/create_pane_button.js b/src/public/app/widgets/buttons/create_pane_button.js
index e608803a92..1c072548aa 100644
--- a/src/public/app/widgets/buttons/create_pane_button.js
+++ b/src/public/app/widgets/buttons/create_pane_button.js
@@ -1,3 +1,4 @@
+import { t } from "../../services/i18n.js";
import OnClickButtonWidget from "./onclick_button.js";
export default class CreatePaneButton extends OnClickButtonWidget {
@@ -5,7 +6,7 @@ export default class CreatePaneButton extends OnClickButtonWidget {
super();
this.icon("bx-dock-right")
- .title("Create new split")
+ .title(t("create_pane_button.create_new_split"))
.titlePlacement("bottom")
.onClick(widget => widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() }))
.class("icon-action");
diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json
index 93fb9f694e..eb6633db21 100644
--- a/src/public/translations/cn/translation.json
+++ b/src/public/translations/cn/translation.json
@@ -552,5 +552,8 @@
},
"close_pane_button": {
"close_this_pane": "关闭此面板"
+ },
+ "create_pane_button": {
+ "create_new_split": "拆分面板"
}
}
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index a84c3d1ef6..e9c503e8d2 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -553,5 +553,8 @@
},
"close_pane_button": {
"close_this_pane": "Close this pane"
+ },
+ "create_pane_button": {
+ "create_new_split": "Create new split"
}
}