mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 11:50:15 +01:00
Add ICommand.langText for plugin (#8589)
* 🎨 Support custom text when plugin register command REF: https://github.com/siyuan-note/petal/pull/9 * 🎨 Support custom text when plugin register command
This commit is contained in:
parent
aaf6a5efcf
commit
1a7edf3b3c
2 changed files with 3 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ export const keymap = {
|
|||
item.commands.forEach(command => {
|
||||
const keyValue = updateHotkeyTip(command.customHotkey);
|
||||
commandHTML += `<label class="b3-list-item b3-list-item--narrow b3-list-item--hide-action">
|
||||
<span class="b3-list-item__text">${item.i18n[command.langKey]}</span>
|
||||
<span class="b3-list-item__text">${command.langText || item.i18n[command.langKey] || command.langKey}</span>
|
||||
<span data-type="reset" class="b3-list-item__action b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.reset}">
|
||||
<svg><use xlink:href="#iconUndo"></use></svg>
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue