feat:add i18n

This commit is contained in:
Hufe921
2023-02-08 20:32:18 +08:00
parent eb0086a4b8
commit 82b8d2c5a9
18 changed files with 354 additions and 38 deletions
@@ -12,6 +12,7 @@ export interface IContextMenuContext {
}
export interface IRegisterContextMenu {
i18nPath?: string;
isDivider?: boolean;
icon?: string;
name?: string;
@@ -19,4 +20,44 @@ export interface IRegisterContextMenu {
when?: (payload: IContextMenuContext) => boolean;
callback?: (command: Command, context: IContextMenuContext) => any;
childMenus?: IRegisterContextMenu[];
}
export interface IContextmenuLang {
global: {
cut: string;
copy: string;
paste: string;
selectAll: string;
print: string;
};
control: {
delete: string;
};
hyperlink: {
delete: string;
cancel: string;
edit: string;
};
image: {
change: string;
saveAs: string;
textWrap: string;
textWrapType: {
embed: string;
upDown: string;
}
};
table: {
insertRowCol: string;
insertTopRow: string;
insertBottomRow: string;
insertLeftCol: string;
insertRightCol: string;
deleteRowCol: string;
deleteRow: string;
deleteCol: string;
deleteTable: string;
mergeCell: string;
mergeCancelCell: string;
};
}
+7
View File
@@ -0,0 +1,7 @@
import { IDatePickerLang } from '../../core/draw/particle/date/DatePicker'
import { IContextmenuLang } from '../contextmenu/ContextMenu'
export interface ILang {
contextmenu: IContextmenuLang;
datePicker: IDatePickerLang;
}