js-draw 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/ISSUE_TEMPLATE/translation.md +96 -0
- package/CHANGELOG.md +3 -0
- package/dist/bundle.js +1 -1
- package/dist/src/localizations/de.d.ts +3 -0
- package/dist/src/localizations/de.js +4 -0
- package/dist/src/localizations/getLocalizationTable.js +2 -0
- package/package.json +1 -1
- package/src/localizations/de.ts +98 -0
- package/src/localizations/getLocalizationTable.ts +2 -0
- package/src/styles.js +4 -0
- package/src/toolbar/toolbar.css +8 -2
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Report an issue with js-draw.
|
4
|
+
title: ''
|
5
|
+
labels: bug
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
# Describe the bug
|
11
|
+
A clear and concise description of what the bug is.
|
12
|
+
|
13
|
+
# To Reproduce
|
14
|
+
Steps to reproduce the behavior:
|
15
|
+
1. Open ...
|
16
|
+
2. Switch to the ... tool.
|
17
|
+
3. ...
|
18
|
+
|
19
|
+
## Observed behavior
|
20
|
+
A concise description of what happened.
|
21
|
+
|
22
|
+
## Expected behavior
|
23
|
+
A concise description of what was expected to happen.
|
24
|
+
|
25
|
+
# Screenshots
|
26
|
+
If applicable, add screenshots to help explain the issue.
|
27
|
+
|
28
|
+
# Platform
|
29
|
+
- OS: [e.g. Windows]
|
30
|
+
- Browser: [e.g. Firefox, Chrome, Safari]
|
31
|
+
- Version: [e.g. 0.2.0]
|
32
|
+
|
33
|
+
# Additional context
|
34
|
+
Add any other context about the problem here.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for this project
|
4
|
+
title: ''
|
5
|
+
labels: enhancement
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
12
|
+
|
13
|
+
**Describe the solution you'd like**
|
14
|
+
A clear and concise description of what you want to happen.
|
15
|
+
|
16
|
+
**Describe alternatives you've considered**
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
18
|
+
|
19
|
+
**Additional context**
|
20
|
+
Add any other context or screenshots about the feature request here.
|
@@ -0,0 +1,96 @@
|
|
1
|
+
---
|
2
|
+
name: Translation
|
3
|
+
about: Translate the editor to a new language!
|
4
|
+
title: ''
|
5
|
+
labels: localization
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
# Language name in English
|
11
|
+
[e.g. Spanish]
|
12
|
+
|
13
|
+
# Translations
|
14
|
+
Please translate each of the strings in the right column (everything after the `: `) into the target language.
|
15
|
+
|
16
|
+
Ignore the surrounding single quotes. For example, to translate `insertDrawing: 'Insert Drawing',` to Spanish, please replace it with `insertDrawing: 'Añada dibujo',`.
|
17
|
+
|
18
|
+
If you're updating an existing translation, please only include the strings you're translating. Similarly, if you don't want to provide localizations for an entire language, only include the strings you did translate.
|
19
|
+
|
20
|
+
pen: "Pen",
|
21
|
+
eraser: "Eraser",
|
22
|
+
select: "Select",
|
23
|
+
handTool: "Pan",
|
24
|
+
zoom: "Zoom",
|
25
|
+
resetView: "Reset view",
|
26
|
+
thicknessLabel: "Thickness: ",
|
27
|
+
colorLabel: "Color: ",
|
28
|
+
fontLabel: "Font: ",
|
29
|
+
resizeImageToSelection: "Resize image to selection",
|
30
|
+
deleteSelection: "Delete selection",
|
31
|
+
duplicateSelection: "Duplicate selection",
|
32
|
+
undo: "Undo",
|
33
|
+
redo: "Redo",
|
34
|
+
selectObjectType: "Object type: ",
|
35
|
+
pickColorFromScreen: "Pick color from screen",
|
36
|
+
clickToPickColorAnnouncement: "Click on the screen to pick a color",
|
37
|
+
selectionToolKeyboardShortcuts: "Selection tool: Use arrow keys to move selected items, lowercase/uppercase ‘i’ and ‘o’ to resize.",
|
38
|
+
touchPanning: "Touchscreen panning",
|
39
|
+
anyDevicePanning: "Any device panning",
|
40
|
+
freehandPen: "Freehand",
|
41
|
+
arrowPen: "Arrow",
|
42
|
+
linePen: "Line",
|
43
|
+
outlinedRectanglePen: "Outlined rectangle",
|
44
|
+
filledRectanglePen: "Filled rectangle",
|
45
|
+
dropdownShown: t=>`Dropdown for ${t} shown`,
|
46
|
+
dropdownHidden: t=>`Dropdown for ${t} hidden`,
|
47
|
+
zoomLevel: t=>`Zoom: ${t}%`,
|
48
|
+
colorChangedAnnouncement: t=>`Color changed to ${t}`,
|
49
|
+
penTool: t=>`Pen ${t}`,
|
50
|
+
selectionTool: "Selection",
|
51
|
+
eraserTool: "Eraser",
|
52
|
+
touchPanTool: "Touch panning",
|
53
|
+
twoFingerPanZoomTool: "Panning and zooming",
|
54
|
+
undoRedoTool: "Undo/Redo",
|
55
|
+
rightClickDragPanTool: "Right-click drag",
|
56
|
+
pipetteTool: "Pick color from screen",
|
57
|
+
keyboardPanZoom: "Keyboard pan/zoom shortcuts",
|
58
|
+
textTool: "Text",
|
59
|
+
enterTextToInsert: "Text to insert",
|
60
|
+
toolEnabledAnnouncement: t=>`${t} enabled`,
|
61
|
+
toolDisabledAnnouncement: t=>`${t} disabled`,
|
62
|
+
updatedViewport: "Transformed Viewport",
|
63
|
+
transformedElements: t=>`Transformed ${t} element${1===t?"":"s"}`,
|
64
|
+
resizeOutputCommand: t=>`Resized image to ${t.w}x${t.h}`,
|
65
|
+
addElementAction: t=>`Added ${t}`,
|
66
|
+
eraseAction: (elemDescription, countErased)=>`Erased ${countErased} ${elemDescription}`,
|
67
|
+
duplicateAction: (elemDescription, countErased)=>`Duplicated ${countErased} ${elemDescription}`,
|
68
|
+
inverseOf: t=>`Inverse of ${t}`,
|
69
|
+
elements: "Elements",
|
70
|
+
erasedNoElements: "Erased nothing",
|
71
|
+
duplicatedNoElements: "Duplicated nothing",
|
72
|
+
rotatedBy: t=>`Rotated by ${Math.abs(t)} degrees ${t<0?"clockwise":"counter-clockwise"}`,
|
73
|
+
movedLeft: "Moved left",
|
74
|
+
movedUp: "Moved up",
|
75
|
+
movedDown: "Moved down",
|
76
|
+
movedRight: "Moved right",
|
77
|
+
zoomedOut: "Zoomed out",
|
78
|
+
zoomedIn: "Zoomed in",
|
79
|
+
selectedElements: t=>`Selected ${t} element${ 1===t ? "" : "s" }`,
|
80
|
+
stroke: "Stroke",
|
81
|
+
svgObject: "SVG Object",
|
82
|
+
text: t=>`Text object: ${t}`,
|
83
|
+
pathNodeCount: t=>`There are ${t} visible path objects.`,
|
84
|
+
textNodeCount: t=>`There are ${t} visible text nodes.`,
|
85
|
+
textNode: t=>`Text: ${t}`,
|
86
|
+
rerenderAsText: "Re-render as text",
|
87
|
+
accessibilityInputInstructions: "Press \"t\" to read the contents of the viewport as text. Use the arrow keys to move the viewport, click and drag to draw strokes. Press \"w\" to zoom in and \"s\" to zoom out.",
|
88
|
+
loading: t=>`Loading ${t}%...`,
|
89
|
+
imageEditor: "Image Editor",
|
90
|
+
doneLoading: "Done loading",
|
91
|
+
undoAnnouncement: t=>`Undid ${t}`,
|
92
|
+
redoAnnouncement: t=>`Redid ${t}`,
|
93
|
+
|
94
|
+
<!--
|
95
|
+
If you have development expierence and are comfortable creating a pull request, please consider doing so — the language can be added to ./src/localizations/.
|
96
|
+
-->
|