mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
client: Use translation for classic toolbar title
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { t } from "../../services/i18n.js";
|
||||||
import NoteContextAwareWidget from "../note_context_aware_widget.js";
|
import NoteContextAwareWidget from "../note_context_aware_widget.js";
|
||||||
|
|
||||||
const TPL = `\
|
const TPL = `\
|
||||||
@@ -36,7 +37,7 @@ export default class ClassicEditorToolbar extends NoteContextAwareWidget {
|
|||||||
return {
|
return {
|
||||||
show: await this.#shouldDisplay(),
|
show: await this.#shouldDisplay(),
|
||||||
activate: true,
|
activate: true,
|
||||||
title: "Editor toolbar",
|
title: t("classic_editor_toolbar.title"),
|
||||||
icon: "bx bx-edit-alt"
|
icon: "bx bx-edit-alt"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1508,5 +1508,8 @@
|
|||||||
},
|
},
|
||||||
"code_block": {
|
"code_block": {
|
||||||
"word_wrapping": "Word wrapping"
|
"word_wrapping": "Word wrapping"
|
||||||
|
},
|
||||||
|
"classic_editor_toolbar": {
|
||||||
|
"title": "Formatting"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user