mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-15 19:48:06 +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
3
app/src/types/index.d.ts
vendored
3
app/src/types/index.d.ts
vendored
|
|
@ -326,7 +326,8 @@ interface IDockTab {
|
|||
}
|
||||
|
||||
interface ICommand {
|
||||
langKey: string, // 多语言 key
|
||||
langKey: string, // 用于区分不同快捷键的 key, 同时作为 i18n 的字段名
|
||||
langText?: string, // 显示的文本, 指定后不再使用 langKey 对应的 i18n 文本
|
||||
hotkey: string,
|
||||
customHotkey?: string,
|
||||
callback?: () => void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue