Skip to content

Commit

Permalink
国际化
Browse files Browse the repository at this point in the history
  • Loading branch information
zzlb0224 committed Aug 26, 2024
1 parent 08d9b4a commit 89b3bf0
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions src/modules/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ function unregister() {
function buildMenu(collectionOrItem: "collection" | "item") {
const menu: MenuitemOptions = {
tag: "menu",
label: "笔记管理 - in " + collectionOrItem,
label: getString("menu-annotationManage") + " - in " + collectionOrItem,

icon: iconBaseUrl + "favicon.png",
children: [
{
//自定义命令
tag: "menu",
label: "自定义命令",
label: getString("menu-customMenu"),// "自定义命令",
icon: iconBaseUrl + "favicon.png",
children: [
{
Expand Down Expand Up @@ -739,24 +740,24 @@ export function createActionTag(
// },
action
? {
tag: "button",
namespace: "html",
properties: { textContent: "确定生成" },
// styles: {
// padding: "6px",
// background: "#f99",
// margin: "1px",
// },
listeners: [
{
type: "click",
listener: (ev: any) => {
stopPropagation(ev);
action();
},
tag: "button",
namespace: "html",
properties: { textContent: "确定生成" },
// styles: {
// padding: "6px",
// background: "#f99",
// margin: "1px",
// },
listeners: [
{
type: "click",
listener: (ev: any) => {
stopPropagation(ev);
action();
},
],
}
},
],
}
: { tag: "span" },
...others,
];
Expand Down

0 comments on commit 89b3bf0

Please sign in to comment.