diff --git a/src/public/app/widgets/buttons/create_pane_button.js b/src/public/app/widgets/buttons/create_pane_button.js index e608803a9..1c072548a 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 93fb9f694..eb6633db2 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 a84c3d1ef..e9c503e8d 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" } }