Added
- Added declaration file(./index.d.ts) for Typescript support.
- Added Localization feature
includeUi.locale
var locale_ru_RU = { // override default English locale to your custom
'Crop': 'Обзрезать', // as result default English inscription will be translated into Russian
'Delete-all': 'Удалить всё'
// etc...
};
// Image editor
var instance = new ImageEditor(document.querySelector('#tui-image-editor'), {
includeUI: {
...
locale: locale_ru_RU, // key-value object with localization
...
},
...
});