You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ Table of contents
32
32
*[Supported hotkeys](#supported-hotkeys)
33
33
*[Configuration](#configuration)
34
34
*[UI color scheme](#ui-color-scheme)
35
+
*[Translation](#translation)
35
36
*[Saving image](#saving-image)
36
37
*[Base64 saving](#base64-saving)
37
38
*[Binary saving](#binary-saving)
@@ -110,11 +111,11 @@ Configuration
110
111
|`backgroundFillColor`| Default background color when image created/erased | "#ffffff" |
111
112
|`defaultFontSize`| Default font size in pixels | 24 |
112
113
|`defaultSize`| default image size, should be string in format `<width>x<height>` in pixel, e.g. `'200x100'`. If value is `'fill'`(default) than all container size will be used |`'fill'`|
113
-
|`hiddenTools` | List of tools that you do not want to see in Painterro
114
-
e.g. something of this list `['crop', 'line', 'rect', 'ellipse', 'brush', 'text', 'rotate', 'resize', 'save', 'open', 'close']` | [] |
114
+
|`hiddenTools` | List of tools that you wish to exclude from toolbar
115
+
e.g. something from this list `['crop', 'line', 'rect', 'ellipse', 'brush', 'text', 'rotate', 'resize', 'save', 'open', 'close']` | [] |
115
116
116
117
UI color scheme
117
-
===============
118
+
---------------
118
119
119
120
Next group of params used to configure painterro user interface.
120
121
They should be placed under `colorScheme` group, for example:
@@ -144,19 +145,21 @@ Painterro({
144
145
Translation
145
146
-----------
146
147
147
-
If you want to translate or change strings you can du this by passing `translation` parameter
148
+
If you want to translate or change strings you can do this by passing
149
+
`translation` parameter, for example:
148
150
149
151
```js
150
152
Painterro({
151
153
translation: {
152
154
name:'ua',
153
155
strings: {
154
156
apply:'Застосувати'
157
+
// other strings
155
158
}
156
159
}
157
160
}).show()
158
161
```
159
-
For all values that can be translated see `js/translation.js`
162
+
For all strings that can be translated see `js/translation.js`
0 commit comments