init from https://github.com/Hufe921/canvas-editor
This commit is contained in:
commit
977ba1c283
456 files changed
+52892
No files matched your search
@@ -0,0 +1,112 @@
|
||||
# i18n
|
||||
|
||||
## How to Use
|
||||
|
||||
```javascript
|
||||
import Editor from "@hufe921/canvas-editor"
|
||||
|
||||
const instance = new Editor(container, <IElement[]>data, options)
|
||||
|
||||
// register
|
||||
instance.register.langMap(locale: string, lang: ILang)
|
||||
|
||||
// set locale
|
||||
instance.command.executeSetLocale(locale)
|
||||
```
|
||||
|
||||
## ILang
|
||||
|
||||
```typescript
|
||||
interface ILang {
|
||||
contextmenu: {
|
||||
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
|
||||
surround: string
|
||||
floatTop: string
|
||||
floatBottom: string
|
||||
}
|
||||
}
|
||||
table: {
|
||||
insertRowCol: string
|
||||
insertTopRow: string
|
||||
insertBottomRow: string
|
||||
insertLeftCol: string
|
||||
insertRightCol: string
|
||||
deleteRowCol: string
|
||||
deleteRow: string
|
||||
deleteCol: string
|
||||
deleteTable: string
|
||||
mergeCell: string
|
||||
mergeCancelCell: string
|
||||
verticalAlign: string
|
||||
verticalAlignTop: string
|
||||
verticalAlignMiddle: string
|
||||
verticalAlignBottom: string
|
||||
border: string
|
||||
borderAll: string
|
||||
borderEmpty: string
|
||||
borderDash: string
|
||||
borderExternal: string
|
||||
borderInternal: string
|
||||
borderTd: string
|
||||
borderTdTop: string
|
||||
borderTdRight: string
|
||||
borderTdBottom: string
|
||||
borderTdLeft: string
|
||||
borderTdForward: string
|
||||
borderTdBack: string
|
||||
}
|
||||
}
|
||||
datePicker: {
|
||||
now: string
|
||||
confirm: string
|
||||
return: string
|
||||
timeSelect: string
|
||||
weeks: {
|
||||
sun: string
|
||||
mon: string
|
||||
tue: string
|
||||
wed: string
|
||||
thu: string
|
||||
fri: string
|
||||
sat: string
|
||||
}
|
||||
year: string
|
||||
month: string
|
||||
hour: string
|
||||
minute: string
|
||||
second: string
|
||||
}
|
||||
frame: {
|
||||
header: string
|
||||
footer: string
|
||||
}
|
||||
pageBreak: {
|
||||
displayName: string
|
||||
}
|
||||
zone: {
|
||||
headerTip: string
|
||||
footerTip: string
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user