Skip to content

Build your personal knowledge base with Trilium Notes

add translation for buttons: move pane button

Nriver355c4164c926
diff --git a/src/public/app/widgets/buttons/move_pane_button.js b/src/public/app/widgets/buttons/move_pane_button.js
index c7e6bdf60d..dc21431dee 100644
--- a/src/public/app/widgets/buttons/move_pane_button.js
+++ b/src/public/app/widgets/buttons/move_pane_button.js
@@ -1,5 +1,6 @@
import OnClickButtonWidget from "./onclick_button.js";
import appContext from "../../components/app_context.js";
+import { t } from "../../services/i18n.js";
export default class MovePaneButton extends OnClickButtonWidget {
constructor(isMovingLeft) {
@@ -8,7 +9,7 @@ export default class MovePaneButton extends OnClickButtonWidget {
this.isMovingLeft = isMovingLeft;
this.icon(isMovingLeft ? "bx-chevron-left" : "bx-chevron-right")
- .title(isMovingLeft ? "Move left" : "Move right")
+ .title(isMovingLeft ? t("move_pane_button.move_left") : t("move_pane_button.move_right"))
.titlePlacement("bottom")
.onClick(async (widget, e) => {
e.stopPropagation();
diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json
index b342bede37..a9fbf03f13 100644
--- a/src/public/translations/cn/translation.json
+++ b/src/public/translations/cn/translation.json
@@ -588,5 +588,9 @@
"left_pane_toggle": {
"hide_panel": "隐藏面板",
"show_panel": "显示面板"
+ },
+ "move_pane_button": {
+ "move_left": "向左移动",
+ "move_right": "向右移动"
}
}
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index 8a33469c33..9734995483 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -589,5 +589,9 @@
"left_pane_toggle": {
"hide_panel": "Hide panel",
"open_panel": "Open panel"
+ },
+ "move_pane_button": {
+ "move_left": "Move left",
+ "move_right": "Move right"
}
}