mudlet-map-editor 0.15.0 → 0.16.0
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/dist-lib/components/FontPicker.d.ts +2 -1
- package/dist-lib/components/HelpModal.d.ts +11 -0
- package/dist-lib/components/LanguageSwitcher.d.ts +1 -0
- package/dist-lib/components/panels/HistoryPanel.d.ts +3 -1
- package/dist-lib/editor/store.d.ts +1 -1
- package/dist-lib/i18n/index.d.ts +8 -0
- package/dist-lib/i18n/locales/areas.en.d.ts +22 -0
- package/dist-lib/i18n/locales/areas.pl.d.ts +2 -0
- package/dist-lib/i18n/locales/context.en.d.ts +49 -0
- package/dist-lib/i18n/locales/context.pl.d.ts +2 -0
- package/dist-lib/i18n/locales/en.d.ts +128 -0
- package/dist-lib/i18n/locales/envs.en.d.ts +22 -0
- package/dist-lib/i18n/locales/envs.pl.d.ts +2 -0
- package/dist-lib/i18n/locales/modals.en.d.ts +37 -0
- package/dist-lib/i18n/locales/modals.pl.d.ts +2 -0
- package/dist-lib/i18n/locales/panels.en.d.ts +336 -0
- package/dist-lib/i18n/locales/panels.pl.d.ts +2 -0
- package/dist-lib/i18n/locales/pl.d.ts +2 -0
- package/dist-lib/i18n/locales/search.en.d.ts +15 -0
- package/dist-lib/i18n/locales/search.pl.d.ts +2 -0
- package/dist-lib/i18n/locales/sessions.en.d.ts +15 -0
- package/dist-lib/i18n/locales/sessions.pl.d.ts +2 -0
- package/dist-lib/i18n/locales/swatches.en.d.ts +21 -0
- package/dist-lib/i18n/locales/swatches.pl.d.ts +2 -0
- package/dist-lib/index.d.ts +3 -0
- package/dist-lib/index.js +5445 -4023
- package/dist-lib/styles.css +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
export declare const panelsEn: {
|
|
2
|
+
readonly sidebar: {
|
|
3
|
+
readonly selection: "Selection";
|
|
4
|
+
readonly selectionShort: "Sel";
|
|
5
|
+
readonly areas: "Areas";
|
|
6
|
+
readonly envs: "Colors";
|
|
7
|
+
readonly history: "History";
|
|
8
|
+
readonly historyShort: "Hist";
|
|
9
|
+
readonly map: "Map";
|
|
10
|
+
readonly script: "Script";
|
|
11
|
+
readonly expandPanel: "Expand panel";
|
|
12
|
+
readonly restorePanel: "Restore panel";
|
|
13
|
+
readonly collapsePanel: "Collapse panel";
|
|
14
|
+
readonly dragToResize: "Drag to resize";
|
|
15
|
+
readonly noSelection: "No selection";
|
|
16
|
+
readonly noSelectionHint: "Select a room with the Select tool to edit its properties.";
|
|
17
|
+
};
|
|
18
|
+
readonly room: {
|
|
19
|
+
readonly heading: "Room #{{id}}";
|
|
20
|
+
readonly centerView: "Center view on room";
|
|
21
|
+
readonly exits: "Exits";
|
|
22
|
+
readonly specialExits: "Special Exits";
|
|
23
|
+
readonly customLines: "Custom Lines";
|
|
24
|
+
readonly userData: "User Data";
|
|
25
|
+
readonly environment: "Room color";
|
|
26
|
+
readonly symbol: "Symbol";
|
|
27
|
+
readonly name: "Name";
|
|
28
|
+
readonly hash: "Hash";
|
|
29
|
+
readonly hashNone: "(none)";
|
|
30
|
+
readonly weight: "Weight";
|
|
31
|
+
readonly exitWeight: "Exit weight";
|
|
32
|
+
readonly roomWeight: "Room weight";
|
|
33
|
+
readonly removeExit: "Remove exit";
|
|
34
|
+
readonly removeStub: "Remove stub";
|
|
35
|
+
readonly markAsStub: "Mark as stub — exit direction exists but destination is unknown";
|
|
36
|
+
readonly convertToStub: "Convert to stub";
|
|
37
|
+
readonly pickTarget: "Pick target room from map";
|
|
38
|
+
readonly pickTargetCancel: "Click a room on the map (Esc to cancel)";
|
|
39
|
+
readonly customLine: "Custom line";
|
|
40
|
+
readonly editCustomLine: "Edit custom line";
|
|
41
|
+
readonly drawCustomLine: "Draw custom line";
|
|
42
|
+
readonly symbolColorTitle: "Symbol color (stored in userData as system.fallback_symbol_color)";
|
|
43
|
+
readonly clearSymbolColor: "Clear symbol color";
|
|
44
|
+
readonly doorNone: "No door (click to set)";
|
|
45
|
+
readonly doorOpen: "Open door";
|
|
46
|
+
readonly doorClosed: "Closed door";
|
|
47
|
+
readonly doorLocked: "Locked door";
|
|
48
|
+
readonly roomLocked: "Room locked — click to unlock";
|
|
49
|
+
readonly roomUnlocked: "Room unlocked — click to lock";
|
|
50
|
+
readonly exitLocked: "Locked — click to unlock";
|
|
51
|
+
readonly exitUnlocked: "Unlocked — click to lock";
|
|
52
|
+
readonly specialExitPlaceholder: "exit name";
|
|
53
|
+
readonly addButton: "Add";
|
|
54
|
+
readonly removeSpecialExit: "Remove special exit";
|
|
55
|
+
readonly clColor: "Color";
|
|
56
|
+
readonly clArrow: "Arrow";
|
|
57
|
+
readonly clBothWays: "Both ways";
|
|
58
|
+
readonly clBothWaysHint: "Also hide the default line on the partner room (only applies to reciprocal cardinal exits)";
|
|
59
|
+
readonly startDrawing: "Start Drawing";
|
|
60
|
+
readonly drawEmpty: "Draw empty";
|
|
61
|
+
readonly cancel: "Cancel";
|
|
62
|
+
readonly solid: "Solid";
|
|
63
|
+
readonly dash: "Dash";
|
|
64
|
+
readonly dot: "Dot";
|
|
65
|
+
readonly dashDot: "Dash-Dot";
|
|
66
|
+
readonly dashDotDot: "Dash-Dot-Dot";
|
|
67
|
+
readonly enterExitNameFirst: "Enter exit name first.";
|
|
68
|
+
readonly updatedField: "Updated {{field}} on room {{id}}";
|
|
69
|
+
readonly exitAdded: "Exit {{dir}} → room {{id}} added.";
|
|
70
|
+
readonly specialExitAdded: "Special exit '{{name}}' → {{id}} added";
|
|
71
|
+
readonly specialExitRemoved: "Special exit '{{name}}' removed";
|
|
72
|
+
readonly customLineRemoved: "Custom line '{{name}}' removed";
|
|
73
|
+
readonly hashCleared: "Room {{id}} hash cleared";
|
|
74
|
+
readonly hashSet: "Room {{id}} hash → {{hash}}";
|
|
75
|
+
readonly envChanged: "Room {{id}} color → {{env}}";
|
|
76
|
+
readonly ack: "Ack";
|
|
77
|
+
};
|
|
78
|
+
readonly multiRoom: {
|
|
79
|
+
readonly heading: "{{count}} rooms selected";
|
|
80
|
+
readonly hint: "Drag to move all. Delete to remove all. Shift+click/drag to add more. Ctrl+click/drag to toggle. Ctrl+A selects all.";
|
|
81
|
+
readonly bulkEdit: "Bulk Edit";
|
|
82
|
+
readonly name: "Name";
|
|
83
|
+
readonly symbol: "Symbol";
|
|
84
|
+
readonly symbolColor: "Symbol color";
|
|
85
|
+
readonly env: "Color";
|
|
86
|
+
readonly weight: "Weight";
|
|
87
|
+
readonly lock: "Lock";
|
|
88
|
+
readonly mixed: "mixed";
|
|
89
|
+
readonly differentValues: "Rooms have different values";
|
|
90
|
+
readonly enableName: "Enable name override";
|
|
91
|
+
readonly enableSymbol: "Enable symbol override";
|
|
92
|
+
readonly enableSymbolColor: "Enable symbol color override";
|
|
93
|
+
readonly enableEnv: "Enable room color override";
|
|
94
|
+
readonly enableWeight: "Enable weight override";
|
|
95
|
+
readonly enableLock: "Enable lock override";
|
|
96
|
+
readonly clearSymbolColor: "Clear: remove symbol color from all rooms";
|
|
97
|
+
readonly restoreSymbolColor: "Restore: set a color instead of clearing";
|
|
98
|
+
readonly locked: "Locked — click to set unlocked";
|
|
99
|
+
readonly unlocked: "Unlocked — click to set locked";
|
|
100
|
+
readonly enableToSet: "Enable to set";
|
|
101
|
+
readonly envPickerChange: "Color {{id}} — click to change";
|
|
102
|
+
readonly applyTo: "Apply to {{count}} rooms";
|
|
103
|
+
readonly warning: "This will overwrite the checked properties on all {{count}} selected rooms.";
|
|
104
|
+
readonly applied: "Applied bulk edit to {{count}} rooms";
|
|
105
|
+
};
|
|
106
|
+
readonly exit: {
|
|
107
|
+
readonly heading: "Exit";
|
|
108
|
+
readonly removeBothDirections: "✕ Remove both directions";
|
|
109
|
+
};
|
|
110
|
+
readonly stub: {
|
|
111
|
+
readonly heading: "Stub";
|
|
112
|
+
readonly removeStub: "✕ Remove stub";
|
|
113
|
+
};
|
|
114
|
+
readonly history: {
|
|
115
|
+
readonly currentState: "Current state";
|
|
116
|
+
readonly noHistory: "No history yet.";
|
|
117
|
+
readonly undoneCount: "Undone {{count}}×";
|
|
118
|
+
readonly redoneCoutn: "Redone {{count}}×";
|
|
119
|
+
readonly undoStep: "Undo {{count}} step";
|
|
120
|
+
readonly undoSteps: "Undo {{count}} steps";
|
|
121
|
+
readonly redoStep: "Redo {{count}} step";
|
|
122
|
+
readonly redoSteps: "Redo {{count}} steps";
|
|
123
|
+
readonly collapse: "Collapse";
|
|
124
|
+
readonly showMore: "+ {{count}} more";
|
|
125
|
+
readonly cmd: {
|
|
126
|
+
readonly moveRoom: "Move room #{{id}}";
|
|
127
|
+
readonly addRoom: "Add room #{{id}}";
|
|
128
|
+
readonly deleteRoom: "Delete room #{{id}}";
|
|
129
|
+
readonly addExitBidi: "Add exit #{{from}} {{dir}} ↔ #{{to}}";
|
|
130
|
+
readonly addExitUni: "Add exit #{{from}} {{dir}} → #{{to}}";
|
|
131
|
+
readonly removeExit: "Remove exit #{{from}} {{dir}}";
|
|
132
|
+
readonly removeAllExits: "Remove all exits from #{{id}}";
|
|
133
|
+
readonly setField: "Set {{field}} on #{{id}}";
|
|
134
|
+
readonly setHash: "Set hash on #{{id}}";
|
|
135
|
+
readonly clearHash: "Clear hash on #{{id}}";
|
|
136
|
+
readonly addArea: "Add area \"{{name}}\"";
|
|
137
|
+
readonly deleteArea: "Delete area \"{{name}}\"";
|
|
138
|
+
readonly deleteAreaWithRooms: "Delete area \"{{name}}\" + rooms";
|
|
139
|
+
readonly renameArea: "Rename area → \"{{name}}\"";
|
|
140
|
+
readonly setEnvColor: "Set room color #{{id}}";
|
|
141
|
+
readonly addSpecialExit: "Add special exit \"{{name}}\" on #{{id}}";
|
|
142
|
+
readonly removeSpecialExit: "Remove special exit \"{{name}}\" on #{{id}}";
|
|
143
|
+
readonly setCustomLine: "Set custom line \"{{name}}\" on #{{id}}";
|
|
144
|
+
readonly removeCustomLine: "Remove custom line \"{{name}}\"";
|
|
145
|
+
readonly moveRoomsToArea: "Move {{count}} room(s) to area";
|
|
146
|
+
readonly lockRoom: "Lock room #{{id}}";
|
|
147
|
+
readonly unlockRoom: "Unlock room #{{id}}";
|
|
148
|
+
readonly setDoor: "Set door on #{{id}} {{dir}}";
|
|
149
|
+
readonly setExitWeight: "Set exit weight on #{{id}} {{dir}}";
|
|
150
|
+
readonly lockExit: "Lock exit on #{{id}} {{dir}}";
|
|
151
|
+
readonly unlockExit: "Unlock exit on #{{id}} {{dir}}";
|
|
152
|
+
readonly addStub: "Add stub on #{{id}} {{dir}}";
|
|
153
|
+
readonly removeStub: "Remove stub on #{{id}} {{dir}}";
|
|
154
|
+
readonly addUserData: "Add user data \"{{key}}\" on #{{id}}";
|
|
155
|
+
readonly removeUserData: "Remove user data \"{{key}}\" on #{{id}}";
|
|
156
|
+
readonly editUserData: "Edit user data \"{{key}}\" on #{{id}}";
|
|
157
|
+
readonly addAreaUserData: "Add area user data \"{{key}}\" on area #{{id}}";
|
|
158
|
+
readonly removeAreaUserData: "Remove area user data \"{{key}}\" on area #{{id}}";
|
|
159
|
+
readonly editAreaUserData: "Edit area user data \"{{key}}\" on area #{{id}}";
|
|
160
|
+
readonly addMapUserData: "Add map user data \"{{key}}\"";
|
|
161
|
+
readonly removeMapUserData: "Remove map user data \"{{key}}\"";
|
|
162
|
+
readonly editMapUserData: "Edit map user data \"{{key}}\"";
|
|
163
|
+
readonly setSpecialDoor: "Set door on special exit \"{{name}}\"";
|
|
164
|
+
readonly setSpecialWeight: "Set weight on special exit \"{{name}}\"";
|
|
165
|
+
readonly addLabel: "Add label #{{id}}";
|
|
166
|
+
readonly deleteLabel: "Delete label #{{id}}";
|
|
167
|
+
readonly moveLabel: "Move label #{{id}}";
|
|
168
|
+
readonly setLabelText: "Set label #{{id}} text";
|
|
169
|
+
readonly setLabelSize: "Resize label #{{id}}";
|
|
170
|
+
readonly setLabelColors: "Set label #{{id}} colors";
|
|
171
|
+
readonly setLabelFont: "Set font on label #{{id}}";
|
|
172
|
+
readonly setLabelOutlineColor: "Set outline color on label #{{id}}";
|
|
173
|
+
readonly setLabelPixmap: "Update pixmap on label #{{id}}";
|
|
174
|
+
readonly setLabelImageSrc: "Set image source on label #{{id}}";
|
|
175
|
+
readonly disableZoomScaling: "Disable zoom scaling on label #{{id}}";
|
|
176
|
+
readonly enableZoomScaling: "Enable zoom scaling on label #{{id}}";
|
|
177
|
+
readonly setLabelForeground: "Set label #{{id}} foreground";
|
|
178
|
+
readonly setLabelBackground: "Set label #{{id}} background";
|
|
179
|
+
readonly resizeLabel: "Resize label #{{id}}";
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly customLine: {
|
|
183
|
+
readonly heading: "Custom Line";
|
|
184
|
+
readonly drawingOn: "Drawing on room #{{id}}.";
|
|
185
|
+
readonly drawingHint: "Click to add waypoints · right-click or Enter to finish · Esc cancels.";
|
|
186
|
+
readonly exitName: "Exit Name";
|
|
187
|
+
readonly coveringBothWays: "Covering both ways — stub on room #{{id}} ({{exitName}}).";
|
|
188
|
+
readonly waypoints: "Waypoints";
|
|
189
|
+
readonly deleteWaypoint: "Delete waypoint";
|
|
190
|
+
readonly redrawLine: "Redraw line";
|
|
191
|
+
readonly snapToGrid: "Snap to grid";
|
|
192
|
+
readonly removeCustomLine: "Remove custom line";
|
|
193
|
+
readonly rightClickHint: "Right-click a segment to insert a waypoint · drag a waypoint to move it · Delete to remove";
|
|
194
|
+
readonly finish: "Finish";
|
|
195
|
+
readonly cancel: "Cancel";
|
|
196
|
+
readonly exitInfo: "Exit";
|
|
197
|
+
readonly fromRoom: "From";
|
|
198
|
+
readonly roomLabel: "Room";
|
|
199
|
+
readonly toRoom: "To";
|
|
200
|
+
readonly pointsCount: "Points";
|
|
201
|
+
readonly notFound: "Custom line not found";
|
|
202
|
+
readonly cancelledStatus: "Custom line cancelled.";
|
|
203
|
+
readonly startStatus: "Click canvas to add waypoints · right-click or Enter to finish · Esc cancels";
|
|
204
|
+
readonly alreadyOnGrid: "Custom line '{{exit}}' already on grid.";
|
|
205
|
+
readonly snappedToGrid: "Snapped custom line '{{exit}}' to grid";
|
|
206
|
+
readonly removedStatus: "Custom line '{{exit}}' removed";
|
|
207
|
+
readonly removedWaypoint: "Removed waypoint from '{{exit}}' on room {{id}}";
|
|
208
|
+
};
|
|
209
|
+
readonly label: {
|
|
210
|
+
readonly heading: "Label #{{id}}";
|
|
211
|
+
readonly position: "Position: ({{x}}, {{y}}, {{z}}) · Drag to move";
|
|
212
|
+
readonly text: "Text";
|
|
213
|
+
readonly image: "Image";
|
|
214
|
+
readonly width: "Width";
|
|
215
|
+
readonly height: "Height";
|
|
216
|
+
readonly textColor: "Text color";
|
|
217
|
+
readonly bgColor: "BG color";
|
|
218
|
+
readonly bgAlpha: "BG alpha";
|
|
219
|
+
readonly font: "Font";
|
|
220
|
+
readonly size: "Size";
|
|
221
|
+
readonly autoFit: "Auto-fit";
|
|
222
|
+
readonly autoFitTitle: "Auto-fit font size to fill label area";
|
|
223
|
+
readonly outlineColor: "Outline color";
|
|
224
|
+
readonly outlineAlpha: "Outline alpha";
|
|
225
|
+
readonly pixmap: "Pixmap";
|
|
226
|
+
readonly noPixmap: "No pixmap stored";
|
|
227
|
+
readonly regeneratePixmap: "Regenerate pixmap";
|
|
228
|
+
readonly replaceImage: "Replace image...";
|
|
229
|
+
readonly aspectLocked: "Aspect ratio locked — click to unlock";
|
|
230
|
+
readonly aspectFree: "Lock aspect ratio for resize";
|
|
231
|
+
readonly arLocked: "AR locked";
|
|
232
|
+
readonly arFree: "AR free";
|
|
233
|
+
readonly showOnTop: "Show on top (foreground)";
|
|
234
|
+
readonly scaleWithZoom: "Scale with zoom";
|
|
235
|
+
readonly notFound: "Label not found.";
|
|
236
|
+
readonly zeroSizeWarning: "zero-size label";
|
|
237
|
+
readonly ack: "Ack";
|
|
238
|
+
readonly modeText: "Text";
|
|
239
|
+
readonly modeImage: "Image";
|
|
240
|
+
readonly fontSearchPlaceholder: "Search fonts…";
|
|
241
|
+
};
|
|
242
|
+
readonly script: {
|
|
243
|
+
readonly heading: "Script";
|
|
244
|
+
readonly hint: "Bulk-edit rooms with JavaScript. One run = one undo step.";
|
|
245
|
+
readonly loadingEditor: "Loading editor…";
|
|
246
|
+
readonly namePlaceholder: "Script name…";
|
|
247
|
+
readonly saveBtn: "Save";
|
|
248
|
+
readonly overwriteBtn: "Overwrite";
|
|
249
|
+
readonly overwriteTitle: "Overwrite \"{{name}}\"";
|
|
250
|
+
readonly saveTitle: "Save current script to library";
|
|
251
|
+
readonly libraryBtn: "Library";
|
|
252
|
+
readonly libraryTitle: "Browse saved scripts";
|
|
253
|
+
readonly apiBtn: "? API";
|
|
254
|
+
readonly apiTitle: "Show script API reference";
|
|
255
|
+
readonly runBtn: "Run script";
|
|
256
|
+
readonly running: "Running…";
|
|
257
|
+
readonly resetBtn: "Reset";
|
|
258
|
+
readonly runHint: "Ctrl+Enter to run";
|
|
259
|
+
readonly errorRolledBack: "All changes rolled back.";
|
|
260
|
+
readonly noChanges: "No changes.";
|
|
261
|
+
readonly appliedChange: "Applied {{count}} change.";
|
|
262
|
+
readonly appliedChanges: "Applied {{count}} changes.";
|
|
263
|
+
readonly logTitle: "Log";
|
|
264
|
+
readonly resultTitle: "Result";
|
|
265
|
+
readonly copyBtn: "Copy";
|
|
266
|
+
readonly copyTitle: "Copy JSON to clipboard";
|
|
267
|
+
readonly savedStatus: "Script \"{{name}}\" saved";
|
|
268
|
+
readonly loadedStatus: "Script \"{{name}}\" loaded";
|
|
269
|
+
readonly deletedStatus: "Script \"{{name}}\" deleted";
|
|
270
|
+
readonly errorStatus: "Script error: {{message}}";
|
|
271
|
+
readonly ranNoChanges: "Script ran (no changes)";
|
|
272
|
+
readonly ranChange: "Script: {{count}} change";
|
|
273
|
+
readonly ranChanges: "Script: {{count}} changes";
|
|
274
|
+
readonly libraryPanelTitle: "Saved scripts";
|
|
275
|
+
readonly libraryCloseTitle: "Close";
|
|
276
|
+
readonly libraryEmpty: "No saved scripts yet. Type a name above and click Save.";
|
|
277
|
+
readonly librarySavedAgo: "Saved {{time}}";
|
|
278
|
+
readonly libraryLoadedBadge: "loaded";
|
|
279
|
+
readonly libraryAlreadyLoaded: "Already loaded";
|
|
280
|
+
readonly libraryLoadTitle: "Load into editor";
|
|
281
|
+
readonly libraryLoadBtn: "Load";
|
|
282
|
+
readonly libraryDeleteBtn: "Delete";
|
|
283
|
+
readonly libraryDeleteTitle: "Delete \"{{name}}\"";
|
|
284
|
+
readonly libraryDeleteConfirm: "Delete saved script \"{{name}}\"?";
|
|
285
|
+
readonly libraryTimeJustNow: "just now";
|
|
286
|
+
readonly libraryTimeMinutes: "{{count}}m ago";
|
|
287
|
+
readonly libraryTimeHours: "{{count}}h ago";
|
|
288
|
+
readonly libraryTimeDays: "{{count}}d ago";
|
|
289
|
+
};
|
|
290
|
+
readonly map: {
|
|
291
|
+
readonly heading: "Map Info";
|
|
292
|
+
readonly noMap: "No map loaded";
|
|
293
|
+
readonly noMapHint: "Drag a .dat file in or load from toolbar.";
|
|
294
|
+
readonly version: "Version";
|
|
295
|
+
readonly rooms: "Rooms";
|
|
296
|
+
readonly areas: "Areas";
|
|
297
|
+
readonly customEnvs: "Custom colors";
|
|
298
|
+
readonly userData: "User Data";
|
|
299
|
+
readonly storeAcks: "Store acks in map userdata";
|
|
300
|
+
readonly warnings: "Warnings";
|
|
301
|
+
readonly acknowledged: "{{count}} acknowledged";
|
|
302
|
+
readonly ack: "Ack";
|
|
303
|
+
readonly unack: "Unack";
|
|
304
|
+
readonly go: "Go";
|
|
305
|
+
readonly warnZeroSizeLabel: "Zero-size label";
|
|
306
|
+
readonly warnSelfLinkRoom: "Self-linking room";
|
|
307
|
+
readonly warnOrphanRoom: "Orphan room";
|
|
308
|
+
readonly warnDanglingExit: "Dangling exit";
|
|
309
|
+
readonly warnDuplicateCoord: "Duplicate coords";
|
|
310
|
+
readonly warnCoordMismatch: "Direction mismatch";
|
|
311
|
+
};
|
|
312
|
+
readonly shared: {
|
|
313
|
+
readonly noUserData: "— no user data —";
|
|
314
|
+
readonly removeEntry: "Remove entry";
|
|
315
|
+
readonly addEntry: "Add entry";
|
|
316
|
+
readonly keyPlaceholder: "key";
|
|
317
|
+
readonly valuePlaceholder: "value";
|
|
318
|
+
readonly searchPlaceholder: "Search…";
|
|
319
|
+
readonly noResults: "No results";
|
|
320
|
+
readonly toolHints: {
|
|
321
|
+
readonly select: "Click a room to select. Drag to move. Arrow keys nudge.";
|
|
322
|
+
readonly connect: "Click source, then target. Shift for one-way.";
|
|
323
|
+
readonly unlink: "Click an exit line to remove.";
|
|
324
|
+
readonly addRoom: "Click an empty grid cell to create a room.";
|
|
325
|
+
readonly delete: "Click a room to delete it.";
|
|
326
|
+
readonly pan: "Drag to pan. Hold Space with any tool for temporary pan.";
|
|
327
|
+
readonly customLine: "Click to add waypoints. Right-click or Enter to finish.";
|
|
328
|
+
readonly label: "Click a label to select and edit its properties.";
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
export type PanelsLocale = {
|
|
333
|
+
[K in keyof typeof panelsEn]: typeof panelsEn[K] extends string ? string : {
|
|
334
|
+
[K2 in keyof typeof panelsEn[K]]: typeof panelsEn[K][K2] extends string ? string : Record<string, string>;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const searchEn: {
|
|
2
|
+
readonly tabRooms: "Rooms";
|
|
3
|
+
readonly tabLabels: "Labels";
|
|
4
|
+
readonly closeTitle: "Close (Esc)";
|
|
5
|
+
readonly placeholderRooms: "name, ID, or user data… (Tab to switch)";
|
|
6
|
+
readonly placeholderLabels: "label text… (Tab to switch)";
|
|
7
|
+
readonly clearTitle: "Clear";
|
|
8
|
+
readonly noMatches: "No matches";
|
|
9
|
+
readonly tooManyResults: "Showing first 100 results — refine your query";
|
|
10
|
+
readonly unnamed: "unnamed";
|
|
11
|
+
readonly emptyLabel: "empty label";
|
|
12
|
+
};
|
|
13
|
+
export type SearchLocale = {
|
|
14
|
+
[K in keyof typeof searchEn]: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const sessionsEn: {
|
|
2
|
+
readonly loading: "Loading…";
|
|
3
|
+
readonly noMap: "No map loaded.";
|
|
4
|
+
readonly noMapHint: "Drag a .dat file in or load from toolbar.";
|
|
5
|
+
readonly savedSessions: "Saved Sessions";
|
|
6
|
+
readonly deleteAll: "Delete All";
|
|
7
|
+
readonly load: "Load";
|
|
8
|
+
readonly delete: "Delete";
|
|
9
|
+
readonly autoDelete: "Auto-delete sessions older than";
|
|
10
|
+
readonly days: "days";
|
|
11
|
+
readonly restored: "Session restored · {{rooms}} rooms · {{areas}} areas";
|
|
12
|
+
};
|
|
13
|
+
export type SessionsLocale = {
|
|
14
|
+
[K in keyof typeof sessionsEn]: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const swatchesEn: {
|
|
2
|
+
readonly title: "Swatches";
|
|
3
|
+
readonly noSets: "No sets yet";
|
|
4
|
+
readonly renameSet: "Rename set";
|
|
5
|
+
readonly deleteSet: "Delete set";
|
|
6
|
+
readonly newSet: "New set";
|
|
7
|
+
readonly setNamePlaceholder: "Set name…";
|
|
8
|
+
readonly addSwatch: "Add swatch";
|
|
9
|
+
readonly editSwatch: "Edit";
|
|
10
|
+
readonly deleteSwatch: "Delete";
|
|
11
|
+
readonly namePlaceholder: "Name";
|
|
12
|
+
readonly symPlaceholder: "Sym";
|
|
13
|
+
readonly confirmDeleteSet: "Delete set \"{{name}}\"?";
|
|
14
|
+
readonly pickFromCanvas: "Pick symbol & room color from a room on the canvas";
|
|
15
|
+
readonly clickToCopy: "Click a room on the canvas to copy its values…";
|
|
16
|
+
readonly cancel: "Cancel";
|
|
17
|
+
readonly empty: "Create a set above, then add swatches to it.";
|
|
18
|
+
};
|
|
19
|
+
export type SwatchesLocale = {
|
|
20
|
+
[K in keyof typeof swatchesEn]: string;
|
|
21
|
+
};
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -7,3 +7,6 @@ export { loadUrlIntoStore } from './editor/loadFile';
|
|
|
7
7
|
export { getMapBytes } from './editor/mapBytes';
|
|
8
8
|
export { pushCommand } from './editor/commands';
|
|
9
9
|
export { store, useEditorState } from './editor/store';
|
|
10
|
+
export { addTranslations, changeLanguage, getCurrentLanguage } from './i18n';
|
|
11
|
+
export type { EditorLocale } from './i18n';
|
|
12
|
+
export { LanguageSwitcher } from './components/LanguageSwitcher';
|