add translation for buttons: revisions_button.js

This commit is contained in:
Nriver 2024-08-02 09:01:39 +08:00
parent 9320a548f4
commit e2d43b4538
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import { t } from "../../services/i18n.js";
import CommandButtonWidget from "./command_button.js";
export default class RevisionsButton extends CommandButtonWidget {
@ -5,7 +6,7 @@ export default class RevisionsButton extends CommandButtonWidget {
super();
this.icon('bx-history')
.title("Note Revisions")
.title(t("revisions_button.note_revisions"))
.command("showRevisions")
.titlePlacement("bottom")
.class("icon-action");

View File

@ -615,5 +615,8 @@
"protected_session_status": {
"active": "受保护的会话已激活。点击退出受保护的会话。",
"inactive": "点击进入受保护的会话"
},
"revisions_button": {
"note_revisions": "笔记修改历史"
}
}

View File

@ -616,5 +616,8 @@
"protected_session_status": {
"active": "Protected session is active. Click to leave protected session.",
"inactive": "Click to enter protected session"
},
"revisions_button": {
"note_revisions": "Note Revisions"
}
}