mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
add translation for buttons: left pane toggle
This commit is contained in:
parent
8a0fec0a63
commit
989a0d6cd9
@ -1,6 +1,7 @@
|
||||
import options from "../../services/options.js";
|
||||
import splitService from "../../services/resizer.js";
|
||||
import CommandButtonWidget from "./command_button.js";
|
||||
import { t } from "../../services/i18n.js";
|
||||
|
||||
export default class LeftPaneToggleWidget extends CommandButtonWidget {
|
||||
constructor() {
|
||||
@ -13,8 +14,8 @@ export default class LeftPaneToggleWidget extends CommandButtonWidget {
|
||||
: "bx-chevrons-right";
|
||||
|
||||
this.settings.title = () => options.is('leftPaneVisible')
|
||||
? "Hide panel"
|
||||
: "Open panel";
|
||||
? t("left_pane_toggle.hide_panel")
|
||||
: t("left_pane_toggle.show_panel");
|
||||
|
||||
this.settings.command = () => options.is('leftPaneVisible')
|
||||
? "hideLeftPane"
|
||||
|
@ -584,5 +584,9 @@
|
||||
"show_help": "显示帮助",
|
||||
"about": "关于 TriliumNext 笔记",
|
||||
"logout": "登出"
|
||||
},
|
||||
"left_pane_toggle": {
|
||||
"hide_panel": "隐藏面板",
|
||||
"show_panel": "显示面板"
|
||||
}
|
||||
}
|
||||
|
@ -585,5 +585,9 @@
|
||||
"show_help": "Show Help",
|
||||
"about": "About TriliumNext Notes",
|
||||
"logout": "Logout"
|
||||
},
|
||||
"left_pane_toggle": {
|
||||
"hide_panel": "Hide panel",
|
||||
"open_panel": "Open panel"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user