Skip to content

Commit

Permalink
Docs: nhn#110 - Need a full key list of localization for nhn#107
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-marchenko committed Dec 21, 2018
1 parent 44a956d commit 8b751fd
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions docs/Basic-Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,111 @@ imageEditor.loadImageFromURL('img/sampleImage.jpg', 'My sample image')

<br>

### 4. Localization
ImageEditor provide feature to customize all of inscriptions. Look at example.

```js
var locale_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: {
loadImage: {
path: 'img/sampleImage.jpg',
name: 'SampleImage'
},
locale: locale_ru, // key-value object with localization
theme: blackTheme, // or whiteTheme
initMenu: 'filter',
menuBarPosition: 'bottom'
},
cssMaxWidth: 700,
cssMaxHeight: 500,
selectionStyle: {
cornerSize: 20,
rotatingPointOffset: 70
}
});
```
<br>

Full inscriptions list who can be replaced to custom ones:
* 3:2
* 4:3
* 5:4
* 7:5
* 16:9
* Apply
* Arrow
* Arrow-2
* Arrow-3
* Blend
* Blur
* Bold
* Brightness
* Bubble
* Cancel
* Center
* Circle
* Color
* Color Filter
* Crop
* Custom
* Custom icon
* Delete
* Delete-all
* Distance
* Download
* Draw
* Emboss
* Fill
* Filter
* Flip
* Flip X
* Flip Y
* Free
* Grayscale
* Heart
* Icon
* Invert
* Italic
* Left
* Load
* Load Mask Image
* Location
* Mask
* Multiply
* Noise
* Pixelate
* Polygon
* Range
* Rectangle
* Redo
* Remove White
* Reset
* Right
* Rotate
* Sepia
* Sepia2
* Shape
* Sharpen
* Square
* Star-1
* Star-2
* Straight
* Stroke
* Text
* Text size
* Threshold
* Tint
* Triangle
* Underline
* Undo
* Value

## More..

See the API page and the sample page
Expand Down

0 comments on commit 8b751fd

Please sign in to comment.