add translation for buttons: edit button

This commit is contained in:
Nriver 2024-07-31 10:59:22 +08:00
parent 75e8a6cdc0
commit d84f4387c5
3 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import OnClickButtonWidget from "./onclick_button.js";
import appContext from "../../components/app_context.js";
import attributeService from "../../services/attributes.js";
import protectedSessionHolder from "../../services/protected_session_holder.js";
import { t } from "../../services/i18n.js";
export default class EditButton extends OnClickButtonWidget {
isEnabled() {
@ -14,7 +15,7 @@ export default class EditButton extends OnClickButtonWidget {
super();
this.icon("bx-edit-alt")
.title("Edit this note")
.title(t("edit_button.edit_this_note"))
.titlePlacement("bottom")
.onClick(widget => {
this.noteContext.viewScope.readOnlyTemporarilyDisabled = true;

View File

@ -555,5 +555,8 @@
},
"create_pane_button": {
"create_new_split": "拆分面板"
},
"edit_button": {
"edit_this_note": "编辑此笔记"
}
}

View File

@ -556,5 +556,8 @@
},
"create_pane_button": {
"create_new_split": "Create new split"
},
"edit_button": {
"edit_this_note": "Edit this note"
}
}