-
Notifications
You must be signed in to change notification settings - Fork 13
/
strings.js
465 lines (462 loc) · 16.3 KB
/
strings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
const strings = {
error: {
cleared_license: "Cleared license",
invalid_license: "Invalid license",
server_error: "Server error, please try again",
},
title: {
donate: "Donate",
jsonRecursive: "Expanding all leafs",
name: "P3X Redis UI",
nameDonated: "P3X Redis UI+",
main: "You may choose a Redis connection to connect from the left bottom menu.",
statistics: "Statistics",
error: "Error",
connectingRedis: "Connecting to Redis ...",
socketioConnectError: "Socket.IO Error",
db: "DB",
server: "Server",
clients: "Clients",
memory: "Memory",
persistence: "Persistence",
stats: "Statistics",
replication: "Replication",
cpu: "CPU",
cluster: "Cluster",
},
confirm: {
uploadBuffer: "Are you sure to upload this binary data?",
uploadBufferDone: "The binary data is uploaded",
uploadBufferDoneAndSave: "The binary data is uploaded and saved on the server",
title: "Confirm",
alert: "Alert",
info: "Info",
deleteListItem: "Are you sure to delete this list item?",
deleteHashKey: "Are you sure to delete this hash key item?",
deleteStreamTimestamp: "Are you sure to delete this stream timestamp?",
deleteSetMember: "Are you sure to delete this set member?",
deleteZSetMember: "Are you sure to delete this sorted set member?",
deleteConnection: "Confirm",
deleteConnectionText: "Are you sure to delete this Redis connection?",
deleteNode: "Are you sure to delete this Redis node?",
deleteAllKeys: (opts) => {
return `Delete this tree and all it\'s keys (${opts.key})?`;
},
socketioConnectError:
"Socket.IO cannot connect to the server, you can reload and try resolve the connection error yourself, the client does not know how to solve it itself.",
deleteKey: "Are you sure to delete this key?",
rename: {
title: "Are you sure to rename this key?",
textContent:
"If you click the rename button, it will rename this key forever.",
placeholder: "The Redis key (required)",
},
ttl: {
title: "Are you sure to change this keys's TTL?",
textContent:
"If you click the change TTL button, it will rename this key's time to live, empty will persist this key keep forever.",
placeholder: "The Redis key's TTL (integer or empty)",
placeholderPlaceholder:
"Empty means it persists forever, otherwise the used integer.",
convertTextToTime: "Convert text to time",
convertTextToTimePlaceholder: "Eg. 1d will be 86400",
},
license: {
title: "Enable donated license?",
textContent:
"If you want to use the donated functions, please contact [email protected] to request a license. The donation is $1/month.",
placeholder: "License key",
},
},
language: {
// When you translate the english name, keep the Language in English
// eg. Inglés / English
en: "English",
zn: "中文 / Chinese",
ru: "Русский / Russian",
},
intention: {
copy: "Copy",
downloadBuffer: "Download binary",
setBuffer: "Upload binary",
saveWithFormatJson: "Save with format",
formatJson: "Format Json",
pubsubMonitor: "PubSub Monitor",
// When you translate the language, keep the Language in English
// eg. Idioma / Language
language: "Language",
ok: "OK",
addKey: "Add to this key",
addKeyRoot: "Add a root key",
reloadKey: "Reload key",
reload: "Reload",
close: "Close",
commands: "Commands",
view: "View",
statistics: "Statistics",
refresh: "Refresh",
clear: "Clear",
rename: "Rename",
main: "Home",
cancel: "Cancel",
theme: "Theme",
github: "GitHub",
githubRepo: "Repository",
githubRelease: "Releases",
githubChangelog: "Change log",
settings: "Settings",
connect: "Connect",
disconnect: "Disconnect",
overview: "Overview",
console: "Console",
noConnections: "No connections, add a connection in the settings menu.",
noConnectionsInSettings:
"No connections, you may add a NEW CONNECTION above.",
connectionAdd: "New connection",
extend: "Extend",
collapse: "Collapse",
add: "Add",
edit: "Edit",
save: "Save",
ttl: "Set TTL",
license: "Set license",
delete: "Delete",
remove: "Remove",
sure: "Sure",
testConnection: "Test connection",
getKey: "Loading Redis key and associated data ...",
jsonViewShow: "Display JSON",
jsonViewEditor: "Edit JSON",
quickConsole: "Quick Console",
},
label: {
id: {
nodeId: 'Node ID',
id: "Connection ID",
info: "If you do not wan't to change the properties of: sshPassword, sshPrivateKey, password, tlsCrt, tlsKey, tlsCa, please enter the ID of the connection in those propertes to keep the property values intact. If you want the same logic in the node password, then enter the node ID in the node password.",
},
secureFeature: 'If you see a value that starts with a P3X an look like the same, it is a secure feature. To change the settings, just replace these settings with empty or something else and they will be saved. If you do not change the settings, the settings will be kept as they are on the server.',
ssh: {
on: 'SSH on',
off: 'SSH off',
sshHost: 'SSH Host',
sshPort: 'SSH port',
sshUsername: 'SSH username',
sshPassword: 'SSH password',
sshPrivateKey: 'SSH private key',
},
isBuffer: (opts) => `[object ArrayBuffer] means that the value is binary data or the value is bigger than ${opts.maxValueAsBuffer}`,
streamValue: `Stream field and value is a oneliner. Eg.: field1 value1 "field 2" "value 2"`,
streamTimestampId: `'*' means auto generated or the specification as <millisecondsTime>-<sequenceNumber>`,
unableToLoadKey: ({ key }) => {
return `Unable to load this key: ${key}. Possible, the key was deleted. The exact error is in the console.`;
},
bigJson:
"This JSON object is over 10 kb, so make sure you know what you doing, because some functions can be slow rendering.",
addNode: "Add node",
validateJson: "Validate JSON",
reducedFunction: `Reduced functionality`,
tooManyKeys: (opts) => {
return `For the full maximum functions allowed keys total is ${opts.maxLightKeysCount} count. This database has over the allowed keys in total ${opts.count}. The key sorting and the additional fancy tree information is disabled. The searching is happening only on the server instead the client search.`;
},
redisCommandNotFound: "No Redis command match found ...",
treeKeyStore: `The sorting (natural compare) is executed on the client aka the browser, which means it has a penalty for big large sets, like over 10k keys, it might add a little time to the page rendering. There is no key sorting in Redis, only like this.`,
socketIoTimeout: (options) => {
return `The Socket.IO timed out for this request (max ${
options.timeout / 1000
} seconds) ...`;
},
resizerInfo: (options) => {
return `Left or right panel minimum width is ${options.width}px`;
},
jsonViewNotParsable: "This value is not JSON parsable ",
ttlTitle: "Set the TTL in seconds",
passwordSecure:
"The password might will be empty, but still it will show characters, this is a security feature.",
tlsWithoutCert: "Enable TLS without additional certificate",
tlsRejectUnauthorized: "Reject unauthorized certificate",
tlsSecure:
"If you see a TLS configuration that starts with a P3X or all the TLS settings look like the same, it is a secure feature. To change the settings, just replace these settings with empty or something else and they will be saved. If you do not change the TLS settings, the settings will be kept as they are on the server.",
treeSeparatorEmpty:
"If the tree separator is empty, the tree wil have no nested nodes, just a pure list",
treeSeparatorEmptyNote: "No nested nodes, just a pure list",
welcomeConsole: "Welcome to the Redis Console",
welcomeConsoleInfo: "Cursor UP or DOWN history is enabled",
redisListIndexInfo:
"Empty to append, -1 to prepend or save it to the position shown.",
console: "Console",
connectiondAdd: "Add connection",
connectiondEdit: "Edit connection",
connectiondView: "View connection",
connections: "Connections",
keysSort: {
on: "Key sorting on",
off: "Key sorting off",
},
cluster: {
on: "Cluster on",
off: "Cluster off",
},
sentinel: {
on: "Sentinel on",
off: "Sentinel off",
name: "Sentinel name",
},
readonly: {
on: "Readonly on",
off: "Readonly off",
},
theme: {
light: "Light",
dark: "Dark enterprise",
darkNeu: "Dark",
darkoBluo: "Darko bluo",
enterprise: "Enterprise",
redis: "Redis",
matrix: "Matrix",
},
connected: (opts) => {
return `Connected: ${opts.name}`;
},
tree: "Tree",
askAuth: "Ask for authorization",
},
status: {
dataCopied: "The data is in the clipboard",
licenseSaved: "License saved",
nodeRemoved: "Node removed",
keyIsNotExisting: "This key could have been deleted or expired.",
keyCount: (opts) => {
if (opts.keyCount === 0) {
return "No key";
} else if (opts.keyCount === 1) {
return "1 key";
} else {
return `${opts.keyCount} keys`;
}
},
treeExpandAll:
"Expand all tree leafs, this has a cost, might take time ...",
noRedisKeys: "There are no keys in this database.",
redisConnected: "Redis connected successful",
reloadingDataInfo: "Reloading Redis data info",
added: "Added",
saved: "Updated",
cancelled: "Cancelled",
deleted: "Deleted",
savedRedis: "Redis data is saved",
redisDisconnected: (opts) => {
return `The current connection had an error: ${opts.error.message}`;
},
dbChanged: (opts) => {
return `The db index set to ${opts.db}. `;
},
treeDeleted: (opts) => {
return `The tree key was deleted (${opts.key}).`;
},
deletedKey: (opts) => {
return `The key was deleted (${opts.key}).`;
},
renamedKey: "This key has been renamed",
ttlChanged: "This key's TTL has been changed",
notInteger: "This input is not an integer",
persisted: "This key is persisted forever",
set: "The key is set/added",
},
code: {
"delete-connection":
"This connection was deleted, so you are disconnected to this Redis instance.",
"save-connection":
"This connection was changed, so you are disconnected to this Redis instance. You may re-connect.",
"readonly-connections": "Connections add/save/delete are readonly only!",
"readonly-connection-mode": "This connection is read only mode!",
"list-out-of-bounds": "This list index is out of bounds",
"donation-ware-feature": "This feature is present in the donation version.",
"auto-connection-failed":
"Possible, the connection was removed and the auto connection failed, because of this.",
invalid_console_command: "This command is not working via the GUI.",
},
form: {
error: {
required: "Required",
port: "The port is between 1-65535",
invalid: "The form is invalid",
},
connection: {
label: {
name: "Name",
host: "Hostname",
port: "Port",
password: "Password",
username: "Username",
},
},
treeSettings: {
maxValueDisplay: "Max value display string length",
maxValueDisplayInfo:
"If max value display zero, it shows everything, if it is bigger than 0, it will truncate. If it is -1, it will not show the value without edit for strings, for others, it display everything.",
maxKeys: "The max key count",
maxKeysInfo:
"So that the GUI does not crash, we limit the max key count.",
keyCount: () => {
return `Number of keys: ${p3xr.state.keysRaw.length}`;
},
label: {
animation: "Use animation",
noAnimation: "No animation",
jsonFormatTwoSpace: "Format JSON with 2 spaces",
jsonFormatFourSpace: "Format JSON with 4 spaces",
formName: "Redis settings",
searchModeClient: "Client search mode",
searchModeServer: "Server search mode",
searchModeStartsWith: "Search with starts with mode",
searchModeIncludes: "Search includes mode",
},
field: {
treeSeparator: "Tree separator",
treeSeparatorSelector: "Tree separator selector",
page: "Tree paging count",
keyPageCount: "Key paging count",
keysSort: "Sort the keys",
searchMode: "Search mode",
searchModeStartsWith: "Search starts with / includes",
},
error: {
keyPageCount: "The key page count must be an integer between 5 - 100",
page: "The page count must be an integer between 10 - 1000",
maxValueDisplay:
"The maximum display value must be an integer between -1 and 32768",
maxKeys:
"The maximum key count value must be an integer between 100 and 100000",
},
},
key: {
label: {
formName: {
add: "Add new Redis key",
edit: "Edit Redis key",
append: "Add to existing Redis key",
},
},
field: {
streamTimestamp: "Timestamp",
key: "Key",
type: "Type",
index: "Index",
hashKey: "Hash key",
score: "Score",
value: "Value",
},
error: {
streamTimestamp:
"The timestamp is required, either Redis format or as *",
key: "The key is, at least, one character",
hashKey: "The hash table key is at least one character",
score: "The sorted set score is required",
value: "The value is required",
},
},
main: {
label: {
database: "DB",
},
},
},
page: {
overview: {
noConnected: "There is no connection to Redis.",
overviewClients: "List the connected by the count of clients",
connectedCount: (opt) => {
if (opt.length === 1) {
return "1 client";
}
return `${opt.length} clients`;
},
},
key: {
label: {
key: "Key",
encoding: "Encoding",
length: "Size",
ttl: "TTL",
ttlTitle: "Time To Live",
type: "Type",
ttlNotExpire: "does not expire",
lengthString: "bytes",
lengthItem: "items",
actions: "Actions",
},
list: {
table: {
index: "Index",
value: "Value",
},
},
hash: {
table: {
hashkey: "Hashkey",
value: "Value",
},
},
set: {
table: {
value: "Member",
},
},
zset: {
table: {
value: "Member",
score: "Score",
},
},
stream: {
table: {
timestamp: "Timestamp ID",
field: "Field",
value: "Value",
},
},
},
treeControls: {
settings: "Tree settings",
expandAll: "Expand all",
collapseAll: "Collapse all",
search: {
search: "Search in the keys",
clear: "Clear current search to set empty",
placeholderClient: "Search client side",
placeholderServer: "Search server side",
info:
"The client side search means, that it matches the text in the search input. The server side search means, that is it like search in the keys patterns as *{search-text}*. For large search sets, it is better to use server side searching. For smaller search sets, it is better to use client side search mode." +
` If the keys count is over ${p3xr.settings.maxLightKeysCount}, you can only search on server side.`,
largeSetInfo:
"In a large set, client side searching is disabled. so right now only server side searching is possible.",
infoDetails:
"To find out how the search works, please check out the settings",
},
pager: {
next: "Next",
prev: "Previous",
first: "First",
last: "Last",
},
},
},
time: {
years: "years",
months: "months",
days: "days",
year: "year",
month: "month",
day: "day",
},
redisTypes: {
string: "String",
list: "List",
hash: "Hash table",
set: "Set",
zset: "Sorted set - zset",
stream: "Stream",
},
};
module.exports = strings;